mirror of
https://github.com/thestk/stk
synced 2026-01-14 05:21:53 +00:00
Release 4.2.0 tarball
This commit is contained in:
committed by
Stephen Sinclair
parent
fe20fe92a2
commit
de344668dd
@@ -12,8 +12,8 @@
|
||||
<h1>Simple.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************/</span>
|
||||
00018 <span class="comment">/***************************************************/</span>
|
||||
00019
|
||||
00020 <span class="preprocessor">#if !defined(__SIMPLE_H)</span>
|
||||
00021 <span class="preprocessor"></span><span class="preprocessor">#define __SIMPLE_H</span>
|
||||
00020 <span class="preprocessor">#ifndef STK_SIMPLE_H</span>
|
||||
00021 <span class="preprocessor"></span><span class="preprocessor">#define STK_SIMPLE_H</span>
|
||||
00022 <span class="preprocessor"></span>
|
||||
00023 <span class="preprocessor">#include "Instrmnt.h"</span>
|
||||
00024 <span class="preprocessor">#include "ADSR.h"</span>
|
||||
@@ -25,42 +25,48 @@
|
||||
<a name="l00030"></a><a class="code" href="classSimple.html">00030</a> <span class="keyword">class </span><a class="code" href="classSimple.html">Simple</a> : <span class="keyword">public</span> <a class="code" href="classInstrmnt.html">Instrmnt</a>
|
||||
00031 {
|
||||
00032 <span class="keyword">public</span>:
|
||||
00034 <a class="code" href="classSimple.html#a0">Simple</a>();
|
||||
00035
|
||||
00037 <span class="keyword">virtual</span> <a class="code" href="classSimple.html#a1">~Simple</a>();
|
||||
00034
|
||||
00037 <a class="code" href="classSimple.html#a0">Simple</a>();
|
||||
00038
|
||||
00040 <span class="keywordtype">void</span> <a class="code" href="classSimple.html#a2">clear</a>();
|
||||
00040 <a class="code" href="classSimple.html#a1">~Simple</a>();
|
||||
00041
|
||||
00043 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classSimple.html#a3">setFrequency</a>(MY_FLOAT frequency);
|
||||
00043 <span class="keywordtype">void</span> <a class="code" href="classSimple.html#a2">clear</a>();
|
||||
00044
|
||||
00046 <span class="keywordtype">void</span> <a class="code" href="classSimple.html#a4">keyOn</a>();
|
||||
00046 <span class="keywordtype">void</span> <a class="code" href="classSimple.html#a3">setFrequency</a>(StkFloat frequency);
|
||||
00047
|
||||
00049 <span class="keywordtype">void</span> <a class="code" href="classSimple.html#a5">keyOff</a>();
|
||||
00049 <span class="keywordtype">void</span> <a class="code" href="classSimple.html#a4">keyOn</a>();
|
||||
00050
|
||||
00052 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classSimple.html#a6">noteOn</a>(MY_FLOAT frequency, MY_FLOAT amplitude);
|
||||
00052 <span class="keywordtype">void</span> <a class="code" href="classSimple.html#a5">keyOff</a>();
|
||||
00053
|
||||
00055 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classSimple.html#a7">noteOff</a>(MY_FLOAT amplitude);
|
||||
00055 <span class="keywordtype">void</span> <a class="code" href="classSimple.html#a6">noteOn</a>(StkFloat frequency, StkFloat amplitude);
|
||||
00056
|
||||
00058 <span class="keyword">virtual</span> MY_FLOAT <a class="code" href="classSimple.html#a8">tick</a>();
|
||||
00058 <span class="keywordtype">void</span> <a class="code" href="classSimple.html#a7">noteOff</a>(StkFloat amplitude);
|
||||
00059
|
||||
00061 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classSimple.html#a9">controlChange</a>(<span class="keywordtype">int</span> number, MY_FLOAT value);
|
||||
00061 StkFloat <a class="code" href="classSimple.html#a8">tick</a>();
|
||||
00062
|
||||
00063 <span class="keyword">protected</span>:
|
||||
00064 <a class="code" href="classADSR.html">ADSR</a> *adsr;
|
||||
00065 <a class="code" href="classWaveLoop.html">WaveLoop</a> *loop;
|
||||
00066 <a class="code" href="classOnePole.html">OnePole</a> *filter;
|
||||
00067 <a class="code" href="classBiQuad.html">BiQuad</a> *biquad;
|
||||
00068 <a class="code" href="classNoise.html">Noise</a> *noise;
|
||||
00069 MY_FLOAT baseFrequency;
|
||||
00070 MY_FLOAT loopGain;
|
||||
00071
|
||||
00072 };
|
||||
00073
|
||||
00074 <span class="preprocessor">#endif</span>
|
||||
00064 StkFloat *<a class="code" href="classSimple.html#a8">tick</a>(StkFloat *vector, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> vectorSize);
|
||||
00065
|
||||
00067
|
||||
00073 <a class="code" href="classStkFrames.html">StkFrames</a>& <a class="code" href="classSimple.html#a8">tick</a>( <a class="code" href="classStkFrames.html">StkFrames</a>& frames, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> channel = 1 );
|
||||
00074
|
||||
00076 <span class="keywordtype">void</span> <a class="code" href="classSimple.html#a11">controlChange</a>(<span class="keywordtype">int</span> number, StkFloat value);
|
||||
00077
|
||||
00078 <span class="keyword">protected</span>:
|
||||
00079 <a class="code" href="classADSR.html">ADSR</a> adsr_;
|
||||
00080 <a class="code" href="classWaveLoop.html">WaveLoop</a> *loop_;
|
||||
00081 <a class="code" href="classOnePole.html">OnePole</a> filter_;
|
||||
00082 <a class="code" href="classBiQuad.html">BiQuad</a> biquad_;
|
||||
00083 <a class="code" href="classNoise.html">Noise</a> noise_;
|
||||
00084 StkFloat baseFrequency_;
|
||||
00085 StkFloat loopGain_;
|
||||
00086
|
||||
00087 };
|
||||
00088
|
||||
00089 <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