diff options
author | Robin Gareus <robin@gareus.org> | 2016-11-27 17:25:42 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-11-27 17:25:42 +0100 |
commit | 2f30d763edafb1075c9f07f8bedf3af9d3adc13e (patch) | |
tree | 0ef6ba4695e4af2a66911a821b5dd8a0952a5cf4 /libs/ardour | |
parent | 9bf4f339b945b519e72de9370d8a542a51458d39 (diff) |
Fix loading, recording & saving MIDI with PolyKeyPressure events.
GUI still does not handle this (neither automation lane, nor List Editor),
but the file loads, plays and exports correctly.
Diffstat (limited to 'libs/ardour')
-rw-r--r-- | libs/ardour/event_type_map.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/ardour/event_type_map.cc b/libs/ardour/event_type_map.cc index 0b62d4a54b..87fe4bc6e1 100644 --- a/libs/ardour/event_type_map.cc +++ b/libs/ardour/event_type_map.cc @@ -115,7 +115,7 @@ EventTypeMap::interpolation_of(const Evoral::Parameter& param) break; case MidiPgmChangeAutomation: return Evoral::ControlList::Discrete; break; case MidiChannelPressureAutomation: return Evoral::ControlList::Linear; break; - case MidiNotePressureAutomation: return Evoral::ControlList::Linear; break; + case MidiNotePressureAutomation: return Evoral::ControlList::Linear; break; case MidiPitchBenderAutomation: return Evoral::ControlList::Linear; break; default: assert(false); } @@ -258,7 +258,7 @@ EventTypeMap::to_symbol(const Evoral::Parameter& param) const return string_compose("midi-pitch-bender-%1", int(param.channel())); } else if (t == MidiChannelPressureAutomation) { return string_compose("midi-channel-pressure-%1", int(param.channel())); - } else if (t == MidiChannelPressureAutomation) { + } else if (t == MidiNotePressureAutomation) { return string_compose("midi-note-pressure-%1-%2", int(param.channel()), param.id()); } else { PBD::warning << "Uninitialized Parameter symbol() called." << endmsg; |