Hi Senaka

Delay is for avoid to play a new track before expire 1200 seconds (20 
minutes)

In this way I ensure that I play only one track from the playlist 
"ident". But the main use is for the playlist "color". In this list I 
have a los of stories, and poems, one poem per track. IF you see the 
switch, I played one poem (from color playlist) at 15m and 45m, but the 
window time is 15m to 20m, and 45m to 50. Because some poems has a 
duration below 3 or 2 minutes, setting the delay I ensure that I play 
only one poem in the window of 5 minutes. Understood? If I no set the 
delay, is played two poems each iteration.

Regards
Normando

El 22/10/2010 02:30 a.m., Senaka Amarakeerthi escribió:
> Hi,
>
> I didn't CCed this thinking that this is not an important question for others.
>
> What "delay(1200.,ident)" does?
>
> I am new to liquidsoap and learning functionality of this wonderful software.
>
> Thanks.
>
> On Fri, Oct 22, 2010 at 12:23 PM, Normando Hall<[email protected]>  wrote:
>> I have finally reach what I wanted. Here is the main part of the code:
>>
>> ##############################################
>>
>>
>> myplaylist =
>> playlist(mode="random",reload=1,reload_mode="rounds","/opt/Musica/Tangos")
>>
>> ident = single("/opt/Identificacion/Identificacion.mp3")
>> drovet = single("/opt/Auspiciantes/Drovet.mp3")
>> color =
>> playlist(mode="normal",reload=1,reload_mode="rounds","/opt/Color/playlist.txt")
>> security = single("/opt/Fallback/silencio.mp3")
>>
>> radio = myplaylist
>>
>> radio = switch(track_sensitive = true, [
>>
>> ({0m0s-5m0s},delay(1200.,ident)),
>> ({15m0s-20m0s},delay(1200.,drovet)),
>> ({15m10s-20m10s},delay(1200.,color)),
>> ({30m0s-35m0s},delay(1200.,ident)),
>> ({45m0s-50m0s},delay(1200.,drovet)),
>> ({45m10s-50m0s},delay(1200.,color)),
>> ({true},radio)
>>
>> ])
>>
>> ##############################################
>>
>> Iam very happy. Thanks developers for this superb software!
>>
>> Regards
>> Normando
>>
>> El 20/10/2010 02:41 p.m., Normando Hall escribió:
>>>     Hello list.
>>>
>>> I was read the documentation, and I am happy with the sucess I get.
>>>
>>> But still one issue with the scheduling I want to do.
>>>
>>> I paste below the important things of my script and then I will explain
>>> better what I want:
>>>
>>> ##############################################
>>> #!/usr/bin/liquidsoap
>>>
>>> myplaylist =
>>> playlist(mode="random",reload=1,reload_mode="rounds","/opt/Musica/Tangos")
>>>
>>> ident = once(single("/opt/Identificacion/Identificacion.mp3"))
>>> drovet = once(single("/opt/Auspiciantes/Drovet.mp3"))
>>> color =
>>> once(playlist(mode="normal",reload=1,reload_mode="rounds","/opt/Color/playlist.txt"))
>>> security = single("/opt/Fallback/silencio.mp3")
>>>
>>> radio = myplaylist
>>>
>>> radio = switch(track_sensitive = true, [
>>>
>>> ({0m0s-5m0s},ident),
>>> ({15m0s-20m0s},drovet),
>>> ({15m30s-20m30s},color),
>>> ({30m0s-35m0s},ident),
>>> ({45m0s-50m0s},drovet),
>>> ({45m30s-50m30s},color),
>>> ({true},radio)
>>>
>>> ])
>>>
>>> radio = fallback(track_sensitive = false, [radio, security])
>>>
>>> output.icecast(%mp3, ....., radio)
>>> ##############################################
>>>
>>> As I was say before in a previous message, I want to play a folder
>>> plenty of mp3 files random.
>>> Then, at 0m0s and 30m0s play only one file Identification.mp3
>>>
>>> The issue is this: At 15m0s and 45m0s I play only one file = Drovet.mp3
>>> After that, I want to append one track from the playlist "color". I want
>>> to play only one for these tracks. Then the radio playlist continue with
>>> the normal random way. The issue is if I use the "once" operator, I get
>>> the same track (the first one) from the "color" playlist everytime I
>>> want to play "color" appended at 15m30s and 45m30s.
>>>
>>> What I want is to play the first track of "color" playlist at the first
>>> playing of this playlist, and then the nexte, and then the next, and so
>>> on. At the end of tracks, play again the first track.
>>>
>>> To clarify this is an example:
>>>
>>> 15m0s play Drovet.mp3 and then append only the first track of "color"
>>> playlist.
>>> 45m0s play Drovet.mp3 and then append only the second track of "color"
>>> playlist.
>>> 15m0s play Drovet.mp3 and then append only the third track of "color"
>>> playlist.
>>> .
>>> .............played all of the "color" playlist
>>> .
>>> 15m0s play Drovet.mp3 and then append the first track of "color" playlist.
>>> 45m0s play Drovet.mp3 and then append only the second track of "color"
>>> playlist.
>>>
>>> Well, I hope you can understand my bad english. Thank for the help
>>>
>>> regards
>>> Normando
>>>
>>> ------------------------------------------------------------------------------
>>> Nokia and AT&T present the 2010 Calling All Innovators-North America contest
>>> Create new apps&    games for the Nokia N8 for consumers in  U.S. and Canada
>>> $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
>>> Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
>>> http://p.sf.net/sfu/nokia-dev2dev
>>> _______________________________________________
>>> Savonet-users mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/savonet-users
>>>
>>>
>>
>> ------------------------------------------------------------------------------
>> Nokia and AT&T present the 2010 Calling All Innovators-North America contest
>> Create new apps&  games for the Nokia N8 for consumers in  U.S. and Canada
>> $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
>> Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
>> http://p.sf.net/sfu/nokia-dev2dev
>> _______________________________________________
>> Savonet-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/savonet-users
>>
>


------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to