Hi Xavier,

schedule([("0m & 0-5s",delay(5.,clock))])]) ;

Is delay a trick to play a single sound from the "clock" playlist
every hour? I am looking for the best way to extract a single sound
from a playlist, randomly or in sequence,  and play it entirely at
fixed times. In the above example, it seems that schedule would play
several sounds in a row if they last less than 5 seconds,

You've guessed right, that's really a trick, but it hasn't the problem
you describe. At the beginning of every hour the schedule calls the
delay, which calls the clock, which starts streaming back a jingle. At
the end of the jingle, if the jingle is less than 5 seconds, the
schedule asks the delay if it has something more to say, but the delay
won't answer positively until 5. seconds are elapsed. At that time the
schedule won't be asking anymore. So in theory that trick works well.
Don't you observe the behaviour I describe ?

Cheers.
--
David

Reply via email to