diff transform/CSVFeatureWriter.cpp @ 998:e25dc8d57565

Add descriptions for writers; add housekeeping options to Sonic Annotator to list writers and formats
author Chris Cannam
date Mon, 13 Oct 2014 14:44:51 +0100
parents 2104ea2204d2
children ec6e69373997
line wrap: on
line diff
--- a/transform/CSVFeatureWriter.cpp	Mon Oct 13 10:56:16 2014 +0100
+++ b/transform/CSVFeatureWriter.cpp	Mon Oct 13 14:44:51 2014 +0100
@@ -41,6 +41,12 @@
 {
 }
 
+string
+CSVFeatureWriter::getDescription() const
+{
+    return "Write features in comma-separated (CSV) format. If transforms are being written to a single file or to stdout, the first column in the output will contain the input audio filename, or an empty string if the feature hails from the same audio file as its predecessor. If transforms are being written to multiple files, the audio filename column will be omitted. Subsequent columns will contain the feature timestamp, then any or all of duration, values, and label.";
+}
+
 CSVFeatureWriter::ParameterList
 CSVFeatureWriter::getSupportedParameters() const
 {