I’ve finally received my Midi Commander and Moog expression pedal in the mail.
But settings this up was way trickier than I had thought. The reason is I want the same functionality as I’m used to on my old BOSS pedals.
Ok, so here’s what I’m after and what I’ve got so far:
Each rackspace will have Volume and Wah-Wah expression pedal widgets.
If Wah-Wah isn’t activated, Volume will be controlled by my pedal. If I activate Wah-Wah using a toggle widget, the pedal shall no longer control Volume. As soon as I deactivate Wah-Wah, the midi pedal will control Volume again.
This sounds like a perfect job for GPScript. But, I’m not a very experienced scripter and am having trouble finding a solution to this from the script reference.
This is what I have in my mind (this isn’t working code, this is just how I picture it would work):
var VolPedal : Widget //Expression pedal widget for volume WahPedal : Widget // Expression pedal widget for Wah-Wah WahToggle : Widget // Toggle for Wah-wah effect if WahToggle.Active = true then VolPedal.MidiAssigned = None WahPedal.MidiAssigned = CC#1 else VolPedal.MidiAssigned = CC#1 WahPedal.MidiAssigned = None end if
Does anyone have a working example of this kind of scripted functionality?
Thanks in advance!