* Update along with latest Vamp API change
[vamp-aubio-plugins.git] / plugins / Onset.cpp
index 3771af1..d475b11 100644 (file)
@@ -48,18 +48,24 @@ Onset::~Onset()
 }
 
 string
-Onset::getName() const
+Onset::getIdentifier() const
 {
     return "aubioonset";
 }
 
 string
-Onset::getDescription() const
+Onset::getName() const
 {
     return "Aubio Onset Detector";
 }
 
 string
+Onset::getDescription() const
+{
+    return "Estimate note onset times";
+}
+
+string
 Onset::getMaker() const
 {
     return "Paul Brossier (plugin by Chris Cannam)";
@@ -123,8 +129,8 @@ Onset::getParameterDescriptors() const
     ParameterList list;
     
     ParameterDescriptor desc;
-    desc.name = "onsettype";
-    desc.description = "Onset Detection Function Type";
+    desc.identifier = "onsettype";
+    desc.name = "Onset Detection Function Type";
     desc.minValue = 0;
     desc.maxValue = 6;
     desc.defaultValue = (int)aubio_onset_complex;
@@ -140,8 +146,8 @@ Onset::getParameterDescriptors() const
     list.push_back(desc);
 
     desc = ParameterDescriptor();
-    desc.name = "peakpickthreshold";
-    desc.description = "Peak Picker Threshold";
+    desc.identifier = "peakpickthreshold";
+    desc.name = "Peak Picker Threshold";
     desc.minValue = 0;
     desc.maxValue = 1;
     desc.defaultValue = 0.3;
@@ -149,8 +155,8 @@ Onset::getParameterDescriptors() const
     list.push_back(desc);
 
     desc = ParameterDescriptor();
-    desc.name = "silencethreshold";
-    desc.description = "Silence Threshold";
+    desc.identifier = "silencethreshold";
+    desc.name = "Silence Threshold";
     desc.minValue = -120;
     desc.maxValue = 0;
     desc.defaultValue = -90;
@@ -201,9 +207,9 @@ Onset::getOutputDescriptors() const
     OutputList list;
 
     OutputDescriptor d;
-    d.name = "onsets";
+    d.identifier = "onsets";
+    d.name = "Onsets";
     d.unit = "";
-    d.description = "Onsets";
     d.hasFixedBinCount = true;
     d.binCount = 0;
     d.sampleType = OutputDescriptor::VariableSampleRate;
@@ -211,9 +217,9 @@ Onset::getOutputDescriptors() const
     list.push_back(d);
 
     d = OutputDescriptor();
-    d.name = "detectionfunction";
+    d.identifier = "detectionfunction";
+    d.name = "Onset Detection Function";
     d.unit = "";
-    d.description = "Onset Detection Function";
     d.hasFixedBinCount = true;
     d.binCount = m_channelCount;
     d.hasKnownExtents = false;
@@ -225,7 +231,8 @@ Onset::getOutputDescriptors() const
 }
 
 Onset::FeatureSet
-Onset::process(float **inputBuffers, Vamp::RealTime timestamp)
+Onset::process(const float *const *inputBuffers,
+               Vamp::RealTime timestamp)
 {
     for (size_t i = 0; i < m_stepSize; ++i) {
         for (size_t j = 0; j < m_channelCount; ++j) {