Giant long shot (Jython/Python question)

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

Re: Giant long shot (Jython/Python question)

Postby Jesse » Fri Apr 21, 2017 12:22 pm

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
Posts: 1002
Joined: Tue Dec 15, 2009 3:25 am

Re: Giant long shot (Jython/Python question)

Postby Jesse » Mon Apr 24, 2017 10:20 am

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!

Return to Miscellaneous

Who is online

Users browsing this forum: No registered users and 1 guest