Mercurial > hg > sonic-annotator
changeset 19:bd1deebe1129
* Set track metadata only if non-empty (the RDF feature writer tests for
existence rather than non-emptiness when determining whether to write
a track)
author | Chris Cannam |
---|---|
date | Tue, 02 Jun 2009 09:48:04 +0000 |
parents | 4eab258f3505 |
children | 7d87bf308509 |
files | runner/FeatureExtractionManager.cpp tests/expected/transforms-summaries-percussiononsets-from-rdf.n3 |
diffstat | 2 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/runner/FeatureExtractionManager.cpp Fri Mar 27 16:52:28 2009 +0000 +++ b/runner/FeatureExtractionManager.cpp Tue Jun 02 09:48:04 2009 +0000 @@ -516,7 +516,9 @@ FeatureWriter::TrackMetadata m; m.title = reader->getTitle(); m.maker = reader->getMaker(); - writers[j]->setTrackMetadata(audioSource, m); + if (m.title != "" && m.maker != "") { + writers[j]->setTrackMetadata(audioSource, m); + } } } }
--- a/tests/expected/transforms-summaries-percussiononsets-from-rdf.n3 Fri Mar 27 16:52:28 2009 +0000 +++ b/tests/expected/transforms-summaries-percussiononsets-from-rdf.n3 Tue Jun 02 09:48:04 2009 +0000 @@ -17,6 +17,7 @@ vamp:step_size "512"^^xsd:int ; a vamp:Transform . + mo:encodes :signal_1 ; a mo:AudioFile . :signal_1 @@ -26,6 +27,9 @@ ] ; a mo:Signal . +:signal_timeline_1 + a tl:Timeline . + :event_2 event:time [ tl:at "PT0.777868480S"^^xsd:duration ;