forked from smoge/gxplugins
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gxamp3.dsp
34 lines (28 loc) · 1.05 KB
/
gxamp3.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
33
34
declare name "amp-t3";
import("music.lib");
import("filter.lib");
import("effect.lib");
import("guitarix.lib");
/****************************************************************
** Tube Preamp Emulation stage 1 - 2
*/
tubestage(tb,fck,Rk) = tube : hpf with {
lpfk = lowpass1(fck);
Ftube = ffunction(float Ftube3(int,float), "valve.h", "");
vplus = 250.0;
divider = 40;
Rp = 100.0e3;
tube = (+ : Ftube(tb)) ~ (-(vplus) : *(Rk/Rp) : lpfk) : /(divider);
hpf = highpass1(31.0);
};
process = hgroup("amp2", hgroup("stage1", stage1) :
hgroup("stage2", stage2)
) with {
preamp = (vslider(".amp2.stage1.Pregain[alias]",0,-20,20,0.1):db2linear : smoothi(0.999));
stage1 = tubestage(0,86.0,2700.0) : *(preamp):*(2.0):
lowpass1(6531.0) : tubestage(1,132.0,1500.0) : *(preamp) :*(2.0);
stage2 = lowpass1(6531.0) : component("amp2.dsp").tubestage(1,194.0,820.0) : *(gain1) :*(2.0)
with {
gain1 = vslider(".amp2.stage2.gain1[alias]", 6, -20.0, 20.0, 0.1) : db2linear : smoothi(0.999);
} ;
};