mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-11 00:56:33 +01:00
Fix erroneous masking when loading bank changes (part of #3916).
git-svn-id: svn://localhost/ardour2/branches/3.0@9359 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
c437fe0f30
commit
47018e771d
1 changed files with 2 additions and 2 deletions
|
|
@ -819,10 +819,10 @@ Sequence<Time>::append(const Event<Time>& event, event_id_t evid)
|
||||||
} else if (ev.is_cc() && (ev.cc_number() == MIDI_CTL_MSB_BANK || ev.cc_number() == MIDI_CTL_LSB_BANK)) {
|
} else if (ev.is_cc() && (ev.cc_number() == MIDI_CTL_MSB_BANK || ev.cc_number() == MIDI_CTL_LSB_BANK)) {
|
||||||
/* note bank numbers in our _bank[] array, so that we can write an event when the program change arrives */
|
/* note bank numbers in our _bank[] array, so that we can write an event when the program change arrives */
|
||||||
if (ev.cc_number() == MIDI_CTL_MSB_BANK) {
|
if (ev.cc_number() == MIDI_CTL_MSB_BANK) {
|
||||||
_bank[ev.channel()] &= (0x7f << 7);
|
_bank[ev.channel()] &= ~(0x7f << 7);
|
||||||
_bank[ev.channel()] |= ev.cc_value() << 7;
|
_bank[ev.channel()] |= ev.cc_value() << 7;
|
||||||
} else {
|
} else {
|
||||||
_bank[ev.channel()] &= 0x7f;
|
_bank[ev.channel()] &= ~0x7f;
|
||||||
_bank[ev.channel()] |= ev.cc_value();
|
_bank[ev.channel()] |= ev.cc_value();
|
||||||
}
|
}
|
||||||
} else if (ev.is_cc()) {
|
} else if (ev.is_cc()) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue