From: Robin Gareus Date: Sun, 27 Nov 2016 16:25:42 +0000 (+0100) Subject: Fix loading, recording & saving MIDI with PolyKeyPressure events. X-Git-Tag: 5.5~35 X-Git-Url: https://main.carlh.net/gitweb/?p=ardour.git;a=commitdiff_plain;h=2f30d763edafb1075c9f07f8bedf3af9d3adc13e 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. --- 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; diff --git a/libs/evoral/src/Sequence.cpp b/libs/evoral/src/Sequence.cpp index 283ea009a3..1d518c3f07 100644 --- a/libs/evoral/src/Sequence.cpp +++ b/libs/evoral/src/Sequence.cpp @@ -337,6 +337,7 @@ Sequence