>>
default=fallback(track_sensitive=false,transitions=[insert_jingle(jingles)],[switch(track_sensitive=false,transitions=[insert_jingle(jingles),],[
>>
>> This top-level fallback with a single source looks weird to me. Why do
>> you have it?
>
> I'm not sure which fallback you mean?
> The one above, on top of the default source definition.
Hi Roman.
Well i have defined a schedule and a default stream, i was tolled by
help of others and with trial and error that this is the way to go..
I need the schedule and the default rotation to run but need a fade
out and a jingle to intervene when the sources change to one another..
I will appreciate if you could look at the full code i have for the
schedule and look for a better way to do so?
#ahlive = input.http("http://no.ah.fm:443")
singles = playlist(mode='randomize',reload=1,reload_mode="rounds",
"/srv/tranceilmusic/music/singles")
replays = playlist(mode='randomize',reload=1,reload_mode="rounds",
"/srv/tranceilmusic/music/replays")
jingles = playlist(mode='randomize',reload=1,reload_mode="rounds",
"/srv/tranceilmusic/music/jingles/")
silk = playlist(mode='randomize',reload=1,reload_mode="rounds",
"/srv/tranceilmusic/music/silk")
chill = playlist(mode='randomize',reload=1,reload_mode="rounds",
"/srv/tranceilmusic/music/chillednights/")
hortaclassic = playlist(mode='normal',reload=1,reload_mode="rounds",
"/srv/tranceilmusic/music/hortaclassic/")
helmano = playlist(mode='normal',reload=1,reload_mode="rounds",
"/srv/tranceilmusic/music/moranhelman/")
tilsessions = playlist(mode='normal',reload=1,reload_mode="rounds",
"/srv/tranceilmusic/music/tilsessions/")
#danmeyerdeep = playlist(mode='normal',reload=1,reload_mode="rounds",
"/srv/tranceilmusic/music/danmeyerdeep/")
dasha = playlist(mode='normal',reload=1,reload_mode="rounds",
"/srv/tranceilmusic/music/dasha/")
def insert_jingle(j,old,new)
old = fade.final(old)
#new = fade.initial(new)
sequence([old,j,new])
end
# Schedule
#ahliveshow = rotate(weights = [1, 1], [jingles,ahlive])
silkmornings = rotate(weights = [1, 6], [jingles,silk])
chillout = rotate(weights = [1, 6], [jingles,chill])
hortaweekly = rotate(weights = [1, 1, 2], [jingles,hortaclassic,singles])
moranhelman = rotate(weights = [1, 1, 2], [jingles,helmano,singles])
tranceilsessions = rotate(weights = [1, 1, 2],
[jingles,tilsessions,singles])
#danmeyer = rotate(weights = [1, 1, 2], [jingles,danmeyerdeep,singles])
dashalove = rotate(weights = [1, 1, 2], [jingles,dasha,singles])
rotating = rotate(weights=[1,2,1,5],[jingles,replays,jingles,singles])
default=fallback(track_sensitive=false,transitions=[insert_jingle(jingles)],[switch(track_sensitive=false,transitions=[insert_jingle(jingles),],[
#Sunday#
({ (0w) and 07h-12h}, silkmornings),
({ (0w) and 20h-21h}, moranhelman),
#Monday#
({ (1w) and 02h-07h}, chillout),
({ (1w) and 07h-12h}, silkmornings),
#Tuesday#
({ (2w) and 07h-12h}, silkmornings),
#Wednesday#
({ (3w) and 02h-07h}, chillout),
({ (3w) and 07h-12h}, silkmornings),
({ (3w) and 19h-21h}, hortaweekly),
#Thursday#
({ (4w) and 02h-07h}, chillout),
({ (4w) and 07h-12h}, silkmornings),
#Friday#
({ (5w) and 07h-12h}, silkmornings),
({ (5w) and 12h16-14h}, hortaweekly),
#Saturday#
({ (6w) and 07h-12h}, silkmornings),
#({ (6w) and 14h27-18h}, ahliveshow),
({ (6w) and 18h-19h}, dashalove),
({ (6w) and 21h-23h}, tranceilsessions),
]),
fallback.skip(input=rotating,rotating)
])
ignore(output.dummy(default, fallible=true))
The code above will fade the source to a jingle..but will not continue to
the next source..it will just go back to the one that faded away lol
------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users