Home › Forums › General › Programming › update panel on dump request using Lua › Re: update panel on dump request using Lua
July 21, 2011 at 9:06 am
#2954
"msepsis":8lrku81t wrote:
Thank you Atom.
Yes I can confirm also that my panel works in this regard (receiving a sysex dump and passing values to the knobs) as well besides the error given from the debugger. I only am passing cc values so far… obviously wanted confirmation that the debugger is complaining about something benign before moving on… I do have some down time before all the excitement and haven’t been able to pull myself away completely just yet ” title=”Smile” />
Yes I can confirm also that my panel works in this regard (receiving a sysex dump and passing values to the knobs) as well besides the error given from the debugger. I only am passing cc values so far… obviously wanted confirmation that the debugger is complaining about something benign before moving on… I do have some down time before all the excitement and haven’t been able to pull myself away completely just yet ” title=”Smile” />
I have a line for every cc value that looks like:
[code:8lrku81t]
panel:getModulatorByName("filter1EnvVel"):setModulatorValue(unpackedData:getByte(53), false, true, true)
[/code:8lrku81t]
So how would one go about scripting a setModulatorValue for a modulator which is receiving sysex param changes like:
f0 3e 0e 00 20 00 01 01 xx f7
??[/quote:8lrku81t]
exactly the same way, it doesn’t matter what midi type is the modulator, you give it a value (a numeric value) and the MIDI message that is linked to it is updated (think of LUA as a artifical intelligence that moves your knobs and pushes your buttons)