# HG changeset patch # User Chris Cannam # Date 1243936084 0 # Node ID bd1deebe11294f196d5363ea8f5c3a7ba2bc1e27 # Parent 4eab258f3505beec52a5a9009fcf69e345045b2b * 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) diff -r 4eab258f3505 -r bd1deebe1129 runner/FeatureExtractionManager.cpp --- 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); + } } } } diff -r 4eab258f3505 -r bd1deebe1129 tests/expected/transforms-summaries-percussiononsets-from-rdf.n3 --- 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 ;