Home › Forums › General › Programming › A little help please › Reply To: A little help please
October 16, 2017 at 8:57 pm
#73234
Hi, saw that question the other day and also wanted to answer it.
Here is a simpler code I think…
--
-- Called when a modulator value changes
-- @mod http://ctrlr.org/api/class_ctrlr_modulator.html
-- @value new numeric value of the modulator
--
Combo_OnChange = function(--[[ CtrlrModulator --]] mod, --[[ number --]] value, --[[ number --]] source)
lblSysex = panel:getModulatorByName("lblSysex")
modValues = panel:getModulatorByName("cbValues")
sText =""
for i=0,3 do
mbTemp= MemoryBlock ({0xf0, 0x47, 0x00, 0x72, 0x31, 0x00, 0x04, 0x01, 0x03, 40+i*7, value*4+i, 0xf7})
panel:sendMidiMessageNow (CtrlrMidiMessage(mbTemp))
sText = sText..mbTemp:toHexString(1).."\n"
end
lblSysex:getComponent():setPropertyString("uiLabelText", sText)
end
and the panel from dnaldoog adapted 🙂