Skip to content

Commit

Permalink
bela MIDI
Browse files Browse the repository at this point in the history
  • Loading branch information
vlazzarini committed Dec 19, 2017
1 parent 606972e commit 519abda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Bela/BelaCsound.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ int ReadMidiData(CSOUND *csound, void *userData,
CsMIDI *midiData = (CsMIDI *) userData;
Midi &midi = midiData->midi;

while((byte = midi.getInput()) > 0) {
while((byte = midi.getInput()) >= 0) {
*mbuf++ = (unsigned char) byte;
if(++n == nbytes) break;
}
Expand Down

0 comments on commit 519abda

Please sign in to comment.