[linux-audio-dev] Basic MIDI question
Jens M Andreasen
jens.andreasen at chello.se
Tue Jul 25 17:00:54 UTC 2006
Bzzzt ... My wrong!
thisByte = nextByte();
for(;;)
{
if(thisByte & 0x80)
runningStatus = thisByte;
//... after which we get that:
if(runningStatus == NOTE_ON || runningStatus == NOTE_OFF)
{
thisByte = nextByte();
thisByte = nextByte();
// note_on with zero velocity is note_off
if(thisByte == 0 || runningStatus == NOTE_OFF)
setLed(NOTE_OFF);
else
setLed(NOTE_ON);
}
else
thisByte = nextByte();
}
> > Lee
> >
--
More information about the Linux-audio-dev
mailing list