Home › Forums › General › Programming › Callback error: Lua runtime error › Reply To: Callback error: Lua runtime error
September 16, 2013 at 6:27 pm
#13299
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 😉