Home › Forums › General › Panels, Components, Macros › panel construction problematic › Reply To: panel construction problematic
August 7, 2014 at 2:56 am
#27177
I get it with strings
--
-- Called when a modulator value changes
-- @mod http://ctrlr.org/api/class_ctrlr_modulator.html
-- @value new numeric value of the modulator
--
mod2buf = function(mod, value)
tch = mod:getComponent():getChildComponent(0)
if tch:isMouseButtonDown() then
Fs = panel:getModulatorByName("Focus"):getValue() + 1
wb = mod:getVstIndex() - 7
we = panel:getComponent(string.format("Edit-%s",Fs))
ed = we:getText()
writing = MemoryBlock(ed)
writing:setByte(wb,value)
we:setText(string.format("%s",writing:toHexString(1)))
end
end
it keeps fluid : a text with a loooot of data is updated quietly
but I will remove the texts and use several memoryblocks only
the unique memoryblock here is redefined each time I touch a knob in a new focus
the script is applied to all mods
cool