Send This Message via [ctlout] ?

pmj's icon

Does anyone use the PreenFM2 synth on here?

I'm trying to use [ctlout] to send a Combo change message to the synth but am unsure how to do this.

The instruction in the PreenFM2 manual is:

  • Program change

  • Bank select (CC#0) and Bank Select LSB (#32)

  • Bank select=0 =>  BankLSB=Preenfm bank number

  • Bank select=1 => BankLSB=Combo number **

  • Bank select=2 => BankLSB=DX7 bank 0->127

  • Bank select=3 => BankLSB=DX7 bank 128->255

So sending a program change is easy enough using [pgmout] but how do you set this CC message ** ?

Thanks!

pmj's icon

Doesn't have to be with the [ctlout] object of course if there's a better way of sending CC messages to the PreenFM2 from Max?  I've been looking around the objects and nothing jumps out...

Essentially trying to do this:

CC #0 = 1 (select a combo bank).
CC #32 = 0-7 (select combo bank number).

Christopher Dobrian's icon

I don't have that synth, but...

You're understanding correctly what you need to send. Send the Bank Select 1 (CC# 0 with a value of 1) and then send the Bank Select LSB for the combo you want (CC# 32 with a value of 0-7). In the ctlout object, provide the controller number in the second inlet, then provide the controller value in the first inlet. Here's an example where choosing the combo number first sends the correct Bank Select value, then sends the combo number.

Max Patch
Copy patch and select New From Clipboard in Max.

pmj's icon

Thanks... I'm still not getting what to apply to the second inlet.

If I need it to be CC# 0 with a value of 1 should I just be able to have a message box with a value of "1" in it? That isn't a variable like the Combo box on inlet 1.

Christopher Dobrian's icon

The controller number goes in the second inlet first, then the controller value goes in the left inlet. That's what happens internally when ctlout receives a list of two numbers—value and controller—as in my previously posted example. Here's another example that does the same thing, which I hope is more explicit. (The outputs of the t object go in right-to-left order.) See also the ctlout help file.

Max Patch
Copy patch and select New From Clipboard in Max.

pmj's icon

Thanks very much, that does make sense. Unfortunately the Preen doesn't react to the changes in the patch. This could be a PreenFM2 thing rather than a Max thing.

Thanks for taking the time to explain the patch.