-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphaune_utils.liq
More file actions
48 lines (30 loc) · 1.32 KB
/
phaune_utils.liq
File metadata and controls
48 lines (30 loc) · 1.32 KB
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
# -*- mode: ocaml -*-
# vi: set ft=ocaml
# Put this script in "/usr/lib/airtime/pypo/bin/liquidsoap_scripts/library"
# Don' t forget to %include this script in "/usr/lib/airtime/pypo/bin/liquidsoap_scripts/library/pervasives.liq"
# Audio processing:
## Define our powerful "phaunepressor":
def phaunepressor(s)
## Define 3-band crossover:
low = filter.iir.eq.low(frequency = 300.)
mh = filter.iir.eq.high(frequency = 300.)
mid = filter.iir.eq.low(frequency = 4000.)
high = filter.iir.eq.high(frequency = 4000.)
## Define compression parameters:
add(normalize = false,
[ compress(attack = 100., release = 300., threshold = -1.,
ratio = 1., gain = 0.4, knee = 1.3, rms_window = 0.5,
low(s)),
compress(attack = 100., release = 300., threshold = -1.,
ratio = 0.8, gain = 0.3, knee =1.3, rms_window = 0.5,
mid(mh(s))),
compress(attack = 100., release = 300., threshold = -1.,
ratio = 1., gain = 0.2, knee = 1.3, rms_window = 0.5,
high(s)),
## Define limiter parameters:
limit(gain = 0.5, ratio = 0.5, attack = 80., release = 800.,
threshold = 0., rms_window = 0.5, (s))
])
end
## You can now use "phaunepressor" as a function in your ls_sript.liq:
## (s) = phaunepressor(s)