annotate examples/vamp-example-plugins.n3 @ 217:f9b4f60280db

* improve usage printout & command line parsing a bit
author cannam
date Wed, 29 Oct 2008 15:03:32 +0000
parents 930b51de9c28
children 9ad865639716
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/> .
cannam@149 9 @prefix cc: <http://web.resource.org/cc/> .
cannam@149 10 @prefix : <> .
cannam@149 11
cannam@149 12 <> a vamp:PluginDescription ;
cannam@154 13 foaf:maker <x> ;
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
cannam@149 17 :vamp-example-plugins a vamp:PluginLibrary ;
cannam@149 18 vamp:identifier "vamp-example-plugins" ;
cannam@214 19 foaf:page <http://www.vamp-plugins.org/download.html> ;
cannam@149 20 vamp:available_plugin plugbase:amplitudefollower;
cannam@149 21 vamp:available_plugin plugbase:percussiononsets;
cannam@149 22 vamp:available_plugin plugbase:spectralcentroid;
cannam@149 23 vamp:available_plugin plugbase:zerocrossing .
cannam@149 24
cannam@149 25 plugbase:amplitudefollower a vamp:Plugin ;
cannam@149 26 dc:title "Amplitude Follower" ;
cannam@149 27 vamp:name "Amplitude Follower" ;
cannam@149 28 dc:description "Track the amplitude of the audio signal" ;
cannam@154 29 foaf:maker [ foaf:name "Vamp SDK Example Plugins" ] ; # FIXME could give plugin author's URI here
cannam@154 30 # cc:license <Place plugin license URI here and uncomment> ;
cannam@149 31 vamp:identifier "amplitudefollower" ;
cannam@149 32 vamp:vamp_API_version vamp:api_version_1 ;
cannam@149 33 owl:versionInfo "1" ;
cannam@149 34 vamp:input_domain vamp:TimeDomain ;
cannam@149 35
cannam@158 36 vamp:parameter plugbase:amplitudefollower_param_attack ;
cannam@158 37 vamp:parameter plugbase:amplitudefollower_param_release ;
cannam@149 38
cannam@172 39 vamp:output plugbase:amplitudefollower_output_amplitude ;
cannam@149 40 .
cannam@158 41 plugbase:amplitudefollower_param_attack a vamp:Parameter ;
cannam@149 42 vamp:identifier "attack" ;
cannam@149 43 dc:title "Attack time" ;
cannam@149 44 dc:format "s" ;
cannam@149 45 vamp:min_value 0 ;
cannam@149 46 vamp:max_value 1 ;
cannam@149 47 vamp:unit "s" ;
cannam@149 48 vamp:default_value 0.01 ;
cannam@149 49 vamp:value_names ();
cannam@149 50 .
cannam@158 51 plugbase:amplitudefollower_param_release a vamp:Parameter ;
cannam@149 52 vamp:identifier "release" ;
cannam@149 53 dc:title "Release time" ;
cannam@149 54 dc:format "s" ;
cannam@149 55 vamp:min_value 0 ;
cannam@149 56 vamp:max_value 1 ;
cannam@149 57 vamp:unit "s" ;
cannam@149 58 vamp:default_value 0.01 ;
cannam@149 59 vamp:value_names ();
cannam@149 60 .
cannam@149 61 plugbase:amplitudefollower_output_amplitude a vamp:DenseOutput ;
cannam@149 62 vamp:identifier "amplitude" ;
cannam@149 63 dc:title "Amplitude" ;
cannam@149 64 dc:description "" ;
cannam@149 65 vamp:fixed_bin_count "true" ;
cannam@149 66 vamp:unit "V" ;
cannam@149 67 vamp:bin_count 1 ;
cannam@149 68 vamp:bin_names ( "");
cannam@172 69 # vamp:computes_event_type <Place event type URI here and uncomment> ;
cannam@172 70 # vamp:computes_feature <Place feature attribute URI here and uncomment> ;
cannam@172 71 # vamp:computes_signal_type <Place signal type URI here and uncomment> ;
cannam@149 72 .
cannam@149 73 plugbase:percussiononsets a vamp:Plugin ;
cannam@149 74 dc:title "Simple Percussion Onset Detector" ;
cannam@149 75 vamp:name "Simple Percussion Onset Detector" ;
cannam@149 76 dc:description "Detect percussive note onsets by identifying broadband energy rises" ;
cannam@154 77 foaf:maker [ foaf:name "Vamp SDK Example Plugins" ] ; # FIXME could give plugin author's URI here
cannam@154 78 # cc:license <Place plugin license URI here and uncomment> ;
cannam@149 79 vamp:identifier "percussiononsets" ;
cannam@149 80 vamp:vamp_API_version vamp:api_version_1 ;
cannam@149 81 owl:versionInfo "2" ;
cannam@149 82 vamp:input_domain vamp:FrequencyDomain ;
cannam@149 83
cannam@158 84 vamp:parameter plugbase:percussiononsets_param_threshold ;
cannam@158 85 vamp:parameter plugbase:percussiononsets_param_sensitivity ;
cannam@149 86
cannam@172 87 vamp:output plugbase:percussiononsets_output_onsets ;
cannam@172 88 vamp:output plugbase:percussiononsets_output_detectionfunction ;
cannam@149 89 .
cannam@158 90 plugbase:percussiononsets_param_threshold a vamp:Parameter ;
cannam@149 91 vamp:identifier "threshold" ;
cannam@149 92 dc:title "Energy rise threshold" ;
cannam@149 93 dc:format "dB" ;
cannam@149 94 vamp:min_value 0 ;
cannam@149 95 vamp:max_value 20 ;
cannam@149 96 vamp:unit "dB" ;
cannam@149 97 vamp:default_value 3 ;
cannam@149 98 vamp:value_names ();
cannam@149 99 .
cannam@158 100 plugbase:percussiononsets_param_sensitivity a vamp:Parameter ;
cannam@149 101 vamp:identifier "sensitivity" ;
cannam@149 102 dc:title "Sensitivity" ;
cannam@149 103 dc:format "%" ;
cannam@149 104 vamp:min_value 0 ;
cannam@149 105 vamp:max_value 100 ;
cannam@149 106 vamp:unit "%" ;
cannam@149 107 vamp:default_value 40 ;
cannam@149 108 vamp:value_names ();
cannam@149 109 .
cannam@149 110 plugbase:percussiononsets_output_onsets a vamp:SparseOutput ;
cannam@149 111 vamp:identifier "onsets" ;
cannam@149 112 dc:title "Onsets" ;
cannam@149 113 dc:description "Percussive note onset locations" ;
cannam@149 114 vamp:fixed_bin_count "true" ;
cannam@149 115 vamp:unit "" ;
cannam@149 116 vamp:bin_count 0 ;
cannam@149 117 vamp:bin_names ();
cannam@149 118 vamp:sample_type vamp:VariableSampleRate ;
cannam@149 119 vamp:sample_rate 44100 ;
cannam@172 120 # vamp:computes_event_type <Place event type URI here and uncomment> ;
cannam@172 121 # vamp:computes_feature <Place feature attribute URI here and uncomment> ;
cannam@172 122 # vamp:computes_signal_type <Place signal type URI here and uncomment> ;
cannam@149 123 .
cannam@149 124 plugbase:percussiononsets_output_detectionfunction a vamp:DenseOutput ;
cannam@149 125 vamp:identifier "detectionfunction" ;
cannam@149 126 dc:title "Detection Function" ;
cannam@149 127 dc:description "Broadband energy rise detection function" ;
cannam@149 128 vamp:fixed_bin_count "true" ;
cannam@149 129 vamp:unit "" ;
cannam@149 130 a vamp:QuantizedOutput ;
cannam@149 131 vamp:quantize_step 1 ;
cannam@149 132 vamp:bin_count 1 ;
cannam@149 133 vamp:bin_names ( "");
cannam@172 134 # vamp:computes_event_type <Place event type URI here and uncomment> ;
cannam@172 135 # vamp:computes_feature <Place feature attribute URI here and uncomment> ;
cannam@172 136 # vamp:computes_signal_type <Place signal type URI here and uncomment> ;
cannam@149 137 .
cannam@149 138 plugbase:spectralcentroid a vamp:Plugin ;
cannam@149 139 dc:title "Spectral Centroid" ;
cannam@149 140 vamp:name "Spectral Centroid" ;
cannam@149 141 dc:description "Calculate the centroid frequency of the spectrum of the input signal" ;
cannam@154 142 foaf:maker [ foaf:name "Vamp SDK Example Plugins" ] ; # FIXME could give plugin author's URI here
cannam@154 143 # cc:license <Place plugin license URI here and uncomment> ;
cannam@149 144 vamp:identifier "spectralcentroid" ;
cannam@149 145 vamp:vamp_API_version vamp:api_version_1 ;
cannam@149 146 owl:versionInfo "2" ;
cannam@149 147 vamp:input_domain vamp:FrequencyDomain ;
cannam@149 148
cannam@149 149
cannam@172 150 vamp:output plugbase:spectralcentroid_output_logcentroid ;
cannam@172 151 vamp:output plugbase:spectralcentroid_output_linearcentroid ;
cannam@149 152 .
cannam@149 153 plugbase:spectralcentroid_output_logcentroid a vamp:DenseOutput ;
cannam@149 154 vamp:identifier "logcentroid" ;
cannam@149 155 dc:title "Log Frequency Centroid" ;
cannam@149 156 dc:description "Centroid of the log weighted frequency spectrum" ;
cannam@149 157 vamp:fixed_bin_count "true" ;
cannam@149 158 vamp:unit "Hz" ;
cannam@149 159 vamp:bin_count 1 ;
cannam@149 160 vamp:bin_names ( "");
cannam@172 161 # vamp:computes_event_type <Place event type URI here and uncomment> ;
cannam@172 162 # vamp:computes_feature <Place feature attribute URI here and uncomment> ;
cannam@172 163 # vamp:computes_signal_type <Place signal type URI here and uncomment> ;
cannam@149 164 .
cannam@149 165 plugbase:spectralcentroid_output_linearcentroid a vamp:DenseOutput ;
cannam@149 166 vamp:identifier "linearcentroid" ;
cannam@149 167 dc:title "Linear Frequency Centroid" ;
cannam@149 168 dc:description "Centroid of the linear frequency spectrum" ;
cannam@149 169 vamp:fixed_bin_count "true" ;
cannam@149 170 vamp:unit "Hz" ;
cannam@149 171 vamp:bin_count 1 ;
cannam@149 172 vamp:bin_names ( "");
cannam@172 173 # vamp:computes_event_type <Place event type URI here and uncomment> ;
cannam@172 174 # vamp:computes_feature <Place feature attribute URI here and uncomment> ;
cannam@172 175 # vamp:computes_signal_type <Place signal type URI here and uncomment> ;
cannam@149 176 .
cannam@149 177 plugbase:zerocrossing a vamp:Plugin ;
cannam@149 178 dc:title "Zero Crossings" ;
cannam@149 179 vamp:name "Zero Crossings" ;
cannam@149 180 dc:description "Detect and count zero crossing points" ;
cannam@154 181 foaf:maker [ foaf:name "Vamp SDK Example Plugins" ] ; # FIXME could give plugin author's URI here
cannam@154 182 # cc:license <Place plugin license URI here and uncomment> ;
cannam@149 183 vamp:identifier "zerocrossing" ;
cannam@149 184 vamp:vamp_API_version vamp:api_version_1 ;
cannam@149 185 owl:versionInfo "2" ;
cannam@149 186 vamp:input_domain vamp:TimeDomain ;
cannam@149 187
cannam@149 188
cannam@172 189 vamp:output plugbase:zerocrossing_output_counts ;
cannam@172 190 vamp:output plugbase:zerocrossing_output_zerocrossings ;
cannam@149 191 .
cannam@149 192 plugbase:zerocrossing_output_counts a vamp:DenseOutput ;
cannam@149 193 vamp:identifier "counts" ;
cannam@149 194 dc:title "Zero Crossing Counts" ;
cannam@149 195 dc:description "The number of zero crossing points per processing block" ;
cannam@149 196 vamp:fixed_bin_count "true" ;
cannam@149 197 vamp:unit "crossings" ;
cannam@149 198 a vamp:QuantizedOutput ;
cannam@149 199 vamp:quantize_step 1 ;
cannam@149 200 vamp:bin_count 1 ;
cannam@149 201 vamp:bin_names ( "");
cannam@172 202 # vamp:computes_event_type <Place event type URI here and uncomment> ;
cannam@172 203 # vamp:computes_feature <Place feature attribute URI here and uncomment> ;
cannam@172 204 # vamp:computes_signal_type <Place signal type URI here and uncomment> ;
cannam@149 205 .
cannam@149 206 plugbase:zerocrossing_output_zerocrossings a vamp:SparseOutput ;
cannam@149 207 vamp:identifier "zerocrossings" ;
cannam@149 208 dc:title "Zero Crossings" ;
cannam@149 209 dc:description "The locations of zero crossing points" ;
cannam@149 210 vamp:fixed_bin_count "true" ;
cannam@149 211 vamp:unit "" ;
cannam@149 212 a vamp:QuantizedOutput ;
cannam@149 213 vamp:quantize_step 1 ;
cannam@149 214 vamp:bin_count 0 ;
cannam@149 215 vamp:bin_names ();
cannam@149 216 vamp:sample_type vamp:VariableSampleRate ;
cannam@149 217 vamp:sample_rate 44100 ;
cannam@172 218 # vamp:computes_event_type <Place event type URI here and uncomment> ;
cannam@172 219 # vamp:computes_feature <Place feature attribute URI here and uncomment> ;
cannam@172 220 # vamp:computes_signal_type <Place signal type URI here and uncomment> ;
cannam@149 221 .
cannam@149 222