Page 1 of 1

Re: Giant long shot (Jython/Python question)

Posted: Fri Apr 21, 2017 12:22 pm
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!

Re: Giant long shot (Jython/Python question)

Posted: Mon Apr 24, 2017 10:20 am
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!