# HG changeset patch # User Chris Cannam # Date 1500302764 -3600 # Node ID aaf8fa1cde19b7e4143eb478a5f7363e717794f2 # Parent 9cbe413a6045c74c4b2dafd6bcd075133e397e7f Metadata diff -r 9cbe413a6045 -r aaf8fa1cde19 .hgignore --- /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 diff -r 9cbe413a6045 -r aaf8fa1cde19 src/TuningDifference.cpp --- 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 diff -r 9cbe413a6045 -r aaf8fa1cde19 tuning-difference.cat --- /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 diff -r 9cbe413a6045 -r aaf8fa1cde19 tuning-difference.n3 --- /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: . +@prefix xsd: . +@prefix vamp: . +@prefix plugbase: . +@prefix owl: . +@prefix dc: . +@prefix af: . +@prefix foaf: . +@prefix doap: . +@prefix cc: . +@prefix : <#> . + + +## Properties of this document + +<> a vamp:PluginDescription ; + foaf:maker ; + foaf:primaryTopic . + + +## Maker of the whole plugin library + +:library_maker + foaf:name "Chris Cannam" ; + foaf:logo ; + foaf:page . + +## 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 ; + doap:download-page ; + . + + +## 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 ; +# vamp:computes_feature ; +# vamp:computes_signal_type ; + . +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 ; +# vamp:computes_feature ; +# vamp:computes_signal_type ; + . +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 ; +# vamp:computes_feature ; +# vamp:computes_signal_type ; + . +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 ; +# vamp:computes_feature ; +# vamp:computes_signal_type ; + . +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 ; +# vamp:computes_feature ; +# vamp:computes_signal_type ; + . +