Reply To: Callback error: Lua runtime error

Home Forums General Programming Callback error: Lua runtime error Reply To: Callback error: Lua runtime error

#13299
Hecticcc
Participant
    • Topics: 25
    • Replies: 160
    • Total: 185
    • ★★

    If you format the string correctly you can send it out over midi.
    You can even use other functions inside this formatting construction.

    This is how i send out midi-data in the emu panel, a function that accepts some values & makes a midimessage.

    
    function paramChangeMsg(paramNumLsb,paramNumMsb, paramVal)
    
    msg = string.format("f0 18 21 %.2x 55 01 02 %.2x %.2x %.2x %.2x 7f f7", devID, paramNumLsb, paramNumMsb, lsb(paramVal), msb(paramVal))
    if msg then
    panel:sendMidiMessageNow(CtrlrMidiMessage(msg))
    end
    end

    Hope this helps 😉

    Ctrlr