Hello, Is it possible to specify a MIDI channel to send information on? I can't find any information on channels in the manual. Cheers, Mike -- http://shadowofaculture.blogspot.com
On 8/10/07, mike clemow
Hello,
Is it possible to specify a MIDI channel to send information on? I can't find any information on channels in the manual.
Yes it is... the channel is set in the first byte (or ".data1" from a chuckian perspective). Your main options are; looking at the MIDI specs ( http://www.borg.com/~jglatt/tech/midispec.htm)and then doing it by hand. Or enjoying how Bruce Murphy already did most of the work for you in his "library" that deals with ChucKian MIDI http://www.rattus.net/~packrat/audio/ChucK/ Yours, Kas.
Kas,
So, I have to do all my MIDI in hex so I can set a low nibble for
channel?! blech.
You're right; Bruce Murphy has done all the work for me and
midisender.ck is what I want. Happily, it's well documented: I'll be
using some Chuck code in a performance tonight.
Cheers!
Mike
On 8/10/07, Kassen
On 8/10/07, mike clemow
wrote: Hello,
Is it possible to specify a MIDI channel to send information on? I can't find any information on channels in the manual.
Yes it is... the channel is set in the first byte (or ".data1" from a chuckian perspective).
Your main options are;
looking at the MIDI specs ( http://www.borg.com/~jglatt/tech/midispec.htm )and then doing it by hand.
Or enjoying how Bruce Murphy already did most of the work for you in his "library" that deals with ChucKian MIDI http://www.rattus.net/~packrat/audio/ChucK/
Yours, Kas.
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
On 8/10/07, mike clemow
Kas,
So, I have to do all my MIDI in hex so I can set a low nibble for channel?! blech.
Not nessicarily. You can also do it in decimals and treat the first byte as the sum of the type of command and the channel, provided you start counting channels at 0. Admittedly that comes down to the same thing.... You're right; Bruce Murphy has done all the work for me and
midisender.ck is what I want. Happily, it's well documented: I'll be using some Chuck code in a performance tonight.
Yes, his is a very convenient sollution. If it turns out there is no time for a update of the MIDI implementation I think we should ask him to borrow his code to /examples/midi in the download as it solves a lot of problems for a lot of people. Kas.
participants (2)
-
Kassen
-
mike clemow