Reply To: A little help please

Home Forums General Programming A little help please Reply To: A little help please

#73231
dnaldoog
Participant
    • Topics: 4
    • Replies: 480
    • Total: 484
    • ★★

    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,

    Attachments:
    You must be logged in to view attached files.
    Ctrlr