mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-23 15:34:47 +02:00
Fix Bitwise operators.
This commit is contained in:
parent
fab13a111c
commit
cbc8698e9a
1 changed files with 1 additions and 1 deletions
|
@ -176,7 +176,7 @@ void Midi::sendMessage(int device, int channel, int type, int note, int velocity
|
||||||
void Midi::sendNote(int status, int note, int velocity) {
|
void Midi::sendNote(int status, int note, int velocity) {
|
||||||
for (int i = 1; i < midihout.size(); i++) { // Skip 0 (Microsoft GS Wavetable Synth)
|
for (int i = 1; i < midihout.size(); i++) { // Skip 0 (Microsoft GS Wavetable Synth)
|
||||||
if (midihout[i] != NULL) {
|
if (midihout[i] != NULL) {
|
||||||
midiOutShortMsg(midihout[i], status + (note << MIDI_SHIFT_NOTE) + (velocity << MIDI_SHIFT_VELOCITY));
|
midiOutShortMsg(midihout[i], status | (note << MIDI_SHIFT_NOTE) | (velocity << MIDI_SHIFT_VELOCITY));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue