-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathprocess.liq
61 lines (46 loc) · 2.04 KB
/
process.liq
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Functions / Modules --------------------->
# Compressor Module / Limiter Module
compressor = ladspa.sc4(rms_peak = 0.5)
limiter = ladspa.tap_limiter(limit_level = -0.5)
# Single Band Compressor
def multiband_band(process, from, to, attack, release, ratio, threshold, gain)
from_filter = filter.iir.eq.high(frequency = from,)
to_filter = filter.iir.eq.low(frequency = to,)
process_filtered = to_filter(from_filter(process))
process_compressed = limiter(compressor(attack_time = attack, release_time = release, threshold_level = threshold, ratio=ratio, makeup_gain = gain, process_filtered))
process_compressed
end
# Audio Input --------------------->
process = input
# Processing Blocks --------------------->
# Gate
process = ladspa.gate(process, threshold = -60.0, attack = 0.15, hold = 1.0, decay = 200.0, range = -25.0)
# Wideband AGC + Pre-Processing
process = normalize(target = 0., window = 0.03, gain_min = -16., gain_max = 0., process)
process = ladspa.sc4(rms_peak=0.3, attack_time = 0.5, release_time = 3., threshold_level = -36.0, ratio=1., makeup_gain = 6., process)
# Stereo Expander
process = ladspa.matrixspatialiser(width=16, process)
# Bass EQ
process = ladspa.tap_equalizer(band_1_freq=70., band_1_gain=4., process)
process = ladspa.tap_equalizer(band_1_freq=150., band_1_gain=-2., process)
# 5 Bands Compress/Limit
process = add(normalize=false,
[
multiband_band(process, 0., 200., 3.5, 30., 3., -10., 2.),
multiband_band(process, 200., 1000., 2.25, 40., 2., -13., 2.),
multiband_band(process, 1000., 3500., 2.25, 40., 3., -9., 2.),
multiband_band(process, 3500., 6500., 2.25, 60., 2., -6., 1.5),
multiband_band(process, 6500., 20000., 2.25, 70., 2., -4., 1.)
])
# 2 Bands Compress/Limit
process = add(normalize=false,
[
multiband_band(process, 0., 200., 10., 30., 2., -4., 0.),
multiband_band(process, 200., 20000., 10., 40., 2., -2., -2.)
])
# De-esser
process = ladspa.tap_deesser(threshold_level=-5., frequency=6000., process)
# Final Limiter
process = limiter(process)
# Audio Output --------------------->
output = process