forked from pschatzmann/arduino-stk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathResonate_8h_source.html
164 lines (164 loc) · 25.7 KB
/
Resonate_8h_source.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Arduino STK: Resonate.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">Arduino STK
 <span id="projectnumber">4.6.2</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">Resonate.h</div> </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="preprocessor">#ifndef STK_RESONATE_H</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="preprocessor">#define STK_RESONATE_H</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span>  </div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="preprocessor">#include "Instrmnt.h"</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="preprocessor">#include "ADSR.h"</span></div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="preprocessor">#include "BiQuad.h"</span></div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="preprocessor">#include "Noise.h"</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>  </div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="keyword">namespace </span><a class="code" href="namespacestk.html">stk</a> {</div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>  </div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment">/***************************************************/</span></div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="comment">/***************************************************/</span></div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  </div>
<div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="classstk_1_1Resonate.html"> 30</a></span> <span class="keyword">class </span><a class="code" href="classstk_1_1Resonate.html">Resonate</a> : <span class="keyword">public</span> <a class="code" href="classstk_1_1Instrmnt.html">Instrmnt</a></div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> {</div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  <span class="keyword">public</span>:</div>
<div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="classstk_1_1Resonate.html#ab273b41ec296f776a41cfa66bb1e430e"> 34</a></span>  <a class="code" href="classstk_1_1Resonate.html#ab273b41ec296f776a41cfa66bb1e430e">Resonate</a>( <span class="keywordtype">void</span> );</div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  </div>
<div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="classstk_1_1Resonate.html#a634ab2db8eabad147fa90fb1bf72a580"> 37</a></span>  <a class="code" href="classstk_1_1Resonate.html#a634ab2db8eabad147fa90fb1bf72a580">~Resonate</a>( <span class="keywordtype">void</span> );</div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  </div>
<div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="classstk_1_1Resonate.html#a8767e6c05862c183483776ac4cf354f9"> 40</a></span>  <span class="keywordtype">void</span> <a class="code" href="classstk_1_1Resonate.html#a8767e6c05862c183483776ac4cf354f9">setResonance</a>( StkFloat frequency, StkFloat radius );</div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  </div>
<div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="classstk_1_1Resonate.html#ad4476301fba545cbbfc773150ca6901d"> 43</a></span>  <span class="keywordtype">void</span> <a class="code" href="classstk_1_1Resonate.html#ad4476301fba545cbbfc773150ca6901d">setNotch</a>( StkFloat frequency, StkFloat radius );</div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  </div>
<div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="classstk_1_1Resonate.html#ad8000ad734634ac7334f4fab09a13a7e"> 46</a></span>  <span class="keywordtype">void</span> <a class="code" href="classstk_1_1Resonate.html#ad8000ad734634ac7334f4fab09a13a7e">setEqualGainZeroes</a>( <span class="keywordtype">void</span> ) { filter_.<a class="code" href="classstk_1_1BiQuad.html#a28881f5876ce5bdcc846367cca9363f7">setEqualGainZeroes</a>(); };</div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  </div>
<div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="classstk_1_1Resonate.html#afebf784a302eb0043b4a453b0d1d852c"> 49</a></span>  <span class="keywordtype">void</span> <a class="code" href="classstk_1_1Resonate.html#afebf784a302eb0043b4a453b0d1d852c">keyOn</a>( <span class="keywordtype">void</span> ) { adsr_.<a class="code" href="classstk_1_1ADSR.html#aad03e82009a20cfb49c1f04bae791631">keyOn</a>(); };</div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  </div>
<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="classstk_1_1Resonate.html#a0008e1fdd7611b769b72b52c8bfb1e6a"> 52</a></span>  <span class="keywordtype">void</span> <a class="code" href="classstk_1_1Resonate.html#a0008e1fdd7611b769b72b52c8bfb1e6a">keyOff</a>( <span class="keywordtype">void</span> ) { adsr_.<a class="code" href="classstk_1_1ADSR.html#a9400e04b313ab8900a3ba9b693f448e6">keyOff</a>(); };</div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  </div>
<div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="classstk_1_1Resonate.html#a76bfadc70f4163f9767e7864d322d144"> 55</a></span>  <span class="keywordtype">void</span> <a class="code" href="classstk_1_1Resonate.html#a76bfadc70f4163f9767e7864d322d144">noteOn</a>( StkFloat frequency, StkFloat amplitude );</div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  </div>
<div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="classstk_1_1Resonate.html#a0454a8e9d6ef3a2394b6c348edf0195f"> 58</a></span>  <span class="keywordtype">void</span> <a class="code" href="classstk_1_1Resonate.html#a0454a8e9d6ef3a2394b6c348edf0195f">noteOff</a>( StkFloat amplitude );</div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  </div>
<div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="classstk_1_1Resonate.html#af55feabf25f1f6f996c32574656ffd68"> 61</a></span>  <span class="keywordtype">void</span> <a class="code" href="classstk_1_1Resonate.html#af55feabf25f1f6f996c32574656ffd68">controlChange</a>( <span class="keywordtype">int</span> number, StkFloat value );</div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  </div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  StkFloat <a class="code" href="classstk_1_1Resonate.html#ab917279f4f57d5d305481426e9bffd98">tick</a>( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> channel = 0 );</div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  </div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  </div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <a class="code" href="classstk_1_1StkFrames.html">StkFrames</a>& <a class="code" href="classstk_1_1Resonate.html#ab917279f4f57d5d305481426e9bffd98">tick</a>( <a class="code" href="classstk_1_1StkFrames.html">StkFrames</a>& frames, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> channel = 0 );</div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  </div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  <span class="keyword">protected</span>:</div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  </div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <a class="code" href="classstk_1_1ADSR.html">ADSR</a> adsr_;</div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  <a class="code" href="classstk_1_1BiQuad.html">BiQuad</a> filter_;</div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  <a class="code" href="classstk_1_1Noise.html">Noise</a> noise_;</div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  StkFloat poleFrequency_;</div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  StkFloat poleRadius_;</div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  StkFloat zeroFrequency_;</div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  StkFloat zeroRadius_;</div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  </div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span> };</div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  </div>
<div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="classstk_1_1Resonate.html#ab917279f4f57d5d305481426e9bffd98"> 88</a></span> <span class="keyword">inline</span> StkFloat <a class="code" href="classstk_1_1Resonate.html#ab917279f4f57d5d305481426e9bffd98">Resonate :: tick</a>( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> )</div>
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span> {</div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  lastFrame_[0] = filter_.<a class="code" href="classstk_1_1BiQuad.html#a648086962c3cddcaa09c46a002c3e635">tick</a>( noise_.<a class="code" href="classstk_1_1Noise.html#a8ac40f69475eb744e803d557e8438a6d">tick</a>() );</div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  lastFrame_[0] *= adsr_.<a class="code" href="classstk_1_1ADSR.html#af2c0869f86210a55f4f668172373c975">tick</a>();</div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <span class="keywordflow">return</span> lastFrame_[0];</div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span> }</div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  </div>
<div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="classstk_1_1Resonate.html#aeefb870c1eeb430160fdca374e8324b3"> 95</a></span> <span class="keyword">inline</span> <a class="code" href="classstk_1_1StkFrames.html">StkFrames</a>& <a class="code" href="classstk_1_1Resonate.html#ab917279f4f57d5d305481426e9bffd98">Resonate :: tick</a>( <a class="code" href="classstk_1_1StkFrames.html">StkFrames</a>& frames, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> channel )</div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span> {</div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> nChannels = lastFrame_.<a class="code" href="classstk_1_1StkFrames.html#a0340d9e76707282658e49509a568f60e">channels</a>();</div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span> <span class="preprocessor">#if defined(_STK_DEBUG_)</span></div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <span class="keywordflow">if</span> ( channel > frames.<a class="code" href="classstk_1_1StkFrames.html#a0340d9e76707282658e49509a568f60e">channels</a>() - nChannels ) {</div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  oStream_ << <span class="stringliteral">"Resonate::tick(): channel and StkFrames arguments are incompatible!"</span>;</div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  <a class="code" href="classstk_1_1Stk.html#a48ac73a0d8ca28445ba1a054e1f061ff">handleError</a>( StkError::FUNCTION_ARGUMENT );</div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  }</div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  </div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  StkFloat *samples = &frames[channel];</div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> j, hop = frames.<a class="code" href="classstk_1_1StkFrames.html#a0340d9e76707282658e49509a568f60e">channels</a>() - nChannels;</div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  <span class="keywordflow">if</span> ( nChannels == 1 ) {</div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  <span class="keywordflow">for</span> ( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i=0; i<frames.<a class="code" href="classstk_1_1StkFrames.html#a0fc22e21feecdee966f0203722b9c168">frames</a>(); i++, samples += hop )</div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  *samples++ = <a class="code" href="classstk_1_1Resonate.html#ab917279f4f57d5d305481426e9bffd98">tick</a>();</div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  }</div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <span class="keywordflow">for</span> ( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i=0; i<frames.<a class="code" href="classstk_1_1StkFrames.html#a0fc22e21feecdee966f0203722b9c168">frames</a>(); i++, samples += hop ) {</div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  *samples++ = <a class="code" href="classstk_1_1Resonate.html#ab917279f4f57d5d305481426e9bffd98">tick</a>();</div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  <span class="keywordflow">for</span> ( j=1; j<nChannels; j++ )</div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  *samples++ = lastFrame_[j];</div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  }</div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  }</div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  </div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  <span class="keywordflow">return</span> frames;</div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span> }</div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  </div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span> } <span class="comment">// stk namespace</span></div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  </div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span> <span class="preprocessor">#endif</span></div>
<div class="ttc" id="aclassstk_1_1ADSR_html"><div class="ttname"><a href="classstk_1_1ADSR.html">stk::ADSR</a></div><div class="ttdoc">STK ADSR envelope class.</div><div class="ttdef"><b>Definition:</b> ADSR.h:27</div></div>
<div class="ttc" id="aclassstk_1_1ADSR_html_a9400e04b313ab8900a3ba9b693f448e6"><div class="ttname"><a href="classstk_1_1ADSR.html#a9400e04b313ab8900a3ba9b693f448e6">stk::ADSR::keyOff</a></div><div class="ttdeci">void keyOff(void)</div><div class="ttdoc">Set target = 0, state = ADSR::RELEASE.</div></div>
<div class="ttc" id="aclassstk_1_1ADSR_html_aad03e82009a20cfb49c1f04bae791631"><div class="ttname"><a href="classstk_1_1ADSR.html#aad03e82009a20cfb49c1f04bae791631">stk::ADSR::keyOn</a></div><div class="ttdeci">void keyOn(void)</div><div class="ttdoc">Set target = 1, state = ADSR::ATTACK.</div></div>
<div class="ttc" id="aclassstk_1_1ADSR_html_af2c0869f86210a55f4f668172373c975"><div class="ttname"><a href="classstk_1_1ADSR.html#af2c0869f86210a55f4f668172373c975">stk::ADSR::tick</a></div><div class="ttdeci">StkFloat tick(void)</div><div class="ttdoc">Compute and return one output sample.</div><div class="ttdef"><b>Definition:</b> ADSR.h:117</div></div>
<div class="ttc" id="aclassstk_1_1BiQuad_html"><div class="ttname"><a href="classstk_1_1BiQuad.html">stk::BiQuad</a></div><div class="ttdoc">STK biquad (two-pole, two-zero) filter class.</div><div class="ttdef"><b>Definition:</b> BiQuad.h:21</div></div>
<div class="ttc" id="aclassstk_1_1BiQuad_html_a28881f5876ce5bdcc846367cca9363f7"><div class="ttname"><a href="classstk_1_1BiQuad.html#a28881f5876ce5bdcc846367cca9363f7">stk::BiQuad::setEqualGainZeroes</a></div><div class="ttdeci">void setEqualGainZeroes(void)</div><div class="ttdoc">Sets the filter zeroes for equal resonance gain.</div></div>
<div class="ttc" id="aclassstk_1_1BiQuad_html_a648086962c3cddcaa09c46a002c3e635"><div class="ttname"><a href="classstk_1_1BiQuad.html#a648086962c3cddcaa09c46a002c3e635">stk::BiQuad::tick</a></div><div class="ttdeci">StkFloat tick(StkFloat input)</div><div class="ttdoc">Input one sample to the filter and return a reference to one output.</div><div class="ttdef"><b>Definition:</b> BiQuad.h:119</div></div>
<div class="ttc" id="aclassstk_1_1Instrmnt_html"><div class="ttname"><a href="classstk_1_1Instrmnt.html">stk::Instrmnt</a></div><div class="ttdoc">STK instrument abstract base class.</div><div class="ttdef"><b>Definition:</b> Instrmnt.h:20</div></div>
<div class="ttc" id="aclassstk_1_1Noise_html"><div class="ttname"><a href="classstk_1_1Noise.html">stk::Noise</a></div><div class="ttdoc">STK noise generator.</div><div class="ttdef"><b>Definition:</b> Noise.h:22</div></div>
<div class="ttc" id="aclassstk_1_1Noise_html_a8ac40f69475eb744e803d557e8438a6d"><div class="ttname"><a href="classstk_1_1Noise.html#a8ac40f69475eb744e803d557e8438a6d">stk::Noise::tick</a></div><div class="ttdeci">StkFloat tick(void)</div><div class="ttdoc">Compute and return one output sample.</div><div class="ttdef"><b>Definition:</b> Noise.h:59</div></div>
<div class="ttc" id="aclassstk_1_1Resonate_html"><div class="ttname"><a href="classstk_1_1Resonate.html">stk::Resonate</a></div><div class="ttdoc">STK noise driven formant filter.</div><div class="ttdef"><b>Definition:</b> Resonate.h:31</div></div>
<div class="ttc" id="aclassstk_1_1Resonate_html_a0008e1fdd7611b769b72b52c8bfb1e6a"><div class="ttname"><a href="classstk_1_1Resonate.html#a0008e1fdd7611b769b72b52c8bfb1e6a">stk::Resonate::keyOff</a></div><div class="ttdeci">void keyOff(void)</div><div class="ttdoc">Signal a key-off event to the envelope.</div><div class="ttdef"><b>Definition:</b> Resonate.h:52</div></div>
<div class="ttc" id="aclassstk_1_1Resonate_html_a0454a8e9d6ef3a2394b6c348edf0195f"><div class="ttname"><a href="classstk_1_1Resonate.html#a0454a8e9d6ef3a2394b6c348edf0195f">stk::Resonate::noteOff</a></div><div class="ttdeci">void noteOff(StkFloat amplitude)</div><div class="ttdoc">Stop a note with the given amplitude (speed of decay).</div></div>
<div class="ttc" id="aclassstk_1_1Resonate_html_a634ab2db8eabad147fa90fb1bf72a580"><div class="ttname"><a href="classstk_1_1Resonate.html#a634ab2db8eabad147fa90fb1bf72a580">stk::Resonate::~Resonate</a></div><div class="ttdeci">~Resonate(void)</div><div class="ttdoc">Class destructor.</div></div>
<div class="ttc" id="aclassstk_1_1Resonate_html_a76bfadc70f4163f9767e7864d322d144"><div class="ttname"><a href="classstk_1_1Resonate.html#a76bfadc70f4163f9767e7864d322d144">stk::Resonate::noteOn</a></div><div class="ttdeci">void noteOn(StkFloat frequency, StkFloat amplitude)</div><div class="ttdoc">Start a note with the given frequency and amplitude.</div></div>
<div class="ttc" id="aclassstk_1_1Resonate_html_a8767e6c05862c183483776ac4cf354f9"><div class="ttname"><a href="classstk_1_1Resonate.html#a8767e6c05862c183483776ac4cf354f9">stk::Resonate::setResonance</a></div><div class="ttdeci">void setResonance(StkFloat frequency, StkFloat radius)</div><div class="ttdoc">Set the filter for a resonance at the given frequency (Hz) and radius.</div></div>
<div class="ttc" id="aclassstk_1_1Resonate_html_ab273b41ec296f776a41cfa66bb1e430e"><div class="ttname"><a href="classstk_1_1Resonate.html#ab273b41ec296f776a41cfa66bb1e430e">stk::Resonate::Resonate</a></div><div class="ttdeci">Resonate(void)</div><div class="ttdoc">Class constructor.</div></div>
<div class="ttc" id="aclassstk_1_1Resonate_html_ab917279f4f57d5d305481426e9bffd98"><div class="ttname"><a href="classstk_1_1Resonate.html#ab917279f4f57d5d305481426e9bffd98">stk::Resonate::tick</a></div><div class="ttdeci">StkFloat tick(unsigned int channel=0)</div><div class="ttdoc">Compute and return one output sample.</div><div class="ttdef"><b>Definition:</b> Resonate.h:88</div></div>
<div class="ttc" id="aclassstk_1_1Resonate_html_ad4476301fba545cbbfc773150ca6901d"><div class="ttname"><a href="classstk_1_1Resonate.html#ad4476301fba545cbbfc773150ca6901d">stk::Resonate::setNotch</a></div><div class="ttdeci">void setNotch(StkFloat frequency, StkFloat radius)</div><div class="ttdoc">Set the filter for a notch at the given frequency (Hz) and radius.</div></div>
<div class="ttc" id="aclassstk_1_1Resonate_html_ad8000ad734634ac7334f4fab09a13a7e"><div class="ttname"><a href="classstk_1_1Resonate.html#ad8000ad734634ac7334f4fab09a13a7e">stk::Resonate::setEqualGainZeroes</a></div><div class="ttdeci">void setEqualGainZeroes(void)</div><div class="ttdoc">Set the filter zero coefficients for contant resonance gain.</div><div class="ttdef"><b>Definition:</b> Resonate.h:46</div></div>
<div class="ttc" id="aclassstk_1_1Resonate_html_af55feabf25f1f6f996c32574656ffd68"><div class="ttname"><a href="classstk_1_1Resonate.html#af55feabf25f1f6f996c32574656ffd68">stk::Resonate::controlChange</a></div><div class="ttdeci">void controlChange(int number, StkFloat value)</div><div class="ttdoc">Perform the control change specified by number and value (0.0 - 128.0).</div></div>
<div class="ttc" id="aclassstk_1_1Resonate_html_afebf784a302eb0043b4a453b0d1d852c"><div class="ttname"><a href="classstk_1_1Resonate.html#afebf784a302eb0043b4a453b0d1d852c">stk::Resonate::keyOn</a></div><div class="ttdeci">void keyOn(void)</div><div class="ttdoc">Initiate the envelope with a key-on event.</div><div class="ttdef"><b>Definition:</b> Resonate.h:49</div></div>
<div class="ttc" id="aclassstk_1_1StkFrames_html"><div class="ttname"><a href="classstk_1_1StkFrames.html">stk::StkFrames</a></div><div class="ttdoc">An STK class to handle vectorized audio data.</div><div class="ttdef"><b>Definition:</b> Stk.h:287</div></div>
<div class="ttc" id="aclassstk_1_1StkFrames_html_a0340d9e76707282658e49509a568f60e"><div class="ttname"><a href="classstk_1_1StkFrames.html#a0340d9e76707282658e49509a568f60e">stk::StkFrames::channels</a></div><div class="ttdeci">unsigned int channels(void) const</div><div class="ttdoc">Return the number of channels represented by the data.</div><div class="ttdef"><b>Definition:</b> Stk.h:415</div></div>
<div class="ttc" id="aclassstk_1_1StkFrames_html_a0fc22e21feecdee966f0203722b9c168"><div class="ttname"><a href="classstk_1_1StkFrames.html#a0fc22e21feecdee966f0203722b9c168">stk::StkFrames::frames</a></div><div class="ttdeci">unsigned int frames(void) const</div><div class="ttdoc">Return the number of sample frames represented by the data.</div><div class="ttdef"><b>Definition:</b> Stk.h:418</div></div>
<div class="ttc" id="aclassstk_1_1Stk_html_a48ac73a0d8ca28445ba1a054e1f061ff"><div class="ttname"><a href="classstk_1_1Stk.html#a48ac73a0d8ca28445ba1a054e1f061ff">stk::Stk::handleError</a></div><div class="ttdeci">static void handleError(const char *message, StkError::Type type)</div><div class="ttdoc">Static function for error reporting and handling using c-strings.</div></div>
<div class="ttc" id="anamespacestk_html"><div class="ttname"><a href="namespacestk.html">stk</a></div><div class="ttdoc">The STK namespace.</div><div class="ttdef"><b>Definition:</b> ADSR.h:8</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>