Hi,
I’ve got my Circuit panel almost finished 🙂
The last thing that i want to add is a toggle button that change panelMidiOutputChannelDevice and the uiPanelBackgroundColour1. The toggle wotk for the MIDI output but not for the colour. I can’t find what’s wrong in my code.
Someone can help me please?
ChangeMIDIChannel = function(–[[CtrlrModulator –]] mod, –[[value –]] value)
–console (“Value:” .. value)
if value==0 then
panel:setPropertyString(“panelMidiOutputChannelDevice”,”1″)
panel:setPropertyString(“uiPanelBackgroundColour1”, “FFFFAAFF”)
end
if value==1 then
panel:setPropertyString(“panelMidiOutputChannelDevice”,”2″)
panel:setPropertyString(“uiPanelBackgroundColour1”, “FFAAFFAA”)
end
end
I’ve tried to replace panel:setPropertyString(“uiPanelBackgroundColour1”, “FFFFAAFF”) by panel:getPanelEditor():setPropertyInt(“uiPanelBackgroundColour1”, “FFFFAAFF”) but Ctrlr crash when i run it.
And last, is it possible to change (in this lua script) some colours on all components of the panel?
For info, the Novation Circuit has 2 synth engine. One colored in pink and the other in green (there’s no screen). Having the same color on the panel may be great.
Thanks
-
This topic was modified 7 years, 7 months ago by arcangeli.
-
This topic was modified 7 years, 7 months ago by arcangeli.