Re: [linux-audio-dev] Basic MIDI question

From: Jens M Andreasen <jens.andreasen@email-addr-hidden>
Date: Tue Jul 25 2006 - 20:00:54 EEST

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

-- 
Received on Tue Jul 25 20:15:09 2006

This archive was generated by hypermail 2.1.8 : Tue Jul 25 2006 - 20:15:09 EEST