1
0

Made use of replaygain and tweaked normalization, so my radio must become louder.

This commit is contained in:
Alexander Andreev 2023-02-25 14:53:31 +04:00
parent 0db75f30a2
commit 9a27077d55
Signed by: Arav
GPG Key ID: 0388CC8FAA51063F

View File

@ -26,6 +26,8 @@ settings.log.file.set(true)
settings.log.file.path.set(log_file_path)
settings.log.stdout.set(false)
enable_replaygain_metadata()
fallback_song = mksafe(single(fullpath("fallback.ogg")))
fallback_song = metadata.map(fallback_alter_title, fallback_song)
@ -34,17 +36,18 @@ live_show = input.harbor("adr-live-show", port = harbor_port, password = harbor_
live_show = metadata.map(fun (_) -> [("artist", radio_name), ("title", "Live Show")], live_show)
playlist_random = playlist(fullpath("playlists/all-rand"),
prefix = fullpath("music/"),
prefix = string.concat(["replaygain:", fullpath("music/")]),
mode = "normal", reload_mode = "watch")
music = audio_to_stereo(playlist_random)
music = replaygain(music)
music = normalize(music, target = -7., threshold = -75.)
radio = smooth_add(p = 0.18, normal = music, special = live_mixin)
radio = fallback(track_sensitive = false,
transitions = [xfade, xfade, xfade],
[ blank.strip(max_blank=15., live_show),
blank.strip(max_blank=90., radio), fallback_song])
radio = normalize(radio)
output.icecast(%vorbis.cbr(bitrate = 128, samplerate = 44100, channels = 2),
host = icecast_host, port = icecast_port,