-
Notifications
You must be signed in to change notification settings - Fork 3
/
valve.dsp
32 lines (27 loc) · 828 Bytes
/
valve.dsp
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
// dsp algorithm from swh ladspa valve plugin (Steve Harrison)
import("music.lib");
import("guitarix.lib");
vt = valve.vt(dist, q) : neg : valve.vt(dist, q) : neg with
{
q_p = vslider("q", 0, -1.7, 1.7, 0.01);
dist_p = vslider("dist", 0, -2, 2, 0.01);
q = q_p*q_p*q_p;
dist = pow(10,dist_p);
};
vtu = valve.vt(dist, q) with
{
q_p = vslider("q", 0, -1.7, 1.7, 0.01);
dist_p = vslider("dist", 0, -2, 2, 0.01);
q = q_p*q_p*q_p;
dist = pow(10,dist_p);
};
vts(x) = abs(x) : neg : valve.vt(dist, q) : neg : copysign(_,x)
with
{
q_p = vslider("q", 0, -1.7, 1.7, 0.01);
dist_p = vslider("dist", 0, -2, 2, 0.01);
q = q_p*q_p*q_p;
dist = pow(10,dist_p);
copysign = ffunction(float copysign(float,float), <math.h>, "");
};
process = vt;