On Jan 9, 6:51 pm, "Rollerfeet, Johnny" <spama...@rollerfeet.com>
wrote:
On Jan 10, 5:02 pm, Johnny Rollerfeet <jaire...@gmail.com> wrote:
> I'm working in DVD Studio Pro. My goal is to have a "shuffle play" button
> that will (1) randomly play all the tracks, while (2) minimizing
> repetition. (I googled and found a few discussions about how to approach
> it, but no one had any specific scripting.)
>
> For the sake of simplification, pretend there are 16 tracks to play. Divide
> GPRM 1 into 16 partitions, each one representing whether a track has been
> played before (1) or not (0). Before the main script, 0-out all of the 16
> partitions in GPRM1, and the other GPRM's in use.
>
> 1. The beginning of the "shuffle play" script uses GPRM 0 to set a random
> number from 1 to 16 -- the next random track to queue up.
> 2. Each track has a pre-script that checks its partition in GPRM 1. If
> it hasn't been played then it sets its partition in GPRM1 to 1, indicating
> it's been played, and does an exit script (playing the track) and end jumps
> back to the beginning (*1.*)
> 3. If it has been played, it sets GPRM 2 to it's own track number and
> goes to the next track. (*2.*)
> 4. Each "played" track will continue to cycle to the next track, looping
> from track 16 back to 1 until it hits an unplayed track, or the track number
> in GPRM 2 gets selected again -- indicating that we've looped through all
> the tracks and they've all been played. If that happens then it jumps to a
> script that 0's all the partitions in GPRM 1, and jumps back to the
> beginning (*1.*)
>
> (For *3.* it only sets GPRM 2 if GPRM 2 is still 0, meaning it hasn't been
--
You received this message because you are subscribed to the Google Groups "Austin Creative Code" group.
To post to this group, send email to atxcrea...@googlegroups.com.
To unsubscribe from this group, send email to atxcreativeco...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/atxcreativecode?hl=en.
> > atxcreativeco...@googlegroups.com<atxcreativecode%2Bunsubscribe@ googlegroups.com>