Sleep command

You have a question or need an advice about how to do something? Ask it here!
moogwill
Posts: 420
Joined: 28 Feb 2016 12:31
Sleep command

Post 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.
User avatar
radio42
Site Admin
Posts: 8295
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: Sleep command

Post 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!
User avatar
radio42
Site Admin
Posts: 8295
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: Sleep command

Post 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?
moogwill
Posts: 420
Joined: 28 Feb 2016 12:31
Re: Sleep command

Post 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.
User avatar
radio42
Site Admin
Posts: 8295
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: Sleep command

Post 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.
moogwill
Posts: 420
Joined: 28 Feb 2016 12:31
Re: Sleep command

Post 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?
User avatar
radio42
Site Admin
Posts: 8295
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: Sleep command

Post by radio42 »

Yes, see above, EXEC_ASYNC is the answer.
When using this sequence it will NOT freeze!
moogwill
Posts: 420
Joined: 28 Feb 2016 12:31
Re: Sleep command

Post by moogwill »

sorry but I did, It freeze the airence switches...
User avatar
radio42
Site Admin
Posts: 8295
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: Sleep command

Post by radio42 »

I’ll take a Iook and try to see, if I can find anything.
moogwill
Posts: 420
Joined: 28 Feb 2016 12:31
Re: Sleep command

Post 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

Post Reply