Mercurial > hg > sonic-annotator
comparison runner/FeatureExtractionManager.cpp @ 131:0b431a9c5498
Remove some debug out
author | Chris Cannam |
---|---|
date | Fri, 10 Oct 2014 15:33:45 +0100 |
parents | 65dabaebe604 |
children | ee56e3e9eeb5 |
comparison
equal
deleted
inserted
replaced
130:65dabaebe604 | 131:0b431a9c5498 |
---|---|
672 earliestStartFrame = startFrame; | 672 earliestStartFrame = startFrame; |
673 } | 673 } |
674 if (!haveExtents || startFrame + duration > latestEndFrame) { | 674 if (!haveExtents || startFrame + duration > latestEndFrame) { |
675 latestEndFrame = startFrame + duration; | 675 latestEndFrame = startFrame + duration; |
676 } | 676 } |
677 | 677 /* |
678 cerr << "startFrame for transform " << startFrame << endl; | 678 cerr << "startFrame for transform " << startFrame << endl; |
679 cerr << "duration for transform " << duration << endl; | 679 cerr << "duration for transform " << duration << endl; |
680 cerr << "earliestStartFrame becomes " << earliestStartFrame << endl; | 680 cerr << "earliestStartFrame becomes " << earliestStartFrame << endl; |
681 cerr << "latestEndFrame becomes " << latestEndFrame << endl; | 681 cerr << "latestEndFrame becomes " << latestEndFrame << endl; |
682 | 682 */ |
683 haveExtents = true; | 683 haveExtents = true; |
684 | 684 |
685 string outputId = transform.getOutput().toStdString(); | 685 string outputId = transform.getOutput().toStdString(); |
686 if (m_pluginOutputs[plugin].find(outputId) == | 686 if (m_pluginOutputs[plugin].find(outputId) == |
687 m_pluginOutputs[plugin].end()) { | 687 m_pluginOutputs[plugin].end()) { |
797 bool inRange = false; | 797 bool inRange = false; |
798 for (TransformWriterMap::const_iterator ti = pi->second.begin(); | 798 for (TransformWriterMap::const_iterator ti = pi->second.begin(); |
799 ti != pi->second.end(); ++ti) { | 799 ti != pi->second.end(); ++ti) { |
800 int startFrame = RealTime::realTime2Frame | 800 int startFrame = RealTime::realTime2Frame |
801 (ti->first.getStartTime(), m_sampleRate); | 801 (ti->first.getStartTime(), m_sampleRate); |
802 cerr << "plugin " << plugin << " transform " << &(ti->first) << " start frame " << startFrame << " my frame " << i << endl; | |
803 if (i >= startFrame || i + m_blockSize > startFrame) { | 802 if (i >= startFrame || i + m_blockSize > startFrame) { |
804 inRange = true; | 803 inRange = true; |
805 break; | 804 break; |
806 } | 805 } |
807 } | 806 } |
808 if (!inRange) { | 807 if (!inRange) { |
809 cerr << "not in range! plugging on" << endl; | |
810 continue; | 808 continue; |
811 } | 809 } |
812 | 810 |
813 Plugin::FeatureSet featureSet = plugin->process(data, timestamp); | 811 Plugin::FeatureSet featureSet = plugin->process(data, timestamp); |
814 | 812 |