I’m trying to control my jog wheel using 4 subpages for FX sends, and a 5th subpage to control cubase zoom in/out.
I’m not sure if or how I should be using “host” custom variables. I need to assign a function to the knob onProcessValueChange somehow.
When I set var_knobJogWheel.mOnProcessValueChange, the assigned function never gets executed. Meanwhile, I don’t know how to bind knobJogWheel.mSurfaceValue.mOnProcessValueChange directly to a subpage.
// jogwheel knob
var knobJogWheel = deviceDriver.mSurface.makeKnob(4.0, 4.0, 2.0, 2.0)
// create custom var to intercept jogwheel value
var var_knobJogWheel = page.mCustom.makeHostValueVariable("JogWheel Position")
// create jogwheel subpage area
var area_JogwheelSubPages = page.makeSubPageArea('Jogwheel Subpage Area')
// create and assign subpages for each aux button
var subpage_JogwheelFXSendMode = []
subpage_JogwheelFXSendMode[AUX1] = makeFXSendSubpage(AUX1, area_JogwheelSubPages)
subpage_JogwheelFXSendMode[AUX2] = makeFXSendSubpage(AUX2, area_JogwheelSubPages)
subpage_JogwheelFXSendMode[AUX3] = makeFXSendSubpage(AUX3, area_JogwheelSubPages)
subpage_JogwheelFXSendMode[AUX4] = makeFXSendSubpage(AUX4, area_JogwheelSubPages)
// create extra subpage for jogwheel zoom mode
var subpage_JogwheelZoomMode = area_JogwheelSubPages.makeSubPage('Jogwheel Zoom Mode')
function assignZoomToJogWheel() {
page.makeValueBinding(knobJogWheel.mSurfaceValue, var_knobJogWheel).setSubPage(subpage_JogwheelZoomMode)
var_knobJogWheel.mOnProcessValueChange =
function(context, activeMapping, newValue) {
// zooming code, never gets reached...?????
}
}
I can’t find any documentation on host value variables. But that’s the only type that seems to be allowed by page.makeValueBinding(surfaceValue: MR_SurfaceValue, hostValue: MR_HostValue).setSubPage()
Binding the code directly to the knob works, but causes the zooming to happen at the same time as the FX sends. Can anybody see what’s wrong with this code?
Cool! If you feel safe about the functionality (I mean no serious bugs, I haven’t noticed something bad), why not posting your remote to the dedicated shared-midi-remote tag? Who knows, maybe there are other guys with the same console, who would like to take advantage of the midi remote
But seriously, this code could be adapted to a lot of devices I think, just by changing the MIDI CC values…
I did some cool stuff with the “assign” mode across the whole board … and that master “REC” button is your “mastering” button… instant on/off toggle for your master bus glue
I was just thinking whether combining the two in the same remote could be of interest to you. Not sure if you’re aware of it, but you can have multiple in/outs in a remote script, and perhaps open new horizons