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
>
--