annotate match-vamp-plugin.n3 @ 246:aac9ad4064ea subsequence tip

Fix incorrect handling of silent tail in the non-subsequence MATCH phase; some debug output changes
author Chris Cannam
date Fri, 24 Jul 2020 14:29:55 +0100
parents d23dad16d6f9
children
rev   line source
Chris@8 1 @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
Chris@8 2 @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
Chris@8 3 @prefix vamp: <http://purl.org/ontology/vamp/> .
Chris@8 4 @prefix plugbase: <http://vamp-plugins.org/rdf/plugins/match-vamp-plugin#> .
Chris@8 5 @prefix owl: <http://www.w3.org/2002/07/owl#> .
Chris@8 6 @prefix dc: <http://purl.org/dc/elements/1.1/> .
Chris@8 7 @prefix af: <http://purl.org/ontology/af/> .
Chris@8 8 @prefix foaf: <http://xmlns.com/foaf/0.1/> .
Chris@164 9 @prefix doap: <http://usefulinc.com/ns/doap#> .
Chris@8 10 @prefix cc: <http://web.resource.org/cc/> .
Chris@8 11 @prefix : <#> .
Chris@8 12
Chris@164 13 <> a vamp:PluginDescription ;
Chris@164 14 foaf:maker <http://vamp-plugins.org/rdf/template-generator> ;
Chris@164 15 foaf:primaryTopic <http://vamp-plugins.org/rdf/plugins/match-vamp-plugin> .
Chris@8 16
Chris@164 17 :library_maker
Chris@8 18 foaf:name "Simon Dixon and Chris Cannam" ;
Chris@8 19 foaf:logo <http://vamp-plugins.org/rdf/plugins/makers/qm.png> ;
Chris@166 20 foaf:page <http://c4dm.eecs.qmul.ac.uk/> ;
Chris@164 21 .
Chris@8 22
Chris@8 23 plugbase:library a vamp:PluginLibrary ;
Chris@8 24 vamp:identifier "match-vamp-plugin" ;
Chris@8 25 dc:title "MATCH Vamp Plugin" ;
Chris@8 26 dc:description """Vamp implementation of the MATCH audio alignment algorithm from Simon Dixon. Sonic Visualiser can use this for automatic time alignment among multiple audio files.""" ;
Chris@8 27 vamp:available_plugin plugbase:match ;
Chris@164 28 foaf:maker :library_maker ;
Chris@8 29 foaf:page <http://code.soundsoftware.ac.uk/projects/match-vamp> ;
Chris@8 30 .
Chris@8 31
Chris@8 32 plugbase:match a vamp:Plugin ;
Chris@8 33 dc:title "Match Performance Aligner" ;
Chris@8 34 vamp:name "Match Performance Aligner" ;
Chris@8 35 dc:description """Calculate alignment between two performances in separate channel inputs""" ;
Chris@164 36 foaf:maker :library_maker ;
Chris@8 37 dc:rights """GPL""" ;
Chris@8 38 # cc:license <Place plugin license URI here and uncomment> ;
Chris@8 39 vamp:identifier "match" ;
Chris@8 40 vamp:vamp_API_version vamp:api_version_2 ;
Chris@164 41 owl:versionInfo "3" ;
Chris@8 42 vamp:input_domain vamp:FrequencyDomain ;
Chris@8 43
Chris@164 44 vamp:parameter plugbase:match_param_freq1 ;
Chris@164 45 vamp:parameter plugbase:match_param_freq2 ;
Chris@164 46 vamp:parameter plugbase:match_param_usechroma ;
Chris@164 47 vamp:parameter plugbase:match_param_usespecdiff ;
Chris@164 48 vamp:parameter plugbase:match_param_framenorm ;
Chris@164 49 vamp:parameter plugbase:match_param_metric ;
Chris@164 50 vamp:parameter plugbase:match_param_distnorm ;
Chris@164 51 vamp:parameter plugbase:match_param_silencethreshold ;
Chris@164 52 vamp:parameter plugbase:match_param_noise ;
Chris@164 53 vamp:parameter plugbase:match_param_gradientlimit ;
Chris@164 54 vamp:parameter plugbase:match_param_zonewidth ;
Chris@164 55 vamp:parameter plugbase:match_param_diagonalweight ;
Chris@164 56 vamp:parameter plugbase:match_param_smooth ;
Chris@8 57 vamp:parameter plugbase:match_param_serialise ;
Chris@8 58
Chris@8 59 vamp:output plugbase:match_output_path ;
Chris@8 60 vamp:output plugbase:match_output_a_b ;
Chris@8 61 vamp:output plugbase:match_output_b_a ;
Chris@8 62 vamp:output plugbase:match_output_a_b_divergence ;
Chris@8 63 vamp:output plugbase:match_output_a_b_temporatio ;
Chris@164 64 vamp:output plugbase:match_output_a_features ;
Chris@164 65 vamp:output plugbase:match_output_b_features ;
Chris@164 66 vamp:output plugbase:match_output_a_cfeatures ;
Chris@164 67 vamp:output plugbase:match_output_b_cfeatures ;
Chris@164 68 vamp:output plugbase:match_output_overall_cost ;
Chris@164 69 .
Chris@164 70
Chris@164 71 plugbase:match_param_freq1 a vamp:Parameter ;
Chris@164 72 vamp:identifier "freq1" ;
Chris@164 73 dc:title "Tuning frequency of first input" ;
Chris@164 74 dc:format "Hz" ;
Chris@164 75 vamp:min_value 220 ;
Chris@164 76 vamp:max_value 880 ;
Chris@164 77 vamp:unit "Hz" ;
Chris@164 78 vamp:default_value 440 ;
Chris@164 79 vamp:value_names ();
Chris@164 80 .
Chris@164 81 plugbase:match_param_freq2 a vamp:Parameter ;
Chris@164 82 vamp:identifier "freq2" ;
Chris@164 83 dc:title "Tuning frequency of second input" ;
Chris@164 84 dc:format "Hz" ;
Chris@164 85 vamp:min_value 220 ;
Chris@164 86 vamp:max_value 880 ;
Chris@164 87 vamp:unit "Hz" ;
Chris@164 88 vamp:default_value 440 ;
Chris@164 89 vamp:value_names ();
Chris@164 90 .
Chris@164 91 plugbase:match_param_usechroma a vamp:QuantizedParameter ;
Chris@164 92 vamp:identifier "usechroma" ;
Chris@164 93 dc:title "Feature type" ;
Chris@164 94 dc:format "" ;
Chris@164 95 vamp:min_value 0 ;
Chris@164 96 vamp:max_value 1 ;
Chris@164 97 vamp:unit "" ;
Chris@164 98 vamp:quantize_step 1 ;
Chris@164 99 vamp:default_value 0 ;
Chris@164 100 vamp:value_names ( "Spectral" "Chroma");
Chris@164 101 .
Chris@164 102 plugbase:match_param_usespecdiff a vamp:QuantizedParameter ;
Chris@164 103 vamp:identifier "usespecdiff" ;
Chris@164 104 dc:title "Use feature difference" ;
Chris@164 105 dc:format "" ;
Chris@164 106 vamp:min_value 0 ;
Chris@164 107 vamp:max_value 1 ;
Chris@164 108 vamp:unit "" ;
Chris@164 109 vamp:quantize_step 1 ;
Chris@164 110 vamp:default_value 1 ;
Chris@164 111 vamp:value_names ();
Chris@164 112 .
Chris@164 113 plugbase:match_param_framenorm a vamp:QuantizedParameter ;
Chris@164 114 vamp:identifier "framenorm" ;
Chris@164 115 dc:title "Frame normalisation" ;
Chris@164 116 dc:format "" ;
Chris@164 117 vamp:min_value 0 ;
Chris@164 118 vamp:max_value 2 ;
Chris@164 119 vamp:unit "" ;
Chris@164 120 vamp:quantize_step 1 ;
Chris@164 121 vamp:default_value 1 ;
Chris@164 122 vamp:value_names ( "None" "Sum to 1" "Long-term average");
Chris@164 123 .
Chris@164 124 plugbase:match_param_metric a vamp:QuantizedParameter ;
Chris@164 125 vamp:identifier "metric" ;
Chris@164 126 dc:title "Distance metric" ;
Chris@164 127 dc:format "" ;
Chris@164 128 vamp:min_value 0 ;
Chris@164 129 vamp:max_value 2 ;
Chris@164 130 vamp:unit "" ;
Chris@164 131 vamp:quantize_step 1 ;
Chris@164 132 vamp:default_value 0 ;
Chris@164 133 vamp:value_names ( "Manhattan" "Euclidean" "Cosine");
Chris@164 134 .
Chris@164 135 plugbase:match_param_distnorm a vamp:QuantizedParameter ;
Chris@164 136 vamp:identifier "distnorm" ;
Chris@164 137 dc:title "Distance normalisation" ;
Chris@164 138 dc:format "" ;
Chris@164 139 vamp:min_value 0 ;
Chris@164 140 vamp:max_value 2 ;
Chris@164 141 vamp:unit "" ;
Chris@164 142 vamp:quantize_step 1 ;
Chris@164 143 vamp:default_value 2 ;
Chris@164 144 vamp:value_names ( "None" "Sum of frames" "Log sum of frames");
Chris@164 145 .
Chris@164 146 plugbase:match_param_silencethreshold a vamp:Parameter ;
Chris@164 147 vamp:identifier "silencethreshold" ;
Chris@164 148 dc:title "Silence threshold" ;
Chris@164 149 dc:format "" ;
Chris@164 150 vamp:min_value 0 ;
Chris@164 151 vamp:max_value 0.1 ;
Chris@164 152 vamp:unit "" ;
Chris@164 153 vamp:default_value 0.01 ;
Chris@164 154 vamp:value_names ();
Chris@164 155 .
Chris@164 156 plugbase:match_param_noise a vamp:QuantizedParameter ;
Chris@164 157 vamp:identifier "noise" ;
Chris@164 158 dc:title "Add noise" ;
Chris@164 159 dc:format "" ;
Chris@164 160 vamp:min_value 0 ;
Chris@164 161 vamp:max_value 1 ;
Chris@164 162 vamp:unit "" ;
Chris@164 163 vamp:quantize_step 1 ;
Chris@164 164 vamp:default_value 1 ;
Chris@164 165 vamp:value_names ();
Chris@164 166 .
Chris@164 167 plugbase:match_param_gradientlimit a vamp:QuantizedParameter ;
Chris@164 168 vamp:identifier "gradientlimit" ;
Chris@164 169 dc:title "Gradient limit" ;
Chris@164 170 dc:format "" ;
Chris@164 171 vamp:min_value 1 ;
Chris@164 172 vamp:max_value 10 ;
Chris@164 173 vamp:unit "" ;
Chris@164 174 vamp:quantize_step 1 ;
Chris@164 175 vamp:default_value 3 ;
Chris@164 176 vamp:value_names ();
Chris@164 177 .
Chris@164 178 plugbase:match_param_zonewidth a vamp:QuantizedParameter ;
Chris@164 179 vamp:identifier "zonewidth" ;
Chris@164 180 dc:title "Search zone width" ;
Chris@164 181 dc:format "s" ;
Chris@164 182 vamp:min_value 1 ;
Chris@164 183 vamp:max_value 60 ;
Chris@164 184 vamp:unit "s" ;
Chris@164 185 vamp:quantize_step 1 ;
Chris@164 186 vamp:default_value 10 ;
Chris@164 187 vamp:value_names ();
Chris@164 188 .
Chris@164 189 plugbase:match_param_diagonalweight a vamp:Parameter ;
Chris@164 190 vamp:identifier "diagonalweight" ;
Chris@164 191 dc:title "Diagonal weight" ;
Chris@164 192 dc:format "" ;
Chris@164 193 vamp:min_value 1 ;
Chris@164 194 vamp:max_value 2 ;
Chris@164 195 vamp:unit "" ;
Chris@164 196 vamp:default_value 2 ;
Chris@164 197 vamp:value_names ();
Chris@164 198 .
Chris@164 199 plugbase:match_param_smooth a vamp:QuantizedParameter ;
Chris@164 200 vamp:identifier "smooth" ;
Chris@164 201 dc:title "Use path smoothing" ;
Chris@164 202 dc:format "" ;
Chris@164 203 vamp:min_value 0 ;
Chris@164 204 vamp:max_value 1 ;
Chris@164 205 vamp:unit "" ;
Chris@164 206 vamp:quantize_step 1 ;
Chris@164 207 vamp:default_value 0 ;
Chris@164 208 vamp:value_names ();
Chris@8 209 .
Chris@8 210 plugbase:match_param_serialise a vamp:QuantizedParameter ;
Chris@8 211 vamp:identifier "serialise" ;
Chris@164 212 dc:title "Serialise plugin invocations" ;
Chris@8 213 dc:format "" ;
Chris@8 214 vamp:min_value 0 ;
Chris@8 215 vamp:max_value 1 ;
Chris@8 216 vamp:unit "" ;
Chris@8 217 vamp:quantize_step 1 ;
Chris@8 218 vamp:default_value 0 ;
Chris@8 219 vamp:value_names ();
Chris@8 220 .
Chris@8 221 plugbase:match_output_path a vamp:SparseOutput ;
Chris@8 222 vamp:identifier "path" ;
Chris@8 223 dc:title "Path" ;
Chris@164 224 dc:description """Alignment path""" ;
Chris@8 225 vamp:fixed_bin_count "true" ;
Chris@8 226 vamp:unit "" ;
Chris@8 227 a vamp:QuantizedOutput ;
Chris@8 228 vamp:quantize_step 1 ;
Chris@8 229 vamp:bin_count 1 ;
Chris@8 230 vamp:sample_type vamp:VariableSampleRate ;
Chris@8 231 vamp:sample_rate 50 ;
Chris@8 232 # vamp:computes_event_type <Place event type URI here and uncomment> ;
Chris@8 233 # vamp:computes_feature <Place feature attribute URI here and uncomment> ;
Chris@8 234 # vamp:computes_signal_type <Place signal type URI here and uncomment> ;
Chris@8 235 .
Chris@8 236 plugbase:match_output_a_b a vamp:SparseOutput ;
Chris@8 237 vamp:identifier "a_b" ;
Chris@8 238 dc:title "A-B Timeline" ;
Chris@164 239 dc:description """Timing in performance B corresponding to moments in performance A""" ;
Chris@8 240 vamp:fixed_bin_count "true" ;
Chris@8 241 vamp:unit "sec" ;
Chris@8 242 vamp:bin_count 1 ;
Chris@8 243 vamp:sample_type vamp:VariableSampleRate ;
Chris@8 244 vamp:sample_rate 50 ;
Chris@8 245 # vamp:computes_event_type <Place event type URI here and uncomment> ;
Chris@8 246 # vamp:computes_feature <Place feature attribute URI here and uncomment> ;
Chris@8 247 # vamp:computes_signal_type <Place signal type URI here and uncomment> ;
Chris@8 248 .
Chris@8 249 plugbase:match_output_b_a a vamp:SparseOutput ;
Chris@8 250 vamp:identifier "b_a" ;
Chris@8 251 dc:title "B-A Timeline" ;
Chris@164 252 dc:description """Timing in performance A corresponding to moments in performance B""" ;
Chris@8 253 vamp:fixed_bin_count "true" ;
Chris@8 254 vamp:unit "sec" ;
Chris@8 255 vamp:bin_count 1 ;
Chris@8 256 vamp:sample_type vamp:VariableSampleRate ;
Chris@8 257 vamp:sample_rate 50 ;
Chris@8 258 # vamp:computes_event_type <Place event type URI here and uncomment> ;
Chris@8 259 # vamp:computes_feature <Place feature attribute URI here and uncomment> ;
Chris@8 260 # vamp:computes_signal_type <Place signal type URI here and uncomment> ;
Chris@8 261 .
Chris@8 262 plugbase:match_output_a_b_divergence a vamp:SparseOutput ;
Chris@8 263 vamp:identifier "a_b_divergence" ;
Chris@8 264 dc:title "A-B Divergence" ;
Chris@164 265 dc:description """Difference between timings in performances A and B""" ;
Chris@8 266 vamp:fixed_bin_count "true" ;
Chris@8 267 vamp:unit "sec" ;
Chris@8 268 vamp:bin_count 1 ;
Chris@8 269 vamp:sample_type vamp:VariableSampleRate ;
Chris@8 270 vamp:sample_rate 50 ;
Chris@8 271 # vamp:computes_event_type <Place event type URI here and uncomment> ;
Chris@8 272 # vamp:computes_feature <Place feature attribute URI here and uncomment> ;
Chris@8 273 # vamp:computes_signal_type <Place signal type URI here and uncomment> ;
Chris@8 274 .
Chris@8 275 plugbase:match_output_a_b_temporatio a vamp:SparseOutput ;
Chris@8 276 vamp:identifier "a_b_temporatio" ;
Chris@8 277 dc:title "A-B Tempo Ratio" ;
Chris@164 278 dc:description """Ratio of tempi between performances A and B""" ;
Chris@8 279 vamp:fixed_bin_count "true" ;
Chris@8 280 vamp:unit "" ;
Chris@8 281 vamp:bin_count 1 ;
Chris@8 282 vamp:sample_type vamp:VariableSampleRate ;
Chris@8 283 vamp:sample_rate 50 ;
Chris@8 284 # vamp:computes_event_type <Place event type URI here and uncomment> ;
Chris@8 285 # vamp:computes_feature <Place feature attribute URI here and uncomment> ;
Chris@8 286 # vamp:computes_signal_type <Place signal type URI here and uncomment> ;
Chris@8 287 .
Chris@164 288 plugbase:match_output_a_features a vamp:DenseOutput ;
Chris@164 289 vamp:identifier "a_features" ;
Chris@164 290 dc:title "Raw A Features" ;
Chris@164 291 dc:description """Spectral features extracted from performance A""" ;
Chris@164 292 vamp:fixed_bin_count "true" ;
Chris@164 293 vamp:unit "" ;
Chris@164 294 vamp:bin_count 84 ;
Chris@164 295 # vamp:computes_event_type <Place event type URI here and uncomment> ;
Chris@164 296 # vamp:computes_feature <Place feature attribute URI here and uncomment> ;
Chris@164 297 # vamp:computes_signal_type <Place signal type URI here and uncomment> ;
Chris@164 298 .
Chris@164 299 plugbase:match_output_b_features a vamp:DenseOutput ;
Chris@164 300 vamp:identifier "b_features" ;
Chris@164 301 dc:title "Raw B Features" ;
Chris@164 302 dc:description """Spectral features extracted from performance B""" ;
Chris@164 303 vamp:fixed_bin_count "true" ;
Chris@164 304 vamp:unit "" ;
Chris@164 305 vamp:bin_count 84 ;
Chris@164 306 # vamp:computes_event_type <Place event type URI here and uncomment> ;
Chris@164 307 # vamp:computes_feature <Place feature attribute URI here and uncomment> ;
Chris@164 308 # vamp:computes_signal_type <Place signal type URI here and uncomment> ;
Chris@164 309 .
Chris@164 310 plugbase:match_output_a_cfeatures a vamp:DenseOutput ;
Chris@164 311 vamp:identifier "a_cfeatures" ;
Chris@164 312 dc:title "Conditioned A Features" ;
Chris@164 313 dc:description """Spectral features extracted from performance A, after normalisation and conditioning""" ;
Chris@164 314 vamp:fixed_bin_count "true" ;
Chris@164 315 vamp:unit "" ;
Chris@164 316 vamp:bin_count 84 ;
Chris@164 317 # vamp:computes_event_type <Place event type URI here and uncomment> ;
Chris@164 318 # vamp:computes_feature <Place feature attribute URI here and uncomment> ;
Chris@164 319 # vamp:computes_signal_type <Place signal type URI here and uncomment> ;
Chris@164 320 .
Chris@164 321 plugbase:match_output_b_cfeatures a vamp:DenseOutput ;
Chris@164 322 vamp:identifier "b_cfeatures" ;
Chris@164 323 dc:title "Conditioned B Features" ;
Chris@164 324 dc:description """Spectral features extracted from performance B, after norrmalisation and conditioning""" ;
Chris@164 325 vamp:fixed_bin_count "true" ;
Chris@164 326 vamp:unit "" ;
Chris@164 327 vamp:bin_count 84 ;
Chris@164 328 # vamp:computes_event_type <Place event type URI here and uncomment> ;
Chris@164 329 # vamp:computes_feature <Place feature attribute URI here and uncomment> ;
Chris@164 330 # vamp:computes_signal_type <Place signal type URI here and uncomment> ;
Chris@164 331 .
Chris@164 332 plugbase:match_output_overall_cost a vamp:DenseOutput ;
Chris@164 333 vamp:identifier "overall_cost" ;
Chris@164 334 dc:title "Overall Cost" ;
Chris@164 335 dc:description """Normalised overall path cost for the cheapest path""" ;
Chris@164 336 vamp:fixed_bin_count "true" ;
Chris@164 337 vamp:unit "" ;
Chris@164 338 vamp:bin_count 1 ;
Chris@164 339 # vamp:computes_event_type <Place event type URI here and uncomment> ;
Chris@164 340 # vamp:computes_feature <Place feature attribute URI here and uncomment> ;
Chris@164 341 # vamp:computes_signal_type <Place signal type URI here and uncomment> ;
Chris@164 342 .
Chris@8 343