Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # LOG FILES HELP! Leave these fuckers in
- set("log.file",false)
- set("log.stdout",true)
- set("log.level",4)
- # Stick your source stream here
- url = "http://127.0.0.1:8000"
- # Liquidsoap bitches at fallible sources. Let's pretend this one's infallible
- staudio = mksafe(input.http(url))
- # Gate any noisy shit
- staudio = ladspa.gate(staudio, threshold = -60.0, attack = 0.15, hold = 1.0, decay = 200.0, range = -25.0)
- # One big AGC to normalise incoming shit
- staudio = normalize(target = 0., window = 0.03, gain_min = -16., gain_max = 0., staudio)
- # Low ratio compression (smooth that fucker out)
- staudio = ladspa.sc4(rms_peak=0.3, attack_time = 0.5, release_time = 3., threshold_level = -36.0, ratio=1., makeup_gain = 6., staudio)
- # This is the 5-band crossover setup for the block underneath
- sub = filter.iir.eq.low(frequency = 190.,)
- lhi = filter.iir.eq.high(frequency = 190.,)
- llo = filter.iir.eq.low(frequency = 700.,)
- mhi = filter.iir.eq.high(frequency = 700.,)
- mlo = filter.iir.eq.low(frequency = 2500.,)
- hhi = filter.iir.eq.high(frequency = 2500.)
- hlo = filter.iir.eq.low(frequency = 6500.)
- shi = filter.iir.eq.high(frequency = 6500.)
- slo = filter.iir.eq.low(frequency = 15000.)
- # Basic RMS for use below
- c = ladspa.sc4(rms_peak = 0.5)
- # Basic Limiter for use below
- l = ladspa.tap_limiter(limit_level = -0.5)
- # This is basically a bunch of limiters working together to make a 5-Band AGC
- staudio = add(normalize=false,
- [
- l(c(attack_time = 2.25, release_time = 40., threshold_level = -10., ratio=3., makeup_gain = 2., sub(studio))),
- l(c(attack_time = 2.25, release_time = 40., threshold_level = -13., ratio=3., makeup_gain = 2., llo(lhi(staudio)))),
- l(c(attack_time = 2.25, release_time = 40., threshold_level = -9., ratio=3., makeup_gain = 2., mlo(mhi(staudio)))),
- l(c(attack_time = 2.25, release_time = 40., threshold_level = -6., ratio=3., makeup_gain = 1.5, hlo(hhi(staudio)))),
- l(c(attack_time = 2.25, release_time = 40., threshold_level = -4., ratio=3., makeup_gain = 1., slo(shi(staudio))))
- ])
- # If you can limit it, limit the fucker
- # Blame Final Draft if it breaks
- finaldraft = l(staudio)
- # Setup your codecs/outputs here (Copy pasta for multiple outputs)
- output.shoutcast(
- %aacplus(channels=2, bitrate=64),
- host="127.0.0.1", port=8004, password="PENGUINS-UP-MY-ARSE",
- finaldraft)
- # Thanks, Final Draft...
Advertisement
Add Comment
Please, Sign In to add comment