[chuck-users] get midi channel associated with midi event
Bruce Murphy
pack-chucklist at rattus.net
Sun Jul 23 01:30:56 EDT 2006
On Sun, Jul 23, 2006 at 12:38:19AM -0400, Spencer Salazar wrote:
> Howdy,
>
> > midi_msg.data1 &0xf0 - 128 => type
>
> To get the high word, you should actually be right-shifting by 4:
>
> ( ( msg.data1 & 0xf0 ) >> 4 ) => type;
That be a high nybble, incidentally.
B>
--
Packrat (BSc/BE;COSO;Wombat Implementor)
Nihil illegitemi carbovndvm
More information about the chuck-users
mailing list