This commit is contained in:
Burt Sloane 2017-06-15 17:32:59 -07:00
parent 4f7a1a6e2e
commit a29f07aef5

View file

@ -74,8 +74,10 @@ void CALLBACK MidiOutProc(HMIDIOUT hmo, UINT wMsg, DWORD_PTR dwInstance, DWORD_P
void Midi::sendNote(int status, int note, int vel) {
for (int i = 0; i < midihout.size(); i++) if (midihout[i] != NULL) {
midiOutShortMsg(midihout[i], status + (note << 8) + (vel << 16));
for (int i = 0; i < midihout.size(); i++) {
if (midihout[i] != NULL) {
midiOutShortMsg(midihout[i], status + (note << 8) + (vel << 16));
}
}
}