add controller read in PortMidi driver
This commit is contained in:
parent
d19672e117
commit
9ada6ff77e
1 changed files with 5 additions and 0 deletions
|
@ -225,6 +225,11 @@ void PortMidiDriver::read()
|
||||||
(void)Pm_MessageData2(buffer[0].message); // read but ignore
|
(void)Pm_MessageData2(buffer[0].message); // read but ignore
|
||||||
mscore->midiNoteReceived(channel, pitch, 0);
|
mscore->midiNoteReceived(channel, pitch, 0);
|
||||||
}
|
}
|
||||||
|
else if (type == ME_CONTROLLER) {
|
||||||
|
int param = Pm_MessageData1(buffer[0].message);
|
||||||
|
int value = Pm_MessageData2(buffer[0].message);
|
||||||
|
mscore->midiCtrlReceived(param, value);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue