comparison 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
comparison
equal deleted inserted replaced
143:ad425b9096bd 144:b3d73c08b6ce
30 { 30 {
31 } 31 }
32 32
33 MIDIFeatureWriter::~MIDIFeatureWriter() 33 MIDIFeatureWriter::~MIDIFeatureWriter()
34 { 34 {
35 }
36
37 string
38 MIDIFeatureWriter::getDescription() const
39 {
40 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.";
35 } 41 }
36 42
37 MIDIFeatureWriter::ParameterList 43 MIDIFeatureWriter::ParameterList
38 MIDIFeatureWriter::getSupportedParameters() const 44 MIDIFeatureWriter::getSupportedParameters() const
39 { 45 {