mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-09 15:15:41 +01:00
PatchChange: fix set_channel()
This commit is contained in:
parent
fc3abecca0
commit
b96b97c439
1 changed files with 3 additions and 3 deletions
|
|
@ -134,9 +134,9 @@ public:
|
|||
}
|
||||
|
||||
void set_channel (uint8_t c) {
|
||||
_bank_change_msb.buffer()[0] = c & 0xf;
|
||||
_bank_change_lsb.buffer()[0] = c & 0xf;
|
||||
_program_change.buffer()[0] = c & 0xf;
|
||||
_bank_change_msb.buffer()[0] = MIDI_CMD_CONTROL | c;
|
||||
_bank_change_lsb.buffer()[0] = MIDI_CMD_CONTROL | c;
|
||||
_program_change.buffer()[0] = MIDI_CMD_PGM_CHANGE | c;
|
||||
}
|
||||
|
||||
uint8_t program () const {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue