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

Justin Sante jsante at gmail.com
Thu Jul 20 09:55:13 EDT 2006


Here's the best MIDI spec I've come across:

http://www.borg.com/~jglatt/tech/midispec.htm

On 7/20/06, Spencer Salazar <ssalazar at princeton.edu> wrote:
>
> Howdy!
> 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;
>
> spencer
>
> On Jul 20, 2006, at 7:44 AM, Atte André Jensen wrote:
>
> > Hi
> >
> > How can one tell which midi channel is associated with a midi-event?
> > It's probably somewhere in the docs, although I wasn't able to find
> > it...
> >
> > --
> > peace, love & harmony
> > Atte
> >
> > http://www.atte.dk      | quartet:      http://www.anagrammer.dk
> > http://www.atte.dk/gps  | compositions: http://www.atte.dk/
> > compositions
> > _______________________________________________
> > chuck-users mailing list
> > chuck-users at lists.cs.princeton.edu
> > https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
>
> _______________________________________________
> chuck-users mailing list
> chuck-users at lists.cs.princeton.edu
> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.cs.princeton.edu/pipermail/chuck-users/attachments/20060720/f186eb3b/attachment.htm 


More information about the chuck-users mailing list