Getting the channel of a MidiMsg?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I'm looking through the ChucK docs and source code, and I can't figure out how to get the MIDI *channel* from a MidiMsg event. Sure, there's data1 (the command), data2, and data3, but... no channel. Thanks. - -ken -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFGIdkMe8HF+6xeOIcRAqp/AKDhn2NVd0TIiSakwwS3PEB4i5XKSgCeL8e9 cl93uMfs609o02c9l0gzbW0= =LZsX -----END PGP SIGNATURE-----
Ken Restivo wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
I'm looking through the ChucK docs and source code, and I can't figure out how to get the MIDI *channel* from a MidiMsg event.
Sure, there's data1 (the command), data2, and data3, but... no channel.
Thanks.
- -ken -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFGIdkMe8HF+6xeOIcRAqp/AKDhn2NVd0TIiSakwwS3PEB4i5XKSgCeL8e9 cl93uMfs609o02c9l0gzbW0= =LZsX -----END PGP SIGNATURE----- _______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
Hi Ken, I never needed it, so I made a quick test. It is in data1. 144 is noteon on channel 1, 145 is channel 2... and so on. c. -- http://www.cesaremarilungo.com
participants (2)
-
Cesare Marilungo
-
Ken Restivo