random play mode

318 views
Skip to first unread message

Kalman Tarr

unread,
Oct 26, 2023, 6:32:17 AM10/26/23
to QLab
Hi Pros, good morning,

I found the random mode of group cue and I try it first time. 
I have a question about this.
When I fire the group cue, it only plays one item in it. Play the next item have to fire the group once more. It's supposed to be normal, isn't it? But I like to play randomly all the cues in the group. I tried almost everything, e.g. select all cues in the group and fire them. It is not working.
That's why I wrote a short script. I only show the control part.

    try

       repeat with i from 1 to cnt_allCue -- these are the elements

           start (first item of theCues)

           set runCues to (cues whose running is true and q type is "audio") as list

            set q color of first item of runCues to "red"

           repeat until running of first item of runCues is false

               delay 1

           end repeat

           delay 0.1

       end repeat

   end try


The question: is there any eassy way to play all elements of the group?

Thanks in advance.

Best,
Kalman

Esko Mattila

unread,
Oct 26, 2023, 7:00:54 AM10/26/23
to ql...@googlegroups.com
If your using Qlab5, then just use playlist mode and auto-shuffle. 


--
Contact support anytime: sup...@figure53.com
Follow QLab on Twitter: https://twitter.com/QLabApp
User Group Code of Conduct: https://qlab.app/code-of-conduct/
---
You received this message because you are subscribed to the Google Groups "QLab" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qlab+uns...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qlab/dd0dc0e3-f8e7-45fd-b352-c66c64f9bd96n%40googlegroups.com.

Kalman Tarr

unread,
Oct 26, 2023, 1:00:04 PM10/26/23
to QLab
Hi,

In my mind shuffling and randomness not the same.
I thick shuffle property of the group, it plays the cues in order from the beginning till the end, not randomly. 
I will stick with the script.

Best,
Kalman

Sam Kusnetz

unread,
Oct 26, 2023, 1:09:06 PM10/26/23
to ql...@googlegroups.com
On Oct 26, 2023 at 10:00:04 AM, Kalman Tarr <tarr....@gmail.com> wrote:
In my mind shuffling and randomness not the same.
I thick shuffle property of the group, it plays the cues in order from the beginning till the end, not randomly. 
I will stick with the script.

Hi Kalman

If you have, say, four cues inside a start-random Group cue, and you start that Group cue four times so that each cue plays one at a time, that is exactly the same result as placing those four cues inside a Playlist Group cue, shuffling it, and playing it. There is no difference.

Shuffling a Playlist Group results in a random order.

Best
Sam

Sam Kusnetz (he/him) | Figure 53


luckydave

unread,
Oct 26, 2023, 1:42:42 PM10/26/23
to Kalman Tarr, ql...@googlegroups.com
A "Start random" group cue starts one of its cues at random. On subsequent starts of the random group cue (until it's reset), it'll play only cues that haven't been played already, to avoid randomly choosing the same cue over and over again. 

An "Auto-shuffle" Playlist group cue shuffles its contents each time it's loaded, and plays them in that new random order, from top to bottom. If a Playlist shuffles and loops, it'll keep the same order for each loop.

The screenshot below, and attached workspace, demonstrate how to loop a playlist, shuffling on each loop:

Random looping Playlist.qlab5.zip

luckydave

unread,
Oct 26, 2023, 1:45:03 PM10/26/23
to Kalman Tarr, ql...@googlegroups.com
Oops, no screenshot for some reason. The concept is that the playlist must be reset before starting again if it is to reshuffle before it loops. So the group auto-follows to a reset cue targeted to the group, which auto-continues to a start cue also targeted to the group. The group will repeat until stopped, with a new random order for each repeat.

micpool

unread,
Oct 26, 2023, 1:59:20 PM10/26/23
to QLab
Kalman,

If your objection to the playlist group shuffle,  is that cues may not randomly repeat, then they won't by just repeatedly starting a start random group either , because a start random group will only repeat a track when all other tracks have been played. You need to reset the random group  each time you start it to defeat the round robin, although it still isn't truly random.

You also don't need to script either a round robin, or a reset  random

Screenshot 2023-10-26 at 18.53.19.png

If you need true random playback then you need to use a true random number server like random.org.  Any script random generator or QLab random group isn't truly random (particularly for gambling purposes!)

Screen recording attached.

Mic
Random.mov

Kalman Tarr

unread,
Oct 26, 2023, 3:52:28 PM10/26/23
to QLab
Hi all,

I have to apologize to everyone who answered this thread. 
I was the careless one! 
Now I know that in the 'playList' mode, the list items are reordered every time it is started. 
This is how it create a random list. 
I learned a lot again.
Thanks 
Kalman

Reply all
Reply to author
Forward
0 new messages