summaryrefslogtreecommitdiff
path: root/core/os
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-10-12 08:55:09 +0200
committerRémi Verschelde <rverschelde@gmail.com>2022-10-12 08:55:09 +0200
commit3852b5017cb1cf834500d873051b3531014d03f6 (patch)
treea26fb9f718f307e16c2c5bf9906a316927ee8140 /core/os
parentfb9b4a1dd086d3cacdf7e9acc8de6e2e4f05ab03 (diff)
parentf0f72b313236b3cd8793e6fe7487094d9a04694a (diff)
Merge pull request #66003 from voidshine/fix_midi_event_mutation
Fix MIDI note-on events being converted to note-off events
Diffstat (limited to 'core/os')
-rw-r--r--core/os/midi_driver.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/core/os/midi_driver.cpp b/core/os/midi_driver.cpp
index 410b62068a..79eef95ef2 100644
--- a/core/os/midi_driver.cpp
+++ b/core/os/midi_driver.cpp
@@ -86,11 +86,6 @@ void MIDIDriver::receive_input_packet(uint64_t timestamp, uint8_t *data, uint32_
if (length >= 2 + param_position) {
event->set_pitch(data[param_position]);
event->set_velocity(data[param_position + 1]);
-
- if (event->get_message() == MIDIMessage::NOTE_ON && event->get_velocity() == 0) {
- // https://www.midi.org/forum/228-writing-midi-software-send-note-off,-or-zero-velocity-note-on
- event->set_message(MIDIMessage::NOTE_OFF);
- }
}
break;