[chuck-users] get midi channel associated with midi event

Atte André Jensen atte.jensen at gmail.com
Thu Jul 20 11:25:03 EDT 2006

Spencer Salazar wrote:

> Under the MIDI spec, MIDI messages carry the channel in the lower 4  
> bits of the first byte of the message.  Thus the following code would  
> store the channel in the "channel" variable:
> msg.data1 & 0x0f => int channel;


peace, love & harmony

http://www.atte.dk      | quartet:      http://www.anagrammer.dk
http://www.atte.dk/gps  | compositions: http://www.atte.dk/compositions

More information about the chuck-users mailing list