#!/usr/bin/liquidsoap set("log.file",false) # Log dir set("log.file.path", "/home/zz999/Загрузки/Radio.log") # Music myplaylist = mksafe(normalize(playlist("/home/zz999/Музыка/playlist.txt"))) # Start building the feed with music radio = myplaylist output.icecast( %mp3(bitrate=128), host = "stream.radio-hosting.net", port = 8000, name = "scarred", description = "liquidsoap_mp3", genre = "various", url = "http://stream.radio-hosting.net:8000/scarred", password = "xxxxxxxxxxxxxxxx", mount = "scarred", radio )
#!/usr/bin/liquidsoap set("log.file",false) # Log dir set("log.file.path", "/home/zz999/Загрузки/Radio.log") # Music myplaylist = mksafe(normalize(playlist(reload=1, reload_mode="rounds", mode="randomize", "/home/zz999/Музыка/playlist.txt"))) # Some playlist2 playlist2 = mksafe(normalize(playlist(reload=1, reload_mode="rounds", mode="randomize", "/home/zz999/Музыка/playlist2.txt"))) # Start building the feed with music radio = myplaylist # Now add some playlist2 radio = rotate(weights = [1, 1],[playlist2, radio]) output.icecast......................................................... .................................................................................. .................................................................................
def smooth_add(~delay=0.5,~p=0.2,~normal,~special) d = delay fade.final = fade.final(duration=d*2.) fade.initial = fade.initial(duration=d*2.) q = 1. - p c = amplify fallback(track_sensitive=false, [special,normal], transitions=[ fun(normal,special)-> add(normalize=false, [c(p,normal), c(q,fade.final(type="sin",normal)), sequence([blank(duration=d),c(q,special)])]), fun(special,normal)-> add(normalize=false, [c(p,normal), c(q,fade.initial(type="sin",normal))]) ]) end
fallible=true