changeset 73:3ef99d22ec6b matthiasm-plugin

Merge
author Chris Cannam
date Thu, 28 Oct 2010 11:36:28 +0200
parents 45fc8c48af3b (current diff) b8ffc98eda95 (diff)
children b80144039d8f
files
diffstat 2 files changed, 6 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/Tuning.cpp	Thu Oct 28 09:15:35 2010 +0200
+++ b/Tuning.cpp	Thu Oct 28 11:36:28 2010 +0200
@@ -106,13 +106,13 @@
     d0.description = "Returns a single label (at time 0 seconds) containing an estimate of the concert pitch in Hz.";
     d0.unit = "Hz";
     d0.hasFixedBinCount = true;
-    d0.binCount = 0;
+    d0.binCount = 1;
     d0.hasKnownExtents = true;
     d0.minValue = 427.47;
     d0.maxValue = 452.89;
     d0.isQuantized = false;
     d0.sampleType = OutputDescriptor::VariableSampleRate;
-    d0.hasDuration = false;
+    d0.hasDuration = true;
     list.push_back(d0);
     m_outputTuning = index++;
 	
@@ -203,6 +203,8 @@
     f0.timestamp = Vamp::RealTime::frame2RealTime(0, lrintf(m_inputSampleRate));
     f0.values.push_back(cumulativetuning);
     f0.label = buffer0;
+    f0.hasDuration = true;
+    f0.duration = m_logSpectrum[m_logSpectrum.size()-1].timestamp;
     fsOut[m_outputTuning].push_back(f0);  
 		    
     return fsOut;     
--- a/nnls-chroma.n3	Thu Oct 28 09:15:35 2010 +0200
+++ b/nnls-chroma.n3	Thu Oct 28 11:36:28 2010 +0200
@@ -321,10 +321,10 @@
     a                 vamp:KnownExtentsOutput ;
     vamp:min_value    427.47  ;
     vamp:max_value    452.89  ;
-    vamp:bin_count        0 ;
+    vamp:bin_count        1 ;
     vamp:sample_type      vamp:VariableSampleRate ;
     vamp:sample_rate      2.38221e-44 ;
-    vamp:computes_event_type   af:MusicSegment;
+    vamp:computes_event_type   af:Segment;
     .
 plugbase:tuning_output_localtuning a  vamp:DenseOutput ;
     vamp:identifier       "localtuning" ;