attempt to handle poly-pressure (polyphonic aftertouch) similarly to other MIDI messages

This commit is contained in:
Paul Davis 2016-08-18 09:44:20 -04:00
parent c229e31720
commit d6691a80e9
3 changed files with 7 additions and 3 deletions

View file

@ -338,6 +338,7 @@ SMF::append_event_delta(uint32_t delta_t, uint32_t size, const uint8_t* buf, eve
bool const store_id = (
c == MIDI_CMD_NOTE_ON ||
c == MIDI_CMD_NOTE_OFF ||
c == MIDI_CMD_NOTE_PRESSURE ||
c == MIDI_CMD_PGM_CHANGE ||
(c == MIDI_CMD_CONTROL && (buf[1] == MIDI_CTL_MSB_BANK || buf[1] == MIDI_CTL_LSB_BANK))
);