Mercurial > hg > vamp-website
comparison code-doc/PercussionOnsetDetector_8cpp-source.html @ 35:0976232e353b website
* Update for 2.1 release; add wiki link
author | cannam |
---|---|
date | Fri, 25 Sep 2009 15:40:18 +0000 |
parents | cc0be37dc9d3 |
children |
comparison
equal
deleted
inserted
replaced
34:4b4db9230e94 | 35:0976232e353b |
---|---|
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> | 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
2 <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> | 2 <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> |
3 <title>VampPluginSDK: PercussionOnsetDetector.cpp Source File</title> | 3 <title>VampPluginSDK: PercussionOnsetDetector.cpp Source File</title> |
4 <link href="tabs.css" rel="stylesheet" type="text/css"> | |
4 <link href="doxygen.css" rel="stylesheet" type="text/css"> | 5 <link href="doxygen.css" rel="stylesheet" type="text/css"> |
5 <link href="tabs.css" rel="stylesheet" type="text/css"> | |
6 </head><body> | 6 </head><body> |
7 <!-- Generated by Doxygen 1.5.6 --> | 7 <!-- Generated by Doxygen 1.5.8 --> |
8 <div class="navigation" id="top"> | 8 <div class="navigation" id="top"> |
9 <div class="tabs"> | 9 <div class="tabs"> |
10 <ul> | 10 <ul> |
11 <li><a href="main.html"><span>Main Page</span></a></li> | 11 <li><a href="main.html"><span>Main Page</span></a></li> |
12 <li><a href="namespaces.html"><span>Namespaces</span></a></li> | 12 <li><a href="namespaces.html"><span>Namespaces</span></a></li> |
13 <li><a href="annotated.html"><span>Classes</span></a></li> | 13 <li><a href="annotated.html"><span>Classes</span></a></li> |
14 <li class="current"><a href="files.html"><span>Files</span></a></li> | 14 <li class="current"><a href="files.html"><span>Files</span></a></li> |
15 <li><a href="dirs.html"><span>Directories</span></a></li> | 15 <li><a href="dirs.html"><span>Directories</span></a></li> |
16 </ul> | |
17 </div> | |
18 <div class="tabs"> | |
19 <ul> | |
20 <li><a href="files.html"><span>File List</span></a></li> | |
21 <li><a href="globals.html"><span>File Members</span></a></li> | |
16 </ul> | 22 </ul> |
17 </div> | 23 </div> |
18 <div class="navpath"><a class="el" href="dir_35887283b966ca996e4ff77f459c38ce.html">examples</a> | 24 <div class="navpath"><a class="el" href="dir_35887283b966ca996e4ff77f459c38ce.html">examples</a> |
19 </div> | 25 </div> |
20 </div> | 26 </div> |
166 <a name="l00145"></a><a class="code" href="classPercussionOnsetDetector.html#bceae88cc9762b0ea310d7aad71de815">00145</a> <a class="code" href="classPercussionOnsetDetector.html#bceae88cc9762b0ea310d7aad71de815" title="Get the controllable parameters of this plugin.">PercussionOnsetDetector::getParameterDescriptors</a>()<span class="keyword"> const</span> | 172 <a name="l00145"></a><a class="code" href="classPercussionOnsetDetector.html#bceae88cc9762b0ea310d7aad71de815">00145</a> <a class="code" href="classPercussionOnsetDetector.html#bceae88cc9762b0ea310d7aad71de815" title="Get the controllable parameters of this plugin.">PercussionOnsetDetector::getParameterDescriptors</a>()<span class="keyword"> const</span> |
167 <a name="l00146"></a>00146 <span class="keyword"></span>{ | 173 <a name="l00146"></a>00146 <span class="keyword"></span>{ |
168 <a name="l00147"></a>00147 <a class="code" href="classVamp_1_1PluginBase.html#3b6bb4bbd86affe1ca9deceea1aad4f8">ParameterList</a> list; | 174 <a name="l00147"></a>00147 <a class="code" href="classVamp_1_1PluginBase.html#3b6bb4bbd86affe1ca9deceea1aad4f8">ParameterList</a> list; |
169 <a name="l00148"></a>00148 | 175 <a name="l00148"></a>00148 |
170 <a name="l00149"></a>00149 <a class="code" href="structVamp_1_1PluginBase_1_1ParameterDescriptor.html">ParameterDescriptor</a> d; | 176 <a name="l00149"></a>00149 <a class="code" href="structVamp_1_1PluginBase_1_1ParameterDescriptor.html">ParameterDescriptor</a> d; |
171 <a name="l00150"></a>00150 d.<a class="code" href="structVamp_1_1PluginBase_1_1ParameterDescriptor.html#116fd9f0dc94c2bc4bbc60b5443c598c" title="The name of the parameter, in computer-usable form.">identifier</a> = <span class="stringliteral">"threshold"</span>; | 177 <a name="l00150"></a>00150 d.<a class="code" href="structVamp_1_1PluginBase_1_1ParameterDescriptor.html#b34ea7114875647281ac031021e45d06" title="The name of the parameter, in computer-usable form.">identifier</a> = <span class="stringliteral">"threshold"</span>; |
172 <a name="l00151"></a>00151 d.<a class="code" href="structVamp_1_1PluginBase_1_1ParameterDescriptor.html#0ecebb94fb4ada4aad2640e20aa57084" title="The human-readable name of the parameter.">name</a> = <span class="stringliteral">"Energy rise threshold"</span>; | 178 <a name="l00151"></a>00151 d.<a class="code" href="structVamp_1_1PluginBase_1_1ParameterDescriptor.html#2c1000e78a6414dab6c5af5201053741" title="The human-readable name of the parameter.">name</a> = <span class="stringliteral">"Energy rise threshold"</span>; |
173 <a name="l00152"></a>00152 d.<a class="code" href="structVamp_1_1PluginBase_1_1ParameterDescriptor.html#780ddad41e433d85c82f9ea4d959cbaf" title="A human-readable short text describing the parameter.">description</a> = <span class="stringliteral">"Energy rise within a frequency bin necessary to count toward broadband total"</span>; | 179 <a name="l00152"></a>00152 d.<a class="code" href="structVamp_1_1PluginBase_1_1ParameterDescriptor.html#0cbc8fe35b0d15fd8e19de2ade33d147" title="A human-readable short text describing the parameter.">description</a> = <span class="stringliteral">"Energy rise within a frequency bin necessary to count toward broadband total"</span>; |
174 <a name="l00153"></a>00153 d.<a class="code" href="structVamp_1_1PluginBase_1_1ParameterDescriptor.html#3bc3df322e4c02e17e96bc6d44982d7b" title="The unit of the parameter, in human-readable form.">unit</a> = <span class="stringliteral">"dB"</span>; | 180 <a name="l00153"></a>00153 d.<a class="code" href="structVamp_1_1PluginBase_1_1ParameterDescriptor.html#e0d6c74d915b99bacb55a0622e0ecb1c" title="The unit of the parameter, in human-readable form.">unit</a> = <span class="stringliteral">"dB"</span>; |
175 <a name="l00154"></a>00154 d.<a class="code" href="structVamp_1_1PluginBase_1_1ParameterDescriptor.html#b3e4d84f5bc199eea8b642b27e425ec8" title="The minimum value of the parameter.">minValue</a> = 0; | 181 <a name="l00154"></a>00154 d.<a class="code" href="structVamp_1_1PluginBase_1_1ParameterDescriptor.html#18221c4bb5c57332fe6a1393c5ec3b6d" title="The minimum value of the parameter.">minValue</a> = 0; |
176 <a name="l00155"></a>00155 d.<a class="code" href="structVamp_1_1PluginBase_1_1ParameterDescriptor.html#b934b20dd708228a0e3c2811a3e2cec4" title="The maximum value of the parameter.">maxValue</a> = 20; | 182 <a name="l00155"></a>00155 d.<a class="code" href="structVamp_1_1PluginBase_1_1ParameterDescriptor.html#52e0c1f0acfc7ff8622ca1ccc97ad69d" title="The maximum value of the parameter.">maxValue</a> = 20; |
177 <a name="l00156"></a>00156 d.<a class="code" href="structVamp_1_1PluginBase_1_1ParameterDescriptor.html#ec4ef77451ec02193ecc4a0856673fbc" title="The default value of the parameter.">defaultValue</a> = 3; | 183 <a name="l00156"></a>00156 d.<a class="code" href="structVamp_1_1PluginBase_1_1ParameterDescriptor.html#4b36674815777f54846bb7033205bbea" title="The default value of the parameter.">defaultValue</a> = 3; |
178 <a name="l00157"></a>00157 d.<a class="code" href="structVamp_1_1PluginBase_1_1ParameterDescriptor.html#7c556d58d552f737ee5a34efdf7f9425" title="True if the parameter values are quantized to a particular resolution.">isQuantized</a> = <span class="keyword">false</span>; | 184 <a name="l00157"></a>00157 d.<a class="code" href="structVamp_1_1PluginBase_1_1ParameterDescriptor.html#6e76a119dafbdd26351521ec486550ea" title="True if the parameter values are quantized to a particular resolution.">isQuantized</a> = <span class="keyword">false</span>; |
179 <a name="l00158"></a>00158 list.push_back(d); | 185 <a name="l00158"></a>00158 list.push_back(d); |
180 <a name="l00159"></a>00159 | 186 <a name="l00159"></a>00159 |
181 <a name="l00160"></a>00160 d.<a class="code" href="structVamp_1_1PluginBase_1_1ParameterDescriptor.html#116fd9f0dc94c2bc4bbc60b5443c598c" title="The name of the parameter, in computer-usable form.">identifier</a> = <span class="stringliteral">"sensitivity"</span>; | 187 <a name="l00160"></a>00160 d.<a class="code" href="structVamp_1_1PluginBase_1_1ParameterDescriptor.html#b34ea7114875647281ac031021e45d06" title="The name of the parameter, in computer-usable form.">identifier</a> = <span class="stringliteral">"sensitivity"</span>; |
182 <a name="l00161"></a>00161 d.<a class="code" href="structVamp_1_1PluginBase_1_1ParameterDescriptor.html#0ecebb94fb4ada4aad2640e20aa57084" title="The human-readable name of the parameter.">name</a> = <span class="stringliteral">"Sensitivity"</span>; | 188 <a name="l00161"></a>00161 d.<a class="code" href="structVamp_1_1PluginBase_1_1ParameterDescriptor.html#2c1000e78a6414dab6c5af5201053741" title="The human-readable name of the parameter.">name</a> = <span class="stringliteral">"Sensitivity"</span>; |
183 <a name="l00162"></a>00162 d.<a class="code" href="structVamp_1_1PluginBase_1_1ParameterDescriptor.html#780ddad41e433d85c82f9ea4d959cbaf" title="A human-readable short text describing the parameter.">description</a> = <span class="stringliteral">"Sensitivity of peak detector applied to broadband detection function"</span>; | 189 <a name="l00162"></a>00162 d.<a class="code" href="structVamp_1_1PluginBase_1_1ParameterDescriptor.html#0cbc8fe35b0d15fd8e19de2ade33d147" title="A human-readable short text describing the parameter.">description</a> = <span class="stringliteral">"Sensitivity of peak detector applied to broadband detection function"</span>; |
184 <a name="l00163"></a>00163 d.<a class="code" href="structVamp_1_1PluginBase_1_1ParameterDescriptor.html#3bc3df322e4c02e17e96bc6d44982d7b" title="The unit of the parameter, in human-readable form.">unit</a> = <span class="stringliteral">"%"</span>; | 190 <a name="l00163"></a>00163 d.<a class="code" href="structVamp_1_1PluginBase_1_1ParameterDescriptor.html#e0d6c74d915b99bacb55a0622e0ecb1c" title="The unit of the parameter, in human-readable form.">unit</a> = <span class="stringliteral">"%"</span>; |
185 <a name="l00164"></a>00164 d.<a class="code" href="structVamp_1_1PluginBase_1_1ParameterDescriptor.html#b3e4d84f5bc199eea8b642b27e425ec8" title="The minimum value of the parameter.">minValue</a> = 0; | 191 <a name="l00164"></a>00164 d.<a class="code" href="structVamp_1_1PluginBase_1_1ParameterDescriptor.html#18221c4bb5c57332fe6a1393c5ec3b6d" title="The minimum value of the parameter.">minValue</a> = 0; |
186 <a name="l00165"></a>00165 d.<a class="code" href="structVamp_1_1PluginBase_1_1ParameterDescriptor.html#b934b20dd708228a0e3c2811a3e2cec4" title="The maximum value of the parameter.">maxValue</a> = 100; | 192 <a name="l00165"></a>00165 d.<a class="code" href="structVamp_1_1PluginBase_1_1ParameterDescriptor.html#52e0c1f0acfc7ff8622ca1ccc97ad69d" title="The maximum value of the parameter.">maxValue</a> = 100; |
187 <a name="l00166"></a>00166 d.<a class="code" href="structVamp_1_1PluginBase_1_1ParameterDescriptor.html#ec4ef77451ec02193ecc4a0856673fbc" title="The default value of the parameter.">defaultValue</a> = 40; | 193 <a name="l00166"></a>00166 d.<a class="code" href="structVamp_1_1PluginBase_1_1ParameterDescriptor.html#4b36674815777f54846bb7033205bbea" title="The default value of the parameter.">defaultValue</a> = 40; |
188 <a name="l00167"></a>00167 d.<a class="code" href="structVamp_1_1PluginBase_1_1ParameterDescriptor.html#7c556d58d552f737ee5a34efdf7f9425" title="True if the parameter values are quantized to a particular resolution.">isQuantized</a> = <span class="keyword">false</span>; | 194 <a name="l00167"></a>00167 d.<a class="code" href="structVamp_1_1PluginBase_1_1ParameterDescriptor.html#6e76a119dafbdd26351521ec486550ea" title="True if the parameter values are quantized to a particular resolution.">isQuantized</a> = <span class="keyword">false</span>; |
189 <a name="l00168"></a>00168 list.push_back(d); | 195 <a name="l00168"></a>00168 list.push_back(d); |
190 <a name="l00169"></a>00169 | 196 <a name="l00169"></a>00169 |
191 <a name="l00170"></a>00170 <span class="keywordflow">return</span> list; | 197 <a name="l00170"></a>00170 <span class="keywordflow">return</span> list; |
192 <a name="l00171"></a>00171 } | 198 <a name="l00171"></a>00171 } |
193 <a name="l00172"></a>00172 | 199 <a name="l00172"></a>00172 |
217 <a name="l00196"></a><a class="code" href="classPercussionOnsetDetector.html#a4537aa0eb58a67d6e824d46924cf782">00196</a> <a class="code" href="classPercussionOnsetDetector.html#a4537aa0eb58a67d6e824d46924cf782" title="Get the outputs of this plugin.">PercussionOnsetDetector::getOutputDescriptors</a>()<span class="keyword"> const</span> | 223 <a name="l00196"></a><a class="code" href="classPercussionOnsetDetector.html#a4537aa0eb58a67d6e824d46924cf782">00196</a> <a class="code" href="classPercussionOnsetDetector.html#a4537aa0eb58a67d6e824d46924cf782" title="Get the outputs of this plugin.">PercussionOnsetDetector::getOutputDescriptors</a>()<span class="keyword"> const</span> |
218 <a name="l00197"></a>00197 <span class="keyword"></span>{ | 224 <a name="l00197"></a>00197 <span class="keyword"></span>{ |
219 <a name="l00198"></a>00198 <a class="code" href="classVamp_1_1Plugin.html#30f531b8fb69fac41a24e3d2a6a08ed9">OutputList</a> list; | 225 <a name="l00198"></a>00198 <a class="code" href="classVamp_1_1Plugin.html#30f531b8fb69fac41a24e3d2a6a08ed9">OutputList</a> list; |
220 <a name="l00199"></a>00199 | 226 <a name="l00199"></a>00199 |
221 <a name="l00200"></a>00200 <a class="code" href="structVamp_1_1Plugin_1_1OutputDescriptor.html">OutputDescriptor</a> d; | 227 <a name="l00200"></a>00200 <a class="code" href="structVamp_1_1Plugin_1_1OutputDescriptor.html">OutputDescriptor</a> d; |
222 <a name="l00201"></a>00201 d.<a class="code" href="structVamp_1_1Plugin_1_1OutputDescriptor.html#e2c893ddb1860589517ab7eaa989a18b" title="The name of the output, in computer-usable form.">identifier</a> = <span class="stringliteral">"onsets"</span>; | 228 <a name="l00201"></a>00201 d.<a class="code" href="structVamp_1_1Plugin_1_1OutputDescriptor.html#2e6f77bcb12d4c95da25348ac85b8696" title="The name of the output, in computer-usable form.">identifier</a> = <span class="stringliteral">"onsets"</span>; |
223 <a name="l00202"></a>00202 d.<a class="code" href="structVamp_1_1Plugin_1_1OutputDescriptor.html#b824b2b34ee50f897a30901c620e8d87" title="The human-readable name of the output.">name</a> = <span class="stringliteral">"Onsets"</span>; | 229 <a name="l00202"></a>00202 d.<a class="code" href="structVamp_1_1Plugin_1_1OutputDescriptor.html#0992e05ea70425878365ba85663400a7" title="The human-readable name of the output.">name</a> = <span class="stringliteral">"Onsets"</span>; |
224 <a name="l00203"></a>00203 d.<a class="code" href="structVamp_1_1Plugin_1_1OutputDescriptor.html#f9b4fe8f78e7126ead820ba5dc55efd1" title="A human-readable short text describing the output.">description</a> = <span class="stringliteral">"Percussive note onset locations"</span>; | 230 <a name="l00203"></a>00203 d.<a class="code" href="structVamp_1_1Plugin_1_1OutputDescriptor.html#8b44602d8ccea8bb862fd766e74efa1c" title="A human-readable short text describing the output.">description</a> = <span class="stringliteral">"Percussive note onset locations"</span>; |
225 <a name="l00204"></a>00204 d.<a class="code" href="structVamp_1_1Plugin_1_1OutputDescriptor.html#a057a8833fa037f06ac9f7b85b85d5e4" title="The unit of the output, in human-readable form.">unit</a> = <span class="stringliteral">""</span>; | 231 <a name="l00204"></a>00204 d.<a class="code" href="structVamp_1_1Plugin_1_1OutputDescriptor.html#52f4b3d8d7070cc9c5ab4aa6ff0c01a0" title="The unit of the output, in human-readable form.">unit</a> = <span class="stringliteral">""</span>; |
226 <a name="l00205"></a>00205 d.<a class="code" href="structVamp_1_1Plugin_1_1OutputDescriptor.html#f0e577e1a256ff6eed6ea42133fec77d" title="True if the output has the same number of values per sample for every output sample...">hasFixedBinCount</a> = <span class="keyword">true</span>; | 232 <a name="l00205"></a>00205 d.<a class="code" href="structVamp_1_1Plugin_1_1OutputDescriptor.html#0653d3a85fdc226e60fd5e612b399e0c" title="True if the output has the same number of values per sample for every output sample...">hasFixedBinCount</a> = <span class="keyword">true</span>; |
227 <a name="l00206"></a>00206 d.<a class="code" href="structVamp_1_1Plugin_1_1OutputDescriptor.html#fdd006959a995e40ef7d565a3a4df6dc" title="The number of values per result of the output.">binCount</a> = 0; | 233 <a name="l00206"></a>00206 d.<a class="code" href="structVamp_1_1Plugin_1_1OutputDescriptor.html#238a4781ebb4151832cbf521feb0fedc" title="The number of values per result of the output.">binCount</a> = 0; |
228 <a name="l00207"></a>00207 d.<a class="code" href="structVamp_1_1Plugin_1_1OutputDescriptor.html#e9ccb65f99f477096b65dd031f4c5e31" title="True if the results in each output bin fall within a fixed numeric range (minimum...">hasKnownExtents</a> = <span class="keyword">false</span>; | 234 <a name="l00207"></a>00207 d.<a class="code" href="structVamp_1_1Plugin_1_1OutputDescriptor.html#4b8d0d88bee613709e91b48402e28c8e" title="True if the results in each output bin fall within a fixed numeric range (minimum...">hasKnownExtents</a> = <span class="keyword">false</span>; |
229 <a name="l00208"></a>00208 d.<a class="code" href="structVamp_1_1Plugin_1_1OutputDescriptor.html#1b4858928d23bfd7d5bc557c82a83fb4" title="True if the output values are quantized to a particular resolution.">isQuantized</a> = <span class="keyword">false</span>; | 235 <a name="l00208"></a>00208 d.<a class="code" href="structVamp_1_1Plugin_1_1OutputDescriptor.html#43673cd31b2b65af427a8e8b8746b6e8" title="True if the output values are quantized to a particular resolution.">isQuantized</a> = <span class="keyword">false</span>; |
230 <a name="l00209"></a>00209 d.<a class="code" href="structVamp_1_1Plugin_1_1OutputDescriptor.html#0d1194980d44e31b25ef3b4b070d6b5d" title="Positioning in time of the output results.">sampleType</a> = <a class="code" href="structVamp_1_1Plugin_1_1OutputDescriptor.html#bffa9ed50cd756df70fd51f0355f448cdea995a737867f7b22b52f1c43c5432e" title="Results are unevenly spaced and have individual timestamps.">OutputDescriptor::VariableSampleRate</a>; | 236 <a name="l00209"></a>00209 d.<a class="code" href="structVamp_1_1Plugin_1_1OutputDescriptor.html#3cd2e0b7a6da19c32bbb6809a83d9adf" title="Positioning in time of the output results.">sampleType</a> = <a class="code" href="structVamp_1_1Plugin_1_1OutputDescriptor.html#bffa9ed50cd756df70fd51f0355f448c95be613508cf4009a7dc2f70ddf99547" title="Results are unevenly spaced and have individual timestamps.">OutputDescriptor::VariableSampleRate</a>; |
231 <a name="l00210"></a>00210 d.<a class="code" href="structVamp_1_1Plugin_1_1OutputDescriptor.html#dd0cbbdfa9c91764037c39365b1d42af" title="Sample rate of the output results, as samples per second.">sampleRate</a> = <a class="code" href="classVamp_1_1Plugin.html#59b9dd82a4f4eb946cd0474cc81abc23">m_inputSampleRate</a>; | 237 <a name="l00210"></a>00210 d.<a class="code" href="structVamp_1_1Plugin_1_1OutputDescriptor.html#e49cc87dcb0f09b59feb85d2b78e80ef" title="Sample rate of the output results, as samples per second.">sampleRate</a> = <a class="code" href="classVamp_1_1Plugin.html#59b9dd82a4f4eb946cd0474cc81abc23">m_inputSampleRate</a>; |
232 <a name="l00211"></a>00211 list.push_back(d); | 238 <a name="l00211"></a>00211 list.push_back(d); |
233 <a name="l00212"></a>00212 | 239 <a name="l00212"></a>00212 |
234 <a name="l00213"></a>00213 d.<a class="code" href="structVamp_1_1Plugin_1_1OutputDescriptor.html#e2c893ddb1860589517ab7eaa989a18b" title="The name of the output, in computer-usable form.">identifier</a> = <span class="stringliteral">"detectionfunction"</span>; | 240 <a name="l00213"></a>00213 d.<a class="code" href="structVamp_1_1Plugin_1_1OutputDescriptor.html#2e6f77bcb12d4c95da25348ac85b8696" title="The name of the output, in computer-usable form.">identifier</a> = <span class="stringliteral">"detectionfunction"</span>; |
235 <a name="l00214"></a>00214 d.<a class="code" href="structVamp_1_1Plugin_1_1OutputDescriptor.html#b824b2b34ee50f897a30901c620e8d87" title="The human-readable name of the output.">name</a> = <span class="stringliteral">"Detection Function"</span>; | 241 <a name="l00214"></a>00214 d.<a class="code" href="structVamp_1_1Plugin_1_1OutputDescriptor.html#0992e05ea70425878365ba85663400a7" title="The human-readable name of the output.">name</a> = <span class="stringliteral">"Detection Function"</span>; |
236 <a name="l00215"></a>00215 d.<a class="code" href="structVamp_1_1Plugin_1_1OutputDescriptor.html#f9b4fe8f78e7126ead820ba5dc55efd1" title="A human-readable short text describing the output.">description</a> = <span class="stringliteral">"Broadband energy rise detection function"</span>; | 242 <a name="l00215"></a>00215 d.<a class="code" href="structVamp_1_1Plugin_1_1OutputDescriptor.html#8b44602d8ccea8bb862fd766e74efa1c" title="A human-readable short text describing the output.">description</a> = <span class="stringliteral">"Broadband energy rise detection function"</span>; |
237 <a name="l00216"></a>00216 d.<a class="code" href="structVamp_1_1Plugin_1_1OutputDescriptor.html#fdd006959a995e40ef7d565a3a4df6dc" title="The number of values per result of the output.">binCount</a> = 1; | 243 <a name="l00216"></a>00216 d.<a class="code" href="structVamp_1_1Plugin_1_1OutputDescriptor.html#238a4781ebb4151832cbf521feb0fedc" title="The number of values per result of the output.">binCount</a> = 1; |
238 <a name="l00217"></a>00217 d.<a class="code" href="structVamp_1_1Plugin_1_1OutputDescriptor.html#1b4858928d23bfd7d5bc557c82a83fb4" title="True if the output values are quantized to a particular resolution.">isQuantized</a> = <span class="keyword">true</span>; | 244 <a name="l00217"></a>00217 d.<a class="code" href="structVamp_1_1Plugin_1_1OutputDescriptor.html#43673cd31b2b65af427a8e8b8746b6e8" title="True if the output values are quantized to a particular resolution.">isQuantized</a> = <span class="keyword">true</span>; |
239 <a name="l00218"></a>00218 d.<a class="code" href="structVamp_1_1Plugin_1_1OutputDescriptor.html#3bed37153067b625b95acb40b60dbf0b" title="Quantization resolution of the output values (e.g.">quantizeStep</a> = 1.0; | 245 <a name="l00218"></a>00218 d.<a class="code" href="structVamp_1_1Plugin_1_1OutputDescriptor.html#674cd333889514cf8408c18762fede12" title="Quantization resolution of the output values (e.g.">quantizeStep</a> = 1.0; |
240 <a name="l00219"></a>00219 d.<a class="code" href="structVamp_1_1Plugin_1_1OutputDescriptor.html#0d1194980d44e31b25ef3b4b070d6b5d" title="Positioning in time of the output results.">sampleType</a> = <a class="code" href="structVamp_1_1Plugin_1_1OutputDescriptor.html#bffa9ed50cd756df70fd51f0355f448c0459d5d0d2198d21e8bc90abe4fdccca" title="Results from each process() align with that call&#39;s block start.">OutputDescriptor::OneSamplePerStep</a>; | 246 <a name="l00219"></a>00219 d.<a class="code" href="structVamp_1_1Plugin_1_1OutputDescriptor.html#3cd2e0b7a6da19c32bbb6809a83d9adf" title="Positioning in time of the output results.">sampleType</a> = <a class="code" href="structVamp_1_1Plugin_1_1OutputDescriptor.html#bffa9ed50cd756df70fd51f0355f448c8915f78de285a79dd415e0c6012d1ead" title="Results from each process() align with that call&#39;s block start.">OutputDescriptor::OneSamplePerStep</a>; |
241 <a name="l00220"></a>00220 list.push_back(d); | 247 <a name="l00220"></a>00220 list.push_back(d); |
242 <a name="l00221"></a>00221 | 248 <a name="l00221"></a>00221 |
243 <a name="l00222"></a>00222 <span class="keywordflow">return</span> list; | 249 <a name="l00222"></a>00222 <span class="keywordflow">return</span> list; |
244 <a name="l00223"></a>00223 } | 250 <a name="l00223"></a>00223 } |
245 <a name="l00224"></a>00224 | 251 <a name="l00224"></a>00224 |
275 <a name="l00254"></a>00254 } | 281 <a name="l00254"></a>00254 } |
276 <a name="l00255"></a>00255 | 282 <a name="l00255"></a>00255 |
277 <a name="l00256"></a>00256 <a class="code" href="classVamp_1_1Plugin.html#448fb57dc245d47923ec9eeaf9856c5f">FeatureSet</a> returnFeatures; | 283 <a name="l00256"></a>00256 <a class="code" href="classVamp_1_1Plugin.html#448fb57dc245d47923ec9eeaf9856c5f">FeatureSet</a> returnFeatures; |
278 <a name="l00257"></a>00257 | 284 <a name="l00257"></a>00257 |
279 <a name="l00258"></a>00258 <a class="code" href="structVamp_1_1Plugin_1_1Feature.html">Feature</a> detectionFunction; | 285 <a name="l00258"></a>00258 <a class="code" href="structVamp_1_1Plugin_1_1Feature.html">Feature</a> detectionFunction; |
280 <a name="l00259"></a>00259 detectionFunction.<a class="code" href="structVamp_1_1Plugin_1_1Feature.html#98907091d0b6a589720ae35ae588a82b" title="True if an output feature has its own timestamp.">hasTimestamp</a> = <span class="keyword">false</span>; | 286 <a name="l00259"></a>00259 detectionFunction.<a class="code" href="structVamp_1_1Plugin_1_1Feature.html#116bb1b3420a067fc1290b75982fdf62" title="True if an output feature has its own timestamp.">hasTimestamp</a> = <span class="keyword">false</span>; |
281 <a name="l00260"></a>00260 detectionFunction.<a class="code" href="structVamp_1_1Plugin_1_1Feature.html#60b9f3057386820dbcaec0eb1189ce71" title="Results for a single sample of this feature.">values</a>.push_back(count); | 287 <a name="l00260"></a>00260 detectionFunction.<a class="code" href="structVamp_1_1Plugin_1_1Feature.html#106162977cdc92a02146fcb5ed18a34d" title="Results for a single sample of this feature.">values</a>.push_back(count); |
282 <a name="l00261"></a>00261 returnFeatures[1].push_back(detectionFunction); | 288 <a name="l00261"></a>00261 returnFeatures[1].push_back(detectionFunction); |
283 <a name="l00262"></a>00262 | 289 <a name="l00262"></a>00262 |
284 <a name="l00263"></a>00263 <span class="keywordflow">if</span> (<a class="code" href="classPercussionOnsetDetector.html#6ad7d8353cc681ff42a63b127cca5779">m_dfMinus2</a> < <a class="code" href="classPercussionOnsetDetector.html#cd80162c65212be7fa91251263fb9c3d">m_dfMinus1</a> && | 290 <a name="l00263"></a>00263 <span class="keywordflow">if</span> (<a class="code" href="classPercussionOnsetDetector.html#6ad7d8353cc681ff42a63b127cca5779">m_dfMinus2</a> < <a class="code" href="classPercussionOnsetDetector.html#cd80162c65212be7fa91251263fb9c3d">m_dfMinus1</a> && |
285 <a name="l00264"></a>00264 <a class="code" href="classPercussionOnsetDetector.html#cd80162c65212be7fa91251263fb9c3d">m_dfMinus1</a> >= count && | 291 <a name="l00264"></a>00264 <a class="code" href="classPercussionOnsetDetector.html#cd80162c65212be7fa91251263fb9c3d">m_dfMinus1</a> >= count && |
286 <a name="l00265"></a>00265 <a class="code" href="classPercussionOnsetDetector.html#cd80162c65212be7fa91251263fb9c3d">m_dfMinus1</a> > ((100 - <a class="code" href="classPercussionOnsetDetector.html#4e9770f246ba3bc75e7fc2cb8f9010af">m_sensitivity</a>) * <a class="code" href="classPercussionOnsetDetector.html#920de543dbcf70a2edd80b5b31313285">m_blockSize</a>) / 200) { | 292 <a name="l00265"></a>00265 <a class="code" href="classPercussionOnsetDetector.html#cd80162c65212be7fa91251263fb9c3d">m_dfMinus1</a> > ((100 - <a class="code" href="classPercussionOnsetDetector.html#4e9770f246ba3bc75e7fc2cb8f9010af">m_sensitivity</a>) * <a class="code" href="classPercussionOnsetDetector.html#920de543dbcf70a2edd80b5b31313285">m_blockSize</a>) / 200) { |
287 <a name="l00266"></a>00266 | 293 <a name="l00266"></a>00266 |
288 <a name="l00267"></a>00267 <span class="comment">//std::cout << "result at " << ts << "! (count == " << count << ", prev == " << m_dfMinus1 << ")" << std::endl;</span> | 294 <a name="l00267"></a>00267 <span class="comment">//std::cout << "result at " << ts << "! (count == " << count << ", prev == " << m_dfMinus1 << ")" << std::endl;</span> |
289 <a name="l00268"></a>00268 | 295 <a name="l00268"></a>00268 |
290 <a name="l00269"></a>00269 <a class="code" href="structVamp_1_1Plugin_1_1Feature.html">Feature</a> onset; | 296 <a name="l00269"></a>00269 <a class="code" href="structVamp_1_1Plugin_1_1Feature.html">Feature</a> onset; |
291 <a name="l00270"></a>00270 onset.<a class="code" href="structVamp_1_1Plugin_1_1Feature.html#98907091d0b6a589720ae35ae588a82b" title="True if an output feature has its own timestamp.">hasTimestamp</a> = <span class="keyword">true</span>; | 297 <a name="l00270"></a>00270 onset.<a class="code" href="structVamp_1_1Plugin_1_1Feature.html#116bb1b3420a067fc1290b75982fdf62" title="True if an output feature has its own timestamp.">hasTimestamp</a> = <span class="keyword">true</span>; |
292 <a name="l00271"></a>00271 onset.<a class="code" href="structVamp_1_1Plugin_1_1Feature.html#caa605f36839c07e76f4882f5e22d8d7" title="Timestamp of the output feature.">timestamp</a> = ts - <a class="code" href="structVamp_1_1RealTime.html#939b4b1d1ca190db69a418883f16ce8a" title="Convert a sample frame at the given sample rate into a RealTime.">Vamp::RealTime::frame2RealTime</a> | 298 <a name="l00271"></a>00271 onset.<a class="code" href="structVamp_1_1Plugin_1_1Feature.html#aaf212bd458dc5e6f441bf7606121311" title="Timestamp of the output feature.">timestamp</a> = ts - <a class="code" href="structVamp_1_1RealTime.html#939b4b1d1ca190db69a418883f16ce8a" title="Convert a sample frame at the given sample rate into a RealTime.">Vamp::RealTime::frame2RealTime</a> |
293 <a name="l00272"></a>00272 (<a class="code" href="classPercussionOnsetDetector.html#abac0cf7e961482b075777e5f0686e6c">m_stepSize</a>, <span class="keywordtype">int</span>(<a class="code" href="classVamp_1_1Plugin.html#59b9dd82a4f4eb946cd0474cc81abc23">m_inputSampleRate</a> + 0.5)); | 299 <a name="l00272"></a>00272 (<a class="code" href="classPercussionOnsetDetector.html#abac0cf7e961482b075777e5f0686e6c">m_stepSize</a>, <span class="keywordtype">int</span>(<a class="code" href="classVamp_1_1Plugin.html#59b9dd82a4f4eb946cd0474cc81abc23">m_inputSampleRate</a> + 0.5)); |
294 <a name="l00273"></a>00273 returnFeatures[0].push_back(onset); | 300 <a name="l00273"></a>00273 returnFeatures[0].push_back(onset); |
295 <a name="l00274"></a>00274 } | 301 <a name="l00274"></a>00274 } |
296 <a name="l00275"></a>00275 | 302 <a name="l00275"></a>00275 |
297 <a name="l00276"></a>00276 <a class="code" href="classPercussionOnsetDetector.html#6ad7d8353cc681ff42a63b127cca5779">m_dfMinus2</a> = <a class="code" href="classPercussionOnsetDetector.html#cd80162c65212be7fa91251263fb9c3d">m_dfMinus1</a>; | 303 <a name="l00276"></a>00276 <a class="code" href="classPercussionOnsetDetector.html#6ad7d8353cc681ff42a63b127cca5779">m_dfMinus2</a> = <a class="code" href="classPercussionOnsetDetector.html#cd80162c65212be7fa91251263fb9c3d">m_dfMinus1</a>; |
305 <a name="l00284"></a>00284 { | 311 <a name="l00284"></a>00284 { |
306 <a name="l00285"></a>00285 <span class="keywordflow">return</span> <a class="code" href="classVamp_1_1Plugin.html#448fb57dc245d47923ec9eeaf9856c5f">FeatureSet</a>(); | 312 <a name="l00285"></a>00285 <span class="keywordflow">return</span> <a class="code" href="classVamp_1_1Plugin.html#448fb57dc245d47923ec9eeaf9856c5f">FeatureSet</a>(); |
307 <a name="l00286"></a>00286 } | 313 <a name="l00286"></a>00286 } |
308 <a name="l00287"></a>00287 | 314 <a name="l00287"></a>00287 |
309 </pre></div></div> | 315 </pre></div></div> |
310 <hr size="1"><address style="text-align: right;"><small>Generated on Mon Dec 8 14:37:18 2008 for VampPluginSDK by | 316 <hr size="1"><address style="text-align: right;"><small>Generated on Thu Sep 24 13:40:13 2009 for VampPluginSDK by |
311 <a href="http://www.doxygen.org/index.html"> | 317 <a href="http://www.doxygen.org/index.html"> |
312 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address> | 318 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address> |
313 </body> | 319 </body> |
314 </html> | 320 </html> |