mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-25 07:57:43 +01:00
[Summary] Fixed issue with transport adjustment when marker message is received.
This commit is contained in:
parent
6427093243
commit
62caa3ea44
1 changed files with 9 additions and 6 deletions
|
|
@ -272,7 +272,13 @@ MIDISceneChanger::program_change_input (MIDI::Parser& parser, MIDI::byte program
|
|||
last_program_message_time = time;
|
||||
|
||||
if (!recording()) {
|
||||
MIDIInputActivity (); /* EMIT SIGNAL */
|
||||
MIDIInputActivity (); /* EMIT SIGNAL */
|
||||
|
||||
int bank = -1;
|
||||
if (have_seen_bank_changes) {
|
||||
bank = input_port->channel (channel)->bank();
|
||||
}
|
||||
|
||||
jump_to (input_port->channel (channel)->bank(), program);
|
||||
return;
|
||||
}
|
||||
|
|
@ -300,12 +306,9 @@ MIDISceneChanger::program_change_input (MIDI::Parser& parser, MIDI::byte program
|
|||
new_mark = true;
|
||||
}
|
||||
|
||||
unsigned short bank;
|
||||
|
||||
int bank = -1;
|
||||
if (have_seen_bank_changes) {
|
||||
bank = input_port->channel (channel)->bank();
|
||||
} else {
|
||||
bank = -1;
|
||||
bank = input_port->channel (channel)->bank();
|
||||
}
|
||||
|
||||
MIDISceneChange* msc =new MIDISceneChange (channel, bank, program & 0x7f);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue