Hi all,
I need to assign SysEx formulas to 88 modulators (controlling key assignments, in a panel for the Kawai
-5).
I am assigning other modulator properties programmatically with Lua, and was trying to do the same for the SysEx formula.
I tried using panel:getModulatorByName(name):getMidiMessage():setSysExFormula(sysex), as in the following code, but it does not work.
[code:2a8l68d3]
— set properties
for index = 1,88 do
— ... some code here...
— level
mod = panel:getModulatorByName(string.format("KLEVEL-%d", index))
c = mod:getComponent()
midi = mod:getMidiMessage()
c:setPropertyString("componentTabName", tabname)
c:setPropertyString("componentTabId", tabindex)
c:setPropertyString("componentRectangle", string.format("%d %d %d %d", x+xlevel, y, wlevel, height))
c:setPropertyString("uiSliderValueOutlineColour", transparent)
c:setPropertyString("uiSliderThumbColour", blue)
c:setPropertyString("uiSliderDoubleClickValue", "100")
c:setPropertyString("uiSliderMax", "100")
c:setPropertyString("uiSliderValueTextColour", white)
–c:setPropertyString("midiMessageType", "5") — THIS WON’T WORK: PROPERTY SHOULD GO INTO MIDI SECTION, NOT COMPONENT
–c:setPropertyString("midiMessageChannelOverride", midiChannelOverride)– THIS WON’T WORK
–c:setPropertyString("midiMessageSysExFormula", "f0 40 09 10 00 06 3c "..keyHexString.." xx f7")– THIS WON’T WORK
–midi:setMidiChannel(midiChannel)
midi:setSysExFormula("f0 40 09 10 00 06 3c "..keyHexString.." xx f7") — THIS ALSO DOESN’T WORK!!!
— ...more code here....
end[/code:2a8l68d3]
Seems that the setSysExFormula() function, which is listed here api/class_ctrlr_midi_message.html, is not defined.
What can I use to set the SysEx formula from Lua?
Best,
Marco