there is this

http://liquidsoap.fm/doc-svn/scripts/simple_crossfade.html


> On Feb 22, 2015, at 7:43 AM, Jonathan <[email protected]> wrote:
> 
> Hello all. so I'm trying to setup a thing to where liquidsoap would 
> crossfade when a live show comes on, and back out into automation when 
> there is no live DJs broadcasting. At the end of my script, I get, 
> "error parcing at line 80, char 1."
> which line 80, has the word radio) in it and before this was working... 
> but I'm not sure what  would be the correct way of doing all of this, so 
> I will add my script in for you all to look at and if you all could help 
> with this, I would be grateful... Here is my script...
> 
> #!/etc/liquidsoap
> #log directory
> set("log.file.path","/tmp/radio.log")
> set("server.telnet",true)
> #music
> 
> #pre recorded shows
> #Tuesday
> blindside = playlist(mode="normal","/home/kjsc/playlist/blindside.txt")
> familyroom = playlist(mode="normal","home/kjsc/playlist/familyroom.txt")
> goalline = playlist(mode="normal","/home/kjsc/playlist/goalline.txt")
> #Wednesday
> midweek = playlist(mode="normal","/home/kjsc/playlist/midweek.txt")
> #Thursday
> getreal = playlist(mode="normal","/home/kjsc/playlist/getreal.txt")
> positive = playlist(mode="normal","/home/kjsc/playlist/positive.txt")
> #Friday
> talk = playlist(mode="normal","/home/kjsc/playlist/talk.txt")
> fridaynightlive = 
> playlist(mode="normal","/home/kjsc/playlist/fridaynightlive.txt")
> #Saturday
> loveconnection = 
> playlist(mode="normal","/home/kjsc/playlist/loveconnection.txt")
> openhouse = playlist(mode="normal","/home/kjsc/playlist/openhouse.txt")
> #Sunday
> kidscorner = playlist(mode="normal","/home/kjsc/playlist/kidscorner.txt")
> rcl = playlist(mode="normal","/home/kjsc/playlist/rcl.txt")
> phonetalk = playlist(mode="normal","/home/kjsc/playlist/phonetalk.txt")
> #other shows for re play.
> unshackled = playlist(mode="normal","/home/kjsc/playlist/unshackled.txt")
> theater = playlist(mode="normal","/home/kjsc/playlist/theater.txt")
> undertheradar = 
> playlist(mode="normal","/home/kjsc/playlist/undertheradar.txt")
> cr20 = playlist(mode ="normal","/home/kjsc/playlist/cr20.txt")
> myplaylist = mksafe(fallback([request.queue(id="q"),
> switch([
> ({2w and 18h-19h}, blindside),
> ({2w and 19h-20h}, familyroom),
> ({2w and 21h30-22h}, goalline),
> ({3w and 19h-20h}, midweek),
> ({4w and 18h-19h            }, getreal),
> ({4w and 19h-20h}, positive),
> ({5w and 16h-17h55}, cr20),
> ({5w and 18h-19h}, talk),
> ({5w and 20h-21h}, fridaynightlive),
> ({6w and 7h-8h}, undertheradar),
> ({6w and 6h-6h59}, theater),
> ({6w and 11h30-11h55}, kidscorner),
> ({6w and 15h-16h}, loveconnection),
> ({6w and 16h-17h55}, cr20),
> ({6w and 18h-18h30}, unshackled),
> ({6w and 19h-22h}, openhouse),
> ({7w and 12h30-12h55}, kidscorner),
> ({7w and 13h-15h}, rcl),
> ({7w and 15h-16h}, undertheradar),
> ({7w and 16h-17h55}, cr20),
> ({7w and 18h-19h}, phonetalk),
> ({7w and 19h-19h30}, unshackled),
> ({7w and 20h-20h59}, theater)]),
> playlist("/home/kjsc/music")]))
> # jingles
> jingles = mksafe(playlist("/home/kjsc/jingles"))
> radio = myplaylist
> radio = rotate(weights = [1, 3],[jingles, radio])
> radio = crossfade(start_next=4.1,fade_in=0.09, fade_out=2.1,radio)
> live = input.harbor("live")
> set("harbor.password","hackmemore")
> set("harbor.port",8023)
> set("harbor.username","stuff")
> radio = fallback(track_sensitive = false ,[live,radio])
> def to_live(old,new) =
> old = fade.final(old)
> end
> def to_file(old,new) =
> source.skip(new)
> sequence([old,new])
> radio = fallback(track_sensitive=false,
> transitions=[to_live, to_file])
> output.icecast(%mp3,
> host = "kjscradio.com", port = 8000,
> password = "hackmemore", mount = "autodj.mp3",
> radio)
> 
> 
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
> _______________________________________________
> Savonet-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/savonet-users


------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to