Mercurial > hg > sonic-annotator
comparison runner/FeatureExtractionManager.cpp @ 208:c17b184c16db
Update JAMS output to JAMS v0.2.0. We now (for the first time?!) write actual JAMS schema-compliant output when possible, though it isn't possible for many types of plugin. The output for all tested combinations of transforms is valid JSON even where it isn't schema-compliant.
author | Chris Cannam |
---|---|
date | Wed, 04 Nov 2015 10:07:29 +0000 |
parents | 08d492f861e9 |
children | d0fe861bb116 |
comparison
equal
deleted
inserted
replaced
207:e8f2f530c091 | 208:c17b184c16db |
---|---|
742 | 742 |
743 for (int j = 0; j < (int)writers.size(); ++j) { | 743 for (int j = 0; j < (int)writers.size(); ++j) { |
744 FeatureWriter::TrackMetadata m; | 744 FeatureWriter::TrackMetadata m; |
745 m.title = reader->getTitle(); | 745 m.title = reader->getTitle(); |
746 m.maker = reader->getMaker(); | 746 m.maker = reader->getMaker(); |
747 if (m.title != "" || m.maker != "") { | 747 m.duration = RealTime::frame2RealTime(reader->getFrameCount(), |
748 writers[j]->setTrackMetadata(audioSource, m); | 748 reader->getSampleRate()); |
749 } | 749 writers[j]->setTrackMetadata(audioSource, m); |
750 } | 750 } |
751 } | 751 } |
752 } | 752 } |
753 | 753 |
754 ProgressPrinter extractionProgress("Extracting and writing features..."); | 754 ProgressPrinter extractionProgress("Extracting and writing features..."); |