mirror of
https://github.com/thestk/stk
synced 2026-01-16 22:31:52 +00:00
Release 4.2.0 tarball
This commit is contained in:
committed by
Stephen Sinclair
parent
fe20fe92a2
commit
de344668dd
@@ -12,43 +12,48 @@
|
||||
<h1>Drummer.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
||||
00016 <span class="comment">/***************************************************/</span>
|
||||
00017
|
||||
00018 <span class="preprocessor">#if !defined(__DRUMMER_H)</span>
|
||||
00019 <span class="preprocessor"></span><span class="preprocessor">#define __DRUMMER_H</span>
|
||||
00018 <span class="preprocessor">#ifndef STK_DRUMMER_H</span>
|
||||
00019 <span class="preprocessor"></span><span class="preprocessor">#define STK_DRUMMER_H</span>
|
||||
00020 <span class="preprocessor"></span>
|
||||
00021 <span class="preprocessor">#include "Instrmnt.h"</span>
|
||||
00022 <span class="preprocessor">#include "WvIn.h"</span>
|
||||
00023 <span class="preprocessor">#include "OnePole.h"</span>
|
||||
00024
|
||||
00025 <span class="preprocessor">#define DRUM_NUMWAVES 11</span>
|
||||
00026 <span class="preprocessor"></span><span class="preprocessor">#define DRUM_POLYPHONY 4</span>
|
||||
00027 <span class="preprocessor"></span>
|
||||
00025 <span class="keyword">const</span> <span class="keywordtype">int</span> DRUM_NUMWAVES = 11;
|
||||
00026 <span class="keyword">const</span> <span class="keywordtype">int</span> DRUM_POLYPHONY = 4;
|
||||
00027
|
||||
<a name="l00028"></a><a class="code" href="classDrummer.html">00028</a> <span class="keyword">class </span><a class="code" href="classDrummer.html">Drummer</a> : <span class="keyword">public</span> <a class="code" href="classInstrmnt.html">Instrmnt</a>
|
||||
00029 {
|
||||
00030 <span class="keyword">public</span>:
|
||||
00032 <a class="code" href="classDrummer.html#a0">Drummer</a>();
|
||||
00033
|
||||
00035 <a class="code" href="classDrummer.html#a1">~Drummer</a>();
|
||||
00032
|
||||
00035 <a class="code" href="classDrummer.html#a0">Drummer</a>();
|
||||
00036
|
||||
00038
|
||||
00043 <span class="keywordtype">void</span> <a class="code" href="classDrummer.html#a2">noteOn</a>(MY_FLOAT instrument, MY_FLOAT amplitude);
|
||||
00044
|
||||
00046 <span class="keywordtype">void</span> <a class="code" href="classDrummer.html#a3">noteOff</a>(MY_FLOAT amplitude);
|
||||
00047
|
||||
00049 MY_FLOAT <a class="code" href="classDrummer.html#a4">tick</a>();
|
||||
00050
|
||||
00051 <span class="keyword">protected</span>:
|
||||
00052 <a class="code" href="classWvIn.html">WvIn</a> *waves[DRUM_POLYPHONY];
|
||||
00053 <a class="code" href="classOnePole.html">OnePole</a> *filters[DRUM_POLYPHONY];
|
||||
00054 <span class="keywordtype">int</span> sounding[DRUM_POLYPHONY];
|
||||
00055 <span class="keywordtype">int</span> nSounding;
|
||||
00056
|
||||
00057 };
|
||||
00058
|
||||
00059 <span class="preprocessor">#endif</span>
|
||||
00038 <a class="code" href="classDrummer.html#a1">~Drummer</a>();
|
||||
00039
|
||||
00041
|
||||
00047 <span class="keywordtype">void</span> <a class="code" href="classDrummer.html#a2">noteOn</a>(StkFloat instrument, StkFloat amplitude);
|
||||
00048
|
||||
00050 <span class="keywordtype">void</span> <a class="code" href="classDrummer.html#a3">noteOff</a>(StkFloat amplitude);
|
||||
00051
|
||||
00053 StkFloat <a class="code" href="classDrummer.html#a4">tick</a>();
|
||||
00054
|
||||
00056 StkFloat *<a class="code" href="classDrummer.html#a4">tick</a>(StkFloat *vector, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> vectorSize);
|
||||
00057
|
||||
00059
|
||||
00065 <a class="code" href="classStkFrames.html">StkFrames</a>& <a class="code" href="classDrummer.html#a4">tick</a>( <a class="code" href="classStkFrames.html">StkFrames</a>& frames, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> channel = 1 );
|
||||
00066
|
||||
00067 <span class="keyword">protected</span>:
|
||||
00068 <a class="code" href="classWvIn.html">WvIn</a> *waves_[DRUM_POLYPHONY];
|
||||
00069 <a class="code" href="classOnePole.html">OnePole</a> *filters_[DRUM_POLYPHONY];
|
||||
00070 <span class="keywordtype">int</span> sounding_[DRUM_POLYPHONY];
|
||||
00071 <span class="keywordtype">int</span> nSounding_;
|
||||
00072 };
|
||||
00073
|
||||
00074 <span class="preprocessor">#endif</span>
|
||||
</pre></div><HR>
|
||||
|
||||
<table>
|
||||
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td><A HREF="http://ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
||||
<tr><td>©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
||||
</table>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user