forked from pschatzmann/arduino-stk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMesh2D_8h_source.html
169 lines (169 loc) · 25.4 KB
/
Mesh2D_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
165
166
167
168
169
<!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: Mesh2D.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">Mesh2D.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_MESH2D_H</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="preprocessor">#define STK_MESH2D_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 "OnePole.h"</span></div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>  </div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="keyword">namespace </span><a class="code" href="namespacestk.html">stk</a> {</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="comment">/***************************************************/</span></div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="comment">/***************************************************/</span></div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  </div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> NXMAX = 12;</div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> NYMAX = 12;</div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  </div>
<div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="classstk_1_1Mesh2D.html"> 38</a></span> <span class="keyword">class </span><a class="code" href="classstk_1_1Mesh2D.html">Mesh2D</a> : <span class="keyword">public</span> <a class="code" href="classstk_1_1Instrmnt.html">Instrmnt</a></div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span> {</div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  <span class="keyword">public</span>:</div>
<div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="classstk_1_1Mesh2D.html#aef48c3c65901f62a8dbdbe606763203e"> 42</a></span>  <a class="code" href="classstk_1_1Mesh2D.html#aef48c3c65901f62a8dbdbe606763203e">Mesh2D</a>( <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> nX, <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> nY );</div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  </div>
<div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="classstk_1_1Mesh2D.html#ac4abd6b5190587d69c7c2b13870fb646"> 45</a></span>  <a class="code" href="classstk_1_1Mesh2D.html#ac4abd6b5190587d69c7c2b13870fb646">~Mesh2D</a>( <span class="keywordtype">void</span> );</div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  </div>
<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="classstk_1_1Mesh2D.html#a49f56b4865dc041ae874fbc1b80e967b"> 48</a></span>  <span class="keywordtype">void</span> <a class="code" href="classstk_1_1Mesh2D.html#a49f56b4865dc041ae874fbc1b80e967b">clear</a>( <span class="keywordtype">void</span> );</div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  </div>
<div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="classstk_1_1Mesh2D.html#a6834a52f03b072e18387b799f804527b"> 51</a></span>  <span class="keywordtype">void</span> <a class="code" href="classstk_1_1Mesh2D.html#a6834a52f03b072e18387b799f804527b">setNX</a>( <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> lenX );</div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  </div>
<div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="classstk_1_1Mesh2D.html#a2be2badaccfeb57e52e548f1b7515fbe"> 54</a></span>  <span class="keywordtype">void</span> <a class="code" href="classstk_1_1Mesh2D.html#a2be2badaccfeb57e52e548f1b7515fbe">setNY</a>( <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> lenY );</div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  </div>
<div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="classstk_1_1Mesh2D.html#a9cdfa80ecccf3f12dc184003458ba3a3"> 57</a></span>  <span class="keywordtype">void</span> <a class="code" href="classstk_1_1Mesh2D.html#a9cdfa80ecccf3f12dc184003458ba3a3">setInputPosition</a>( StkFloat xFactor, StkFloat yFactor );</div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  </div>
<div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="classstk_1_1Mesh2D.html#ab7b3d950e40308e7060e5ff9a62a8b8d"> 60</a></span>  <span class="keywordtype">void</span> <a class="code" href="classstk_1_1Mesh2D.html#ab7b3d950e40308e7060e5ff9a62a8b8d">setDecay</a>( StkFloat decayFactor );</div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  </div>
<div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="classstk_1_1Mesh2D.html#a7915dae1032ace5960c85790a7b93e0f"> 63</a></span>  <span class="keywordtype">void</span> <a class="code" href="classstk_1_1Mesh2D.html#a7915dae1032ace5960c85790a7b93e0f">noteOn</a>( StkFloat frequency, StkFloat amplitude );</div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  </div>
<div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="classstk_1_1Mesh2D.html#a0580962b3cc0dbac092581d0fc15127b"> 66</a></span>  <span class="keywordtype">void</span> <a class="code" href="classstk_1_1Mesh2D.html#a0580962b3cc0dbac092581d0fc15127b">noteOff</a>( StkFloat amplitude );</div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  </div>
<div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="classstk_1_1Mesh2D.html#a52d9552b67edea0fc6ff3e949d6331a0"> 69</a></span>  StkFloat <a class="code" href="classstk_1_1Mesh2D.html#a52d9552b67edea0fc6ff3e949d6331a0">energy</a>( <span class="keywordtype">void</span> );</div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  </div>
<div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="classstk_1_1Mesh2D.html#a688bed8725ef2d8bf4c6465251bd8b86"> 72</a></span>  StkFloat <a class="code" href="classstk_1_1Mesh2D.html#a688bed8725ef2d8bf4c6465251bd8b86">inputTick</a>( StkFloat input );</div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  </div>
<div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="classstk_1_1Mesh2D.html#acc618a91b288305785644d852cfdaf83"> 75</a></span>  <span class="keywordtype">void</span> <a class="code" href="classstk_1_1Mesh2D.html#acc618a91b288305785644d852cfdaf83">controlChange</a>( <span class="keywordtype">int</span> number, StkFloat value );</div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  </div>
<div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="classstk_1_1Mesh2D.html#ae8a7e86e4774d8738098c79ab0d5e00a"> 78</a></span>  StkFloat <a class="code" href="classstk_1_1Mesh2D.html#ae8a7e86e4774d8738098c79ab0d5e00a">tick</a>( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> channel = 0 );</div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  </div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  </div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <a class="code" href="classstk_1_1StkFrames.html">StkFrames</a>& <a class="code" href="classstk_1_1Mesh2D.html#ae8a7e86e4774d8738098c79ab0d5e00a">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="l00089"></a><span class="lineno"> 89</span>  </div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <span class="keyword">protected</span>:</div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  </div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  StkFloat tick0();</div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  StkFloat tick1();</div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  <span class="keywordtype">void</span> clearMesh();</div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  </div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> NX_, NY_;</div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> xInput_, yInput_;</div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  <a class="code" href="classstk_1_1OnePole.html">OnePole</a> filterX_[NXMAX];</div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <a class="code" href="classstk_1_1OnePole.html">OnePole</a> filterY_[NYMAX];</div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  StkFloat v_[NXMAX-1][NYMAX-1]; <span class="comment">// junction velocities</span></div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  StkFloat vxp_[NXMAX][NYMAX]; <span class="comment">// positive-x velocity wave</span></div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  StkFloat vxm_[NXMAX][NYMAX]; <span class="comment">// negative-x velocity wave</span></div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  StkFloat vyp_[NXMAX][NYMAX]; <span class="comment">// positive-y velocity wave</span></div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  StkFloat vym_[NXMAX][NYMAX]; <span class="comment">// negative-y velocity wave</span></div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  </div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  <span class="comment">// Alternate buffers</span></div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  StkFloat vxp1_[NXMAX][NYMAX]; <span class="comment">// positive-x velocity wave</span></div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  StkFloat vxm1_[NXMAX][NYMAX]; <span class="comment">// negative-x velocity wave</span></div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  StkFloat vyp1_[NXMAX][NYMAX]; <span class="comment">// positive-y velocity wave</span></div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  StkFloat vym1_[NXMAX][NYMAX]; <span class="comment">// negative-y velocity wave</span></div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  </div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <span class="keywordtype">int</span> counter_; <span class="comment">// time in samples</span></div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span> };</div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  </div>
<div class="line"><a name="l00115"></a><span class="lineno"><a class="line" href="classstk_1_1Mesh2D.html#a0bfe62f0ab05859963571f4a9a569bd8"> 115</a></span> <span class="keyword">inline</span> <a class="code" href="classstk_1_1StkFrames.html">StkFrames</a>& <a class="code" href="classstk_1_1Mesh2D.html#ae8a7e86e4774d8738098c79ab0d5e00a">Mesh2D :: 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="l00116"></a><span class="lineno"> 116</span> {</div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</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="l00118"></a><span class="lineno"> 118</span> <span class="preprocessor">#if defined(_STK_DEBUG_)</span></div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</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="l00120"></a><span class="lineno"> 120</span>  oStream_ << <span class="stringliteral">"Mesh2D::tick(): channel and StkFrames arguments are incompatible!"</span>;</div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  <a class="code" href="classstk_1_1Stk.html#a48ac73a0d8ca28445ba1a054e1f061ff">handleError</a>( StkError::FUNCTION_ARGUMENT );</div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  }</div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  </div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  StkFloat *samples = &frames[channel];</div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</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="l00127"></a><span class="lineno"> 127</span>  <span class="keywordflow">if</span> ( nChannels == 1 ) {</div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</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="l00129"></a><span class="lineno"> 129</span>  *samples++ = <a class="code" href="classstk_1_1Mesh2D.html#ae8a7e86e4774d8738098c79ab0d5e00a">tick</a>();</div>
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  }</div>
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00132"></a><span class="lineno"> 132</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="l00133"></a><span class="lineno"> 133</span>  *samples++ = <a class="code" href="classstk_1_1Mesh2D.html#ae8a7e86e4774d8738098c79ab0d5e00a">tick</a>();</div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  <span class="keywordflow">for</span> ( j=1; j<nChannels; j++ )</div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  *samples++ = lastFrame_[j];</div>
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  }</div>
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  }</div>
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  </div>
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  <span class="keywordflow">return</span> frames;</div>
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span> }</div>
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  </div>
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span> } <span class="comment">// stk namespace</span></div>
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  </div>
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span> <span class="preprocessor">#endif</span></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_1Mesh2D_html"><div class="ttname"><a href="classstk_1_1Mesh2D.html">stk::Mesh2D</a></div><div class="ttdoc">Two-dimensional rectilinear waveguide mesh class.</div><div class="ttdef"><b>Definition:</b> Mesh2D.h:39</div></div>
<div class="ttc" id="aclassstk_1_1Mesh2D_html_a0580962b3cc0dbac092581d0fc15127b"><div class="ttname"><a href="classstk_1_1Mesh2D.html#a0580962b3cc0dbac092581d0fc15127b">stk::Mesh2D::noteOff</a></div><div class="ttdeci">void noteOff(StkFloat amplitude)</div><div class="ttdoc">Stop a note with the given amplitude (speed of decay) ... currently ignored.</div></div>
<div class="ttc" id="aclassstk_1_1Mesh2D_html_a2be2badaccfeb57e52e548f1b7515fbe"><div class="ttname"><a href="classstk_1_1Mesh2D.html#a2be2badaccfeb57e52e548f1b7515fbe">stk::Mesh2D::setNY</a></div><div class="ttdeci">void setNY(unsigned short lenY)</div><div class="ttdoc">Set the y dimension size in samples.</div></div>
<div class="ttc" id="aclassstk_1_1Mesh2D_html_a49f56b4865dc041ae874fbc1b80e967b"><div class="ttname"><a href="classstk_1_1Mesh2D.html#a49f56b4865dc041ae874fbc1b80e967b">stk::Mesh2D::clear</a></div><div class="ttdeci">void clear(void)</div><div class="ttdoc">Reset and clear all internal state.</div></div>
<div class="ttc" id="aclassstk_1_1Mesh2D_html_a52d9552b67edea0fc6ff3e949d6331a0"><div class="ttname"><a href="classstk_1_1Mesh2D.html#a52d9552b67edea0fc6ff3e949d6331a0">stk::Mesh2D::energy</a></div><div class="ttdeci">StkFloat energy(void)</div><div class="ttdoc">Calculate and return the signal energy stored in the mesh.</div></div>
<div class="ttc" id="aclassstk_1_1Mesh2D_html_a6834a52f03b072e18387b799f804527b"><div class="ttname"><a href="classstk_1_1Mesh2D.html#a6834a52f03b072e18387b799f804527b">stk::Mesh2D::setNX</a></div><div class="ttdeci">void setNX(unsigned short lenX)</div><div class="ttdoc">Set the x dimension size in samples.</div></div>
<div class="ttc" id="aclassstk_1_1Mesh2D_html_a688bed8725ef2d8bf4c6465251bd8b86"><div class="ttname"><a href="classstk_1_1Mesh2D.html#a688bed8725ef2d8bf4c6465251bd8b86">stk::Mesh2D::inputTick</a></div><div class="ttdeci">StkFloat inputTick(StkFloat input)</div><div class="ttdoc">Input a sample to the mesh and compute one output sample.</div></div>
<div class="ttc" id="aclassstk_1_1Mesh2D_html_a7915dae1032ace5960c85790a7b93e0f"><div class="ttname"><a href="classstk_1_1Mesh2D.html#a7915dae1032ace5960c85790a7b93e0f">stk::Mesh2D::noteOn</a></div><div class="ttdeci">void noteOn(StkFloat frequency, StkFloat amplitude)</div><div class="ttdoc">Impulse the mesh with the given amplitude (frequency ignored).</div></div>
<div class="ttc" id="aclassstk_1_1Mesh2D_html_a9cdfa80ecccf3f12dc184003458ba3a3"><div class="ttname"><a href="classstk_1_1Mesh2D.html#a9cdfa80ecccf3f12dc184003458ba3a3">stk::Mesh2D::setInputPosition</a></div><div class="ttdeci">void setInputPosition(StkFloat xFactor, StkFloat yFactor)</div><div class="ttdoc">Set the x, y input position on a 0.0 - 1.0 scale.</div></div>
<div class="ttc" id="aclassstk_1_1Mesh2D_html_ab7b3d950e40308e7060e5ff9a62a8b8d"><div class="ttname"><a href="classstk_1_1Mesh2D.html#ab7b3d950e40308e7060e5ff9a62a8b8d">stk::Mesh2D::setDecay</a></div><div class="ttdeci">void setDecay(StkFloat decayFactor)</div><div class="ttdoc">Set the loss filters gains (0.0 - 1.0).</div></div>
<div class="ttc" id="aclassstk_1_1Mesh2D_html_ac4abd6b5190587d69c7c2b13870fb646"><div class="ttname"><a href="classstk_1_1Mesh2D.html#ac4abd6b5190587d69c7c2b13870fb646">stk::Mesh2D::~Mesh2D</a></div><div class="ttdeci">~Mesh2D(void)</div><div class="ttdoc">Class destructor.</div></div>
<div class="ttc" id="aclassstk_1_1Mesh2D_html_acc618a91b288305785644d852cfdaf83"><div class="ttname"><a href="classstk_1_1Mesh2D.html#acc618a91b288305785644d852cfdaf83">stk::Mesh2D::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_1Mesh2D_html_ae8a7e86e4774d8738098c79ab0d5e00a"><div class="ttname"><a href="classstk_1_1Mesh2D.html#ae8a7e86e4774d8738098c79ab0d5e00a">stk::Mesh2D::tick</a></div><div class="ttdeci">StkFloat tick(unsigned int channel=0)</div><div class="ttdoc">Compute and return one output sample.</div></div>
<div class="ttc" id="aclassstk_1_1Mesh2D_html_aef48c3c65901f62a8dbdbe606763203e"><div class="ttname"><a href="classstk_1_1Mesh2D.html#aef48c3c65901f62a8dbdbe606763203e">stk::Mesh2D::Mesh2D</a></div><div class="ttdeci">Mesh2D(unsigned short nX, unsigned short nY)</div><div class="ttdoc">Class constructor, taking the x and y dimensions in samples.</div></div>
<div class="ttc" id="aclassstk_1_1OnePole_html"><div class="ttname"><a href="classstk_1_1OnePole.html">stk::OnePole</a></div><div class="ttdoc">STK one-pole filter class.</div><div class="ttdef"><b>Definition:</b> OnePole.h:21</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>