forked from pschatzmann/arduino-stk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFileLoop_8h_source.html
153 lines (153 loc) · 27.3 KB
/
FileLoop_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
<!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: FileLoop.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">FileLoop.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_FILELOOP_H</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="preprocessor">#define STK_FILELOOP_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 "FileWvIn.h"</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span>  </div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="keyword">namespace </span><a class="code" href="namespacestk.html">stk</a> {</div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span>  </div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment">/***************************************************/</span></div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="comment">/***************************************************/</span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  </div>
<div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="classstk_1_1FileLoop.html"> 26</a></span> <span class="keyword">class </span><a class="code" href="classstk_1_1FileLoop.html">FileLoop</a> : <span class="keyword">protected</span> <a class="code" href="classstk_1_1FileWvIn.html">FileWvIn</a></div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> {</div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  <span class="keyword">public</span>:</div>
<div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="classstk_1_1FileLoop.html#a0d977aae11d75d0327057add00fa7f84"> 30</a></span>  <a class="code" href="classstk_1_1FileLoop.html#a0d977aae11d75d0327057add00fa7f84">FileLoop</a>( <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> chunkThreshold = 1000000, <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> chunkSize = 1024 );</div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  </div>
<div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="classstk_1_1FileLoop.html#a0092cb30a205060d006c3d8f052dbea9"> 33</a></span>  <a class="code" href="classstk_1_1FileLoop.html#a0092cb30a205060d006c3d8f052dbea9">FileLoop</a>( std::string fileName, <span class="keywordtype">bool</span> raw = <span class="keyword">false</span>, <span class="keywordtype">bool</span> doNormalize = <span class="keyword">true</span>,</div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> chunkThreshold = 1000000, <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> chunkSize = 1024,</div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  <span class="keywordtype">bool</span> doInt2FloatScaling = <span class="keyword">true</span> );</div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  </div>
<div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="classstk_1_1FileLoop.html#ab6f0e0f9a5cc9c99627d0e12db007905"> 38</a></span>  <a class="code" href="classstk_1_1FileLoop.html#ab6f0e0f9a5cc9c99627d0e12db007905">~FileLoop</a>( <span class="keywordtype">void</span> );</div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  </div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  </div>
<div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="classstk_1_1FileLoop.html#a9cc9c429c439e35c3c8b4a6e347fc765"> 51</a></span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classstk_1_1FileLoop.html#a9cc9c429c439e35c3c8b4a6e347fc765">openFile</a>( std::string fileName, <span class="keywordtype">bool</span> raw = <span class="keyword">false</span>, <span class="keywordtype">bool</span> doNormalize = <span class="keyword">true</span>, <span class="keywordtype">bool</span> doInt2FloatScaling = <span class="keyword">true</span> );</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_1FileLoop.html#a2b5463ce0cd0efb7460761198e61bc35"> 54</a></span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classstk_1_1FileLoop.html#a2b5463ce0cd0efb7460761198e61bc35">closeFile</a>( <span class="keywordtype">void</span> ) { <a class="code" href="classstk_1_1FileWvIn.html#ae586a93b45a979881d9bd6fc1cb364cb">FileWvIn::closeFile</a>(); };</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_1FileLoop.html#a76344714f6edc231a20dc6a303e26786"> 57</a></span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classstk_1_1FileLoop.html#a76344714f6edc231a20dc6a303e26786">reset</a>( <span class="keywordtype">void</span> ) { <a class="code" href="classstk_1_1FileWvIn.html#ac7dfd47e46a083d434e63c9d1b8c3d28">FileWvIn::reset</a>(); };</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_1FileLoop.html#a51017c19f02884c00ed3557538ac11dd"> 60</a></span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classstk_1_1FileLoop.html#a51017c19f02884c00ed3557538ac11dd">channelsOut</a>( <span class="keywordtype">void</span> )<span class="keyword"> const </span>{ <span class="keywordflow">return</span> data_.<a class="code" href="classstk_1_1StkFrames.html#a0340d9e76707282658e49509a568f60e">channels</a>(); };</div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  </div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  </div>
<div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="classstk_1_1FileLoop.html#a7c4a3d5c427154bf653f86a53e900b8b"> 67</a></span>  <span class="keywordtype">void</span> <a class="code" href="classstk_1_1FileLoop.html#a7c4a3d5c427154bf653f86a53e900b8b">normalize</a>( <span class="keywordtype">void</span> ) { <a class="code" href="classstk_1_1FileWvIn.html#aaecd1950fca3a5513e0efe4e86754b11">FileWvIn::normalize</a>( 1.0 ); };</div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  </div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  </div>
<div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="classstk_1_1FileLoop.html#aa1ac0c8d19f412f66f5fdb89854e2833"> 74</a></span>  <span class="keywordtype">void</span> <a class="code" href="classstk_1_1FileLoop.html#aa1ac0c8d19f412f66f5fdb89854e2833">normalize</a>( StkFloat peak ) { <a class="code" href="classstk_1_1FileWvIn.html#aaecd1950fca3a5513e0efe4e86754b11">FileWvIn::normalize</a>( peak ); };</div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  </div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <span class="comment">//unsigned long getSize( void ) const { return data_.frames(); };</span></div>
<div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="classstk_1_1FileLoop.html#ad0280bb9bb439ae4044d019b3ebc05e6"> 78</a></span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="classstk_1_1FileLoop.html#ad0280bb9bb439ae4044d019b3ebc05e6">getSize</a>( <span class="keywordtype">void</span> )<span class="keyword"> const </span>{ <span class="keywordflow">return</span> fileSize_; };</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="l00086"></a><span class="lineno"><a class="line" href="classstk_1_1FileLoop.html#a56a140a2bf6fe925ff6b88ab74699fcb"> 86</a></span>  StkFloat <a class="code" href="classstk_1_1FileLoop.html#a56a140a2bf6fe925ff6b88ab74699fcb">getFileRate</a>( <span class="keywordtype">void</span> )<span class="keyword"> const </span>{ <span class="keywordflow">return</span> data_.<a class="code" href="classstk_1_1StkFrames.html#a6380a8699744e3ba0a8a3006eb50c6c5">dataRate</a>(); };</div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  </div>
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  </div>
<div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="classstk_1_1FileLoop.html#a13e1f693bc8a29d9051a400087347a3c"> 92</a></span>  <span class="keywordtype">void</span> <a class="code" href="classstk_1_1FileLoop.html#a13e1f693bc8a29d9051a400087347a3c">setRate</a>( StkFloat rate );</div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  </div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  </div>
<div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="classstk_1_1FileLoop.html#aec8f94d8514b266acd83106ed0f24ead"> 101</a></span>  <span class="keywordtype">void</span> <a class="code" href="classstk_1_1FileLoop.html#aec8f94d8514b266acd83106ed0f24ead">setFrequency</a>( StkFloat frequency ) { this-><a class="code" href="classstk_1_1FileLoop.html#a13e1f693bc8a29d9051a400087347a3c">setRate</a>( fileSize_ * frequency / <a class="code" href="classstk_1_1Stk.html#a5fbe37000a611ce56075ee7d8936472d">Stk::sampleRate</a>() ); };</div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  </div>
<div class="line"><a name="l00104"></a><span class="lineno"><a class="line" href="classstk_1_1FileLoop.html#a1986db79fd04b93f4d10b8cdf75bca34"> 104</a></span>  <span class="keywordtype">void</span> <a class="code" href="classstk_1_1FileLoop.html#a1986db79fd04b93f4d10b8cdf75bca34">addTime</a>( StkFloat time );</div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  </div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  </div>
<div class="line"><a name="l00112"></a><span class="lineno"><a class="line" href="classstk_1_1FileLoop.html#a8e24d6f9292a9443fbc21e4e8797f482"> 112</a></span>  <span class="keywordtype">void</span> <a class="code" href="classstk_1_1FileLoop.html#a8e24d6f9292a9443fbc21e4e8797f482">addPhase</a>( StkFloat angle );</div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  </div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  </div>
<div class="line"><a name="l00120"></a><span class="lineno"><a class="line" href="classstk_1_1FileLoop.html#afe462794ba202dd879d29c39e76ae111"> 120</a></span>  <span class="keywordtype">void</span> <a class="code" href="classstk_1_1FileLoop.html#afe462794ba202dd879d29c39e76ae111">addPhaseOffset</a>( StkFloat angle );</div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  </div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  </div>
<div class="line"><a name="l00132"></a><span class="lineno"><a class="line" href="classstk_1_1FileLoop.html#a826b6dd0968c5abd1020a9fe629a4ffd"> 132</a></span>  StkFloat <a class="code" href="classstk_1_1FileLoop.html#a826b6dd0968c5abd1020a9fe629a4ffd">lastOut</a>( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> channel = 0 ) { <span class="keywordflow">return</span> <a class="code" href="classstk_1_1FileWvIn.html#ad17c12e8d51f90f59f0d0c9f6d626608">FileWvIn::lastOut</a>( channel ); };</div>
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  </div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  </div>
<div class="line"><a name="l00144"></a><span class="lineno"><a class="line" href="classstk_1_1FileLoop.html#a037b31918134ed1839a8b48de774ab95"> 144</a></span>  StkFloat <a class="code" href="classstk_1_1FileLoop.html#a037b31918134ed1839a8b48de774ab95">tick</a>( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> channel = 0 );</div>
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  </div>
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  </div>
<div class="line"><a name="l00154"></a><span class="lineno"><a class="line" href="classstk_1_1FileLoop.html#aaa63d46af28a8d079d2439c08c398c6d"> 154</a></span>  <span class="keyword">virtual</span> <a class="code" href="classstk_1_1StkFrames.html">StkFrames</a>& <a class="code" href="classstk_1_1FileLoop.html#aaa63d46af28a8d079d2439c08c398c6d">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="l00155"></a><span class="lineno"> 155</span>  </div>
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  <span class="keyword">protected</span>:</div>
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  <span class="keywordtype">void</span> fileRead( <a class="code" href="classstk_1_1StkFrames.html">StkFrames</a>& buffer, <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> startFrame, <span class="keywordtype">bool</span> doNormalize );</div>
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  </div>
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  <a class="code" href="classstk_1_1StkFrames.html">StkFrames</a> firstFrame_;</div>
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  StkFloat phaseOffset_;</div>
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  </div>
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span> };</div>
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  </div>
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span> } <span class="comment">// stk namespace</span></div>
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  </div>
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span> <span class="preprocessor">#endif</span></div>
<div class="ttc" id="aclassstk_1_1FileLoop_html"><div class="ttname"><a href="classstk_1_1FileLoop.html">stk::FileLoop</a></div><div class="ttdoc">STK file looping / oscillator class.</div><div class="ttdef"><b>Definition:</b> FileLoop.h:27</div></div>
<div class="ttc" id="aclassstk_1_1FileLoop_html_a0092cb30a205060d006c3d8f052dbea9"><div class="ttname"><a href="classstk_1_1FileLoop.html#a0092cb30a205060d006c3d8f052dbea9">stk::FileLoop::FileLoop</a></div><div class="ttdeci">FileLoop(std::string fileName, bool raw=false, bool doNormalize=true, unsigned long chunkThreshold=1000000, unsigned long chunkSize=1024, bool doInt2FloatScaling=true)</div><div class="ttdoc">Class constructor that opens a specified file.</div></div>
<div class="ttc" id="aclassstk_1_1FileLoop_html_a037b31918134ed1839a8b48de774ab95"><div class="ttname"><a href="classstk_1_1FileLoop.html#a037b31918134ed1839a8b48de774ab95">stk::FileLoop::tick</a></div><div class="ttdeci">StkFloat tick(unsigned int channel=0)</div><div class="ttdoc">Compute a sample frame and return the specified channel value.</div></div>
<div class="ttc" id="aclassstk_1_1FileLoop_html_a0d977aae11d75d0327057add00fa7f84"><div class="ttname"><a href="classstk_1_1FileLoop.html#a0d977aae11d75d0327057add00fa7f84">stk::FileLoop::FileLoop</a></div><div class="ttdeci">FileLoop(unsigned long chunkThreshold=1000000, unsigned long chunkSize=1024)</div><div class="ttdoc">Default constructor.</div></div>
<div class="ttc" id="aclassstk_1_1FileLoop_html_a13e1f693bc8a29d9051a400087347a3c"><div class="ttname"><a href="classstk_1_1FileLoop.html#a13e1f693bc8a29d9051a400087347a3c">stk::FileLoop::setRate</a></div><div class="ttdeci">void setRate(StkFloat rate)</div><div class="ttdoc">Set the data read rate in samples. The rate can be negative.</div></div>
<div class="ttc" id="aclassstk_1_1FileLoop_html_a1986db79fd04b93f4d10b8cdf75bca34"><div class="ttname"><a href="classstk_1_1FileLoop.html#a1986db79fd04b93f4d10b8cdf75bca34">stk::FileLoop::addTime</a></div><div class="ttdeci">void addTime(StkFloat time)</div><div class="ttdoc">Increment the read pointer by time samples, modulo file size.</div></div>
<div class="ttc" id="aclassstk_1_1FileLoop_html_a2b5463ce0cd0efb7460761198e61bc35"><div class="ttname"><a href="classstk_1_1FileLoop.html#a2b5463ce0cd0efb7460761198e61bc35">stk::FileLoop::closeFile</a></div><div class="ttdeci">virtual void closeFile(void)</div><div class="ttdoc">Close a file if one is open.</div><div class="ttdef"><b>Definition:</b> FileLoop.h:54</div></div>
<div class="ttc" id="aclassstk_1_1FileLoop_html_a51017c19f02884c00ed3557538ac11dd"><div class="ttname"><a href="classstk_1_1FileLoop.html#a51017c19f02884c00ed3557538ac11dd">stk::FileLoop::channelsOut</a></div><div class="ttdeci">unsigned int channelsOut(void) const</div><div class="ttdoc">Return the number of audio channels in the data or stream.</div><div class="ttdef"><b>Definition:</b> FileLoop.h:60</div></div>
<div class="ttc" id="aclassstk_1_1FileLoop_html_a56a140a2bf6fe925ff6b88ab74699fcb"><div class="ttname"><a href="classstk_1_1FileLoop.html#a56a140a2bf6fe925ff6b88ab74699fcb">stk::FileLoop::getFileRate</a></div><div class="ttdeci">StkFloat getFileRate(void) const</div><div class="ttdoc">Return the input file sample rate in Hz (not the data read rate).</div><div class="ttdef"><b>Definition:</b> FileLoop.h:86</div></div>
<div class="ttc" id="aclassstk_1_1FileLoop_html_a76344714f6edc231a20dc6a303e26786"><div class="ttname"><a href="classstk_1_1FileLoop.html#a76344714f6edc231a20dc6a303e26786">stk::FileLoop::reset</a></div><div class="ttdeci">virtual void reset(void)</div><div class="ttdoc">Clear outputs and reset time (file) pointer to zero.</div><div class="ttdef"><b>Definition:</b> FileLoop.h:57</div></div>
<div class="ttc" id="aclassstk_1_1FileLoop_html_a7c4a3d5c427154bf653f86a53e900b8b"><div class="ttname"><a href="classstk_1_1FileLoop.html#a7c4a3d5c427154bf653f86a53e900b8b">stk::FileLoop::normalize</a></div><div class="ttdeci">void normalize(void)</div><div class="ttdoc">Normalize data to a maximum of +-1.0.</div><div class="ttdef"><b>Definition:</b> FileLoop.h:67</div></div>
<div class="ttc" id="aclassstk_1_1FileLoop_html_a826b6dd0968c5abd1020a9fe629a4ffd"><div class="ttname"><a href="classstk_1_1FileLoop.html#a826b6dd0968c5abd1020a9fe629a4ffd">stk::FileLoop::lastOut</a></div><div class="ttdeci">StkFloat lastOut(unsigned int channel=0)</div><div class="ttdoc">Return the specified channel value of the last computed frame.</div><div class="ttdef"><b>Definition:</b> FileLoop.h:132</div></div>
<div class="ttc" id="aclassstk_1_1FileLoop_html_a8e24d6f9292a9443fbc21e4e8797f482"><div class="ttname"><a href="classstk_1_1FileLoop.html#a8e24d6f9292a9443fbc21e4e8797f482">stk::FileLoop::addPhase</a></div><div class="ttdeci">void addPhase(StkFloat angle)</div><div class="ttdoc">Increment current read pointer by angle, relative to a looping frequency.</div></div>
<div class="ttc" id="aclassstk_1_1FileLoop_html_a9cc9c429c439e35c3c8b4a6e347fc765"><div class="ttname"><a href="classstk_1_1FileLoop.html#a9cc9c429c439e35c3c8b4a6e347fc765">stk::FileLoop::openFile</a></div><div class="ttdeci">virtual void openFile(std::string fileName, bool raw=false, bool doNormalize=true, bool doInt2FloatScaling=true)</div><div class="ttdoc">Open the specified file and load its data.</div></div>
<div class="ttc" id="aclassstk_1_1FileLoop_html_aa1ac0c8d19f412f66f5fdb89854e2833"><div class="ttname"><a href="classstk_1_1FileLoop.html#aa1ac0c8d19f412f66f5fdb89854e2833">stk::FileLoop::normalize</a></div><div class="ttdeci">void normalize(StkFloat peak)</div><div class="ttdoc">Normalize data to a maximum of +-peak.</div><div class="ttdef"><b>Definition:</b> FileLoop.h:74</div></div>
<div class="ttc" id="aclassstk_1_1FileLoop_html_aaa63d46af28a8d079d2439c08c398c6d"><div class="ttname"><a href="classstk_1_1FileLoop.html#aaa63d46af28a8d079d2439c08c398c6d">stk::FileLoop::tick</a></div><div class="ttdeci">virtual StkFrames & tick(StkFrames &frames, unsigned int channel=0)</div><div class="ttdoc">Fill the StkFrames object with computed sample frames, starting at the specified channel and return t...</div></div>
<div class="ttc" id="aclassstk_1_1FileLoop_html_ab6f0e0f9a5cc9c99627d0e12db007905"><div class="ttname"><a href="classstk_1_1FileLoop.html#ab6f0e0f9a5cc9c99627d0e12db007905">stk::FileLoop::~FileLoop</a></div><div class="ttdeci">~FileLoop(void)</div><div class="ttdoc">Class destructor.</div></div>
<div class="ttc" id="aclassstk_1_1FileLoop_html_ad0280bb9bb439ae4044d019b3ebc05e6"><div class="ttname"><a href="classstk_1_1FileLoop.html#ad0280bb9bb439ae4044d019b3ebc05e6">stk::FileLoop::getSize</a></div><div class="ttdeci">unsigned long getSize(void) const</div><div class="ttdoc">Return the file size in sample frames.</div><div class="ttdef"><b>Definition:</b> FileLoop.h:78</div></div>
<div class="ttc" id="aclassstk_1_1FileLoop_html_aec8f94d8514b266acd83106ed0f24ead"><div class="ttname"><a href="classstk_1_1FileLoop.html#aec8f94d8514b266acd83106ed0f24ead">stk::FileLoop::setFrequency</a></div><div class="ttdeci">void setFrequency(StkFloat frequency)</div><div class="ttdoc">Set the data interpolation rate based on a looping frequency.</div><div class="ttdef"><b>Definition:</b> FileLoop.h:101</div></div>
<div class="ttc" id="aclassstk_1_1FileLoop_html_afe462794ba202dd879d29c39e76ae111"><div class="ttname"><a href="classstk_1_1FileLoop.html#afe462794ba202dd879d29c39e76ae111">stk::FileLoop::addPhaseOffset</a></div><div class="ttdeci">void addPhaseOffset(StkFloat angle)</div><div class="ttdoc">Add a phase offset to the current read pointer.</div></div>
<div class="ttc" id="aclassstk_1_1FileWvIn_html"><div class="ttname"><a href="classstk_1_1FileWvIn.html">stk::FileWvIn</a></div><div class="ttdoc">STK audio file input class.</div><div class="ttdef"><b>Definition:</b> FileWvIn.h:53</div></div>
<div class="ttc" id="aclassstk_1_1FileWvIn_html_aaecd1950fca3a5513e0efe4e86754b11"><div class="ttname"><a href="classstk_1_1FileWvIn.html#aaecd1950fca3a5513e0efe4e86754b11">stk::FileWvIn::normalize</a></div><div class="ttdeci">virtual void normalize(void)</div><div class="ttdoc">Normalize data to a maximum of +-1.0.</div></div>
<div class="ttc" id="aclassstk_1_1FileWvIn_html_ac7dfd47e46a083d434e63c9d1b8c3d28"><div class="ttname"><a href="classstk_1_1FileWvIn.html#ac7dfd47e46a083d434e63c9d1b8c3d28">stk::FileWvIn::reset</a></div><div class="ttdeci">virtual void reset(void)</div><div class="ttdoc">Clear outputs and reset time (file) pointer to zero.</div></div>
<div class="ttc" id="aclassstk_1_1FileWvIn_html_ad17c12e8d51f90f59f0d0c9f6d626608"><div class="ttname"><a href="classstk_1_1FileWvIn.html#ad17c12e8d51f90f59f0d0c9f6d626608">stk::FileWvIn::lastOut</a></div><div class="ttdeci">StkFloat lastOut(unsigned int channel=0)</div><div class="ttdoc">Return the specified channel value of the last computed frame.</div><div class="ttdef"><b>Definition:</b> FileWvIn.h:194</div></div>
<div class="ttc" id="aclassstk_1_1FileWvIn_html_ae586a93b45a979881d9bd6fc1cb364cb"><div class="ttname"><a href="classstk_1_1FileWvIn.html#ae586a93b45a979881d9bd6fc1cb364cb">stk::FileWvIn::closeFile</a></div><div class="ttdeci">virtual void closeFile(void)</div><div class="ttdoc">Close a file if one is open.</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_a6380a8699744e3ba0a8a3006eb50c6c5"><div class="ttname"><a href="classstk_1_1StkFrames.html#a6380a8699744e3ba0a8a3006eb50c6c5">stk::StkFrames::dataRate</a></div><div class="ttdeci">StkFloat dataRate(void) const</div><div class="ttdoc">Return the sample rate associated with the StkFrames data.</div><div class="ttdef"><b>Definition:</b> Stk.h:432</div></div>
<div class="ttc" id="aclassstk_1_1Stk_html_a5fbe37000a611ce56075ee7d8936472d"><div class="ttname"><a href="classstk_1_1Stk.html#a5fbe37000a611ce56075ee7d8936472d">stk::Stk::sampleRate</a></div><div class="ttdeci">static StkFloat sampleRate(void)</div><div class="ttdoc">Static method that returns the current STK sample rate.</div><div class="ttdef"><b>Definition:</b> Stk.h:156</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>