Mercurial > hg > sonic-annotator
diff 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 |
line wrap: on
line diff
--- a/runner/FeatureExtractionManager.cpp Tue Nov 03 14:31:59 2015 +0000 +++ b/runner/FeatureExtractionManager.cpp Wed Nov 04 10:07:29 2015 +0000 @@ -744,9 +744,9 @@ FeatureWriter::TrackMetadata m; m.title = reader->getTitle(); m.maker = reader->getMaker(); - if (m.title != "" || m.maker != "") { - writers[j]->setTrackMetadata(audioSource, m); - } + m.duration = RealTime::frame2RealTime(reader->getFrameCount(), + reader->getSampleRate()); + writers[j]->setTrackMetadata(audioSource, m); } } }