changeset 41:aaf8fa1cde19

Metadata
author Chris Cannam
date Mon, 17 Jul 2017 15:46:04 +0100
parents 9cbe413a6045
children 475571f398fe
files .hgignore src/TuningDifference.cpp tuning-difference.cat tuning-difference.n3
diffstat 4 files changed, 140 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/.hgignore	Mon Jul 17 15:46:04 2017 +0100
@@ -0,0 +1,8 @@
+syntax: glob
+*.o
+*.so
+*.dll
+*.dylib
+*~
+*.bak
+*.orig
--- a/src/TuningDifference.cpp	Mon Jul 17 15:35:03 2017 +0100
+++ b/src/TuningDifference.cpp	Mon Jul 17 15:46:04 2017 +0100
@@ -67,14 +67,14 @@
 TuningDifference::getDescription() const
 {
     // Return something helpful here!
-    return "";
+    return "Estimate the tuning frequency of a recording, by comparing it to another recording of the same music whose tuning frequency is known";
 }
 
 string
 TuningDifference::getMaker() const
 {
     // Your name here
-    return "";
+    return "Chris Cannam";
 }
 
 int
@@ -92,7 +92,7 @@
     // need to say who made the plugin -- getMaker does that -- but it
     // should indicate the terms under which it is distributed.  For
     // example, "Copyright (year). All Rights Reserved", or "GPL"
