[linux-audio-dev] Basic MIDI question

Ari Kauppi kauppi at papupata.org
Wed Jul 26 06:51:26 UTC 2006

On Wed, 26 Jul 2006, Jens M Andreasen wrote:

>      if(runningStatus == NOTE_ON || runningStatus == NOTE_OFF)

If you plan to receive messages from other channels than 0 you have to 
use (runningStatus & 0xF0) instead of the full runningStatus and perhaps 
check for (runningStaus & 0x0F) == receiveChannel..


More information about the Linux-audio-dev mailing list