diff runner/MIDIFeatureWriter.cpp @ 144:b3d73c08b6ce

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 d7a91e07ca57
children 3921e0c1f4dd 1a6eab755c81
line wrap: on
line diff
--- a/runner/MIDIFeatureWriter.cpp	Mon Oct 13 13:53:09 2014 +0100
+++ b/runner/MIDIFeatureWriter.cpp	Mon Oct 13 14:44:51 2014 +0100
@@ -34,6 +34,12 @@
 {
 }
 
+string
+MIDIFeatureWriter::getDescription() const
+{
+    return "Write features to MIDI files. All features are written as MIDI notes. If a feature has at least one value, its first value will be used as the note pitch, the second value (if present) for velocity. If a feature has units of Hz, then its pitch will be converted from frequency to an integer value in MIDI range, otherwise it will be written directly. Multiple (up to 16) transforms can be written to a single MIDI file, where they will be given separate MIDI channel numbers.";
+}
+
 MIDIFeatureWriter::ParameterList
 MIDIFeatureWriter::getSupportedParameters() const
 {