Page 1 of 3

Sleep command

Posted: 23 Nov 2017 23:46
by moogwill
little trouble using "sleep"
A playlist event is startying a complex midi sequence with 2 midi messages with some sleep inserts in beetwen.
it goes like this:

EXEC_SEND_MIDI_SYSEXMSG 0x90 0x30 0x64
SLEEP 3000
EXEC_SEND_MIDI_SYSEXMSG 0x90 0x32 0x64
SLEEP 4000
EXEC_SEND_MIDI_SYSEXMSG 0x90 0x32 0x64
SLEEP 3000
EXEC_SEND_MIDI_SYSEXMSG 0x90 0x30 0x64

It's running perfect, but the thing is that while in "Sleep", all midi goes asleep, and I cannot perform any other command until the sequence is over. is there aything that can perform a "wait" command ??

Thanks,
T.

Re: Sleep command

Posted: 23 Nov 2017 23:46
by radio42
Please confirm which exact version you are using (if not the latest v4.0.4.6-beta, pls try this one), as I cannot reproduce that here!

Re: Sleep command

Posted: 24 Nov 2017 07:31
by radio42
Correct. This behavior is currently by design.
I’ll take a look, if this can be changed.
Just wondering why you need such long Sleep times?

Re: Sleep command

Posted: 24 Nov 2017 08:13
by moogwill
Thanks,

It's a command to change some lower thirds and tickers on the video switcher & Vmix, it takes out the animated news ticker, starts an animated now playing generated from a .txt file.
And by the way, a few weeks ago I had a first contact with "Per" about the video sync solution, but my second email never got any answer :-( will try to send a new request today.

Re: Sleep command

Posted: 24 Nov 2017 19:36
by radio42
What you can do already today is make use of the EXEC_ASYNC command.
Instead of using multiple lines/commands, combine them into one, like this:

Code: Select all

EXEC_ASYNC EXEC_SEND_MIDI_SYSEXMSG 0x90 0x30 0x64${CRLF}SLEEP 3000${CRLF}EXEC_SEND_MIDI_SYSEXMSG 0x90 0x32 0x64${CRLF}SLEEP 4000${CRLF}EXEC_SEND_MIDI_SYSEXMSG 0x90 0x32 0x64${CRLF}SLEEP 3000${CRLF}EXEC_SEND_MIDI_SYSEXMSG 0x90 0x30 0x64
This will execute your command-sequence in its own non-blocking thread. Just separate the individual commands by the ${CRLF} macro after the EXEC_ASYNC command as its parameters.

Re: Sleep command

Posted: 28 Nov 2017 17:44
by moogwill
Bernd, It's quiet a bigger issue than i first mention. cause the sleeep function froze all commands not only midi (such as airence switches for starts or pfl etc...). Is there a way to get a wait fonction that only count time to run the next line? without freezing all other things?

Re: Sleep command

Posted: 28 Nov 2017 18:04
by radio42
Yes, see above, EXEC_ASYNC is the answer.
When using this sequence it will NOT freeze!

Re: Sleep command

Posted: 28 Nov 2017 18:09
by moogwill
sorry but I did, It freeze the airence switches...

Re: Sleep command

Posted: 28 Nov 2017 18:15
by radio42
I’ll take a Iook and try to see, if I can find anything.

Re: Sleep command

Posted: 28 Nov 2017 18:36
by moogwill
thanks, please have a look at this short video without & with the command line and note the delay of the second start http://www.easymedias.com/pfissue/captu ... -31%20.mp4