use new user-immediate API in GUI
This commit is contained in:
parent
d44c9787b6
commit
f5d3b1c79f
@ -1358,7 +1358,7 @@ GenericPluginUI::note_on_event_handler (int note, int)
|
||||
event[1] = note;
|
||||
event[2] = _piano_velocity.get_value_as_int ();
|
||||
if (mt) {
|
||||
mt->write_immediate_event (Evoral::MIDI_EVENT, 3, event);
|
||||
mt->write_user_immediate_event (Evoral::MIDI_EVENT, 3, event);
|
||||
} else {
|
||||
_pib->write_immediate_event (Evoral::MIDI_EVENT, 3, event);
|
||||
}
|
||||
@ -1374,7 +1374,7 @@ GenericPluginUI::note_off_event_handler (int note)
|
||||
event[1] = note;
|
||||
event[2] = 0;
|
||||
if (mt) {
|
||||
mt->write_immediate_event (Evoral::MIDI_EVENT, 3, event);
|
||||
mt->write_user_immediate_event (Evoral::MIDI_EVENT, 3, event);
|
||||
} else {
|
||||
_pib->write_immediate_event (Evoral::MIDI_EVENT, 3, event);
|
||||
}
|
||||
|
@ -849,7 +849,7 @@ PianoRollHeader::send_note_on (uint8_t note)
|
||||
_event[1] = note;
|
||||
_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[2] = 100;
|
||||
|
||||
track->write_immediate_event (Evoral::MIDI_EVENT, 3, _event);
|
||||
track->write_user_immediate_event (Evoral::MIDI_EVENT, 3, _event);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user