Home › Forums › General › Programming › Lua in CTRLR 101 › Re: Lua in CTRLR 101
July 17, 2011 at 6:39 am
#2969
i think someting like that
[code:3ehofbxe]OscPitchBend = function(modulator, newValue)
bend = panel:getModulatorValue("pitchbend")
pbOsc1 = panel:getModulatorByName("Osc1pitchBend")
pbOsc2 = panel:getModulatorByName("Osc12pitchBend")
v=bend :getModulatorValue()
pbOsc1 = setModulatorValue (v, true, true, true)
pbOsc2 = setModulatorValue (v, true, true, true)
end[/code:3ehofbxe]