[linux-audio-dev] Basic MIDI question

Ari Kauppi kauppi at papupata.org
Wed Jul 26 02:51:26 EDT 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..

--
Ari


More information about the linux-audio-dev mailing list