-    return "";
+    return "GPL";
 }
 
 TuningDifference::InputDomain
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tuning-difference.cat	Mon Jul 17 15:46:04 2017 +0100
@@ -0,0 +1,1 @@
+vamp:tuning-difference:tuning-difference::Key and Tonality
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tuning-difference.n3	Mon Jul 17 15:46:04 2017 +0100
@@ -0,0 +1,128 @@
+@prefix rdfs:     <http://www.w3.org/2000/01/rdf-schema#> .
+@prefix xsd:      <http://www.w3.org/2001/XMLSchema#> .
+@prefix vamp:     <http://purl.org/ontology/vamp/> .
+@prefix plugbase: <http://vamp-plugins.org/rdf/plugins/tuning-difference#> .
+@prefix owl:      <http://www.w3.org/2002/07/owl#> .
+@prefix dc:       <http://purl.org/dc/elements/1.1/> .
+@prefix af:       <http://purl.org/ontology/af/> .
+@prefix foaf:     <http://xmlns.com/foaf/0.1/> .
+@prefix doap:     <http://usefulinc.com/ns/doap#> .
+@prefix cc:       <http://web.resource.org/cc/> .
+@prefix :         <#> .
+
+
+## Properties of this document
+
+<> a vamp:PluginDescription ;
+    foaf:maker         <http://vamp-plugins.org/rdf/template-generator> ;
+    foaf:primaryTopic  <http://vamp-plugins.org/rdf/plugins/tuning-difference> .
+
+
+## Maker of the whole plugin library
+
+:library_maker
+    foaf:name  "Chris Cannam" ;
+    foaf:logo <http://vamp-plugins.org/rdf/plugins/makers/qm.png> ;
+    foaf:page <http://c4dm.eecs.qmul.ac.uk/> .
+
+## Properties of the plugin library, and references to the plugins it contains
+
+plugbase:library a vamp:PluginLibrary ;
+    vamp:identifier        "tuning-difference" ;
+    foaf:maker             :library_maker ; 
+    vamp:available_plugin  plugbase:tuning-difference ; 
+    dc:title               "Tuning Difference" ;
+    dc:description         "Estimate the tuning frequency of a recording, by comparing it to another recording of the same music whose tuning frequency is known" ;
+    foaf:page              <http://code.soundsoftware.ac.uk/projects/tuning-difference> ;
+    doap:download-page     <http://code.soundsoftware.ac.uk/projects/tuning-difference> ;
+    .
+
+
+## Properties of the Tuning Difference plugin
+
+plugbase:tuning-difference a vamp:Plugin ;
+    dc:title              "Tuning Difference" ;
+    vamp:name             "Tuning Difference" ;
+    dc:description        """Estimate the tuning frequency of a recording, by comparing it to another recording of the same music whose tuning frequency is known""" ;
+    foaf:maker            :library_maker ;
+    dc:rights             """GPL""" ;
+    vamp:identifier       "tuning-difference" ;
+    vamp:vamp_API_version vamp:api_version_2 ;
+    owl:versionInfo       "1" ;
+    vamp:input_domain     vamp:TimeDomain ;
+    vamp:parameter   plugbase:tuning-difference_param_maxduration ;
+
+    vamp:output      plugbase:tuning-difference_output_cents ;
+    vamp:output      plugbase:tuning-difference_output_tuningfreq ;
+    vamp:output      plugbase:tuning-difference_output_reffeature ;
+    vamp:output      plugbase:tuning-difference_output_otherfeature ;
+    vamp:output      plugbase:tuning-difference_output_rotfeature ;
+    .
+plugbase:tuning-difference_param_maxduration a  vamp:Parameter ;
+    vamp:identifier     "maxduration" ;
+    dc:title            "Maximum duration to analyse" ;
+    dc:format           "s" ;
+    vamp:min_value       0 ;
+    vamp:max_value       3600 ;
+    vamp:unit           "s"  ;
+    vamp:default_value   0 ;
+    vamp:value_names     ();
+    .
+plugbase:tuning-difference_output_cents a  vamp:SparseOutput ;
+    vamp:identifier       "cents" ;
+    dc:title              "Tuning Difference" ;
+    dc:description        """Difference in averaged frequency profile between channels 1 and 2, in cents. A positive value means channel 2 is higher."""  ;
+    vamp:fixed_bin_count  "true" ;
+    vamp:unit             "cents" ;
+    vamp:bin_count        1 ;
+    vamp:sample_type      vamp:VariableSampleRate ;
+#   vamp:computes_event_type   <Place event type URI here and uncomment> ;
+#   vamp:computes_feature      <Place feature attribute URI here and uncomment> ;
+#   vamp:computes_signal_type  <Place signal type URI here and uncomment> ;
+    .
+plugbase:tuning-difference_output_tuningfreq a  vamp:SparseOutput ;
+    vamp:identifier       "tuningfreq" ;
+    dc:title              "Relative Tuning Frequency" ;
+    dc:description        """Tuning frequency of channel 2, if channel 1 is assumed to contain the same music as it at a tuning frequency of A=440Hz."""  ;
+    vamp:fixed_bin_count  "true" ;
+    vamp:unit             "hz" ;
+    vamp:bin_count        1 ;
+    vamp:sample_type      vamp:VariableSampleRate ;
+#   vamp:computes_event_type   <Place event type URI here and uncomment> ;
+#   vamp:computes_feature      <Place feature attribute URI here and uncomment> ;
+#   vamp:computes_signal_type  <Place signal type URI here and uncomment> ;
+    .
+plugbase:tuning-difference_output_reffeature a  vamp:DenseOutput ;
+    vamp:identifier       "reffeature" ;
+    dc:title              "Reference Feature" ;
+    dc:description        """Chroma feature from reference audio."""  ;
+    vamp:fixed_bin_count  "true" ;
+    vamp:unit             "" ;
+    vamp:bin_count        60 ;
+#   vamp:computes_event_type   <Place event type URI here and uncomment> ;
+#   vamp:computes_feature      <Place feature attribute URI here and uncomment> ;
+#   vamp:computes_signal_type  <Place signal type URI here and uncomment> ;
+    .
+plugbase:tuning-difference_output_otherfeature a  vamp:DenseOutput ;
+    vamp:identifier       "otherfeature" ;
+    dc:title              "Other Feature" ;
+    dc:description        """Chroma feature from other audio, before rotation."""  ;
+    vamp:fixed_bin_count  "true" ;
+    vamp:unit             "" ;
+    vamp:bin_count        60 ;
+#   vamp:computes_event_type   <Place event type URI here and uncomment> ;
+#   vamp:computes_feature      <Place feature attribute URI here and uncomment> ;
+#   vamp:computes_signal_type  <Place signal type URI here and uncomment> ;
+    .
+plugbase:tuning-difference_output_rotfeature a  vamp:DenseOutput ;
+    vamp:identifier       "rotfeature" ;
+    dc:title              "Other Feature at Rotated Frequency" ;
+    dc:description        """Chroma feature from reference audio calculated with the tuning frequency obtained from rotation matching."""  ;
+    vamp:fixed_bin_count  "true" ;
+    vamp:unit             "" ;
+    vamp:bin_count        60 ;
+#   vamp:computes_event_type   <Place event type URI here and uncomment> ;
+#   vamp:computes_feature      <Place feature attribute URI here and uncomment> ;
+#   vamp:computes_signal_type  <Place signal type URI here and uncomment> ;
+    .
+