Fix MIDI Aftertouch (import, record and play) in the backend

This commit is contained in:
Robin Gareus 2019-04-02 15:35:57 +02:00
parent 8f5e5c4c60
commit 6f95dfdc31
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -949,7 +949,8 @@ Sequence<Time>::append(const Event<Time>& ev, event_id_t evid)
| (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);
const ParameterType ptype = _type_map.midi_parameter_type(ev.buffer(), ev.size());
append_control_unlocked (Parameter (ptype, ev.channel(), ev.poly_note()), ev.time(), ev.poly_pressure(), evid);
} else if (ev.is_channel_pressure()) {
const ParameterType ptype = _type_map.midi_parameter_type(ev.buffer(), ev.size());
append_control_unlocked(