Home › Forums › General › Using Ctrlr › howto get feedback from panel:sendMidiMessageNow() › Reply To: howto get feedback from panel:sendMidiMessageNow()
ok, apparent this actually would create latencies on the modulators as well.
So if you’re sending multiple messages for a program and need to have a little delay between each message, your synth might require a small delay between each message. so the solution is to use this parameter programatically and keep it normally at 0ms to avoid latency on the modulators.
this is how I use it.
panel:setPropertyInt(“panelMidiGlobalDelay”,20) — Set MIDI delay to 20ms
panel:setPropertyString(“panelMidiPauseIn”,”1″) — disable MIDI input
for s=1, 5, 1 do panel:sendMidiMessageNow(CtrlrMidiMessage(MidiMsg[s])) MidiMsg[s] = “” end — send 5 Midi messages
timer:setCallback (9, TimerCallback) timer:startTimer(9, 1000) — enable MIDI input
panel:setPropertyInt(“panelMidiGlobalDelay”,0) — Set MIDI delay back to 0ms