Home Forums General Programming Correctly adding a Modulator Expression in Lua Reply To: Correctly adding a Modulator Expression in Lua

#13220
atom
atom
Moderator

Well just add 32 then

byte23 = panel:getModulatorByName("DCO 1 LFO Mod Amt"):getModulatorValue() + 32

byte32 will be just 32 larger then the value of the modulator, byte23 is a normal number (integer), you can do whatever arithmetics with it you like