From 2f30d763edafb1075c9f07f8bedf3af9d3adc13e Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sun, 27 Nov 2016 17:25:42 +0100 Subject: [PATCH] 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. --- libs/ardour/event_type_map.cc | 4 ++-- libs/evoral/src/Sequence.cpp | 14 ++++++++++++++ 2 files changed, 16 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; 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