Forwarded conversation
Subject: FadeIn/Out inside switch + track repeats
------------------------
From: *Guy Tarazy* <guytra...@gmail.com>
Date: Sun, Dec 9, 2012 at 7:25 PM
To: savonet-users@lists.sourceforge.net
Hey Guys.
I customized my liquidsoap to run shows in a scheduled structure.
The script has a default rotation of 24/7 and a schedule (switch)..i have a
fade in/out that i added between the schedule and the 24/7, but the problem
is it wont fade between SWITCH shows, if a show in the switch ends and
another one kicks in it wont fade between them, only between the switch and
the rotation.
how can i achieve that?
Second problem which is very important...when a show in the switch is set
to 2 hours and the file itself is 119:00 minuetes for example, it will
restart that file again for that remaining minuete, which is bad..how can i
tell liquidsoap that if a file ends before the set time then fallback to
the 24/7 rotation?
The switch is not track sensitive because i need shows to start on time and
interrupt whatever is playing.
This is the complete modification:
#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/")
gdjb = playlist(mode='normal',reload=1,reload_mode="rounds",
"/srv/tranceilmusic/music/gdjb/")
asotweekly = playlist(mode='normal',reload=1,reload_mode="rounds",
"/srv/tranceilmusic/music/asot/")
varena = playlist(mode='normal',reload=1,reload_mode="rounds",
"/srv/tranceilmusic/music/varena/")
hourpower = playlist(mode='normal',reload=1,reload_mode="rounds",
"/srv/tranceilmusic/music/hourpower/")
ffix = playlist(mode='normal',reload=1,reload_mode="rounds",
"/srv/tranceilmusic/music/ferryfix/")
#abgtweekly = playlist(mode='normal',reload=1,reload_mode="rounds",
"/srv/tranceilmusic/music/abgt/")
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, 5], [jingles,ahlive])
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])
globaldj = rotate(weights = [1, 1], [jingles,gdjb])
asot = rotate(weights = [1, 1], [jingles,asotweekly])
vocalarena = rotate(weights = [1, 1], [jingles,varena])
hourofpower = rotate(weights = [1, 1], [jingles,hourpower])
ferryfix = rotate(weights = [1, 1], [jingles,ffix])
rotating = rotate(weights=[1, 1, 1,
7],[jingles,replays,jingles,singles])
#abgt = rotate(weights = [1, 1], [jingles,abgtweekly])
default=fallback(track_sensitive=false,transitions=[insert_jingle(jingles),insert_jingle(jingles)],
[switch(track_sensitive=false,transitions=[insert_jingle(jingles),insert_jingle(jingles)],[
#Sunday#
#({ (0w) and 07h-12h}, silkmornings),
#Monday#
({ (1w) and 02h-07h}, chillout),
#({ (1w) and 07h-12h}, silkmornings),
#Tuesday#
({ (2w) and 07h-12h}, silkmornings),
({ (2w) and 21h-22h}, hortaweekly),
({ (2w) and 22h-23h}, hourofpower),
({ (2w) and 23h-01h}, vocalarena),
#Wednesday#
#({ (3w) and 02h-07h}, chillout),
({ (3w) and 01h-03h}, tranceilsessions),
({ (3w) and 12h-14h}, hortaweekly),
({ (3w) and 15h-16h}, dashalove),
({ (3w) and 16h-17h}, hourofpower),
({ (3w) and 17h-18h}, ferryfix),
({ (3w) and 18h-20h}, vocalarena),
#Thursday#
({ (4w) and 02h-07h}, chillout),
#({ (4w) and 07h-12h}, silkmornings),
#Friday#
#({ (5w) and 07h-12h}, silkmornings),
({ (5w) and 12h-14h}, hortaweekly),
({ (5w) and 17h-19h}, globaldj),
({ (5w) and 19h-21h}, asot),
#Saturday#
#({ (6w) and 07h-12h}, silkmornings),
({ (6w) and 18h-19h}, dashalove),
#({ (6w) and 19h-21h}, abgt),
({ (6w) and 21h-23h}, tranceilsessions),
]),
fallback.skip(input=rotating,rotating,)
])
ignore(output.dummy(default, fallible=true))
Thank you for your help!
Cheers, Guy.
----------
From: *Romain Beauxis* <to...@rastageeks.org>
Date: Mon, Dec 10, 2012 at 11:41 PM
To: Guy Tarazy <guytra...@gmail.com>
Cc: savonet-users@lists.sourceforge.net
2012/12/9 Guy Tarazy <guytra...@gmail.com>:
> Hey Guys.
Hi there!
> I customized my liquidsoap to run shows in a scheduled structure.
>
> The script has a default rotation of 24/7 and a schedule (switch)..i have
a
> fade in/out that i added between the schedule and the 24/7, but the
problem
> is it wont fade between SWITCH shows, if a show in the switch ends and
> another one kicks in it wont fade between them, only between the switch
and
> the rotation.
> how can i achieve that?
I think it is a bug that was fixed about two months ago:
https://github.com/savonet/liquidsoap/commit/a5cd73bd0b94d84a7488bad8231885792f97035d
There hasn't been any release yet so you'd have to use the latest code
to have it fixed. We are hoping to do a release some time in the near
future..
> Second problem which is very important...when a show in the switch is set
to
> 2 hours and the file itself is 119:00 minuetes for example, it will
restart
> that file again for that remaining minuete, which is bad..how can i tell
> liquidsoap that if a file ends before the set time then fallback to the
24/7
> rotation?
>
> The switch is not track sensitive because i need shows to start on time
and
> interrupt whatever is playing.
I think you should be able to achieve this using the delay operator:
http://liquidsoap.fm/doc-svn/reference.html#delay
You could use it to prevent the show source from being available
during the next hour (for instance) after the last show/file has
ended..
Good luck with your project!
Romain
----------
From: *Guy Tarazy* <guytra...@gmail.com>
Date: Tue, Dec 11, 2012 at 11:41 AM
To: to...@rastageeks.org
> I think it is a bug that was fixed about two months ago:
> https://github.com/savonet/liquidsoap/commit/a5cd73bd0b94d84a7488bad8231885792f97035d
> There hasn't been any release yet so you'd have to use the latest code
> to have it fixed. We are hoping to do a release some time in the near
> future..
Hey Romain.
Thanx for replying, i am a bit newbie at this, how should i implement
that code to my needs and where should i insert it if using airtime as
the main LS controller?
Thanx again m8.
----------
From: *Daniel James* <daniel.ja...@sourcefabric.org>
Date: Tue, Dec 11, 2012 at 1:21 PM
To: Romain Beauxis <to...@rastageeks.org>
Cc: Guy Tarazy <guytra...@gmail.com>, savonet-users@lists.sourceforge.net
Hi Romain,
> I think it is a bug that was fixed about two months ago:
>
https://github.com/savonet/liquidsoap/commit/a5cd73bd0b94d84a7488bad8231885792f97035d
> There hasn't been any release yet so you'd have to use the latest code
That sounds like one of the patches in the Sourcefabric package - Martin
would be able to confirm.
Guy, have you tried the 1.0.1*sfo-4 deb packages for Debian/Ubuntu from
http://apt.sourcefabric.org/pool/main/l/liquidsoap/ ?
Cheers!
Daniel
----------
From: *Guy* <guytra...@gmail.com>
Date: Tue, Dec 11, 2012 at 2:46 PM
To: daniel.ja...@sourcefabric.org
Hey Daniel..Thanx for your help
I Tried upgrading by downloading and running ->
root@***:~# sudo dpkg -i liquidsoap_1.0.1~precise~sfo-4_amd64.deb
root@***:~# liquidsoap --version
Liquidsoap 1.0.1+scm (@:20121101:112655)
Copyright (c) 2003-2012 Savonet team
Liquidsoap is open-source software, released under GNU General Public
License.
See <http://savonet.sf.net> for more information.
I think its upgraded ok but its still won't make a transition inside the
switch shows..
What an i missing? :)
Thanks again.
----------
From: *Daniel James* <daniel.ja...@sourcefabric.org>
Date: Tue, Dec 11, 2012 at 2:59 PM
To: Guy <guytra...@gmail.com>
Hi Guy,
> I think its upgraded ok but its still won't make a transition inside the
switch shows..
>
> What an i missing? :)
Sorry, I'm not sure. It sounds like your customisations might be the
cause, in which case the best place is to ask on the savonet-users list.
Cheers!
Daniel
----------
From: *Guy Tarazy* <guytra...@gmail.com>
Date: Tue, Dec 11, 2012 at 3:05 PM
To: Daniel James <daniel.ja...@sourcefabric.org>
Yup i added the script and everything to my original question..its there if
you could take a look.
(for some reason my replys here do not show up on the mailing list lol)
Thank you.
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users