mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 06:38:29 +02:00
Merge pull request #11961 from humbletim/add-midi-control-change
forward MIDI_CONTROL_CHANGE events
This commit is contained in:
commit
fddb192af8
1 changed files with 4 additions and 3 deletions
|
@ -177,9 +177,10 @@ void Midi::MidiCleanup() {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void Midi::noteReceived(int status, int note, int velocity) {
|
void Midi::noteReceived(int status, int note, int velocity) {
|
||||||
if (((status & MIDI_STATUS_MASK) != MIDI_NOTE_OFF) &&
|
if (((status & MIDI_STATUS_MASK) != MIDI_NOTE_OFF) &&
|
||||||
((status & MIDI_STATUS_MASK) != MIDI_NOTE_ON)) {
|
((status & MIDI_STATUS_MASK) != MIDI_NOTE_ON) &&
|
||||||
return; // NOTE: only sending note-on and note-off to Javascript
|
((status & MIDI_STATUS_MASK) != MIDI_CONTROL_CHANGE)) {
|
||||||
|
return; // NOTE: only sending note-on, note-off, and control-change to Javascript
|
||||||
}
|
}
|
||||||
|
|
||||||
QVariantMap eventData;
|
QVariantMap eventData;
|
||||||
|
|
Loading…
Reference in a new issue