Last active
April 10, 2018 13:35
-
-
Save Jei/3c55f0de19c749e34e6f92cd2425eb93 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# CONFIG FILE | |
%include "config/chill.config.liq" | |
# OTHER CONFIGS | |
set("log.file.path", "/usr/share/liquidsoap/logs/<script>.log") | |
set("init.daemon.pidfile.path", "/var/run/liquidsoap/<script>.pid") | |
# PLAYLISTS | |
enable_replaygain_metadata() | |
vaporwave = playlist("#{mediaDir}/playlists/vaporwave", mode='randomize', reload_mode="watch", prefix="replay_gain:") | |
lofi = playlist("#{mediaDir}/playlists/lofi", mode='randomize', reload_mode="watch", prefix="replay_gain:") | |
#jingles = playlist("#{mediaDir}/jingles", mode='randomize', reload_mode="watch", prefix="replay_gain:") | |
# SCHEDULE | |
#vaporwaveList = random(weights = [1, 3], [jingles,vapor]) | |
#lofiList = random(weights = [1, 3], [jingles,lofi]) | |
vaporwaveList = random(vaporwave) | |
lofiList = random(lofi) | |
main=fallback([ | |
switch([ | |
({ (1w or 3w or 5w or 7w) and 0h-8h}, vaporwaveList), | |
({ (1w or 3w or 5w or 7w) and 8h-16h}, lofiList) | |
({ (1w or 3w or 5w or 7w) and 16h-23h59}, vaporwaveList), | |
({ (2w or 4w or 6w) and 0h-8h}, lofiList), | |
({ (2w or 4w or 6w) and 8h-16h}, vaporwaveList), | |
({ (2w or 4w or 6w) and 16h-23h59}, lofiList) | |
]) | |
]) | |
# WRAPPING | |
main = amplify(1.,override="replay_gain", main) | |
main = mksafe(main) | |
main = skip_blank(main) | |
main = smart_crossfade(main) | |
output.icecast(%mp3.vbr(quality=0), host=hostname, port=hostport, password=password, mount="chill", main) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment