diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-08-18 09:44:20 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-08-19 08:32:44 -0400 |
commit | d6691a80e97ba6edf0d324f24a64cae581575a95 (patch) | |
tree | 9f0cddbda3586606ba3633ca04c38784becc17a6 /libs/evoral/src/Sequence.cpp | |
parent | c229e31720013e5147efe2929204faee476bfe2d (diff) |
attempt to handle poly-pressure (polyphonic aftertouch) similarly to other MIDI messages
Diffstat (limited to 'libs/evoral/src/Sequence.cpp')
-rw-r--r-- | libs/evoral/src/Sequence.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/evoral/src/Sequence.cpp b/libs/evoral/src/Sequence.cpp index 19a0fb1409..c578a9ebec 100644 --- a/libs/evoral/src/Sequence.cpp +++ b/libs/evoral/src/Sequence.cpp @@ -933,6 +933,8 @@ Sequence<Time>::append(const Event<Time>& event, event_id_t evid) ev.time(), double ((0x7F & ev.pitch_bender_msb()) << 7 | (0x7F & ev.pitch_bender_lsb())), evid); + } else if (ev.is_poly_pressure()) { + append_control_unlocked (Parameter (ev.event_type(), ev.channel(), ev.poly_note()), ev.time(), ev.poly_pressure(), evid); } else if (ev.is_channel_pressure()) { append_control_unlocked( Parameter(ev.event_type(), ev.channel()), |