Mercurial > hg > nnls-chroma
changeset 71:b8ffc98eda95 matthiasm-plugin
tuning now has a duration (whole song duration), but I cant get SV to display it as regions layer.
author | Matthias Mauch <mail@matthiasmauch.net> |
---|---|
date | Wed, 27 Oct 2010 21:47:37 +0900 |
parents | b0cb793eab7d |
children | 3ef99d22ec6b |
files | Tuning.cpp nnls-chroma.n3 |
diffstat | 2 files changed, 6 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/Tuning.cpp Tue Oct 26 22:41:26 2010 +0900 +++ b/Tuning.cpp Wed Oct 27 21:47:37 2010 +0900 @@ -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 Tue Oct 26 22:41:26 2010 +0900 +++ b/nnls-chroma.n3 Wed Oct 27 21:47:37 2010 +0900 @@ -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" ;