comparison transform/FeatureExtractionModelTransformer.cpp @ 780:cf466a5d411e

Remove no-longer-used code
author Chris Cannam
date Wed, 27 Mar 2013 16:53:31 +0000
parents 15cd67fcbdad
children 05ba4bbd2b87 ed3779b2b4a8
comparison
equal deleted inserted replaced
779:15cd67fcbdad 780:cf466a5d411e
671 lrint(ts.toDouble() * m_descriptor->sampleRate); 671 lrint(ts.toDouble() * m_descriptor->sampleRate);
672 } 672 }
673 673
674 frame = lrintf((m_fixedRateFeatureNo / m_descriptor->sampleRate) 674 frame = lrintf((m_fixedRateFeatureNo / m_descriptor->sampleRate)
675 * inputRate); 675 * inputRate);
676 /* 676
677 if (feature.hasTimestamp) {
678 //!!! warning: sampleRate may be non-integral
679 frame = Vamp::RealTime::realTime2Frame(feature.timestamp,
680 //!!! see comment above when setting up modelResolution and modelRate
681 // lrintf(m_descriptor->sampleRate));
682 inputRate);
683 } else {
684 frame = m_output->getEndFrame();
685 }
686 */
687 std::cerr << "Feature hasTimestamp = " << feature.hasTimestamp << ", timestamp = " << feature.timestamp << ", frame works out to " << frame << std::endl; 677 std::cerr << "Feature hasTimestamp = " << feature.hasTimestamp << ", timestamp = " << feature.timestamp << ", frame works out to " << frame << std::endl;
688 678
689 } 679 }
690 680
691 // Rather than repeat the complicated tests from the constructor 681 // Rather than repeat the complicated tests from the constructor