Mercurial > hg > sonic-annotator
comparison runner/MIDIFeatureWriter.cpp @ 197:3b7ec45abd1c
Add mandatory option --json-format to JSON feature writer, in preparation for supporting multiple JSON formats (perhaps) in future
author | Chris Cannam |
---|---|
date | Tue, 01 Sep 2015 17:05:32 +0100 |
parents | 082c3f21f49e |
children | ef03350baec7 |
comparison
equal
deleted
inserted
replaced
196:082c3f21f49e | 197:3b7ec45abd1c |
---|---|
37 } | 37 } |
38 | 38 |
39 string | 39 string |
40 MIDIFeatureWriter::getDescription() const | 40 MIDIFeatureWriter::getDescription() const |
41 { | 41 { |
42 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 simply be rounded to the nearest integer and written directly. Multiple (up to 16) transforms can be written to a single MIDI file, where they will be given separate MIDI channel numbers."; | 42 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 simply be rounded to the nearest integer and written directly. (Be aware that MIDI cannot represent overlapping notes of equal pitch, so features with durations may be misrepresented if they do not have distinct enough values.) Multiple (up to 16) transforms can be written to a single MIDI file, where they will be given separate MIDI channel numbers."; |
43 } | 43 } |
44 | 44 |
45 MIDIFeatureWriter::ParameterList | 45 MIDIFeatureWriter::ParameterList |
46 MIDIFeatureWriter::getSupportedParameters() const | 46 MIDIFeatureWriter::getSupportedParameters() const |
47 { | 47 { |