Giant long shot (Jython/Python question)

Post Reply
User avatar
Jesse
Posts: 1053
Joined: Tue Dec 15, 2009 3:25 am

Re: Giant long shot (Jython/Python question)

Post by Jesse »

Sure, a bank select MSB is just CC0, and bank select LSB is CC32 (just basic midi controller messages). Sending those anytime prior to the program change message is all you need to do!

User avatar
Jesse
Posts: 1053
Joined: Tue Dec 15, 2009 3:25 am

Re: Giant long shot (Jython/Python question)

Post by Jesse »

You just need different parameters to the sendMidiMessage() call. Check out the info here:
https://users.cs.cf.ac.uk/Dave.Marshall ... de158.html

In the Channel Messages section you see how the different kind of messages are formed. Usually these things are specified in hexadecimal, your example with 192 is 0xC0 in hex which represents a program change message. The one for CC is 0xB0 or 176 in decimal.

So for CC messages, you would use the following (generically) in your program's case:

self.sendMidiMessage(176, channel, CCNUM, CCVAL)

So a bank select MSB (CC0) would be this:
self.sendMidiMessage(176, channel, 0, MSBval)

Where MSBval would be as specified in TJ's manual for what you want (0 for default presets, 1 for user presets, or 2 for quick change buttons).
Hope that helps!

Post Reply