Hey guys.
I have a liquidsoap script that i compiled using different sources..it is
built into ls_script.liq (Airtime release)
I built a schedule elements inside, it dose works when the time and date of
a show arrives, but if nothing is scheduled, i got dead air. i want to be
able to rotate
'Jingles,Replays,and 'Singles' 24/7 when nothing is scheduled, and
when something is scheduled i need it to obviously let it run and then
restart when the scheduled show finnish.
using
default = rotate(weights=[1,2,1,5],[jingles,replays,jingles,singles])
ignore(output.dummy(default, fallible=true))
gives me nothing but dead air..
Here is the full modification:
........
# START MODIFICATION
# default = amplify(0.00001, noise())
# default = rewrite_metadata([("artist","Airtime"), ("title",
"offline")],default)
singles = playlist(mode='randomize',reload=1,reload_mode="rounds",
"/home/tranceilmusic/singles")
replays = playlist(mode='randomize',reload=1,reload_mode="rounds",
"/home/tranceilmusic/replays")
jingles = playlist(mode='randomize',reload=1,reload_mode="rounds",
"/home/tranceilmusic/jingles/")
#silk = playlist(mode='randomize',reload=1,reload_mode="rounds",
"/home/tranceilmusic/silk/")
chill = playlist(mode='randomize',reload=1,reload_mode="rounds",
"/home/tranceilmusic/chillednights/")
hortaclassic = playlist(mode='normal',reload=1,reload_mode="rounds",
"/home/tranceilmusic/hortaclassic/")
helmano = playlist(mode='normal',reload=1,reload_mode="rounds",
"/home/tranceilmusic/moranhelman/")
tilsessions = playlist(mode='normal',reload=1,reload_mode="rounds",
"/home/tranceilmusic/tilsessions/")
#danmeyerdeep = playlist(mode='normal',reload=1,reload_mode="rounds",
"/home/tranceilmusic/danmeyerdeep/")
dasha = playlist(mode='normal',reload=1,reload_mode="rounds",
"/home/tranceilmusic/dasha/")
default = rotate(weights=[1,2,1,5],[jingles,replays,jingles,singles])
ignore(output.dummy(default, fallible=true))
# Schedule
#silkmornings = rotate(weights = [1, 6,], [jingles,silk])
chillout = rotate(weights = [1, 6,], [jingles,chill])
hortaweekly = rotate(weights = [1, 1,], [jingles,hortaclassic])
moranhelman = rotate(weights = [1, 1,], [jingles,helmano])
tranceilsessions = rotate(weights = [1, 1,], [jingles,tilsessions])
#danmeyer = rotate(weights = [1, 1,], [jingles,danmeyerdeep])
dashalove = rotate(weights = [1, 1,], [jingles,dasha])
default=fallback([
switch([
# ({ (0w or 1w or 2w or 3w or 4w or 5w or 6w) and 7h-12h},
silkmornings),
({ (0w or 2w or 3w) and 2h-7h}, chillout),
({ (3w) and 19h-21h}, hortaweekly),
({ (0w) and 20h-21h}, moranhelman),
({ (6w) and 21h-23h}, tranceilsessions),
# ({ (5w) and 18h-19h}, danmeyer),
({ (6w) and 18h-19h}, dashalove),
])
])
# Optional Processing (comment out if too loud/pumpy for your kind of music
#default=nrj(default)
# Let's play!
default=mksafe(default)
# s = fallback(track_sensitive=false, [queue, default])
# s = normalize (s)
# END MODIFICATION
Thank you for your help.
------------------------------------------------------------------------------
How fast is your code?
3 out of 4 devs don\\\'t know how their code performs in production.
Find out how slow your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219672;13503038;z?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users