Release 4.2.1 tarball

This commit is contained in:
Gary Scavone
2013-09-29 23:40:35 +02:00
committed by Stephen Sinclair
parent 11cf5faa0a
commit 21b93795e7
1041 changed files with 23984 additions and 16348 deletions

View File

@@ -8,84 +8,80 @@
<img src="princeton.gif"> &nbsp; <img src="ccrma.gif"> &nbsp; <img src="mcgill.gif"><P>
<a class="qindex" href="index.html">Home</a> &nbsp; <a class="qindex" href="information.html">Information</a> &nbsp; <a class="qindex" href="classes.html">Classes</a> &nbsp; <a class="qindex" href="download.html">Download</a> &nbsp; <a class="qindex" href="usage.html">Usage</a> &nbsp; <a class="qindex" href="maillist.html">Mail List</a> &nbsp; <a class="qindex" href="system.html">Requirements</a> &nbsp; <a class="qindex" href="links.html">Links</a> &nbsp; <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
<HR>
<!-- Generated by Doxygen 1.3.4 -->
<h1>Shakers.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
00053 <span class="comment">/***************************************************/</span>
00054
00055 <span class="preprocessor">#ifndef STK_SHAKERS_H</span>
00056 <span class="preprocessor"></span><span class="preprocessor">#define STK_SHAKERS_H</span>
00057 <span class="preprocessor"></span>
00058 <span class="preprocessor">#include "Instrmnt.h"</span>
00059
00060 <span class="keyword">const</span> <span class="keywordtype">int</span> MAX_FREQS = 8;
00061 <span class="keyword">const</span> <span class="keywordtype">int</span> NUM_INSTR = 24;
00062
<!-- Generated by Doxygen 1.4.4 -->
<div class="nav">
<a class="el" href="dir_000000.html">include</a></div>
<h1>Shakers.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/***************************************************/</span>
<a name="l00053"></a>00053 <span class="comment">/***************************************************/</span>
<a name="l00054"></a>00054
<a name="l00055"></a>00055 <span class="preprocessor">#ifndef STK_SHAKERS_H</span>
<a name="l00056"></a>00056 <span class="preprocessor"></span><span class="preprocessor">#define STK_SHAKERS_H</span>
<a name="l00057"></a>00057 <span class="preprocessor"></span>
<a name="l00058"></a>00058 <span class="preprocessor">#include "Instrmnt.h"</span>
<a name="l00059"></a>00059
<a name="l00060"></a>00060 <span class="keyword">const</span> <span class="keywordtype">int</span> MAX_FREQS = 8;
<a name="l00061"></a>00061 <span class="keyword">const</span> <span class="keywordtype">int</span> NUM_INSTR = 24;
<a name="l00062"></a>00062
<a name="l00063"></a><a class="code" href="classShakers.html">00063</a> <span class="keyword">class </span><a class="code" href="classShakers.html">Shakers</a> : <span class="keyword">public</span> <a class="code" href="classInstrmnt.html">Instrmnt</a>
00064 {
00065 <span class="keyword">public</span>:
00067 <a class="code" href="classShakers.html#a0">Shakers</a>();
00068
00070 <a class="code" href="classShakers.html#a1">~Shakers</a>();
00071
00073
00077 <span class="keywordtype">void</span> <a class="code" href="classShakers.html#a2">noteOn</a>(StkFloat instrument, StkFloat amplitude);
00078
00080 <span class="keywordtype">void</span> <a class="code" href="classShakers.html#a3">noteOff</a>(StkFloat amplitude);
00081
00083 StkFloat <a class="code" href="classShakers.html#a4">tick</a>();
00084
00086 StkFloat *<a class="code" href="classShakers.html#a4">tick</a>(StkFloat *vector, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> vectorSize);
00087
00089
00095 <a class="code" href="classStkFrames.html">StkFrames</a>&amp; <a class="code" href="classShakers.html#a4">tick</a>( <a class="code" href="classStkFrames.html">StkFrames</a>&amp; frames, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> channel = 1 );
00096
00098 <span class="keywordtype">void</span> <a class="code" href="classShakers.html#a7">controlChange</a>(<span class="keywordtype">int</span> number, StkFloat value);
00099
00100 <span class="keyword">protected</span>:
00101
00102 <span class="keywordtype">int</span> setupName(<span class="keywordtype">char</span>* instr);
00103 <span class="keywordtype">int</span> setupNum(<span class="keywordtype">int</span> inst);
00104 <span class="keywordtype">int</span> setFreqAndReson(<span class="keywordtype">int</span> which, StkFloat freq, StkFloat reson);
00105 <span class="keywordtype">void</span> setDecays(StkFloat sndDecay, StkFloat sysDecay);
00106 <span class="keywordtype">void</span> setFinalZs(StkFloat z0, StkFloat z1, StkFloat z2);
00107 StkFloat wuter_tick();
00108 StkFloat tbamb_tick();
00109 StkFloat ratchet_tick();
00110
00111 <span class="keywordtype">int</span> instType_;
00112 <span class="keywordtype">int</span> ratchetPos_, lastRatchetPos_;
00113 StkFloat shakeEnergy_;
00114 StkFloat inputs_[MAX_FREQS];
00115 StkFloat outputs_[MAX_FREQS][2];
00116 StkFloat coeffs_[MAX_FREQS][2];
00117 StkFloat sndLevel_;
00118 StkFloat baseGain_;
00119 StkFloat gains_[MAX_FREQS];
00120 <span class="keywordtype">int</span> nFreqs_;
00121 StkFloat t_center_freqs_[MAX_FREQS];
00122 StkFloat center_freqs_[MAX_FREQS];
00123 StkFloat resons_[MAX_FREQS];
00124 StkFloat freq_rand_[MAX_FREQS];
00125 <span class="keywordtype">int</span> freqalloc_[MAX_FREQS];
00126 StkFloat soundDecay_;
00127 StkFloat systemDecay_;
00128 StkFloat nObjects_;
00129 StkFloat totalEnergy_;
00130 StkFloat ratchet_, ratchetDelta_;
00131 StkFloat finalZ_[3];
00132 StkFloat finalZCoeffs_[3];
00133 StkFloat defObjs_[NUM_INSTR];
00134 StkFloat defDecays_[NUM_INSTR];
00135 StkFloat decayScale_[NUM_INSTR];
00136
00137 };
00138
00139 <span class="preprocessor">#endif</span>
<a name="l00064"></a>00064 {
<a name="l00065"></a>00065 <span class="keyword">public</span>:
<a name="l00067"></a>00067 <a class="code" href="classShakers.html#a0">Shakers</a>();
<a name="l00068"></a>00068
<a name="l00070"></a>00070 <a class="code" href="classShakers.html#a1">~Shakers</a>();
<a name="l00071"></a>00071
<a name="l00073"></a>00073
<a name="l00077"></a>00077 <span class="keywordtype">void</span> <a class="code" href="classShakers.html#a2">noteOn</a>(StkFloat instrument, StkFloat amplitude);
<a name="l00078"></a>00078
<a name="l00080"></a>00080 <span class="keywordtype">void</span> <a class="code" href="classShakers.html#a3">noteOff</a>(StkFloat amplitude);
<a name="l00081"></a>00081
<a name="l00083"></a>00083 <span class="keywordtype">void</span> <a class="code" href="classShakers.html#a4">controlChange</a>(<span class="keywordtype">int</span> number, StkFloat value);
<a name="l00084"></a>00084
<a name="l00085"></a>00085 <span class="keyword">protected</span>:
<a name="l00086"></a>00086
<a name="l00087"></a>00087 StkFloat computeSample( <span class="keywordtype">void</span> );
<a name="l00088"></a>00088 <span class="keywordtype">int</span> setupName(<span class="keywordtype">char</span>* instr);
<a name="l00089"></a>00089 <span class="keywordtype">int</span> setupNum(<span class="keywordtype">int</span> inst);
<a name="l00090"></a>00090 <span class="keywordtype">int</span> setFreqAndReson(<span class="keywordtype">int</span> which, StkFloat freq, StkFloat reson);
<a name="l00091"></a>00091 <span class="keywordtype">void</span> setDecays(StkFloat sndDecay, StkFloat sysDecay);
<a name="l00092"></a>00092 <span class="keywordtype">void</span> setFinalZs(StkFloat z0, StkFloat z1, StkFloat z2);
<a name="l00093"></a>00093 StkFloat wuter_tick();
<a name="l00094"></a>00094 StkFloat tbamb_tick();
<a name="l00095"></a>00095 StkFloat ratchet_tick();
<a name="l00096"></a>00096
<a name="l00097"></a>00097 <span class="keywordtype">int</span> instType_;
<a name="l00098"></a>00098 <span class="keywordtype">int</span> ratchetPos_, lastRatchetPos_;
<a name="l00099"></a>00099 StkFloat shakeEnergy_;
<a name="l00100"></a>00100 StkFloat inputs_[MAX_FREQS];
<a name="l00101"></a>00101 StkFloat outputs_[MAX_FREQS][2];
<a name="l00102"></a>00102 StkFloat coeffs_[MAX_FREQS][2];
<a name="l00103"></a>00103 StkFloat sndLevel_;
<a name="l00104"></a>00104 StkFloat baseGain_;
<a name="l00105"></a>00105 StkFloat gains_[MAX_FREQS];
<a name="l00106"></a>00106 <span class="keywordtype">int</span> nFreqs_;
<a name="l00107"></a>00107 StkFloat t_center_freqs_[MAX_FREQS];
<a name="l00108"></a>00108 StkFloat center_freqs_[MAX_FREQS];
<a name="l00109"></a>00109 StkFloat resons_[MAX_FREQS];
<a name="l00110"></a>00110 StkFloat freq_rand_[MAX_FREQS];
<a name="l00111"></a>00111 <span class="keywordtype">int</span> freqalloc_[MAX_FREQS];
<a name="l00112"></a>00112 StkFloat soundDecay_;
<a name="l00113"></a>00113 StkFloat systemDecay_;
<a name="l00114"></a>00114 StkFloat nObjects_;
<a name="l00115"></a>00115 StkFloat totalEnergy_;
<a name="l00116"></a>00116 StkFloat ratchet_, ratchetDelta_;
<a name="l00117"></a>00117 StkFloat finalZ_[3];
<a name="l00118"></a>00118 StkFloat finalZCoeffs_[3];
<a name="l00119"></a>00119 StkFloat defObjs_[NUM_INSTR];
<a name="l00120"></a>00120 StkFloat defDecays_[NUM_INSTR];
<a name="l00121"></a>00121 StkFloat decayScale_[NUM_INSTR];
<a name="l00122"></a>00122
<a name="l00123"></a>00123 };
<a name="l00124"></a>00124
<a name="l00125"></a>00125 <span class="preprocessor">#endif</span>
</pre></div><HR>
<table>
<tr><td><A HREF="http://ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
<tr><td>&copy;1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
<tr><td>&copy;1995-2005 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
</table>
</BODY>