Home › Forums › General › Programming › A little help please › Reply To: A little help please
October 16, 2017 at 12:15 pm
#73231
Hi there Anton,
If ‘list’ can have values ranging from 0-31, then I think this would work:
My_Knobs_1 = function(value)
list = panel:getModulatorByName("list"):getModulatorValue()
local multiplier = list * 4
local loopEnd = multiplier + 3
k=40
for i=multiplier,loopEnd do
m1 = panel:sendMidiMessageNow(CtrlrMidiMessage({0xf0, 0x47, 0x00, 0x72, 0x31, 0x00, 0x04, 0x01, 0x03, k, i, 0xf7}))
k=k+7
end
Note: in the attached panel I mistakenly left in the redundant i=i+2
Regards,