MAX/Reaktor Problems Solved - Thank You

info@krispenhartung.com's icon

For some time I have been struggling with two problems with running Reaktor inside of MAX as a VST: 1) I could not get an ensemble to load up automatically with Reaktor when loading the plug, and 2) I could not get Reaktor to receive MIDI controller messages from my Behringer FCB MIDI controller, to MAX, and to the VST object loading Reaktor.

I am pleased to report (and I also feel obligicated to share my results, since so many people helped me) that both problems are resolved now, thanks to some tips from Kasper Toeplitz and Andreas Wetterberg.

Andreas provided some code that fixed the ensemble loading problem, though I revised it slightly so that the plug loads automatically with a loadbang. So, I use a poly object to activate and deactivate the Reaktor VST, and when I activate it, everything loads up as I saved it with the fxp preset file.

After researching the MIDI problem, I found an older message from Kasper and he sent me his code a few days ago, which I also modified. To remind everyone, Kasper had suggested using a MIDI event message, with the appropriate controller messages (midievent 176 1 $1), into the VST object loading Reaktor. He was altering the controller value ($1) with a number box. I simply replaced the number box with controller in object and arguments (ctlin a 1) that receives input from my controller 1 on the Beheringer. I duplicated that bit of code for the second contoller, modifying both the controller number in the midievent message (midievent 176 2 $1) and in the second controller in object (ctlin a 2).

I copied a stripped down version of the two solution below.

It's a wonderful thing.

Cheers,

Kris

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