Le 27/12/2011 20:30, Elliott Barnes a écrit :
> Hi everyone.
>
> I've currently got a script that uses two sources: a playlist of
> music, and a random selection of jingles. We're currently using the
> "rotate" peramitor to switch between the two sources, but now want to
> add adverts into the mix. So, in short, here's what we want to do:
>
> Every two songs, play a random jingle from the playlist. After every
> four songs, however, play a random jingle, three adverts, one more
> jingle, and then go back to the music source.
>
> Also, if possible, we would like to stop Liquidsoap from crossfading
> between ads.
>
> What is the recommended way that you guys would go about doing this?
>
> Thanks.
>
>
> Elliott.
>

May be:

music = playlist(mode='random', "/home/mucic/your_playlist.m3u")
jingles = playlist (mode='random', "/home/jingles/your_jingles.m3u")

default = rotate(weights=[1,2],[jingles,music])
default = crossfade(default)

ads = playlist(mode='random', "/home/ads/your_ads.m3u")
default = rotate (weights=[1,8],[ads,default])

Assuming that your specific jingles before and after ads + your 3 ads 
are already assembled in 1 unique track...
If you want not to play your ads always in the same order, you can 
record 6 different tracks for ads to cover all combination.
If you need to pick 3 ads from a whole pool, it will be a little more 
tricky...

May someone else confirm that this script will reach your goal?

Fred

------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to