mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 07:14:56 +01:00
Vkbd: fix stuck notes when playing fast
The virtual keyboard sends all events with the same timestamp. When playing fast (mouse-sweep) note-on and note-off will have the same timestamp. Sincedbd8089fb8,a393f75694concurrent MIDI are sorted with note-off first. This correctly handles events when played from the timeline: note-on .. note-off|note-on ... note-off But in case of a MIDI keyboard a note-off event must be send after the note-on.
This commit is contained in:
parent
273824d094
commit
a27f1e8cf9
1 changed files with 1 additions and 1 deletions
|
|
@ -561,7 +561,7 @@ VirtualKeyboardWindow::note_off_event_handler (int note)
|
||||||
ev[0] = MIDI_CMD_NOTE_OFF | channel;
|
ev[0] = MIDI_CMD_NOTE_OFF | channel;
|
||||||
ev[1] = note;
|
ev[1] = note;
|
||||||
ev[2] = 0;
|
ev[2] = 0;
|
||||||
_session->vkbd_output_port ()->write (ev, 3, 0);
|
_session->vkbd_output_port ()->write (ev, 3, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue