13
0

use new user-immediate API in GUI

This commit is contained in:
Paul Davis 2023-09-13 23:58:06 -06:00
parent d44c9787b6
commit f5d3b1c79f
2 changed files with 4 additions and 4 deletions

View File

@ -1358,7 +1358,7 @@ GenericPluginUI::note_on_event_handler (int note, int)
event[1] = note; event[1] = note;
event[2] = _piano_velocity.get_value_as_int (); event[2] = _piano_velocity.get_value_as_int ();
if (mt) { if (mt) {
mt->write_immediate_event (Evoral::MIDI_EVENT, 3, event); mt->write_user_immediate_event (Evoral::MIDI_EVENT, 3, event);
} else { } else {
_pib->write_immediate_event (Evoral::MIDI_EVENT, 3, event); _pib->write_immediate_event (Evoral::MIDI_EVENT, 3, event);
} }
@ -1374,7 +1374,7 @@ GenericPluginUI::note_off_event_handler (int note)
event[1] = note; event[1] = note;
event[2] = 0; event[2] = 0;
if (mt) { if (mt) {
mt->write_immediate_event (Evoral::MIDI_EVENT, 3, event); mt->write_user_immediate_event (Evoral::MIDI_EVENT, 3, event);
} else { } else {
_pib->write_immediate_event (Evoral::MIDI_EVENT, 3, event); _pib->write_immediate_event (Evoral::MIDI_EVENT, 3, event);
} }

View File

@ -849,7 +849,7 @@ PianoRollHeader::send_note_on (uint8_t note)
_event[1] = note; _event[1] = note;
_event[2] = 100; _event[2] = 100;
track->write_immediate_event (Evoral::MIDI_EVENT, 3, _event); track->write_user_immediate_event (Evoral::MIDI_EVENT, 3, _event);
} }
} }
@ -864,7 +864,7 @@ PianoRollHeader::send_note_off (uint8_t note)
_event[1] = note; _event[1] = note;
_event[2] = 100; _event[2] = 100;
track->write_immediate_event (Evoral::MIDI_EVENT, 3, _event); track->write_user_immediate_event (Evoral::MIDI_EVENT, 3, _event);
} }
} }