annotate examples/vamp-example-plugins.n3 @ 390:06988ce35ff0 vh

Initial draft of C API for plugin loading
author Chris Cannam
date Wed, 20 May 2015 16:12:18 +0100
parents 57cc0f0c20ff
children b9422f3e63a4
rev   line source
cannam@149 1 @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
cannam@149 2 @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
cannam@149 3 @prefix vamp: <http://purl.org/ontology/vamp/> .
cannam@149 4 @prefix plugbase: <http://vamp-plugins.org/rdf/plugins/vamp-example-plugins#> .
cannam@149 5 @prefix owl: <http://www.w3.org/2002/07/owl#> .
cannam@149 6 @prefix dc: <http://purl.org/dc/elements/1.1/> .
cannam@149 7 @prefix af: <http://purl.org/ontology/af/> .
cannam@149 8 @prefix foaf: <http://xmlns.com/foaf/0.1/> .
Chris@367 9 @prefix doap: <http://usefulinc.com/ns/doap#> .
cannam@149 10 @prefix cc: <http://web.resource.org/cc/> .
cannam@267 11 @prefix : <#> .
cannam@149 12
cannam@149 13 <> a vamp:PluginDescription ;
cannam@149 14 foaf:maker <http://www.vamp-plugins.org/doap.rdf#template-generator> ;
cannam@149 15 foaf:primaryTopic <http://vamp-plugins.org/rdf/plugins/vamp-example-plugins> .
cannam@149 16
Chris@367 17 :maker
Chris@367 18 foaf:name "Vamp SDK Example Plugins" ;
Chris@367 19 foaf:page <http://vamp-plugins.org/> .
Chris@367 20
cannam@149 21 :vamp-example-plugins a vamp:PluginLibrary ;
cannam@219 22 vamp:identifier "vamp-example-plugins" ;
Chris@367 23 dc:title "Vamp example plugins" ;
Chris@367 24 dc:description """A set of simple plugins as included with the Vamp developers kit. Amplitude tracker, simple percussion onset detector, tempo estimator, spectral centroid, power spectrum, and zero-crossing counter.""" ;
cannam@219 25 foaf:page <http://www.vamp-plugins.org/plugin-doc/vamp-example-plugins.html> ;
Chris@367 26 doap:download-page <http://vamp-plugins.org/develop.html> ;
cannam@219 27 vamp:available_plugin plugbase:amplitudefollower ;
cannam@219 28 vamp:available_plugin plugbase:fixedtempo ;
cannam@219 29 vamp:available_plugin plugbase:percussiononsets ;
cannam@257 30 vamp:available_plugin plugbase:powerspectrum ;
cannam@219 31 vamp:available_plugin plugbase:spectralcentroid ;
cannam@219 32 vamp:available_plugin plugbase:zerocrossing ;
Chris@367 33 foaf:maker :maker ;
Chris@367 34 dc:title "Vamp Example Plugins" ;
Chris@367 35 dc:description """Example plugins from the Vamp Plugin SDK""" ;
Chris@367 36 vamp:has_source true ;
Chris@367 37 vamp:has_binary "linux32" ;
Chris@367 38 vamp:has_binary "linux64" ;
Chris@367 39 vamp:has_binary "osx" ;
Chris@367 40 vamp:has_binary "win32" ;
cannam@219 41 .
cannam@149 42
cannam@149 43 plugbase:amplitudefollower a vamp:Plugin ;
cannam@149 44 dc:title "Amplitude Follower" ;
cannam@149 45 vamp:name "Amplitude Follower" ;
cannam@149 46 dc:description "Track the amplitude of the audio signal" ;
cannam@257 47 foaf:page <http://www.vamp-plugins.org/plugin-doc/vamp-example-plugins.html#amplitudefollower> ;
Chris@367 48 foaf:maker :maker ;
cannam@224 49 cc:license <http://creativecommons.org/licenses/BSD/> ;
cannam@224 50 dc:rights "Freely redistributable (BSD license)" ;
cannam@149 51 vamp:identifier "amplitudefollower" ;
cannam@219 52 vamp:vamp_API_version vamp:api_version_2 ;
cannam@149 53 owl:versionInfo "1" ;
cannam@149 54 vamp:input_domain vamp:TimeDomain ;
cannam@149 55
cannam@158 56 vamp:parameter plugbase:amplitudefollower_param_attack ;
cannam@158 57 vamp:parameter plugbase:amplitudefollower_param_release ;
cannam@149 58
cannam@172 59 vamp:output plugbase:amplitudefollower_output_amplitude ;
cannam@149 60 .
cannam@158 61 plugbase:amplitudefollower_param_attack a vamp:Parameter ;
cannam@149 62 vamp:identifier "attack" ;
cannam@149 63 dc:title "Attack time" ;
cannam@149 64 dc:format "s" ;
cannam@149 65 vamp:min_value 0 ;
cannam@149 66 vamp:max_value 1 ;
cannam@149 67 vamp:unit "s" ;
cannam@149 68 vamp:default_value 0.01 ;
cannam@149 69 vamp:value_names ();
cannam@149 70 .
cannam@158 71 plugbase:amplitudefollower_param_release a vamp:Parameter ;
cannam@149 72 vamp:identifier "release" ;
cannam@149 73 dc:title "Release time" ;
cannam@149 74 dc:format "s" ;
cannam@149 75 vamp:min_value 0 ;
cannam@149 76 vamp:max_value 1 ;
cannam@149 77 vamp:unit "s" ;
cannam@149 78 vamp:default_value 0.01 ;
cannam@149 79 vamp:value_names ();
cannam@149 80 .
cannam@149 81 plugbase:amplitudefollower_output_amplitude a vamp:DenseOutput ;
cannam@149 82 vamp:identifier "amplitude" ;
cannam@149 83 dc:title "Amplitude" ;
cannam@149 84 dc:description "" ;
cannam@149 85 vamp:fixed_bin_count "true" ;
cannam@149 86 vamp:unit "V" ;
cannam@149 87 vamp:bin_count 1 ;
cannam@149 88 vamp:bin_names ( "");
cannam@219 89 vamp:computes_signal_type af:Signal ;
cannam@219 90 .
cannam@219 91 plugbase:fixedtempo a vamp:Plugin ;
cannam@219 92 dc:title "Simple Fixed Tempo Estimator" ;
cannam@219 93 vamp:name "Simple Fixed Tempo Estimator" ;
cannam@219 94 dc:description "Study a short section of audio and estimate its tempo, assuming the tempo is constant" ;
cannam@257 95 foaf:page <http://www.vamp-plugins.org/plugin-doc/vamp-example-plugins.html#fixedtempo> ;
Chris@367 96 foaf:maker :maker ;
cannam@224 97 cc:license <http://creativecommons.org/licenses/BSD/> ;
cannam@224 98 dc:rights "Freely redistributable (BSD license)" ;
cannam@219 99 vamp:identifier "fixedtempo" ;
cannam@219 100 vamp:vamp_API_version vamp:api_version_2 ;
cannam@219 101 owl:versionInfo "1" ;
cannam@219 102 vamp:input_domain vamp:FrequencyDomain ;
cannam@219 103
cannam@219 104 vamp:output plugbase:fixedtempo_output_tempo ;
cannam@219 105 vamp:output plugbase:fixedtempo_output_candidates ;
cannam@219 106 vamp:output plugbase:fixedtempo_output_detectionfunction ;
cannam@219 107 vamp:output plugbase:fixedtempo_output_acf ;
cannam@219 108 vamp:output plugbase:fixedtempo_output_filtered_acf ;
cannam@219 109 .
cannam@219 110 plugbase:fixedtempo_output_tempo a vamp:SparseOutput ;
cannam@219 111 vamp:identifier "tempo" ;
cannam@219 112 dc:title "Tempo" ;
cannam@219 113 dc:description "Estimated tempo" ;
cannam@219 114 vamp:fixed_bin_count "true" ;
cannam@219 115 vamp:unit "bpm" ;
cannam@219 116 vamp:bin_count 1 ;
cannam@219 117 vamp:bin_names ( "");
cannam@219 118 vamp:sample_type vamp:VariableSampleRate ;
cannam@219 119 vamp:computes_event_type af:Tempo ;
cannam@219 120 .
cannam@219 121 plugbase:fixedtempo_output_candidates a vamp:SparseOutput ;
cannam@219 122 vamp:identifier "candidates" ;
cannam@219 123 dc:title "Tempo candidates" ;
cannam@219 124 dc:description "Possible tempo estimates, one per bin with the most likely in the first bin" ;
cannam@219 125 vamp:fixed_bin_count "false" ;
cannam@219 126 vamp:unit "bpm" ;
cannam@219 127 vamp:sample_type vamp:VariableSampleRate ;
cannam@219 128 vamp:computes_event_type af:Tempo ;
cannam@219 129 .
cannam@219 130 plugbase:fixedtempo_output_detectionfunction a vamp:DenseOutput ;
cannam@219 131 vamp:identifier "detectionfunction" ;
cannam@219 132 dc:title "Detection Function" ;
cannam@219 133 dc:description "Onset detection function" ;
cannam@219 134 vamp:fixed_bin_count "true" ;
cannam@219 135 vamp:unit "" ;
cannam@219 136 a vamp:KnownExtentsOutput ;
cannam@219 137 vamp:min_value 0 ;
cannam@219 138 vamp:max_value 1 ;
cannam@219 139 vamp:bin_count 1 ;
cannam@219 140 vamp:bin_names ( "");
cannam@219 141 vamp:computes_signal_type af:OnsetDetectionFunction ;
cannam@219 142 .
cannam@219 143 plugbase:fixedtempo_output_acf a vamp:DenseOutput ;
cannam@219 144 vamp:identifier "acf" ;
cannam@219 145 dc:title "Autocorrelation Function" ;
cannam@219 146 dc:description "Autocorrelation of onset detection function" ;
cannam@219 147 vamp:fixed_bin_count "true" ;
cannam@219 148 vamp:unit "r" ;
cannam@219 149 vamp:bin_count 1 ;
cannam@219 150 vamp:bin_names ( "");
cannam@219 151 vamp:computes_signal_type af:Signal ;
cannam@219 152 .
cannam@219 153 plugbase:fixedtempo_output_filtered_acf a vamp:DenseOutput ;
cannam@219 154 vamp:identifier "filtered_acf" ;
cannam@219 155 dc:title "Filtered Autocorrelation" ;
cannam@219 156 dc:description "Filtered autocorrelation of onset detection function" ;
cannam@219 157 vamp:fixed_bin_count "true" ;
cannam@219 158 vamp:unit "r" ;
cannam@219 159 vamp:bin_count 1 ;
cannam@219 160 vamp:bin_names ( "");
cannam@219 161 vamp:computes_signal_type af:Signal ;
cannam@149 162 .
cannam@149 163 plugbase:percussiononsets a vamp:Plugin ;
cannam@149 164 dc:title "Simple Percussion Onset Detector" ;
cannam@149 165 vamp:name "Simple Percussion Onset Detector" ;
cannam@149 166 dc:description "Detect percussive note onsets by identifying broadband energy rises" ;
cannam@257 167 foaf:page <http://www.vamp-plugins.org/plugin-doc/vamp-example-plugins.html#percussiononsets> ;
Chris@367 168 foaf:maker :maker ;
cannam@224 169 cc:license <http://creativecommons.org/licenses/BSD/> ;
cannam@224 170 dc:rights "Freely redistributable (BSD license)" ;
cannam@149 171 vamp:identifier "percussiononsets" ;
cannam@219 172 vamp:vamp_API_version vamp:api_version_2 ;
cannam@149 173 owl:versionInfo "2" ;
cannam@149 174 vamp:input_domain vamp:FrequencyDomain ;
cannam@149 175
cannam@158 176 vamp:parameter plugbase:percussiononsets_param_threshold ;
cannam@158 177 vamp:parameter plugbase:percussiononsets_param_sensitivity ;
cannam@149 178
cannam@172 179 vamp:output plugbase:percussiononsets_output_onsets ;
cannam@172 180 vamp:output plugbase:percussiononsets_output_detectionfunction ;
cannam@149 181 .
cannam@158 182 plugbase:percussiononsets_param_threshold a vamp:Parameter ;
cannam@149 183 vamp:identifier "threshold" ;
cannam@149 184 dc:title "Energy rise threshold" ;
cannam@149 185 dc:format "dB" ;
cannam@149 186 vamp:min_value 0 ;
cannam@149 187 vamp:max_value 20 ;
cannam@149 188 vamp:unit "dB" ;
cannam@149 189 vamp:default_value 3 ;
cannam@149 190 vamp:value_names ();
cannam@149 191 .
cannam@158 192 plugbase:percussiononsets_param_sensitivity a vamp:Parameter ;
cannam@149 193 vamp:identifier "sensitivity" ;
cannam@149 194 dc:title "Sensitivity" ;
cannam@149 195 dc:format "%" ;
cannam@149 196 vamp:min_value 0 ;
cannam@149 197 vamp:max_value 100 ;
cannam@149 198 vamp:unit "%" ;
cannam@149 199 vamp:default_value 40 ;
cannam@149 200 vamp:value_names ();
cannam@149 201 .
cannam@149 202 plugbase:percussiononsets_output_onsets a vamp:SparseOutput ;
cannam@149 203 vamp:identifier "onsets" ;
cannam@149 204 dc:title "Onsets" ;
cannam@149 205 dc:description "Percussive note onset locations" ;
cannam@149 206 vamp:fixed_bin_count "true" ;
cannam@149 207 vamp:unit "" ;
cannam@149 208 vamp:bin_count 0 ;
cannam@149 209 vamp:bin_names ();
cannam@149 210 vamp:sample_type vamp:VariableSampleRate ;
cannam@219 211 vamp:computes_event_type af:Onset ;
cannam@149 212 .
cannam@149 213 plugbase:percussiononsets_output_detectionfunction a vamp:DenseOutput ;
cannam@149 214 vamp:identifier "detectionfunction" ;
cannam@149 215 dc:title "Detection Function" ;
cannam@149 216 dc:description "Broadband energy rise detection function" ;
cannam@149 217 vamp:fixed_bin_count "true" ;
cannam@149 218 vamp:unit "" ;
cannam@149 219 a vamp:QuantizedOutput ;
cannam@149 220 vamp:quantize_step 1 ;
cannam@149 221 vamp:bin_count 1 ;
cannam@149 222 vamp:bin_names ( "");
cannam@219 223 vamp:computes_signal_type af:OnsetDetectionFunction ;
cannam@149 224 .
cannam@257 225 plugbase:powerspectrum a vamp:Plugin ;
cannam@257 226 dc:title "Simple Power Spectrum" ;
cannam@257 227 vamp:name "Simple Power Spectrum" ;
cannam@257 228 dc:description "Return the power spectrum of a signal" ;
cannam@257 229 foaf:page <http://www.vamp-plugins.org/plugin-doc/vamp-example-plugins.html#powerspectrum> ;
Chris@367 230 foaf:maker :maker ;
cannam@257 231 cc:license <http://creativecommons.org/licenses/BSD/> ;
cannam@257 232 dc:rights "Freely redistributable (BSD license)" ;
cannam@257 233 vamp:identifier "powerspectrum" ;
cannam@257 234 vamp:vamp_API_version vamp:api_version_2 ;
cannam@257 235 owl:versionInfo "1" ;
cannam@257 236 vamp:input_domain vamp:FrequencyDomain ;
cannam@257 237
cannam@257 238 vamp:output plugbase:powerspectrum_output_powerspectrum ;
cannam@257 239 .
cannam@257 240 plugbase:powerspectrum_output_powerspectrum a vamp:DenseOutput ;
cannam@257 241 vamp:identifier "powerspectrum" ;
cannam@257 242 dc:title "Power Spectrum" ;
cannam@257 243 dc:description "Power values of the frequency spectrum bins calculated from the input signal" ;
cannam@257 244 vamp:computes_signal_type af:Signal ;
cannam@257 245 .
cannam@149 246 plugbase:spectralcentroid a vamp:Plugin ;
cannam@149 247 dc:title "Spectral Centroid" ;
cannam@149 248 vamp:name "Spectral Centroid" ;
cannam@149 249 dc:description "Calculate the centroid frequency of the spectrum of the input signal" ;
cannam@257 250 foaf:page <http://www.vamp-plugins.org/plugin-doc/vamp-example-plugins.html#spectralcentroid> ;
Chris@367 251 foaf:maker :maker ;
cannam@224 252 cc:license <http://creativecommons.org/licenses/BSD/> ;
cannam@224 253 dc:rights "Freely redistributable (BSD license)" ;
cannam@149 254 vamp:identifier "spectralcentroid" ;
cannam@219 255 vamp:vamp_API_version vamp:api_version_2 ;
cannam@149 256 owl:versionInfo "2" ;
cannam@149 257 vamp:input_domain vamp:FrequencyDomain ;
cannam@149 258
cannam@172 259 vamp:output plugbase:spectralcentroid_output_logcentroid ;
cannam@172 260 vamp:output plugbase:spectralcentroid_output_linearcentroid ;
cannam@149 261 .
cannam@149 262 plugbase:spectralcentroid_output_logcentroid a vamp:DenseOutput ;
cannam@149 263 vamp:identifier "logcentroid" ;
cannam@149 264 dc:title "Log Frequency Centroid" ;
cannam@149 265 dc:description "Centroid of the log weighted frequency spectrum" ;
cannam@149 266 vamp:fixed_bin_count "true" ;
cannam@149 267 vamp:unit "Hz" ;
cannam@149 268 vamp:bin_count 1 ;
cannam@149 269 vamp:bin_names ( "");
cannam@219 270 vamp:computes_signal_type af:LogFrequencyCentroid ;
cannam@149 271 .
cannam@149 272 plugbase:spectralcentroid_output_linearcentroid a vamp:DenseOutput ;
cannam@149 273 vamp:identifier "linearcentroid" ;
cannam@149 274 dc:title "Linear Frequency Centroid" ;
cannam@149 275 dc:description "Centroid of the linear frequency spectrum" ;
cannam@149 276 vamp:fixed_bin_count "true" ;
cannam@149 277 vamp:unit "Hz" ;
cannam@149 278 vamp:bin_count 1 ;
cannam@149 279 vamp:bin_names ( "");
cannam@219 280 vamp:computes_signal_type af:LinearFrequencyCentroid ;
cannam@149 281 .
cannam@149 282 plugbase:zerocrossing a vamp:Plugin ;
cannam@149 283 dc:title "Zero Crossings" ;
cannam@149 284 vamp:name "Zero Crossings" ;
cannam@149 285 dc:description "Detect and count zero crossing points" ;
cannam@257 286 foaf:page <http://www.vamp-plugins.org/plugin-doc/vamp-example-plugins.html#zerocrossing> ;
Chris@367 287 foaf:maker :maker ;
cannam@224 288 cc:license <http://creativecommons.org/licenses/BSD/> ;
cannam@224 289 dc:rights "Freely redistributable (BSD license)" ;
cannam@149 290 vamp:identifier "zerocrossing" ;
cannam@219 291 vamp:vamp_API_version vamp:api_version_2 ;
cannam@149 292 owl:versionInfo "2" ;
cannam@149 293 vamp:input_domain vamp:TimeDomain ;
cannam@172 294 vamp:output plugbase:zerocrossing_output_counts ;
cannam@172 295 vamp:output plugbase:zerocrossing_output_zerocrossings ;
cannam@149 296 .
cannam@149 297 plugbase:zerocrossing_output_counts a vamp:DenseOutput ;
cannam@149 298 vamp:identifier "counts" ;
cannam@149 299 dc:title "Zero Crossing Counts" ;
cannam@149 300 dc:description "The number of zero crossing points per processing block" ;
cannam@149 301 vamp:fixed_bin_count "true" ;
cannam@149 302 vamp:unit "crossings" ;
cannam@149 303 a vamp:QuantizedOutput ;
cannam@149 304 vamp:quantize_step 1 ;
cannam@149 305 vamp:bin_count 1 ;
cannam@149 306 vamp:bin_names ( "");
cannam@219 307 vamp:computes_signal_type af:ZeroCrossingCount ;
cannam@149 308 .
cannam@149 309 plugbase:zerocrossing_output_zerocrossings a vamp:SparseOutput ;
cannam@149 310 vamp:identifier "zerocrossings" ;
cannam@149 311 dc:title "Zero Crossings" ;
cannam@149 312 dc:description "The locations of zero crossing points" ;
cannam@149 313 vamp:fixed_bin_count "true" ;
cannam@149 314 vamp:unit "" ;
cannam@149 315 a vamp:QuantizedOutput ;
cannam@149 316 vamp:quantize_step 1 ;
cannam@149 317 vamp:bin_count 0 ;
cannam@149 318 vamp:bin_names ();
cannam@149 319 vamp:sample_type vamp:VariableSampleRate ;
cannam@219 320 vamp:computes_event_type af:ZeroCrossing ;
cannam@149 321 .
cannam@149 322