cannam@0
|
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
cannam@0
|
2 <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
|
cannam@0
|
3 <title>VampPluginSDK: PercussionOnsetDetector Class Reference</title>
|
cannam@0
|
4 <link href="doxygen.css" rel="stylesheet" type="text/css">
|
cannam@0
|
5 <link href="tabs.css" rel="stylesheet" type="text/css">
|
cannam@0
|
6 </head><body>
|
cannam@21
|
7 <!-- Generated by Doxygen 1.5.6 -->
|
cannam@0
|
8 <div class="navigation" id="top">
|
cannam@0
|
9 <div class="tabs">
|
cannam@0
|
10 <ul>
|
cannam@0
|
11 <li><a href="main.html"><span>Main Page</span></a></li>
|
cannam@0
|
12 <li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
cannam@0
|
13 <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
|
cannam@0
|
14 <li><a href="files.html"><span>Files</span></a></li>
|
cannam@0
|
15 <li><a href="dirs.html"><span>Directories</span></a></li>
|
cannam@0
|
16 </ul>
|
cannam@0
|
17 </div>
|
cannam@0
|
18 <div class="tabs">
|
cannam@0
|
19 <ul>
|
cannam@0
|
20 <li><a href="annotated.html"><span>Class List</span></a></li>
|
cannam@0
|
21 <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
|
cannam@0
|
22 <li><a href="functions.html"><span>Class Members</span></a></li>
|
cannam@0
|
23 </ul>
|
cannam@0
|
24 </div>
|
cannam@0
|
25 </div>
|
cannam@0
|
26 <div class="contents">
|
cannam@0
|
27 <h1>PercussionOnsetDetector Class Reference</h1><!-- doxytag: class="PercussionOnsetDetector" --><!-- doxytag: inherits="Vamp::Plugin" --><code>#include <<a class="el" href="PercussionOnsetDetector_8h-source.html">PercussionOnsetDetector.h</a>></code>
|
cannam@0
|
28 <p>
|
cannam@0
|
29 <div class="dynheader">
|
cannam@0
|
30 Inheritance diagram for PercussionOnsetDetector:</div>
|
cannam@0
|
31 <div class="dynsection">
|
cannam@0
|
32 <p><center><img src="classPercussionOnsetDetector__inherit__graph.png" border="0" usemap="#PercussionOnsetDetector__inherit__map" alt="Inheritance graph"></center>
|
cannam@0
|
33 <map name="PercussionOnsetDetector__inherit__map">
|
cannam@21
|
34 <area shape="rect" href="classVamp_1_1Plugin.html" title="Vamp::Plugin is a base class for plugin instance classes that provide feature extraction..." alt="" coords="41,80,140,107"><area shape="rect" href="classVamp_1_1PluginBase.html" title="A base class for plugins with optional configurable parameters, programs, etc." alt="" coords="27,6,155,32"></map>
|
cannam@0
|
35 <center><font size="2">[<a target="top" href="graph_legend.html">legend</a>]</font></center></div>
|
cannam@0
|
36
|
cannam@0
|
37 <p>
|
cannam@0
|
38 <a href="classPercussionOnsetDetector-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
|
cannam@0
|
39 Example plugin that detects percussive events.
|
cannam@0
|
40 <p>Definition at line <a class="el" href="PercussionOnsetDetector_8h-source.html#l00046">46</a> of file <a class="el" href="PercussionOnsetDetector_8h-source.html">PercussionOnsetDetector.h</a>.</p>
|
cannam@0
|
41 <table border="0" cellpadding="0" cellspacing="0">
|
cannam@0
|
42 <tr><td></td></tr>
|
cannam@0
|
43 <tr><td colspan="2"><br><h2>Public Types</h2></td></tr>
|
cannam@0
|
44 <tr><td class="memItemLeft" nowrap align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><a class="el" href="classVamp_1_1Plugin.html#39cb7649d6dcc20e4cb1640cd55907bc">InputDomain</a> { <a class="el" href="classVamp_1_1Plugin.html#39cb7649d6dcc20e4cb1640cd55907bcd4a9f31b958a43a9757af7893aa2e7ff">TimeDomain</a>,
|
cannam@0
|
45 <a class="el" href="classVamp_1_1Plugin.html#39cb7649d6dcc20e4cb1640cd55907bca30e7877ab33f76acbdca28607e6ab53">FrequencyDomain</a>
|
cannam@0
|
46 }</td></tr>
|
cannam@0
|
47
|
cannam@0
|
48 <tr><td class="memItemLeft" nowrap align="right" valign="top">typedef std::vector<br>
|
cannam@0
|
49 < <a class="el" href="structVamp_1_1Plugin_1_1OutputDescriptor.html">OutputDescriptor</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classVamp_1_1Plugin.html#30f531b8fb69fac41a24e3d2a6a08ed9">OutputList</a></td></tr>
|
cannam@0
|
50
|
cannam@0
|
51 <tr><td class="memItemLeft" nowrap align="right" valign="top">typedef std::vector< <a class="el" href="structVamp_1_1Plugin_1_1Feature.html">Feature</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classVamp_1_1Plugin.html#0730bc72c87fa02eb8d2854b233f7be1">FeatureList</a></td></tr>
|
cannam@0
|
52
|
cannam@0
|
53 <tr><td class="memItemLeft" nowrap align="right" valign="top">typedef std::map< int, <br>
|
cannam@0
|
54 <a class="el" href="classVamp_1_1Plugin.html#0730bc72c87fa02eb8d2854b233f7be1">FeatureList</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classVamp_1_1Plugin.html#448fb57dc245d47923ec9eeaf9856c5f">FeatureSet</a></td></tr>
|
cannam@0
|
55
|
cannam@0
|
56 <tr><td class="memItemLeft" nowrap align="right" valign="top">typedef std::vector<br>
|
cannam@0
|
57 < <a class="el" href="structVamp_1_1PluginBase_1_1ParameterDescriptor.html">ParameterDescriptor</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classVamp_1_1PluginBase.html#3b6bb4bbd86affe1ca9deceea1aad4f8">ParameterList</a></td></tr>
|
cannam@0
|
58
|
cannam@0
|
59 <tr><td class="memItemLeft" nowrap align="right" valign="top">typedef std::vector< std::string > </td><td class="memItemRight" valign="bottom"><a class="el" href="classVamp_1_1PluginBase.html#7f66f00437b21e5f694fe02356b12f20">ProgramList</a></td></tr>
|
cannam@0
|
60
|
cannam@0
|
61 <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
|
cannam@0
|
62 <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classPercussionOnsetDetector.html#9f700579805ee5105758d847baab3511">PercussionOnsetDetector</a> (float inputSampleRate)</td></tr>
|
cannam@0
|
63
|
cannam@0
|
64 <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classPercussionOnsetDetector.html#99f833667cf8185e879d735216c7642b">~PercussionOnsetDetector</a> ()</td></tr>
|
cannam@0
|
65
|
cannam@0
|
66 <tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classPercussionOnsetDetector.html#349c528260622308f3850bcda8a448ab">initialise</a> (size_t channels, size_t stepSize, size_t blockSize)</td></tr>
|
cannam@0
|
67
|
cannam@0
|
68 <tr><td class="mdescLeft"> </td><td class="mdescRight">Initialise a plugin to prepare it for use with the given number of input channels, step size (window increment, in sample frames) and block size (window size, in sample frames). <a href="#349c528260622308f3850bcda8a448ab"></a><br></td></tr>
|
cannam@0
|
69 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classPercussionOnsetDetector.html#9b1075e992cd9599764ef3881fb91d1a">reset</a> ()</td></tr>
|
cannam@0
|
70
|
cannam@0
|
71 <tr><td class="mdescLeft"> </td><td class="mdescRight">Reset the plugin after use, to prepare it for another clean run. <a href="#9b1075e992cd9599764ef3881fb91d1a"></a><br></td></tr>
|
cannam@0
|
72 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classVamp_1_1Plugin.html#39cb7649d6dcc20e4cb1640cd55907bc">InputDomain</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classPercussionOnsetDetector.html#4f6954267696ee5bfa7dd1c4a6cfa92a">getInputDomain</a> () const </td></tr>
|
cannam@0
|
73
|
cannam@0
|
74 <tr><td class="mdescLeft"> </td><td class="mdescRight">Get the plugin's required input domain. <a href="#4f6954267696ee5bfa7dd1c4a6cfa92a"></a><br></td></tr>
|
cannam@0
|
75 <tr><td class="memItemLeft" nowrap align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classPercussionOnsetDetector.html#267c83a7533146c127e2c3be310e0154">getIdentifier</a> () const </td></tr>
|
cannam@0
|
76
|
cannam@0
|
77 <tr><td class="mdescLeft"> </td><td class="mdescRight">Get the computer-usable name of the plugin. <a href="#267c83a7533146c127e2c3be310e0154"></a><br></td></tr>
|
cannam@0
|
78 <tr><td class="memItemLeft" nowrap align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classPercussionOnsetDetector.html#a98f1ad061a11af98c054011a8844e6f">getName</a> () const </td></tr>
|
cannam@0
|
79
|
cannam@0
|
80 <tr><td class="mdescLeft"> </td><td class="mdescRight">Get a human-readable name or title of the plugin. <a href="#a98f1ad061a11af98c054011a8844e6f"></a><br></td></tr>
|
cannam@0
|
81 <tr><td class="memItemLeft" nowrap align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classPercussionOnsetDetector.html#9061d189705802a48973a7ccab6360db">getDescription</a> () const </td></tr>
|
cannam@0
|
82
|
cannam@0
|
83 <tr><td class="mdescLeft"> </td><td class="mdescRight">Get a human-readable description for the plugin, typically a line of text that may optionally be displayed in addition to the plugin's "name". <a href="#9061d189705802a48973a7ccab6360db"></a><br></td></tr>
|
cannam@0
|
84 <tr><td class="memItemLeft" nowrap align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classPercussionOnsetDetector.html#63d63f2cb7ea8d8b09d58cc13b541375">getMaker</a> () const </td></tr>
|
cannam@0
|
85
|
cannam@0
|
86 <tr><td class="mdescLeft"> </td><td class="mdescRight">Get the name of the author or vendor of the plugin in human-readable form. <a href="#63d63f2cb7ea8d8b09d58cc13b541375"></a><br></td></tr>
|
cannam@0
|
87 <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classPercussionOnsetDetector.html#d6b818dbd81867ce7be71c99cae861be">getPluginVersion</a> () const </td></tr>
|
cannam@0
|
88
|
cannam@0
|
89 <tr><td class="mdescLeft"> </td><td class="mdescRight">Get the version number of the plugin. <a href="#d6b818dbd81867ce7be71c99cae861be"></a><br></td></tr>
|
cannam@0
|
90 <tr><td class="memItemLeft" nowrap align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classPercussionOnsetDetector.html#1a22ece271330c94cc08798a77416351">getCopyright</a> () const </td></tr>
|
cannam@0
|
91
|
cannam@0
|
92 <tr><td class="mdescLeft"> </td><td class="mdescRight">Get the copyright statement or licensing summary for the plugin. <a href="#1a22ece271330c94cc08798a77416351"></a><br></td></tr>
|
cannam@0
|
93 <tr><td class="memItemLeft" nowrap align="right" valign="top">size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classPercussionOnsetDetector.html#733824891e11c306a7a678534b89b968">getPreferredStepSize</a> () const </td></tr>
|
cannam@0
|
94
|
cannam@0
|
95 <tr><td class="mdescLeft"> </td><td class="mdescRight">Get the preferred step size (window increment -- the distance in sample frames between the start frames of consecutive blocks passed to the <a class="el" href="classPercussionOnsetDetector.html#dfd989812b3e0cb8f4b498f56a5a9614" title="Process a single block of input data.">process()</a> function) for the plugin. <a href="#733824891e11c306a7a678534b89b968"></a><br></td></tr>
|
cannam@0
|
96 <tr><td class="memItemLeft" nowrap align="right" valign="top">size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classPercussionOnsetDetector.html#410c0b47c6c849d7ed9b726b84402ad0">getPreferredBlockSize</a> () const </td></tr>
|
cannam@0
|
97
|
cannam@0
|
98 <tr><td class="mdescLeft"> </td><td class="mdescRight">Get the preferred block size (window size -- the number of sample frames passed in each block to the <a class="el" href="classPercussionOnsetDetector.html#dfd989812b3e0cb8f4b498f56a5a9614" title="Process a single block of input data.">process()</a> function). <a href="#410c0b47c6c849d7ed9b726b84402ad0"></a><br></td></tr>
|
cannam@0
|
99 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classVamp_1_1PluginBase.html#3b6bb4bbd86affe1ca9deceea1aad4f8">ParameterList</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classPercussionOnsetDetector.html#bceae88cc9762b0ea310d7aad71de815">getParameterDescriptors</a> () const </td></tr>
|
cannam@0
|
100
|
cannam@0
|
101 <tr><td class="mdescLeft"> </td><td class="mdescRight">Get the controllable parameters of this plugin. <a href="#bceae88cc9762b0ea310d7aad71de815"></a><br></td></tr>
|
cannam@0
|
102 <tr><td class="memItemLeft" nowrap align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="classPercussionOnsetDetector.html#9b28da8315fcde46ce7644d6592ba527">getParameter</a> (std::string id) const </td></tr>
|
cannam@0
|
103
|
cannam@0
|
104 <tr><td class="mdescLeft"> </td><td class="mdescRight">Get the value of a named parameter. <a href="#9b28da8315fcde46ce7644d6592ba527"></a><br></td></tr>
|
cannam@0
|
105 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classPercussionOnsetDetector.html#a097d72488e1211f05fc661ff5c6dc01">setParameter</a> (std::string id, float value)</td></tr>
|
cannam@0
|
106
|
cannam@0
|
107 <tr><td class="mdescLeft"> </td><td class="mdescRight">Set a named parameter. <a href="#a097d72488e1211f05fc661ff5c6dc01"></a><br></td></tr>
|
cannam@0
|
108 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classVamp_1_1Plugin.html#30f531b8fb69fac41a24e3d2a6a08ed9">OutputList</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classPercussionOnsetDetector.html#a4537aa0eb58a67d6e824d46924cf782">getOutputDescriptors</a> () const </td></tr>
|
cannam@0
|
109
|
cannam@0
|
110 <tr><td class="mdescLeft"> </td><td class="mdescRight">Get the outputs of this plugin. <a href="#a4537aa0eb58a67d6e824d46924cf782"></a><br></td></tr>
|
cannam@0
|
111 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classVamp_1_1Plugin.html#448fb57dc245d47923ec9eeaf9856c5f">FeatureSet</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classPercussionOnsetDetector.html#dfd989812b3e0cb8f4b498f56a5a9614">process</a> (const float *const *inputBuffers, <a class="el" href="structVamp_1_1RealTime.html">Vamp::RealTime</a> timestamp)</td></tr>
|
cannam@0
|
112
|
cannam@0
|
113 <tr><td class="mdescLeft"> </td><td class="mdescRight">Process a single block of input data. <a href="#dfd989812b3e0cb8f4b498f56a5a9614"></a><br></td></tr>
|
cannam@0
|
114 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classVamp_1_1Plugin.html#448fb57dc245d47923ec9eeaf9856c5f">FeatureSet</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classPercussionOnsetDetector.html#d3d6767ed137783e84f842b4d4732ffa">getRemainingFeatures</a> ()</td></tr>
|
cannam@0
|
115
|
cannam@0
|
116 <tr><td class="mdescLeft"> </td><td class="mdescRight">After all blocks have been processed, calculate and return any remaining features derived from the complete input. <a href="#d3d6767ed137783e84f842b4d4732ffa"></a><br></td></tr>
|
cannam@0
|
117 <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classVamp_1_1Plugin.html#267b42e866df3cf0d190893e8096f525">getMinChannelCount</a> () const </td></tr>
|
cannam@0
|
118
|
cannam@0
|
119 <tr><td class="mdescLeft"> </td><td class="mdescRight">Get the minimum supported number of input channels. <a href="#267b42e866df3cf0d190893e8096f525"></a><br></td></tr>
|
cannam@0
|
120 <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classVamp_1_1Plugin.html#2c5ab12b6fa4847cb244bd1e9cb3ae5e">getMaxChannelCount</a> () const </td></tr>
|
cannam@0
|
121
|
cannam@0
|
122 <tr><td class="mdescLeft"> </td><td class="mdescRight">Get the maximum supported number of input channels. <a href="#2c5ab12b6fa4847cb244bd1e9cb3ae5e"></a><br></td></tr>
|
cannam@0
|
123 <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classVamp_1_1Plugin.html#be13b3997a69fbcc09e2213faa352f91">getType</a> () const </td></tr>
|
cannam@0
|
124
|
cannam@0
|
125 <tr><td class="mdescLeft"> </td><td class="mdescRight">Used to distinguish between <a class="el" href="classVamp_1_1Plugin.html" title="Vamp::Plugin is a base class for plugin instance classes that provide feature extraction...">Vamp::Plugin</a> and other potential sibling subclasses of <a class="el" href="classVamp_1_1PluginBase.html" title="A base class for plugins with optional configurable parameters, programs, etc.">PluginBase</a>. <a href="#be13b3997a69fbcc09e2213faa352f91"></a><br></td></tr>
|
cannam@0
|
126 <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual unsigned int </td><td class="memItemRight" valign="bottom"><a class="el" href="classVamp_1_1PluginBase.html#8fd2c48291c64b790f0efb8948508dcf">getVampApiVersion</a> () const </td></tr>
|
cannam@0
|
127
|
cannam@21
|
128 <tr><td class="mdescLeft"> </td><td class="mdescRight">Get the <a class="el" href="namespaceVamp.html">Vamp</a> API compatibility level of the plugin. <a href="#8fd2c48291c64b790f0efb8948508dcf"></a><br></td></tr>
|
cannam@0
|
129 <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classVamp_1_1PluginBase.html#7f66f00437b21e5f694fe02356b12f20">ProgramList</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classVamp_1_1PluginBase.html#bb307c60bdb981d5f5af50c3c4ae84af">getPrograms</a> () const </td></tr>
|
cannam@0
|
130
|
cannam@0
|
131 <tr><td class="mdescLeft"> </td><td class="mdescRight">Get the program settings available in this plugin. <a href="#bb307c60bdb981d5f5af50c3c4ae84af"></a><br></td></tr>
|
cannam@0
|
132 <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classVamp_1_1PluginBase.html#24e77eccf1bdfbbca3c79bb25e8799b3">getCurrentProgram</a> () const </td></tr>
|
cannam@0
|
133
|
cannam@0
|
134 <tr><td class="mdescLeft"> </td><td class="mdescRight">Get the current program. <a href="#24e77eccf1bdfbbca3c79bb25e8799b3"></a><br></td></tr>
|
cannam@0
|
135 <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classVamp_1_1PluginBase.html#add3a547ef140bae200473a9518e3353">selectProgram</a> (std::string)</td></tr>
|
cannam@0
|
136
|
cannam@0
|
137 <tr><td class="mdescLeft"> </td><td class="mdescRight">Select a program. <a href="#add3a547ef140bae200473a9518e3353"></a><br></td></tr>
|
cannam@0
|
138 <tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr>
|
cannam@0
|
139 <tr><td class="memItemLeft" nowrap align="right" valign="top">size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classPercussionOnsetDetector.html#abac0cf7e961482b075777e5f0686e6c">m_stepSize</a></td></tr>
|
cannam@0
|
140
|
cannam@0
|
141 <tr><td class="memItemLeft" nowrap align="right" valign="top">size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classPercussionOnsetDetector.html#920de543dbcf70a2edd80b5b31313285">m_blockSize</a></td></tr>
|
cannam@0
|
142
|
cannam@0
|
143 <tr><td class="memItemLeft" nowrap align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="classPercussionOnsetDetector.html#b04119adad56d87f2e633de289aab507">m_threshold</a></td></tr>
|
cannam@0
|
144
|
cannam@0
|
145 <tr><td class="memItemLeft" nowrap align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="classPercussionOnsetDetector.html#4e9770f246ba3bc75e7fc2cb8f9010af">m_sensitivity</a></td></tr>
|
cannam@0
|
146
|
cannam@0
|
147 <tr><td class="memItemLeft" nowrap align="right" valign="top">float * </td><td class="memItemRight" valign="bottom"><a class="el" href="classPercussionOnsetDetector.html#30daa717267251a9d49afe57c328e989">m_priorMagnitudes</a></td></tr>
|
cannam@0
|
148
|
cannam@0
|
149 <tr><td class="memItemLeft" nowrap align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="classPercussionOnsetDetector.html#cd80162c65212be7fa91251263fb9c3d">m_dfMinus1</a></td></tr>
|
cannam@0
|
150
|
cannam@0
|
151 <tr><td class="memItemLeft" nowrap align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="classPercussionOnsetDetector.html#6ad7d8353cc681ff42a63b127cca5779">m_dfMinus2</a></td></tr>
|
cannam@0
|
152
|
cannam@0
|
153 <tr><td class="memItemLeft" nowrap align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="classVamp_1_1Plugin.html#59b9dd82a4f4eb946cd0474cc81abc23">m_inputSampleRate</a></td></tr>
|
cannam@0
|
154
|
cannam@0
|
155 </table>
|
cannam@0
|
156 <hr><h2>Member Typedef Documentation</h2>
|
cannam@0
|
157 <a class="anchor" name="30f531b8fb69fac41a24e3d2a6a08ed9"></a><!-- doxytag: member="PercussionOnsetDetector::OutputList" ref="30f531b8fb69fac41a24e3d2a6a08ed9" args="" -->
|
cannam@0
|
158 <div class="memitem">
|
cannam@0
|
159 <div class="memproto">
|
cannam@0
|
160 <table class="memname">
|
cannam@0
|
161 <tr>
|
cannam@0
|
162 <td class="memname">typedef std::vector<<a class="el" href="structVamp_1_1Plugin_1_1OutputDescriptor.html">OutputDescriptor</a>> <a class="el" href="classVamp_1_1Plugin.html#30f531b8fb69fac41a24e3d2a6a08ed9">Vamp::Plugin::OutputList</a><code> [inherited]</code> </td>
|
cannam@0
|
163 </tr>
|
cannam@0
|
164 </table>
|
cannam@0
|
165 </div>
|
cannam@0
|
166 <div class="memdoc">
|
cannam@0
|
167
|
cannam@0
|
168 <p>
|
cannam@0
|
169
|
cannam@21
|
170 <p>Definition at line <a class="el" href="vamp-sdk_2Plugin_8h-source.html#l00322">322</a> of file <a class="el" href="vamp-sdk_2Plugin_8h-source.html">vamp-sdk/Plugin.h</a>.</p>
|
cannam@0
|
171
|
cannam@0
|
172 </div>
|
cannam@0
|
173 </div><p>
|
cannam@0
|
174 <a class="anchor" name="0730bc72c87fa02eb8d2854b233f7be1"></a><!-- doxytag: member="PercussionOnsetDetector::FeatureList" ref="0730bc72c87fa02eb8d2854b233f7be1" args="" -->
|
cannam@0
|
175 <div class="memitem">
|
cannam@0
|
176 <div class="memproto">
|
cannam@0
|
177 <table class="memname">
|
cannam@0
|
178 <tr>
|
cannam@0
|
179 <td class="memname">typedef std::vector<<a class="el" href="structVamp_1_1Plugin_1_1Feature.html">Feature</a>> <a class="el" href="classVamp_1_1Plugin.html#0730bc72c87fa02eb8d2854b233f7be1">Vamp::Plugin::FeatureList</a><code> [inherited]</code> </td>
|
cannam@0
|
180 </tr>
|
cannam@0
|
181 </table>
|
cannam@0
|
182 </div>
|
cannam@0
|
183 <div class="memdoc">
|
cannam@0
|
184
|
cannam@0
|
185 <p>
|
cannam@0
|
186
|
cannam@21
|
187 <p>Definition at line <a class="el" href="vamp-sdk_2Plugin_8h-source.html#l00380">380</a> of file <a class="el" href="vamp-sdk_2Plugin_8h-source.html">vamp-sdk/Plugin.h</a>.</p>
|
cannam@0
|
188
|
cannam@0
|
189 </div>
|
cannam@0
|
190 </div><p>
|
cannam@0
|
191 <a class="anchor" name="448fb57dc245d47923ec9eeaf9856c5f"></a><!-- doxytag: member="PercussionOnsetDetector::FeatureSet" ref="448fb57dc245d47923ec9eeaf9856c5f" args="" -->
|
cannam@0
|
192 <div class="memitem">
|
cannam@0
|
193 <div class="memproto">
|
cannam@0
|
194 <table class="memname">
|
cannam@0
|
195 <tr>
|
cannam@0
|
196 <td class="memname">typedef std::map<int, <a class="el" href="classVamp_1_1Plugin.html#0730bc72c87fa02eb8d2854b233f7be1">FeatureList</a>> <a class="el" href="classVamp_1_1Plugin.html#448fb57dc245d47923ec9eeaf9856c5f">Vamp::Plugin::FeatureSet</a><code> [inherited]</code> </td>
|
cannam@0
|
197 </tr>
|
cannam@0
|
198 </table>
|
cannam@0
|
199 </div>
|
cannam@0
|
200 <div class="memdoc">
|
cannam@0
|
201
|
cannam@0
|
202 <p>
|
cannam@0
|
203
|
cannam@21
|
204 <p>Definition at line <a class="el" href="vamp-sdk_2Plugin_8h-source.html#l00382">382</a> of file <a class="el" href="vamp-sdk_2Plugin_8h-source.html">vamp-sdk/Plugin.h</a>.</p>
|
cannam@0
|
205
|
cannam@0
|
206 </div>
|
cannam@0
|
207 </div><p>
|
cannam@0
|
208 <a class="anchor" name="3b6bb4bbd86affe1ca9deceea1aad4f8"></a><!-- doxytag: member="PercussionOnsetDetector::ParameterList" ref="3b6bb4bbd86affe1ca9deceea1aad4f8" args="" -->
|
cannam@0
|
209 <div class="memitem">
|
cannam@0
|
210 <div class="memproto">
|
cannam@0
|
211 <table class="memname">
|
cannam@0
|
212 <tr>
|
cannam@0
|
213 <td class="memname">typedef std::vector<<a class="el" href="structVamp_1_1PluginBase_1_1ParameterDescriptor.html">ParameterDescriptor</a>> <a class="el" href="classVamp_1_1PluginBase.html#3b6bb4bbd86affe1ca9deceea1aad4f8">Vamp::PluginBase::ParameterList</a><code> [inherited]</code> </td>
|
cannam@0
|
214 </tr>
|
cannam@0
|
215 </table>
|
cannam@0
|
216 </div>
|
cannam@0
|
217 <div class="memdoc">
|
cannam@0
|
218
|
cannam@0
|
219 <p>
|
cannam@0
|
220
|
cannam@21
|
221 <p>Definition at line <a class="el" href="vamp-sdk_2PluginBase_8h-source.html#l00203">203</a> of file <a class="el" href="vamp-sdk_2PluginBase_8h-source.html">vamp-sdk/PluginBase.h</a>.</p>
|
cannam@0
|
222
|
cannam@0
|
223 </div>
|
cannam@0
|
224 </div><p>
|
cannam@0
|
225 <a class="anchor" name="7f66f00437b21e5f694fe02356b12f20"></a><!-- doxytag: member="PercussionOnsetDetector::ProgramList" ref="7f66f00437b21e5f694fe02356b12f20" args="" -->
|
cannam@0
|
226 <div class="memitem">
|
cannam@0
|
227 <div class="memproto">
|
cannam@0
|
228 <table class="memname">
|
cannam@0
|
229 <tr>
|
cannam@0
|
230 <td class="memname">typedef std::vector<std::string> <a class="el" href="classVamp_1_1PluginBase.html#7f66f00437b21e5f694fe02356b12f20">Vamp::PluginBase::ProgramList</a><code> [inherited]</code> </td>
|
cannam@0
|
231 </tr>
|
cannam@0
|
232 </table>
|
cannam@0
|
233 </div>
|
cannam@0
|
234 <div class="memdoc">
|
cannam@0
|
235
|
cannam@0
|
236 <p>
|
cannam@0
|
237
|
cannam@21
|
238 <p>Definition at line <a class="el" href="vamp-sdk_2PluginBase_8h-source.html#l00225">225</a> of file <a class="el" href="vamp-sdk_2PluginBase_8h-source.html">vamp-sdk/PluginBase.h</a>.</p>
|
cannam@0
|
239
|
cannam@0
|
240 </div>
|
cannam@0
|
241 </div><p>
|
cannam@0
|
242 <hr><h2>Member Enumeration Documentation</h2>
|
cannam@0
|
243 <a class="anchor" name="39cb7649d6dcc20e4cb1640cd55907bc"></a><!-- doxytag: member="PercussionOnsetDetector::InputDomain" ref="39cb7649d6dcc20e4cb1640cd55907bc" args="" -->
|
cannam@0
|
244 <div class="memitem">
|
cannam@0
|
245 <div class="memproto">
|
cannam@0
|
246 <table class="memname">
|
cannam@0
|
247 <tr>
|
cannam@0
|
248 <td class="memname">enum <a class="el" href="classVamp_1_1Plugin.html#39cb7649d6dcc20e4cb1640cd55907bc">Vamp::Plugin::InputDomain</a><code> [inherited]</code> </td>
|
cannam@0
|
249 </tr>
|
cannam@0
|
250 </table>
|
cannam@0
|
251 </div>
|
cannam@0
|
252 <div class="memdoc">
|
cannam@0
|
253
|
cannam@0
|
254 <p>
|
cannam@0
|
255 <dl compact><dt><b>Enumerator: </b></dt><dd>
|
cannam@0
|
256 <table border="0" cellspacing="2" cellpadding="0">
|
cannam@0
|
257 <tr><td valign="top"><em><a class="anchor" name="39cb7649d6dcc20e4cb1640cd55907bcd4a9f31b958a43a9757af7893aa2e7ff"></a><!-- doxytag: member="TimeDomain" ref="39cb7649d6dcc20e4cb1640cd55907bcd4a9f31b958a43a9757af7893aa2e7ff" args="" -->TimeDomain</em> </td><td>
|
cannam@0
|
258 </td></tr>
|
cannam@0
|
259 <tr><td valign="top"><em><a class="anchor" name="39cb7649d6dcc20e4cb1640cd55907bca30e7877ab33f76acbdca28607e6ab53"></a><!-- doxytag: member="FrequencyDomain" ref="39cb7649d6dcc20e4cb1640cd55907bca30e7877ab33f76acbdca28607e6ab53" args="" -->FrequencyDomain</em> </td><td>
|
cannam@0
|
260 </td></tr>
|
cannam@0
|
261 </table>
|
cannam@0
|
262 </dl>
|
cannam@0
|
263
|
cannam@21
|
264 <p>Definition at line <a class="el" href="vamp-sdk_2Plugin_8h-source.html#l00152">152</a> of file <a class="el" href="vamp-sdk_2Plugin_8h-source.html">vamp-sdk/Plugin.h</a>.</p>
|
cannam@0
|
265
|
cannam@0
|
266 </div>
|
cannam@0
|
267 </div><p>
|
cannam@0
|
268 <hr><h2>Constructor & Destructor Documentation</h2>
|
cannam@0
|
269 <a class="anchor" name="9f700579805ee5105758d847baab3511"></a><!-- doxytag: member="PercussionOnsetDetector::PercussionOnsetDetector" ref="9f700579805ee5105758d847baab3511" args="(float inputSampleRate)" -->
|
cannam@0
|
270 <div class="memitem">
|
cannam@0
|
271 <div class="memproto">
|
cannam@0
|
272 <table class="memname">
|
cannam@0
|
273 <tr>
|
cannam@0
|
274 <td class="memname">PercussionOnsetDetector::PercussionOnsetDetector </td>
|
cannam@0
|
275 <td>(</td>
|
cannam@0
|
276 <td class="paramtype">float </td>
|
cannam@0
|
277 <td class="paramname"> <em>inputSampleRate</em> </td>
|
cannam@0
|
278 <td> ) </td>
|
cannam@21
|
279 <td></td>
|
cannam@0
|
280 </tr>
|
cannam@0
|
281 </table>
|
cannam@0
|
282 </div>
|
cannam@0
|
283 <div class="memdoc">
|
cannam@0
|
284
|
cannam@0
|
285 <p>
|
cannam@0
|
286
|
cannam@0
|
287 <p>Definition at line <a class="el" href="PercussionOnsetDetector_8cpp-source.html#l00047">47</a> of file <a class="el" href="PercussionOnsetDetector_8cpp-source.html">PercussionOnsetDetector.cpp</a>.</p>
|
cannam@0
|
288
|
cannam@0
|
289 </div>
|
cannam@0
|
290 </div><p>
|
cannam@0
|
291 <a class="anchor" name="99f833667cf8185e879d735216c7642b"></a><!-- doxytag: member="PercussionOnsetDetector::~PercussionOnsetDetector" ref="99f833667cf8185e879d735216c7642b" args="()" -->
|
cannam@0
|
292 <div class="memitem">
|
cannam@0
|
293 <div class="memproto">
|
cannam@0
|
294 <table class="memname">
|
cannam@0
|
295 <tr>
|
cannam@0
|
296 <td class="memname">PercussionOnsetDetector::~PercussionOnsetDetector </td>
|
cannam@0
|
297 <td>(</td>
|
cannam@0
|
298 <td class="paramname"> </td>
|
cannam@0
|
299 <td> ) </td>
|
cannam@21
|
300 <td><code> [virtual]</code></td>
|
cannam@0
|
301 </tr>
|
cannam@0
|
302 </table>
|
cannam@0
|
303 </div>
|
cannam@0
|
304 <div class="memdoc">
|
cannam@0
|
305
|
cannam@0
|
306 <p>
|
cannam@0
|
307
|
cannam@0
|
308 <p>Definition at line <a class="el" href="PercussionOnsetDetector_8cpp-source.html#l00059">59</a> of file <a class="el" href="PercussionOnsetDetector_8cpp-source.html">PercussionOnsetDetector.cpp</a>.</p>
|
cannam@0
|
309
|
cannam@0
|
310 <p>References <a class="el" href="PercussionOnsetDetector_8h-source.html#l00084">m_priorMagnitudes</a>.</p>
|
cannam@0
|
311
|
cannam@0
|
312 </div>
|
cannam@0
|
313 </div><p>
|
cannam@0
|
314 <hr><h2>Member Function Documentation</h2>
|
cannam@0
|
315 <a class="anchor" name="349c528260622308f3850bcda8a448ab"></a><!-- doxytag: member="PercussionOnsetDetector::initialise" ref="349c528260622308f3850bcda8a448ab" args="(size_t channels, size_t stepSize, size_t blockSize)" -->
|
cannam@0
|
316 <div class="memitem">
|
cannam@0
|
317 <div class="memproto">
|
cannam@0
|
318 <table class="memname">
|
cannam@0
|
319 <tr>
|
cannam@0
|
320 <td class="memname">bool PercussionOnsetDetector::initialise </td>
|
cannam@0
|
321 <td>(</td>
|
cannam@0
|
322 <td class="paramtype">size_t </td>
|
cannam@0
|
323 <td class="paramname"> <em>inputChannels</em>, </td>
|
cannam@0
|
324 </tr>
|
cannam@0
|
325 <tr>
|
cannam@0
|
326 <td class="paramkey"></td>
|
cannam@0
|
327 <td></td>
|
cannam@0
|
328 <td class="paramtype">size_t </td>
|
cannam@0
|
329 <td class="paramname"> <em>stepSize</em>, </td>
|
cannam@0
|
330 </tr>
|
cannam@0
|
331 <tr>
|
cannam@0
|
332 <td class="paramkey"></td>
|
cannam@0
|
333 <td></td>
|
cannam@0
|
334 <td class="paramtype">size_t </td>
|
cannam@0
|
335 <td class="paramname"> <em>blockSize</em></td><td> </td>
|
cannam@0
|
336 </tr>
|
cannam@0
|
337 <tr>
|
cannam@0
|
338 <td></td>
|
cannam@0
|
339 <td>)</td>
|
cannam@21
|
340 <td></td><td></td><td><code> [virtual]</code></td>
|
cannam@0
|
341 </tr>
|
cannam@0
|
342 </table>
|
cannam@0
|
343 </div>
|
cannam@0
|
344 <div class="memdoc">
|
cannam@0
|
345
|
cannam@0
|
346 <p>
|
cannam@0
|
347 Initialise a plugin to prepare it for use with the given number of input channels, step size (window increment, in sample frames) and block size (window size, in sample frames).
|
cannam@0
|
348 <p>
|
cannam@0
|
349 The input sample rate should have been already specified at construction time.<p>
|
cannam@0
|
350 Return true for successful initialisation, false if the number of input channels, step size and/or block size cannot be supported.
|
cannam@0
|
351 <p>Implements <a class="el" href="classVamp_1_1Plugin.html#f26212cf5fc511b603a8b48034247822">Vamp::Plugin</a>.</p>
|
cannam@0
|
352
|
cannam@0
|
353 <p>Definition at line <a class="el" href="PercussionOnsetDetector_8cpp-source.html#l00113">113</a> of file <a class="el" href="PercussionOnsetDetector_8cpp-source.html">PercussionOnsetDetector.cpp</a>.</p>
|
cannam@0
|
354
|
cannam@21
|
355 <p>References <a class="el" href="vamp-sdk_2Plugin_8h-source.html#l00199">Vamp::Plugin::getMaxChannelCount()</a>, <a class="el" href="vamp-sdk_2Plugin_8h-source.html#l00194">Vamp::Plugin::getMinChannelCount()</a>, <a class="el" href="PercussionOnsetDetector_8h-source.html#l00080">m_blockSize</a>, <a class="el" href="PercussionOnsetDetector_8h-source.html#l00085">m_dfMinus1</a>, <a class="el" href="PercussionOnsetDetector_8h-source.html#l00086">m_dfMinus2</a>, <a class="el" href="PercussionOnsetDetector_8h-source.html#l00084">m_priorMagnitudes</a>, and <a class="el" href="PercussionOnsetDetector_8h-source.html#l00079">m_stepSize</a>.</p>
|
cannam@0
|
356
|
cannam@0
|
357 </div>
|
cannam@0
|
358 </div><p>
|
cannam@0
|
359 <a class="anchor" name="9b1075e992cd9599764ef3881fb91d1a"></a><!-- doxytag: member="PercussionOnsetDetector::reset" ref="9b1075e992cd9599764ef3881fb91d1a" args="()" -->
|
cannam@0
|
360 <div class="memitem">
|
cannam@0
|
361 <div class="memproto">
|
cannam@0
|
362 <table class="memname">
|
cannam@0
|
363 <tr>
|
cannam@0
|
364 <td class="memname">void PercussionOnsetDetector::reset </td>
|
cannam@0
|
365 <td>(</td>
|
cannam@0
|
366 <td class="paramname"> </td>
|
cannam@0
|
367 <td> ) </td>
|
cannam@21
|
368 <td><code> [virtual]</code></td>
|
cannam@0
|
369 </tr>
|
cannam@0
|
370 </table>
|
cannam@0
|
371 </div>
|
cannam@0
|
372 <div class="memdoc">
|
cannam@0
|
373
|
cannam@0
|
374 <p>
|
cannam@0
|
375 Reset the plugin after use, to prepare it for another clean run.
|
cannam@0
|
376 <p>
|
cannam@0
|
377 Not called for the first initialisation (i.e. initialise must also do a reset).
|
cannam@0
|
378 <p>Implements <a class="el" href="classVamp_1_1Plugin.html#ad67dc9d0052417511070c4ebcfbf24f">Vamp::Plugin</a>.</p>
|
cannam@0
|
379
|
cannam@0
|
380 <p>Definition at line <a class="el" href="PercussionOnsetDetector_8cpp-source.html#l00134">134</a> of file <a class="el" href="PercussionOnsetDetector_8cpp-source.html">PercussionOnsetDetector.cpp</a>.</p>
|
cannam@0
|
381
|
cannam@0
|
382 <p>References <a class="el" href="PercussionOnsetDetector_8h-source.html#l00080">m_blockSize</a>, <a class="el" href="PercussionOnsetDetector_8h-source.html#l00085">m_dfMinus1</a>, <a class="el" href="PercussionOnsetDetector_8h-source.html#l00086">m_dfMinus2</a>, and <a class="el" href="PercussionOnsetDetector_8h-source.html#l00084">m_priorMagnitudes</a>.</p>
|
cannam@0
|
383
|
cannam@0
|
384 </div>
|
cannam@0
|
385 </div><p>
|
cannam@0
|
386 <a class="anchor" name="4f6954267696ee5bfa7dd1c4a6cfa92a"></a><!-- doxytag: member="PercussionOnsetDetector::getInputDomain" ref="4f6954267696ee5bfa7dd1c4a6cfa92a" args="() const " -->
|
cannam@0
|
387 <div class="memitem">
|
cannam@0
|
388 <div class="memproto">
|
cannam@0
|
389 <table class="memname">
|
cannam@0
|
390 <tr>
|
cannam@0
|
391 <td class="memname"><a class="el" href="classVamp_1_1Plugin.html#39cb7649d6dcc20e4cb1640cd55907bc">InputDomain</a> PercussionOnsetDetector::getInputDomain </td>
|
cannam@0
|
392 <td>(</td>
|
cannam@0
|
393 <td class="paramname"> </td>
|
cannam@0
|
394 <td> ) </td>
|
cannam@21
|
395 <td> const<code> [inline, virtual]</code></td>
|
cannam@0
|
396 </tr>
|
cannam@0
|
397 </table>
|
cannam@0
|
398 </div>
|
cannam@0
|
399 <div class="memdoc">
|
cannam@0
|
400
|
cannam@0
|
401 <p>
|
cannam@0
|
402 Get the plugin's required input domain.
|
cannam@0
|
403 <p>
|
cannam@0
|
404 If this is TimeDomain, the samples provided to the <a class="el" href="classPercussionOnsetDetector.html#dfd989812b3e0cb8f4b498f56a5a9614" title="Process a single block of input data.">process()</a> function (below) will be in the time domain, as for a traditional audio processing plugin. If this is FrequencyDomain, the host will carry out a windowed FFT of size equal to the negotiated block size on the data before passing the frequency bin data in to <a class="el" href="classPercussionOnsetDetector.html#dfd989812b3e0cb8f4b498f56a5a9614" title="Process a single block of input data.">process()</a>. The plugin does not get to choose the window type -- the host will either let the user do so, or will use a Hanning window.
|
cannam@0
|
405 <p>Implements <a class="el" href="classVamp_1_1Plugin.html#e1d317a9702cbeda65ddf0ec500c1ff6">Vamp::Plugin</a>.</p>
|
cannam@0
|
406
|
cannam@0
|
407 <p>Definition at line <a class="el" href="PercussionOnsetDetector_8h-source.html#l00055">55</a> of file <a class="el" href="PercussionOnsetDetector_8h-source.html">PercussionOnsetDetector.h</a>.</p>
|
cannam@0
|
408
|
cannam@21
|
409 <p>References <a class="el" href="vamp-sdk_2Plugin_8h-source.html#l00152">Vamp::Plugin::FrequencyDomain</a>.</p>
|
cannam@0
|
410
|
cannam@0
|
411 </div>
|
cannam@0
|
412 </div><p>
|
cannam@0
|
413 <a class="anchor" name="267c83a7533146c127e2c3be310e0154"></a><!-- doxytag: member="PercussionOnsetDetector::getIdentifier" ref="267c83a7533146c127e2c3be310e0154" args="() const " -->
|
cannam@0
|
414 <div class="memitem">
|
cannam@0
|
415 <div class="memproto">
|
cannam@0
|
416 <table class="memname">
|
cannam@0
|
417 <tr>
|
cannam@0
|
418 <td class="memname">string PercussionOnsetDetector::getIdentifier </td>
|
cannam@0
|
419 <td>(</td>
|
cannam@0
|
420 <td class="paramname"> </td>
|
cannam@0
|
421 <td> ) </td>
|
cannam@21
|
422 <td> const<code> [virtual]</code></td>
|
cannam@0
|
423 </tr>
|
cannam@0
|
424 </table>
|
cannam@0
|
425 </div>
|
cannam@0
|
426 <div class="memdoc">
|
cannam@0
|
427
|
cannam@0
|
428 <p>
|
cannam@0
|
429 Get the computer-usable name of the plugin.
|
cannam@0
|
430 <p>
|
cannam@0
|
431 This should be reasonably short and contain no whitespace or punctuation characters. It may only contain the characters [a-zA-Z0-9_-]. This is the authoritative way for a program to identify a plugin within a given library.<p>
|
cannam@0
|
432 This text may be visible to the user, but it should not be the main text used to identify a plugin to the user (that will be the name, below).<p>
|
cannam@0
|
433 Example: "zero_crossings"
|
cannam@0
|
434 <p>Implements <a class="el" href="classVamp_1_1PluginBase.html#d1c6dfc77aa03d937a885b7f08258f4a">Vamp::PluginBase</a>.</p>
|
cannam@0
|
435
|
cannam@0
|
436 <p>Definition at line <a class="el" href="PercussionOnsetDetector_8cpp-source.html#l00065">65</a> of file <a class="el" href="PercussionOnsetDetector_8cpp-source.html">PercussionOnsetDetector.cpp</a>.</p>
|
cannam@0
|
437
|
cannam@0
|
438 </div>
|
cannam@0
|
439 </div><p>
|
cannam@0
|
440 <a class="anchor" name="a98f1ad061a11af98c054011a8844e6f"></a><!-- doxytag: member="PercussionOnsetDetector::getName" ref="a98f1ad061a11af98c054011a8844e6f" args="() const " -->
|
cannam@0
|
441 <div class="memitem">
|
cannam@0
|
442 <div class="memproto">
|
cannam@0
|
443 <table class="memname">
|
cannam@0
|
444 <tr>
|
cannam@0
|
445 <td class="memname">string PercussionOnsetDetector::getName </td>
|
cannam@0
|
446 <td>(</td>
|
cannam@0
|
447 <td class="paramname"> </td>
|
cannam@0
|
448 <td> ) </td>
|
cannam@21
|
449 <td> const<code> [virtual]</code></td>
|
cannam@0
|
450 </tr>
|
cannam@0
|
451 </table>
|
cannam@0
|
452 </div>
|
cannam@0
|
453 <div class="memdoc">
|
cannam@0
|
454
|
cannam@0
|
455 <p>
|
cannam@0
|
456 Get a human-readable name or title of the plugin.
|
cannam@0
|
457 <p>
|
cannam@0
|
458 This should be brief and self-contained, as it may be used to identify the plugin to the user in isolation (i.e. without also showing the plugin's "identifier").<p>
|
cannam@0
|
459 Example: "Zero Crossings"
|
cannam@0
|
460 <p>Implements <a class="el" href="classVamp_1_1PluginBase.html#18619d5097e444ecefee0c359da53232">Vamp::PluginBase</a>.</p>
|
cannam@0
|
461
|
cannam@0
|
462 <p>Definition at line <a class="el" href="PercussionOnsetDetector_8cpp-source.html#l00071">71</a> of file <a class="el" href="PercussionOnsetDetector_8cpp-source.html">PercussionOnsetDetector.cpp</a>.</p>
|
cannam@0
|
463
|
cannam@0
|
464 </div>
|
cannam@0
|
465 </div><p>
|
cannam@0
|
466 <a class="anchor" name="9061d189705802a48973a7ccab6360db"></a><!-- doxytag: member="PercussionOnsetDetector::getDescription" ref="9061d189705802a48973a7ccab6360db" args="() const " -->
|
cannam@0
|
467 <div class="memitem">
|
cannam@0
|
468 <div class="memproto">
|
cannam@0
|
469 <table class="memname">
|
cannam@0
|
470 <tr>
|
cannam@0
|
471 <td class="memname">string PercussionOnsetDetector::getDescription </td>
|
cannam@0
|
472 <td>(</td>
|
cannam@0
|
473 <td class="paramname"> </td>
|
cannam@0
|
474 <td> ) </td>
|
cannam@21
|
475 <td> const<code> [virtual]</code></td>
|
cannam@0
|
476 </tr>
|
cannam@0
|
477 </table>
|
cannam@0
|
478 </div>
|
cannam@0
|
479 <div class="memdoc">
|
cannam@0
|
480
|
cannam@0
|
481 <p>
|
cannam@0
|
482 Get a human-readable description for the plugin, typically a line of text that may optionally be displayed in addition to the plugin's "name".
|
cannam@0
|
483 <p>
|
cannam@0
|
484 May be empty if the name has said it all already.<p>
|
cannam@0
|
485 Example: "Detect and count zero crossing points"
|
cannam@0
|
486 <p>Implements <a class="el" href="classVamp_1_1PluginBase.html#59153a02364f75fff46973b2072e9e5a">Vamp::PluginBase</a>.</p>
|
cannam@0
|
487
|
cannam@0
|
488 <p>Definition at line <a class="el" href="PercussionOnsetDetector_8cpp-source.html#l00077">77</a> of file <a class="el" href="PercussionOnsetDetector_8cpp-source.html">PercussionOnsetDetector.cpp</a>.</p>
|
cannam@0
|
489
|
cannam@0
|
490 </div>
|
cannam@0
|
491 </div><p>
|
cannam@0
|
492 <a class="anchor" name="63d63f2cb7ea8d8b09d58cc13b541375"></a><!-- doxytag: member="PercussionOnsetDetector::getMaker" ref="63d63f2cb7ea8d8b09d58cc13b541375" args="() const " -->
|
cannam@0
|
493 <div class="memitem">
|
cannam@0
|
494 <div class="memproto">
|
cannam@0
|
495 <table class="memname">
|
cannam@0
|
496 <tr>
|
cannam@0
|
497 <td class="memname">string PercussionOnsetDetector::getMaker </td>
|
cannam@0
|
498 <td>(</td>
|
cannam@0
|
499 <td class="paramname"> </td>
|
cannam@0
|
500 <td> ) </td>
|
cannam@21
|
501 <td> const<code> [virtual]</code></td>
|
cannam@0
|
502 </tr>
|
cannam@0
|
503 </table>
|
cannam@0
|
504 </div>
|
cannam@0
|
505 <div class="memdoc">
|
cannam@0
|
506
|
cannam@0
|
507 <p>
|
cannam@0
|
508 Get the name of the author or vendor of the plugin in human-readable form.
|
cannam@0
|
509 <p>
|
cannam@0
|
510 This should be a short identifying text, as it may be used to label plugins from the same source in a menu or similar.
|
cannam@0
|
511 <p>Implements <a class="el" href="classVamp_1_1PluginBase.html#53d9918bf9ef4d12feedf66b2b26c637">Vamp::PluginBase</a>.</p>
|
cannam@0
|
512
|
cannam@0
|
513 <p>Definition at line <a class="el" href="PercussionOnsetDetector_8cpp-source.html#l00083">83</a> of file <a class="el" href="PercussionOnsetDetector_8cpp-source.html">PercussionOnsetDetector.cpp</a>.</p>
|
cannam@0
|
514
|
cannam@0
|
515 </div>
|
cannam@0
|
516 </div><p>
|
cannam@0
|
517 <a class="anchor" name="d6b818dbd81867ce7be71c99cae861be"></a><!-- doxytag: member="PercussionOnsetDetector::getPluginVersion" ref="d6b818dbd81867ce7be71c99cae861be" args="() const " -->
|
cannam@0
|
518 <div class="memitem">
|
cannam@0
|
519 <div class="memproto">
|
cannam@0
|
520 <table class="memname">
|
cannam@0
|
521 <tr>
|
cannam@0
|
522 <td class="memname">int PercussionOnsetDetector::getPluginVersion </td>
|
cannam@0
|
523 <td>(</td>
|
cannam@0
|
524 <td class="paramname"> </td>
|
cannam@0
|
525 <td> ) </td>
|
cannam@21
|
526 <td> const<code> [virtual]</code></td>
|
cannam@0
|
527 </tr>
|
cannam@0
|
528 </table>
|
cannam@0
|
529 </div>
|
cannam@0
|
530 <div class="memdoc">
|
cannam@0
|
531
|
cannam@0
|
532 <p>
|
cannam@0
|
533 Get the version number of the plugin.
|
cannam@0
|
534 <p>
|
cannam@0
|
535
|
cannam@0
|
536 <p>Implements <a class="el" href="classVamp_1_1PluginBase.html#63f686d77bc3d6b807e7944cdde83151">Vamp::PluginBase</a>.</p>
|
cannam@0
|
537
|
cannam@0
|
538 <p>Definition at line <a class="el" href="PercussionOnsetDetector_8cpp-source.html#l00089">89</a> of file <a class="el" href="PercussionOnsetDetector_8cpp-source.html">PercussionOnsetDetector.cpp</a>.</p>
|
cannam@0
|
539
|
cannam@0
|
540 </div>
|
cannam@0
|
541 </div><p>
|
cannam@0
|
542 <a class="anchor" name="1a22ece271330c94cc08798a77416351"></a><!-- doxytag: member="PercussionOnsetDetector::getCopyright" ref="1a22ece271330c94cc08798a77416351" args="() const " -->
|
cannam@0
|
543 <div class="memitem">
|
cannam@0
|
544 <div class="memproto">
|
cannam@0
|
545 <table class="memname">
|
cannam@0
|
546 <tr>
|
cannam@0
|
547 <td class="memname">string PercussionOnsetDetector::getCopyright </td>
|
cannam@0
|
548 <td>(</td>
|
cannam@0
|
549 <td class="paramname"> </td>
|
cannam@0
|
550 <td> ) </td>
|
cannam@21
|
551 <td> const<code> [virtual]</code></td>
|
cannam@0
|
552 </tr>
|
cannam@0
|
553 </table>
|
cannam@0
|
554 </div>
|
cannam@0
|
555 <div class="memdoc">
|
cannam@0
|
556
|
cannam@0
|
557 <p>
|
cannam@0
|
558 Get the copyright statement or licensing summary for the plugin.
|
cannam@0
|
559 <p>
|
cannam@0
|
560 This can be an informative text, without the same presentation constraints as mentioned for getMaker above.
|
cannam@0
|
561 <p>Implements <a class="el" href="classVamp_1_1PluginBase.html#b7e9dedbe965f5ab9018b72920fe7661">Vamp::PluginBase</a>.</p>
|
cannam@0
|
562
|
cannam@0
|
563 <p>Definition at line <a class="el" href="PercussionOnsetDetector_8cpp-source.html#l00095">95</a> of file <a class="el" href="PercussionOnsetDetector_8cpp-source.html">PercussionOnsetDetector.cpp</a>.</p>
|
cannam@0
|
564
|
cannam@0
|
565 </div>
|
cannam@0
|
566 </div><p>
|
cannam@0
|
567 <a class="anchor" name="733824891e11c306a7a678534b89b968"></a><!-- doxytag: member="PercussionOnsetDetector::getPreferredStepSize" ref="733824891e11c306a7a678534b89b968" args="() const " -->
|
cannam@0
|
568 <div class="memitem">
|
cannam@0
|
569 <div class="memproto">
|
cannam@0
|
570 <table class="memname">
|
cannam@0
|
571 <tr>
|
cannam@0
|
572 <td class="memname">size_t PercussionOnsetDetector::getPreferredStepSize </td>
|
cannam@0
|
573 <td>(</td>
|
cannam@0
|
574 <td class="paramname"> </td>
|
cannam@0
|
575 <td> ) </td>
|
cannam@21
|
576 <td> const<code> [virtual]</code></td>
|
cannam@0
|
577 </tr>
|
cannam@0
|
578 </table>
|
cannam@0
|
579 </div>
|
cannam@0
|
580 <div class="memdoc">
|
cannam@0
|
581
|
cannam@0
|
582 <p>
|
cannam@0
|
583 Get the preferred step size (window increment -- the distance in sample frames between the start frames of consecutive blocks passed to the <a class="el" href="classPercussionOnsetDetector.html#dfd989812b3e0cb8f4b498f56a5a9614" title="Process a single block of input data.">process()</a> function) for the plugin.
|
cannam@0
|
584 <p>
|
cannam@0
|
585 This should be called before <a class="el" href="classPercussionOnsetDetector.html#349c528260622308f3850bcda8a448ab" title="Initialise a plugin to prepare it for use with the given number of input channels...">initialise()</a>.<p>
|
cannam@0
|
586 A plugin may return 0 if it has no particular interest in the step size. In this case, the host should make the step size equal to the block size if the plugin is accepting input in the time domain. If the plugin is accepting input in the frequency domain, the host may use any step size. The final step size will be set in the <a class="el" href="classPercussionOnsetDetector.html#349c528260622308f3850bcda8a448ab" title="Initialise a plugin to prepare it for use with the given number of input channels...">initialise()</a> call.
|
cannam@0
|
587 <p>Reimplemented from <a class="el" href="classVamp_1_1Plugin.html#514c716c22f81c055f19b56c3f882567">Vamp::Plugin</a>.</p>
|
cannam@0
|
588
|
cannam@0
|
589 <p>Definition at line <a class="el" href="PercussionOnsetDetector_8cpp-source.html#l00101">101</a> of file <a class="el" href="PercussionOnsetDetector_8cpp-source.html">PercussionOnsetDetector.cpp</a>.</p>
|
cannam@0
|
590
|
cannam@0
|
591 </div>
|
cannam@0
|
592 </div><p>
|
cannam@0
|
593 <a class="anchor" name="410c0b47c6c849d7ed9b726b84402ad0"></a><!-- doxytag: member="PercussionOnsetDetector::getPreferredBlockSize" ref="410c0b47c6c849d7ed9b726b84402ad0" args="() const " -->
|
cannam@0
|
594 <div class="memitem">
|
cannam@0
|
595 <div class="memproto">
|
cannam@0
|
596 <table class="memname">
|
cannam@0
|
597 <tr>
|
cannam@0
|
598 <td class="memname">size_t PercussionOnsetDetector::getPreferredBlockSize </td>
|
cannam@0
|
599 <td>(</td>
|
cannam@0
|
600 <td class="paramname"> </td>
|
cannam@0
|
601 <td> ) </td>
|
cannam@21
|
602 <td> const<code> [virtual]</code></td>
|
cannam@0
|
603 </tr>
|
cannam@0
|
604 </table>
|
cannam@0
|
605 </div>
|
cannam@0
|
606 <div class="memdoc">
|
cannam@0
|
607
|
cannam@0
|
608 <p>
|
cannam@0
|
609 Get the preferred block size (window size -- the number of sample frames passed in each block to the <a class="el" href="classPercussionOnsetDetector.html#dfd989812b3e0cb8f4b498f56a5a9614" title="Process a single block of input data.">process()</a> function).
|
cannam@0
|
610 <p>
|
cannam@0
|
611 This should be called before <a class="el" href="classPercussionOnsetDetector.html#349c528260622308f3850bcda8a448ab" title="Initialise a plugin to prepare it for use with the given number of input channels...">initialise()</a>.<p>
|
cannam@0
|
612 A plugin that can handle any block size may return 0. The final block size will be set in the <a class="el" href="classPercussionOnsetDetector.html#349c528260622308f3850bcda8a448ab" title="Initialise a plugin to prepare it for use with the given number of input channels...">initialise()</a> call.
|
cannam@0
|
613 <p>Reimplemented from <a class="el" href="classVamp_1_1Plugin.html#a529adf83f87a603954eb31407602aac">Vamp::Plugin</a>.</p>
|
cannam@0
|
614
|
cannam@0
|
615 <p>Definition at line <a class="el" href="PercussionOnsetDetector_8cpp-source.html#l00107">107</a> of file <a class="el" href="PercussionOnsetDetector_8cpp-source.html">PercussionOnsetDetector.cpp</a>.</p>
|
cannam@0
|
616
|
cannam@0
|
617 </div>
|
cannam@0
|
618 </div><p>
|
cannam@0
|
619 <a class="anchor" name="bceae88cc9762b0ea310d7aad71de815"></a><!-- doxytag: member="PercussionOnsetDetector::getParameterDescriptors" ref="bceae88cc9762b0ea310d7aad71de815" args="() const " -->
|
cannam@0
|
620 <div class="memitem">
|
cannam@0
|
621 <div class="memproto">
|
cannam@0
|
622 <table class="memname">
|
cannam@0
|
623 <tr>
|
cannam@0
|
624 <td class="memname"><a class="el" href="classVamp_1_1PluginBase.html#3b6bb4bbd86affe1ca9deceea1aad4f8">PercussionOnsetDetector::ParameterList</a> PercussionOnsetDetector::getParameterDescriptors </td>
|
cannam@0
|
625 <td>(</td>
|
cannam@0
|
626 <td class="paramname"> </td>
|
cannam@0
|
627 <td> ) </td>
|
cannam@21
|
628 <td> const<code> [virtual]</code></td>
|
cannam@0
|
629 </tr>
|
cannam@0
|
630 </table>
|
cannam@0
|
631 </div>
|
cannam@0
|
632 <div class="memdoc">
|
cannam@0
|
633
|
cannam@0
|
634 <p>
|
cannam@0
|
635 Get the controllable parameters of this plugin.
|
cannam@0
|
636 <p>
|
cannam@0
|
637
|
cannam@0
|
638 <p>Reimplemented from <a class="el" href="classVamp_1_1PluginBase.html#ac3e49b3b66cacfbb768dfdf07444f21">Vamp::PluginBase</a>.</p>
|
cannam@0
|
639
|
cannam@0
|
640 <p>Definition at line <a class="el" href="PercussionOnsetDetector_8cpp-source.html#l00145">145</a> of file <a class="el" href="PercussionOnsetDetector_8cpp-source.html">PercussionOnsetDetector.cpp</a>.</p>
|
cannam@0
|
641
|
cannam@21
|
642 <p>References <a class="el" href="vamp-sdk_2PluginBase_8h-source.html#l00171">Vamp::PluginBase::ParameterDescriptor::defaultValue</a>, <a class="el" href="vamp-sdk_2PluginBase_8h-source.html#l00148">Vamp::PluginBase::ParameterDescriptor::description</a>, <a class="el" href="vamp-sdk_2PluginBase_8h-source.html#l00137">Vamp::PluginBase::ParameterDescriptor::identifier</a>, <a class="el" href="vamp-sdk_2PluginBase_8h-source.html#l00177">Vamp::PluginBase::ParameterDescriptor::isQuantized</a>, <a class="el" href="vamp-sdk_2PluginBase_8h-source.html#l00163">Vamp::PluginBase::ParameterDescriptor::maxValue</a>, <a class="el" href="vamp-sdk_2PluginBase_8h-source.html#l00158">Vamp::PluginBase::ParameterDescriptor::minValue</a>, <a class="el" href="vamp-sdk_2PluginBase_8h-source.html#l00142">Vamp::PluginBase::ParameterDescriptor::name</a>, and <a class="el" href="vamp-sdk_2PluginBase_8h-source.html#l00153">Vamp::PluginBase::ParameterDescriptor::unit</a>.</p>
|
cannam@0
|
643
|
cannam@0
|
644 </div>
|
cannam@0
|
645 </div><p>
|
cannam@0
|
646 <a class="anchor" name="9b28da8315fcde46ce7644d6592ba527"></a><!-- doxytag: member="PercussionOnsetDetector::getParameter" ref="9b28da8315fcde46ce7644d6592ba527" args="(std::string id) const " -->
|
cannam@0
|
647 <div class="memitem">
|
cannam@0
|
648 <div class="memproto">
|
cannam@0
|
649 <table class="memname">
|
cannam@0
|
650 <tr>
|
cannam@0
|
651 <td class="memname">float PercussionOnsetDetector::getParameter </td>
|
cannam@0
|
652 <td>(</td>
|
cannam@0
|
653 <td class="paramtype">std::string </td>
|
cannam@0
|
654 <td class="paramname"> </td>
|
cannam@0
|
655 <td> ) </td>
|
cannam@21
|
656 <td> const<code> [virtual]</code></td>
|
cannam@0
|
657 </tr>
|
cannam@0
|
658 </table>
|
cannam@0
|
659 </div>
|
cannam@0
|
660 <div class="memdoc">
|
cannam@0
|
661
|
cannam@0
|
662 <p>
|
cannam@0
|
663 Get the value of a named parameter.
|
cannam@0
|
664 <p>
|
cannam@0
|
665 The argument is the identifier field from that parameter's descriptor.
|
cannam@0
|
666 <p>Reimplemented from <a class="el" href="classVamp_1_1PluginBase.html#97ababcd45348ceec998d0f8e0f38bf7">Vamp::PluginBase</a>.</p>
|
cannam@0
|
667
|
cannam@0
|
668 <p>Definition at line <a class="el" href="PercussionOnsetDetector_8cpp-source.html#l00174">174</a> of file <a class="el" href="PercussionOnsetDetector_8cpp-source.html">PercussionOnsetDetector.cpp</a>.</p>
|
cannam@0
|
669
|
cannam@0
|
670 <p>References <a class="el" href="PercussionOnsetDetector_8h-source.html#l00083">m_sensitivity</a>, and <a class="el" href="PercussionOnsetDetector_8h-source.html#l00082">m_threshold</a>.</p>
|
cannam@0
|
671
|
cannam@0
|
672 </div>
|
cannam@0
|
673 </div><p>
|
cannam@0
|
674 <a class="anchor" name="a097d72488e1211f05fc661ff5c6dc01"></a><!-- doxytag: member="PercussionOnsetDetector::setParameter" ref="a097d72488e1211f05fc661ff5c6dc01" args="(std::string id, float value)" -->
|
cannam@0
|
675 <div class="memitem">
|
cannam@0
|
676 <div class="memproto">
|
cannam@0
|
677 <table class="memname">
|
cannam@0
|
678 <tr>
|
cannam@0
|
679 <td class="memname">void PercussionOnsetDetector::setParameter </td>
|
cannam@0
|
680 <td>(</td>
|
cannam@0
|
681 <td class="paramtype">std::string </td>
|
cannam@0
|
682 <td class="paramname">, </td>
|
cannam@0
|
683 </tr>
|
cannam@0
|
684 <tr>
|
cannam@0
|
685 <td class="paramkey"></td>
|
cannam@0
|
686 <td></td>
|
cannam@0
|
687 <td class="paramtype">float </td>
|
cannam@0
|
688 <td class="paramname"></td><td> </td>
|
cannam@0
|
689 </tr>
|
cannam@0
|
690 <tr>
|
cannam@0
|
691 <td></td>
|
cannam@0
|
692 <td>)</td>
|
cannam@21
|
693 <td></td><td></td><td><code> [virtual]</code></td>
|
cannam@0
|
694 </tr>
|
cannam@0
|
695 </table>
|
cannam@0
|
696 </div>
|
cannam@0
|
697 <div class="memdoc">
|
cannam@0
|
698
|
cannam@0
|
699 <p>
|
cannam@0
|
700 Set a named parameter.
|
cannam@0
|
701 <p>
|
cannam@0
|
702 The first argument is the identifier field from that parameter's descriptor.
|
cannam@0
|
703 <p>Reimplemented from <a class="el" href="classVamp_1_1PluginBase.html#6c718ce822f7b73b98940d59dcaa9366">Vamp::PluginBase</a>.</p>
|
cannam@0
|
704
|
cannam@0
|
705 <p>Definition at line <a class="el" href="PercussionOnsetDetector_8cpp-source.html#l00182">182</a> of file <a class="el" href="PercussionOnsetDetector_8cpp-source.html">PercussionOnsetDetector.cpp</a>.</p>
|
cannam@0
|
706
|
cannam@0
|
707 <p>References <a class="el" href="PercussionOnsetDetector_8h-source.html#l00083">m_sensitivity</a>, and <a class="el" href="PercussionOnsetDetector_8h-source.html#l00082">m_threshold</a>.</p>
|
cannam@0
|
708
|
cannam@0
|
709 </div>
|
cannam@0
|
710 </div><p>
|
cannam@0
|
711 <a class="anchor" name="a4537aa0eb58a67d6e824d46924cf782"></a><!-- doxytag: member="PercussionOnsetDetector::getOutputDescriptors" ref="a4537aa0eb58a67d6e824d46924cf782" args="() const " -->
|
cannam@0
|
712 <div class="memitem">
|
cannam@0
|
713 <div class="memproto">
|
cannam@0
|
714 <table class="memname">
|
cannam@0
|
715 <tr>
|
cannam@0
|
716 <td class="memname"><a class="el" href="classVamp_1_1Plugin.html#30f531b8fb69fac41a24e3d2a6a08ed9">PercussionOnsetDetector::OutputList</a> PercussionOnsetDetector::getOutputDescriptors </td>
|
cannam@0
|
717 <td>(</td>
|
cannam@0
|
718 <td class="paramname"> </td>
|
cannam@0
|
719 <td> ) </td>
|
cannam@21
|
720 <td> const<code> [virtual]</code></td>
|
cannam@0
|
721 </tr>
|
cannam@0
|
722 </table>
|
cannam@0
|
723 </div>
|
cannam@0
|
724 <div class="memdoc">
|
cannam@0
|
725
|
cannam@0
|
726 <p>
|
cannam@0
|
727 Get the outputs of this plugin.
|
cannam@0
|
728 <p>
|
cannam@0
|
729 An output's index in this list is used as its numeric index when looking it up in the FeatureSet returned from the <a class="el" href="classPercussionOnsetDetector.html#dfd989812b3e0cb8f4b498f56a5a9614" title="Process a single block of input data.">process()</a> call.
|
cannam@0
|
730 <p>Implements <a class="el" href="classVamp_1_1Plugin.html#d064d5d132b5c9bd7064f429c3309e35">Vamp::Plugin</a>.</p>
|
cannam@0
|
731
|
cannam@0
|
732 <p>Definition at line <a class="el" href="PercussionOnsetDetector_8cpp-source.html#l00196">196</a> of file <a class="el" href="PercussionOnsetDetector_8cpp-source.html">PercussionOnsetDetector.cpp</a>.</p>
|
cannam@0
|
733
|
cannam@21
|
734 <p>References <a class="el" href="vamp-sdk_2Plugin_8h-source.html#l00242">Vamp::Plugin::OutputDescriptor::binCount</a>, <a class="el" href="vamp-sdk_2Plugin_8h-source.html#l00222">Vamp::Plugin::OutputDescriptor::description</a>, <a class="el" href="vamp-sdk_2Plugin_8h-source.html#l00234">Vamp::Plugin::OutputDescriptor::hasFixedBinCount</a>, <a class="el" href="vamp-sdk_2Plugin_8h-source.html#l00255">Vamp::Plugin::OutputDescriptor::hasKnownExtents</a>, <a class="el" href="vamp-sdk_2Plugin_8h-source.html#l00209">Vamp::Plugin::OutputDescriptor::identifier</a>, <a class="el" href="vamp-sdk_2Plugin_8h-source.html#l00273">Vamp::Plugin::OutputDescriptor::isQuantized</a>, <a class="el" href="vamp-sdk_2Plugin_8h-source.html#l00431">Vamp::Plugin::m_inputSampleRate</a>, <a class="el" href="vamp-sdk_2Plugin_8h-source.html#l00215">Vamp::Plugin::OutputDescriptor::name</a>, <a class="el" href="vamp-sdk_2Plugin_8h-source.html#l00285">Vamp::Plugin::OutputDescriptor::OneSamplePerStep</a>, <a class="el" href="vamp-sdk_2Plugin_8h-source.html#l00280">Vamp::Plugin::OutputDescriptor::quantizeStep</a>, <a class="el" href="vamp-sdk_2Plugin_8h-source.html#l00309">Vamp::Plugin::OutputDescriptor::sampleRate</a>, <a class="el" href="vamp-sdk_2Plugin_8h-source.html#l00297">Vamp::Plugin::OutputDescriptor::sampleType</a>, <a class="el" href="vamp-sdk_2Plugin_8h-source.html#l00227">Vamp::Plugin::OutputDescriptor::unit</a>, and <a class="el" href="vamp-sdk_2Plugin_8h-source.html#l00291">Vamp::Plugin::OutputDescriptor::VariableSampleRate</a>.</p>
|
cannam@0
|
735
|
cannam@0
|
736 </div>
|
cannam@0
|
737 </div><p>
|
cannam@0
|
738 <a class="anchor" name="dfd989812b3e0cb8f4b498f56a5a9614"></a><!-- doxytag: member="PercussionOnsetDetector::process" ref="dfd989812b3e0cb8f4b498f56a5a9614" args="(const float *const *inputBuffers, Vamp::RealTime timestamp)" -->
|
cannam@0
|
739 <div class="memitem">
|
cannam@0
|
740 <div class="memproto">
|
cannam@0
|
741 <table class="memname">
|
cannam@0
|
742 <tr>
|
cannam@0
|
743 <td class="memname"><a class="el" href="classVamp_1_1Plugin.html#448fb57dc245d47923ec9eeaf9856c5f">PercussionOnsetDetector::FeatureSet</a> PercussionOnsetDetector::process </td>
|
cannam@0
|
744 <td>(</td>
|
cannam@0
|
745 <td class="paramtype">const float *const * </td>
|
cannam@0
|
746 <td class="paramname"> <em>inputBuffers</em>, </td>
|
cannam@0
|
747 </tr>
|
cannam@0
|
748 <tr>
|
cannam@0
|
749 <td class="paramkey"></td>
|
cannam@0
|
750 <td></td>
|
cannam@0
|
751 <td class="paramtype"><a class="el" href="structVamp_1_1RealTime.html">Vamp::RealTime</a> </td>
|
cannam@0
|
752 <td class="paramname"> <em>timestamp</em></td><td> </td>
|
cannam@0
|
753 </tr>
|
cannam@0
|
754 <tr>
|
cannam@0
|
755 <td></td>
|
cannam@0
|
756 <td>)</td>
|
cannam@21
|
757 <td></td><td></td><td><code> [virtual]</code></td>
|
cannam@0
|
758 </tr>
|
cannam@0
|
759 </table>
|
cannam@0
|
760 </div>
|
cannam@0
|
761 <div class="memdoc">
|
cannam@0
|
762
|
cannam@0
|
763 <p>
|
cannam@0
|
764 Process a single block of input data.
|
cannam@0
|
765 <p>
|
cannam@21
|
766 If the plugin's inputDomain is TimeDomain, inputBuffers will point to one array of floats per input channel, and each of these arrays will contain blockSize consecutive audio samples (the host will zero-pad as necessary). The timestamp in this case will be the real time in seconds of the start of the supplied block of samples.<p>
|
cannam@0
|
767 If the plugin's inputDomain is FrequencyDomain, inputBuffers will point to one array of floats per input channel, and each of these arrays will contain blockSize/2+1 consecutive pairs of real and imaginary component floats corresponding to bins 0..(blockSize/2) of the FFT output. That is, bin 0 (the first pair of floats) contains the DC output, up to bin blockSize/2 which contains the Nyquist-frequency output. There will therefore be blockSize+2 floats per channel in total. The timestamp will be the real time in seconds of the centre of the FFT input window (i.e. the very first block passed to process might contain the FFT of half a block of zero samples and the first half-block of the actual data, with a timestamp of zero).<p>
|
cannam@0
|
768 Return any features that have become available after this process call. (These do not necessarily have to fall within the process block, except for OneSamplePerStep outputs.)
|
cannam@0
|
769 <p>Implements <a class="el" href="classVamp_1_1Plugin.html#e4aed3bebfe80a2e2fccd3d37af26996">Vamp::Plugin</a>.</p>
|
cannam@0
|
770
|
cannam@0
|
771 <p>Definition at line <a class="el" href="PercussionOnsetDetector_8cpp-source.html#l00226">226</a> of file <a class="el" href="PercussionOnsetDetector_8cpp-source.html">PercussionOnsetDetector.cpp</a>.</p>
|
cannam@0
|
772
|
cannam@21
|
773 <p>References <a class="el" href="structVamp_1_1RealTime.html#939b4b1d1ca190db69a418883f16ce8a">Vamp::RealTime::frame2RealTime()</a>, <a class="el" href="vamp-sdk_2Plugin_8h-source.html#l00339">Vamp::Plugin::Feature::hasTimestamp</a>, <a class="el" href="PercussionOnsetDetector_8h-source.html#l00080">m_blockSize</a>, <a class="el" href="PercussionOnsetDetector_8h-source.html#l00085">m_dfMinus1</a>, <a class="el" href="PercussionOnsetDetector_8h-source.html#l00086">m_dfMinus2</a>, <a class="el" href="vamp-sdk_2Plugin_8h-source.html#l00431">Vamp::Plugin::m_inputSampleRate</a>, <a class="el" href="PercussionOnsetDetector_8h-source.html#l00084">m_priorMagnitudes</a>, <a class="el" href="PercussionOnsetDetector_8h-source.html#l00083">m_sensitivity</a>, <a class="el" href="PercussionOnsetDetector_8h-source.html#l00079">m_stepSize</a>, <a class="el" href="PercussionOnsetDetector_8h-source.html#l00082">m_threshold</a>, <a class="el" href="vamp-sdk_2Plugin_8h-source.html#l00347">Vamp::Plugin::Feature::timestamp</a>, and <a class="el" href="vamp-sdk_2Plugin_8h-source.html#l00369">Vamp::Plugin::Feature::values</a>.</p>
|
cannam@0
|
774
|
cannam@0
|
775 </div>
|
cannam@0
|
776 </div><p>
|
cannam@0
|
777 <a class="anchor" name="d3d6767ed137783e84f842b4d4732ffa"></a><!-- doxytag: member="PercussionOnsetDetector::getRemainingFeatures" ref="d3d6767ed137783e84f842b4d4732ffa" args="()" -->
|
cannam@0
|
778 <div class="memitem">
|
cannam@0
|
779 <div class="memproto">
|
cannam@0
|
780 <table class="memname">
|
cannam@0
|
781 <tr>
|
cannam@0
|
782 <td class="memname"><a class="el" href="classVamp_1_1Plugin.html#448fb57dc245d47923ec9eeaf9856c5f">PercussionOnsetDetector::FeatureSet</a> PercussionOnsetDetector::getRemainingFeatures </td>
|
cannam@0
|
783 <td>(</td>
|
cannam@0
|
784 <td class="paramname"> </td>
|
cannam@0
|
785 <td> ) </td>
|
cannam@21
|
786 <td><code> [virtual]</code></td>
|
cannam@0
|
787 </tr>
|
cannam@0
|
788 </table>
|
cannam@0
|
789 </div>
|
cannam@0
|
790 <div class="memdoc">
|
cannam@0
|
791
|
cannam@0
|
792 <p>
|
cannam@0
|
793 After all blocks have been processed, calculate and return any remaining features derived from the complete input.
|
cannam@0
|
794 <p>
|
cannam@0
|
795
|
cannam@0
|
796 <p>Implements <a class="el" href="classVamp_1_1Plugin.html#eca2a26e658ba0314ba90d25dd2195d6">Vamp::Plugin</a>.</p>
|
cannam@0
|
797
|
cannam@21
|
798 <p>Definition at line <a class="el" href="PercussionOnsetDetector_8cpp-source.html#l00283">283</a> of file <a class="el" href="PercussionOnsetDetector_8cpp-source.html">PercussionOnsetDetector.cpp</a>.</p>
|
cannam@0
|
799
|
cannam@0
|
800 </div>
|
cannam@0
|
801 </div><p>
|
cannam@0
|
802 <a class="anchor" name="267b42e866df3cf0d190893e8096f525"></a><!-- doxytag: member="PercussionOnsetDetector::getMinChannelCount" ref="267b42e866df3cf0d190893e8096f525" args="() const " -->
|
cannam@0
|
803 <div class="memitem">
|
cannam@0
|
804 <div class="memproto">
|
cannam@0
|
805 <table class="memname">
|
cannam@0
|
806 <tr>
|
cannam@0
|
807 <td class="memname">virtual size_t Vamp::Plugin::getMinChannelCount </td>
|
cannam@0
|
808 <td>(</td>
|
cannam@0
|
809 <td class="paramname"> </td>
|
cannam@0
|
810 <td> ) </td>
|
cannam@21
|
811 <td> const<code> [inline, virtual, inherited]</code></td>
|
cannam@0
|
812 </tr>
|
cannam@0
|
813 </table>
|
cannam@0
|
814 </div>
|
cannam@0
|
815 <div class="memdoc">
|
cannam@0
|
816
|
cannam@0
|
817 <p>
|
cannam@0
|
818 Get the minimum supported number of input channels.
|
cannam@0
|
819 <p>
|
cannam@0
|
820
|
cannam@0
|
821 <p>Reimplemented in <a class="el" href="classVamp_1_1PluginHostAdapter.html#67d1198c0e58d3f0076d0eda599ff28d">Vamp::PluginHostAdapter</a>, and <a class="el" href="classVamp_1_1HostExt_1_1PluginWrapper.html#2b28f1cf37d46a514f1e1411a6037bf8">Vamp::HostExt::PluginWrapper</a>.</p>
|
cannam@0
|
822
|
cannam@21
|
823 <p>Definition at line <a class="el" href="vamp-sdk_2Plugin_8h-source.html#l00194">194</a> of file <a class="el" href="vamp-sdk_2Plugin_8h-source.html">vamp-sdk/Plugin.h</a>.</p>
|
cannam@0
|
824
|
cannam@21
|
825 <p>Referenced by <a class="el" href="vamp-simple-host_8cpp-source.html#l00559">enumeratePlugins()</a>, <a class="el" href="ZeroCrossing_8cpp-source.html#l00094">ZeroCrossing::initialise()</a>, <a class="el" href="SpectralCentroid_8cpp-source.html#l00099">SpectralCentroid::initialise()</a>, <a class="el" href="PowerSpectrum_8cpp-source.html#l00092">PowerSpectrum::initialise()</a>, <a class="el" href="PercussionOnsetDetector_8cpp-source.html#l00113">initialise()</a>, <a class="el" href="FixedTempoEstimator_8cpp-source.html#l00676">FixedTempoEstimator::initialise()</a>, <a class="el" href="AmplitudeFollower_8cpp-source.html#l00105">AmplitudeFollower::initialise()</a>, and <a class="el" href="vamp-simple-host_8cpp-source.html#l00265">runPlugin()</a>.</p>
|
cannam@0
|
826
|
cannam@0
|
827 </div>
|
cannam@0
|
828 </div><p>
|
cannam@0
|
829 <a class="anchor" name="2c5ab12b6fa4847cb244bd1e9cb3ae5e"></a><!-- doxytag: member="PercussionOnsetDetector::getMaxChannelCount" ref="2c5ab12b6fa4847cb244bd1e9cb3ae5e" args="() const " -->
|
cannam@0
|
830 <div class="memitem">
|
cannam@0
|
831 <div class="memproto">
|
cannam@0
|
832 <table class="memname">
|
cannam@0
|
833 <tr>
|
cannam@0
|
834 <td class="memname">virtual size_t Vamp::Plugin::getMaxChannelCount </td>
|
cannam@0
|
835 <td>(</td>
|
cannam@0
|
836 <td class="paramname"> </td>
|
cannam@0
|
837 <td> ) </td>
|
cannam@21
|
838 <td> const<code> [inline, virtual, inherited]</code></td>
|
cannam@0
|
839 </tr>
|
cannam@0
|
840 </table>
|
cannam@0
|
841 </div>
|
cannam@0
|
842 <div class="memdoc">
|
cannam@0
|
843
|
cannam@0
|
844 <p>
|
cannam@0
|
845 Get the maximum supported number of input channels.
|
cannam@0
|
846 <p>
|
cannam@0
|
847
|
cannam@0
|
848 <p>Reimplemented in <a class="el" href="classVamp_1_1PluginHostAdapter.html#25091905e97e39d515d8ffc1a9f2b9e0">Vamp::PluginHostAdapter</a>, and <a class="el" href="classVamp_1_1HostExt_1_1PluginWrapper.html#985eb21f1827bfbc3950d6871b107a58">Vamp::HostExt::PluginWrapper</a>.</p>
|
cannam@0
|
849
|
cannam@21
|
850 <p>Definition at line <a class="el" href="vamp-sdk_2Plugin_8h-source.html#l00199">199</a> of file <a class="el" href="vamp-sdk_2Plugin_8h-source.html">vamp-sdk/Plugin.h</a>.</p>
|
cannam@0
|
851
|
cannam@21
|
852 <p>Referenced by <a class="el" href="vamp-simple-host_8cpp-source.html#l00559">enumeratePlugins()</a>, <a class="el" href="ZeroCrossing_8cpp-source.html#l00094">ZeroCrossing::initialise()</a>, <a class="el" href="SpectralCentroid_8cpp-source.html#l00099">SpectralCentroid::initialise()</a>, <a class="el" href="PowerSpectrum_8cpp-source.html#l00092">PowerSpectrum::initialise()</a>, <a class="el" href="PercussionOnsetDetector_8cpp-source.html#l00113">initialise()</a>, <a class="el" href="FixedTempoEstimator_8cpp-source.html#l00676">FixedTempoEstimator::initialise()</a>, <a class="el" href="AmplitudeFollower_8cpp-source.html#l00105">AmplitudeFollower::initialise()</a>, and <a class="el" href="vamp-simple-host_8cpp-source.html#l00265">runPlugin()</a>.</p>
|
cannam@0
|
853
|
cannam@0
|
854 </div>
|
cannam@0
|
855 </div><p>
|
cannam@0
|
856 <a class="anchor" name="be13b3997a69fbcc09e2213faa352f91"></a><!-- doxytag: member="PercussionOnsetDetector::getType" ref="be13b3997a69fbcc09e2213faa352f91" args="() const " -->
|
cannam@0
|
857 <div class="memitem">
|
cannam@0
|
858 <div class="memproto">
|
cannam@0
|
859 <table class="memname">
|
cannam@0
|
860 <tr>
|
cannam@0
|
861 <td class="memname">virtual std::string Vamp::Plugin::getType </td>
|
cannam@0
|
862 <td>(</td>
|
cannam@0
|
863 <td class="paramname"> </td>
|
cannam@0
|
864 <td> ) </td>
|
cannam@21
|
865 <td> const<code> [inline, virtual, inherited]</code></td>
|
cannam@0
|
866 </tr>
|
cannam@0
|
867 </table>
|
cannam@0
|
868 </div>
|
cannam@0
|
869 <div class="memdoc">
|
cannam@0
|
870
|
cannam@0
|
871 <p>
|
cannam@0
|
872 Used to distinguish between <a class="el" href="classVamp_1_1Plugin.html" title="Vamp::Plugin is a base class for plugin instance classes that provide feature extraction...">Vamp::Plugin</a> and other potential sibling subclasses of <a class="el" href="classVamp_1_1PluginBase.html" title="A base class for plugins with optional configurable parameters, programs, etc.">PluginBase</a>.
|
cannam@0
|
873 <p>
|
cannam@0
|
874 Do not reimplement this function in your subclass.
|
cannam@0
|
875 <p>Implements <a class="el" href="classVamp_1_1PluginBase.html#2da03e9ced8dc7e4382205e6dc05dbff">Vamp::PluginBase</a>.</p>
|
cannam@0
|
876
|
cannam@21
|
877 <p>Definition at line <a class="el" href="vamp-sdk_2Plugin_8h-source.html#l00425">425</a> of file <a class="el" href="vamp-sdk_2Plugin_8h-source.html">vamp-sdk/Plugin.h</a>.</p>
|
cannam@0
|
878
|
cannam@0
|
879 </div>
|
cannam@0
|
880 </div><p>
|
cannam@0
|
881 <a class="anchor" name="8fd2c48291c64b790f0efb8948508dcf"></a><!-- doxytag: member="PercussionOnsetDetector::getVampApiVersion" ref="8fd2c48291c64b790f0efb8948508dcf" args="() const " -->
|
cannam@0
|
882 <div class="memitem">
|
cannam@0
|
883 <div class="memproto">
|
cannam@0
|
884 <table class="memname">
|
cannam@0
|
885 <tr>
|
cannam@0
|
886 <td class="memname">virtual unsigned int Vamp::PluginBase::getVampApiVersion </td>
|
cannam@0
|
887 <td>(</td>
|
cannam@0
|
888 <td class="paramname"> </td>
|
cannam@0
|
889 <td> ) </td>
|
cannam@21
|
890 <td> const<code> [inline, virtual, inherited]</code></td>
|
cannam@0
|
891 </tr>
|
cannam@0
|
892 </table>
|
cannam@0
|
893 </div>
|
cannam@0
|
894 <div class="memdoc">
|
cannam@0
|
895
|
cannam@0
|
896 <p>
|
cannam@21
|
897 Get the <a class="el" href="namespaceVamp.html">Vamp</a> API compatibility level of the plugin.
|
cannam@0
|
898 <p>
|
cannam@0
|
899
|
cannam@0
|
900 <p>Reimplemented in <a class="el" href="classVamp_1_1PluginHostAdapter.html#98aadddc8403eb46c9d8c5a9d1fdd19e">Vamp::PluginHostAdapter</a>, and <a class="el" href="classVamp_1_1HostExt_1_1PluginWrapper.html#74147fda6b44ff2169bd4a1eea0d46ff">Vamp::HostExt::PluginWrapper</a>.</p>
|
cannam@0
|
901
|
cannam@21
|
902 <p>Definition at line <a class="el" href="vamp-sdk_2PluginBase_8h-source.html#l00072">72</a> of file <a class="el" href="vamp-sdk_2PluginBase_8h-source.html">vamp-sdk/PluginBase.h</a>.</p>
|
cannam@0
|
903
|
cannam@21
|
904 <p>Referenced by <a class="el" href="vamp-simple-host_8cpp-source.html#l00559">enumeratePlugins()</a>.</p>
|
cannam@0
|
905
|
cannam@0
|
906 </div>
|
cannam@0
|
907 </div><p>
|
cannam@0
|
908 <a class="anchor" name="bb307c60bdb981d5f5af50c3c4ae84af"></a><!-- doxytag: member="PercussionOnsetDetector::getPrograms" ref="bb307c60bdb981d5f5af50c3c4ae84af" args="() const " -->
|
cannam@0
|
909 <div class="memitem">
|
cannam@0
|
910 <div class="memproto">
|
cannam@0
|
911 <table class="memname">
|
cannam@0
|
912 <tr>
|
cannam@0
|
913 <td class="memname">virtual <a class="el" href="classVamp_1_1PluginBase.html#7f66f00437b21e5f694fe02356b12f20">ProgramList</a> Vamp::PluginBase::getPrograms </td>
|
cannam@0
|
914 <td>(</td>
|
cannam@0
|
915 <td class="paramname"> </td>
|
cannam@0
|
916 <td> ) </td>
|
cannam@21
|
917 <td> const<code> [inline, virtual, inherited]</code></td>
|
cannam@0
|
918 </tr>
|
cannam@0
|
919 </table>
|
cannam@0
|
920 </div>
|
cannam@0
|
921 <div class="memdoc">
|
cannam@0
|
922
|
cannam@0
|
923 <p>
|
cannam@0
|
924 Get the program settings available in this plugin.
|
cannam@0
|
925 <p>
|
cannam@0
|
926 A program is a named shorthand for a set of parameter values; changing the program may cause the plugin to alter the values of its published parameters (and/or non-public internal processing parameters). The host should re-read the plugin's parameter values after setting a new program.<p>
|
cannam@0
|
927 The programs must have unique names.
|
cannam@21
|
928 <p>Reimplemented in <a class="el" href="classVamp_1_1PluginHostAdapter.html#e0cde5cd625418c1bc470b91f75daafc">Vamp::PluginHostAdapter</a>, and <a class="el" href="classVamp_1_1HostExt_1_1PluginWrapper.html#131fbe1df81215020b9aa8cecef4c802">Vamp::HostExt::PluginWrapper</a>.</p>
|
cannam@0
|
929
|
cannam@21
|
930 <p>Definition at line <a class="el" href="vamp-sdk_2PluginBase_8h-source.html#l00237">237</a> of file <a class="el" href="vamp-sdk_2PluginBase_8h-source.html">vamp-sdk/PluginBase.h</a>.</p>
|
cannam@0
|
931
|
cannam@0
|
932 </div>
|
cannam@0
|
933 </div><p>
|
cannam@0
|
934 <a class="anchor" name="24e77eccf1bdfbbca3c79bb25e8799b3"></a><!-- doxytag: member="PercussionOnsetDetector::getCurrentProgram" ref="24e77eccf1bdfbbca3c79bb25e8799b3" args="() const " -->
|
cannam@0
|
935 <div class="memitem">
|
cannam@0
|
936 <div class="memproto">
|
cannam@0
|
937 <table class="memname">
|
cannam@0
|
938 <tr>
|
cannam@0
|
939 <td class="memname">virtual std::string Vamp::PluginBase::getCurrentProgram </td>
|
cannam@0
|
940 <td>(</td>
|
cannam@0
|
941 <td class="paramname"> </td>
|
cannam@0
|
942 <td> ) </td>
|
cannam@21
|
943 <td> const<code> [inline, virtual, inherited]</code></td>
|
cannam@0
|
944 </tr>
|
cannam@0
|
945 </table>
|
cannam@0
|
946 </div>
|
cannam@0
|
947 <div class="memdoc">
|
cannam@0
|
948
|
cannam@0
|
949 <p>
|
cannam@0
|
950 Get the current program.
|
cannam@0
|
951 <p>
|
cannam@0
|
952
|
cannam@0
|
953 <p>Reimplemented in <a class="el" href="classVamp_1_1PluginHostAdapter.html#34859eff8ca8d862af39be9636ec1867">Vamp::PluginHostAdapter</a>, and <a class="el" href="classVamp_1_1HostExt_1_1PluginWrapper.html#7a312dd42d161064b70afd7ff24c0651">Vamp::HostExt::PluginWrapper</a>.</p>
|
cannam@0
|
954
|
cannam@21
|
955 <p>Definition at line <a class="el" href="vamp-sdk_2PluginBase_8h-source.html#l00242">242</a> of file <a class="el" href="vamp-sdk_2PluginBase_8h-source.html">vamp-sdk/PluginBase.h</a>.</p>
|
cannam@0
|
956
|
cannam@0
|
957 </div>
|
cannam@0
|
958 </div><p>
|
cannam@0
|
959 <a class="anchor" name="add3a547ef140bae200473a9518e3353"></a><!-- doxytag: member="PercussionOnsetDetector::selectProgram" ref="add3a547ef140bae200473a9518e3353" args="(std::string)" -->
|
cannam@0
|
960 <div class="memitem">
|
cannam@0
|
961 <div class="memproto">
|
cannam@0
|
962 <table class="memname">
|
cannam@0
|
963 <tr>
|
cannam@0
|
964 <td class="memname">virtual void Vamp::PluginBase::selectProgram </td>
|
cannam@0
|
965 <td>(</td>
|
cannam@0
|
966 <td class="paramtype">std::string </td>
|
cannam@0
|
967 <td class="paramname"> </td>
|
cannam@0
|
968 <td> ) </td>
|
cannam@21
|
969 <td><code> [inline, virtual, inherited]</code></td>
|
cannam@0
|
970 </tr>
|
cannam@0
|
971 </table>
|
cannam@0
|
972 </div>
|
cannam@0
|
973 <div class="memdoc">
|
cannam@0
|
974
|
cannam@0
|
975 <p>
|
cannam@0
|
976 Select a program.
|
cannam@0
|
977 <p>
|
cannam@0
|
978 (If the given program name is not one of the available programs, do nothing.)
|
cannam@21
|
979 <p>Reimplemented in <a class="el" href="classVamp_1_1HostExt_1_1PluginBufferingAdapter.html#3cc7000e0aff525950e0a286b87f8927">Vamp::HostExt::PluginBufferingAdapter</a>, <a class="el" href="classVamp_1_1PluginHostAdapter.html#8f5515ab34cc13d9403ccc6b4b788683">Vamp::PluginHostAdapter</a>, and <a class="el" href="classVamp_1_1HostExt_1_1PluginWrapper.html#074978333a74fdcf336a8a1d8ea20abf">Vamp::HostExt::PluginWrapper</a>.</p>
|
cannam@0
|
980
|
cannam@21
|
981 <p>Definition at line <a class="el" href="vamp-sdk_2PluginBase_8h-source.html#l00248">248</a> of file <a class="el" href="vamp-sdk_2PluginBase_8h-source.html">vamp-sdk/PluginBase.h</a>.</p>
|
cannam@0
|
982
|
cannam@0
|
983 </div>
|
cannam@0
|
984 </div><p>
|
cannam@0
|
985 <hr><h2>Member Data Documentation</h2>
|
cannam@0
|
986 <a class="anchor" name="abac0cf7e961482b075777e5f0686e6c"></a><!-- doxytag: member="PercussionOnsetDetector::m_stepSize" ref="abac0cf7e961482b075777e5f0686e6c" args="" -->
|
cannam@0
|
987 <div class="memitem">
|
cannam@0
|
988 <div class="memproto">
|
cannam@0
|
989 <table class="memname">
|
cannam@0
|
990 <tr>
|
cannam@0
|
991 <td class="memname">size_t <a class="el" href="classPercussionOnsetDetector.html#abac0cf7e961482b075777e5f0686e6c">PercussionOnsetDetector::m_stepSize</a><code> [protected]</code> </td>
|
cannam@0
|
992 </tr>
|
cannam@0
|
993 </table>
|
cannam@0
|
994 </div>
|
cannam@0
|
995 <div class="memdoc">
|
cannam@0
|
996
|
cannam@0
|
997 <p>
|
cannam@0
|
998
|
cannam@0
|
999 <p>Definition at line <a class="el" href="PercussionOnsetDetector_8h-source.html#l00079">79</a> of file <a class="el" href="PercussionOnsetDetector_8h-source.html">PercussionOnsetDetector.h</a>.</p>
|
cannam@0
|
1000
|
cannam@0
|
1001 <p>Referenced by <a class="el" href="PercussionOnsetDetector_8cpp-source.html#l00113">initialise()</a>, and <a class="el" href="PercussionOnsetDetector_8cpp-source.html#l00226">process()</a>.</p>
|
cannam@0
|
1002
|
cannam@0
|
1003 </div>
|
cannam@0
|
1004 </div><p>
|
cannam@0
|
1005 <a class="anchor" name="920de543dbcf70a2edd80b5b31313285"></a><!-- doxytag: member="PercussionOnsetDetector::m_blockSize" ref="920de543dbcf70a2edd80b5b31313285" args="" -->
|
cannam@0
|
1006 <div class="memitem">
|
cannam@0
|
1007 <div class="memproto">
|
cannam@0
|
1008 <table class="memname">
|
cannam@0
|
1009 <tr>
|
cannam@0
|
1010 <td class="memname">size_t <a class="el" href="classPercussionOnsetDetector.html#920de543dbcf70a2edd80b5b31313285">PercussionOnsetDetector::m_blockSize</a><code> [protected]</code> </td>
|
cannam@0
|
1011 </tr>
|
cannam@0
|
1012 </table>
|
cannam@0
|
1013 </div>
|
cannam@0
|
1014 <div class="memdoc">
|
cannam@0
|
1015
|
cannam@0
|
1016 <p>
|
cannam@0
|
1017
|
cannam@0
|
1018 <p>Definition at line <a class="el" href="PercussionOnsetDetector_8h-source.html#l00080">80</a> of file <a class="el" href="PercussionOnsetDetector_8h-source.html">PercussionOnsetDetector.h</a>.</p>
|
cannam@0
|
1019
|
cannam@0
|
1020 <p>Referenced by <a class="el" href="PercussionOnsetDetector_8cpp-source.html#l00113">initialise()</a>, <a class="el" href="PercussionOnsetDetector_8cpp-source.html#l00226">process()</a>, and <a class="el" href="PercussionOnsetDetector_8cpp-source.html#l00134">reset()</a>.</p>
|
cannam@0
|
1021
|
cannam@0
|
1022 </div>
|
cannam@0
|
1023 </div><p>
|
cannam@0
|
1024 <a class="anchor" name="b04119adad56d87f2e633de289aab507"></a><!-- doxytag: member="PercussionOnsetDetector::m_threshold" ref="b04119adad56d87f2e633de289aab507" args="" -->
|
cannam@0
|
1025 <div class="memitem">
|
cannam@0
|
1026 <div class="memproto">
|
cannam@0
|
1027 <table class="memname">
|
cannam@0
|
1028 <tr>
|
cannam@0
|
1029 <td class="memname">float <a class="el" href="classPercussionOnsetDetector.html#b04119adad56d87f2e633de289aab507">PercussionOnsetDetector::m_threshold</a><code> [protected]</code> </td>
|
cannam@0
|
1030 </tr>
|
cannam@0
|
1031 </table>
|
cannam@0
|
1032 </div>
|
cannam@0
|
1033 <div class="memdoc">
|
cannam@0
|
1034
|
cannam@0
|
1035 <p>
|
cannam@0
|
1036
|
cannam@0
|
1037 <p>Definition at line <a class="el" href="PercussionOnsetDetector_8h-source.html#l00082">82</a> of file <a class="el" href="PercussionOnsetDetector_8h-source.html">PercussionOnsetDetector.h</a>.</p>
|
cannam@0
|
1038
|
cannam@0
|
1039 <p>Referenced by <a class="el" href="PercussionOnsetDetector_8cpp-source.html#l00174">getParameter()</a>, <a class="el" href="PercussionOnsetDetector_8cpp-source.html#l00226">process()</a>, and <a class="el" href="PercussionOnsetDetector_8cpp-source.html#l00182">setParameter()</a>.</p>
|
cannam@0
|
1040
|
cannam@0
|
1041 </div>
|
cannam@0
|
1042 </div><p>
|
cannam@0
|
1043 <a class="anchor" name="4e9770f246ba3bc75e7fc2cb8f9010af"></a><!-- doxytag: member="PercussionOnsetDetector::m_sensitivity" ref="4e9770f246ba3bc75e7fc2cb8f9010af" args="" -->
|
cannam@0
|
1044 <div class="memitem">
|
cannam@0
|
1045 <div class="memproto">
|
cannam@0
|
1046 <table class="memname">
|
cannam@0
|
1047 <tr>
|
cannam@0
|
1048 <td class="memname">float <a class="el" href="classPercussionOnsetDetector.html#4e9770f246ba3bc75e7fc2cb8f9010af">PercussionOnsetDetector::m_sensitivity</a><code> [protected]</code> </td>
|
cannam@0
|
1049 </tr>
|
cannam@0
|
1050 </table>
|
cannam@0
|
1051 </div>
|
cannam@0
|
1052 <div class="memdoc">
|
cannam@0
|
1053
|
cannam@0
|
1054 <p>
|
cannam@0
|
1055
|
cannam@0
|
1056 <p>Definition at line <a class="el" href="PercussionOnsetDetector_8h-source.html#l00083">83</a> of file <a class="el" href="PercussionOnsetDetector_8h-source.html">PercussionOnsetDetector.h</a>.</p>
|
cannam@0
|
1057
|
cannam@0
|
1058 <p>Referenced by <a class="el" href="PercussionOnsetDetector_8cpp-source.html#l00174">getParameter()</a>, <a class="el" href="PercussionOnsetDetector_8cpp-source.html#l00226">process()</a>, and <a class="el" href="PercussionOnsetDetector_8cpp-source.html#l00182">setParameter()</a>.</p>
|
cannam@0
|
1059
|
cannam@0
|
1060 </div>
|
cannam@0
|
1061 </div><p>
|
cannam@0
|
1062 <a class="anchor" name="30daa717267251a9d49afe57c328e989"></a><!-- doxytag: member="PercussionOnsetDetector::m_priorMagnitudes" ref="30daa717267251a9d49afe57c328e989" args="" -->
|
cannam@0
|
1063 <div class="memitem">
|
cannam@0
|
1064 <div class="memproto">
|
cannam@0
|
1065 <table class="memname">
|
cannam@0
|
1066 <tr>
|
cannam@0
|
1067 <td class="memname">float* <a class="el" href="classPercussionOnsetDetector.html#30daa717267251a9d49afe57c328e989">PercussionOnsetDetector::m_priorMagnitudes</a><code> [protected]</code> </td>
|
cannam@0
|
1068 </tr>
|
cannam@0
|
1069 </table>
|
cannam@0
|
1070 </div>
|
cannam@0
|
1071 <div class="memdoc">
|
cannam@0
|
1072
|
cannam@0
|
1073 <p>
|
cannam@0
|
1074
|
cannam@0
|
1075 <p>Definition at line <a class="el" href="PercussionOnsetDetector_8h-source.html#l00084">84</a> of file <a class="el" href="PercussionOnsetDetector_8h-source.html">PercussionOnsetDetector.h</a>.</p>
|
cannam@0
|
1076
|
cannam@0
|
1077 <p>Referenced by <a class="el" href="PercussionOnsetDetector_8cpp-source.html#l00113">initialise()</a>, <a class="el" href="PercussionOnsetDetector_8cpp-source.html#l00226">process()</a>, <a class="el" href="PercussionOnsetDetector_8cpp-source.html#l00134">reset()</a>, and <a class="el" href="PercussionOnsetDetector_8cpp-source.html#l00059">~PercussionOnsetDetector()</a>.</p>
|
cannam@0
|
1078
|
cannam@0
|
1079 </div>
|
cannam@0
|
1080 </div><p>
|
cannam@0
|
1081 <a class="anchor" name="cd80162c65212be7fa91251263fb9c3d"></a><!-- doxytag: member="PercussionOnsetDetector::m_dfMinus1" ref="cd80162c65212be7fa91251263fb9c3d" args="" -->
|
cannam@0
|
1082 <div class="memitem">
|
cannam@0
|
1083 <div class="memproto">
|
cannam@0
|
1084 <table class="memname">
|
cannam@0
|
1085 <tr>
|
cannam@0
|
1086 <td class="memname">float <a class="el" href="classPercussionOnsetDetector.html#cd80162c65212be7fa91251263fb9c3d">PercussionOnsetDetector::m_dfMinus1</a><code> [protected]</code> </td>
|
cannam@0
|
1087 </tr>
|
cannam@0
|
1088 </table>
|
cannam@0
|
1089 </div>
|
cannam@0
|
1090 <div class="memdoc">
|
cannam@0
|
1091
|
cannam@0
|
1092 <p>
|
cannam@0
|
1093
|
cannam@0
|
1094 <p>Definition at line <a class="el" href="PercussionOnsetDetector_8h-source.html#l00085">85</a> of file <a class="el" href="PercussionOnsetDetector_8h-source.html">PercussionOnsetDetector.h</a>.</p>
|
cannam@0
|
1095
|
cannam@0
|
1096 <p>Referenced by <a class="el" href="PercussionOnsetDetector_8cpp-source.html#l00113">initialise()</a>, <a class="el" href="PercussionOnsetDetector_8cpp-source.html#l00226">process()</a>, and <a class="el" href="PercussionOnsetDetector_8cpp-source.html#l00134">reset()</a>.</p>
|
cannam@0
|
1097
|
cannam@0
|
1098 </div>
|
cannam@0
|
1099 </div><p>
|
cannam@0
|
1100 <a class="anchor" name="6ad7d8353cc681ff42a63b127cca5779"></a><!-- doxytag: member="PercussionOnsetDetector::m_dfMinus2" ref="6ad7d8353cc681ff42a63b127cca5779" args="" -->
|
cannam@0
|
1101 <div class="memitem">
|
cannam@0
|
1102 <div class="memproto">
|
cannam@0
|
1103 <table class="memname">
|
cannam@0
|
1104 <tr>
|
cannam@0
|
1105 <td class="memname">float <a class="el" href="classPercussionOnsetDetector.html#6ad7d8353cc681ff42a63b127cca5779">PercussionOnsetDetector::m_dfMinus2</a><code> [protected]</code> </td>
|
cannam@0
|
1106 </tr>
|
cannam@0
|
1107 </table>
|
cannam@0
|
1108 </div>
|
cannam@0
|
1109 <div class="memdoc">
|
cannam@0
|
1110
|
cannam@0
|
1111 <p>
|
cannam@0
|
1112
|
cannam@0
|
1113 <p>Definition at line <a class="el" href="PercussionOnsetDetector_8h-source.html#l00086">86</a> of file <a class="el" href="PercussionOnsetDetector_8h-source.html">PercussionOnsetDetector.h</a>.</p>
|
cannam@0
|
1114
|
cannam@0
|
1115 <p>Referenced by <a class="el" href="PercussionOnsetDetector_8cpp-source.html#l00113">initialise()</a>, <a class="el" href="PercussionOnsetDetector_8cpp-source.html#l00226">process()</a>, and <a class="el" href="PercussionOnsetDetector_8cpp-source.html#l00134">reset()</a>.</p>
|
cannam@0
|
1116
|
cannam@0
|
1117 </div>
|
cannam@0
|
1118 </div><p>
|
cannam@0
|
1119 <a class="anchor" name="59b9dd82a4f4eb946cd0474cc81abc23"></a><!-- doxytag: member="PercussionOnsetDetector::m_inputSampleRate" ref="59b9dd82a4f4eb946cd0474cc81abc23" args="" -->
|
cannam@0
|
1120 <div class="memitem">
|
cannam@0
|
1121 <div class="memproto">
|
cannam@0
|
1122 <table class="memname">
|
cannam@0
|
1123 <tr>
|
cannam@0
|
1124 <td class="memname">float <a class="el" href="classVamp_1_1Plugin.html#59b9dd82a4f4eb946cd0474cc81abc23">Vamp::Plugin::m_inputSampleRate</a><code> [protected, inherited]</code> </td>
|
cannam@0
|
1125 </tr>
|
cannam@0
|
1126 </table>
|
cannam@0
|
1127 </div>
|
cannam@0
|
1128 <div class="memdoc">
|
cannam@0
|
1129
|
cannam@0
|
1130 <p>
|
cannam@0
|
1131
|
cannam@21
|
1132 <p>Definition at line <a class="el" href="vamp-sdk_2Plugin_8h-source.html#l00431">431</a> of file <a class="el" href="vamp-sdk_2Plugin_8h-source.html">vamp-sdk/Plugin.h</a>.</p>
|
cannam@0
|
1133
|
cannam@21
|
1134 <p>Referenced by <a class="el" href="ZeroCrossing_8cpp-source.html#l00111">ZeroCrossing::getOutputDescriptors()</a>, <a class="el" href="PercussionOnsetDetector_8cpp-source.html#l00196">getOutputDescriptors()</a>, <a class="el" href="AmplitudeFollower_8cpp-source.html#l00105">AmplitudeFollower::initialise()</a>, <a class="el" href="ZeroCrossing_8cpp-source.html#l00142">ZeroCrossing::process()</a>, <a class="el" href="SpectralCentroid_8cpp-source.html#l00141">SpectralCentroid::process()</a>, and <a class="el" href="PercussionOnsetDetector_8cpp-source.html#l00226">process()</a>.</p>
|
cannam@0
|
1135
|
cannam@0
|
1136 </div>
|
cannam@0
|
1137 </div><p>
|
cannam@0
|
1138 <hr>The documentation for this class was generated from the following files:<ul>
|
cannam@0
|
1139 <li><a class="el" href="PercussionOnsetDetector_8h-source.html">PercussionOnsetDetector.h</a><li><a class="el" href="PercussionOnsetDetector_8cpp-source.html">PercussionOnsetDetector.cpp</a></ul>
|
cannam@0
|
1140 </div>
|
cannam@21
|
1141 <hr size="1"><address style="text-align: right;"><small>Generated on Mon Dec 8 14:37:19 2008 for VampPluginSDK by
|
cannam@0
|
1142 <a href="http://www.doxygen.org/index.html">
|
cannam@21
|
1143 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>
|
cannam@0
|
1144 </body>
|
cannam@0
|
1145 </html>
|