_id
stringlengths 64
64
| repository
stringlengths 7
61
| name
stringlengths 5
45
| content
stringlengths 0
943k
| download_url
stringlengths 94
213
| language
stringclasses 1
value | comments
stringlengths 0
20.9k
| code
stringlengths 0
943k
|
---|---|---|---|---|---|---|---|
b2c0aa8f522688759524bda2354cf4cf4065c8f20797b8553dc1ef4c8c9910d0 | brummer10/guitarix | eq.dsp | declare id "eq";
declare license "BSD";
declare copyright "(c)GRAME 2006";
import("stdfaust.lib");
import("guitarix.lib");
//------------------------- Process --------------------------------
process = ifilter(vslider("Q31_25", 50, 1, 100, 1), 31.25, vslider("f31_25[tooltip:gain (dB) at 31.25 Hz]", 0, -50, 10, 0.1))
: ifilter(vslider("Q62_5", 50, 1, 100, 1), 62.5, vslider("f62_5 [tooltip:gain (dB) at 62.5 Hz]", 0, -50, 10, 0.1))
: ifilter(vslider("Q125", 50, 1, 100, 1), 125, vslider("f125 [tooltip:gain (dB) at 125 Hz]", 0, -50, 10, 0.1))
: ifilter(vslider("Q250", 50, 1, 100, 1), 250, vslider("f250 [tooltip:gain (dB) at 250 Hz]", 0, -50, 10, 0.1))
: ifilter(vslider("Q500", 50, 1, 100, 1), 500, vslider("f500 [tooltip:gain (dB) at 500 Hz]", 0, -50, 10, 0.1))
: ifilter(vslider("Q1k", 50, 1, 100, 1), 1000, vslider("f1k [tooltip:gain (dB) at 1 kHz]", 0, -50, 10, 0.1))
: ifilter(vslider("Q2k", 50, 1, 100, 1), 2000, vslider("f2k [tooltip:gain (dB) at 2 kHz]", 0, -50, 10, 0.1))
: ifilter(vslider("Q4k", 50, 1, 100, 1), 4000, vslider("f4k [tooltip:gain (dB) at 4 kHz]", 0, -50, 10, 0.1))
: ifilter(vslider("Q8k", 50, 1, 100, 1), 8000, vslider("f8k [tooltip:gain (dB) at 8 kHz]", 0, -50, 10, 0.1))
: ifilter(vslider("Q16k", 50, 1, 100, 1),16000, vslider("f16k [tooltip:gain (dB) at 16 kHz]", 0, -50, 10, 0.1))
;
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/eq.dsp | faust | ------------------------- Process -------------------------------- | declare id "eq";
declare license "BSD";
declare copyright "(c)GRAME 2006";
import("stdfaust.lib");
import("guitarix.lib");
process = ifilter(vslider("Q31_25", 50, 1, 100, 1), 31.25, vslider("f31_25[tooltip:gain (dB) at 31.25 Hz]", 0, -50, 10, 0.1))
: ifilter(vslider("Q62_5", 50, 1, 100, 1), 62.5, vslider("f62_5 [tooltip:gain (dB) at 62.5 Hz]", 0, -50, 10, 0.1))
: ifilter(vslider("Q125", 50, 1, 100, 1), 125, vslider("f125 [tooltip:gain (dB) at 125 Hz]", 0, -50, 10, 0.1))
: ifilter(vslider("Q250", 50, 1, 100, 1), 250, vslider("f250 [tooltip:gain (dB) at 250 Hz]", 0, -50, 10, 0.1))
: ifilter(vslider("Q500", 50, 1, 100, 1), 500, vslider("f500 [tooltip:gain (dB) at 500 Hz]", 0, -50, 10, 0.1))
: ifilter(vslider("Q1k", 50, 1, 100, 1), 1000, vslider("f1k [tooltip:gain (dB) at 1 kHz]", 0, -50, 10, 0.1))
: ifilter(vslider("Q2k", 50, 1, 100, 1), 2000, vslider("f2k [tooltip:gain (dB) at 2 kHz]", 0, -50, 10, 0.1))
: ifilter(vslider("Q4k", 50, 1, 100, 1), 4000, vslider("f4k [tooltip:gain (dB) at 4 kHz]", 0, -50, 10, 0.1))
: ifilter(vslider("Q8k", 50, 1, 100, 1), 8000, vslider("f8k [tooltip:gain (dB) at 8 kHz]", 0, -50, 10, 0.1))
: ifilter(vslider("Q16k", 50, 1, 100, 1),16000, vslider("f16k [tooltip:gain (dB) at 16 kHz]", 0, -50, 10, 0.1))
;
|
e9bb3b68ac7a67196590ead8789f431d5005d7dceee1c5d5c285f0f5aba0164a | brummer10/guitarix | gxamp11.dsp | declare id "12AU7 feedback"; // in amp tube ba.selector
declare name "12AU7 feedback";
import("stdfaust.lib");
import("guitarix.lib");
/****************************************************************
** Tube Preamp Emulation stage 1 - 2
* 12AU7 feedback
*/
val(x) = valve.vt(dist, q(x), x)
with {
dist = 40.1;
q(x) = lp1tm1(x) * 1 - lp2tm1(x) * 1.02 - 1.0 : clip(-1,-0.01);
lp(a) = *(1 - a) : + ~ *(a);
lp1tm1 = abs <: lp(0.9999), _ : max;
avgs = lp1tm1 : avg;
avg_size = ma.SR/9;
avg(x) = x - de.delay1s(avg_size,x) : + ~ _ : /(avg_size);
lp2tm1 = avgs : lp(0.999);
};
tubeax(preamp,gain1) = hgroup("stage1", stage1) :
hgroup("stage2", stage2)
with {
stage1 = tubestage130_10(TB_12AU7_68k,86.0,2700.0,1.257240) : - ~ tubestage130_10(TB_12AU7_250k,132.0,1500.0,0.776162) : *(preamp):
fi.lowpass(1,6531.0) : tubestage130_10(TB_12AU7_250k,132.0,1500.0,0.776162): + ~ tubestage130_10(TB_12AU7_250k,194.0,820.0,0.445487) ;
stage2 = fi.lowpass(1,6531.0) : tubestage130_10(TB_12AU7_250k,194.0,820.0,0.445487) : *(gain1);
} ;
process = val : component("gxdistortion.dsp").dist1(drive,wet_dry) : tubeax(preamp,gain1) with {
drive = ampctrl.drive;
wet_dry = ampctrl.wet_dry;
preamp = ampctrl.preamp;
gain1 = ampctrl.gain1;
/*
drive = vslider(".gxdistortion.drive[alias]",0.35, 0, 1, 0.01);
wet_dry = vslider(".gxdistortion.wet_dry[alias]", 100, 0, 100, 1) : /(100) : smoothi(0.999);
preamp = vslider(".amp2.stage1.Pregain[alias]",0,-20,20,0.1) : ba.db2linear : smoothi(0.999);
gain1 = vslider(".amp2.stage2.gain1[alias]", 6, -20.0, 20.0, 0.1) : ba.db2linear : smoothi(0.999);
*/
} ;
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/gxamp11.dsp | faust | in amp tube ba.selector
***************************************************************
** Tube Preamp Emulation stage 1 - 2
* 12AU7 feedback
drive = vslider(".gxdistortion.drive[alias]",0.35, 0, 1, 0.01);
wet_dry = vslider(".gxdistortion.wet_dry[alias]", 100, 0, 100, 1) : /(100) : smoothi(0.999);
preamp = vslider(".amp2.stage1.Pregain[alias]",0,-20,20,0.1) : ba.db2linear : smoothi(0.999);
gain1 = vslider(".amp2.stage2.gain1[alias]", 6, -20.0, 20.0, 0.1) : ba.db2linear : smoothi(0.999);
| declare name "12AU7 feedback";
import("stdfaust.lib");
import("guitarix.lib");
val(x) = valve.vt(dist, q(x), x)
with {
dist = 40.1;
q(x) = lp1tm1(x) * 1 - lp2tm1(x) * 1.02 - 1.0 : clip(-1,-0.01);
lp(a) = *(1 - a) : + ~ *(a);
lp1tm1 = abs <: lp(0.9999), _ : max;
avgs = lp1tm1 : avg;
avg_size = ma.SR/9;
avg(x) = x - de.delay1s(avg_size,x) : + ~ _ : /(avg_size);
lp2tm1 = avgs : lp(0.999);
};
tubeax(preamp,gain1) = hgroup("stage1", stage1) :
hgroup("stage2", stage2)
with {
stage1 = tubestage130_10(TB_12AU7_68k,86.0,2700.0,1.257240) : - ~ tubestage130_10(TB_12AU7_250k,132.0,1500.0,0.776162) : *(preamp):
fi.lowpass(1,6531.0) : tubestage130_10(TB_12AU7_250k,132.0,1500.0,0.776162): + ~ tubestage130_10(TB_12AU7_250k,194.0,820.0,0.445487) ;
stage2 = fi.lowpass(1,6531.0) : tubestage130_10(TB_12AU7_250k,194.0,820.0,0.445487) : *(gain1);
} ;
process = val : component("gxdistortion.dsp").dist1(drive,wet_dry) : tubeax(preamp,gain1) with {
drive = ampctrl.drive;
wet_dry = ampctrl.wet_dry;
preamp = ampctrl.preamp;
gain1 = ampctrl.gain1;
} ;
|
755e076156385e72291e5edda422376490ab69e0cd57a65345febb2659a7466f | brummer10/guitarix | gxamp13.dsp | declare id "6DJ8 feedback"; // in amp tube ba.selector
declare name "6DJ8 feedback";
import("stdfaust.lib");
import("guitarix.lib");
/****************************************************************
** Tube Preamp Emulation stage 1 - 2
*/
val(x) = valve.vt(dist, q(x), x)
with {
dist = 40.1;
q(x) = lp1tm1(x) * 1 - lp2tm1(x) * 1.02 - 1.0 : clip(-1,-0.01);
lp(a) = *(1 - a) : + ~ *(a);
lp1tm1 = abs <: lp(0.9999), _ : max;
avgs = lp1tm1 : avg;
avg_size = ma.SR/9;
avg(x) = x - de.delay1s(avg_size,x) : + ~ _ : /(avg_size);
lp2tm1 = avgs : lp(0.999);
};
tubeax(preamp,gain1) = hgroup("stage1", stage1) :
hgroup("stage2", stage2)
with {
atten = 0.6;
stage1 = tubestage130_20(TB_6DJ8_68k,86.0,2700.0,1.863946) : - ~ (atten*tubestage130_20(TB_6DJ8_250k,132.0,1500.0,1.271609)) : *(preamp):
fi.lowpass(1,6531.0) : tubestage130_20(TB_6DJ8_250k,132.0,1500.0,1.271609): + ~ (atten*tubestage130_20(TB_6DJ8_250k,194.0,820.0,0.797043));
stage2 = fi.lowpass(1,6531.0) : tubestage130_20(TB_6DJ8_250k,194.0,820.0,0.797043) : *(gain1);
};
process = val : component("gxdistortion.dsp").dist1(drive,wet_dry) : tubeax(preamp,gain1) with {
drive = ampctrl.drive;
wet_dry = ampctrl.wet_dry;
preamp = ampctrl.preamp;
gain1 = ampctrl.gain1;
/*
drive = vslider(".gxdistortion.drive[alias]",0.35, 0, 1, 0.01);
wet_dry = vslider(".gxdistortion.wet_dry[alias]", 100, 0, 100, 1) : /(100) : smoothi(0.999);
preamp = vslider(".amp2.stage1.Pregain[alias]",0,-20,20,0.1) : ba.db2linear : smoothi(0.999);
gain1 = vslider(".amp2.stage2.gain1[alias]", 6, -20.0, 20.0, 0.1) : ba.db2linear : smoothi(0.999);
*/
};
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/gxamp13.dsp | faust | in amp tube ba.selector
***************************************************************
** Tube Preamp Emulation stage 1 - 2
drive = vslider(".gxdistortion.drive[alias]",0.35, 0, 1, 0.01);
wet_dry = vslider(".gxdistortion.wet_dry[alias]", 100, 0, 100, 1) : /(100) : smoothi(0.999);
preamp = vslider(".amp2.stage1.Pregain[alias]",0,-20,20,0.1) : ba.db2linear : smoothi(0.999);
gain1 = vslider(".amp2.stage2.gain1[alias]", 6, -20.0, 20.0, 0.1) : ba.db2linear : smoothi(0.999);
| declare name "6DJ8 feedback";
import("stdfaust.lib");
import("guitarix.lib");
val(x) = valve.vt(dist, q(x), x)
with {
dist = 40.1;
q(x) = lp1tm1(x) * 1 - lp2tm1(x) * 1.02 - 1.0 : clip(-1,-0.01);
lp(a) = *(1 - a) : + ~ *(a);
lp1tm1 = abs <: lp(0.9999), _ : max;
avgs = lp1tm1 : avg;
avg_size = ma.SR/9;
avg(x) = x - de.delay1s(avg_size,x) : + ~ _ : /(avg_size);
lp2tm1 = avgs : lp(0.999);
};
tubeax(preamp,gain1) = hgroup("stage1", stage1) :
hgroup("stage2", stage2)
with {
atten = 0.6;
stage1 = tubestage130_20(TB_6DJ8_68k,86.0,2700.0,1.863946) : - ~ (atten*tubestage130_20(TB_6DJ8_250k,132.0,1500.0,1.271609)) : *(preamp):
fi.lowpass(1,6531.0) : tubestage130_20(TB_6DJ8_250k,132.0,1500.0,1.271609): + ~ (atten*tubestage130_20(TB_6DJ8_250k,194.0,820.0,0.797043));
stage2 = fi.lowpass(1,6531.0) : tubestage130_20(TB_6DJ8_250k,194.0,820.0,0.797043) : *(gain1);
};
process = val : component("gxdistortion.dsp").dist1(drive,wet_dry) : tubeax(preamp,gain1) with {
drive = ampctrl.drive;
wet_dry = ampctrl.wet_dry;
preamp = ampctrl.preamp;
gain1 = ampctrl.gain1;
};
|
6d5296b23b0f65a0f82548fca1a4b0d913baba38e775aa028773a4f45e7b00e5 | brummer10/guitarix | gxamp13_stereo.dsp | declare id "6DJ8 feedback"; // in amp tube ba.selector
declare name "6DJ8 feedback";
import("stdfaust.lib");
import("guitarix.lib");
/****************************************************************
** Tube Preamp Emulation stage 1 - 2
*/
val(x) = valve.vt(dist, q(x), x)
with {
dist = 40.1;
q(x) = lp1tm1(x) * 1 - lp2tm1(x) * 1.02 - 1.0 : clip(-1,-0.01);
lp(a) = *(1 - a) : + ~ *(a);
lp1tm1 = abs <: lp(0.9999), _ : max;
avgs = lp1tm1 : avg;
avg_size = ma.SR/9;
avg(x) = x - de.delay1s(avg_size,x) : + ~ _ : /(avg_size);
lp2tm1 = avgs : lp(0.999);
};
tubeax(preamp,gain1) = hgroup("stage1", stage1) :
hgroup("stage2", stage2)
with {
atten = 0.6;
stage1 = tubestage130_20(TB_6DJ8_68k,86.0,2700.0,1.863946) : - ~ (atten*tubestage130_20(TB_6DJ8_250k,132.0,1500.0,1.271609)) : *(preamp):
fi.lowpass(1,6531.0) : tubestage130_20(TB_6DJ8_250k,132.0,1500.0,1.271609): + ~ (atten*tubestage130_20(TB_6DJ8_250k,194.0,820.0,0.797043));
stage2 = fi.lowpass(1,6531.0) : tubestage130_20(TB_6DJ8_250k,194.0,820.0,0.797043) : *(gain1);
};
amp = val : component("gxdistortion.dsp").dist1(drive,wet_dry) : tubeax(preamp,gain1) with {
drive = ampctrl.drive;
wet_dry = ampctrl.wet_dry;
preamp = ampctrl.preamp;
gain1 = ampctrl.gain1;
/*
drive = vslider(".gxdistortion.drive[alias]",0.35, 0, 1, 0.01);
wet_dry = vslider(".gxdistortion.wet_dry[alias]", 100, 0, 100, 1) : /(100) : smoothi(0.999);
preamp = vslider(".amp2.stage1.Pregain[alias]",0,-20,20,0.1) : ba.db2linear : smoothi(0.999);
gain1 = vslider(".amp2.stage2.gain1[alias]", 6, -20.0, 20.0, 0.1) : ba.db2linear : smoothi(0.999);
*/
};
process = amp,amp;
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/gxamp13_stereo.dsp | faust | in amp tube ba.selector
***************************************************************
** Tube Preamp Emulation stage 1 - 2
drive = vslider(".gxdistortion.drive[alias]",0.35, 0, 1, 0.01);
wet_dry = vslider(".gxdistortion.wet_dry[alias]", 100, 0, 100, 1) : /(100) : smoothi(0.999);
preamp = vslider(".amp2.stage1.Pregain[alias]",0,-20,20,0.1) : ba.db2linear : smoothi(0.999);
gain1 = vslider(".amp2.stage2.gain1[alias]", 6, -20.0, 20.0, 0.1) : ba.db2linear : smoothi(0.999);
| declare name "6DJ8 feedback";
import("stdfaust.lib");
import("guitarix.lib");
val(x) = valve.vt(dist, q(x), x)
with {
dist = 40.1;
q(x) = lp1tm1(x) * 1 - lp2tm1(x) * 1.02 - 1.0 : clip(-1,-0.01);
lp(a) = *(1 - a) : + ~ *(a);
lp1tm1 = abs <: lp(0.9999), _ : max;
avgs = lp1tm1 : avg;
avg_size = ma.SR/9;
avg(x) = x - de.delay1s(avg_size,x) : + ~ _ : /(avg_size);
lp2tm1 = avgs : lp(0.999);
};
tubeax(preamp,gain1) = hgroup("stage1", stage1) :
hgroup("stage2", stage2)
with {
atten = 0.6;
stage1 = tubestage130_20(TB_6DJ8_68k,86.0,2700.0,1.863946) : - ~ (atten*tubestage130_20(TB_6DJ8_250k,132.0,1500.0,1.271609)) : *(preamp):
fi.lowpass(1,6531.0) : tubestage130_20(TB_6DJ8_250k,132.0,1500.0,1.271609): + ~ (atten*tubestage130_20(TB_6DJ8_250k,194.0,820.0,0.797043));
stage2 = fi.lowpass(1,6531.0) : tubestage130_20(TB_6DJ8_250k,194.0,820.0,0.797043) : *(gain1);
};
amp = val : component("gxdistortion.dsp").dist1(drive,wet_dry) : tubeax(preamp,gain1) with {
drive = ampctrl.drive;
wet_dry = ampctrl.wet_dry;
preamp = ampctrl.preamp;
gain1 = ampctrl.gain1;
};
process = amp,amp;
|
1d2332c7884151abc124918e14e9ca1bd90e1304555e35f0f271e4b7f2ac6bef | brummer10/guitarix | gxamp9.dsp | declare id "12ax7 feedback"; // in amp tube ba.selector
declare name "12ax7 feedback";
import("stdfaust.lib");
import("guitarix.lib");
/****************************************************************
** Tube Preamp Emulation stage 1 - 2
* 12ax7 feedback
*/
val(x) = valve.vt(dist, q(x), x)
with {
dist = 40.1;
q(x) = lp1tm1(x) * 1 - lp2tm1(x) * 1.02 - 1.0 : clip(-1,-0.01);
lp(a) = *(1 - a) : + ~ *(a);
lp1tm1 = abs <: lp(0.9999), _ : max;
avgs = lp1tm1 : avg;
avg_size = ma.SR/9;
avg(x) = x - de.delay1s(avg_size,x) : + ~ _ : /(avg_size);
lp2tm1 = avgs : lp(0.999);
};
tubeax(preamp,gain1) = hgroup("stage1", stage1) :
hgroup("stage2", stage2)
with {
atten = 0.6;
stage1 = tubestage(TB_12AX7_68k,86.0,2700.0,1.581656) : - ~ (atten*tubestage(TB_12AX7_250k,132.0,1500.0,1.204285)) : *(preamp):
fi.lowpass(1,6531.0) : tubestage(TB_12AX7_250k,132.0,1500.0,1.204285): + ~ (atten*tubestage(TB_12AX7_250k,194.0,820.0,0.840702));
stage2 = fi.lowpass(1,6531.0) : tubestage(TB_12AX7_250k,194.0,820.0,0.840702) : *(gain1);
} ;
process = val : component("gxdistortion.dsp").dist1(drive,wet_dry) : tubeax(preamp,gain1) with {
drive = ampctrl.drive;
wet_dry = ampctrl.wet_dry;
preamp = ampctrl.preamp;
gain1 = ampctrl.gain1;
/*
drive = vslider(".gxdistortion.drive[alias]",0.35, 0, 1, 0.01);
wet_dry = vslider(".gxdistortion.wet_dry[alias]", 100, 0, 100, 1) : /(100) : smoothi(0.999);
preamp = vslider(".amp2.stage1.Pregain[alias]",0,-20,20,0.1) : ba.db2linear : smoothi(0.999);
gain1 = vslider(".amp2.stage2.gain1[alias]", 6, -20.0, 20.0, 0.1) : ba.db2linear : smoothi(0.999);
*/
};
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/gxamp9.dsp | faust | in amp tube ba.selector
***************************************************************
** Tube Preamp Emulation stage 1 - 2
* 12ax7 feedback
drive = vslider(".gxdistortion.drive[alias]",0.35, 0, 1, 0.01);
wet_dry = vslider(".gxdistortion.wet_dry[alias]", 100, 0, 100, 1) : /(100) : smoothi(0.999);
preamp = vslider(".amp2.stage1.Pregain[alias]",0,-20,20,0.1) : ba.db2linear : smoothi(0.999);
gain1 = vslider(".amp2.stage2.gain1[alias]", 6, -20.0, 20.0, 0.1) : ba.db2linear : smoothi(0.999);
| declare name "12ax7 feedback";
import("stdfaust.lib");
import("guitarix.lib");
val(x) = valve.vt(dist, q(x), x)
with {
dist = 40.1;
q(x) = lp1tm1(x) * 1 - lp2tm1(x) * 1.02 - 1.0 : clip(-1,-0.01);
lp(a) = *(1 - a) : + ~ *(a);
lp1tm1 = abs <: lp(0.9999), _ : max;
avgs = lp1tm1 : avg;
avg_size = ma.SR/9;
avg(x) = x - de.delay1s(avg_size,x) : + ~ _ : /(avg_size);
lp2tm1 = avgs : lp(0.999);
};
tubeax(preamp,gain1) = hgroup("stage1", stage1) :
hgroup("stage2", stage2)
with {
atten = 0.6;
stage1 = tubestage(TB_12AX7_68k,86.0,2700.0,1.581656) : - ~ (atten*tubestage(TB_12AX7_250k,132.0,1500.0,1.204285)) : *(preamp):
fi.lowpass(1,6531.0) : tubestage(TB_12AX7_250k,132.0,1500.0,1.204285): + ~ (atten*tubestage(TB_12AX7_250k,194.0,820.0,0.840702));
stage2 = fi.lowpass(1,6531.0) : tubestage(TB_12AX7_250k,194.0,820.0,0.840702) : *(gain1);
} ;
process = val : component("gxdistortion.dsp").dist1(drive,wet_dry) : tubeax(preamp,gain1) with {
drive = ampctrl.drive;
wet_dry = ampctrl.wet_dry;
preamp = ampctrl.preamp;
gain1 = ampctrl.gain1;
};
|
dfa14c98f049bfc6217faee31527e873dc3ba24c9919a7032ae4ed21f68e9e45 | brummer10/guitarix | gxamp5.dsp | declare id "pre 12ax7/ master 6V6"; // in amp tube ba.selector
declare name "pre 12ax7/ master 6V6";
declare samplerate "96000";
import("stdfaust.lib");
import("guitarix.lib");
/****************************************************************
** Tube Preamp Emulation stage 1 - 2
*/
bifilter = fi.tf2(b0,b1,b2,a1,a2) with
{
c = 1.059;
R = 0.9221;
lc0 = 0.00506158;
lc1 = 0.06446806;
lc2 = 0.27547621;
lc3 = 0.43359433;
lc4 = 1.31282248;
lc5 = 0.07238887;
fc = 1200 : *(2*ma.PI/ma.SR) : log;
p = lc0*pow(fc,5) + lc1*pow(fc,4) + lc2*pow(fc,3) + lc3*pow(fc,2) + lc4*fc + lc5 : exp;
//b0 = 1;
//b1 = -1.01;
//b2 = 0;
//a1 = -1.84;
//a2 = 0.846416;
b0 = 1;
b1 = -c;
b2 = 0;
a1 = -2*R*cos(p);
a2 = R*R;
};
process = hgroup("stage1", stage1) :
component("gxdistortion.dsp").dist(drive,wet_dry) :
hgroup("stage2", stage2)
with {
drive = ampctrl.drive;
wet_dry = ampctrl.wet_dry;
preamp = ampctrl.preamp;
/*
drive = vslider(".gxdistortion.drive[alias]",0.35, 0, 1, 0.01);
wet_dry = vslider(".gxdistortion.wet_dry[alias]", 100, 0, 100, 1) : /(100) : smoothi(0.999);
preamp = vslider(".amp2.stage1.Pregain[alias]",0,-20,20,0.1) : ba.db2linear : smoothi(0.999);
*/
stage1 = *(preamp): tubestage(TB_12AX7_68k,86.0,2700.0,1.581656):
fi.lowpass(1,6531.0) : tubestage(TB_12AX7_250k,132.0,1500.0,1.204285):tubestage(TB_12AX7_250k,194.0,820.0,0.840703);
stage2 = fi.lowpass(1,6531.0) : *(gain1) <: (tubestage(TB_6V6_250k,6531.0,820.0,0.962132),tubestage(TB_6V6_68k,6531.0,820.0,0.963342)) :>_
with {
gain1 = ampctrl.gain1;
/*
gain1 = vslider(".amp2.stage2.gain1[alias]", 6, -20.0, 20.0, 0.1) : ba.db2linear : smoothi(0.999);
*/
};
};
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/gxamp5.dsp | faust | in amp tube ba.selector
***************************************************************
** Tube Preamp Emulation stage 1 - 2
b0 = 1;
b1 = -1.01;
b2 = 0;
a1 = -1.84;
a2 = 0.846416;
drive = vslider(".gxdistortion.drive[alias]",0.35, 0, 1, 0.01);
wet_dry = vslider(".gxdistortion.wet_dry[alias]", 100, 0, 100, 1) : /(100) : smoothi(0.999);
preamp = vslider(".amp2.stage1.Pregain[alias]",0,-20,20,0.1) : ba.db2linear : smoothi(0.999);
gain1 = vslider(".amp2.stage2.gain1[alias]", 6, -20.0, 20.0, 0.1) : ba.db2linear : smoothi(0.999);
| declare name "pre 12ax7/ master 6V6";
declare samplerate "96000";
import("stdfaust.lib");
import("guitarix.lib");
bifilter = fi.tf2(b0,b1,b2,a1,a2) with
{
c = 1.059;
R = 0.9221;
lc0 = 0.00506158;
lc1 = 0.06446806;
lc2 = 0.27547621;
lc3 = 0.43359433;
lc4 = 1.31282248;
lc5 = 0.07238887;
fc = 1200 : *(2*ma.PI/ma.SR) : log;
p = lc0*pow(fc,5) + lc1*pow(fc,4) + lc2*pow(fc,3) + lc3*pow(fc,2) + lc4*fc + lc5 : exp;
b0 = 1;
b1 = -c;
b2 = 0;
a1 = -2*R*cos(p);
a2 = R*R;
};
process = hgroup("stage1", stage1) :
component("gxdistortion.dsp").dist(drive,wet_dry) :
hgroup("stage2", stage2)
with {
drive = ampctrl.drive;
wet_dry = ampctrl.wet_dry;
preamp = ampctrl.preamp;
stage1 = *(preamp): tubestage(TB_12AX7_68k,86.0,2700.0,1.581656):
fi.lowpass(1,6531.0) : tubestage(TB_12AX7_250k,132.0,1500.0,1.204285):tubestage(TB_12AX7_250k,194.0,820.0,0.840703);
stage2 = fi.lowpass(1,6531.0) : *(gain1) <: (tubestage(TB_6V6_250k,6531.0,820.0,0.962132),tubestage(TB_6V6_68k,6531.0,820.0,0.963342)) :>_
with {
gain1 = ampctrl.gain1;
};
};
|
4088615c06f3b8b9b03a6df86cf23d63714d2c89f1ad9f6e2f210d7d2f2e07fd | brummer10/guitarix | gxamp4.dsp | declare id "pre 12AU7/ master 6V6"; // in amp tube ba.selector
declare name "pre 12AU7/ master 6V6";
declare samplerate "96000";
import("stdfaust.lib");
import("guitarix.lib");
/****************************************************************
** Tube Preamp Emulation stage 1 - 2
*/
bifilter = fi.tf2(b0,b1,b2,a1,a2) with
{
c = 1.059;
R = 0.9221;
lc0 = 0.00506158;
lc1 = 0.06446806;
lc2 = 0.27547621;
lc3 = 0.43359433;
lc4 = 1.31282248;
lc5 = 0.07238887;
fc = 1200 : *(2*ma.PI/ma.SR) : log;
p = lc0*pow(fc,5) + lc1*pow(fc,4) + lc2*pow(fc,3) + lc3*pow(fc,2) + lc4*fc + lc5 : exp;
//b0 = 1;
//b1 = -1.01;
//b2 = 0;
//a1 = -1.84;
//a2 = 0.846416;
b0 = 1;
b1 = -c;
b2 = 0;
a1 = -2*R*cos(p);
a2 = R*R;
};
process = hgroup("stage1", stage1) :
component("gxdistortion.dsp").dist(drive,wet_dry) :
hgroup("stage2", stage2)
with {
drive = ampctrl.drive;
wet_dry = ampctrl.wet_dry;
preamp = ampctrl.preamp;
/*
drive = vslider(".gxdistortion.drive[alias]",0.35, 0, 1, 0.01);
wet_dry = vslider(".gxdistortion.wet_dry[alias]", 100, 0, 100, 1) : /(100) : smoothi(0.999);
preamp = vslider(".amp2.stage1.Pregain[alias]",0,-20,20,0.1) : ba.db2linear : smoothi(0.999);
*/
stage1 = *(preamp): tubestage130_10(TB_12AU7_68k,86.0,2700.0,1.257240) :
fi.lowpass(1,6531.0) : tubestage130_10(TB_12AU7_250k,132.0,1500.0,0.776162): tubestage130_10(TB_12AU7_250k,194.0,820.0,0.445487);
stage2 = fi.lowpass(1,6531.0) : *(gain1) <: (tubestage(TB_6V6_250k,6531.0,820.0,0.962132),tubestage(TB_6V6_68k,6531.0,820.0,0.963342)) :>_
with {
gain1 = ampctrl.gain1;
/*
gain1 = vslider(".amp2.stage2.gain1[alias]", 6, -20.0, 20.0, 0.1) : ba.db2linear : smoothi(0.999);
*/
};
};
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/gxamp4.dsp | faust | in amp tube ba.selector
***************************************************************
** Tube Preamp Emulation stage 1 - 2
b0 = 1;
b1 = -1.01;
b2 = 0;
a1 = -1.84;
a2 = 0.846416;
drive = vslider(".gxdistortion.drive[alias]",0.35, 0, 1, 0.01);
wet_dry = vslider(".gxdistortion.wet_dry[alias]", 100, 0, 100, 1) : /(100) : smoothi(0.999);
preamp = vslider(".amp2.stage1.Pregain[alias]",0,-20,20,0.1) : ba.db2linear : smoothi(0.999);
gain1 = vslider(".amp2.stage2.gain1[alias]", 6, -20.0, 20.0, 0.1) : ba.db2linear : smoothi(0.999);
| declare name "pre 12AU7/ master 6V6";
declare samplerate "96000";
import("stdfaust.lib");
import("guitarix.lib");
bifilter = fi.tf2(b0,b1,b2,a1,a2) with
{
c = 1.059;
R = 0.9221;
lc0 = 0.00506158;
lc1 = 0.06446806;
lc2 = 0.27547621;
lc3 = 0.43359433;
lc4 = 1.31282248;
lc5 = 0.07238887;
fc = 1200 : *(2*ma.PI/ma.SR) : log;
p = lc0*pow(fc,5) + lc1*pow(fc,4) + lc2*pow(fc,3) + lc3*pow(fc,2) + lc4*fc + lc5 : exp;
b0 = 1;
b1 = -c;
b2 = 0;
a1 = -2*R*cos(p);
a2 = R*R;
};
process = hgroup("stage1", stage1) :
component("gxdistortion.dsp").dist(drive,wet_dry) :
hgroup("stage2", stage2)
with {
drive = ampctrl.drive;
wet_dry = ampctrl.wet_dry;
preamp = ampctrl.preamp;
stage1 = *(preamp): tubestage130_10(TB_12AU7_68k,86.0,2700.0,1.257240) :
fi.lowpass(1,6531.0) : tubestage130_10(TB_12AU7_250k,132.0,1500.0,0.776162): tubestage130_10(TB_12AU7_250k,194.0,820.0,0.445487);
stage2 = fi.lowpass(1,6531.0) : *(gain1) <: (tubestage(TB_6V6_250k,6531.0,820.0,0.962132),tubestage(TB_6V6_68k,6531.0,820.0,0.963342)) :>_
with {
gain1 = ampctrl.gain1;
};
};
|
8d219d729bd07344cf15e8d0dd690a3b9ad3683538d6782eefe35befb36320e1 | brummer10/guitarix | gxamp5_stereo.dsp | declare id "pre 12ax7/ master 6V6"; // in amp tube ba.selector
declare name "pre 12ax7/ master 6V6";
import("stdfaust.lib");
import("guitarix.lib");
/****************************************************************
** Tube Preamp Emulation stage 1 - 2
*/
bifilter = fi.tf2(b0,b1,b2,a1,a2) with
{
c = 1.059;
R = 0.9221;
lc0 = 0.00506158;
lc1 = 0.06446806;
lc2 = 0.27547621;
lc3 = 0.43359433;
lc4 = 1.31282248;
lc5 = 0.07238887;
fc = 1200 : *(2*ma.PI/ma.SR) : log;
p = lc0*pow(fc,5) + lc1*pow(fc,4) + lc2*pow(fc,3) + lc3*pow(fc,2) + lc4*fc + lc5 : exp;
//b0 = 1;
//b1 = -1.01;
//b2 = 0;
//a1 = -1.84;
//a2 = 0.846416;
b0 = 1;
b1 = -c;
b2 = 0;
a1 = -2*R*cos(p);
a2 = R*R;
};
amp = hgroup("stage1", stage1) :
component("gxdistortion.dsp").dist(drive,wet_dry) :
hgroup("stage2", stage2)
with {
drive = ampctrl.drive;
wet_dry = ampctrl.wet_dry;
preamp = ampctrl.preamp;
/*
drive = vslider(".gxdistortion.drive[alias]",0.35, 0, 1, 0.01);
wet_dry = vslider(".gxdistortion.wet_dry[alias]", 100, 0, 100, 1) : /(100) : smoothi(0.999);
preamp = vslider(".amp2.stage1.Pregain[alias]",0,-20,20,0.1) : ba.db2linear : smoothi(0.999);
*/
stage1 = *(preamp): tubestage(TB_12AX7_68k,86.0,2700.0,1.581656):
fi.lowpass(1,6531.0) : tubestage(TB_12AX7_250k,132.0,1500.0,1.204285):tubestage(TB_12AX7_250k,194.0,820.0,0.840703);
stage2 = fi.lowpass(1,6531.0) : *(gain1) <: (tubestage(TB_6V6_250k,6531.0,820.0,1.130462),tubestage(TB_6V6_68k,6531.0,820.0,1.130740)) :>_
with {
gain1 = ampctrl.gain1;
/*
gain1 = vslider(".amp2.stage2.gain1[alias]", 6, -20.0, 20.0, 0.1) : ba.db2linear : smoothi(0.999);
*/
};
};
process = amp,amp;
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/gxamp5_stereo.dsp | faust | in amp tube ba.selector
***************************************************************
** Tube Preamp Emulation stage 1 - 2
b0 = 1;
b1 = -1.01;
b2 = 0;
a1 = -1.84;
a2 = 0.846416;
drive = vslider(".gxdistortion.drive[alias]",0.35, 0, 1, 0.01);
wet_dry = vslider(".gxdistortion.wet_dry[alias]", 100, 0, 100, 1) : /(100) : smoothi(0.999);
preamp = vslider(".amp2.stage1.Pregain[alias]",0,-20,20,0.1) : ba.db2linear : smoothi(0.999);
gain1 = vslider(".amp2.stage2.gain1[alias]", 6, -20.0, 20.0, 0.1) : ba.db2linear : smoothi(0.999);
| declare name "pre 12ax7/ master 6V6";
import("stdfaust.lib");
import("guitarix.lib");
bifilter = fi.tf2(b0,b1,b2,a1,a2) with
{
c = 1.059;
R = 0.9221;
lc0 = 0.00506158;
lc1 = 0.06446806;
lc2 = 0.27547621;
lc3 = 0.43359433;
lc4 = 1.31282248;
lc5 = 0.07238887;
fc = 1200 : *(2*ma.PI/ma.SR) : log;
p = lc0*pow(fc,5) + lc1*pow(fc,4) + lc2*pow(fc,3) + lc3*pow(fc,2) + lc4*fc + lc5 : exp;
b0 = 1;
b1 = -c;
b2 = 0;
a1 = -2*R*cos(p);
a2 = R*R;
};
amp = hgroup("stage1", stage1) :
component("gxdistortion.dsp").dist(drive,wet_dry) :
hgroup("stage2", stage2)
with {
drive = ampctrl.drive;
wet_dry = ampctrl.wet_dry;
preamp = ampctrl.preamp;
stage1 = *(preamp): tubestage(TB_12AX7_68k,86.0,2700.0,1.581656):
fi.lowpass(1,6531.0) : tubestage(TB_12AX7_250k,132.0,1500.0,1.204285):tubestage(TB_12AX7_250k,194.0,820.0,0.840703);
stage2 = fi.lowpass(1,6531.0) : *(gain1) <: (tubestage(TB_6V6_250k,6531.0,820.0,1.130462),tubestage(TB_6V6_68k,6531.0,820.0,1.130740)) :>_
with {
gain1 = ampctrl.gain1;
};
};
process = amp,amp;
|
83bc89997a0fd938d4cdb4b20855ed53933a5b4af9a197321812128e32ed4d7a | brummer10/guitarix | gxtubetremelo.dsp | declare name "Tube Tremolo";
declare category "Modulation";
/*
** Model of a vactrol tremolo unit by "transmogrify"
** c.f. http://sourceforge.net/apps/phpbb/guitarix/viewtopic.php?f=7&t=44&p=233&hilit=transmogrifox#p233
** http://transmogrifox.webs.com/vactrol.m
*/
import("stdfaust.lib");
import("redeye.lib");
/* vactrol model */
R1 = 2700;
Ra = 1e6;
Rb = 300;
b = exp(log(Ra)/log(Rb)) - exp(1);
dTC = 0.06;
minTC = log(0.005/dTC);
cds = ((_ <: _,_),_ : _+(1-alpha)*_) ~ (_<:*(alpha)) with {
iSR = 1/ma.SR;
dRC = dTC * exp(*(minTC));
alpha = 1 - iSR / (dRC + iSR);
};
vactrol = pow(_,1.9) : cds : *(b) + exp(1) : exp(log(Ra)/log) : R1/(_ + R1);
/* os.triangle oscillator (not bandlimited, frequency is approximate) */
trianglewave(freq) = _ ~ (_ <: _ + hyst) : /(periodsamps) with {
if(c,t,e) = select2(c,e,t);
hyst(x) = if(_ > 0, 2 * (x < periodsamps) - 1, 1 - 2 * (x > 0)) ~ _;
periodsamps = int(ma.SR / (2*float(freq)));
};
/* tremolo unit, using os.triangle or sine oscillator as lfo */
tremolo(freq, depth) = lfo * depth + 1 - depth : vactrol with {
sine(freq) = (os.oscs(freq) + 1) / 2 : max(0); // max(0) because of numerical inaccuracy
SINE=checkbox("SINEWAVE[enum:os.triangle|sine]");
lfo = select2(SINE, trianglewave(freq), sine(freq));
};
output = vslider("output[style:knob]", 0.0, -20.0, 20.0, 0.1):ba.db2linear:si.smooth(0.993);
amp = input12ax7:*(tremolo(vslider("speed[style:knob]",5,0.1,14,0.1),vslider("depth[style:knob]",0.5,0,1,0.01))):output12ax7:*(output);
freq_split = fi.filterbank(3, (86.0,210.0,1200.0,6531.0));
process = freq_split: ( amp , amp , amp, amp, amp) :>_;
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/gxtubetremelo.dsp | faust |
** Model of a vactrol tremolo unit by "transmogrify"
** c.f. http://sourceforge.net/apps/phpbb/guitarix/viewtopic.php?f=7&t=44&p=233&hilit=transmogrifox#p233
** http://transmogrifox.webs.com/vactrol.m
vactrol model
os.triangle oscillator (not bandlimited, frequency is approximate)
tremolo unit, using os.triangle or sine oscillator as lfo
max(0) because of numerical inaccuracy | declare name "Tube Tremolo";
declare category "Modulation";
import("stdfaust.lib");
import("redeye.lib");
R1 = 2700;
Ra = 1e6;
Rb = 300;
b = exp(log(Ra)/log(Rb)) - exp(1);
dTC = 0.06;
minTC = log(0.005/dTC);
cds = ((_ <: _,_),_ : _+(1-alpha)*_) ~ (_<:*(alpha)) with {
iSR = 1/ma.SR;
dRC = dTC * exp(*(minTC));
alpha = 1 - iSR / (dRC + iSR);
};
vactrol = pow(_,1.9) : cds : *(b) + exp(1) : exp(log(Ra)/log) : R1/(_ + R1);
trianglewave(freq) = _ ~ (_ <: _ + hyst) : /(periodsamps) with {
if(c,t,e) = select2(c,e,t);
hyst(x) = if(_ > 0, 2 * (x < periodsamps) - 1, 1 - 2 * (x > 0)) ~ _;
periodsamps = int(ma.SR / (2*float(freq)));
};
tremolo(freq, depth) = lfo * depth + 1 - depth : vactrol with {
SINE=checkbox("SINEWAVE[enum:os.triangle|sine]");
lfo = select2(SINE, trianglewave(freq), sine(freq));
};
output = vslider("output[style:knob]", 0.0, -20.0, 20.0, 0.1):ba.db2linear:si.smooth(0.993);
amp = input12ax7:*(tremolo(vslider("speed[style:knob]",5,0.1,14,0.1),vslider("depth[style:knob]",0.5,0,1,0.01))):output12ax7:*(output);
freq_split = fi.filterbank(3, (86.0,210.0,1200.0,6531.0));
process = freq_split: ( amp , amp , amp, amp, amp) :>_;
|
6dcac5d53b4c90fe3708bb3dfdf3ab8f143d3cb207c4dd9c69796afc8fd45778 | brummer10/guitarix | gxamp4_stereo.dsp | declare id "pre 12AU7/ master 6V6"; // in amp tube ba.selector
declare name "pre 12AU7/ master 6V6";
import("stdfaust.lib");
import("guitarix.lib");
/****************************************************************
** Tube Preamp Emulation stage 1 - 2
*/
bifilter = fi.tf2(b0,b1,b2,a1,a2) with
{
c = 1.059;
R = 0.9221;
lc0 = 0.00506158;
lc1 = 0.06446806;
lc2 = 0.27547621;
lc3 = 0.43359433;
lc4 = 1.31282248;
lc5 = 0.07238887;
fc = 1200 : *(2*ma.PI/ma.SR) : log;
p = lc0*pow(fc,5) + lc1*pow(fc,4) + lc2*pow(fc,3) + lc3*pow(fc,2) + lc4*fc + lc5 : exp;
//b0 = 1;
//b1 = -1.01;
//b2 = 0;
//a1 = -1.84;
//a2 = 0.846416;
b0 = 1;
b1 = -c;
b2 = 0;
a1 = -2*R*cos(p);
a2 = R*R;
};
amp = hgroup("stage1", stage1) :
component("gxdistortion.dsp").dist(drive,wet_dry) :
hgroup("stage2", stage2)
with {
drive = ampctrl.drive;
wet_dry = ampctrl.wet_dry;
preamp = ampctrl.preamp;
/*
drive = vslider(".gxdistortion.drive[alias]",0.35, 0, 1, 0.01);
wet_dry = vslider(".gxdistortion.wet_dry[alias]", 100, 0, 100, 1) : /(100) : smoothi(0.999);
preamp = vslider(".amp2.stage1.Pregain[alias]",0,-20,20,0.1) : ba.db2linear : smoothi(0.999);
*/
stage1 = *(preamp): tubestage130_10(TB_12AU7_68k,86.0,2700.0,1.257240) :
fi.lowpass(1,6531.0) : tubestage130_10(TB_12AU7_250k,132.0,1500.0,0.776162): tubestage130_10(TB_12AU7_250k,194.0,820.0,0.445487);
stage2 = fi.lowpass(1,6531.0) : *(gain1) <: (tubestage(TB_6V6_250k,6531.0,820.0,1.130462),tubestage(TB_6V6_68k,6531.0,820.0,1.130740)) :>_
with {
gain1 = ampctrl.gain1;
/*
gain1 = vslider(".amp2.stage2.gain1[alias]", 6, -20.0, 20.0, 0.1) : ba.db2linear : smoothi(0.999);
*/
};
};
process = amp,amp;
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/gxamp4_stereo.dsp | faust | in amp tube ba.selector
***************************************************************
** Tube Preamp Emulation stage 1 - 2
b0 = 1;
b1 = -1.01;
b2 = 0;
a1 = -1.84;
a2 = 0.846416;
drive = vslider(".gxdistortion.drive[alias]",0.35, 0, 1, 0.01);
wet_dry = vslider(".gxdistortion.wet_dry[alias]", 100, 0, 100, 1) : /(100) : smoothi(0.999);
preamp = vslider(".amp2.stage1.Pregain[alias]",0,-20,20,0.1) : ba.db2linear : smoothi(0.999);
gain1 = vslider(".amp2.stage2.gain1[alias]", 6, -20.0, 20.0, 0.1) : ba.db2linear : smoothi(0.999);
| declare name "pre 12AU7/ master 6V6";
import("stdfaust.lib");
import("guitarix.lib");
bifilter = fi.tf2(b0,b1,b2,a1,a2) with
{
c = 1.059;
R = 0.9221;
lc0 = 0.00506158;
lc1 = 0.06446806;
lc2 = 0.27547621;
lc3 = 0.43359433;
lc4 = 1.31282248;
lc5 = 0.07238887;
fc = 1200 : *(2*ma.PI/ma.SR) : log;
p = lc0*pow(fc,5) + lc1*pow(fc,4) + lc2*pow(fc,3) + lc3*pow(fc,2) + lc4*fc + lc5 : exp;
b0 = 1;
b1 = -c;
b2 = 0;
a1 = -2*R*cos(p);
a2 = R*R;
};
amp = hgroup("stage1", stage1) :
component("gxdistortion.dsp").dist(drive,wet_dry) :
hgroup("stage2", stage2)
with {
drive = ampctrl.drive;
wet_dry = ampctrl.wet_dry;
preamp = ampctrl.preamp;
stage1 = *(preamp): tubestage130_10(TB_12AU7_68k,86.0,2700.0,1.257240) :
fi.lowpass(1,6531.0) : tubestage130_10(TB_12AU7_250k,132.0,1500.0,0.776162): tubestage130_10(TB_12AU7_250k,194.0,820.0,0.445487);
stage2 = fi.lowpass(1,6531.0) : *(gain1) <: (tubestage(TB_6V6_250k,6531.0,820.0,1.130462),tubestage(TB_6V6_68k,6531.0,820.0,1.130740)) :>_
with {
gain1 = ampctrl.gain1;
};
};
process = amp,amp;
|
d11e9ca79d7aab58d0471f37174b3738552ca3f7ef65fdd7266cf9fe366c8b81 | brummer10/guitarix | gxamp5.dsp | declare id "pre 12ax7/ master 6V6"; // in amp tube ba.selector
declare name "pre 12ax7/ master 6V6";
import("stdfaust.lib");
import("guitarix.lib");
/****************************************************************
** Tube Preamp Emulation stage 1 - 2
*/
bifilter = fi.tf2(b0,b1,b2,a1,a2) with
{
c = 1.059;
R = 0.9221;
lc0 = 0.00506158;
lc1 = 0.06446806;
lc2 = 0.27547621;
lc3 = 0.43359433;
lc4 = 1.31282248;
lc5 = 0.07238887;
fc = 1200 : *(2*ma.PI/ma.SR) : log;
p = lc0*pow(fc,5) + lc1*pow(fc,4) + lc2*pow(fc,3) + lc3*pow(fc,2) + lc4*fc + lc5 : exp;
//b0 = 1;
//b1 = -1.01;
//b2 = 0;
//a1 = -1.84;
//a2 = 0.846416;
b0 = 1;
b1 = -c;
b2 = 0;
a1 = -2*R*cos(p);
a2 = R*R;
};
process = hgroup("stage1", stage1) :
component("gxdistortion.dsp").dist(drive,wet_dry) :
hgroup("stage2", stage2)
with {
drive = ampctrl.drive;
wet_dry = ampctrl.wet_dry;
preamp = ampctrl.preamp;
/*
drive = vslider(".gxdistortion.drive[alias]",0.35, 0, 1, 0.01);
wet_dry = vslider(".gxdistortion.wet_dry[alias]", 100, 0, 100, 1) : /(100) : smoothi(0.999);
preamp = vslider(".amp2.stage1.Pregain[alias]",0,-20,20,0.1) : ba.db2linear : smoothi(0.999);
*/
stage1 = *(preamp): tubestage(TB_12AX7_68k,86.0,2700.0,1.581656):
fi.lowpass(1,6531.0) : tubestage(TB_12AX7_250k,132.0,1500.0,1.204285):tubestage(TB_12AX7_250k,194.0,820.0,0.840703);
stage2 = fi.lowpass(1,6531.0) : *(gain1) <: (tubestage(TB_6V6_250k,6531.0,820.0,1.130462),tubestage(TB_6V6_68k,6531.0,820.0,1.130740)) :>_
with {
gain1 = ampctrl.gain1;
/*
gain1 = vslider(".amp2.stage2.gain1[alias]", 6, -20.0, 20.0, 0.1) : ba.db2linear : smoothi(0.999);
*/
};
};
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/gxamp5.dsp | faust | in amp tube ba.selector
***************************************************************
** Tube Preamp Emulation stage 1 - 2
b0 = 1;
b1 = -1.01;
b2 = 0;
a1 = -1.84;
a2 = 0.846416;
drive = vslider(".gxdistortion.drive[alias]",0.35, 0, 1, 0.01);
wet_dry = vslider(".gxdistortion.wet_dry[alias]", 100, 0, 100, 1) : /(100) : smoothi(0.999);
preamp = vslider(".amp2.stage1.Pregain[alias]",0,-20,20,0.1) : ba.db2linear : smoothi(0.999);
gain1 = vslider(".amp2.stage2.gain1[alias]", 6, -20.0, 20.0, 0.1) : ba.db2linear : smoothi(0.999);
| declare name "pre 12ax7/ master 6V6";
import("stdfaust.lib");
import("guitarix.lib");
bifilter = fi.tf2(b0,b1,b2,a1,a2) with
{
c = 1.059;
R = 0.9221;
lc0 = 0.00506158;
lc1 = 0.06446806;
lc2 = 0.27547621;
lc3 = 0.43359433;
lc4 = 1.31282248;
lc5 = 0.07238887;
fc = 1200 : *(2*ma.PI/ma.SR) : log;
p = lc0*pow(fc,5) + lc1*pow(fc,4) + lc2*pow(fc,3) + lc3*pow(fc,2) + lc4*fc + lc5 : exp;
b0 = 1;
b1 = -c;
b2 = 0;
a1 = -2*R*cos(p);
a2 = R*R;
};
process = hgroup("stage1", stage1) :
component("gxdistortion.dsp").dist(drive,wet_dry) :
hgroup("stage2", stage2)
with {
drive = ampctrl.drive;
wet_dry = ampctrl.wet_dry;
preamp = ampctrl.preamp;
stage1 = *(preamp): tubestage(TB_12AX7_68k,86.0,2700.0,1.581656):
fi.lowpass(1,6531.0) : tubestage(TB_12AX7_250k,132.0,1500.0,1.204285):tubestage(TB_12AX7_250k,194.0,820.0,0.840703);
stage2 = fi.lowpass(1,6531.0) : *(gain1) <: (tubestage(TB_6V6_250k,6531.0,820.0,1.130462),tubestage(TB_6V6_68k,6531.0,820.0,1.130740)) :>_
with {
gain1 = ampctrl.gain1;
};
};
|
6b0fec3ac92042423fead56996f5b9f1b982cda4f5c2d7534ddbf56bdf7d0a1d | brummer10/guitarix | gxamp4.dsp | declare id "pre 12AU7/ master 6V6"; // in amp tube ba.selector
declare name "pre 12AU7/ master 6V6";
import("stdfaust.lib");
import("guitarix.lib");
/****************************************************************
** Tube Preamp Emulation stage 1 - 2
*/
bifilter = fi.tf2(b0,b1,b2,a1,a2) with
{
c = 1.059;
R = 0.9221;
lc0 = 0.00506158;
lc1 = 0.06446806;
lc2 = 0.27547621;
lc3 = 0.43359433;
lc4 = 1.31282248;
lc5 = 0.07238887;
fc = 1200 : *(2*ma.PI/ma.SR) : log;
p = lc0*pow(fc,5) + lc1*pow(fc,4) + lc2*pow(fc,3) + lc3*pow(fc,2) + lc4*fc + lc5 : exp;
//b0 = 1;
//b1 = -1.01;
//b2 = 0;
//a1 = -1.84;
//a2 = 0.846416;
b0 = 1;
b1 = -c;
b2 = 0;
a1 = -2*R*cos(p);
a2 = R*R;
};
process = hgroup("stage1", stage1) :
component("gxdistortion.dsp").dist(drive,wet_dry) :
hgroup("stage2", stage2)
with {
drive = ampctrl.drive;
wet_dry = ampctrl.wet_dry;
preamp = ampctrl.preamp;
/*
drive = vslider(".gxdistortion.drive[alias]",0.35, 0, 1, 0.01);
wet_dry = vslider(".gxdistortion.wet_dry[alias]", 100, 0, 100, 1) : /(100) : smoothi(0.999);
preamp = vslider(".amp2.stage1.Pregain[alias]",0,-20,20,0.1) : ba.db2linear : smoothi(0.999);
*/
stage1 = *(preamp): tubestage130_10(TB_12AU7_68k,86.0,2700.0,1.257240) :
fi.lowpass(1,6531.0) : tubestage130_10(TB_12AU7_250k,132.0,1500.0,0.776162): tubestage130_10(TB_12AU7_250k,194.0,820.0,0.445487);
stage2 = fi.lowpass(1,6531.0) : *(gain1) <: (tubestage(TB_6V6_250k,6531.0,820.0,1.130462),tubestage(TB_6V6_68k,6531.0,820.0,1.130740)) :>_
with {
gain1 = ampctrl.gain1;
/*
gain1 = vslider(".amp2.stage2.gain1[alias]", 6, -20.0, 20.0, 0.1) : ba.db2linear : smoothi(0.999);
*/
};
};
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/gxamp4.dsp | faust | in amp tube ba.selector
***************************************************************
** Tube Preamp Emulation stage 1 - 2
b0 = 1;
b1 = -1.01;
b2 = 0;
a1 = -1.84;
a2 = 0.846416;
drive = vslider(".gxdistortion.drive[alias]",0.35, 0, 1, 0.01);
wet_dry = vslider(".gxdistortion.wet_dry[alias]", 100, 0, 100, 1) : /(100) : smoothi(0.999);
preamp = vslider(".amp2.stage1.Pregain[alias]",0,-20,20,0.1) : ba.db2linear : smoothi(0.999);
gain1 = vslider(".amp2.stage2.gain1[alias]", 6, -20.0, 20.0, 0.1) : ba.db2linear : smoothi(0.999);
| declare name "pre 12AU7/ master 6V6";
import("stdfaust.lib");
import("guitarix.lib");
bifilter = fi.tf2(b0,b1,b2,a1,a2) with
{
c = 1.059;
R = 0.9221;
lc0 = 0.00506158;
lc1 = 0.06446806;
lc2 = 0.27547621;
lc3 = 0.43359433;
lc4 = 1.31282248;
lc5 = 0.07238887;
fc = 1200 : *(2*ma.PI/ma.SR) : log;
p = lc0*pow(fc,5) + lc1*pow(fc,4) + lc2*pow(fc,3) + lc3*pow(fc,2) + lc4*fc + lc5 : exp;
b0 = 1;
b1 = -c;
b2 = 0;
a1 = -2*R*cos(p);
a2 = R*R;
};
process = hgroup("stage1", stage1) :
component("gxdistortion.dsp").dist(drive,wet_dry) :
hgroup("stage2", stage2)
with {
drive = ampctrl.drive;
wet_dry = ampctrl.wet_dry;
preamp = ampctrl.preamp;
stage1 = *(preamp): tubestage130_10(TB_12AU7_68k,86.0,2700.0,1.257240) :
fi.lowpass(1,6531.0) : tubestage130_10(TB_12AU7_250k,132.0,1500.0,0.776162): tubestage130_10(TB_12AU7_250k,194.0,820.0,0.445487);
stage2 = fi.lowpass(1,6531.0) : *(gain1) <: (tubestage(TB_6V6_250k,6531.0,820.0,1.130462),tubestage(TB_6V6_68k,6531.0,820.0,1.130740)) :>_
with {
gain1 = ampctrl.gain1;
};
};
|
fe5a6ea12da519fff0f193f67ffc097a55f8e6055c1b32156ce024fa63156b3f | brummer10/guitarix | tremolo.dsp | declare name "Tremolo";
declare category "Modulation";
declare gladefile "tremolo_ui.glade";
/*
** Model of a vactrol tremolo unit by "transmogrify"
** c.f. http://sourceforge.net/apps/phpbb/guitarix/viewtopic.php?f=7&t=44&p=233&hilit=transmogrifox#p233
** http://transmogrifox.webs.com/vactrol.m
*/
import("stdfaust.lib");
/* vactrol model */
/* transcendental functions in fast signal path:
** cds: 2 exp() (2 alpha containing each 1 exp())
** vactrol: 1 exp(), 1 pow(), 1 log()
*/
R1 = 2700;
Ra = 1e6;
Rb = 300;
b = exp(log(Ra)/log(Rb)) - exp(1);
dTC = 0.06;
minTC = log(0.005/dTC);
cds = ((_ <: _,_),_ : _+(1-alpha)*_) ~ (_<:*(alpha)) with {
iSR = 1/ma.SR;
dRC = dTC * exp(*(minTC));
alpha = 1 - iSR / (dRC + iSR);
};
vactrol = pow(_,1.9) : cds : *(b) + exp(1) : exp(log(Ra)/log) : R1/(_ + R1);
/* triangle oscillator (not bandlimited, frequency is approximate) */
trianglewave(freq) = _ ~ (_ <: _ + hyst) : /(periodsamps) with {
if(c,t,e) = select2(c,e,t);
hyst(x) = if(_ > 0, 2 * (x < periodsamps) - 1, 1 - 2 * (x > 0)) ~ _;
periodsamps = int(ma.SR / (2*float(freq)));
};
/* tremolo unit, using triangle or sine oscillator as lfo */
tremolo(freq, depth) = lfo * depth + 1 - depth : vactrol with {
sine(freq) = (os.oscs(freq) + 1) / 2 : max(0); // max(0) because of numerical inaccuracy
SINE=checkbox("SINE[enum:triangle|sine|square]");
lfo = select3(SINE, trianglewave(freq), sine(freq), os.lf_squarewavepos(freq));
};
wet = vslider("wet_dry[name:Dry/Wet][tooltip:percentage of processed signal in output signal]", 100, 0, 100, 1) : /(100);
dry = 1 - wet;
process = _<:*(dry),(*(wet): *(tremolo(vslider("freq[name:Freq]",5,0.1,50,0.1),vslider("depth[name:Depth]",0.5,0,1,0.01)))):>_;
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/tremolo.dsp | faust |
** Model of a vactrol tremolo unit by "transmogrify"
** c.f. http://sourceforge.net/apps/phpbb/guitarix/viewtopic.php?f=7&t=44&p=233&hilit=transmogrifox#p233
** http://transmogrifox.webs.com/vactrol.m
vactrol model
transcendental functions in fast signal path:
** cds: 2 exp() (2 alpha containing each 1 exp())
** vactrol: 1 exp(), 1 pow(), 1 log()
triangle oscillator (not bandlimited, frequency is approximate)
tremolo unit, using triangle or sine oscillator as lfo
max(0) because of numerical inaccuracy | declare name "Tremolo";
declare category "Modulation";
declare gladefile "tremolo_ui.glade";
import("stdfaust.lib");
R1 = 2700;
Ra = 1e6;
Rb = 300;
b = exp(log(Ra)/log(Rb)) - exp(1);
dTC = 0.06;
minTC = log(0.005/dTC);
cds = ((_ <: _,_),_ : _+(1-alpha)*_) ~ (_<:*(alpha)) with {
iSR = 1/ma.SR;
dRC = dTC * exp(*(minTC));
alpha = 1 - iSR / (dRC + iSR);
};
vactrol = pow(_,1.9) : cds : *(b) + exp(1) : exp(log(Ra)/log) : R1/(_ + R1);
trianglewave(freq) = _ ~ (_ <: _ + hyst) : /(periodsamps) with {
if(c,t,e) = select2(c,e,t);
hyst(x) = if(_ > 0, 2 * (x < periodsamps) - 1, 1 - 2 * (x > 0)) ~ _;
periodsamps = int(ma.SR / (2*float(freq)));
};
tremolo(freq, depth) = lfo * depth + 1 - depth : vactrol with {
SINE=checkbox("SINE[enum:triangle|sine|square]");
lfo = select3(SINE, trianglewave(freq), sine(freq), os.lf_squarewavepos(freq));
};
wet = vslider("wet_dry[name:Dry/Wet][tooltip:percentage of processed signal in output signal]", 100, 0, 100, 1) : /(100);
dry = 1 - wet;
process = _<:*(dry),(*(wet): *(tremolo(vslider("freq[name:Freq]",5,0.1,50,0.1),vslider("depth[name:Depth]",0.5,0,1,0.01)))):>_;
|
b9e327aad19d46d6954e92029acc5b593b30317469ce72c8e6173aac00356208 | brummer10/MelMatchEQ.lv2 | MelEQ.dsp | declare id "melmatcheq";
declare name "Mel-Match EQ";
declare category "Filter";
declare description "EQ using a 26 step Mel Frequency Band ";
import("stdfaust.lib");
rd = library("reducemaps.lib");
//frequency points (20.0, 102.0, 218.0, 351.0, 503.0, 678.0, 878.0, 1107.0, 1369.0, 1669.0, 2013.0, 2407.0, 2857.0, 3373.0,
// 3964.0, 4641.0, 5416.0, 6303.0, 7319.0, 8483.0, 9815.0, 10000.0, 13000.0, 15000.0, 17000.0, 20000.0));
geq = fi.filterbank(3, (51.0, 160.0, 284.5, 427.0, 590.5, 778.0, 992.5, 1238.0, 1519.0, 1841.0, 2210.0, 2632.0, 3115.0, 3668.5, 4302.5, 5028.5, 5859.5, 6811.0, 7901.0, 9149.0, 9907.5, 11500.0, 14000.0, 16000.0, 18500.0));
g1 = vslider("g1 [tooltip:gain (dB) below 20 Hz]" , 0, -30, 5.2, 0.1) : ba.db2linear : si.smooth(0.999);
g2 = vslider("g2 [tooltip:gain (dB) at 102 Hz]" , 0, -30, 5.2, 0.1) : ba.db2linear : si.smooth(0.999);
g3 = vslider("g3 [tooltip:gain (dB) at 218 Hz]" , 0, -30, 5.2, 0.1) : ba.db2linear : si.smooth(0.999);
g4 = vslider("g4 [tooltip:gain (dB) at 351 Hz]" , 0, -30, 5.2, 0.1) : ba.db2linear : si.smooth(0.999);
g5 = vslider("g5 [tooltip:gain (dB) at 503 Hz]" , 0, -30, 5.2, 0.1) : ba.db2linear : si.smooth(0.999);
g6 = vslider("g6 [tooltip:gain (dB) at 678 Hz]" , 0, -30, 5.2, 0.1) : ba.db2linear : si.smooth(0.999);
g7 = vslider("g7 [tooltip:gain (dB) at 878 Hz]" , 0, -30, 5.2, 0.1) : ba.db2linear : si.smooth(0.999);
g8 = vslider("g8 [tooltip:gain (dB) at 1107 Hz]" , 0, -30, 5.2, 0.1) : ba.db2linear : si.smooth(0.999);
g9 = vslider("g9 [tooltip:gain (dB) at 1369 Hz]" , 0, -30, 5.2, 0.1) : ba.db2linear : si.smooth(0.999);
g10 = vslider("g10 [tooltip:gain (dB) at 1669 Hz]" , 0, -30, 5.2, 0.1) : ba.db2linear : si.smooth(0.999);
g11 = vslider("g11 [tooltip:gain (dB) at 2013 Hz]" , 0, -30, 5.2, 0.1) : ba.db2linear : si.smooth(0.999);
g12 = vslider("g12 [tooltip:gain (dB) at 2407 Hz]" , 0, -30, 5.2, 0.1) : ba.db2linear : si.smooth(0.999);
g13 = vslider("g13 [tooltip:gain (dB) at 2857 Hz]" , 0, -30, 5.2, 0.1) : ba.db2linear : si.smooth(0.999);
g14 = vslider("g14 [tooltip:gain (dB) at 3373 Hz]" , 0, -30, 5.2, 0.1) : ba.db2linear : si.smooth(0.999);
g15 = vslider("g15 [tooltip:gain (dB) at 3964 Hz]" , 0, -30, 5.2, 0.1) : ba.db2linear : si.smooth(0.999);
g16 = vslider("g16 [tooltip:gain (dB) at 4641 Hz]" , 0, -30, 5.2, 0.1) : ba.db2linear : si.smooth(0.999);
g17 = vslider("g17 [tooltip:gain (dB) at 5416 Hz]" , 0, -30, 5.2, 0.1) : ba.db2linear : si.smooth(0.999);
g18 = vslider("g18 [tooltip:gain (dB) at 6303 Hz]" , 0, -30, 5.2, 0.1) : ba.db2linear : si.smooth(0.999);
g19 = vslider("g19 [tooltip:gain (dB) at 7319 Hz]" , 0, -30, 5.2, 0.1) : ba.db2linear : si.smooth(0.999);
g20 = vslider("g20 [tooltip:gain (dB) at 8483 Hz]" , 0, -30, 5.2, 0.1) : ba.db2linear : si.smooth(0.999);
g21 = vslider("g21 [tooltip:gain (dB) at 9815 Hz]" , 0, -30, 5.2, 0.1) : ba.db2linear : si.smooth(0.999);
g22 = vslider("g22 [tooltip:gain (dB) at 10000 Hz]" , 0, -30, 5.2, 0.1) : ba.db2linear : si.smooth(0.999);
g23 = vslider("g23 [tooltip:gain (dB) at 13000 Hz]" , 0, -30, 5.2, 0.1) : ba.db2linear : si.smooth(0.999);
g24 = vslider("g24 [tooltip:gain (dB) at 15000 Hz]" , 0, -30, 5.2, 0.1) : ba.db2linear : si.smooth(0.999);
g25 = vslider("g25 [tooltip:gain (dB) at 17000 Hz]" , 0, -30, 5.2, 0.1) : ba.db2linear : si.smooth(0.999);
g26 = vslider("g26 [tooltip:gain (dB) above 20000 Hz]" , 0, -30, 5.2, 0.1) : ba.db2linear : si.smooth(0.999);
v1(x) = attach(x, envelop(x) : vbargraph("v1[nomidi:no]" , -70, +5));
v2(x) = attach(x, envelop(x) : vbargraph("v2[nomidi:no]" , -70, +5));
v3(x) = attach(x, envelop(x) : vbargraph("v3[nomidi:no]" , -70, +5));
v4(x) = attach(x, envelop(x) : vbargraph("v4[nomidi:no]" , -70, +5));
v5(x) = attach(x, envelop(x) : vbargraph("v5[nomidi:no]" , -70, +5));
v6(x) = attach(x, envelop(x) : vbargraph("v6[nomidi:no]" , -70, +5));
v7(x) = attach(x, envelop(x) : vbargraph("v7[nomidi:no]" , -70, +5));
v8(x) = attach(x, envelop(x) : vbargraph("v8[nomidi:no]" , -70, +5));
v9(x) = attach(x, envelop(x) : vbargraph("v9[nomidi:no]" , -70, +5));
v10(x) = attach(x, envelop(x) : vbargraph("v10[nomidi:no]", -70, +5));
v11(x) = attach(x, envelop(x) : vbargraph("v11[nomidi:no]", -70, +5));
v12(x) = attach(x, envelop(x) : vbargraph("v12[nomidi:no]", -70, +5));
v13(x) = attach(x, envelop(x) : vbargraph("v13[nomidi:no]", -70, +5));
v14(x) = attach(x, envelop(x) : vbargraph("v14[nomidi:no]", -70, +5));
v15(x) = attach(x, envelop(x) : vbargraph("v15[nomidi:no]", -70, +5));
v16(x) = attach(x, envelop(x) : vbargraph("v16[nomidi:no]", -70, +5));
v17(x) = attach(x, envelop(x) : vbargraph("v17[nomidi:no]", -70, +5));
v18(x) = attach(x, envelop(x) : vbargraph("v18[nomidi:no]", -70, +5));
v19(x) = attach(x, envelop(x) : vbargraph("v19[nomidi:no]", -70, +5));
v20(x) = attach(x, envelop(x) : vbargraph("v20[nomidi:no]", -70, +5));
v21(x) = attach(x, envelop(x) : vbargraph("v21[nomidi:no]", -70, +5));
v22(x) = attach(x, envelop(x) : vbargraph("v22[nomidi:no]", -70, +5));
v23(x) = attach(x, envelop(x) : vbargraph("v23[nomidi:no]", -70, +5));
v24(x) = attach(x, envelop(x) : vbargraph("v24[nomidi:no]", -70, +5));
v25(x) = attach(x, envelop(x) : vbargraph("v25[nomidi:no]", -70, +5));
v26(x) = attach(x, envelop(x) : vbargraph("v26[nomidi:no]", -70, +5));
envelop = abs : max ~ (1.0/ma.SR) : rd.maxn(4096) ;
wet = vslider("Morph[name:Morph][tooltip:percentage of processed signal in output signal]", 1.0, 0.0, 1.0, 0.1) : si.smooth(0.999);
dry = 1.0 - wet;
gain = vslider("gain[name:Gain][tooltip:gain (dB)]", 0, -40, 40, 0.1) : ba.db2linear : si.smooth(0.999);
process = _<:*(dry),(*(gain): geq : (*(g26):v26),(*(g25):v25),(*(g24):v24),(*(g23):v23),
(*(g22):v22),(*(g21):v21),(*(g20):v20),(*(g19):v19),(*(g18):v18),
(*(g17):v17),(*(g16):v16),(*(g15):v15),(*(g14):v14),(*(g13):v13),(*(g12):v12),
(*(g11):v11),(*(g10):v10),(*(g9):v9),(*(g8):v8),(*(g7):v7),(*(g6):v6),
(*(g5):v5),(*(g4):v4),(*(g3):v3),(*(g2):v2),(*(g1):v1) :>*(wet)):>_;
| https://raw.githubusercontent.com/brummer10/MelMatchEQ.lv2/36e9ca3e5d5b0a045e0c465afc45d4d1ca5f8eb5/dsp/MelEQ.dsp | faust | frequency points (20.0, 102.0, 218.0, 351.0, 503.0, 678.0, 878.0, 1107.0, 1369.0, 1669.0, 2013.0, 2407.0, 2857.0, 3373.0,
3964.0, 4641.0, 5416.0, 6303.0, 7319.0, 8483.0, 9815.0, 10000.0, 13000.0, 15000.0, 17000.0, 20000.0)); | declare id "melmatcheq";
declare name "Mel-Match EQ";
declare category "Filter";
declare description "EQ using a 26 step Mel Frequency Band ";
import("stdfaust.lib");
rd = library("reducemaps.lib");
geq = fi.filterbank(3, (51.0, 160.0, 284.5, 427.0, 590.5, 778.0, 992.5, 1238.0, 1519.0, 1841.0, 2210.0, 2632.0, 3115.0, 3668.5, 4302.5, 5028.5, 5859.5, 6811.0, 7901.0, 9149.0, 9907.5, 11500.0, 14000.0, 16000.0, 18500.0));
g1 = vslider("g1 [tooltip:gain (dB) below 20 Hz]" , 0, -30, 5.2, 0.1) : ba.db2linear : si.smooth(0.999);
g2 = vslider("g2 [tooltip:gain (dB) at 102 Hz]" , 0, -30, 5.2, 0.1) : ba.db2linear : si.smooth(0.999);
g3 = vslider("g3 [tooltip:gain (dB) at 218 Hz]" , 0, -30, 5.2, 0.1) : ba.db2linear : si.smooth(0.999);
g4 = vslider("g4 [tooltip:gain (dB) at 351 Hz]" , 0, -30, 5.2, 0.1) : ba.db2linear : si.smooth(0.999);
g5 = vslider("g5 [tooltip:gain (dB) at 503 Hz]" , 0, -30, 5.2, 0.1) : ba.db2linear : si.smooth(0.999);
g6 = vslider("g6 [tooltip:gain (dB) at 678 Hz]" , 0, -30, 5.2, 0.1) : ba.db2linear : si.smooth(0.999);
g7 = vslider("g7 [tooltip:gain (dB) at 878 Hz]" , 0, -30, 5.2, 0.1) : ba.db2linear : si.smooth(0.999);
g8 = vslider("g8 [tooltip:gain (dB) at 1107 Hz]" , 0, -30, 5.2, 0.1) : ba.db2linear : si.smooth(0.999);
g9 = vslider("g9 [tooltip:gain (dB) at 1369 Hz]" , 0, -30, 5.2, 0.1) : ba.db2linear : si.smooth(0.999);
g10 = vslider("g10 [tooltip:gain (dB) at 1669 Hz]" , 0, -30, 5.2, 0.1) : ba.db2linear : si.smooth(0.999);
g11 = vslider("g11 [tooltip:gain (dB) at 2013 Hz]" , 0, -30, 5.2, 0.1) : ba.db2linear : si.smooth(0.999);
g12 = vslider("g12 [tooltip:gain (dB) at 2407 Hz]" , 0, -30, 5.2, 0.1) : ba.db2linear : si.smooth(0.999);
g13 = vslider("g13 [tooltip:gain (dB) at 2857 Hz]" , 0, -30, 5.2, 0.1) : ba.db2linear : si.smooth(0.999);
g14 = vslider("g14 [tooltip:gain (dB) at 3373 Hz]" , 0, -30, 5.2, 0.1) : ba.db2linear : si.smooth(0.999);
g15 = vslider("g15 [tooltip:gain (dB) at 3964 Hz]" , 0, -30, 5.2, 0.1) : ba.db2linear : si.smooth(0.999);
g16 = vslider("g16 [tooltip:gain (dB) at 4641 Hz]" , 0, -30, 5.2, 0.1) : ba.db2linear : si.smooth(0.999);
g17 = vslider("g17 [tooltip:gain (dB) at 5416 Hz]" , 0, -30, 5.2, 0.1) : ba.db2linear : si.smooth(0.999);
g18 = vslider("g18 [tooltip:gain (dB) at 6303 Hz]" , 0, -30, 5.2, 0.1) : ba.db2linear : si.smooth(0.999);
g19 = vslider("g19 [tooltip:gain (dB) at 7319 Hz]" , 0, -30, 5.2, 0.1) : ba.db2linear : si.smooth(0.999);
g20 = vslider("g20 [tooltip:gain (dB) at 8483 Hz]" , 0, -30, 5.2, 0.1) : ba.db2linear : si.smooth(0.999);
g21 = vslider("g21 [tooltip:gain (dB) at 9815 Hz]" , 0, -30, 5.2, 0.1) : ba.db2linear : si.smooth(0.999);
g22 = vslider("g22 [tooltip:gain (dB) at 10000 Hz]" , 0, -30, 5.2, 0.1) : ba.db2linear : si.smooth(0.999);
g23 = vslider("g23 [tooltip:gain (dB) at 13000 Hz]" , 0, -30, 5.2, 0.1) : ba.db2linear : si.smooth(0.999);
g24 = vslider("g24 [tooltip:gain (dB) at 15000 Hz]" , 0, -30, 5.2, 0.1) : ba.db2linear : si.smooth(0.999);
g25 = vslider("g25 [tooltip:gain (dB) at 17000 Hz]" , 0, -30, 5.2, 0.1) : ba.db2linear : si.smooth(0.999);
g26 = vslider("g26 [tooltip:gain (dB) above 20000 Hz]" , 0, -30, 5.2, 0.1) : ba.db2linear : si.smooth(0.999);
v1(x) = attach(x, envelop(x) : vbargraph("v1[nomidi:no]" , -70, +5));
v2(x) = attach(x, envelop(x) : vbargraph("v2[nomidi:no]" , -70, +5));
v3(x) = attach(x, envelop(x) : vbargraph("v3[nomidi:no]" , -70, +5));
v4(x) = attach(x, envelop(x) : vbargraph("v4[nomidi:no]" , -70, +5));
v5(x) = attach(x, envelop(x) : vbargraph("v5[nomidi:no]" , -70, +5));
v6(x) = attach(x, envelop(x) : vbargraph("v6[nomidi:no]" , -70, +5));
v7(x) = attach(x, envelop(x) : vbargraph("v7[nomidi:no]" , -70, +5));
v8(x) = attach(x, envelop(x) : vbargraph("v8[nomidi:no]" , -70, +5));
v9(x) = attach(x, envelop(x) : vbargraph("v9[nomidi:no]" , -70, +5));
v10(x) = attach(x, envelop(x) : vbargraph("v10[nomidi:no]", -70, +5));
v11(x) = attach(x, envelop(x) : vbargraph("v11[nomidi:no]", -70, +5));
v12(x) = attach(x, envelop(x) : vbargraph("v12[nomidi:no]", -70, +5));
v13(x) = attach(x, envelop(x) : vbargraph("v13[nomidi:no]", -70, +5));
v14(x) = attach(x, envelop(x) : vbargraph("v14[nomidi:no]", -70, +5));
v15(x) = attach(x, envelop(x) : vbargraph("v15[nomidi:no]", -70, +5));
v16(x) = attach(x, envelop(x) : vbargraph("v16[nomidi:no]", -70, +5));
v17(x) = attach(x, envelop(x) : vbargraph("v17[nomidi:no]", -70, +5));
v18(x) = attach(x, envelop(x) : vbargraph("v18[nomidi:no]", -70, +5));
v19(x) = attach(x, envelop(x) : vbargraph("v19[nomidi:no]", -70, +5));
v20(x) = attach(x, envelop(x) : vbargraph("v20[nomidi:no]", -70, +5));
v21(x) = attach(x, envelop(x) : vbargraph("v21[nomidi:no]", -70, +5));
v22(x) = attach(x, envelop(x) : vbargraph("v22[nomidi:no]", -70, +5));
v23(x) = attach(x, envelop(x) : vbargraph("v23[nomidi:no]", -70, +5));
v24(x) = attach(x, envelop(x) : vbargraph("v24[nomidi:no]", -70, +5));
v25(x) = attach(x, envelop(x) : vbargraph("v25[nomidi:no]", -70, +5));
v26(x) = attach(x, envelop(x) : vbargraph("v26[nomidi:no]", -70, +5));
envelop = abs : max ~ (1.0/ma.SR) : rd.maxn(4096) ;
wet = vslider("Morph[name:Morph][tooltip:percentage of processed signal in output signal]", 1.0, 0.0, 1.0, 0.1) : si.smooth(0.999);
dry = 1.0 - wet;
gain = vslider("gain[name:Gain][tooltip:gain (dB)]", 0, -40, 40, 0.1) : ba.db2linear : si.smooth(0.999);
process = _<:*(dry),(*(gain): geq : (*(g26):v26),(*(g25):v25),(*(g24):v24),(*(g23):v23),
(*(g22):v22),(*(g21):v21),(*(g20):v20),(*(g19):v19),(*(g18):v18),
(*(g17):v17),(*(g16):v16),(*(g15):v15),(*(g14):v14),(*(g13):v13),(*(g12):v12),
(*(g11):v11),(*(g10):v10),(*(g9):v9),(*(g8):v8),(*(g7):v7),(*(g6):v6),
(*(g5):v5),(*(g4):v4),(*(g3):v3),(*(g2):v2),(*(g1):v1) :>*(wet)):>_;
|
caad0bc8f27ed617405743d4a6734cd22cda553dd30d35f517e0fa3e28508240 | brummer10/VintageTubeOverdrive.lv2 | vintagetubeoverdrive.dsp |
/*******************************************************************************
**************************** File generated by *********************************
********************************************************************************
./build-plug.py -i VintageTubeDriver_p1.sch VintageTubeDriver_p2.sch VintageTubeDriver_p3.sch -t 2 -b -n VintageTubeOverdrive
*******************************************************************************/
// generated automatically
// DO NOT MODIFY!
declare id "vintagetubeoverdrive";
declare name "VintageTubeOverdrive";
declare category "Extern";
declare shortname "VintageTubeOverdrive";
declare description "VintageTubeOverdrive";
import("stdfaust.lib");
/*******************************************************************************
* vintagetubedriver_p1a generated by dkbuiler from VintageTubeDriver_p1a.sch
*******************************************************************************/
p1a = pre : fi.iir((b0/a0,b1/a0),(a1/a0)) with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
b0 = 2.06222787767415e-5*fs;
b1 = -2.06222787767415e-5*fs;
a0 = 2.08287627355138e-5*fs + 0.000219388695339307;
a1 = -2.08287627355138e-5*fs + 0.000219388695339307;
};
/*******************************************************************************
* vintagetubedriver_p1b generated by dkbuiler from VintageTubeDriver_p1b.sch
*******************************************************************************/
p1b = pre : fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
Drive = vslider("Drive[name:Drive][style:knob]", 0.5, 0, 1, 0.01) : Inverted(0) : LogPot(5) : si.smooth(s);
b0 = -0.00209477429815234*Drive*fs;
b1 = 0;
b2 = 0.00209477429815234*Drive*fs;
a0 = Drive*(fs*(5.69979480774266e-10*fs + 2.89714413532304e-6) + 0.000104811251457812) + 5.69979480774267e-6*fs + 0.000209622502915624;
a1 = Drive*(-1.13995896154853e-9*pow(fs,2) + 0.000209622502915624) + 0.000419245005831248;
a2 = Drive*(fs*(5.69979480774266e-10*fs - 2.89714413532304e-6) + 0.000104811251457812) - 5.69979480774267e-6*fs + 0.000209622502915624;
};
/*******************************************************************************
* 1-dimensional function table for linear interpolation
*******************************************************************************/
//-- Rdtable from waveform
rtable(table, r) = (table, int(r)):rdtable;
//-- Copy the sign of x to f
ccopysign(f, x) = ma.fabs(f) * sign(x);
//-- Get sign of value x
sign(x) = x<0, 1, -1 : select2;
//-- Check if value x is negative
fsignbit(x) = x<0;
//-- Get fractal part of value n
fractal(n) = n - int(n);
//-- Interpolate value between i and i+1 in table with fractal coefficient f.
interpolation(table, size, f, i) = select2(i<0,select2(i>size-2,
rtable(table, i)*(1-f) + rtable(table,i+1)*f, rtable(table, size-1)),
rtable(table, 0));
//-- Linear interpolation for value x in rdtable
circuit_response(table, low, high, step, size, x) =
interpolation(table, size, fractal(linindex(step, x)),
int(linindex(step, x))), x : ccopysign;
//-- Calculate linear table index for value x
linindex(step, x) = ma.fabs(x) * step;
/****************************************************************************************
* vintagetubedriver_p2_table generated by DK/circ_table_gen.py -- do not modify manually
****************************************************************************************/
// variables used
// --sig_max 1.400000
// --table_div 3.064485
// --table_op 1.000000
vintagetubedriver_p2_clip_f = circuit_response(vintagetubedriver_p2_table, low, high, step, size) with{
low = 0;
high =0.411956;
step =142.143;
size =200;
vintagetubedriver_p2_table = waveform {
0.000000000000,0.002020608266,0.004097109883,0.006227893150,0.008411385797,
0.010646050224,0.012930379529,0.015262894206,0.017642139389,0.020066682575,
0.022535111733,0.025046033758,0.027598073211,0.030189871291,0.032820085034,
0.035487386672,0.038190463157,0.040928015807,0.043698760067,0.046501425364,
0.049334755040,0.052197506354,0.055088450540,0.058006372908,0.060950072987,
0.063918364694,0.066910076525,0.069924051766,0.072959148708,0.076014240873,
0.079088217238,0.082179982455,0.085288457066,0.088412577710,0.091551297307,
0.094703585242,0.097868427518,0.101044826898,0.104231803023,0.107428392508,
0.110633649015,0.113846643309,0.117066463276,0.120292213932,0.123523017399,
0.126758012857,0.129996356477,0.133237221326,0.136479797255,0.139723290756,
0.142966924808,0.146209938698,0.149451587825,0.152691143481,0.155927892628,
0.159161137647,0.162390196084,0.165614400366,0.168833097537,0.172045648958,
0.175251430009,0.178449829784,0.181640250783,0.184822108599,0.187994831602,
0.191157860625,0.194310648648,0.197452660489,0.200583372489,0.203702272213,
0.206808858143,0.209902639392,0.212983135413,0.216049875721,0.219102399625,
0.222140255967,0.225163002872,0.228170207508,0.231161445859,0.234136302503,
0.237094370413,0.240035250757,0.242958552719,0.245863893325,0.248750897290,
0.251619196867,0.254468431713,0.257298248766,0.260108302134,0.262898252990,
0.265667769486,0.268416526670,0.271144206417,0.273850497365,0.276535094867,
0.279197700945,0.281838024253,0.284455780050,0.287050690181,0.289622483055,
0.292170893642,0.294695663463,0.297196540594,0.299673279667,0.302125641879,
0.304553395004,0.306956313399,0.309334178029,0.311686776473,0.314013902947,
0.316315358320,0.318590950132,0.320840492611,0.323063806688,0.325260720017,
0.327431066986,0.329574688729,0.331691433141,0.333781154882,0.335843715388,
0.337878982870,0.339886832322,0.341867145510,0.343819810977,0.345744724027,
0.347641786722,0.349510907860,0.351352002964,0.353164994255,0.354949810633,
0.356706387649,0.358434667470,0.360134598849,0.361806137083,0.363449243978,
0.365063887800,0.366650043228,0.368207691307,0.369736819392,0.371237421090,
0.372709496204,0.374153050671,0.375568096494,0.376954651676,0.378312740154,
0.379642391720,0.380943641951,0.382216532132,0.383461109176,0.384677425544,
0.385865539163,0.387025513339,0.388157416675,0.389261322980,0.390337311182,
0.391385465236,0.392405874037,0.393398631320,0.394363835573,0.395301589940,
0.396212002125,0.397095184295,0.397951252987,0.398780329008,0.399582537336,
0.400358007027,0.401106871110,0.401829266494,0.402525333865,0.403195217591,
0.403839065622,0.404457029389,0.405049263709,0.405615926686,0.406157179610,
0.406673186865,0.407164115826,0.407630136768,0.408071422766,0.408488149599,
0.408880495660,0.409248641857,0.409592771520,0.409913070312,0.410209726132,
0.410482929030,0.410732871110,0.410959746447,0.411163750995,0.411345082502,
0.411503940421,0.411640525827,0.411755041334,0.411847691008,0.411918680290,
0.411968215910,0.411996505813,0.412003759075,0.411990185831,0.411955997193
};
};
/*******************************************************************************
* vintagetubedriver_p2 generated by dkbuiler from VintageTubeDriver_p2.sch
*******************************************************************************/
// use this line to implement the faust based table interpolation
//p2 = pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0)) : vintagetubedriver_p2_clip_f with {
// use this line to implement the C based table interpolation
p2 = pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0)) : vintagetubedriver_p2_clip with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
Tone = vslider("Tone[name:Tone][style:knob]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
b0 = 1.51032483421641e-14*Tone*pow(fs,3) + 1.60672854703873e-11*pow(fs,2);
b1 = -4.53097450264922e-14*Tone*pow(fs,3) - 1.60672854703873e-11*pow(fs,2);
b2 = 4.53097450264922e-14*Tone*pow(fs,3) - 1.60672854703873e-11*pow(fs,2);
b3 = -1.51032483421641e-14*Tone*pow(fs,3) + 1.60672854703873e-11*pow(fs,2);
a0 = fs*(fs*(8.70253913610682e-15*fs + 1.61386401890662e-11) + 8.01348882317983e-9) + 7.17400553341744e-7;
a1 = fs*(fs*(-2.61076174083205e-14*fs - 1.61386401890662e-11) + 8.01348882317983e-9) + 2.15220166002523e-6;
a2 = fs*(fs*(2.61076174083205e-14*fs - 1.61386401890662e-11) - 8.01348882317983e-9) + 2.15220166002523e-6;
a3 = fs*(fs*(-8.70253913610682e-15*fs + 1.61386401890662e-11) - 8.01348882317983e-9) + 7.17400553341744e-7;
};
vintagetubedriver_p2_clip = ffunction(float vintagetubedriver_p2clip(float), "vintagetubedriver_p2_table.h", "");
/*******************************************************************************
* vintagetubedriver_p3 generated by dkbuiler from VintageTubeDriver_p3.sch
*******************************************************************************/
p3 = pre : fi.iir((b0/a0,b1/a0),(a1/a0)) with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
Volume = vslider("Volume[name:Volume][style:knob]", 0.5, 0, 1, 0.01) : Inverted(0) : LogPot(3) : si.smooth(s);
b0 = 2.08330921921294e-5*Volume*fs;
b1 = -2.08330921921294e-5*Volume*fs;
a0 = 2.0833311631967e-5*fs + 1.04166558159835e-6;
a1 = -2.0833311631967e-5*fs + 1.04166558159835e-6;
};
process = p1a : p1b : *(2.0) : p2 : p3 : *(2.0);
| https://raw.githubusercontent.com/brummer10/VintageTubeOverdrive.lv2/aef7f28d540c0910d7984cb72ea316b5bb718758/vintagetubeoverdrive/vintagetubeoverdrive.dsp | faust | ******************************************************************************
**************************** File generated by *********************************
********************************************************************************
./build-plug.py -i VintageTubeDriver_p1.sch VintageTubeDriver_p2.sch VintageTubeDriver_p3.sch -t 2 -b -n VintageTubeOverdrive
******************************************************************************
generated automatically
DO NOT MODIFY!
******************************************************************************
* vintagetubedriver_p1a generated by dkbuiler from VintageTubeDriver_p1a.sch
******************************************************************************
******************************************************************************
* vintagetubedriver_p1b generated by dkbuiler from VintageTubeDriver_p1b.sch
******************************************************************************
******************************************************************************
* 1-dimensional function table for linear interpolation
******************************************************************************
-- Rdtable from waveform
-- Copy the sign of x to f
-- Get sign of value x
-- Check if value x is negative
-- Get fractal part of value n
-- Interpolate value between i and i+1 in table with fractal coefficient f.
-- Linear interpolation for value x in rdtable
-- Calculate linear table index for value x
***************************************************************************************
* vintagetubedriver_p2_table generated by DK/circ_table_gen.py -- do not modify manually
***************************************************************************************
variables used
--sig_max 1.400000
--table_div 3.064485
--table_op 1.000000
******************************************************************************
* vintagetubedriver_p2 generated by dkbuiler from VintageTubeDriver_p2.sch
******************************************************************************
use this line to implement the faust based table interpolation
p2 = pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0)) : vintagetubedriver_p2_clip_f with {
use this line to implement the C based table interpolation
******************************************************************************
* vintagetubedriver_p3 generated by dkbuiler from VintageTubeDriver_p3.sch
****************************************************************************** |
declare id "vintagetubeoverdrive";
declare name "VintageTubeOverdrive";
declare category "Extern";
declare shortname "VintageTubeOverdrive";
declare description "VintageTubeOverdrive";
import("stdfaust.lib");
p1a = pre : fi.iir((b0/a0,b1/a0),(a1/a0)) with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
b0 = 2.06222787767415e-5*fs;
b1 = -2.06222787767415e-5*fs;
a0 = 2.08287627355138e-5*fs + 0.000219388695339307;
a1 = -2.08287627355138e-5*fs + 0.000219388695339307;
};
p1b = pre : fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
Drive = vslider("Drive[name:Drive][style:knob]", 0.5, 0, 1, 0.01) : Inverted(0) : LogPot(5) : si.smooth(s);
b0 = -0.00209477429815234*Drive*fs;
b1 = 0;
b2 = 0.00209477429815234*Drive*fs;
a0 = Drive*(fs*(5.69979480774266e-10*fs + 2.89714413532304e-6) + 0.000104811251457812) + 5.69979480774267e-6*fs + 0.000209622502915624;
a1 = Drive*(-1.13995896154853e-9*pow(fs,2) + 0.000209622502915624) + 0.000419245005831248;
a2 = Drive*(fs*(5.69979480774266e-10*fs - 2.89714413532304e-6) + 0.000104811251457812) - 5.69979480774267e-6*fs + 0.000209622502915624;
};
rtable(table, r) = (table, int(r)):rdtable;
ccopysign(f, x) = ma.fabs(f) * sign(x);
sign(x) = x<0, 1, -1 : select2;
fsignbit(x) = x<0;
fractal(n) = n - int(n);
interpolation(table, size, f, i) = select2(i<0,select2(i>size-2,
rtable(table, i)*(1-f) + rtable(table,i+1)*f, rtable(table, size-1)),
rtable(table, 0));
circuit_response(table, low, high, step, size, x) =
interpolation(table, size, fractal(linindex(step, x)),
int(linindex(step, x))), x : ccopysign;
linindex(step, x) = ma.fabs(x) * step;
vintagetubedriver_p2_clip_f = circuit_response(vintagetubedriver_p2_table, low, high, step, size) with{
low = 0;
high =0.411956;
step =142.143;
size =200;
vintagetubedriver_p2_table = waveform {
0.000000000000,0.002020608266,0.004097109883,0.006227893150,0.008411385797,
0.010646050224,0.012930379529,0.015262894206,0.017642139389,0.020066682575,
0.022535111733,0.025046033758,0.027598073211,0.030189871291,0.032820085034,
0.035487386672,0.038190463157,0.040928015807,0.043698760067,0.046501425364,
0.049334755040,0.052197506354,0.055088450540,0.058006372908,0.060950072987,
0.063918364694,0.066910076525,0.069924051766,0.072959148708,0.076014240873,
0.079088217238,0.082179982455,0.085288457066,0.088412577710,0.091551297307,
0.094703585242,0.097868427518,0.101044826898,0.104231803023,0.107428392508,
0.110633649015,0.113846643309,0.117066463276,0.120292213932,0.123523017399,
0.126758012857,0.129996356477,0.133237221326,0.136479797255,0.139723290756,
0.142966924808,0.146209938698,0.149451587825,0.152691143481,0.155927892628,
0.159161137647,0.162390196084,0.165614400366,0.168833097537,0.172045648958,
0.175251430009,0.178449829784,0.181640250783,0.184822108599,0.187994831602,
0.191157860625,0.194310648648,0.197452660489,0.200583372489,0.203702272213,
0.206808858143,0.209902639392,0.212983135413,0.216049875721,0.219102399625,
0.222140255967,0.225163002872,0.228170207508,0.231161445859,0.234136302503,
0.237094370413,0.240035250757,0.242958552719,0.245863893325,0.248750897290,
0.251619196867,0.254468431713,0.257298248766,0.260108302134,0.262898252990,
0.265667769486,0.268416526670,0.271144206417,0.273850497365,0.276535094867,
0.279197700945,0.281838024253,0.284455780050,0.287050690181,0.289622483055,
0.292170893642,0.294695663463,0.297196540594,0.299673279667,0.302125641879,
0.304553395004,0.306956313399,0.309334178029,0.311686776473,0.314013902947,
0.316315358320,0.318590950132,0.320840492611,0.323063806688,0.325260720017,
0.327431066986,0.329574688729,0.331691433141,0.333781154882,0.335843715388,
0.337878982870,0.339886832322,0.341867145510,0.343819810977,0.345744724027,
0.347641786722,0.349510907860,0.351352002964,0.353164994255,0.354949810633,
0.356706387649,0.358434667470,0.360134598849,0.361806137083,0.363449243978,
0.365063887800,0.366650043228,0.368207691307,0.369736819392,0.371237421090,
0.372709496204,0.374153050671,0.375568096494,0.376954651676,0.378312740154,
0.379642391720,0.380943641951,0.382216532132,0.383461109176,0.384677425544,
0.385865539163,0.387025513339,0.388157416675,0.389261322980,0.390337311182,
0.391385465236,0.392405874037,0.393398631320,0.394363835573,0.395301589940,
0.396212002125,0.397095184295,0.397951252987,0.398780329008,0.399582537336,
0.400358007027,0.401106871110,0.401829266494,0.402525333865,0.403195217591,
0.403839065622,0.404457029389,0.405049263709,0.405615926686,0.406157179610,
0.406673186865,0.407164115826,0.407630136768,0.408071422766,0.408488149599,
0.408880495660,0.409248641857,0.409592771520,0.409913070312,0.410209726132,
0.410482929030,0.410732871110,0.410959746447,0.411163750995,0.411345082502,
0.411503940421,0.411640525827,0.411755041334,0.411847691008,0.411918680290,
0.411968215910,0.411996505813,0.412003759075,0.411990185831,0.411955997193
};
};
p2 = pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0)) : vintagetubedriver_p2_clip with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
Tone = vslider("Tone[name:Tone][style:knob]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
b0 = 1.51032483421641e-14*Tone*pow(fs,3) + 1.60672854703873e-11*pow(fs,2);
b1 = -4.53097450264922e-14*Tone*pow(fs,3) - 1.60672854703873e-11*pow(fs,2);
b2 = 4.53097450264922e-14*Tone*pow(fs,3) - 1.60672854703873e-11*pow(fs,2);
b3 = -1.51032483421641e-14*Tone*pow(fs,3) + 1.60672854703873e-11*pow(fs,2);
a0 = fs*(fs*(8.70253913610682e-15*fs + 1.61386401890662e-11) + 8.01348882317983e-9) + 7.17400553341744e-7;
a1 = fs*(fs*(-2.61076174083205e-14*fs - 1.61386401890662e-11) + 8.01348882317983e-9) + 2.15220166002523e-6;
a2 = fs*(fs*(2.61076174083205e-14*fs - 1.61386401890662e-11) - 8.01348882317983e-9) + 2.15220166002523e-6;
a3 = fs*(fs*(-8.70253913610682e-15*fs + 1.61386401890662e-11) - 8.01348882317983e-9) + 7.17400553341744e-7;
};
vintagetubedriver_p2_clip = ffunction(float vintagetubedriver_p2clip(float), "vintagetubedriver_p2_table.h", "");
p3 = pre : fi.iir((b0/a0,b1/a0),(a1/a0)) with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
Volume = vslider("Volume[name:Volume][style:knob]", 0.5, 0, 1, 0.01) : Inverted(0) : LogPot(3) : si.smooth(s);
b0 = 2.08330921921294e-5*Volume*fs;
b1 = -2.08330921921294e-5*Volume*fs;
a0 = 2.0833311631967e-5*fs + 1.04166558159835e-6;
a1 = -2.0833311631967e-5*fs + 1.04166558159835e-6;
};
process = p1a : p1b : *(2.0) : p2 : p3 : *(2.0);
|
e0d8836c1bed736c6a740e84eb72968d1db8266ac4578a43c41a8b9fc6509738 | brummer10/guitarix | gxmetal_amp.dsp | declare id "metal"; // in amp tube ba.selector
declare name "GxMetal_head";
import("stdfaust.lib");
import("guitarix.lib");
tstack = component("tonestack_bm.dsp");
tone = tstack[tse=tstack.ts.sovtek;];
overdrive(drive,x) = (x*(abs(x) + drive)/(x*x + (drive-1)*abs(x) + 1)) ;
sharp = 10.0;
press = 5 * sharp;
attack = 0.005;
release = 10;
knee = 10.5;
ratio = 1.5;
env = abs : max(1);
compress(env) = level * (1-r)/r
with {
level = env : h ~ _ : ba.linear2db : (_ + press) : max(0)
with {
h(x,y) = f*x+(1-f)*y with { f = (x<y)*ga+(x>=y)*gr; };
ga = exp(-1/(ma.SR*attack));
gr = exp(-1/(ma.SR*release));
};
p = level/(knee+eps) : max(0) : min(1) with { eps = 0.001; };
r = 1 - p + p * ratio;
};
sharper(x) = g(x) * x
with {
g = env : compress + sharp : ba.db2linear;
};
guitarboost = fi.highpass(2,40) : fi.lowpass(2,12000.0) : fi.allpassn(4,(-0.2, 0.3, 0.4, 0.5));
/****************************************************************
** Tube Preamp Emulation stage 1 - 2
*/
tubeax(preamp,gain1) = hgroup("stage1", stage1) :
hgroup("stage2", stage2)
with {
stage1 = tubestage(TB_12AY7_68k,86.0,2700.0,2.775058) : *(preamp):
fi.lowpass(1,6531.0) : tubestage(TB_12AY7_250k,132.0,1500.0,1.954308);
stage2 = fi.lowpass(1,6531.0) : tubestage(TB_12AY7_250k,194.0,820.0,1.264916) : *(gain1) :
tone : sharper<:( tubestageP(TB_EL34_68k,495.0,10.0,3.5e3, 256.0,230.0, 15.743945),
tubestageP(TB_EL34_250k,495.0,10.0,3.5e3, 256.0,230.0, 15.743945)):> fi.highpass(2,40) : fi.lowpass(2,12000.0) : *(gain1) ;
};
//tubestageP(tb,vplus,divider,Rp,fck,Rk,Vk0)
//tubestage(tb,fck,Rk,Vk0)
process = overdrive(drive) : tubeax(preamp,gain1) : div_drive with {
drive = vslider("drive", 1, 1, 20, 0.1);
div_drive = *((drive*-0.4):ba.db2linear : smoothi(0.999));
preamp = ampctrl.preamp;
gain1 = ampctrl.gain1;
};
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/gxmetal_amp.dsp | faust | in amp tube ba.selector
***************************************************************
** Tube Preamp Emulation stage 1 - 2
tubestageP(tb,vplus,divider,Rp,fck,Rk,Vk0)
tubestage(tb,fck,Rk,Vk0) | declare name "GxMetal_head";
import("stdfaust.lib");
import("guitarix.lib");
tstack = component("tonestack_bm.dsp");
tone = tstack[tse=tstack.ts.sovtek;];
overdrive(drive,x) = (x*(abs(x) + drive)/(x*x + (drive-1)*abs(x) + 1)) ;
sharp = 10.0;
press = 5 * sharp;
attack = 0.005;
release = 10;
knee = 10.5;
ratio = 1.5;
env = abs : max(1);
compress(env) = level * (1-r)/r
with {
level = env : h ~ _ : ba.linear2db : (_ + press) : max(0)
with {
h(x,y) = f*x+(1-f)*y with { f = (x<y)*ga+(x>=y)*gr; };
ga = exp(-1/(ma.SR*attack));
gr = exp(-1/(ma.SR*release));
};
p = level/(knee+eps) : max(0) : min(1) with { eps = 0.001; };
r = 1 - p + p * ratio;
};
sharper(x) = g(x) * x
with {
g = env : compress + sharp : ba.db2linear;
};
guitarboost = fi.highpass(2,40) : fi.lowpass(2,12000.0) : fi.allpassn(4,(-0.2, 0.3, 0.4, 0.5));
tubeax(preamp,gain1) = hgroup("stage1", stage1) :
hgroup("stage2", stage2)
with {
stage1 = tubestage(TB_12AY7_68k,86.0,2700.0,2.775058) : *(preamp):
fi.lowpass(1,6531.0) : tubestage(TB_12AY7_250k,132.0,1500.0,1.954308);
stage2 = fi.lowpass(1,6531.0) : tubestage(TB_12AY7_250k,194.0,820.0,1.264916) : *(gain1) :
tone : sharper<:( tubestageP(TB_EL34_68k,495.0,10.0,3.5e3, 256.0,230.0, 15.743945),
tubestageP(TB_EL34_250k,495.0,10.0,3.5e3, 256.0,230.0, 15.743945)):> fi.highpass(2,40) : fi.lowpass(2,12000.0) : *(gain1) ;
};
process = overdrive(drive) : tubeax(preamp,gain1) : div_drive with {
drive = vslider("drive", 1, 1, 20, 0.1);
div_drive = *((drive*-0.4):ba.db2linear : smoothi(0.999));
preamp = ampctrl.preamp;
gain1 = ampctrl.gain1;
};
|
ed6203cb03043d676c5462d9f1cd4ba2ed1fd760f06f87604e0f3f0bfce1a23d | brummer10/guitarix | thick_distortion.dsp | declare id "thick_distortion";
declare name "Thick Distortion";
declare category "Distortion";
declare author "Viacheslav Lotsmanov";
declare license "BSD";
declare copyright "(c) 2018 Viacheslav Lotsmanov";
/*
This effect was written first in Haskell as standalone JACK application.
Can be found here: https://github.com/unclechu/haskell-audio-dsp
There's simple idea behind this distortion effect.
Main thing is that current sample depends on previous one, "Thickness" value
is a coefficient of how much previous sample will be dominating on current
one. Imagine N is a current sample and "Thickness" is set to 0.8 then N will
be multiplied by 0.2 (1-0.8) and N-1 by 0.8 so it is N*0.2 + (N-1)*0.8.
Just turn input gain knob to extreme value to make signal clipping (it will
be hard limited to 0dB) and then make it being smooth by big "Thickness"
level. Even if we have square signal it will be smoothed. This effect could
also be combined with the "BitDowner" (put "Thick Distortion" after it) to
get interesting harmonics and reducing higher ones (because signal would be
less sharp).
*/
import("stdfaust.lib");
gain
= vslider("input_gain[name:Input][tooltip:Gain (dB)]", 0, 0, 120, 0.1)
: ba.db2linear
: si.smoo
;
thickness
= vslider("thickness[name:Thickness]", 0.8, 0, 1, 0.01)
: si.smoo
;
// coefficient for pure signal (for current sample, not previous one)
pureness = 1 - thickness;
volume
= vslider("volume[name:Volume][tooltip:Volume (dB)]", 0.0, -90.0, 40.0, 0.1)
: ba.db2linear
: si.smoo
;
hardLimit = min(1) : max(-1);
thick = *(pureness) : + ~(*(thickness));
process = *(gain) : hardLimit : thick : *(volume);
| https://raw.githubusercontent.com/brummer10/guitarix/12a65413816289bbbb6dcf2538f118ccdc2b6330/trunk/src/faust/thick_distortion.dsp | faust |
This effect was written first in Haskell as standalone JACK application.
Can be found here: https://github.com/unclechu/haskell-audio-dsp
There's simple idea behind this distortion effect.
Main thing is that current sample depends on previous one, "Thickness" value
is a coefficient of how much previous sample will be dominating on current
one. Imagine N is a current sample and "Thickness" is set to 0.8 then N will
be multiplied by 0.2 (1-0.8) and N-1 by 0.8 so it is N*0.2 + (N-1)*0.8.
Just turn input gain knob to extreme value to make signal clipping (it will
be hard limited to 0dB) and then make it being smooth by big "Thickness"
level. Even if we have square signal it will be smoothed. This effect could
also be combined with the "BitDowner" (put "Thick Distortion" after it) to
get interesting harmonics and reducing higher ones (because signal would be
less sharp).
coefficient for pure signal (for current sample, not previous one) | declare id "thick_distortion";
declare name "Thick Distortion";
declare category "Distortion";
declare author "Viacheslav Lotsmanov";
declare license "BSD";
declare copyright "(c) 2018 Viacheslav Lotsmanov";
import("stdfaust.lib");
gain
= vslider("input_gain[name:Input][tooltip:Gain (dB)]", 0, 0, 120, 0.1)
: ba.db2linear
: si.smoo
;
thickness
= vslider("thickness[name:Thickness]", 0.8, 0, 1, 0.01)
: si.smoo
;
pureness = 1 - thickness;
volume
= vslider("volume[name:Volume][tooltip:Volume (dB)]", 0.0, -90.0, 40.0, 0.1)
: ba.db2linear
: si.smoo
;
hardLimit = min(1) : max(-1);
thick = *(pureness) : + ~(*(thickness));
process = *(gain) : hardLimit : thick : *(volume);
|
597c87bfdbbd5da3acfee1fe57cfb25e585b4a90c5690f5e8a409728223844ac | brummer10/guitarix | gxamp2.dsp | declare id "6V6"; // in amp tube ba.selector
declare name "6V6";
declare samplerate "96000";
import("stdfaust.lib");
import("guitarix.lib");
/****************************************************************
** Tube Preamp Emulation stage 1 - 2
*/
bifilter = fi.tf2(b0,b1,b2,a1,a2) with
{
c = 1.059;
R = 0.9221;
lc0 = 0.00506158;
lc1 = 0.06446806;
lc2 = 0.27547621;
lc3 = 0.43359433;
lc4 = 1.31282248;
lc5 = 0.07238887;
fc = 1200 : *(2*ma.PI/ma.SR) : log;
p = lc0*pow(fc,5) + lc1*pow(fc,4) + lc2*pow(fc,3) + lc3*pow(fc,2) + lc4*fc + lc5 : exp;
//b0 = 1;
//b1 = -1.01;
//b2 = 0;
//a1 = -1.84;
//a2 = 0.846416;
b0 = 1;
b1 = -c;
b2 = 0;
a1 = -2*R*cos(p);
a2 = R*R;
};
tubec(preamp,gain1) = hgroup("stage1", stage1) :
hgroup("stage2", stage2)
with {
stage1 = tubestage(TB_6V6_68k,86.0,2700.0, 1.784417):
fi.lowpass(1,6531.0) : *(preamp) : tubestage(TB_6V6_250k,132.0,1500.0, 1.364616);
stage2 = fi.lowpass(1,6531.0) : *(gain1) : tubestage(TB_6V6_250k,194.0,820.0, 0.962132);
};
tubeax(preamp,gain1) = hgroup("stage1", stage1) :
hgroup("stage2", stage2)
with {
stage1 = *(preamp): tubestage(TB_6V6_68k,86.0,2700.0, 1.784417): *(0.77) :
fi.lowpass(1,6531.0) : *(preamp) : tubestage(TB_6V6_250k,132.0,1500.0, 1.364616): *(0.77);
stage2 = fi.lowpass(1,6531.0) : *(gain1) : bifilter : tubestage(TB_6V6_250k,194.0,820.0, 0.962132) : *(0.77);
} ;
process = component("gxdistortion.dsp").dist(drive,wet_dry) : tubeax(preamp,gain1) with {
drive = ampctrl.drive;
wet_dry = ampctrl.wet_dry;
preamp = ampctrl.preamp;
gain1 = ampctrl.gain1;
/*
drive = vslider(".gxdistortion.drive[alias]",0.35, 0, 1, 0.01);
wet_dry = vslider(".gxdistortion.wet_dry[alias]", 100, 0, 100, 1) : /(100) : smoothi(0.999);
preamp = vslider(".amp2.stage1.Pregain[alias]",0,-20,20,0.1) : ba.db2linear : smoothi(0.999);
gain1 = vslider(".amp2.stage2.gain1[alias]", 6, -20.0, 20.0, 0.1) : ba.db2linear : smoothi(0.999);
*/
};
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/gxamp2.dsp | faust | in amp tube ba.selector
***************************************************************
** Tube Preamp Emulation stage 1 - 2
b0 = 1;
b1 = -1.01;
b2 = 0;
a1 = -1.84;
a2 = 0.846416;
drive = vslider(".gxdistortion.drive[alias]",0.35, 0, 1, 0.01);
wet_dry = vslider(".gxdistortion.wet_dry[alias]", 100, 0, 100, 1) : /(100) : smoothi(0.999);
preamp = vslider(".amp2.stage1.Pregain[alias]",0,-20,20,0.1) : ba.db2linear : smoothi(0.999);
gain1 = vslider(".amp2.stage2.gain1[alias]", 6, -20.0, 20.0, 0.1) : ba.db2linear : smoothi(0.999);
| declare name "6V6";
declare samplerate "96000";
import("stdfaust.lib");
import("guitarix.lib");
bifilter = fi.tf2(b0,b1,b2,a1,a2) with
{
c = 1.059;
R = 0.9221;
lc0 = 0.00506158;
lc1 = 0.06446806;
lc2 = 0.27547621;
lc3 = 0.43359433;
lc4 = 1.31282248;
lc5 = 0.07238887;
fc = 1200 : *(2*ma.PI/ma.SR) : log;
p = lc0*pow(fc,5) + lc1*pow(fc,4) + lc2*pow(fc,3) + lc3*pow(fc,2) + lc4*fc + lc5 : exp;
b0 = 1;
b1 = -c;
b2 = 0;
a1 = -2*R*cos(p);
a2 = R*R;
};
tubec(preamp,gain1) = hgroup("stage1", stage1) :
hgroup("stage2", stage2)
with {
stage1 = tubestage(TB_6V6_68k,86.0,2700.0, 1.784417):
fi.lowpass(1,6531.0) : *(preamp) : tubestage(TB_6V6_250k,132.0,1500.0, 1.364616);
stage2 = fi.lowpass(1,6531.0) : *(gain1) : tubestage(TB_6V6_250k,194.0,820.0, 0.962132);
};
tubeax(preamp,gain1) = hgroup("stage1", stage1) :
hgroup("stage2", stage2)
with {
stage1 = *(preamp): tubestage(TB_6V6_68k,86.0,2700.0, 1.784417): *(0.77) :
fi.lowpass(1,6531.0) : *(preamp) : tubestage(TB_6V6_250k,132.0,1500.0, 1.364616): *(0.77);
stage2 = fi.lowpass(1,6531.0) : *(gain1) : bifilter : tubestage(TB_6V6_250k,194.0,820.0, 0.962132) : *(0.77);
} ;
process = component("gxdistortion.dsp").dist(drive,wet_dry) : tubeax(preamp,gain1) with {
drive = ampctrl.drive;
wet_dry = ampctrl.wet_dry;
preamp = ampctrl.preamp;
gain1 = ampctrl.gain1;
};
|
fdf5818f3cb18678c86be30873dbe502cd302a8797e16e72a79f89f5d1aea99f | brummer10/guitarix | gxamp2.dsp | declare id "6V6"; // in amp tube ba.selector
declare name "6V6";
import("stdfaust.lib");
import("guitarix.lib");
/****************************************************************
** Tube Preamp Emulation stage 1 - 2
*/
bifilter = fi.tf2(b0,b1,b2,a1,a2) with
{
c = 1.059;
R = 0.9221;
lc0 = 0.00506158;
lc1 = 0.06446806;
lc2 = 0.27547621;
lc3 = 0.43359433;
lc4 = 1.31282248;
lc5 = 0.07238887;
fc = 1200 : *(2*ma.PI/ma.SR) : log;
p = lc0*pow(fc,5) + lc1*pow(fc,4) + lc2*pow(fc,3) + lc3*pow(fc,2) + lc4*fc + lc5 : exp;
//b0 = 1;
//b1 = -1.01;
//b2 = 0;
//a1 = -1.84;
//a2 = 0.846416;
b0 = 1;
b1 = -c;
b2 = 0;
a1 = -2*R*cos(p);
a2 = R*R;
};
tubec(preamp,gain1) = hgroup("stage1", stage1) :
hgroup("stage2", stage2)
with {
stage1 = tubestage(TB_6V6_68k,86.0,2700.0,2.296150):
fi.lowpass(1,6531.0) : *(preamp) : tubestage(TB_6V6_250k,132.0,1500.0,1.675587);
stage2 = fi.lowpass(1,6531.0) : *(gain1) : tubestage(TB_6V6_250k,194.0,820.0,1.130462);
};
tubeax(preamp,gain1) = hgroup("stage1", stage1) :
hgroup("stage2", stage2)
with {
stage1 = *(preamp): tubestage(TB_6V6_68k,86.0,2700.0,2.296150): *(0.77) :
fi.lowpass(1,6531.0) : *(preamp) : tubestage(TB_6V6_250k,132.0,1500.0,1.675587): *(0.77);
stage2 = fi.lowpass(1,6531.0) : *(gain1) : bifilter : tubestage(TB_6V6_250k,194.0,820.0,1.130462) : *(0.77);
} ;
process = component("gxdistortion.dsp").dist(drive,wet_dry) : tubeax(preamp,gain1) with {
drive = ampctrl.drive;
wet_dry = ampctrl.wet_dry;
preamp = ampctrl.preamp;
gain1 = ampctrl.gain1;
/*
drive = vslider(".gxdistortion.drive[alias]",0.35, 0, 1, 0.01);
wet_dry = vslider(".gxdistortion.wet_dry[alias]", 100, 0, 100, 1) : /(100) : smoothi(0.999);
preamp = vslider(".amp2.stage1.Pregain[alias]",0,-20,20,0.1) : ba.db2linear : smoothi(0.999);
gain1 = vslider(".amp2.stage2.gain1[alias]", 6, -20.0, 20.0, 0.1) : ba.db2linear : smoothi(0.999);
*/
};
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/gxamp2.dsp | faust | in amp tube ba.selector
***************************************************************
** Tube Preamp Emulation stage 1 - 2
b0 = 1;
b1 = -1.01;
b2 = 0;
a1 = -1.84;
a2 = 0.846416;
drive = vslider(".gxdistortion.drive[alias]",0.35, 0, 1, 0.01);
wet_dry = vslider(".gxdistortion.wet_dry[alias]", 100, 0, 100, 1) : /(100) : smoothi(0.999);
preamp = vslider(".amp2.stage1.Pregain[alias]",0,-20,20,0.1) : ba.db2linear : smoothi(0.999);
gain1 = vslider(".amp2.stage2.gain1[alias]", 6, -20.0, 20.0, 0.1) : ba.db2linear : smoothi(0.999);
| declare name "6V6";
import("stdfaust.lib");
import("guitarix.lib");
bifilter = fi.tf2(b0,b1,b2,a1,a2) with
{
c = 1.059;
R = 0.9221;
lc0 = 0.00506158;
lc1 = 0.06446806;
lc2 = 0.27547621;
lc3 = 0.43359433;
lc4 = 1.31282248;
lc5 = 0.07238887;
fc = 1200 : *(2*ma.PI/ma.SR) : log;
p = lc0*pow(fc,5) + lc1*pow(fc,4) + lc2*pow(fc,3) + lc3*pow(fc,2) + lc4*fc + lc5 : exp;
b0 = 1;
b1 = -c;
b2 = 0;
a1 = -2*R*cos(p);
a2 = R*R;
};
tubec(preamp,gain1) = hgroup("stage1", stage1) :
hgroup("stage2", stage2)
with {
stage1 = tubestage(TB_6V6_68k,86.0,2700.0,2.296150):
fi.lowpass(1,6531.0) : *(preamp) : tubestage(TB_6V6_250k,132.0,1500.0,1.675587);
stage2 = fi.lowpass(1,6531.0) : *(gain1) : tubestage(TB_6V6_250k,194.0,820.0,1.130462);
};
tubeax(preamp,gain1) = hgroup("stage1", stage1) :
hgroup("stage2", stage2)
with {
stage1 = *(preamp): tubestage(TB_6V6_68k,86.0,2700.0,2.296150): *(0.77) :
fi.lowpass(1,6531.0) : *(preamp) : tubestage(TB_6V6_250k,132.0,1500.0,1.675587): *(0.77);
stage2 = fi.lowpass(1,6531.0) : *(gain1) : bifilter : tubestage(TB_6V6_250k,194.0,820.0,1.130462) : *(0.77);
} ;
process = component("gxdistortion.dsp").dist(drive,wet_dry) : tubeax(preamp,gain1) with {
drive = ampctrl.drive;
wet_dry = ampctrl.wet_dry;
preamp = ampctrl.preamp;
gain1 = ampctrl.gain1;
};
|
0c9e93401bc35fb439b057818e5a293cf4856f64a64fc857bced2d4007e4a613 | brummer10/guitarix | gxamp2_stereo.dsp | declare id "6V6"; // in amp tube ba.selector
declare name "6V6";
import("stdfaust.lib");
import("guitarix.lib");
/****************************************************************
** Tube Preamp Emulation stage 1 - 2
*/
bifilter = fi.tf2(b0,b1,b2,a1,a2) with
{
c = 1.059;
R = 0.9221;
lc0 = 0.00506158;
lc1 = 0.06446806;
lc2 = 0.27547621;
lc3 = 0.43359433;
lc4 = 1.31282248;
lc5 = 0.07238887;
fc = 1200 : *(2*ma.PI/ma.SR) : log;
p = lc0*pow(fc,5) + lc1*pow(fc,4) + lc2*pow(fc,3) + lc3*pow(fc,2) + lc4*fc + lc5 : exp;
//b0 = 1;
//b1 = -1.01;
//b2 = 0;
//a1 = -1.84;
//a2 = 0.846416;
b0 = 1;
b1 = -c;
b2 = 0;
a1 = -2*R*cos(p);
a2 = R*R;
};
tubec(preamp,gain1) = hgroup("stage1", stage1) :
hgroup("stage2", stage2)
with {
stage1 = tubestage(TB_6V6_68k,86.0,2700.0,2.296150):
fi.lowpass(1,6531.0) : *(preamp) : tubestage(TB_6V6_250k,132.0,1500.0,1.675587);
stage2 = fi.lowpass(1,6531.0) : *(gain1) : tubestage(TB_6V6_250k,194.0,820.0,1.130462);
};
tubeax(preamp,gain1) = hgroup("stage1", stage1) :
hgroup("stage2", stage2)
with {
stage1 = *(preamp): tubestage(TB_6V6_68k,86.0,2700.0,2.296150): *(0.77) :
fi.lowpass(1,6531.0) : *(preamp) : tubestage(TB_6V6_250k,132.0,1500.0,1.675587): *(0.77);
stage2 = fi.lowpass(1,6531.0) : *(gain1) : bifilter : tubestage(TB_6V6_250k,194.0,820.0,1.130462) : *(0.77);
} ;
amp = component("gxdistortion.dsp").dist(drive,wet_dry) : tubeax(preamp,gain1) with {
drive = ampctrl.drive;
wet_dry = ampctrl.wet_dry;
preamp = ampctrl.preamp;
gain1 = ampctrl.gain1;
/*
drive = vslider(".gxdistortion.drive[alias]",0.35, 0, 1, 0.01);
wet_dry = vslider(".gxdistortion.wet_dry[alias]", 100, 0, 100, 1) : /(100) : smoothi(0.999);
preamp = vslider(".amp2.stage1.Pregain[alias]",0,-20,20,0.1) : ba.db2linear : smoothi(0.999);
gain1 = vslider(".amp2.stage2.gain1[alias]", 6, -20.0, 20.0, 0.1) : ba.db2linear : smoothi(0.999);
*/
};
process = amp,amp;
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/gxamp2_stereo.dsp | faust | in amp tube ba.selector
***************************************************************
** Tube Preamp Emulation stage 1 - 2
b0 = 1;
b1 = -1.01;
b2 = 0;
a1 = -1.84;
a2 = 0.846416;
drive = vslider(".gxdistortion.drive[alias]",0.35, 0, 1, 0.01);
wet_dry = vslider(".gxdistortion.wet_dry[alias]", 100, 0, 100, 1) : /(100) : smoothi(0.999);
preamp = vslider(".amp2.stage1.Pregain[alias]",0,-20,20,0.1) : ba.db2linear : smoothi(0.999);
gain1 = vslider(".amp2.stage2.gain1[alias]", 6, -20.0, 20.0, 0.1) : ba.db2linear : smoothi(0.999);
| declare name "6V6";
import("stdfaust.lib");
import("guitarix.lib");
bifilter = fi.tf2(b0,b1,b2,a1,a2) with
{
c = 1.059;
R = 0.9221;
lc0 = 0.00506158;
lc1 = 0.06446806;
lc2 = 0.27547621;
lc3 = 0.43359433;
lc4 = 1.31282248;
lc5 = 0.07238887;
fc = 1200 : *(2*ma.PI/ma.SR) : log;
p = lc0*pow(fc,5) + lc1*pow(fc,4) + lc2*pow(fc,3) + lc3*pow(fc,2) + lc4*fc + lc5 : exp;
b0 = 1;
b1 = -c;
b2 = 0;
a1 = -2*R*cos(p);
a2 = R*R;
};
tubec(preamp,gain1) = hgroup("stage1", stage1) :
hgroup("stage2", stage2)
with {
stage1 = tubestage(TB_6V6_68k,86.0,2700.0,2.296150):
fi.lowpass(1,6531.0) : *(preamp) : tubestage(TB_6V6_250k,132.0,1500.0,1.675587);
stage2 = fi.lowpass(1,6531.0) : *(gain1) : tubestage(TB_6V6_250k,194.0,820.0,1.130462);
};
tubeax(preamp,gain1) = hgroup("stage1", stage1) :
hgroup("stage2", stage2)
with {
stage1 = *(preamp): tubestage(TB_6V6_68k,86.0,2700.0,2.296150): *(0.77) :
fi.lowpass(1,6531.0) : *(preamp) : tubestage(TB_6V6_250k,132.0,1500.0,1.675587): *(0.77);
stage2 = fi.lowpass(1,6531.0) : *(gain1) : bifilter : tubestage(TB_6V6_250k,194.0,820.0,1.130462) : *(0.77);
} ;
amp = component("gxdistortion.dsp").dist(drive,wet_dry) : tubeax(preamp,gain1) with {
drive = ampctrl.drive;
wet_dry = ampctrl.wet_dry;
preamp = ampctrl.preamp;
gain1 = ampctrl.gain1;
};
process = amp,amp;
|
b3cf69679760d2fa6fef8d85321e25a36fb01844d216b25a9cb33bf1c826b855 | brummer10/guitarix | Exp.dsp |
import("stdfaust.lib");
import("guitarix.lib");
/****************************************************************
** unused
*/
/*
distort(x) = x : *(pregain) : (+ : flt : BP(vtu) : flt) ~ *(back) : gain with
{
back = vslider("FB",0.95,0.6,0.99,0.001);
mapper(v) = 1 - 19.7 * v * v;
flt(x) = +(x - x') ~ *(mapper(vslider("FreqT", 1250, 200, 3000, 1)/ma.SR));
vtu(x) = valve.vtu_(dist, q, g, x);
g = vslider("Duty", 0, -1.0, 1.0, 0.01) : *(1-log(2)) : +(1);
q = vslider("Qual", 0.5, 0, 1, 0.01)*1.75 - 1.04 : pow(_, 9);
dist = pow(10, 4*(vslider("Dist", 0.5, 0, 1, 0.01)));
pregain = 0.7*sqrt(1-back);
gain = BP(*(0.4/(vtu(0.2)-vtu(-0.2))));
};
*/
/*
process = hgroup("Tube [option : detachable]", BP(
hgroup("1 Amp",distort) :
vgroup("2 Highpass",BP(highpass1(fch))) :
vgroup("3 Lowpass",BP(lowpass1(fcl)))
)) with
{
fch = vslider("freq",130,50,200,1);
fcl = vslider("freq",200,1400,8000,10);
};
*/
/*
process = hgroup("2 Tube",
hgroup("1a Distortion", BP(vtu)):
hgroup("1b Distortion", BP(vtu)):
hgroup("1c Distortion", BP(vtu)):
hgroup("1d Distortion", BP(vtu)):
hgroup("2 Highpass",BP(highpass2(fch))) :
hgroup("3 Lowpass",BP(lowpass1(fcl)))
) with
{
vtu = valve.vtu(dist, q, g) : *(0.1/(valve.vtu(dist, q, g, 0.05)-valve.vtu(dist, q, g, -0.05)));
dist = pow(10, 4*vslider("dist", 0.5, 0, 1, 0.01));
q = vslider("qual", 0.5, 0, 1, 0.01) : -(0.9) : /(10);
g = vslider("duty", 0, -1.0, 1.0, 0.01) : *(1-log(2)) : +(1);
fch = vslider("freq",130,50,200,1);
fcl = vslider("freq",200,1400,8000,10);
};
*/
// envelope meter for insertion
// the log10 function might be slow, with execution
// time depending on input
meter = _ <: (graph*1e-50,_) :> _ with {
t = 0.05;
g = exp(-1/(ma.SR*t));
env = abs : *(1-g) : + ~ *(g);
graph = env : 20*log10 : clip(-20,20) : vbargraph("ENV",-20,20);
};
wet_dry = vslider("wet_dry[name:wet/dry]", 0, -1, 1, 0.1);
process = hgroup("test", hgroup("tremolo",wet_dry_mix(wet_dry, BP(component("tremolo.dsp")))));
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/Exp.dsp | faust | ***************************************************************
** unused
distort(x) = x : *(pregain) : (+ : flt : BP(vtu) : flt) ~ *(back) : gain with
{
back = vslider("FB",0.95,0.6,0.99,0.001);
mapper(v) = 1 - 19.7 * v * v;
flt(x) = +(x - x') ~ *(mapper(vslider("FreqT", 1250, 200, 3000, 1)/ma.SR));
vtu(x) = valve.vtu_(dist, q, g, x);
g = vslider("Duty", 0, -1.0, 1.0, 0.01) : *(1-log(2)) : +(1);
q = vslider("Qual", 0.5, 0, 1, 0.01)*1.75 - 1.04 : pow(_, 9);
dist = pow(10, 4*(vslider("Dist", 0.5, 0, 1, 0.01)));
pregain = 0.7*sqrt(1-back);
gain = BP(*(0.4/(vtu(0.2)-vtu(-0.2))));
};
process = hgroup("Tube [option : detachable]", BP(
hgroup("1 Amp",distort) :
vgroup("2 Highpass",BP(highpass1(fch))) :
vgroup("3 Lowpass",BP(lowpass1(fcl)))
)) with
{
fch = vslider("freq",130,50,200,1);
fcl = vslider("freq",200,1400,8000,10);
};
process = hgroup("2 Tube",
hgroup("1a Distortion", BP(vtu)):
hgroup("1b Distortion", BP(vtu)):
hgroup("1c Distortion", BP(vtu)):
hgroup("1d Distortion", BP(vtu)):
hgroup("2 Highpass",BP(highpass2(fch))) :
hgroup("3 Lowpass",BP(lowpass1(fcl)))
) with
{
vtu = valve.vtu(dist, q, g) : *(0.1/(valve.vtu(dist, q, g, 0.05)-valve.vtu(dist, q, g, -0.05)));
dist = pow(10, 4*vslider("dist", 0.5, 0, 1, 0.01));
q = vslider("qual", 0.5, 0, 1, 0.01) : -(0.9) : /(10);
g = vslider("duty", 0, -1.0, 1.0, 0.01) : *(1-log(2)) : +(1);
fch = vslider("freq",130,50,200,1);
fcl = vslider("freq",200,1400,8000,10);
};
envelope meter for insertion
the log10 function might be slow, with execution
time depending on input |
import("stdfaust.lib");
import("guitarix.lib");
meter = _ <: (graph*1e-50,_) :> _ with {
t = 0.05;
g = exp(-1/(ma.SR*t));
env = abs : *(1-g) : + ~ *(g);
graph = env : 20*log10 : clip(-20,20) : vbargraph("ENV",-20,20);
};
wet_dry = vslider("wet_dry[name:wet/dry]", 0, -1, 1, 0.1);
process = hgroup("test", hgroup("tremolo",wet_dry_mix(wet_dry, BP(component("tremolo.dsp")))));
|
b7c20b628c01db1435a428904a3cc07334ee90892f81c8c082e1ce882f40488f | brummer10/guitarix | mxrdist.dsp | declare id "mxrdis";
declare name "MXR Distortion Plus";
declare shortname "MXR+";
declare category "Distortion";
declare samplerate "96000";
import("stdfaust.lib");
s = 0.993;
fs = float(ma.SR);
drive = 0.75 + hslider("drive[name:Drive]", 0.5, 0, 1, 0.01) * 0.25 : si.smooth(s);
mxr_in = fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
b0 = fs*(4.29274359816386e-10*fs + 6.43911539724579e-10);
b1 = -8.58548719632772e-10*pow(fs,2);
b2 = fs*(4.29274359816386e-10*fs - 6.43911539724579e-10);
a0 = fs*(4.3356710341455e-10*fs + 2.2111922274142e-8) + 2.14637179908193e-8;
a1 = -8.671342068291e-10*pow(fs,2) + 4.29274359816386e-8;
a2 = fs*(4.3356710341455e-10*fs - 2.2111922274142e-8) + 2.14637179908193e-8;
};
mxr_out = fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
Volume = vslider("Volume[name:Volume]", 0.5, 0, 1, 0.01) : si.smooth(s);
b0 = 7.03343695930453e-6*Volume*fs;
b1 = 0;
b2 = -7.03343695930453e-6*Volume*fs;
a0 = fs*(1.40668739186091e-10*fs + 1.40739073555684e-5) + 0.000351671847965227;
a1 = -2.81337478372181e-10*pow(fs,2) + 0.000703343695930453;
a2 = fs*(1.40668739186091e-10*fs - 1.40739073555684e-5) + 0.000351671847965227;
};
mxr_drive = fi.iir((b0/a0,b1/a0),(a1/a0)) with {
b0 = -1.38434672619083e-5*(1.0-drive)*fs + 1.39085315580392e-5*fs + 0.000147270928318173;
b1 = 1.38434672619083e-5*(1.0-drive)*fs - 1.39085315580392e-5*fs + 0.000147270928318173;
a0 = -1.38434672619083e-5*(1.0-drive)*fs + 2.77519988199475e-5*fs + 0.000147270928318173;
a1 = 1.38434672619083e-5*(1.0-drive)*fs - 2.77519988199475e-5*fs + 0.000147270928318173;
};
process = mxr_in : X3 : lf : mxr_out with {
R1 = 4700 + 500000 * (1.0 -drive);
R2 = 5000 + 500000 * drive;
C = 0.047 * 1e-6;
a1 = (R1 + R2) * C * 2 * ma.SR;
a2 = R1 * C * 2 * ma.SR;
B0 = (1 + a1) / (1 + a2);
B1 = (1 - a1) / (1 + a2);
A1 = (1 - a2) / (1 + a2);
X2 = fi.tf1(B0, B1, A1);
opamp = ffunction(float opamp2(float), "clipping.h", "");
X3 = _ <: _ - opamp(X2-_) :> _ ;
asymclip = ffunction(float asymhardclip2(float), "clipping.h", "");
clip = asymclip(_);
lf = fi.lowpass(3,16200.);
};
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/mxrdist.dsp | faust | declare id "mxrdis";
declare name "MXR Distortion Plus";
declare shortname "MXR+";
declare category "Distortion";
declare samplerate "96000";
import("stdfaust.lib");
s = 0.993;
fs = float(ma.SR);
drive = 0.75 + hslider("drive[name:Drive]", 0.5, 0, 1, 0.01) * 0.25 : si.smooth(s);
mxr_in = fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
b0 = fs*(4.29274359816386e-10*fs + 6.43911539724579e-10);
b1 = -8.58548719632772e-10*pow(fs,2);
b2 = fs*(4.29274359816386e-10*fs - 6.43911539724579e-10);
a0 = fs*(4.3356710341455e-10*fs + 2.2111922274142e-8) + 2.14637179908193e-8;
a1 = -8.671342068291e-10*pow(fs,2) + 4.29274359816386e-8;
a2 = fs*(4.3356710341455e-10*fs - 2.2111922274142e-8) + 2.14637179908193e-8;
};
mxr_out = fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
Volume = vslider("Volume[name:Volume]", 0.5, 0, 1, 0.01) : si.smooth(s);
b0 = 7.03343695930453e-6*Volume*fs;
b1 = 0;
b2 = -7.03343695930453e-6*Volume*fs;
a0 = fs*(1.40668739186091e-10*fs + 1.40739073555684e-5) + 0.000351671847965227;
a1 = -2.81337478372181e-10*pow(fs,2) + 0.000703343695930453;
a2 = fs*(1.40668739186091e-10*fs - 1.40739073555684e-5) + 0.000351671847965227;
};
mxr_drive = fi.iir((b0/a0,b1/a0),(a1/a0)) with {
b0 = -1.38434672619083e-5*(1.0-drive)*fs + 1.39085315580392e-5*fs + 0.000147270928318173;
b1 = 1.38434672619083e-5*(1.0-drive)*fs - 1.39085315580392e-5*fs + 0.000147270928318173;
a0 = -1.38434672619083e-5*(1.0-drive)*fs + 2.77519988199475e-5*fs + 0.000147270928318173;
a1 = 1.38434672619083e-5*(1.0-drive)*fs - 2.77519988199475e-5*fs + 0.000147270928318173;
};
process = mxr_in : X3 : lf : mxr_out with {
R1 = 4700 + 500000 * (1.0 -drive);
R2 = 5000 + 500000 * drive;
C = 0.047 * 1e-6;
a1 = (R1 + R2) * C * 2 * ma.SR;
a2 = R1 * C * 2 * ma.SR;
B0 = (1 + a1) / (1 + a2);
B1 = (1 - a1) / (1 + a2);
A1 = (1 - a2) / (1 + a2);
X2 = fi.tf1(B0, B1, A1);
opamp = ffunction(float opamp2(float), "clipping.h", "");
X3 = _ <: _ - opamp(X2-_) :> _ ;
asymclip = ffunction(float asymhardclip2(float), "clipping.h", "");
clip = asymclip(_);
lf = fi.lowpass(3,16200.);
};
|
|
b9261acba48fbaabc1622943ea80da582058c0c6c739ee56852655b58bbd690a | brummer10/guitarix | selecteq.dsp | declare id "eqs";
declare name "Scaleable EQ";
declare category "Tone Control";
declare license "BSD";
declare copyright "(c)GRAME 2006";
import("stdfaust.lib");
import("guitarix.lib");
//------------------------- Process --------------------------------
process = ifilter(vslider("Qs31_25", 50, 1, 100, 1), vslider("freq31_25 [tooltip:Hz]",31, 20, 20000, 1), vslider("fs31_25[tooltip:gain (dB) at 31.25 Hz]", 0, -50, 10, 0.1))
: ifilter(vslider("Qs62_5", 50, 1, 100, 1), vslider("freq62_5 [tooltip:Hz]",62, 20, 20000, 1), vslider("fs62_5 [tooltip:gain (dB) at 62.5 Hz]", 0, -50, 10, 0.1))
: ifilter(vslider("Qs125", 50, 1, 100, 1), vslider("freq125 [tooltip:Hz]",125., 20, 20000, 1), vslider("fs125 [tooltip:gain (dB) at 125 Hz]", 0, -50, 10, 0.1))
: ifilter(vslider("Qs250", 50, 1, 100, 1), vslider("freq250 [tooltip:Hz]",250., 20, 20000, 1), vslider("fs250 [tooltip:gain (dB) at 250 Hz]", 0, -50, 10, 0.1))
: ifilter(vslider("Qs500", 50, 1, 100, 1), vslider("freq500 [tooltip:Hz]",500., 20, 20000, 1), vslider("fs500 [tooltip:gain (dB) at 500 Hz]", 0, -50, 10, 0.1))
: ifilter(vslider("Qs1k", 50, 1, 100, 1), vslider("freq1k [tooltip:Hz]",1000., 20, 20000, 1), vslider("fs1k [tooltip:gain (dB) at 1 kHz]", 0, -50, 10, 0.1))
: ifilter(vslider("Qs2k", 50, 1, 100, 1), vslider("freq2k [tooltip:Hz]",2000., 20, 20000, 1), vslider("fs2k [tooltip:gain (dB) at 2 kHz]", 0, -50, 10, 0.1))
: ifilter(vslider("Qs4k", 50, 1, 100, 1), vslider("freq4k [tooltip:Hz]",4000., 20, 20000, 1), vslider("fs4k [tooltip:gain (dB) at 4 kHz]", 0, -50, 10, 0.1))
: ifilter(vslider("Qs8k", 50, 1, 100, 1), vslider("freq8k [tooltip:Hz]",8000., 20, 20000, 1), vslider("fs8k [tooltip:gain (dB) at 8 kHz]", 0, -50, 10, 0.1))
: ifilter(vslider("Qs16k", 50, 1, 100, 1),vslider("freq16k [tooltip:Hz]",16000., 20, 20000, 1), vslider("fs16k [tooltip:gain (dB) at 16 kHz]", 0, -50, 10, 0.1))
;
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/selecteq.dsp | faust | ------------------------- Process -------------------------------- | declare id "eqs";
declare name "Scaleable EQ";
declare category "Tone Control";
declare license "BSD";
declare copyright "(c)GRAME 2006";
import("stdfaust.lib");
import("guitarix.lib");
process = ifilter(vslider("Qs31_25", 50, 1, 100, 1), vslider("freq31_25 [tooltip:Hz]",31, 20, 20000, 1), vslider("fs31_25[tooltip:gain (dB) at 31.25 Hz]", 0, -50, 10, 0.1))
: ifilter(vslider("Qs62_5", 50, 1, 100, 1), vslider("freq62_5 [tooltip:Hz]",62, 20, 20000, 1), vslider("fs62_5 [tooltip:gain (dB) at 62.5 Hz]", 0, -50, 10, 0.1))
: ifilter(vslider("Qs125", 50, 1, 100, 1), vslider("freq125 [tooltip:Hz]",125., 20, 20000, 1), vslider("fs125 [tooltip:gain (dB) at 125 Hz]", 0, -50, 10, 0.1))
: ifilter(vslider("Qs250", 50, 1, 100, 1), vslider("freq250 [tooltip:Hz]",250., 20, 20000, 1), vslider("fs250 [tooltip:gain (dB) at 250 Hz]", 0, -50, 10, 0.1))
: ifilter(vslider("Qs500", 50, 1, 100, 1), vslider("freq500 [tooltip:Hz]",500., 20, 20000, 1), vslider("fs500 [tooltip:gain (dB) at 500 Hz]", 0, -50, 10, 0.1))
: ifilter(vslider("Qs1k", 50, 1, 100, 1), vslider("freq1k [tooltip:Hz]",1000., 20, 20000, 1), vslider("fs1k [tooltip:gain (dB) at 1 kHz]", 0, -50, 10, 0.1))
: ifilter(vslider("Qs2k", 50, 1, 100, 1), vslider("freq2k [tooltip:Hz]",2000., 20, 20000, 1), vslider("fs2k [tooltip:gain (dB) at 2 kHz]", 0, -50, 10, 0.1))
: ifilter(vslider("Qs4k", 50, 1, 100, 1), vslider("freq4k [tooltip:Hz]",4000., 20, 20000, 1), vslider("fs4k [tooltip:gain (dB) at 4 kHz]", 0, -50, 10, 0.1))
: ifilter(vslider("Qs8k", 50, 1, 100, 1), vslider("freq8k [tooltip:Hz]",8000., 20, 20000, 1), vslider("fs8k [tooltip:gain (dB) at 8 kHz]", 0, -50, 10, 0.1))
: ifilter(vslider("Qs16k", 50, 1, 100, 1),vslider("freq16k [tooltip:Hz]",16000., 20, 20000, 1), vslider("fs16k [tooltip:gain (dB) at 16 kHz]", 0, -50, 10, 0.1))
;
|
f1ffe54ccf0274de41adb68513b3201f2d4d5c28308b35bbe521df47934d440c | brummer10/guitarix | snare.dsp | import("stdfaust.lib");
// Port from SuperCollider to Faust of snare_stein in
// SynthDefPool by Dan Stowell, which in turn was based
// on a Sound-on-Sound 'synth secrets' tutorial
//https://github.com/josmithiii/faust-jos/tree/master/percussion
decay(n,x) = x - (x>0.0)/n;
release(n) = + ~ decay(n);
envgate(dur,trigger) = trigger : release(int(dur*float(ma.SR))) : >(0.0);
adsr(a,d,s,r,t) = env ~ (_,_) : (!,_) // the 2 'state' signals are fed back
with {
env (p2,y) =
(t>0) & (p2|(y>=1)), // p2 = decay-sustain phase
(y + p1*u - (p2&(y>s))*v*y - p3*w*y) // y = envelop signal
*((p3==0)|(y>=eps)) // cut off tails to prevent denormals
with {
p1 = (p2==0) & (t>0) & (y<1); // p1 = attack phase
p3 = (t<=0) & (y>0); // p3 = release phase
// #samples in attack, decay, release, must be >0
na = ma.SR*a+(a==0.0); nd = ma.SR*d+(d==0.0); nr = ma.SR*r+(r==0.0);
// correct zero sustain level
z = s+(s==0.0)*ba.db2linear(-60);
// attack, decay and (-60dB) release rates
u = 1/na; v = 1-pow(z, 1/nd); w = 1-1/pow(z*ba.db2linear(60), 1/nr);
// values below this threshold are considered zero in the release phase
eps = ba.db2linear(-120);
};
};
perc(att,rel,trigger) = adsr(att,0.001,1.0,rel,envgate(att,trigger));
sinosc0(freq) = os.oscrs(freq); // SinOsc at phase fi.zero
line(start,end,dur,trigger) = trigger : release(int(dur*float(ma.SR)))
: *(start-end)+end;
lpf(freq) = fi.lowpass(3,freq);
hpf(freq) = fi.highpass(3,freq);
gate = checkbox("gate [nomidi:no][alias]");
trigger = (gate>gate');
ampdb = vslider("Gain [tooltip: Volume level in decibels] ",-20,-60,40,0.1);
amp = ampdb : si.smooth(0.999) : ba.db2linear;
lpnoise = no.noise : lpf(7040);
hpnoise = no.noise : hpf(523);
att = 0.0005; // attack-time in seconds
snare = (0.25 + sinosc0(330)) * perc(att,0.055,trigger)
+ (0.25 + sinosc0(185)) * perc(att,0.075,trigger)
+ 0.2 * lpnoise * perc(att,0.2,trigger)
+ 0.2 * hpnoise * perc(att,0.183,trigger);
process = snare * amp;
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/snare.dsp | faust | Port from SuperCollider to Faust of snare_stein in
SynthDefPool by Dan Stowell, which in turn was based
on a Sound-on-Sound 'synth secrets' tutorial
https://github.com/josmithiii/faust-jos/tree/master/percussion
the 2 'state' signals are fed back
p2 = decay-sustain phase
y = envelop signal
cut off tails to prevent denormals
p1 = attack phase
p3 = release phase
#samples in attack, decay, release, must be >0
correct zero sustain level
attack, decay and (-60dB) release rates
values below this threshold are considered zero in the release phase
SinOsc at phase fi.zero
attack-time in seconds | import("stdfaust.lib");
decay(n,x) = x - (x>0.0)/n;
release(n) = + ~ decay(n);
envgate(dur,trigger) = trigger : release(int(dur*float(ma.SR))) : >(0.0);
with {
env (p2,y) =
with {
na = ma.SR*a+(a==0.0); nd = ma.SR*d+(d==0.0); nr = ma.SR*r+(r==0.0);
z = s+(s==0.0)*ba.db2linear(-60);
u = 1/na; v = 1-pow(z, 1/nd); w = 1-1/pow(z*ba.db2linear(60), 1/nr);
eps = ba.db2linear(-120);
};
};
perc(att,rel,trigger) = adsr(att,0.001,1.0,rel,envgate(att,trigger));
line(start,end,dur,trigger) = trigger : release(int(dur*float(ma.SR)))
: *(start-end)+end;
lpf(freq) = fi.lowpass(3,freq);
hpf(freq) = fi.highpass(3,freq);
gate = checkbox("gate [nomidi:no][alias]");
trigger = (gate>gate');
ampdb = vslider("Gain [tooltip: Volume level in decibels] ",-20,-60,40,0.1);
amp = ampdb : si.smooth(0.999) : ba.db2linear;
lpnoise = no.noise : lpf(7040);
hpnoise = no.noise : hpf(523);
snare = (0.25 + sinosc0(330)) * perc(att,0.055,trigger)
+ (0.25 + sinosc0(185)) * perc(att,0.075,trigger)
+ 0.2 * lpnoise * perc(att,0.2,trigger)
+ 0.2 * hpnoise * perc(att,0.183,trigger);
process = snare * amp;
|
13ddcc56ae6095c9e98df276ba7d900791cf2f49aaface859eeeb0b5ca6b1a64 | brummer10/Rumor | rumor.dsp |
/*******************************************************************************
**************************** File generated by *********************************
********************************************************************************
./build-plug.py -i Ruiner.sch -t 1 -T -b
*******************************************************************************/
// generated automatically
// DO NOT MODIFY!
declare id "rumor";
declare name "rumor";
declare category "Extern";
declare shortname "rumor";
declare description "rumor";
declare samplerate "96000";
import("stdfaust.lib");
/*******************************************************************************
* 1-dimensional function table for linear interpolation
*******************************************************************************/
rd = library("reducemaps.lib");
//-- Rdtable from waveform
rtable(table, r) = (table, int(r)):rdtable;
//-- Copy the sign of x to f
ccopysign(f, x) = ma.fabs(f) * sign(x);
//-- Get sign of value x
sign(x) = x<0, 1, -1 : select2;
//-- Check if value x is negative
fsignbit(x) = x<0;
//-- Get fractal part of value n
fractal(n) = n - int(n);
//-- Interpolate value between i and i+1 in table with fractal coefficient f.
interpolation(table, size, f, i) = select2(i<0,select2(i>size-2,
rtable(table, i)*(1-f) + rtable(table,i+1)*f, rtable(table, size-1)),
rtable(table, 0));
//-- reduce dc-offset (noise) from table response for very low values
table_gate(table,x) = select2(ma.fabs(x):rd.maxn(4096)<ma.fabs(rtable(table, 1))*(0.12), x, x*x*x);
//-- Linear interpolation for value x in rdtable
circuit_response(table, low, high, step, size, x) =
interpolation(table, size, fractal(linindex(step, x)),
int(linindex(step, x))), x : ccopysign;
//-- Calculate linear table index for value x
linindex(step, x) = ma.fabs(x) * step;
//-- predefined filterbank
freq_split = fi.filterbank(3, (86.0,210.0,1200.0,6531.0));
/****************************************************************************************
* rumor_table generated by DK/circ_table_gen.py -- do not modify manually
****************************************************************************************/
// variables used
// --sig_max 1.400000
// --table_div 3.393005
// --table_op 1.000000
rumor_clip = circuit_response(rumor_table, low, high, step, size) with{
low = 0;
high =0.833333;
step =142.143;
size =200;
rumor_table = waveform {
0.000000000000,0.001179247307,0.005700404200,0.013696114078,0.023372061838,
0.033432794676,0.043461811993,0.053388498434,0.063206993536,0.072917985483,
0.082522533444,0.092021701974,0.101416548612,0.110708139580,0.119897750725,
0.128986887338,0.137976888372,0.146868847166,0.155663806805,0.164362801522,
0.172966854232,0.181476976838,0.189894170368,0.198219425108,0.206453720733,
0.214598026432,0.222653301025,0.230620493087,0.238500541057,0.246294373355,
0.254002908490,0.261627055172,0.269167712416,0.276625769647,0.284002106808,
0.291297594461,0.298513093886,0.305649457186,0.312707527379,0.319688138504,
0.326592115711,0.333420275357,0.340173425105,0.346852364012,0.353457882624,
0.359990763066,0.366451779133,0.372841696377,0.379161272199,0.385411255930,
0.391592388924,0.397705404640,0.403751028723,0.409729979096,0.415642966031,
0.421490692243,0.427273852959,0.432993136006,0.438649221887,0.444242783860,
0.449774488011,0.455244993338,0.460654951821,0.466005008498,0.471295801539,
0.476527962321,0.481702115497,0.486818879071,0.491878864466,0.496882676597,
0.501830913938,0.506724168591,0.511563026356,0.516348066795,0.521079863300,
0.525758983159,0.530385987621,0.534961431958,0.539485865535,0.543959831863,
0.548383868671,0.552758507962,0.557084276074,0.561361693746,0.565591276168,
0.569773533050,0.573908968673,0.577998081951,0.582041366486,0.586039310626,
0.589992397521,0.593901105176,0.597765906508,0.601587269401,0.605365656755,
0.609101526546,0.612795331873,0.616447521011,0.620058537463,0.623628820013,
0.627158802772,0.630648915230,0.634099582305,0.637511224392,0.640884257411,
0.644219092854,0.647516137833,0.650775795125,0.653998463223,0.657184536373,
0.660334404627,0.663448453885,0.666527065939,0.669570618516,0.672579485321,
0.675554036085,0.678494636598,0.681401648760,0.684275430616,0.687116336403,
0.689924716583,0.692700917890,0.695445283366,0.698158152402,0.700839860776,
0.703490740691,0.706111120814,0.708701326313,0.711261678897,0.713792496847,
0.716294095057,0.718766785071,0.721210875114,0.723626670131,0.726014471821,
0.728374578671,0.730707285991,0.733012885948,0.735291667597,0.737543916918,
0.739769916846,0.741969947304,0.744144285236,0.746293204636,0.748416976584,
0.750515869273,0.752590148041,0.754640075401,0.756665911073,0.758667912011,
0.760646332435,0.762601423857,0.764533435114,0.766442612393,0.768329199259,
0.770193436687,0.772035563085,0.773855814323,0.775654423761,0.777431622274,
0.779187638282,0.780922697769,0.782637024317,0.784330839128,0.786004361046,
0.787657806589,0.789291389968,0.790905323116,0.792499815706,0.794075075183,
0.795631306783,0.797168713555,0.798687496389,0.800187854035,0.801669983128,
0.803134078210,0.804580331752,0.806008934176,0.807420073876,0.808813937243,
0.810190708681,0.811550570633,0.812893703599,0.814220286159,0.815530494989,
0.816824504887,0.818102488790,0.819364617792,0.820611061169,0.821841986392,
0.823057559150,0.824257943370,0.825443301233,0.826613793191,0.827769577993,
0.828910812693,0.830037652677,0.831150251674,0.832248761780,0.833333333468
};
};
/*******************************************************************************
* rumor_p1 generated by dkbuiler from Ruiner_p1.sch
*******************************************************************************/
p1 = pre : fi.tf21(b0/a0,b1/a0,b2/a0,a1/a0,a2/a0) with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
Intensity = vslider("Intensity[name:Intensity][style:knob]", 0.5, 0, 1, 0.01) : Inverted(1) : LogPot(3) : si.smooth(s);
b0 = -3.68740380275009e-5*fs;
b1 = 0.68740380275009e-5;
b2 = 3.68740380275009e-5*fs;
a0 = Intensity*fs*(3.23341146638826e-10*fs + 1.83849807717545e-6) + fs*(2.50211256782905e-10*fs + 1.41841347670627e-7) + 9.19249038587725e-5;
a1 = -6.46682293277652e-10*Intensity*pow(fs,2) - 5.0042251356581e-10*pow(fs,2) + 0.000183849807717545;
a2 = Intensity*fs*(3.23341146638826e-10*fs - 1.83849807717545e-6) + fs*(2.50211256782905e-10*fs - 1.41841347670627e-7) + 9.19249038587725e-5;
};
/*******************************************************************************
* rumor_p2 generated by dkbuiler from Ruiner_p2.sch
*******************************************************************************/
p2 = pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0)) with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
Volume = vslider("Volume[name:Volume][style:knob]", 0.5, 0, 1, 0.01) : Inverted(0) : LogPot(3) : si.smooth(s);
b0 = -1.16796031265384e-9*Volume*pow(fs,2) - 2.33592062530768e-13*pow(fs,2);
b1 = 1.16796031265384e-9*Volume*pow(fs,2) + 2.33592062530768e-13*pow(fs,2);
b2 = 1.16796031265384e-9*Volume*pow(fs,2) + 2.33592062530768e-13*pow(fs,2);
b3 = -1.16796031265384e-9*Volume*pow(fs,2) - 2.33592062530768e-13*pow(fs,2);
a0 = Volume*(Volume*fs*(fs*(-3.96263655940387e-15*fs - 2.5024049214879e-12) - 2.91165940049241e-9) + fs*(fs*(3.96184403209199e-15*fs + 2.58115717169168e-12) + 2.94122192432324e-9) + 2.91165940049241e-8) + fs*(fs*(7.92765070074338e-15*fs + 5.16483259885109e-12) + 5.88536153701812e-9) + 5.82390113286491e-8;
a1 = Volume*(Volume*fs*(fs*(1.18879096782116e-14*fs + 2.5024049214879e-12) - 2.91165940049241e-9) + fs*(fs*(-1.1885532096276e-14*fs - 2.58115717169168e-12) + 2.94122192432324e-9) + 8.73497820147722e-8) + fs*(fs*(-2.37829521022301e-14*fs - 5.16483259885109e-12) + 5.88536153701812e-9) + 1.74717033985947e-7;
a2 = Volume*(Volume*fs*(fs*(-1.18879096782116e-14*fs + 2.5024049214879e-12) + 2.91165940049241e-9) + fs*(fs*(1.1885532096276e-14*fs - 2.58115717169168e-12) - 2.94122192432324e-9) + 8.73497820147722e-8) + fs*(fs*(2.37829521022301e-14*fs - 5.16483259885109e-12) - 5.88536153701812e-9) + 1.74717033985947e-7;
a3 = Volume*(Volume*fs*(fs*(3.96263655940387e-15*fs - 2.5024049214879e-12) + 2.91165940049241e-9) + fs*(fs*(-3.96184403209199e-15*fs + 2.58115717169168e-12) - 2.94122192432324e-9) + 2.91165940049241e-8) + fs*(fs*(-7.92765070074338e-15*fs + 5.16483259885109e-12) - 5.88536153701812e-9) + 5.82390113286491e-8;
};
anti_denormal = pow(10,-20);
anti_denormal_ac = 1 - 1' : *(anti_denormal) : + ~ *(-1);
rumorclip = ffunction(float rumorclip(float), "rumor_table.h", "");
ts9 = _ <: _ - rumorclip(p1-_) :> _;
process = +(anti_denormal_ac) : ts9 : + ~ (*(0.666) : rumorclip : fi.allpassn(4,(-0.2, 0.3, 0.4, 0.5))) : *(Volume) with {
Volume = hslider("level[name:Volume]", 0.5, 0, 1, 0.01) : si.smooth(0.993);
};
| https://raw.githubusercontent.com/brummer10/Rumor/17e4f92a07863cd7851b4b840ffd1846f55c4fe1/Rumor/rumor.dsp | faust | ******************************************************************************
**************************** File generated by *********************************
********************************************************************************
./build-plug.py -i Ruiner.sch -t 1 -T -b
******************************************************************************
generated automatically
DO NOT MODIFY!
******************************************************************************
* 1-dimensional function table for linear interpolation
******************************************************************************
-- Rdtable from waveform
-- Copy the sign of x to f
-- Get sign of value x
-- Check if value x is negative
-- Get fractal part of value n
-- Interpolate value between i and i+1 in table with fractal coefficient f.
-- reduce dc-offset (noise) from table response for very low values
-- Linear interpolation for value x in rdtable
-- Calculate linear table index for value x
-- predefined filterbank
***************************************************************************************
* rumor_table generated by DK/circ_table_gen.py -- do not modify manually
***************************************************************************************
variables used
--sig_max 1.400000
--table_div 3.393005
--table_op 1.000000
******************************************************************************
* rumor_p1 generated by dkbuiler from Ruiner_p1.sch
******************************************************************************
******************************************************************************
* rumor_p2 generated by dkbuiler from Ruiner_p2.sch
****************************************************************************** |
declare id "rumor";
declare name "rumor";
declare category "Extern";
declare shortname "rumor";
declare description "rumor";
declare samplerate "96000";
import("stdfaust.lib");
rd = library("reducemaps.lib");
rtable(table, r) = (table, int(r)):rdtable;
ccopysign(f, x) = ma.fabs(f) * sign(x);
sign(x) = x<0, 1, -1 : select2;
fsignbit(x) = x<0;
fractal(n) = n - int(n);
interpolation(table, size, f, i) = select2(i<0,select2(i>size-2,
rtable(table, i)*(1-f) + rtable(table,i+1)*f, rtable(table, size-1)),
rtable(table, 0));
table_gate(table,x) = select2(ma.fabs(x):rd.maxn(4096)<ma.fabs(rtable(table, 1))*(0.12), x, x*x*x);
circuit_response(table, low, high, step, size, x) =
interpolation(table, size, fractal(linindex(step, x)),
int(linindex(step, x))), x : ccopysign;
linindex(step, x) = ma.fabs(x) * step;
freq_split = fi.filterbank(3, (86.0,210.0,1200.0,6531.0));
rumor_clip = circuit_response(rumor_table, low, high, step, size) with{
low = 0;
high =0.833333;
step =142.143;
size =200;
rumor_table = waveform {
0.000000000000,0.001179247307,0.005700404200,0.013696114078,0.023372061838,
0.033432794676,0.043461811993,0.053388498434,0.063206993536,0.072917985483,
0.082522533444,0.092021701974,0.101416548612,0.110708139580,0.119897750725,
0.128986887338,0.137976888372,0.146868847166,0.155663806805,0.164362801522,
0.172966854232,0.181476976838,0.189894170368,0.198219425108,0.206453720733,
0.214598026432,0.222653301025,0.230620493087,0.238500541057,0.246294373355,
0.254002908490,0.261627055172,0.269167712416,0.276625769647,0.284002106808,
0.291297594461,0.298513093886,0.305649457186,0.312707527379,0.319688138504,
0.326592115711,0.333420275357,0.340173425105,0.346852364012,0.353457882624,
0.359990763066,0.366451779133,0.372841696377,0.379161272199,0.385411255930,
0.391592388924,0.397705404640,0.403751028723,0.409729979096,0.415642966031,
0.421490692243,0.427273852959,0.432993136006,0.438649221887,0.444242783860,
0.449774488011,0.455244993338,0.460654951821,0.466005008498,0.471295801539,
0.476527962321,0.481702115497,0.486818879071,0.491878864466,0.496882676597,
0.501830913938,0.506724168591,0.511563026356,0.516348066795,0.521079863300,
0.525758983159,0.530385987621,0.534961431958,0.539485865535,0.543959831863,
0.548383868671,0.552758507962,0.557084276074,0.561361693746,0.565591276168,
0.569773533050,0.573908968673,0.577998081951,0.582041366486,0.586039310626,
0.589992397521,0.593901105176,0.597765906508,0.601587269401,0.605365656755,
0.609101526546,0.612795331873,0.616447521011,0.620058537463,0.623628820013,
0.627158802772,0.630648915230,0.634099582305,0.637511224392,0.640884257411,
0.644219092854,0.647516137833,0.650775795125,0.653998463223,0.657184536373,
0.660334404627,0.663448453885,0.666527065939,0.669570618516,0.672579485321,
0.675554036085,0.678494636598,0.681401648760,0.684275430616,0.687116336403,
0.689924716583,0.692700917890,0.695445283366,0.698158152402,0.700839860776,
0.703490740691,0.706111120814,0.708701326313,0.711261678897,0.713792496847,
0.716294095057,0.718766785071,0.721210875114,0.723626670131,0.726014471821,
0.728374578671,0.730707285991,0.733012885948,0.735291667597,0.737543916918,
0.739769916846,0.741969947304,0.744144285236,0.746293204636,0.748416976584,
0.750515869273,0.752590148041,0.754640075401,0.756665911073,0.758667912011,
0.760646332435,0.762601423857,0.764533435114,0.766442612393,0.768329199259,
0.770193436687,0.772035563085,0.773855814323,0.775654423761,0.777431622274,
0.779187638282,0.780922697769,0.782637024317,0.784330839128,0.786004361046,
0.787657806589,0.789291389968,0.790905323116,0.792499815706,0.794075075183,
0.795631306783,0.797168713555,0.798687496389,0.800187854035,0.801669983128,
0.803134078210,0.804580331752,0.806008934176,0.807420073876,0.808813937243,
0.810190708681,0.811550570633,0.812893703599,0.814220286159,0.815530494989,
0.816824504887,0.818102488790,0.819364617792,0.820611061169,0.821841986392,
0.823057559150,0.824257943370,0.825443301233,0.826613793191,0.827769577993,
0.828910812693,0.830037652677,0.831150251674,0.832248761780,0.833333333468
};
};
p1 = pre : fi.tf21(b0/a0,b1/a0,b2/a0,a1/a0,a2/a0) with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
Intensity = vslider("Intensity[name:Intensity][style:knob]", 0.5, 0, 1, 0.01) : Inverted(1) : LogPot(3) : si.smooth(s);
b0 = -3.68740380275009e-5*fs;
b1 = 0.68740380275009e-5;
b2 = 3.68740380275009e-5*fs;
a0 = Intensity*fs*(3.23341146638826e-10*fs + 1.83849807717545e-6) + fs*(2.50211256782905e-10*fs + 1.41841347670627e-7) + 9.19249038587725e-5;
a1 = -6.46682293277652e-10*Intensity*pow(fs,2) - 5.0042251356581e-10*pow(fs,2) + 0.000183849807717545;
a2 = Intensity*fs*(3.23341146638826e-10*fs - 1.83849807717545e-6) + fs*(2.50211256782905e-10*fs - 1.41841347670627e-7) + 9.19249038587725e-5;
};
p2 = pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0)) with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
Volume = vslider("Volume[name:Volume][style:knob]", 0.5, 0, 1, 0.01) : Inverted(0) : LogPot(3) : si.smooth(s);
b0 = -1.16796031265384e-9*Volume*pow(fs,2) - 2.33592062530768e-13*pow(fs,2);
b1 = 1.16796031265384e-9*Volume*pow(fs,2) + 2.33592062530768e-13*pow(fs,2);
b2 = 1.16796031265384e-9*Volume*pow(fs,2) + 2.33592062530768e-13*pow(fs,2);
b3 = -1.16796031265384e-9*Volume*pow(fs,2) - 2.33592062530768e-13*pow(fs,2);
a0 = Volume*(Volume*fs*(fs*(-3.96263655940387e-15*fs - 2.5024049214879e-12) - 2.91165940049241e-9) + fs*(fs*(3.96184403209199e-15*fs + 2.58115717169168e-12) + 2.94122192432324e-9) + 2.91165940049241e-8) + fs*(fs*(7.92765070074338e-15*fs + 5.16483259885109e-12) + 5.88536153701812e-9) + 5.82390113286491e-8;
a1 = Volume*(Volume*fs*(fs*(1.18879096782116e-14*fs + 2.5024049214879e-12) - 2.91165940049241e-9) + fs*(fs*(-1.1885532096276e-14*fs - 2.58115717169168e-12) + 2.94122192432324e-9) + 8.73497820147722e-8) + fs*(fs*(-2.37829521022301e-14*fs - 5.16483259885109e-12) + 5.88536153701812e-9) + 1.74717033985947e-7;
a2 = Volume*(Volume*fs*(fs*(-1.18879096782116e-14*fs + 2.5024049214879e-12) + 2.91165940049241e-9) + fs*(fs*(1.1885532096276e-14*fs - 2.58115717169168e-12) - 2.94122192432324e-9) + 8.73497820147722e-8) + fs*(fs*(2.37829521022301e-14*fs - 5.16483259885109e-12) - 5.88536153701812e-9) + 1.74717033985947e-7;
a3 = Volume*(Volume*fs*(fs*(3.96263655940387e-15*fs - 2.5024049214879e-12) + 2.91165940049241e-9) + fs*(fs*(-3.96184403209199e-15*fs + 2.58115717169168e-12) - 2.94122192432324e-9) + 2.91165940049241e-8) + fs*(fs*(-7.92765070074338e-15*fs + 5.16483259885109e-12) - 5.88536153701812e-9) + 5.82390113286491e-8;
};
anti_denormal = pow(10,-20);
anti_denormal_ac = 1 - 1' : *(anti_denormal) : + ~ *(-1);
rumorclip = ffunction(float rumorclip(float), "rumor_table.h", "");
ts9 = _ <: _ - rumorclip(p1-_) :> _;
process = +(anti_denormal_ac) : ts9 : + ~ (*(0.666) : rumorclip : fi.allpassn(4,(-0.2, 0.3, 0.4, 0.5))) : *(Volume) with {
Volume = hslider("level[name:Volume]", 0.5, 0, 1, 0.01) : si.smooth(0.993);
};
|
3e615e361038bb5d69331bc5b0f8e10b9633bf956e8ac09651c380efea6dd526 | brummer10/guitarix | aclipper.dsp | declare id "aclipper";
declare name "Rat";
declare category "Distortion";
declare samplerate "96000";
import("stdfaust.lib");
s = 0.993;
fs = float(ma.SR);
drive = hslider("drive[name:Drive]", 0.5, 0, 1, 0.01) : si.smooth(s);
rat_in = fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
b0 = 1.82432723786905e-5*fs;
b1 = 0.000829239653576842;
b2 = -1.82432723786905e-5*fs;
a0 = fs*(3.64865447573811e-11*fs + 1.9073341271921e-5) + 0.000414619826788421;
a1 = -7.29730895147621e-11*pow(fs,2) + 0.000829239653576842;
a2 = fs*(3.64865447573811e-11*fs - 1.9073341271921e-5) + 0.000414619826788421;
};
rat_out = fi.iir((b0/a0,b1/a0),(a1/a0)) with {
b0 = 2.08332871602678e-5*fs;
b1 = -2.08332871602678e-5*fs;
a0 = 2.08332871602678e-5*fs + 2.21630714470934e-6;
a1 = -2.08332871602678e-5*fs + 2.21630714470934e-6;
};
rat_tone = fi.iir((b0/a0,b1/a0),(a1/a0)) with {
Tone = 1.0 - vslider("tone[name:Tone]", 0.5, 0, 1, 0.01) : si.smooth(s);
b0 = 0.0593824228028504;
b1 = 0.0593824228028504;
a0 = -3.91923990498812e-5*Tone*fs + 3.91923990498812e-5*fs + 0.0593824228028504;
a1 = 3.91923990498812e-5*Tone*fs - 3.91923990498812e-5*fs + 0.0593824228028504;
};
ratdrive = fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
Volume = 0.5 + drive * 0.75 ;
b0 = -9.26800656732889e-10*Volume*pow(fs,2);
b1 = 1.85360131346578e-9*Volume*pow(fs,2);
b2 = -9.26800656732889e-10*Volume*pow(fs,2);
a0 = fs*(4.3384046341364e-10*fs + 8.99037897457717e-9) + 3.41041934946762e-8;
a1 = -8.6768092682728e-10*pow(fs,2) + 6.82083869893523e-8;
a2 = fs*(4.3384046341364e-10*fs - 8.99037897457717e-9) + 3.41041934946762e-8;
};
process = rat_in : X3 : rat_out : ratdrive : asclip : rat_tone : *(gain) with {
R1 = 4700;
R2 = 1000 + 500000 * drive;
C = 0.047 * 1e-6;
a1 = (R1 + R2) * C * 2 * ma.SR;
a2 = R1 * C * 2 * ma.SR;
B0 = (1 + a1) / (1 + a2);
B1 = (1 - a1) / (1 + a2);
A1 = (1 - a2) / (1 + a2);
X1 = _<:_,(rat_drive):>_;
X2 = fi.tf1(B0, B1, A1);
opamp = ffunction(float opamp(float), "clipping.h", "");
X3 = _ <: _ - opamp(X2-_) :> _ ;
asymclip = ffunction(float asymclip3(float), "clipping.h", "");
asclip = asymclip(_);
gain = hslider("level[name:Level]", -2, -20, 12, 0.1) : ba.db2linear : si.smooth(s);
};
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/plugins/aclipper.dsp | faust | declare id "aclipper";
declare name "Rat";
declare category "Distortion";
declare samplerate "96000";
import("stdfaust.lib");
s = 0.993;
fs = float(ma.SR);
drive = hslider("drive[name:Drive]", 0.5, 0, 1, 0.01) : si.smooth(s);
rat_in = fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
b0 = 1.82432723786905e-5*fs;
b1 = 0.000829239653576842;
b2 = -1.82432723786905e-5*fs;
a0 = fs*(3.64865447573811e-11*fs + 1.9073341271921e-5) + 0.000414619826788421;
a1 = -7.29730895147621e-11*pow(fs,2) + 0.000829239653576842;
a2 = fs*(3.64865447573811e-11*fs - 1.9073341271921e-5) + 0.000414619826788421;
};
rat_out = fi.iir((b0/a0,b1/a0),(a1/a0)) with {
b0 = 2.08332871602678e-5*fs;
b1 = -2.08332871602678e-5*fs;
a0 = 2.08332871602678e-5*fs + 2.21630714470934e-6;
a1 = -2.08332871602678e-5*fs + 2.21630714470934e-6;
};
rat_tone = fi.iir((b0/a0,b1/a0),(a1/a0)) with {
Tone = 1.0 - vslider("tone[name:Tone]", 0.5, 0, 1, 0.01) : si.smooth(s);
b0 = 0.0593824228028504;
b1 = 0.0593824228028504;
a0 = -3.91923990498812e-5*Tone*fs + 3.91923990498812e-5*fs + 0.0593824228028504;
a1 = 3.91923990498812e-5*Tone*fs - 3.91923990498812e-5*fs + 0.0593824228028504;
};
ratdrive = fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
Volume = 0.5 + drive * 0.75 ;
b0 = -9.26800656732889e-10*Volume*pow(fs,2);
b1 = 1.85360131346578e-9*Volume*pow(fs,2);
b2 = -9.26800656732889e-10*Volume*pow(fs,2);
a0 = fs*(4.3384046341364e-10*fs + 8.99037897457717e-9) + 3.41041934946762e-8;
a1 = -8.6768092682728e-10*pow(fs,2) + 6.82083869893523e-8;
a2 = fs*(4.3384046341364e-10*fs - 8.99037897457717e-9) + 3.41041934946762e-8;
};
process = rat_in : X3 : rat_out : ratdrive : asclip : rat_tone : *(gain) with {
R1 = 4700;
R2 = 1000 + 500000 * drive;
C = 0.047 * 1e-6;
a1 = (R1 + R2) * C * 2 * ma.SR;
a2 = R1 * C * 2 * ma.SR;
B0 = (1 + a1) / (1 + a2);
B1 = (1 - a1) / (1 + a2);
A1 = (1 - a2) / (1 + a2);
X1 = _<:_,(rat_drive):>_;
X2 = fi.tf1(B0, B1, A1);
opamp = ffunction(float opamp(float), "clipping.h", "");
X3 = _ <: _ - opamp(X2-_) :> _ ;
asymclip = ffunction(float asymclip3(float), "clipping.h", "");
asclip = asymclip(_);
gain = hslider("level[name:Level]", -2, -20, 12, 0.1) : ba.db2linear : si.smooth(s);
};
|
|
11e2b27ca2f9437fbe096842ba114f299a24492db7e43dae5e2adf7617af8ed2 | brummer10/guitarix | tone.dsp | declare id "amp.tone";
declare version "0.01";
declare author "brummer";
declare license "BSD";
declare copyright "(c)brummer 2008";
import("stdfaust.lib");
import("guitarix.lib");
/*-----------------------------------------------
The tone control
Low and high shelf filters, from Robert Bristow-Johnson's "Audio
EQ Cookbook", see http://www.musicdsp.org/files/Audio-EQ-Cookbook.txt.
-----------------------------------------------*/
filter(b0,b1,b2,a0,a1,a2) = f : (+ ~ g)
with {
f(x) = (b0/a0)*x+(b1/a0)*x'+(b2/a0)*x'';
g(y) = 0-(a1/a0)*y-(a2/a0)*y';
};
gxlow_shelf(f0,g) = filter(b0,b1,b2,a0,a1,a2)
with {
S = 1;
A = pow(10,g/40);
w0 = 2*ma.PI*f0/ma.SR;
alpha = sin(w0)/2 * sqrt( (A + 1/A)*(1/S - 1) + 2 );
b0 = A*( (A+1) - (A-1)*cos(w0) + 2*sqrt(A)*alpha );
b1 = 2*A*( (A-1) - (A+1)*cos(w0) );
b2 = A*( (A+1) - (A-1)*cos(w0) - 2*sqrt(A)*alpha );
a0 = (A+1) + (A-1)*cos(w0) + 2*sqrt(A)*alpha;
a1 = -2*( (A-1) + (A+1)*cos(w0) );
a2 = (A+1) + (A-1)*cos(w0) - 2*sqrt(A)*alpha;
};
gxhigh_shelf(f0,g) = filter(b0,b1,b2,a0,a1,a2)
with {
S = 1;
A = pow(10,g/40);
w0 = 2*ma.PI*f0/ma.SR;
alpha = sin(w0)/2 * sqrt( (A + 1/A)*(1/S - 1) + 2 );
b0 = A*( (A+1) + (A-1)*cos(w0) + 2*sqrt(A)*alpha );
b1 = -2*A*( (A-1) + (A+1)*cos(w0) );
b2 = A*( (A+1) + (A-1)*cos(w0) - 2*sqrt(A)*alpha );
a0 = (A+1) - (A-1)*cos(w0) + 2*sqrt(A)*alpha;
a1 = 2*( (A-1) - (A+1)*cos(w0) );
a2 = (A+1) - (A-1)*cos(w0) - 2*sqrt(A)*alpha;
};
/* Fixed bass and treble frequencies.*/
bass_freq = 600;
treble_freq = 2400;
bass_gain = vslider("bass[name:bass]", 0, -20, 20, 0.1);
mid_gain = vslider("middle[name:middle]", 0, -20, 20, 0.1)/2;
treble_gain = vslider("treble[name:treble]", 0, -20, 20, 0.1);
tone(b,m,t) = gxlow_shelf(bass_freq,b-m) :
gxlow_shelf(treble_freq,m):
gxhigh_shelf(bass_freq,m) :
gxhigh_shelf(treble_freq,t-m);
process = add_dc :
gxlow_shelf(bass_freq,bass_gain-mid_gain) :
gxlow_shelf(treble_freq,mid_gain):
gxhigh_shelf(bass_freq,mid_gain) :
gxhigh_shelf(treble_freq,treble_gain-mid_gain);
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/tone.dsp | faust | -----------------------------------------------
The tone control
Low and high shelf filters, from Robert Bristow-Johnson's "Audio
EQ Cookbook", see http://www.musicdsp.org/files/Audio-EQ-Cookbook.txt.
-----------------------------------------------
Fixed bass and treble frequencies. | declare id "amp.tone";
declare version "0.01";
declare author "brummer";
declare license "BSD";
declare copyright "(c)brummer 2008";
import("stdfaust.lib");
import("guitarix.lib");
filter(b0,b1,b2,a0,a1,a2) = f : (+ ~ g)
with {
f(x) = (b0/a0)*x+(b1/a0)*x'+(b2/a0)*x'';
g(y) = 0-(a1/a0)*y-(a2/a0)*y';
};
gxlow_shelf(f0,g) = filter(b0,b1,b2,a0,a1,a2)
with {
S = 1;
A = pow(10,g/40);
w0 = 2*ma.PI*f0/ma.SR;
alpha = sin(w0)/2 * sqrt( (A + 1/A)*(1/S - 1) + 2 );
b0 = A*( (A+1) - (A-1)*cos(w0) + 2*sqrt(A)*alpha );
b1 = 2*A*( (A-1) - (A+1)*cos(w0) );
b2 = A*( (A+1) - (A-1)*cos(w0) - 2*sqrt(A)*alpha );
a0 = (A+1) + (A-1)*cos(w0) + 2*sqrt(A)*alpha;
a1 = -2*( (A-1) + (A+1)*cos(w0) );
a2 = (A+1) + (A-1)*cos(w0) - 2*sqrt(A)*alpha;
};
gxhigh_shelf(f0,g) = filter(b0,b1,b2,a0,a1,a2)
with {
S = 1;
A = pow(10,g/40);
w0 = 2*ma.PI*f0/ma.SR;
alpha = sin(w0)/2 * sqrt( (A + 1/A)*(1/S - 1) + 2 );
b0 = A*( (A+1) + (A-1)*cos(w0) + 2*sqrt(A)*alpha );
b1 = -2*A*( (A-1) + (A+1)*cos(w0) );
b2 = A*( (A+1) + (A-1)*cos(w0) - 2*sqrt(A)*alpha );
a0 = (A+1) - (A-1)*cos(w0) + 2*sqrt(A)*alpha;
a1 = 2*( (A-1) - (A+1)*cos(w0) );
a2 = (A+1) - (A-1)*cos(w0) - 2*sqrt(A)*alpha;
};
bass_freq = 600;
treble_freq = 2400;
bass_gain = vslider("bass[name:bass]", 0, -20, 20, 0.1);
mid_gain = vslider("middle[name:middle]", 0, -20, 20, 0.1)/2;
treble_gain = vslider("treble[name:treble]", 0, -20, 20, 0.1);
tone(b,m,t) = gxlow_shelf(bass_freq,b-m) :
gxlow_shelf(treble_freq,m):
gxhigh_shelf(bass_freq,m) :
gxhigh_shelf(treble_freq,t-m);
process = add_dc :
gxlow_shelf(bass_freq,bass_gain-mid_gain) :
gxlow_shelf(treble_freq,mid_gain):
gxhigh_shelf(bass_freq,mid_gain) :
gxhigh_shelf(treble_freq,treble_gain-mid_gain);
|
612776755eb14268e9e26795ecc7d237d4bc9b8a040478cc5518c0af4674f5c5 | brummer10/guitarix | oc_2.dsp | //BOSS OC-2 partial emulation.
//This file uses data from oc_2.include.
//*.include file was generated using oc_2.py.
//Also, see schematic description in the .odg file
import("stdfaust.lib");
import("../../../tools/plugins/oc_2/oc_2.lib");
//Filters
f1 = _:fi.iir((b0_f1,b1_f1,b2_f1,b3_f1),(a1_f1,a2_f1,a3_f1)):_;
f2 = _:fi.iir((b0_f2,b1_f2,b2_f2,b3_f2),(a1_f2,a2_f2,a3_f2)):_;
f3 = _:fi.iir((b0_f3,b1_f3,b2_f3,b3_f3),(a1_f3,a2_f3,a3_f3)):_;
//Switch implementation
switch_impl(x, state) = select2((state >= 1.7),sw_opened(x),sw_closed(x));
//Trigger fi.integrator
fint=_:fi.iir((b0_fint,b1_fint),(a1_fint)):_;
//Trigger prefilters
f4_11=_:fi.iir((b0_f41_1,b1_f41_1),(a1_f41_1)):_;
f4_12=_:fi.iir((b0_f41_2,b1_f41_2),(a1_f41_2)):_;
f4_2=_:fi.iir((b0_f42,b1_f42,b2_f42),(a1_f42,a2_f42)):_;
f4=_<:f4_2,(f4_11:f4_12):_,_;
//Frequency divider
X = (_,_)<:(!,_,_,!);
comparator(plus,minus)=(0.005 + plus) > minus,-4,4:select2:_;
cmos = ffunction(float FF_D_4013_2 (float, float), "triggers_logic.h", "");
div1 = ffunction(float FF_D_4013_1 (float), "triggers_logic.h", "");
div2 = ffunction(float FF_JK_4027 (float), "triggers_logic.h", "");
//Rectifier
hist_plus = _<:_>0,0,_:select2:_;
hist_minus = _<:_<0,0,_:select2:_;
rectifier_plus = hist_plus:fint;
rectefier_minus = hist_minus:fint;
c0 = _<:rectifier_plus,rectefier_minus:_,_;
trigger = fi.dcblocker:_<:f4:_,(_<:_,_):_,_,_:X,_:_,(_<:_,_),_:(rectifier_plus,_:comparator),(_,rectefier_minus:comparator);
freq_divider = _:trigger:cmos:div1<:_,_:_,div2;
//Controls
p_oc1 = hslider("OCTAVE 1", 0.5, 0, 1, 0.05);
p_oc2 = hslider("OCTAVE 2", 0.5, 0, 1, 0.05);
p_direct = hslider("DIRECT", 0.5, 0, 1, 0.05);
wet_part = _,_:_,f1:_,(_:freq_divider):(switch_impl),_:((f2<:_,_),_):_,(switch_impl):_,_:_,f3:_,_;
effect = _:_*(1+10/2.7):_<:_,_,_:(_*p_direct),(wet_part):_,_*p_oc1,_*p_oc2:>_;
process = effect;
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/oc_2.dsp | faust | BOSS OC-2 partial emulation.
This file uses data from oc_2.include.
*.include file was generated using oc_2.py.
Also, see schematic description in the .odg file
Filters
Switch implementation
Trigger fi.integrator
Trigger prefilters
Frequency divider
Rectifier
Controls |
import("stdfaust.lib");
import("../../../tools/plugins/oc_2/oc_2.lib");
f1 = _:fi.iir((b0_f1,b1_f1,b2_f1,b3_f1),(a1_f1,a2_f1,a3_f1)):_;
f2 = _:fi.iir((b0_f2,b1_f2,b2_f2,b3_f2),(a1_f2,a2_f2,a3_f2)):_;
f3 = _:fi.iir((b0_f3,b1_f3,b2_f3,b3_f3),(a1_f3,a2_f3,a3_f3)):_;
switch_impl(x, state) = select2((state >= 1.7),sw_opened(x),sw_closed(x));
fint=_:fi.iir((b0_fint,b1_fint),(a1_fint)):_;
f4_11=_:fi.iir((b0_f41_1,b1_f41_1),(a1_f41_1)):_;
f4_12=_:fi.iir((b0_f41_2,b1_f41_2),(a1_f41_2)):_;
f4_2=_:fi.iir((b0_f42,b1_f42,b2_f42),(a1_f42,a2_f42)):_;
f4=_<:f4_2,(f4_11:f4_12):_,_;
X = (_,_)<:(!,_,_,!);
comparator(plus,minus)=(0.005 + plus) > minus,-4,4:select2:_;
cmos = ffunction(float FF_D_4013_2 (float, float), "triggers_logic.h", "");
div1 = ffunction(float FF_D_4013_1 (float), "triggers_logic.h", "");
div2 = ffunction(float FF_JK_4027 (float), "triggers_logic.h", "");
hist_plus = _<:_>0,0,_:select2:_;
hist_minus = _<:_<0,0,_:select2:_;
rectifier_plus = hist_plus:fint;
rectefier_minus = hist_minus:fint;
c0 = _<:rectifier_plus,rectefier_minus:_,_;
trigger = fi.dcblocker:_<:f4:_,(_<:_,_):_,_,_:X,_:_,(_<:_,_),_:(rectifier_plus,_:comparator),(_,rectefier_minus:comparator);
freq_divider = _:trigger:cmos:div1<:_,_:_,div2;
p_oc1 = hslider("OCTAVE 1", 0.5, 0, 1, 0.05);
p_oc2 = hslider("OCTAVE 2", 0.5, 0, 1, 0.05);
p_direct = hslider("DIRECT", 0.5, 0, 1, 0.05);
wet_part = _,_:_,f1:_,(_:freq_divider):(switch_impl),_:((f2<:_,_),_):_,(switch_impl):_,_:_,f3:_,_;
effect = _:_*(1+10/2.7):_<:_,_,_:(_*p_direct),(wet_part):_,_*p_oc1,_*p_oc2:>_;
process = effect;
|
18541e6345614307531a4e38b97ba79a555b82da853e044ad02d053bf0b29bb1 | brummer10/guitarix | aclipper.dsp | declare id "aclipper";
declare name "Rat";
declare category "Distortion";
declare samplerate "96000";
import("stdfaust.lib");
s = 0.993;
fs = float(ma.SR);
drive = hslider("drive[name:Drive]", 0.5, 0, 1, 0.01) : si.smooth(s);
rat_in = fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
b0 = 1.82432723786905e-5*fs;
b1 = 0.000829239653576842;
b2 = -1.82432723786905e-5*fs;
a0 = fs*(3.64865447573811e-11*fs + 1.9073341271921e-5) + 0.000414619826788421;
a1 = -7.29730895147621e-11*pow(fs,2) + 0.000829239653576842;
a2 = fs*(3.64865447573811e-11*fs - 1.9073341271921e-5) + 0.000414619826788421;
};
rat_out = fi.iir((b0/a0,b1/a0),(a1/a0)) with {
b0 = 2.08332871602678e-5*fs;
b1 = -2.08332871602678e-5*fs;
a0 = 2.08332871602678e-5*fs + 2.21630714470934e-6;
a1 = -2.08332871602678e-5*fs + 2.21630714470934e-6;
};
rat_tone = fi.iir((b0/a0,b1/a0),(a1/a0)) with {
Tone = 1.0 - vslider("tone[name:Tone]", 0.5, 0, 1, 0.01) : si.smooth(s);
b0 = 0.0593824228028504;
b1 = 0.0593824228028504;
a0 = -3.91923990498812e-5*Tone*fs + 3.91923990498812e-5*fs + 0.0593824228028504;
a1 = 3.91923990498812e-5*Tone*fs - 3.91923990498812e-5*fs + 0.0593824228028504;
};
ratdrive = fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
Volume = 0.5 + drive * 0.75 ;
b0 = -9.26800656732889e-10*Volume*pow(fs,2);
b1 = 1.85360131346578e-9*Volume*pow(fs,2);
b2 = -9.26800656732889e-10*Volume*pow(fs,2);
a0 = fs*(4.3384046341364e-10*fs + 8.99037897457717e-9) + 3.41041934946762e-8;
a1 = -8.6768092682728e-10*pow(fs,2) + 6.82083869893523e-8;
a2 = fs*(4.3384046341364e-10*fs - 8.99037897457717e-9) + 3.41041934946762e-8;
};
process = rat_in : X3 : rat_out : ratdrive : clip : rat_tone : *(gain) with {
R1 = 4700;
R2 = 1000 + 500000 * drive;
C = 0.047 * 1e-6;
a1 = (R1 + R2) * C * 2 * ma.SR;
a2 = R1 * C * 2 * ma.SR;
B0 = (1 + a1) / (1 + a2);
B1 = (1 - a1) / (1 + a2);
A1 = (1 - a2) / (1 + a2);
X1 = _<:_,(rat_drive):>_;
X2 = fi.tf1(B0, B1, A1);
opamp = ffunction(float opamp(float), "clipping.h", "");
X3 = _ <: _ - opamp(X2-_) :> _ ;
asymclip = ffunction(float asymhardclip2(float), "clipping.h", "");
clip = asymclip(_);
gain = hslider("level[name:Level]", -2, -20, 12, 0.1) : ba.db2linear : si.smooth(s);
};
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/aclipper.dsp | faust | declare id "aclipper";
declare name "Rat";
declare category "Distortion";
declare samplerate "96000";
import("stdfaust.lib");
s = 0.993;
fs = float(ma.SR);
drive = hslider("drive[name:Drive]", 0.5, 0, 1, 0.01) : si.smooth(s);
rat_in = fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
b0 = 1.82432723786905e-5*fs;
b1 = 0.000829239653576842;
b2 = -1.82432723786905e-5*fs;
a0 = fs*(3.64865447573811e-11*fs + 1.9073341271921e-5) + 0.000414619826788421;
a1 = -7.29730895147621e-11*pow(fs,2) + 0.000829239653576842;
a2 = fs*(3.64865447573811e-11*fs - 1.9073341271921e-5) + 0.000414619826788421;
};
rat_out = fi.iir((b0/a0,b1/a0),(a1/a0)) with {
b0 = 2.08332871602678e-5*fs;
b1 = -2.08332871602678e-5*fs;
a0 = 2.08332871602678e-5*fs + 2.21630714470934e-6;
a1 = -2.08332871602678e-5*fs + 2.21630714470934e-6;
};
rat_tone = fi.iir((b0/a0,b1/a0),(a1/a0)) with {
Tone = 1.0 - vslider("tone[name:Tone]", 0.5, 0, 1, 0.01) : si.smooth(s);
b0 = 0.0593824228028504;
b1 = 0.0593824228028504;
a0 = -3.91923990498812e-5*Tone*fs + 3.91923990498812e-5*fs + 0.0593824228028504;
a1 = 3.91923990498812e-5*Tone*fs - 3.91923990498812e-5*fs + 0.0593824228028504;
};
ratdrive = fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
Volume = 0.5 + drive * 0.75 ;
b0 = -9.26800656732889e-10*Volume*pow(fs,2);
b1 = 1.85360131346578e-9*Volume*pow(fs,2);
b2 = -9.26800656732889e-10*Volume*pow(fs,2);
a0 = fs*(4.3384046341364e-10*fs + 8.99037897457717e-9) + 3.41041934946762e-8;
a1 = -8.6768092682728e-10*pow(fs,2) + 6.82083869893523e-8;
a2 = fs*(4.3384046341364e-10*fs - 8.99037897457717e-9) + 3.41041934946762e-8;
};
process = rat_in : X3 : rat_out : ratdrive : clip : rat_tone : *(gain) with {
R1 = 4700;
R2 = 1000 + 500000 * drive;
C = 0.047 * 1e-6;
a1 = (R1 + R2) * C * 2 * ma.SR;
a2 = R1 * C * 2 * ma.SR;
B0 = (1 + a1) / (1 + a2);
B1 = (1 - a1) / (1 + a2);
A1 = (1 - a2) / (1 + a2);
X1 = _<:_,(rat_drive):>_;
X2 = fi.tf1(B0, B1, A1);
opamp = ffunction(float opamp(float), "clipping.h", "");
X3 = _ <: _ - opamp(X2-_) :> _ ;
asymclip = ffunction(float asymhardclip2(float), "clipping.h", "");
clip = asymclip(_);
gain = hslider("level[name:Level]", -2, -20, 12, 0.1) : ba.db2linear : si.smooth(s);
};
|
|
9ce27257d8a7f73caeb8fac403773044df0ce7ecb871cd98468fdfcfc254908b | brummer10/guitarix | duck_delay_st.dsp | declare id "duckDelaySt";
declare name "Duck Delay St";
declare category "Echo / Delay";
//------------------------------------
//Description:
//The delayed signal added to output dependent of input signal amplitude.
//If the input signal is high. The delayed signal turned off, and vise versa.
//The switching controlled by envelope follower
//(parameters: "attack", "release", and main - "amount", what is controls envelope follower influence).
//
//Parameters description:
//time - de.delay time in milliseconds
//feedback - de.delay feedback
//pingpong - changes feedback character
//coloration - LP/HP coloration filter
//attack, release - envelope follower time in seconds controls
//amount dB - envelope follower influence
//effect - amplitude of effect signal in mix
//------------------------------------
import("stdfaust.lib");
//Constrols
p_time = hslider("time", 500, 1, 2000, 1):si.smooth(ba.tau2pole(0.1));
p_feedback = hslider("feedback", 0, 0, 1, 0.05);
p_pingpong = hslider("pingpong", 0, 0, 1, 0.05);
coloration = hslider("coloration", 0, -1, 1, 0.05);
p_attack_time = hslider("attack", 0.1, 0.05, 0.5, 0.05);
p_release_time = hslider("release", 0.1, 0.05, 2, 0.05);
p_amount = hslider("amount", 0.5, 0,56, 0.05):ba.db2linear;
p_effect = hslider("effect", 0, -16, +4, 0.1) : ba.db2linear : si.smooth(0.999);
//Consts
c_fdelay_max_len = 393216;
c_channels_sw_time = 0.1;
//Funcs
X = (_,_)<:(!,_,_,!);
get_delay_length(x) = x*ma.SR:_*0.001;
coloration_filter(coloration) = _<:(fi.lowshelf(5,(1 - coloration)*12,440),
fi.highshelf(5,coloration*12,880)):>_*ba.db2linear(-15);
pp_delay(time,fb_coef,pp_fb_coef) = _,_*(1 - pp_fb_coef):
(_,X,_:(X:(pp_fb_delay(time, fb_coef,pp_fb_coef))),
(X:(pp_fb_delay(time, fb_coef,pp_fb_coef))):_,_)~X
:>_,_
with {
pp_fb_delay(time,fb_coef,pp_fb_coef) = _+_*pp_fb_coef:
(_+_:de.fdelay(c_fdelay_max_len,get_delay_length(p_time)))~_*fb_coef;
};
switcher(att, rel, amount) = an.amp_follower_ud(att,rel):
_*amount:_>1:(1 - _):
si.smooth(ba.tau2pole(c_channels_sw_time));
process = (_<:_,_,_),(_<:_,_,_):
_,
switcher(p_attack_time, p_release_time, p_amount),
(pp_delay(p_time,p_feedback*(1 - p_pingpong),p_pingpong*p_feedback):
coloration_filter(coloration),coloration_filter(coloration)),
switcher(p_attack_time, p_release_time, p_amount),
_:
_,_*_,_*_,_:(_,_*p_effect:>_),(_*p_effect,_:>_);
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/duck_delay_st.dsp | faust | ------------------------------------
Description:
The delayed signal added to output dependent of input signal amplitude.
If the input signal is high. The delayed signal turned off, and vise versa.
The switching controlled by envelope follower
(parameters: "attack", "release", and main - "amount", what is controls envelope follower influence).
Parameters description:
time - de.delay time in milliseconds
feedback - de.delay feedback
pingpong - changes feedback character
coloration - LP/HP coloration filter
attack, release - envelope follower time in seconds controls
amount dB - envelope follower influence
effect - amplitude of effect signal in mix
------------------------------------
Constrols
Consts
Funcs | declare id "duckDelaySt";
declare name "Duck Delay St";
declare category "Echo / Delay";
import("stdfaust.lib");
p_time = hslider("time", 500, 1, 2000, 1):si.smooth(ba.tau2pole(0.1));
p_feedback = hslider("feedback", 0, 0, 1, 0.05);
p_pingpong = hslider("pingpong", 0, 0, 1, 0.05);
coloration = hslider("coloration", 0, -1, 1, 0.05);
p_attack_time = hslider("attack", 0.1, 0.05, 0.5, 0.05);
p_release_time = hslider("release", 0.1, 0.05, 2, 0.05);
p_amount = hslider("amount", 0.5, 0,56, 0.05):ba.db2linear;
p_effect = hslider("effect", 0, -16, +4, 0.1) : ba.db2linear : si.smooth(0.999);
c_fdelay_max_len = 393216;
c_channels_sw_time = 0.1;
X = (_,_)<:(!,_,_,!);
get_delay_length(x) = x*ma.SR:_*0.001;
coloration_filter(coloration) = _<:(fi.lowshelf(5,(1 - coloration)*12,440),
fi.highshelf(5,coloration*12,880)):>_*ba.db2linear(-15);
pp_delay(time,fb_coef,pp_fb_coef) = _,_*(1 - pp_fb_coef):
(_,X,_:(X:(pp_fb_delay(time, fb_coef,pp_fb_coef))),
(X:(pp_fb_delay(time, fb_coef,pp_fb_coef))):_,_)~X
:>_,_
with {
pp_fb_delay(time,fb_coef,pp_fb_coef) = _+_*pp_fb_coef:
(_+_:de.fdelay(c_fdelay_max_len,get_delay_length(p_time)))~_*fb_coef;
};
switcher(att, rel, amount) = an.amp_follower_ud(att,rel):
_*amount:_>1:(1 - _):
si.smooth(ba.tau2pole(c_channels_sw_time));
process = (_<:_,_,_),(_<:_,_,_):
_,
switcher(p_attack_time, p_release_time, p_amount),
(pp_delay(p_time,p_feedback*(1 - p_pingpong),p_pingpong*p_feedback):
coloration_filter(coloration),coloration_filter(coloration)),
switcher(p_attack_time, p_release_time, p_amount),
_:
_,_*_,_*_,_:(_,_*p_effect:>_),(_*p_effect,_:>_);
|
5f000f0e3911a34b40a11894428df27602d2f02d6d04b50d5ec524eb5ae3cac2 | brummer10/guitarix | dunwah.dsp | declare id "dunwah";
declare name "DunWah";
import("stdfaust.lib");
dunwah = *(gs) : tf2(1,-1,0,a1s,a2s)
with {
// calculated by dunwah1.py
theta2pi = (1892.75 - 1 / (((0.000927476*wah+-0.00197293)*wah+0.002474)*wah+-0.00152132))/ma.SR;
Q = ((-12.1248*wah+21.9241)*wah+-33.2116)*wah+25.8564;
g = 0.025 - 1 / ((((-127.479*wah+387.412)*wah+-466.009)*wah+302.062)*wah+-96.9872);
R = 1 - theta2pi/(2*Q);
a1 = 0-2.0*R*cos(theta2pi); // biquad coeff
a2 = R*R; // biquad coeff
// dezippering of slider-driven signals:
s = 0.999; // smoothing parameter (one-pole pole location)
a1s = a1 : si.smooth(s);
a2s = a2 : si.smooth(s);
gs = g : si.smooth(s);
tf2 = component("filter.lib").tf2;
//wah = vslider("wah", 0, 0, 1, 0.01) : *(9) : +(1) : log10;
wah = vslider("wah", 0, 0, 1, 0.01);
};
dunwah2 = *(gs) : iir((b0, b1, b2, b3), (A1, A2, A3))
with {
// calculated by dunwah2.py
theta2pi = (1973.48 - 1000 / ((((((12.499*wah+-40.3658)*wah+49.9836)*wah+-28.3434)*wah+5.76598)*wah+1.9841)*wah+-1.6086)) / ma.SR;
Q = ((((-52.3051*wah+115.375)*wah+-99.7712)*wah+42.2734)*wah+-24.555)*wah+21.9737;
g = -0.933975 - 1 / (((((2.85511*wah+-5.20364)*wah+3.64419)*wah+-0.86331)*wah+0.270546)*wah+-0.814203);
gc = (-8.38823e-12*ma.SR+1.73888e-06)*ma.SR+-0.193457;
p1 = exp(-1000/(0.808471*ma.SR));
z1 = 1.00038;
z2 = (-8.52216e-12*ma.SR+1.77528e-06)*ma.SR+0.879905;
z3 = (-6.43963e-11*ma.SR+1.54419e-05)*ma.SR+-0.386688;
b0 = 1.0;
b1 = -z1-z2-z3;
b2 = z1*z2+z1*z3+z2*z3;
b3 = -z1*z2*z3;
// dezippering of slider-driven signals:
s = 0.993; // smoothing parameter (one-pole pole location)
R = 1 - theta2pi/(2*Q);
a1 = -2.0*R*cos(theta2pi) : si.smooth(s); // biquad coeff
a2 = R*R : si.smooth(s); // biquad coeff
gs = g * gc : si.smooth(s);
A1 = a1 - p1;
A2 = a2 - a1 * p1;
A3 = -a2 * p1;
iir = component("filter.lib").iir;
//wah = vslider("wah", 0, 0, 1, 0.01) : *(9) : +(1) : log10;
wah = vslider("wah", 0, 0, 1, 0.01);
};
process = dunwah2;
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/plugins/dunwah.dsp | faust | calculated by dunwah1.py
biquad coeff
biquad coeff
dezippering of slider-driven signals:
smoothing parameter (one-pole pole location)
wah = vslider("wah", 0, 0, 1, 0.01) : *(9) : +(1) : log10;
calculated by dunwah2.py
dezippering of slider-driven signals:
smoothing parameter (one-pole pole location)
biquad coeff
biquad coeff
wah = vslider("wah", 0, 0, 1, 0.01) : *(9) : +(1) : log10; | declare id "dunwah";
declare name "DunWah";
import("stdfaust.lib");
dunwah = *(gs) : tf2(1,-1,0,a1s,a2s)
with {
theta2pi = (1892.75 - 1 / (((0.000927476*wah+-0.00197293)*wah+0.002474)*wah+-0.00152132))/ma.SR;
Q = ((-12.1248*wah+21.9241)*wah+-33.2116)*wah+25.8564;
g = 0.025 - 1 / ((((-127.479*wah+387.412)*wah+-466.009)*wah+302.062)*wah+-96.9872);
R = 1 - theta2pi/(2*Q);
a1s = a1 : si.smooth(s);
a2s = a2 : si.smooth(s);
gs = g : si.smooth(s);
tf2 = component("filter.lib").tf2;
wah = vslider("wah", 0, 0, 1, 0.01);
};
dunwah2 = *(gs) : iir((b0, b1, b2, b3), (A1, A2, A3))
with {
theta2pi = (1973.48 - 1000 / ((((((12.499*wah+-40.3658)*wah+49.9836)*wah+-28.3434)*wah+5.76598)*wah+1.9841)*wah+-1.6086)) / ma.SR;
Q = ((((-52.3051*wah+115.375)*wah+-99.7712)*wah+42.2734)*wah+-24.555)*wah+21.9737;
g = -0.933975 - 1 / (((((2.85511*wah+-5.20364)*wah+3.64419)*wah+-0.86331)*wah+0.270546)*wah+-0.814203);
gc = (-8.38823e-12*ma.SR+1.73888e-06)*ma.SR+-0.193457;
p1 = exp(-1000/(0.808471*ma.SR));
z1 = 1.00038;
z2 = (-8.52216e-12*ma.SR+1.77528e-06)*ma.SR+0.879905;
z3 = (-6.43963e-11*ma.SR+1.54419e-05)*ma.SR+-0.386688;
b0 = 1.0;
b1 = -z1-z2-z3;
b2 = z1*z2+z1*z3+z2*z3;
b3 = -z1*z2*z3;
R = 1 - theta2pi/(2*Q);
gs = g * gc : si.smooth(s);
A1 = a1 - p1;
A2 = a2 - a1 * p1;
A3 = -a2 * p1;
iir = component("filter.lib").iir;
wah = vslider("wah", 0, 0, 1, 0.01);
};
process = dunwah2;
|
76c1edeef5c48ec6c85a721a6b412a91b994a44447f8984eb5c02232851f5825 | brummer10/guitarix | room_simulator.dsp | //Description:
//Based at Gardner's room reverberator models:
//http://fc.mbs.net/~pfisher/fov2-0010016c/fov2-0010016e/fov2-001001a3/book/chapters/24mikelson/index.html
//The values with couple of nines are corrected and differ
//from original implementation
import("stdfaust.lib");
//Controls
p_predelay = hslider("Predelay ms[style:knob]",20,1,200,1);
p_rsize = hslider("Room Size[style:knob]", 1, 0, 3, 0.05);
p_rt = hslider("RT[style:knob]", 0.3, 0, 1, 0.05);
p_drw = hslider("dry wet[style:knob]", 0.5, 0, 1,0.05);
//Convert time in ms to samples
ms2sps(x) = x*ma.SR:_*0.001;
//One fi.pole filter
opf(a) = (_+_*(1-a)~@(1)*a);
//Allpasses
allpass(dt,fb,f_nest) = (+ <:
(de.delay(maxdel,dt-1):f_nest),*(fb)) ~ *(-fb)
: mem,_ : +
with {
maxdel = 8192;
};
sn_allpass(dt1,dt2,fb1,fb2) = allpass(dt1,fb1,allpass(dt2,fb2,_));
dn_allpass(dt1,dt2,dt3,fb1,fb2,fb3) =
allpass(dt1,fb1,allpass(dt2,fb2,allpass(dt3,fb3,_)));
//Gardners room emulation algorithms
small_room(rt,hf_damping) = fi.lowpass(4,6000):
((_,_:>@(ms2sps(24)):dn_allpass(ms2sps(35),ms2sps(22),
ms2sps(8.3),0.15,0.25,0.3)<:
sn_allpass(ms2sps(66),ms2sps(30),0.08,0.3),_)~
(_*1.199:fi.highpass(2,800):fi.lowpass(2,1600):_*rt:opf(hf_damping))):
_*0.5,_*0.5:>_;
medium_room(rt,hf_damping,x) = x:fi.lowpass(4,6000):
((_,_:>dn_allpass(ms2sps(35),ms2sps(8.3),ms2sps(22),0.25,0.35,0.45)<:
@(ms2sps(5)),_*0.5:allpass(ms2sps(30),0.45,_),_:(@(ms2sps(67))<:_,_*0.5),_:
(@(ms2sps(15)):_*rt),_+_:
(_*0.4:_+x:sn_allpass(ms2sps(39),ms2sps(9.8),0.25,0.35)),_)~
(fi.highpass(2,500):fi.lowpass(2,1000):opf(hf_damping):_*rt:_*1.799)):
_*0.5,_:_+_;
large_room(rt,hf_damping) = fi.lowpass(4,4000):
((_,_:>allpass(ms2sps(8),0.3,_):allpass(ms2sps(12),0.3,_):
@(ms2sps(4))<:_,_*1.5:((@(ms2sps(17)):
sn_allpass(ms2sps(87),ms2sps(62),0.5,0.25):@(ms2sps(31))<:_,_*0.8),_:_,_+_):
((@(ms2sps(3)):
dn_allpass(ms2sps(120),ms2sps(76),ms2sps(30),0.5,0.25,0.25)),_))~
(_*0.5:_*rt:opf(hf_damping):fi.highpass(2,500):fi.lowpass(2,1000):_*1.799)):_+_*0.8;
mix2(c,x,y) = (1-c)*x + c*y;
mix3(val) = _,_,_<:select3(val),select3(val+1):mix2(val-floor(val));
process = _<:_,(_<:(fdelay1s(ms2sps(p_predelay)):_<:
small_room(p_rt, 0),medium_room(p_rt, 0),large_room(p_rt, 0):
mix3(p_rsize):_),_:mix2(1 - p_drw)):select2(checkbox("Effect"));
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/room_simulator.dsp | faust | Description:
Based at Gardner's room reverberator models:
http://fc.mbs.net/~pfisher/fov2-0010016c/fov2-0010016e/fov2-001001a3/book/chapters/24mikelson/index.html
The values with couple of nines are corrected and differ
from original implementation
Controls
Convert time in ms to samples
One fi.pole filter
Allpasses
Gardners room emulation algorithms |
import("stdfaust.lib");
p_predelay = hslider("Predelay ms[style:knob]",20,1,200,1);
p_rsize = hslider("Room Size[style:knob]", 1, 0, 3, 0.05);
p_rt = hslider("RT[style:knob]", 0.3, 0, 1, 0.05);
p_drw = hslider("dry wet[style:knob]", 0.5, 0, 1,0.05);
ms2sps(x) = x*ma.SR:_*0.001;
opf(a) = (_+_*(1-a)~@(1)*a);
allpass(dt,fb,f_nest) = (+ <:
(de.delay(maxdel,dt-1):f_nest),*(fb)) ~ *(-fb)
: mem,_ : +
with {
maxdel = 8192;
};
sn_allpass(dt1,dt2,fb1,fb2) = allpass(dt1,fb1,allpass(dt2,fb2,_));
dn_allpass(dt1,dt2,dt3,fb1,fb2,fb3) =
allpass(dt1,fb1,allpass(dt2,fb2,allpass(dt3,fb3,_)));
small_room(rt,hf_damping) = fi.lowpass(4,6000):
((_,_:>@(ms2sps(24)):dn_allpass(ms2sps(35),ms2sps(22),
ms2sps(8.3),0.15,0.25,0.3)<:
sn_allpass(ms2sps(66),ms2sps(30),0.08,0.3),_)~
(_*1.199:fi.highpass(2,800):fi.lowpass(2,1600):_*rt:opf(hf_damping))):
_*0.5,_*0.5:>_;
medium_room(rt,hf_damping,x) = x:fi.lowpass(4,6000):
((_,_:>dn_allpass(ms2sps(35),ms2sps(8.3),ms2sps(22),0.25,0.35,0.45)<:
@(ms2sps(5)),_*0.5:allpass(ms2sps(30),0.45,_),_:(@(ms2sps(67))<:_,_*0.5),_:
(@(ms2sps(15)):_*rt),_+_:
(_*0.4:_+x:sn_allpass(ms2sps(39),ms2sps(9.8),0.25,0.35)),_)~
(fi.highpass(2,500):fi.lowpass(2,1000):opf(hf_damping):_*rt:_*1.799)):
_*0.5,_:_+_;
large_room(rt,hf_damping) = fi.lowpass(4,4000):
((_,_:>allpass(ms2sps(8),0.3,_):allpass(ms2sps(12),0.3,_):
@(ms2sps(4))<:_,_*1.5:((@(ms2sps(17)):
sn_allpass(ms2sps(87),ms2sps(62),0.5,0.25):@(ms2sps(31))<:_,_*0.8),_:_,_+_):
((@(ms2sps(3)):
dn_allpass(ms2sps(120),ms2sps(76),ms2sps(30),0.5,0.25,0.25)),_))~
(_*0.5:_*rt:opf(hf_damping):fi.highpass(2,500):fi.lowpass(2,1000):_*1.799)):_+_*0.8;
mix2(c,x,y) = (1-c)*x + c*y;
mix3(val) = _,_,_<:select3(val),select3(val+1):mix2(val-floor(val));
process = _<:_,(_<:(fdelay1s(ms2sps(p_predelay)):_<:
small_room(p_rt, 0),medium_room(p_rt, 0),large_room(p_rt, 0):
mix3(p_rsize):_),_:mix2(1 - p_drw)):select2(checkbox("Effect"));
|
e73daad5965e52f3f386459020cacf262d5a7623eedba05f40a255f21e1217a4 | brummer10/guitarix | rangem.dsp | // generated automatically
// DO NOT MODIFY!
declare id "rangem";
declare name "Rangemaster";
declare category "Tone Control";
declare shortname "Rangemaster";
declare description "High Frequency Booster";
import("stdfaust.lib");
process = pre : _<:*(dry),(*(wet) : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0))):>_ with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
wet = vslider("wet_dry[name:wet/dry][tooltip:percentage of processed signal in output signal]", 100, 0, 100, 1) : /(100);
dry = 1 - wet;
Boost = vslider("Boost[name:Boost]", 0.5, 0, 1, 0.01) : Inverted(1) : si.smooth(s);
b0 = Boost*pow(fs,2)*(8.31466608544754e-13*fs + 2.24531902904193e-12) + pow(fs,2)*(-8.32852386225662e-13*fs - 2.24906122742367e-12);
b1 = Boost*pow(fs,2)*(-2.49439982563426e-12*fs - 2.24531902904193e-12) + pow(fs,2)*(2.49855715867699e-12*fs + 2.24906122742367e-12);
b2 = Boost*pow(fs,2)*(2.49439982563426e-12*fs - 2.24531902904193e-12) + pow(fs,2)*(-2.49855715867699e-12*fs + 2.24906122742367e-12);
b3 = Boost*pow(fs,2)*(-8.31466608544754e-13*fs + 2.24531902904193e-12) + pow(fs,2)*(8.32852386225662e-13*fs - 2.24906122742367e-12);
a0 = Boost*(Boost*(fs*(fs*(-9.6103977657166e-17*fs - 1.29828683375003e-11) - 3.77055394062117e-11) - 6.47756445986258e-23) + fs*(fs*(-6.03049472237275e-17*fs + 1.26333088694976e-11) + 1.95791953523286e-11) + 3.36357739377656e-23) + fs*(fs*(4.37071753217797e-15*fs + 2.23510911173716e-10) + 1.20972656728663e-8) + 4.663130715952e-8;
a1 = Boost*(Boost*(fs*(fs*(2.88311932971498e-16*fs + 1.29828683375003e-11) - 3.77055394062117e-11) - 1.94326933795877e-22) + fs*(fs*(1.80914841671183e-16*fs - 1.26333088694976e-11) + 1.95791953523286e-11) + 1.00907321813297e-22) + fs*(fs*(-1.31121525965339e-14*fs - 2.23510911173716e-10) + 1.20972656728663e-8) + 1.3989392147856e-7;
a2 = Boost*(Boost*(fs*(fs*(-2.88311932971498e-16*fs + 1.29828683375003e-11) + 3.77055394062117e-11) - 1.94326933795877e-22) + fs*(fs*(-1.80914841671183e-16*fs - 1.26333088694976e-11) - 1.95791953523286e-11) + 1.00907321813297e-22) + fs*(fs*(1.31121525965339e-14*fs - 2.23510911173716e-10) - 1.20972656728663e-8) + 1.3989392147856e-7;
a3 = Boost*(Boost*(fs*(fs*(9.6103977657166e-17*fs - 1.29828683375003e-11) + 3.77055394062117e-11) - 6.47756445986258e-23) + fs*(fs*(6.03049472237275e-17*fs + 1.26333088694976e-11) - 1.95791953523286e-11) + 3.36357739377656e-23) + fs*(fs*(-4.37071753217797e-15*fs + 2.23510911173716e-10) - 1.20972656728663e-8) + 4.663130715952e-8;
};
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/plugins/rangem.dsp | faust | generated automatically
DO NOT MODIFY! | declare id "rangem";
declare name "Rangemaster";
declare category "Tone Control";
declare shortname "Rangemaster";
declare description "High Frequency Booster";
import("stdfaust.lib");
process = pre : _<:*(dry),(*(wet) : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0))):>_ with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
wet = vslider("wet_dry[name:wet/dry][tooltip:percentage of processed signal in output signal]", 100, 0, 100, 1) : /(100);
dry = 1 - wet;
Boost = vslider("Boost[name:Boost]", 0.5, 0, 1, 0.01) : Inverted(1) : si.smooth(s);
b0 = Boost*pow(fs,2)*(8.31466608544754e-13*fs + 2.24531902904193e-12) + pow(fs,2)*(-8.32852386225662e-13*fs - 2.24906122742367e-12);
b1 = Boost*pow(fs,2)*(-2.49439982563426e-12*fs - 2.24531902904193e-12) + pow(fs,2)*(2.49855715867699e-12*fs + 2.24906122742367e-12);
b2 = Boost*pow(fs,2)*(2.49439982563426e-12*fs - 2.24531902904193e-12) + pow(fs,2)*(-2.49855715867699e-12*fs + 2.24906122742367e-12);
b3 = Boost*pow(fs,2)*(-8.31466608544754e-13*fs + 2.24531902904193e-12) + pow(fs,2)*(8.32852386225662e-13*fs - 2.24906122742367e-12);
a0 = Boost*(Boost*(fs*(fs*(-9.6103977657166e-17*fs - 1.29828683375003e-11) - 3.77055394062117e-11) - 6.47756445986258e-23) + fs*(fs*(-6.03049472237275e-17*fs + 1.26333088694976e-11) + 1.95791953523286e-11) + 3.36357739377656e-23) + fs*(fs*(4.37071753217797e-15*fs + 2.23510911173716e-10) + 1.20972656728663e-8) + 4.663130715952e-8;
a1 = Boost*(Boost*(fs*(fs*(2.88311932971498e-16*fs + 1.29828683375003e-11) - 3.77055394062117e-11) - 1.94326933795877e-22) + fs*(fs*(1.80914841671183e-16*fs - 1.26333088694976e-11) + 1.95791953523286e-11) + 1.00907321813297e-22) + fs*(fs*(-1.31121525965339e-14*fs - 2.23510911173716e-10) + 1.20972656728663e-8) + 1.3989392147856e-7;
a2 = Boost*(Boost*(fs*(fs*(-2.88311932971498e-16*fs + 1.29828683375003e-11) + 3.77055394062117e-11) - 1.94326933795877e-22) + fs*(fs*(-1.80914841671183e-16*fs - 1.26333088694976e-11) - 1.95791953523286e-11) + 1.00907321813297e-22) + fs*(fs*(1.31121525965339e-14*fs - 2.23510911173716e-10) - 1.20972656728663e-8) + 1.3989392147856e-7;
a3 = Boost*(Boost*(fs*(fs*(9.6103977657166e-17*fs - 1.29828683375003e-11) + 3.77055394062117e-11) - 6.47756445986258e-23) + fs*(fs*(6.03049472237275e-17*fs + 1.26333088694976e-11) - 1.95791953523286e-11) + 3.36357739377656e-23) + fs*(fs*(-4.37071753217797e-15*fs + 2.23510911173716e-10) - 1.20972656728663e-8) + 4.663130715952e-8;
};
|
4997cbe29a559f381253312d4fd65032dddb4c39ad624de803636db12b7e68e0 | brummer10/guitarix | duck_delay_st.dsp | declare id "duckDelaySt";
declare name "Duck Delay St";
declare category "Echo / Delay";
//------------------------------------
//Description:
//The delayed signal added to output dependent of input signal amplitude.
//If the input signal is high. The delayed signal turned off, and vise versa.
//The switching controlled by envelope follower
//(parameters: "attack", "release", and main - "amount", what is controls envelope follower influence).
//
//Parameters description:
//time - de.delay time in milliseconds
//feedback - de.delay feedback
//pingpong - changes feedback character
//coloration - LP/HP coloration filter
//attack, release - envelope follower time in seconds controls
//amount dB - envelope follower influence
//effect - amplitude of effect signal in mix
//------------------------------------
import("stdfaust.lib");
//Constrols
p_time = hslider("time[name:Delay]", 500, 1, 2000, 1):si.smooth(ba.tau2pole(0.1));
p_feedback = hslider("feedback[name:Feedback]", 0, 0, 1, 0.05);
p_pingpong = hslider("pingpong[name:Ping Pong]", 0, 0, 1, 0.05);
coloration = hslider("coloration[name:Coloration]", 0, -1, 1, 0.05);
p_attack_time = hslider("attack[name:Attack]", 0.1, 0.05, 0.5, 0.05);
p_release_time = hslider("release[name:Release]", 0.1, 0.05, 2, 0.05);
p_amount = hslider("amount[name:Amount]", 0.5, 0,56, 0.05):ba.db2linear;
p_effect = hslider("effect[name:Effect]", 0, -16, +4, 0.1) : ba.db2linear : si.smooth(0.999);
//Consts
c_fdelay_max_len = 393216;
c_channels_sw_time = 0.1;
//Funcs
X = (_,_)<:(!,_,_,!);
get_delay_length(x) = x*ma.SR:_*0.001;
coloration_filter(coloration) = _<:(fi.lowshelf(5,(1 - coloration)*12,440),
fi.highshelf(5,coloration*12,880)):>_*ba.db2linear(-15);
pp_delay(time,fb_coef,pp_fb_coef) = _,_*(1 - pp_fb_coef):
(_,X,_:(X:(pp_fb_delay(time, fb_coef,pp_fb_coef))),
(X:(pp_fb_delay(time, fb_coef,pp_fb_coef))):_,_)~X
:>_,_
with {
pp_fb_delay(time,fb_coef,pp_fb_coef) = _+_*pp_fb_coef:
(_+_:de.fdelay(c_fdelay_max_len,get_delay_length(p_time)))~_*fb_coef;
};
switcher(att, rel, amount) = an.amp_follower_ud(att,rel):
_*amount:_>1:(1 - _):
si.smooth(ba.tau2pole(c_channels_sw_time));
process = (_<:_,_,_),(_<:_,_,_):
_,
switcher(p_attack_time, p_release_time, p_amount),
(pp_delay(p_time,p_feedback*(1 - p_pingpong),p_pingpong*p_feedback):
coloration_filter(coloration),coloration_filter(coloration)),
switcher(p_attack_time, p_release_time, p_amount),
_:
_,_*_,_*_,_:(_,_*p_effect:>_),(_*p_effect,_:>_);
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/duck_delay_st.dsp | faust | ------------------------------------
Description:
The delayed signal added to output dependent of input signal amplitude.
If the input signal is high. The delayed signal turned off, and vise versa.
The switching controlled by envelope follower
(parameters: "attack", "release", and main - "amount", what is controls envelope follower influence).
Parameters description:
time - de.delay time in milliseconds
feedback - de.delay feedback
pingpong - changes feedback character
coloration - LP/HP coloration filter
attack, release - envelope follower time in seconds controls
amount dB - envelope follower influence
effect - amplitude of effect signal in mix
------------------------------------
Constrols
Consts
Funcs | declare id "duckDelaySt";
declare name "Duck Delay St";
declare category "Echo / Delay";
import("stdfaust.lib");
p_time = hslider("time[name:Delay]", 500, 1, 2000, 1):si.smooth(ba.tau2pole(0.1));
p_feedback = hslider("feedback[name:Feedback]", 0, 0, 1, 0.05);
p_pingpong = hslider("pingpong[name:Ping Pong]", 0, 0, 1, 0.05);
coloration = hslider("coloration[name:Coloration]", 0, -1, 1, 0.05);
p_attack_time = hslider("attack[name:Attack]", 0.1, 0.05, 0.5, 0.05);
p_release_time = hslider("release[name:Release]", 0.1, 0.05, 2, 0.05);
p_amount = hslider("amount[name:Amount]", 0.5, 0,56, 0.05):ba.db2linear;
p_effect = hslider("effect[name:Effect]", 0, -16, +4, 0.1) : ba.db2linear : si.smooth(0.999);
c_fdelay_max_len = 393216;
c_channels_sw_time = 0.1;
X = (_,_)<:(!,_,_,!);
get_delay_length(x) = x*ma.SR:_*0.001;
coloration_filter(coloration) = _<:(fi.lowshelf(5,(1 - coloration)*12,440),
fi.highshelf(5,coloration*12,880)):>_*ba.db2linear(-15);
pp_delay(time,fb_coef,pp_fb_coef) = _,_*(1 - pp_fb_coef):
(_,X,_:(X:(pp_fb_delay(time, fb_coef,pp_fb_coef))),
(X:(pp_fb_delay(time, fb_coef,pp_fb_coef))):_,_)~X
:>_,_
with {
pp_fb_delay(time,fb_coef,pp_fb_coef) = _+_*pp_fb_coef:
(_+_:de.fdelay(c_fdelay_max_len,get_delay_length(p_time)))~_*fb_coef;
};
switcher(att, rel, amount) = an.amp_follower_ud(att,rel):
_*amount:_>1:(1 - _):
si.smooth(ba.tau2pole(c_channels_sw_time));
process = (_<:_,_,_),(_<:_,_,_):
_,
switcher(p_attack_time, p_release_time, p_amount),
(pp_delay(p_time,p_feedback*(1 - p_pingpong),p_pingpong*p_feedback):
coloration_filter(coloration),coloration_filter(coloration)),
switcher(p_attack_time, p_release_time, p_amount),
_:
_,_*_,_*_,_:(_,_*p_effect:>_),(_*p_effect,_:>_);
|
4ca5a664ca337b329786e73b315acdf14b4d0bb3c6b28160047f29ef76b63b8b | brummer10/guitarix | dattorros_progenitor.dsp | declare id "dattorros_progenitor";
declare name "Plate Reverb";
declare category "Reverb";
//------------------------------------
//Based at:
//Effect Design Part 1: Reverberator and Other Filters
//JON DATTORRO, AES Member
//CCRMA, Stanford University, Stanford, CA, USA
//------------------------------------
import("stdfaust.lib");
import("guitarix.lib");
//Controls
max_predelay_ms = 200;
predelay = hslider("predelay ms[name:Predelay]", 0, 0, max_predelay_ms, 10);
excursion = hslider("excursion[name:Excursion]", 0, 0, 16, 0.5);
decay = hslider("decay[name:Decay]", 0.1, 0, 0.5, 0.01);
decay_diffusion1 = hslider("decay diff 1[name:Decay 1]", 0.1, 0, 0.7, 0.01);
decay_diffusion2 = hslider("decay diff 2[name:Decay 2]", 0.1, 0, 0.5, 0.01);
input_diffusion1 = hslider("input diff 1[name:Input 1]", 0.1, 0, 0.75, 0.01);
input_diffusion2 = hslider("input diff 2[name:Input 2]", 0.1, 0, 0.625, 0.01);
bandwidth = hslider("bandwidth[name:Bandwidth]", 0.9, 0.1, 0.95, 0.0005);
damping = hslider("damping[name:HF Damp]", 0.1, 0.1, 0.95, 0.0005);
dry_wet = hslider("dry/wet[name:Dry/Wet]", 0.5, 0, 1, 0.05);
//Will be moved to .lib
X = (_,_)<:(!,_,_,!);
mixer(c,x0,y0,x1,y1) = sel(c,x0,y0), sel(c,x1,y1)
with {
sel(c,x,y) = (1-c)*x + c*y;
};
//Consts
orig_sr = 29761.0; //Original sample rate, described in paper
//Correct de.delay lines according sample rate
get_length(x) = x/orig_sr:_*ma.SR:int;
get_predelay_length(x) = x*ma.SR:_*0.001;
input_chain(predelay, bw, input_diffusion1, input_diffusion2) =
(_+_)*0.5: de.sdelay(int(2^18), 100*ma.SR/1000.0, get_predelay_length(predelay)):opf(bw):
allpass_filter(get_length(142),input_diffusion1):allpass_filter(get_length(107),input_diffusion1):
allpass_filter(get_length(379),input_diffusion2):allpass_filter(get_length(277),input_diffusion2);
left_branch(excursion,decay_diffusion1,damping,decay,decay_diffusion2) =
_*0.5+_*0.3:allpass_with_fdelay(get_length(656),decay_diffusion1,17,0.5*(os.osc(1)+1)*excursion)<:@(get_length(4453)),_:
opf(damping),_:_*decay,_:allpass_filter(get_length(1800),decay_diffusion2),_:@(get_length(3720)),_:_*decay,_;
right_branch(excursion,decay_diffusion1,damping,decay,decay_diffusion2) =
_*0.5+_*0.3:allpass_with_fdelay(get_length(892),decay_diffusion1,17,0.5*(os.osc(1)+1)*excursion)<:@(get_length(4217)),_:
opf(damping),_:_*decay,_:allpass_filter(get_length(2656),decay_diffusion2),_:@(get_length(3163)),_:_*decay,_;
process = _,_<:
(_,(input_chain(predelay,1 - bandwidth, input_diffusion1,input_diffusion2)<:_,_),_):>
(_,(_,X,_:(left_branch(excursion,decay_diffusion1,damping,decay,decay_diffusion2),
right_branch(excursion,decay_diffusion1,damping,decay,decay_diffusion2)):_,X,_)~X),_:_,_,X,_,_:
_,(_,_:>_),(_,_:>_),_:X,_,_:mixer(1 - dry_wet);
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/dattorros_progenitor.dsp | faust | ------------------------------------
Based at:
Effect Design Part 1: Reverberator and Other Filters
JON DATTORRO, AES Member
CCRMA, Stanford University, Stanford, CA, USA
------------------------------------
Controls
Will be moved to .lib
Consts
Original sample rate, described in paper
Correct de.delay lines according sample rate | declare id "dattorros_progenitor";
declare name "Plate Reverb";
declare category "Reverb";
import("stdfaust.lib");
import("guitarix.lib");
max_predelay_ms = 200;
predelay = hslider("predelay ms[name:Predelay]", 0, 0, max_predelay_ms, 10);
excursion = hslider("excursion[name:Excursion]", 0, 0, 16, 0.5);
decay = hslider("decay[name:Decay]", 0.1, 0, 0.5, 0.01);
decay_diffusion1 = hslider("decay diff 1[name:Decay 1]", 0.1, 0, 0.7, 0.01);
decay_diffusion2 = hslider("decay diff 2[name:Decay 2]", 0.1, 0, 0.5, 0.01);
input_diffusion1 = hslider("input diff 1[name:Input 1]", 0.1, 0, 0.75, 0.01);
input_diffusion2 = hslider("input diff 2[name:Input 2]", 0.1, 0, 0.625, 0.01);
bandwidth = hslider("bandwidth[name:Bandwidth]", 0.9, 0.1, 0.95, 0.0005);
damping = hslider("damping[name:HF Damp]", 0.1, 0.1, 0.95, 0.0005);
dry_wet = hslider("dry/wet[name:Dry/Wet]", 0.5, 0, 1, 0.05);
X = (_,_)<:(!,_,_,!);
mixer(c,x0,y0,x1,y1) = sel(c,x0,y0), sel(c,x1,y1)
with {
sel(c,x,y) = (1-c)*x + c*y;
};
get_length(x) = x/orig_sr:_*ma.SR:int;
get_predelay_length(x) = x*ma.SR:_*0.001;
input_chain(predelay, bw, input_diffusion1, input_diffusion2) =
(_+_)*0.5: de.sdelay(int(2^18), 100*ma.SR/1000.0, get_predelay_length(predelay)):opf(bw):
allpass_filter(get_length(142),input_diffusion1):allpass_filter(get_length(107),input_diffusion1):
allpass_filter(get_length(379),input_diffusion2):allpass_filter(get_length(277),input_diffusion2);
left_branch(excursion,decay_diffusion1,damping,decay,decay_diffusion2) =
_*0.5+_*0.3:allpass_with_fdelay(get_length(656),decay_diffusion1,17,0.5*(os.osc(1)+1)*excursion)<:@(get_length(4453)),_:
opf(damping),_:_*decay,_:allpass_filter(get_length(1800),decay_diffusion2),_:@(get_length(3720)),_:_*decay,_;
right_branch(excursion,decay_diffusion1,damping,decay,decay_diffusion2) =
_*0.5+_*0.3:allpass_with_fdelay(get_length(892),decay_diffusion1,17,0.5*(os.osc(1)+1)*excursion)<:@(get_length(4217)),_:
opf(damping),_:_*decay,_:allpass_filter(get_length(2656),decay_diffusion2),_:@(get_length(3163)),_:_*decay,_;
process = _,_<:
(_,(input_chain(predelay,1 - bandwidth, input_diffusion1,input_diffusion2)<:_,_),_):>
(_,(_,X,_:(left_branch(excursion,decay_diffusion1,damping,decay,decay_diffusion2),
right_branch(excursion,decay_diffusion1,damping,decay,decay_diffusion2)):_,X,_)~X),_:_,_,X,_,_:
_,(_,_:>_),(_,_:>_),_:X,_,_:mixer(1 - dry_wet);
|
1883bbaa8ffc20db65604f5764cb6583636249148dd92dc780dde7e188bb3aa1 | brummer10/guitarix | panoram_enhancer.dsp | declare id "panoram_enhancer";
declare name "Panoram Enhancer";
declare shortname "Panoram";
declare category "Misc";
//------------------------------------
//Based at:
//ECE542 T. Tran; Rice University; Spring 2005
//"Title: Stereo Enhancement Algorithm"
//------------------------------------
import("stdfaust.lib");
//Controls
delay_width = hslider("Delay width[name:Delay][tooltip:Delay Width]",0,0,1,0.01):si.smooth(0.999);
freq_width = hslider("Frequency width[name:Frequency][tooltip:Frequency Width]",0,0,1,0.01);
//Constants
dt_max_const = 65536; //Max length of all de.delay lines, to provide 200 ms at 192 kHz
dt_max = 0.2 * ma.SR; //Real max length, 200 ms
filters_order = 6; //Filters order in filter-banks
fmain = 1800; //Main filter fhi
f1 = 3600; f2 = 6400; f3 = 20000; //Border freqs of filters in filter-banks
freq_shift = 1500; //Filters freq difference between filter-banks
fbank_coef_gap = 0.6; //Filters in filter-banks gain coefs min value
//Random changed values emulation
rv1 = _; rv2 = _*0.7; rv3 = _ + 0.3:sqrt(_);
rv4 = _*3.14:sin; rv5 = _*1.23:cos; rv6 = _+9:log10;
pa_filter(dt,flo,fhi,coef) = de.fdelay(dt_max_const,dt):fi.highpass(filters_order,flo):fi.lowpass(filters_order,fhi):_*coef;
gain_coef = _*(1 - fbank_coef_gap):_+fbank_coef_gap;
pa_filter_bank1(delay_width,filter_width) = _<:
pa_filter(dt_max:rv1:_*delay_width,fmain,f1,freq_width:rv5:gain_coef),
pa_filter(dt_max:rv3:_*delay_width,f1,f2, freq_width:rv2:gain_coef),
pa_filter(dt_max:rv2:_*delay_width,f2,f3, freq_width:rv4:gain_coef)
:>_;
pa_filter_bank2(delay_width,filter_width) = _<:
pa_filter(dt_max:rv5:_*delay_width,fmain - freq_shift*freq_width,f1 - freq_shift*freq_width,freq_width:rv3:gain_coef),
pa_filter(dt_max:rv1:_*delay_width,f1 - freq_shift*freq_width,f2 - freq_shift*freq_width,freq_width:rv4:gain_coef),
pa_filter(dt_max:rv6:_*delay_width,f2 - freq_shift*freq_width,f3 - freq_shift*freq_width,freq_width:rv2:gain_coef)
:>_;
process = _,_<:
pa_filter_bank1(delay_width,freq_width),
(_,_:(_*0.5,_*0.5:>fi.lowpass(4,fmain))<:_,_),
pa_filter_bank2(delay_width,freq_width)
:>_,_;
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/panoram_enhancer.dsp | faust | ------------------------------------
Based at:
ECE542 T. Tran; Rice University; Spring 2005
"Title: Stereo Enhancement Algorithm"
------------------------------------
Controls
Constants
Max length of all de.delay lines, to provide 200 ms at 192 kHz
Real max length, 200 ms
Filters order in filter-banks
Main filter fhi
Border freqs of filters in filter-banks
Filters freq difference between filter-banks
Filters in filter-banks gain coefs min value
Random changed values emulation | declare id "panoram_enhancer";
declare name "Panoram Enhancer";
declare shortname "Panoram";
declare category "Misc";
import("stdfaust.lib");
delay_width = hslider("Delay width[name:Delay][tooltip:Delay Width]",0,0,1,0.01):si.smooth(0.999);
freq_width = hslider("Frequency width[name:Frequency][tooltip:Frequency Width]",0,0,1,0.01);
rv1 = _; rv2 = _*0.7; rv3 = _ + 0.3:sqrt(_);
rv4 = _*3.14:sin; rv5 = _*1.23:cos; rv6 = _+9:log10;
pa_filter(dt,flo,fhi,coef) = de.fdelay(dt_max_const,dt):fi.highpass(filters_order,flo):fi.lowpass(filters_order,fhi):_*coef;
gain_coef = _*(1 - fbank_coef_gap):_+fbank_coef_gap;
pa_filter_bank1(delay_width,filter_width) = _<:
pa_filter(dt_max:rv1:_*delay_width,fmain,f1,freq_width:rv5:gain_coef),
pa_filter(dt_max:rv3:_*delay_width,f1,f2, freq_width:rv2:gain_coef),
pa_filter(dt_max:rv2:_*delay_width,f2,f3, freq_width:rv4:gain_coef)
:>_;
pa_filter_bank2(delay_width,filter_width) = _<:
pa_filter(dt_max:rv5:_*delay_width,fmain - freq_shift*freq_width,f1 - freq_shift*freq_width,freq_width:rv3:gain_coef),
pa_filter(dt_max:rv1:_*delay_width,f1 - freq_shift*freq_width,f2 - freq_shift*freq_width,freq_width:rv4:gain_coef),
pa_filter(dt_max:rv6:_*delay_width,f2 - freq_shift*freq_width,f3 - freq_shift*freq_width,freq_width:rv2:gain_coef)
:>_;
process = _,_<:
pa_filter_bank1(delay_width,freq_width),
(_,_:(_*0.5,_*0.5:>fi.lowpass(4,fmain))<:_,_),
pa_filter_bank2(delay_width,freq_width)
:>_,_;
|
1814f49f27adfae230269d43a23312f3fdf5cef0af417fafef6dc7e4b98b4e1f | brummer10/guitarix | tom.dsp | import("stdfaust.lib");
// Port from SuperCollider (SC) to Faust of SynthDef \SOStom in
// <SuperCollider>/examples/demonstrations/DrumSynths.scd
// e.g., /usr/local/share/SuperCollider/examples/demonstrations/DrumSynths.scd
// based on a Sound-on-Sound 'synth secrets' tutorial:
// http://www.soundonsound.com/sos/Mar02/articles/synthsecrets0302.asp
// SOStom -------
// http://www.soundonsound.com/sos/Mar02/articles/synthsecrets0302.asp
//https://github.com/josmithiii/faust-jos/tree/master/percussion
gate = checkbox("gate [nomidi:no][alias]");
trigger = gate > gate';
ampdb = vslider("Gainf [nomidi:no][alias]",-20,-60,40,0.1);
amp = ampdb : si.smooth(0.999) : ba.db2linear;
freq = vslider("[2] freq [nomidi:no][alias]", 90, 90, 150, 1);
//freq = 90;
// freq = 128;
// freq = 150;
sustain = 0.4;
drum_timbre = 1.0;
drum_mode_level = 0.25;
decay(n,x) = x - (x>0.0)/n;
release(n) = + ~ decay(n);
envgate(dur,trigger) = trigger : release(int(dur*float(ma.SR))) : >(0.0);
adsr(a,d,s,r,t) = env ~ (_,_) : (!,_) // the 2 'state' signals are fed back
with {
env (p2,y) =
(t>0) & (p2|(y>=1)), // p2 = decay-sustain phase
(y + p1*u - (p2&(y>s))*v*y - p3*w*y) // y = envelop signal
*((p3==0)|(y>=eps)) // cut off tails to prevent denormals
with {
p1 = (p2==0) & (t>0) & (y<1); // p1 = attack phase
p3 = (t<=0) & (y>0); // p3 = release phase
// #samples in attack, decay, release, must be >0
na = ma.SR*a+(a==0.0); nd = ma.SR*d+(d==0.0); nr = ma.SR*r+(r==0.0);
// correct zero sustain level
z = s+(s==0.0)*ba.db2linear(-60);
// attack, decay and (-60dB) release rates
u = 1/na; v = 1-pow(z, 1/nd); w = 1-1/pow(z*ba.db2linear(60), 1/nr);
// values below this threshold are considered zero in the release phase
eps = ba.db2linear(-120);
};
};
perc(att,rel,trigger) = adsr(att,0,1.0,rel,envgate(att,trigger));
sinosc0(freq) = os.oscrs(freq); // SinOsc at phase fi.zero
pmosc(carfreq,modfreq,index) = os.oscrs(carfreq + (index*modfreq)
* os.oscrs(modfreq));
drum_mode_env = perc(0.005, sustain, trigger);
drum_mode_sin_1 = sinosc0(freq*0.8) * drum_mode_env * 0.5;
drum_mode_sin_2 = sinosc0(freq) * drum_mode_env * 0.5;
drum_mode_pmosc = pmosc(os.saw2(freq*0.9), freq*0.85, drum_timbre/1.3)
* drum_mode_env * 5;
drum_mode_mix = (drum_mode_sin_1 + drum_mode_sin_2 + drum_mode_pmosc)
* drum_mode_level;
stick_env = perc(0.005, 0.01, trigger) * 3;
tom_mix = (drum_mode_mix + stick_env) * 2 * amp;
process = tom_mix;
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/tom.dsp | faust | Port from SuperCollider (SC) to Faust of SynthDef \SOStom in
<SuperCollider>/examples/demonstrations/DrumSynths.scd
e.g., /usr/local/share/SuperCollider/examples/demonstrations/DrumSynths.scd
based on a Sound-on-Sound 'synth secrets' tutorial:
http://www.soundonsound.com/sos/Mar02/articles/synthsecrets0302.asp
SOStom -------
http://www.soundonsound.com/sos/Mar02/articles/synthsecrets0302.asp
https://github.com/josmithiii/faust-jos/tree/master/percussion
freq = 90;
freq = 128;
freq = 150;
the 2 'state' signals are fed back
p2 = decay-sustain phase
y = envelop signal
cut off tails to prevent denormals
p1 = attack phase
p3 = release phase
#samples in attack, decay, release, must be >0
correct zero sustain level
attack, decay and (-60dB) release rates
values below this threshold are considered zero in the release phase
SinOsc at phase fi.zero | import("stdfaust.lib");
gate = checkbox("gate [nomidi:no][alias]");
trigger = gate > gate';
ampdb = vslider("Gainf [nomidi:no][alias]",-20,-60,40,0.1);
amp = ampdb : si.smooth(0.999) : ba.db2linear;
freq = vslider("[2] freq [nomidi:no][alias]", 90, 90, 150, 1);
sustain = 0.4;
drum_timbre = 1.0;
drum_mode_level = 0.25;
decay(n,x) = x - (x>0.0)/n;
release(n) = + ~ decay(n);
envgate(dur,trigger) = trigger : release(int(dur*float(ma.SR))) : >(0.0);
with {
env (p2,y) =
with {
na = ma.SR*a+(a==0.0); nd = ma.SR*d+(d==0.0); nr = ma.SR*r+(r==0.0);
z = s+(s==0.0)*ba.db2linear(-60);
u = 1/na; v = 1-pow(z, 1/nd); w = 1-1/pow(z*ba.db2linear(60), 1/nr);
eps = ba.db2linear(-120);
};
};
perc(att,rel,trigger) = adsr(att,0,1.0,rel,envgate(att,trigger));
pmosc(carfreq,modfreq,index) = os.oscrs(carfreq + (index*modfreq)
* os.oscrs(modfreq));
drum_mode_env = perc(0.005, sustain, trigger);
drum_mode_sin_1 = sinosc0(freq*0.8) * drum_mode_env * 0.5;
drum_mode_sin_2 = sinosc0(freq) * drum_mode_env * 0.5;
drum_mode_pmosc = pmosc(os.saw2(freq*0.9), freq*0.85, drum_timbre/1.3)
* drum_mode_env * 5;
drum_mode_mix = (drum_mode_sin_1 + drum_mode_sin_2 + drum_mode_pmosc)
* drum_mode_level;
stick_env = perc(0.005, 0.01, trigger) * 3;
tom_mix = (drum_mode_mix + stick_env) * 2 * amp;
process = tom_mix;
|
8427ab4504d93725adfadedcf3f421a4929195cfc81aef517dc8f3be4a5114c2 | brummer10/guitarix | kick.dsp | import("stdfaust.lib");
// Port from SuperCollider (SC) to Faust of SOSkick in
// <SuperCollider>/examples/demonstrations/DrumSynths.scd
// based on a Sound-on-Sound 'synth secrets' tutorial:
// http://www.soundonsound.com/sos/jan02/articles/synthsecrets0102.asp
//https://github.com/josmithiii/faust-jos/tree/master/percussion
decay(n,x) = x - (x>0.0)/n;
release(n) = + ~ decay(n);
envgate(dur,trigger) = trigger : release(int(dur*float(ma.SR))) : >(0.0);
adsr(a,d,s,r,t) = env ~ (_,_) : (!,_) // the 2 'state' signals are fed back
with {
env (p2,y) =
(t>0) & (p2|(y>=1)), // p2 = decay-sustain phase
(y + p1*u - (p2&(y>s))*v*y - p3*w*y) // y = envelop signal
*((p3==0)|(y>=eps)) // cut off tails to prevent denormals
with {
p1 = (p2==0) & (t>0) & (y<1); // p1 = attack phase
p3 = (t<=0) & (y>0); // p3 = release phase
// #samples in attack, decay, release, must be >0
na = ma.SR*a+(a==0.0); nd = ma.SR*d+(d==0.0); nr = ma.SR*r+(r==0.0);
// correct zero sustain level
z = s+(s==0.0)*ba.db2linear(-60);
// attack, decay and (-60dB) release rates
u = 1/na; v = 1-pow(z, 1/nd); w = 1-1/pow(z*ba.db2linear(60), 1/nr);
// values below this threshold are considered zero in the release phase
eps = ba.db2linear(-120);
};
};
perc(att,rel,trigger) = adsr(att,0,1.0,rel,envgate(att,trigger));
pmosc(carfreq,modfreq,index) = os.oscrs(carfreq + (index*modfreq)
* os.oscrs(modfreq));
line(start,end,dur,trigger) = trigger : release(int(dur*float(ma.SR)))
: *(start-end)+end;
lpf(freq) = fi.lowpass(3,freq);
hpf(freq) = fi.highpass(3,freq);
gate = checkbox(" gate [nomidi:no][alias]");
ampdb = vslider("Gain [tooltip: Volume level in decibels]",-20,-60,40,0.1);
amp = ampdb : si.smooth(0.999) : ba.db2linear;
freq = 50;
mod_freq = 5.0;
mod_index = 5.0;
sustain = 0.4;
beater_noise_level = 0.03;
trigger = gate>gate';
pitch_contour = line(freq*2, freq, 0.02, trigger);
drum_osc = pmosc(pitch_contour, mod_freq, mod_index/1.3);
drum_lpf = drum_osc : lpf(1000);
drum_env = drum_lpf * perc(0.005,sustain,trigger);
beater_source = no.noise * beater_noise_level;
beater_hpf = beater_source : hpf(500);
lpf_cutoff_contour = line(6000, 500, 0.03, trigger);
beater_lpf = beater_hpf : lpf(lpf_cutoff_contour);
beater_env = beater_lpf * perc(0.01, 1.0, trigger);
kick_mix = (drum_env + beater_env) * 2 * amp;
process = kick_mix;
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/kick.dsp | faust | Port from SuperCollider (SC) to Faust of SOSkick in
<SuperCollider>/examples/demonstrations/DrumSynths.scd
based on a Sound-on-Sound 'synth secrets' tutorial:
http://www.soundonsound.com/sos/jan02/articles/synthsecrets0102.asp
https://github.com/josmithiii/faust-jos/tree/master/percussion
the 2 'state' signals are fed back
p2 = decay-sustain phase
y = envelop signal
cut off tails to prevent denormals
p1 = attack phase
p3 = release phase
#samples in attack, decay, release, must be >0
correct zero sustain level
attack, decay and (-60dB) release rates
values below this threshold are considered zero in the release phase | import("stdfaust.lib");
decay(n,x) = x - (x>0.0)/n;
release(n) = + ~ decay(n);
envgate(dur,trigger) = trigger : release(int(dur*float(ma.SR))) : >(0.0);
with {
env (p2,y) =
with {
na = ma.SR*a+(a==0.0); nd = ma.SR*d+(d==0.0); nr = ma.SR*r+(r==0.0);
z = s+(s==0.0)*ba.db2linear(-60);
u = 1/na; v = 1-pow(z, 1/nd); w = 1-1/pow(z*ba.db2linear(60), 1/nr);
eps = ba.db2linear(-120);
};
};
perc(att,rel,trigger) = adsr(att,0,1.0,rel,envgate(att,trigger));
pmosc(carfreq,modfreq,index) = os.oscrs(carfreq + (index*modfreq)
* os.oscrs(modfreq));
line(start,end,dur,trigger) = trigger : release(int(dur*float(ma.SR)))
: *(start-end)+end;
lpf(freq) = fi.lowpass(3,freq);
hpf(freq) = fi.highpass(3,freq);
gate = checkbox(" gate [nomidi:no][alias]");
ampdb = vslider("Gain [tooltip: Volume level in decibels]",-20,-60,40,0.1);
amp = ampdb : si.smooth(0.999) : ba.db2linear;
freq = 50;
mod_freq = 5.0;
mod_index = 5.0;
sustain = 0.4;
beater_noise_level = 0.03;
trigger = gate>gate';
pitch_contour = line(freq*2, freq, 0.02, trigger);
drum_osc = pmosc(pitch_contour, mod_freq, mod_index/1.3);
drum_lpf = drum_osc : lpf(1000);
drum_env = drum_lpf * perc(0.005,sustain,trigger);
beater_source = no.noise * beater_noise_level;
beater_hpf = beater_source : hpf(500);
lpf_cutoff_contour = line(6000, 500, 0.03, trigger);
beater_lpf = beater_hpf : lpf(lpf_cutoff_contour);
beater_env = beater_lpf * perc(0.01, 1.0, trigger);
kick_mix = (drum_env + beater_env) * 2 * amp;
process = kick_mix;
|
6423087fe355eb062935d7d5e8f645de0af99ab3b82c87bd6f092293d4587c22 | brummer10/guitarix | selecteq.dsp | declare id "eqs";
declare name "Scaleable EQ";
declare category "Tone Control";
declare license "BSD";
declare copyright "(c)GRAME 2006";
import("stdfaust.lib");
import("guitarix.lib");
//------------------------- Process --------------------------------
// lower bands (up to 125 Hz) suffer from numerical cancellation
// when using single precision.
// vectorization makes code slower (tested on ARM NEON).
process = ifilter(vslider("Qs31_25 [tooltip:bandwidth]", 50, 1, 100, 1),
vslider("freq31_25 [tooltip:Hz]",31.25, 20, 20000, 1),
vslider("fs31_25[tooltip:gain (dB) at 31.25 Hz]", 0, -40, 30, 0.1)
: ba.db2linear : smoothi(0.999))
: ifilter(vslider("Qs62_5 [tooltip:bandwidth]", 50, 1, 100, 1),
vslider("freq62_5 [tooltip:Hz]",62.5, 20, 20000, 1),
vslider("fs62_5 [tooltip:gain (dB) at 62.5 Hz]", 0, -40, 30, 0.1)
: ba.db2linear : smoothi(0.999))
: ifilter(vslider("Qs125 [tooltip:bandwidth]", 50, 1, 100, 1),
vslider("freq125 [tooltip:Hz]",125., 20, 20000, 1),
vslider("fs125 [tooltip:gain (dB) at 125 Hz]", 0, -40, 30, 0.1)
: ba.db2linear : smoothi(0.999))
: ifilter(vslider("Qs250 [tooltip:bandwidth]", 50, 1, 100, 1),
vslider("freq250 [tooltip:Hz]",250., 20, 20000, 1),
vslider("fs250 [tooltip:gain (dB) at 250 Hz]", 0, -40, 30, 0.1)
: ba.db2linear : smoothi(0.999))
: ifilter(vslider("Qs500 [tooltip:bandwidth]", 50, 1, 100, 1),
vslider("freq500 [tooltip:Hz]",500., 20, 20000, 1),
vslider("fs500 [tooltip:gain (dB) at 500 Hz]", 0, -40, 30, 0.1)
: ba.db2linear : smoothi(0.999))
: ifilter(vslider("Qs1k [tooltip:bandwidth]", 50, 1, 100, 1),
vslider("freq1k [tooltip:Hz]",1000., 20, 20000, 1),
vslider("fs1k [tooltip:gain (dB) at 1 kHz]", 0, -40, 30, 0.1)
: ba.db2linear : smoothi(0.999))
: ifilter(vslider("Qs2k [tooltip:bandwidth]", 50, 1, 100, 1),
vslider("freq2k [tooltip:Hz]",2000., 20, 20000, 1),
vslider("fs2k [tooltip:gain (dB) at 2 kHz]", 0, -40, 30, 0.1)
: ba.db2linear : smoothi(0.999))
: ifilter(vslider("Qs4k [tooltip:bandwidth", 50, 1, 100, 1),
vslider("freq4k [tooltip:Hz]",4000., 20, 20000, 1),
vslider("fs4k [tooltip:gain (dB) at 4 kHz]", 0, -40, 30, 0.1)
: ba.db2linear : smoothi(0.999))
: ifilter(vslider("Qs8k [tooltip:bandwidth", 50, 1, 100, 1),
vslider("freq8k [tooltip:Hz]",8000., 20, 20000, 1),
vslider("fs8k [tooltip:gain (dB) at 8 kHz]", 0, -40, 30, 0.1)
: ba.db2linear : smoothi(0.999))
: ifilter(vslider("Qs16k [tooltip:bandwidth", 50, 1, 100, 1),
vslider("freq16k [tooltip:Hz]",16000., 20, 20000, 1),
vslider("fs16k [tooltip:gain (dB) at 16 kHz]", 0, -40, 30, 0.1)
: ba.db2linear : smoothi(0.999))
;
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/selecteq.dsp | faust | ------------------------- Process --------------------------------
lower bands (up to 125 Hz) suffer from numerical cancellation
when using single precision.
vectorization makes code slower (tested on ARM NEON). | declare id "eqs";
declare name "Scaleable EQ";
declare category "Tone Control";
declare license "BSD";
declare copyright "(c)GRAME 2006";
import("stdfaust.lib");
import("guitarix.lib");
process = ifilter(vslider("Qs31_25 [tooltip:bandwidth]", 50, 1, 100, 1),
vslider("freq31_25 [tooltip:Hz]",31.25, 20, 20000, 1),
vslider("fs31_25[tooltip:gain (dB) at 31.25 Hz]", 0, -40, 30, 0.1)
: ba.db2linear : smoothi(0.999))
: ifilter(vslider("Qs62_5 [tooltip:bandwidth]", 50, 1, 100, 1),
vslider("freq62_5 [tooltip:Hz]",62.5, 20, 20000, 1),
vslider("fs62_5 [tooltip:gain (dB) at 62.5 Hz]", 0, -40, 30, 0.1)
: ba.db2linear : smoothi(0.999))
: ifilter(vslider("Qs125 [tooltip:bandwidth]", 50, 1, 100, 1),
vslider("freq125 [tooltip:Hz]",125., 20, 20000, 1),
vslider("fs125 [tooltip:gain (dB) at 125 Hz]", 0, -40, 30, 0.1)
: ba.db2linear : smoothi(0.999))
: ifilter(vslider("Qs250 [tooltip:bandwidth]", 50, 1, 100, 1),
vslider("freq250 [tooltip:Hz]",250., 20, 20000, 1),
vslider("fs250 [tooltip:gain (dB) at 250 Hz]", 0, -40, 30, 0.1)
: ba.db2linear : smoothi(0.999))
: ifilter(vslider("Qs500 [tooltip:bandwidth]", 50, 1, 100, 1),
vslider("freq500 [tooltip:Hz]",500., 20, 20000, 1),
vslider("fs500 [tooltip:gain (dB) at 500 Hz]", 0, -40, 30, 0.1)
: ba.db2linear : smoothi(0.999))
: ifilter(vslider("Qs1k [tooltip:bandwidth]", 50, 1, 100, 1),
vslider("freq1k [tooltip:Hz]",1000., 20, 20000, 1),
vslider("fs1k [tooltip:gain (dB) at 1 kHz]", 0, -40, 30, 0.1)
: ba.db2linear : smoothi(0.999))
: ifilter(vslider("Qs2k [tooltip:bandwidth]", 50, 1, 100, 1),
vslider("freq2k [tooltip:Hz]",2000., 20, 20000, 1),
vslider("fs2k [tooltip:gain (dB) at 2 kHz]", 0, -40, 30, 0.1)
: ba.db2linear : smoothi(0.999))
: ifilter(vslider("Qs4k [tooltip:bandwidth", 50, 1, 100, 1),
vslider("freq4k [tooltip:Hz]",4000., 20, 20000, 1),
vslider("fs4k [tooltip:gain (dB) at 4 kHz]", 0, -40, 30, 0.1)
: ba.db2linear : smoothi(0.999))
: ifilter(vslider("Qs8k [tooltip:bandwidth", 50, 1, 100, 1),
vslider("freq8k [tooltip:Hz]",8000., 20, 20000, 1),
vslider("fs8k [tooltip:gain (dB) at 8 kHz]", 0, -40, 30, 0.1)
: ba.db2linear : smoothi(0.999))
: ifilter(vslider("Qs16k [tooltip:bandwidth", 50, 1, 100, 1),
vslider("freq16k [tooltip:Hz]",16000., 20, 20000, 1),
vslider("fs16k [tooltip:gain (dB) at 16 kHz]", 0, -40, 30, 0.1)
: ba.db2linear : smoothi(0.999))
;
|
f40d4492f7da48b06958b05a3380a5aec09edb7ddb65cb3d6fe299524e7dd200 | brummer10/guitarix | graphiceq.dsp | declare id "graphiceq";
declare name "Graphic EQ";
declare category "Tone Control";
declare description "Graphic EQ";
import("stdfaust.lib");
rd = library("reducemaps.lib");
//geq = fi.filterbank(3, (31.25, 62.5, 125., 250., 500., 1000., 2000., 4000., 8000., 16000.));
geq = fi.filterbank(3, (44., 88., 177., 354., 707., 1414., 2828., 5657., 11384., 18110.));
g1 = vslider("g1[tooltip:gain (dB) below 31.25 Hz]", 0, -60, 5.2, 0.1) : ba.db2linear : si.smooth(0.999);
g2 = vslider("g2 [tooltip:gain (dB) at 62.5 Hz]", 0, -30, 5.2, 0.1) : ba.db2linear : si.smooth(0.999);
g3 = vslider("g3 [tooltip:gain (dB) at 125 Hz]", 0, -30, 5.2, 0.1) : ba.db2linear : si.smooth(0.999);
g4 = vslider("g4 [tooltip:gain (dB) at 250 Hz]", 0, -30, 5.2, 0.1) : ba.db2linear : si.smooth(0.999);
g5 = vslider("g5 [tooltip:gain (dB) at 500 Hz]", 0, -30, 5.2, 0.1) : ba.db2linear : si.smooth(0.999);
g6 = vslider("g6 [tooltip:gain (dB) at 1 kHz]", 0, -30, 5.2, 0.1) : ba.db2linear : si.smooth(0.999);
g7 = vslider("g7 [tooltip:gain (dB) at 2 kHz]", 0, -30, 5.2, 0.1) : ba.db2linear : si.smooth(0.999);
g8 = vslider("g8 [tooltip:gain (dB) at 4 kHz]", 0, -30, 5.2, 0.1) : ba.db2linear : si.smooth(0.999);
g9 = vslider("g9 [tooltip:gain (dB) at 8 kHz]", 0, -30, 5.2, 0.1) : ba.db2linear : si.smooth(0.999);
g10 = vslider("g10 [tooltip:gain (dB) at 16 kHz]", 0, -30, 5.2, 0.1) : ba.db2linear : si.smooth(0.999);
g11 = vslider("g11 [tooltip:gain (dB) above 16 kHz]", 0, -30, 5.2, 0.1) : ba.db2linear : si.smooth(0.999);
v1(x) = attach(x, envelop(x) : vbargraph("v1[nomidi:no]", -70, +5));
v2(x) = attach(x, envelop(x) : vbargraph("v2[nomidi:no]", -70, +5));
v3(x) = attach(x, envelop(x) : vbargraph("v3[nomidi:no]", -70, +5));
v4(x) = attach(x, envelop(x) : vbargraph("v4[nomidi:no]", -70, +5));
v5(x) = attach(x, envelop(x) : vbargraph("v5[nomidi:no]", -70, +5));
v6(x) = attach(x, envelop(x) : vbargraph("v6[nomidi:no]", -70, +5));
v7(x) = attach(x, envelop(x) : vbargraph("v7[nomidi:no]", -70, +5));
v8(x) = attach(x, envelop(x) : vbargraph("v8[nomidi:no]", -70, +5));
v9(x) = attach(x, envelop(x) : vbargraph("v9[nomidi:no]", -70, +5));
v10(x) = attach(x, envelop(x) : vbargraph("v10[nomidi:no]", -70, +5));
v11(x) = attach(x, envelop(x) : vbargraph("v11[nomidi:no]", -70, +5));
envelop = abs : max ~ (1.0/ma.SR) : rd.maxn(4096) ;
process = geq :(*(g11):v11), (*(g10):v10),(*(g9):v9),(*(g8):v8),(*(g7):v7),(*(g6):v6),
(*(g5):v5),(*(g4):v4),(*(g3):v3),(*(g2):v2),(*(g1):v1) :>_;
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/graphiceq.dsp | faust | geq = fi.filterbank(3, (31.25, 62.5, 125., 250., 500., 1000., 2000., 4000., 8000., 16000.)); | declare id "graphiceq";
declare name "Graphic EQ";
declare category "Tone Control";
declare description "Graphic EQ";
import("stdfaust.lib");
rd = library("reducemaps.lib");
geq = fi.filterbank(3, (44., 88., 177., 354., 707., 1414., 2828., 5657., 11384., 18110.));
g1 = vslider("g1[tooltip:gain (dB) below 31.25 Hz]", 0, -60, 5.2, 0.1) : ba.db2linear : si.smooth(0.999);
g2 = vslider("g2 [tooltip:gain (dB) at 62.5 Hz]", 0, -30, 5.2, 0.1) : ba.db2linear : si.smooth(0.999);
g3 = vslider("g3 [tooltip:gain (dB) at 125 Hz]", 0, -30, 5.2, 0.1) : ba.db2linear : si.smooth(0.999);
g4 = vslider("g4 [tooltip:gain (dB) at 250 Hz]", 0, -30, 5.2, 0.1) : ba.db2linear : si.smooth(0.999);
g5 = vslider("g5 [tooltip:gain (dB) at 500 Hz]", 0, -30, 5.2, 0.1) : ba.db2linear : si.smooth(0.999);
g6 = vslider("g6 [tooltip:gain (dB) at 1 kHz]", 0, -30, 5.2, 0.1) : ba.db2linear : si.smooth(0.999);
g7 = vslider("g7 [tooltip:gain (dB) at 2 kHz]", 0, -30, 5.2, 0.1) : ba.db2linear : si.smooth(0.999);
g8 = vslider("g8 [tooltip:gain (dB) at 4 kHz]", 0, -30, 5.2, 0.1) : ba.db2linear : si.smooth(0.999);
g9 = vslider("g9 [tooltip:gain (dB) at 8 kHz]", 0, -30, 5.2, 0.1) : ba.db2linear : si.smooth(0.999);
g10 = vslider("g10 [tooltip:gain (dB) at 16 kHz]", 0, -30, 5.2, 0.1) : ba.db2linear : si.smooth(0.999);
g11 = vslider("g11 [tooltip:gain (dB) above 16 kHz]", 0, -30, 5.2, 0.1) : ba.db2linear : si.smooth(0.999);
v1(x) = attach(x, envelop(x) : vbargraph("v1[nomidi:no]", -70, +5));
v2(x) = attach(x, envelop(x) : vbargraph("v2[nomidi:no]", -70, +5));
v3(x) = attach(x, envelop(x) : vbargraph("v3[nomidi:no]", -70, +5));
v4(x) = attach(x, envelop(x) : vbargraph("v4[nomidi:no]", -70, +5));
v5(x) = attach(x, envelop(x) : vbargraph("v5[nomidi:no]", -70, +5));
v6(x) = attach(x, envelop(x) : vbargraph("v6[nomidi:no]", -70, +5));
v7(x) = attach(x, envelop(x) : vbargraph("v7[nomidi:no]", -70, +5));
v8(x) = attach(x, envelop(x) : vbargraph("v8[nomidi:no]", -70, +5));
v9(x) = attach(x, envelop(x) : vbargraph("v9[nomidi:no]", -70, +5));
v10(x) = attach(x, envelop(x) : vbargraph("v10[nomidi:no]", -70, +5));
v11(x) = attach(x, envelop(x) : vbargraph("v11[nomidi:no]", -70, +5));
envelop = abs : max ~ (1.0/ma.SR) : rd.maxn(4096) ;
process = geq :(*(g11):v11), (*(g10):v10),(*(g9):v9),(*(g8):v8),(*(g7):v7),(*(g6):v6),
(*(g5):v5),(*(g4):v4),(*(g3):v3),(*(g2):v2),(*(g1):v1) :>_;
|
ed89ca7e2cf5f12759d05f435405d4fec83c2c7ae08dc388924ad5772d88d93c | brummer10/MetalTone | metaltone_pre.dsp |
/*******************************************************************************
**************************** File generated by *********************************
********************************************************************************
./build-plug.py -i MetalZone.sch -b
*******************************************************************************/
// generated automatically
// DO NOT MODIFY!
declare id "metalzone";
declare name "metalzone";
declare category "Extern";
declare shortname "metalzone";
declare description "metalzone";
import("stdfaust.lib");
/*******************************************************************************
* metalzone_p1 generated by dkbuiler from MetalZone_p1.sch
*******************************************************************************/
p0 = pre : fi.iir((b0/a0,b1/a0),(a1/a0)) with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
b0 = 2.04615913707177e-5*fs;
b1 = -2.04615913707177e-5*fs;
a0 = 2.08284488165043e-5*fs + 0.000234456807793764;
a1 = -2.08284488165043e-5*fs + 0.000234456807793764;
};
p1 = pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0,b5/a0),(a1/a0,a2/a0,a3/a0,a4/a0,a5/a0)) with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
b0 = fs*(fs*(fs*(2.60149822831355e-21*fs + 3.79021415680222e-16) + 6.23800285169196e-12) + 5.15549054919527e-10);
b1 = fs*(fs*(fs*(-7.80449468494064e-21*fs - 3.79021415680222e-16) + 6.23800285169196e-12) + 1.54664716475858e-9);
b2 = fs*(fs*(fs*(5.2029964566271e-21*fs - 7.58042831360445e-16) - 1.24760057033839e-11) + 1.03109810983905e-9);
b3 = fs*(fs*(fs*(5.2029964566271e-21*fs + 7.58042831360445e-16) - 1.24760057033839e-11) - 1.03109810983905e-9);
b4 = fs*(fs*(fs*(-7.80449468494064e-21*fs + 3.79021415680222e-16) + 6.23800285169196e-12) - 1.54664716475858e-9);
b5 = fs*(fs*(fs*(2.60149822831355e-21*fs - 3.79021415680222e-16) + 6.23800285169196e-12) - 5.15549054919527e-10);
a0 = fs*(fs*(fs*(fs*(2.4454389978744e-24*fs + 6.53471849041744e-20) + 2.54299345607219e-16) + 7.88935006893206e-13) + 1.26822396718671e-9) + 3.43703679632746e-7;
a1 = fs*(fs*(fs*(fs*(-1.2227194989372e-23*fs - 1.96041554712523e-19) - 2.54299345607219e-16) + 7.88935006893206e-13) + 3.80467190156013e-9) + 1.71851839816373e-6;
a2 = fs*(fs*(fs*(fs*(2.4454389978744e-23*fs + 1.30694369808349e-19) - 5.08598691214437e-16) - 1.57787001378641e-12) + 2.53644793437342e-9) + 3.43703679632746e-6;
a3 = fs*(fs*(fs*(fs*(-2.4454389978744e-23*fs + 1.30694369808349e-19) + 5.08598691214437e-16) - 1.57787001378641e-12) - 2.53644793437342e-9) + 3.43703679632746e-6;
a4 = fs*(fs*(fs*(fs*(1.2227194989372e-23*fs - 1.96041554712523e-19) + 2.54299345607219e-16) + 7.88935006893206e-13) - 3.80467190156013e-9) + 1.71851839816373e-6;
a5 = fs*(fs*(fs*(fs*(-2.4454389978744e-24*fs + 6.53471849041744e-20) - 2.54299345607219e-16) + 7.88935006893206e-13) - 1.26822396718671e-9) + 3.43703679632746e-7;
};
p2 = pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0,b5/a0),(a1/a0,a2/a0,a3/a0,a4/a0,a5/a0)) with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
Dist = vslider("Dist[name:Dist][style:knob]", 0.5, 0, 1, 0.01) : Inverted(0) : LogPot(3) : si.smooth(s);
b0 = Dist*pow(fs,2)*(fs*(fs*(1.13784372686602e-24*fs + 1.21855396824368e-18) + 8.58499400409908e-15) - 6.09123191579915e-30) + pow(fs,2)*(fs*(fs*(4.55137490746407e-27*fs + 2.76310904102951e-20) + 1.95978343740697e-16) + 1.71698163100351e-15);
b1 = Dist*pow(fs,2)*(fs*(fs*(-5.68921863433009e-24*fs - 3.65566190473105e-18) - 8.58499400409908e-15) - 6.09123191579915e-30) + pow(fs,2)*(fs*(fs*(-2.27568745373204e-26*fs - 8.28932712308853e-20) - 1.95978343740697e-16) + 1.71698163100351e-15);
b2 = Dist*pow(fs,2)*(fs*(fs*(1.13784372686602e-23*fs + 2.43710793648737e-18) - 1.71699880081982e-14) + 1.21824638315983e-29) + pow(fs,2)*(fs*(fs*(4.55137490746407e-26*fs + 5.52621808205902e-20) - 3.91956687481394e-16) - 3.43396326200701e-15);
b3 = Dist*pow(fs,2)*(fs*(fs*(-1.13784372686602e-23*fs + 2.43710793648737e-18) + 1.71699880081982e-14) + 1.21824638315983e-29) + pow(fs,2)*(fs*(fs*(-4.55137490746407e-26*fs + 5.52621808205902e-20) + 3.91956687481394e-16) - 3.43396326200701e-15);
b4 = Dist*pow(fs,2)*(fs*(fs*(5.68921863433009e-24*fs - 3.65566190473105e-18) + 8.58499400409908e-15) - 6.09123191579915e-30) + pow(fs,2)*(fs*(fs*(2.27568745373204e-26*fs - 8.28932712308853e-20) + 1.95978343740697e-16) + 1.71698163100351e-15);
b5 = Dist*pow(fs,2)*(fs*(fs*(-1.13784372686602e-24*fs + 1.21855396824368e-18) - 8.58499400409908e-15) - 6.09123191579915e-30) + pow(fs,2)*(fs*(fs*(-4.55137490746407e-27*fs + 2.76310904102951e-20) - 1.95978343740697e-16) + 1.71698163100351e-15);
a0 = Dist*(fs*(fs*(fs*(fs*(4.09145205062379e-24*fs + 8.24212664514929e-21) + 3.17729560581312e-19) + 2.93619011633722e-18) + 9.77259192888297e-23) - 3.85750837043159e-38) + fs*(fs*(fs*(fs*(1.63658082024952e-26*fs + 8.18620095190564e-20) + 1.63752260202535e-16) + 4.18188856565759e-15) + 2.60543994858159e-14) + 8.67173312581635e-19;
a1 = Dist*(fs*(fs*(fs*(fs*(-2.0457260253119e-23*fs - 2.47263799354479e-20) - 3.17729560581312e-19) + 2.93619011633722e-18) + 2.93177757866489e-22) - 1.92875418521579e-37) + fs*(fs*(fs*(fs*(-8.18290410124758e-26*fs - 2.45586028557169e-19) - 1.63752260202535e-16) + 4.18188856565759e-15) + 7.81631984574476e-14) + 4.33586656290817e-18;
a2 = Dist*(fs*(fs*(fs*(fs*(4.09145205062379e-23*fs + 1.64842532902986e-20) - 6.35459121162625e-19) - 5.87238023267445e-18) + 1.95451838577659e-22) - 3.85750837043159e-37) + fs*(fs*(fs*(fs*(1.63658082024952e-25*fs + 1.63724019038113e-19) - 3.27504520405069e-16) - 8.36377713131518e-15) + 5.21087989716317e-14) + 8.67173312581635e-18;
a3 = Dist*(fs*(fs*(fs*(fs*(-4.09145205062379e-23*fs + 1.64842532902986e-20) + 6.35459121162625e-19) - 5.87238023267445e-18) - 1.95451838577659e-22) - 3.85750837043159e-37) + fs*(fs*(fs*(fs*(-1.63658082024952e-25*fs + 1.63724019038113e-19) + 3.27504520405069e-16) - 8.36377713131518e-15) - 5.21087989716317e-14) + 8.67173312581635e-18;
a4 = Dist*(fs*(fs*(fs*(fs*(2.0457260253119e-23*fs - 2.47263799354479e-20) + 3.17729560581312e-19) + 2.93619011633722e-18) - 2.93177757866489e-22) - 1.92875418521579e-37) + fs*(fs*(fs*(fs*(8.18290410124758e-26*fs - 2.45586028557169e-19) + 1.63752260202535e-16) + 4.18188856565759e-15) - 7.81631984574476e-14) + 4.33586656290817e-18;
a5 = Dist*(fs*(fs*(fs*(fs*(-4.09145205062379e-24*fs + 8.24212664514929e-21) - 3.17729560581312e-19) + 2.93619011633722e-18) - 9.77259192888297e-23) - 3.85750837043159e-38) + fs*(fs*(fs*(fs*(-1.63658082024952e-26*fs + 8.18620095190564e-20) - 1.63752260202535e-16) + 4.18188856565759e-15) - 2.60543994858159e-14) + 8.67173312581635e-19;
};
anti_denormal = pow(10,-20);
anti_denormal_ac = 1 - 1' : *(anti_denormal) : + ~ *(-1);
process = +(anti_denormal_ac) : p0 : p1 : p2;
| https://raw.githubusercontent.com/brummer10/MetalTone/610736038723c8470962a4d862943e9a8c8aecab/MetalTone/metaltone_pre.dsp | faust | ******************************************************************************
**************************** File generated by *********************************
********************************************************************************
./build-plug.py -i MetalZone.sch -b
******************************************************************************
generated automatically
DO NOT MODIFY!
******************************************************************************
* metalzone_p1 generated by dkbuiler from MetalZone_p1.sch
****************************************************************************** |
declare id "metalzone";
declare name "metalzone";
declare category "Extern";
declare shortname "metalzone";
declare description "metalzone";
import("stdfaust.lib");
p0 = pre : fi.iir((b0/a0,b1/a0),(a1/a0)) with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
b0 = 2.04615913707177e-5*fs;
b1 = -2.04615913707177e-5*fs;
a0 = 2.08284488165043e-5*fs + 0.000234456807793764;
a1 = -2.08284488165043e-5*fs + 0.000234456807793764;
};
p1 = pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0,b5/a0),(a1/a0,a2/a0,a3/a0,a4/a0,a5/a0)) with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
b0 = fs*(fs*(fs*(2.60149822831355e-21*fs + 3.79021415680222e-16) + 6.23800285169196e-12) + 5.15549054919527e-10);
b1 = fs*(fs*(fs*(-7.80449468494064e-21*fs - 3.79021415680222e-16) + 6.23800285169196e-12) + 1.54664716475858e-9);
b2 = fs*(fs*(fs*(5.2029964566271e-21*fs - 7.58042831360445e-16) - 1.24760057033839e-11) + 1.03109810983905e-9);
b3 = fs*(fs*(fs*(5.2029964566271e-21*fs + 7.58042831360445e-16) - 1.24760057033839e-11) - 1.03109810983905e-9);
b4 = fs*(fs*(fs*(-7.80449468494064e-21*fs + 3.79021415680222e-16) + 6.23800285169196e-12) - 1.54664716475858e-9);
b5 = fs*(fs*(fs*(2.60149822831355e-21*fs - 3.79021415680222e-16) + 6.23800285169196e-12) - 5.15549054919527e-10);
a0 = fs*(fs*(fs*(fs*(2.4454389978744e-24*fs + 6.53471849041744e-20) + 2.54299345607219e-16) + 7.88935006893206e-13) + 1.26822396718671e-9) + 3.43703679632746e-7;
a1 = fs*(fs*(fs*(fs*(-1.2227194989372e-23*fs - 1.96041554712523e-19) - 2.54299345607219e-16) + 7.88935006893206e-13) + 3.80467190156013e-9) + 1.71851839816373e-6;
a2 = fs*(fs*(fs*(fs*(2.4454389978744e-23*fs + 1.30694369808349e-19) - 5.08598691214437e-16) - 1.57787001378641e-12) + 2.53644793437342e-9) + 3.43703679632746e-6;
a3 = fs*(fs*(fs*(fs*(-2.4454389978744e-23*fs + 1.30694369808349e-19) + 5.08598691214437e-16) - 1.57787001378641e-12) - 2.53644793437342e-9) + 3.43703679632746e-6;
a4 = fs*(fs*(fs*(fs*(1.2227194989372e-23*fs - 1.96041554712523e-19) + 2.54299345607219e-16) + 7.88935006893206e-13) - 3.80467190156013e-9) + 1.71851839816373e-6;
a5 = fs*(fs*(fs*(fs*(-2.4454389978744e-24*fs + 6.53471849041744e-20) - 2.54299345607219e-16) + 7.88935006893206e-13) - 1.26822396718671e-9) + 3.43703679632746e-7;
};
p2 = pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0,b5/a0),(a1/a0,a2/a0,a3/a0,a4/a0,a5/a0)) with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
Dist = vslider("Dist[name:Dist][style:knob]", 0.5, 0, 1, 0.01) : Inverted(0) : LogPot(3) : si.smooth(s);
b0 = Dist*pow(fs,2)*(fs*(fs*(1.13784372686602e-24*fs + 1.21855396824368e-18) + 8.58499400409908e-15) - 6.09123191579915e-30) + pow(fs,2)*(fs*(fs*(4.55137490746407e-27*fs + 2.76310904102951e-20) + 1.95978343740697e-16) + 1.71698163100351e-15);
b1 = Dist*pow(fs,2)*(fs*(fs*(-5.68921863433009e-24*fs - 3.65566190473105e-18) - 8.58499400409908e-15) - 6.09123191579915e-30) + pow(fs,2)*(fs*(fs*(-2.27568745373204e-26*fs - 8.28932712308853e-20) - 1.95978343740697e-16) + 1.71698163100351e-15);
b2 = Dist*pow(fs,2)*(fs*(fs*(1.13784372686602e-23*fs + 2.43710793648737e-18) - 1.71699880081982e-14) + 1.21824638315983e-29) + pow(fs,2)*(fs*(fs*(4.55137490746407e-26*fs + 5.52621808205902e-20) - 3.91956687481394e-16) - 3.43396326200701e-15);
b3 = Dist*pow(fs,2)*(fs*(fs*(-1.13784372686602e-23*fs + 2.43710793648737e-18) + 1.71699880081982e-14) + 1.21824638315983e-29) + pow(fs,2)*(fs*(fs*(-4.55137490746407e-26*fs + 5.52621808205902e-20) + 3.91956687481394e-16) - 3.43396326200701e-15);
b4 = Dist*pow(fs,2)*(fs*(fs*(5.68921863433009e-24*fs - 3.65566190473105e-18) + 8.58499400409908e-15) - 6.09123191579915e-30) + pow(fs,2)*(fs*(fs*(2.27568745373204e-26*fs - 8.28932712308853e-20) + 1.95978343740697e-16) + 1.71698163100351e-15);
b5 = Dist*pow(fs,2)*(fs*(fs*(-1.13784372686602e-24*fs + 1.21855396824368e-18) - 8.58499400409908e-15) - 6.09123191579915e-30) + pow(fs,2)*(fs*(fs*(-4.55137490746407e-27*fs + 2.76310904102951e-20) - 1.95978343740697e-16) + 1.71698163100351e-15);
a0 = Dist*(fs*(fs*(fs*(fs*(4.09145205062379e-24*fs + 8.24212664514929e-21) + 3.17729560581312e-19) + 2.93619011633722e-18) + 9.77259192888297e-23) - 3.85750837043159e-38) + fs*(fs*(fs*(fs*(1.63658082024952e-26*fs + 8.18620095190564e-20) + 1.63752260202535e-16) + 4.18188856565759e-15) + 2.60543994858159e-14) + 8.67173312581635e-19;
a1 = Dist*(fs*(fs*(fs*(fs*(-2.0457260253119e-23*fs - 2.47263799354479e-20) - 3.17729560581312e-19) + 2.93619011633722e-18) + 2.93177757866489e-22) - 1.92875418521579e-37) + fs*(fs*(fs*(fs*(-8.18290410124758e-26*fs - 2.45586028557169e-19) - 1.63752260202535e-16) + 4.18188856565759e-15) + 7.81631984574476e-14) + 4.33586656290817e-18;
a2 = Dist*(fs*(fs*(fs*(fs*(4.09145205062379e-23*fs + 1.64842532902986e-20) - 6.35459121162625e-19) - 5.87238023267445e-18) + 1.95451838577659e-22) - 3.85750837043159e-37) + fs*(fs*(fs*(fs*(1.63658082024952e-25*fs + 1.63724019038113e-19) - 3.27504520405069e-16) - 8.36377713131518e-15) + 5.21087989716317e-14) + 8.67173312581635e-18;
a3 = Dist*(fs*(fs*(fs*(fs*(-4.09145205062379e-23*fs + 1.64842532902986e-20) + 6.35459121162625e-19) - 5.87238023267445e-18) - 1.95451838577659e-22) - 3.85750837043159e-37) + fs*(fs*(fs*(fs*(-1.63658082024952e-25*fs + 1.63724019038113e-19) + 3.27504520405069e-16) - 8.36377713131518e-15) - 5.21087989716317e-14) + 8.67173312581635e-18;
a4 = Dist*(fs*(fs*(fs*(fs*(2.0457260253119e-23*fs - 2.47263799354479e-20) + 3.17729560581312e-19) + 2.93619011633722e-18) - 2.93177757866489e-22) - 1.92875418521579e-37) + fs*(fs*(fs*(fs*(8.18290410124758e-26*fs - 2.45586028557169e-19) + 1.63752260202535e-16) + 4.18188856565759e-15) - 7.81631984574476e-14) + 4.33586656290817e-18;
a5 = Dist*(fs*(fs*(fs*(fs*(-4.09145205062379e-24*fs + 8.24212664514929e-21) - 3.17729560581312e-19) + 2.93619011633722e-18) - 9.77259192888297e-23) - 3.85750837043159e-38) + fs*(fs*(fs*(fs*(-1.63658082024952e-26*fs + 8.18620095190564e-20) - 1.63752260202535e-16) + 4.18188856565759e-15) - 2.60543994858159e-14) + 8.67173312581635e-19;
};
anti_denormal = pow(10,-20);
anti_denormal_ac = 1 - 1' : *(anti_denormal) : + ~ *(-1);
process = +(anti_denormal_ac) : p0 : p1 : p2;
|
414acd89463bdf7efc50beeca600407434f794d1f31639edd26fa99aedb161a0 | brummer10/LittleFly.lv2 | LittleFly.dsp |
/*******************************************************************************
**************************** File generated by *********************************
********************************************************************************
./build-plug.py -i LittleFly.sch -T --table_neg 1 -N -n LittleFly --build
*******************************************************************************/
// generated automatically
// DO NOT MODIFY!
declare id "littlefly";
declare name "LittleFly";
declare category "Extern";
declare shortname "LittleFly";
declare description "Overdrive Pedal";
import("stdfaust.lib");
/*******************************************************************************
* 1-dimensional function table for linear interpolation
*******************************************************************************/
rd = library("reducemaps.lib");
//-- Rdtable from waveform
rtable(table, r) = (table, int(r)):rdtable;
//-- Copy the sign of x to f
ccopysign(f, x) = ma.fabs(f) * sign(x);
//-- Get sign of value x
sign(x) = x<0, 1, -1 : select2;
//-- Check if value x is negative
fsignbit(x) = x<0;
//-- Get fractal part of value n
fractal(n) = n - int(n);
//-- Interpolate value between i and i+1 in table with fractal coefficient f.
interpolation(table, size, f, i) = select2(i<0,select2(i>size-2,
rtable(table, i)*(1-f) + rtable(table,i+1)*f, rtable(table, size-1)),
rtable(table, 0)) : table_gate(table);
//-- reduce dc-offset (noise) from table response for very low values
table_gate(table,x) = select2(ma.fabs(x):rd.maxn(4096)<ma.fabs(rtable(table, 1))*(0.12), x, x*x*x);
//-- Linear interpolation for value x in rdtable
circuit_response(table, low, high, step, size, x) =
interpolation(table, size, fractal(linindex(step, x)),
int(linindex(step, x))), x : ccopysign;
//-- Calculate linear table index for value x
linindex(step, x) = ma.fabs(x) * step;
//-- predefined filterbank
freq_split = fi.filterbank(3, (86.0,210.0,1200.0,6531.0));
/****************************************************************************************
* littlefly_table generated by DK/circ_table_gen.py -- do not modify manually
****************************************************************************************/
// variables used
// --sig_max 1.400000
// --table_div 1.000000
// --table_op 1.000000
littlefly_clip = circuit_response(littlefly_table, low, high, step, size) with{
low = 0;
high =0.204782;
step =142.143;
size =200;
littlefly_table = waveform {
0.000000000000,0.001897054068,0.007017360151,0.013671863929,0.020536805597,
0.027279298487,0.033776527970,0.040037354753,0.046070324603,0.051883678996,
0.057485365493,0.062883047817,0.068084115629,0.073095694000,0.077924652598,
0.082577614579,0.087060965201,0.091380860157,0.095543233636,0.099553806126,
0.103418091952,0.107141406567,0.110728873598,0.114185431654,0.117515840899,
0.120724689413,0.123816399318,0.126795232712,0.129665297381,0.132430552324,
0.135094813088,0.137661756902,0.140134927653,0.142517740668,0.144813487342,
0.147025339594,0.149156354173,0.151209476806,0.153187546204,0.155093297919,
0.156929368074,0.158698296953,0.160402532463,0.162044433477,0.163626273056,
0.165150241550,0.166618449601,0.168032931023,0.169395645592,0.170708481727,
0.171973259076,0.173191731017,0.174365587059,0.175496455158,0.176585903957,
0.177635444939,0.178646534501,0.179620575959,0.180558921474,0.181462873917,
0.182333688654,0.183172575282,0.183980699287,0.184759183653,0.185509110407,
0.186231522113,0.186927423301,0.187597781862,0.188243530373,0.188865567389,
0.189464758681,0.190041938426,0.190597910367,0.191133448912,0.191649300211,
0.192146183181,0.192624790499,0.193085789564,0.193529823410,0.193957511602,
0.194369451087,0.194766217020,0.195148363561,0.195516424637,0.195870914683,
0.196212329353,0.196541146201,0.196857825348,0.197162810111,0.197456527624,
0.197739389419,0.198011792005,0.198274117410,0.198526733711,0.198769995543,
0.199004244591,0.199229810062,0.199447009140,0.199656147424,0.199857519352,
0.200051408611,0.200238088525,0.200417822434,0.200590864063,0.200757457868,
0.200917839375,0.201072235510,0.201220864909,0.201363938223,0.201501658408,
0.201634221006,0.201761814418,0.201884620161,0.202002813125,0.202116561809,
0.202226028558,0.202331369785,0.202432736193,0.202530272978,0.202624120031,
0.202714412134,0.202801279147,0.202884846184,0.202965233790,0.203042558105,
0.203116931029,0.203188460371,0.203257250005,0.203323400009,0.203387006803,
0.203448163289,0.203506958973,0.203563480090,0.203617809728,0.203670027936,
0.203720211842,0.203768435755,0.203814771269,0.203859287364,0.203902050498,
0.203943124705,0.203982571676,0.204020450849,0.204056819493,0.204091732783,
0.204125243878,0.204157403998,0.204188262487,0.204217866892,0.204246263019,
0.204273495002,0.204299605363,0.204324635071,0.204348623598,0.204371608973,
0.204393627838,0.204414715494,0.204434905956,0.204454231991,0.204472725175,
0.204490415926,0.204507333554,0.204523506296,0.204538961359,0.204553724955,
0.204567822340,0.204581277845,0.204594114916,0.204606356139,0.204618023276,
0.204629137294,0.204639718396,0.204649786045,0.204659358993,0.204668455308,
0.204677092397,0.204685287032,0.204693055372,0.204700412986,0.204707374875,
0.204713955489,0.204720168755,0.204726028087,0.204731546411,0.204736736181,
0.204741609395,0.204746177614,0.204750451976,0.204754443212,0.204758161661,
0.204761617286,0.204764819684,0.204767778103,0.204770501451,0.204772998313,
0.204775276960,0.204777345359,0.204779211189,0.204780881847,0.204782364459
};
};
/****************************************************************************************
* littlefly_neg_table generated by DK/circ_table_gen.py -- do not modify manually
****************************************************************************************/
// variables used
// --sig_max -1.400000
// --table_div 1.000000
// --table_op 1.000000
littlefly_neg_clip = circuit_response(littlefly_neg_table, low, high, step, size) with{
low = 0;
high =-0.239189;
step =142.143;
size =200;
littlefly_neg_table = waveform {
0.000000000000,-0.001898005048,-0.007020570129,-0.013677549823,-0.020555997477,
-0.027408423200,-0.034158565856,-0.040771644041,-0.047229533412,-0.053522479567,
-0.059645502093,-0.065596570911,-0.071375579392,-0.076983720995,-0.082423089005,
-0.087696407952,-0.092806847081,-0.097757887177,-0.102553223348,-0.107196692780,
-0.111692220176,-0.116043776228,-0.120255345715,-0.124330902701,-0.128274391315,
-0.132089710820,-0.135780704009,-0.139351148250,-0.142804748632,-0.146145132776,
-0.149375847004,-0.152500353642,-0.155522029178,-0.158444163163,-0.161269957704,
-0.164002527442,-0.166644899928,-0.169200016316,-0.171670732331,-0.174059819445,
-0.176369966224,-0.178603779810,-0.180763787518,-0.182852438505,-0.184872105421,
-0.186825086327,-0.188713606534,-0.190539820262,-0.192305812534,-0.194013600978,
-0.195665137596,-0.197262310493,-0.198806945489,-0.200300807546,-0.201745601737,
-0.203142972822,-0.204494497875,-0.205800984505,-0.207061069189,-0.208274238272,
-0.209442233845,-0.210566733312,-0.211649351790,-0.212691644423,-0.213695108609,
-0.214661186143,-0.215591265283,-0.216486682737,-0.217348725577,-0.218178633085,
-0.218977598524,-0.219746770847,-0.220487256344,-0.221200120227,-0.221886388153,
-0.222547047694,-0.223183049749,-0.223795309911,-0.224384709772,-0.224952098189,
-0.225498292501,-0.226024079693,-0.226530217530,-0.227017435638,-0.227486436552,
-0.227937896719,-0.228372467466,-0.228790775937,-0.229193425989,-0.229580999053,
-0.229954054973,-0.230313132805,-0.230658751585,-0.230991411078,-0.231311592494,
-0.231619759169,-0.231916357239,-0.232201816272,-0.232476549885,-0.232740956336,
-0.232995419095,-0.233240307394,-0.233475976752,-0.233702769491,-0.233921015216,
-0.234131031298,-0.234333123320,-0.234527585520,-0.234714701209,-0.234894743179,
-0.235067974091,-0.235234646855,-0.235395004987,-0.235549282964,-0.235697706554,
-0.235840493143,-0.235977852043,-0.236109984796,-0.236237085458,-0.236359340883,
-0.236476930982,-0.236590028989,-0.236698801704,-0.236803409734,-0.236904007720,
-0.237000744565,-0.237093763639,-0.237183202991,-0.237269195542,-0.237351869279,
-0.237431347434,-0.237507748668,-0.237581187230,-0.237651773131,-0.237719612294,
-0.237784806712,-0.237847454589,-0.237907650481,-0.237965485436,-0.238021047120,
-0.238074419943,-0.238125685181,-0.238174921092,-0.238222203029,-0.238267603546,
-0.238311192504,-0.238353037169,-0.238393202309,-0.238431750287,-0.238468741152,
-0.238504232722,-0.238538280668,-0.238570938595,-0.238602258114,-0.238632288925,
-0.238661078878,-0.238688674049,-0.238715118802,-0.238740455853,-0.238764726333,
-0.238787969845,-0.238810224523,-0.238831527083,-0.238851912879,-0.238871415951,
-0.238890069076,-0.238907903814,-0.238924950552,-0.238941238551,-0.238956795983,
-0.238971649976,-0.238985826648,-0.238999351150,-0.239012247697,-0.239024539607,
-0.239036249330,-0.239047398483,-0.239058007882,-0.239068097568,-0.239077686838,
-0.239086794273,-0.239095437766,-0.239103634541,-0.239111401187,-0.239118753675,
-0.239125707382,-0.239132277116,-0.239138477134,-0.239144321165,-0.239149822426,
-0.239154993644,-0.239159847075,-0.239164394518,-0.239168647335,-0.239172616466,
-0.239176312444,-0.239179745411,-0.239182925133,-0.239185861014,-0.239188562107
};
};
/*******************************************************************************
* littlefly generated by dkbuiler from LittleFly.sch
*******************************************************************************/
p1 = pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0)) : littleflyclip with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
Volume = vslider("Volume[name:Volume][style:knob]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
b0 = Volume*pow(fs,2)*(9.59122077944672e-15*fs + 6.69516165427397e-16);
b1 = -1.91824415588934e-14*Volume*pow(fs,3);
b2 = -1.33903233085479e-15*Volume*pow(fs,2);
b3 = 1.91824415588934e-14*Volume*pow(fs,3);
b4 = Volume*pow(fs,2)*(-9.59122077944672e-15*fs + 6.69516165427397e-16);
a0 = fs*(fs*(fs*(1.81805047330593e-19*fs + 3.13076156727864e-16) + 1.21278288958878e-13) + 7.15960280649683e-13) + 8.2091625339262e-13;
a1 = fs*(pow(fs,2)*(-7.27220189322371e-19*fs - 6.26152313455728e-16) + 1.43192056129937e-12) + 3.28366501357048e-12;
a2 = pow(fs,2)*(1.09083028398356e-18*pow(fs,2) - 2.42556577917757e-13) + 4.92549752035572e-12;
a3 = fs*(pow(fs,2)*(-7.27220189322371e-19*fs + 6.26152313455728e-16) - 1.43192056129937e-12) + 3.28366501357048e-12;
a4 = fs*(fs*(fs*(1.81805047330593e-19*fs - 3.13076156727864e-16) + 1.21278288958878e-13) - 7.15960280649683e-13) + 8.2091625339262e-13;
};
littleflyp = _<: ba.if(fsignbit(_), littlefly_neg_clip, littlefly_clip) :>_ ;
littleflyclip = freq_split: ( littleflyp , littleflyp , littleflyp, littleflyp, littleflyp) :>_;
process = p1 ;
| https://raw.githubusercontent.com/brummer10/LittleFly.lv2/5f3e77afec2b29aff1765bd722d8704fcc305c5c/LittleFly/dsp/LittleFly.dsp | faust | ******************************************************************************
**************************** File generated by *********************************
********************************************************************************
./build-plug.py -i LittleFly.sch -T --table_neg 1 -N -n LittleFly --build
******************************************************************************
generated automatically
DO NOT MODIFY!
******************************************************************************
* 1-dimensional function table for linear interpolation
******************************************************************************
-- Rdtable from waveform
-- Copy the sign of x to f
-- Get sign of value x
-- Check if value x is negative
-- Get fractal part of value n
-- Interpolate value between i and i+1 in table with fractal coefficient f.
-- reduce dc-offset (noise) from table response for very low values
-- Linear interpolation for value x in rdtable
-- Calculate linear table index for value x
-- predefined filterbank
***************************************************************************************
* littlefly_table generated by DK/circ_table_gen.py -- do not modify manually
***************************************************************************************
variables used
--sig_max 1.400000
--table_div 1.000000
--table_op 1.000000
***************************************************************************************
* littlefly_neg_table generated by DK/circ_table_gen.py -- do not modify manually
***************************************************************************************
variables used
--sig_max -1.400000
--table_div 1.000000
--table_op 1.000000
******************************************************************************
* littlefly generated by dkbuiler from LittleFly.sch
****************************************************************************** |
declare id "littlefly";
declare name "LittleFly";
declare category "Extern";
declare shortname "LittleFly";
declare description "Overdrive Pedal";
import("stdfaust.lib");
rd = library("reducemaps.lib");
rtable(table, r) = (table, int(r)):rdtable;
ccopysign(f, x) = ma.fabs(f) * sign(x);
sign(x) = x<0, 1, -1 : select2;
fsignbit(x) = x<0;
fractal(n) = n - int(n);
interpolation(table, size, f, i) = select2(i<0,select2(i>size-2,
rtable(table, i)*(1-f) + rtable(table,i+1)*f, rtable(table, size-1)),
rtable(table, 0)) : table_gate(table);
table_gate(table,x) = select2(ma.fabs(x):rd.maxn(4096)<ma.fabs(rtable(table, 1))*(0.12), x, x*x*x);
circuit_response(table, low, high, step, size, x) =
interpolation(table, size, fractal(linindex(step, x)),
int(linindex(step, x))), x : ccopysign;
linindex(step, x) = ma.fabs(x) * step;
freq_split = fi.filterbank(3, (86.0,210.0,1200.0,6531.0));
littlefly_clip = circuit_response(littlefly_table, low, high, step, size) with{
low = 0;
high =0.204782;
step =142.143;
size =200;
littlefly_table = waveform {
0.000000000000,0.001897054068,0.007017360151,0.013671863929,0.020536805597,
0.027279298487,0.033776527970,0.040037354753,0.046070324603,0.051883678996,
0.057485365493,0.062883047817,0.068084115629,0.073095694000,0.077924652598,
0.082577614579,0.087060965201,0.091380860157,0.095543233636,0.099553806126,
0.103418091952,0.107141406567,0.110728873598,0.114185431654,0.117515840899,
0.120724689413,0.123816399318,0.126795232712,0.129665297381,0.132430552324,
0.135094813088,0.137661756902,0.140134927653,0.142517740668,0.144813487342,
0.147025339594,0.149156354173,0.151209476806,0.153187546204,0.155093297919,
0.156929368074,0.158698296953,0.160402532463,0.162044433477,0.163626273056,
0.165150241550,0.166618449601,0.168032931023,0.169395645592,0.170708481727,
0.171973259076,0.173191731017,0.174365587059,0.175496455158,0.176585903957,
0.177635444939,0.178646534501,0.179620575959,0.180558921474,0.181462873917,
0.182333688654,0.183172575282,0.183980699287,0.184759183653,0.185509110407,
0.186231522113,0.186927423301,0.187597781862,0.188243530373,0.188865567389,
0.189464758681,0.190041938426,0.190597910367,0.191133448912,0.191649300211,
0.192146183181,0.192624790499,0.193085789564,0.193529823410,0.193957511602,
0.194369451087,0.194766217020,0.195148363561,0.195516424637,0.195870914683,
0.196212329353,0.196541146201,0.196857825348,0.197162810111,0.197456527624,
0.197739389419,0.198011792005,0.198274117410,0.198526733711,0.198769995543,
0.199004244591,0.199229810062,0.199447009140,0.199656147424,0.199857519352,
0.200051408611,0.200238088525,0.200417822434,0.200590864063,0.200757457868,
0.200917839375,0.201072235510,0.201220864909,0.201363938223,0.201501658408,
0.201634221006,0.201761814418,0.201884620161,0.202002813125,0.202116561809,
0.202226028558,0.202331369785,0.202432736193,0.202530272978,0.202624120031,
0.202714412134,0.202801279147,0.202884846184,0.202965233790,0.203042558105,
0.203116931029,0.203188460371,0.203257250005,0.203323400009,0.203387006803,
0.203448163289,0.203506958973,0.203563480090,0.203617809728,0.203670027936,
0.203720211842,0.203768435755,0.203814771269,0.203859287364,0.203902050498,
0.203943124705,0.203982571676,0.204020450849,0.204056819493,0.204091732783,
0.204125243878,0.204157403998,0.204188262487,0.204217866892,0.204246263019,
0.204273495002,0.204299605363,0.204324635071,0.204348623598,0.204371608973,
0.204393627838,0.204414715494,0.204434905956,0.204454231991,0.204472725175,
0.204490415926,0.204507333554,0.204523506296,0.204538961359,0.204553724955,
0.204567822340,0.204581277845,0.204594114916,0.204606356139,0.204618023276,
0.204629137294,0.204639718396,0.204649786045,0.204659358993,0.204668455308,
0.204677092397,0.204685287032,0.204693055372,0.204700412986,0.204707374875,
0.204713955489,0.204720168755,0.204726028087,0.204731546411,0.204736736181,
0.204741609395,0.204746177614,0.204750451976,0.204754443212,0.204758161661,
0.204761617286,0.204764819684,0.204767778103,0.204770501451,0.204772998313,
0.204775276960,0.204777345359,0.204779211189,0.204780881847,0.204782364459
};
};
littlefly_neg_clip = circuit_response(littlefly_neg_table, low, high, step, size) with{
low = 0;
high =-0.239189;
step =142.143;
size =200;
littlefly_neg_table = waveform {
0.000000000000,-0.001898005048,-0.007020570129,-0.013677549823,-0.020555997477,
-0.027408423200,-0.034158565856,-0.040771644041,-0.047229533412,-0.053522479567,
-0.059645502093,-0.065596570911,-0.071375579392,-0.076983720995,-0.082423089005,
-0.087696407952,-0.092806847081,-0.097757887177,-0.102553223348,-0.107196692780,
-0.111692220176,-0.116043776228,-0.120255345715,-0.124330902701,-0.128274391315,
-0.132089710820,-0.135780704009,-0.139351148250,-0.142804748632,-0.146145132776,
-0.149375847004,-0.152500353642,-0.155522029178,-0.158444163163,-0.161269957704,
-0.164002527442,-0.166644899928,-0.169200016316,-0.171670732331,-0.174059819445,
-0.176369966224,-0.178603779810,-0.180763787518,-0.182852438505,-0.184872105421,
-0.186825086327,-0.188713606534,-0.190539820262,-0.192305812534,-0.194013600978,
-0.195665137596,-0.197262310493,-0.198806945489,-0.200300807546,-0.201745601737,
-0.203142972822,-0.204494497875,-0.205800984505,-0.207061069189,-0.208274238272,
-0.209442233845,-0.210566733312,-0.211649351790,-0.212691644423,-0.213695108609,
-0.214661186143,-0.215591265283,-0.216486682737,-0.217348725577,-0.218178633085,
-0.218977598524,-0.219746770847,-0.220487256344,-0.221200120227,-0.221886388153,
-0.222547047694,-0.223183049749,-0.223795309911,-0.224384709772,-0.224952098189,
-0.225498292501,-0.226024079693,-0.226530217530,-0.227017435638,-0.227486436552,
-0.227937896719,-0.228372467466,-0.228790775937,-0.229193425989,-0.229580999053,
-0.229954054973,-0.230313132805,-0.230658751585,-0.230991411078,-0.231311592494,
-0.231619759169,-0.231916357239,-0.232201816272,-0.232476549885,-0.232740956336,
-0.232995419095,-0.233240307394,-0.233475976752,-0.233702769491,-0.233921015216,
-0.234131031298,-0.234333123320,-0.234527585520,-0.234714701209,-0.234894743179,
-0.235067974091,-0.235234646855,-0.235395004987,-0.235549282964,-0.235697706554,
-0.235840493143,-0.235977852043,-0.236109984796,-0.236237085458,-0.236359340883,
-0.236476930982,-0.236590028989,-0.236698801704,-0.236803409734,-0.236904007720,
-0.237000744565,-0.237093763639,-0.237183202991,-0.237269195542,-0.237351869279,
-0.237431347434,-0.237507748668,-0.237581187230,-0.237651773131,-0.237719612294,
-0.237784806712,-0.237847454589,-0.237907650481,-0.237965485436,-0.238021047120,
-0.238074419943,-0.238125685181,-0.238174921092,-0.238222203029,-0.238267603546,
-0.238311192504,-0.238353037169,-0.238393202309,-0.238431750287,-0.238468741152,
-0.238504232722,-0.238538280668,-0.238570938595,-0.238602258114,-0.238632288925,
-0.238661078878,-0.238688674049,-0.238715118802,-0.238740455853,-0.238764726333,
-0.238787969845,-0.238810224523,-0.238831527083,-0.238851912879,-0.238871415951,
-0.238890069076,-0.238907903814,-0.238924950552,-0.238941238551,-0.238956795983,
-0.238971649976,-0.238985826648,-0.238999351150,-0.239012247697,-0.239024539607,
-0.239036249330,-0.239047398483,-0.239058007882,-0.239068097568,-0.239077686838,
-0.239086794273,-0.239095437766,-0.239103634541,-0.239111401187,-0.239118753675,
-0.239125707382,-0.239132277116,-0.239138477134,-0.239144321165,-0.239149822426,
-0.239154993644,-0.239159847075,-0.239164394518,-0.239168647335,-0.239172616466,
-0.239176312444,-0.239179745411,-0.239182925133,-0.239185861014,-0.239188562107
};
};
p1 = pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0)) : littleflyclip with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
Volume = vslider("Volume[name:Volume][style:knob]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
b0 = Volume*pow(fs,2)*(9.59122077944672e-15*fs + 6.69516165427397e-16);
b1 = -1.91824415588934e-14*Volume*pow(fs,3);
b2 = -1.33903233085479e-15*Volume*pow(fs,2);
b3 = 1.91824415588934e-14*Volume*pow(fs,3);
b4 = Volume*pow(fs,2)*(-9.59122077944672e-15*fs + 6.69516165427397e-16);
a0 = fs*(fs*(fs*(1.81805047330593e-19*fs + 3.13076156727864e-16) + 1.21278288958878e-13) + 7.15960280649683e-13) + 8.2091625339262e-13;
a1 = fs*(pow(fs,2)*(-7.27220189322371e-19*fs - 6.26152313455728e-16) + 1.43192056129937e-12) + 3.28366501357048e-12;
a2 = pow(fs,2)*(1.09083028398356e-18*pow(fs,2) - 2.42556577917757e-13) + 4.92549752035572e-12;
a3 = fs*(pow(fs,2)*(-7.27220189322371e-19*fs + 6.26152313455728e-16) - 1.43192056129937e-12) + 3.28366501357048e-12;
a4 = fs*(fs*(fs*(1.81805047330593e-19*fs - 3.13076156727864e-16) + 1.21278288958878e-13) - 7.15960280649683e-13) + 8.2091625339262e-13;
};
littleflyp = _<: ba.if(fsignbit(_), littlefly_neg_clip, littlefly_clip) :>_ ;
littleflyclip = freq_split: ( littleflyp , littleflyp , littleflyp, littleflyp, littleflyp) :>_;
process = p1 ;
|
ed7885e9cdfdc2a5772a3bdd56c195cdf904a9965c012d1a24bdfbd7172a5381 | brummer10/guitarix | phaser.dsp | declare id "phaser";
declare name "Phaser";
declare category "Modulation";
//phaser taken from effect.lib
// by Julius O. Smith III
import("stdfaust.lib");
vibrato_mono(sections,phase01,fb,width,frqmin,fratio,frqmax,speed) =
(+ : seq(i,sections,ap2p(R,th(i)))) ~ *(fb)
with {
// fi.tf2 = component("filter.lib").fi.tf2;
// second-order resonant digital allpass given fi.pole radius and angle:
ap2p(R,th) = fi.tf2(a2,a1,1,a1,a2) with {
a2 = R^2;
a1 = -2*R*cos(th);
};
// ma.SR = component("music.lib").ma.SR;
R = exp(-pi*width/ma.SR);
cososc = os.oscrc;
sinosc = os.oscrs;
osc1 = cososc(speed) * phase01 + sinosc(speed) * (1-phase01);
lfo = (1-osc1)/2; // in [0,1]
pi = 4*atan(1);
thmin = 2*pi*frqmin/ma.SR;
thmax = 2*pi*frqmax/ma.SR;
th1 = thmin + (thmax-thmin)*lfo;
th(i) = (fratio^(i+1))*th1;
};
phaser_mono(Notches,phase01,width,frqmin,fratio,frqmax,speed,depth,fb,invert) =
_ <: *(g1) + g2mi*vibrato_mono(Notches,phase01,fb,width,frqmin,fratio,frqmax,speed)
with { // depth=0 => direct-signal only
g1 = 1-depth/2; // depth=1 => phaser mode (equal sum of direct and allpass-pm.chain)
g2 = depth/2; // depth=2 => vibrato mode (allpass-pm.chain signal only)
g2mi = select2(invert,g2,-g2); // inversion negates the allpass-pm.chain signal
};
phaser_stereo(Notches,width,frqmin,fratio,frqmax,speed,depth,fb,invert)
= phaser_mono(Notches,0,width,frqmin,fratio,frqmax,speed,depth,fb,invert),
phaser_mono(Notches,1,width,frqmin,fratio,frqmax,speed,depth,fb,invert);
phaser_stereogx = *(level),*(level) : phaser_stereo(Notches,width,frqmin,fratio,frqmax,freq,mdepth,fb,invert)
with {
Notches = 4;
//freq = hslider("Speed [unit:Hz] ", 0.5, 0, 10, 0.01);
freq = hslider("lfobpm[name:Speed (bpm)][tooltip:Speed in Beats per Minute]",30,24,360,1)/60;
depth = hslider("depth[name:Depth]", 1, 0, 1, 0.01);
fb = hslider("feedback gain[name:Feedback]", 0, 0, 1, 0.01);
width = hslider("Notch width [name:Width][unit:Hz]", 1000, 10, 5000, 1);
vibr = checkbox("VibratoMode[enum:direct | vibrato]");
frqmin = hslider("MinNotch1Freq [name:Freq][unit:Hz] ", 100, 20, 5000, 1);
frqmax = hslider("MaxNotch1Freq [name:Max Freq][unit:Hz] ", 800, 20, 10000, 1) : max(frqmin);
fratio = hslider("NotchFreq[name:Min Freq][unit:Hz]", 1.5, 1.1, 4, 0.01);
mdepth = select2(vibr,depth,2);
invert = checkbox("invert[enum:linear|invert]");
level = hslider("level [name:Level][unit:dB]", 0, -60, 10, 0.1) : ba.db2linear;
};
process = phaser_stereogx;
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/phaser.dsp | faust | phaser taken from effect.lib
by Julius O. Smith III
fi.tf2 = component("filter.lib").fi.tf2;
second-order resonant digital allpass given fi.pole radius and angle:
ma.SR = component("music.lib").ma.SR;
in [0,1]
depth=0 => direct-signal only
depth=1 => phaser mode (equal sum of direct and allpass-pm.chain)
depth=2 => vibrato mode (allpass-pm.chain signal only)
inversion negates the allpass-pm.chain signal
freq = hslider("Speed [unit:Hz] ", 0.5, 0, 10, 0.01); | declare id "phaser";
declare name "Phaser";
declare category "Modulation";
import("stdfaust.lib");
vibrato_mono(sections,phase01,fb,width,frqmin,fratio,frqmax,speed) =
(+ : seq(i,sections,ap2p(R,th(i)))) ~ *(fb)
with {
ap2p(R,th) = fi.tf2(a2,a1,1,a1,a2) with {
a2 = R^2;
a1 = -2*R*cos(th);
};
R = exp(-pi*width/ma.SR);
cososc = os.oscrc;
sinosc = os.oscrs;
osc1 = cososc(speed) * phase01 + sinosc(speed) * (1-phase01);
pi = 4*atan(1);
thmin = 2*pi*frqmin/ma.SR;
thmax = 2*pi*frqmax/ma.SR;
th1 = thmin + (thmax-thmin)*lfo;
th(i) = (fratio^(i+1))*th1;
};
phaser_mono(Notches,phase01,width,frqmin,fratio,frqmax,speed,depth,fb,invert) =
_ <: *(g1) + g2mi*vibrato_mono(Notches,phase01,fb,width,frqmin,fratio,frqmax,speed)
};
phaser_stereo(Notches,width,frqmin,fratio,frqmax,speed,depth,fb,invert)
= phaser_mono(Notches,0,width,frqmin,fratio,frqmax,speed,depth,fb,invert),
phaser_mono(Notches,1,width,frqmin,fratio,frqmax,speed,depth,fb,invert);
phaser_stereogx = *(level),*(level) : phaser_stereo(Notches,width,frqmin,fratio,frqmax,freq,mdepth,fb,invert)
with {
Notches = 4;
freq = hslider("lfobpm[name:Speed (bpm)][tooltip:Speed in Beats per Minute]",30,24,360,1)/60;
depth = hslider("depth[name:Depth]", 1, 0, 1, 0.01);
fb = hslider("feedback gain[name:Feedback]", 0, 0, 1, 0.01);
width = hslider("Notch width [name:Width][unit:Hz]", 1000, 10, 5000, 1);
vibr = checkbox("VibratoMode[enum:direct | vibrato]");
frqmin = hslider("MinNotch1Freq [name:Freq][unit:Hz] ", 100, 20, 5000, 1);
frqmax = hslider("MaxNotch1Freq [name:Max Freq][unit:Hz] ", 800, 20, 10000, 1) : max(frqmin);
fratio = hslider("NotchFreq[name:Min Freq][unit:Hz]", 1.5, 1.1, 4, 0.01);
mdepth = select2(vibr,depth,2);
invert = checkbox("invert[enum:linear|invert]");
level = hslider("level [name:Level][unit:dB]", 0, -60, 10, 0.1) : ba.db2linear;
};
process = phaser_stereogx;
|
d61c68e6b940e876820d82f05c04162d22e23b6ddba40589a133a12048a450a0 | brummer10/guitarix | preampstereo.dsp | declare id "RedeyePreStereo";
declare name "RedeyePreStereo";
import("stdfaust.lib");
import("guitarix.lib");
// Using guitarix tubes to create a simple line stage emulation stereo
//
//stage1 has approx 3.2dB gain
//stage2 has -10.7dB gain
stage1adjust = *( -3.2:ba.db2linear);
stage2adjust = *( 10.7:ba.db2linear);
stage1 = tubestage(TB_12AX7_68k,40.0,1500.0,1.5025):stage1adjust;
stage2 = tubestage(TB_12AX7_68k,20.0,1500.0,1.4925):stage1adjust ;
// We now have untiy gain stages which makes feedback easier to apply consistently
// And measure freq response flat up tpo around 19K then slow rolloff
// Feedback :
// Fror some reason what works here causes trouble in LV2 plugin ?
// Basically we have a peak eq around 17-18k when feedback applied
// Could this be phase shifts caused by filters in feedback loop?
level = vslider("Feedback[alias][style:knob]",-12,-75,-3,0.1):ba.db2linear:smoothi(0.999) ;
// This could be a ba.selector :
// Peak_EQ at 2500Hz = guitar presence
// High shelf at 1500Hz = Alternative Guitar
// High shelf at 2500Hz = Studio presence/air
//guitar = fi.peak_eq_cq( -presence, 2500, 6.0 );
//guitar2 = fi.high_shelf( -presence, 1500 );
//studio = fi.high_shelf( -presence, 2500 );
presence_filter = fi.high_shelf( -presence, 1500 );
lineamp = stage1:stage2 ;
input = vslider("Input[alias][style:knob]",0,-20,20,0.1):ba.db2linear:smoothi(0.999) ;
output = vslider("Output[alias][style:knob]",0,-20,20,0.1) :ba.db2linear:smoothi(0.999);
// With the shelf filter no response after 18dB only gives 4dB boost
//presence = vslider("Presence[alias][style:knob]",0,0,10,0.1)/10: smoothi(0.999):*(24);
presence = vslider("Presence[alias][style:knob]",0,0,10,0.1)/10:smoothi(0.999):*(24);
// This needs to be sorted so that minimum is lowest but not off
// At poresent basically - 2.0 so we could make 1+1
// Drive in db -12db->+12dB
drive = vslider("Drive[alias][style:knob]",0.0,-15.0,15.0,0.1):ba.db2linear:smoothi(0.999);
resonance = vslider("Resonance[alias][style:knob]",0,0,10,0.1)/10:smoothi(0.999):*(24);
// Does altering position of level affect strength of filters
//feedback = hgroup( "Processing", *(level):presence_filter:fi.low_shelf( -resonance,750):*(-1));
feedback = hgroup( "Processing",fi.low_shelf( -resonance,750):presence_filter:*(level):*(-1));
//channel =hgroup("Input", *(input)):hgroup("Tube",*(1.0+drive)):(+:lineamp)~ feedback:hgroup("Output",fi.lowpass( 1, 15000 ) :*(output));
channel =hgroup("Input", *(input)):hgroup("Tube",*(drive)):
(+:lineamp)~feedback:hgroup("Output",fi.lowpass( 1, 18000 ) :*(output));
process =channel,channel ;
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/preampstereo.dsp | faust | Using guitarix tubes to create a simple line stage emulation stereo
stage1 has approx 3.2dB gain
stage2 has -10.7dB gain
We now have untiy gain stages which makes feedback easier to apply consistently
And measure freq response flat up tpo around 19K then slow rolloff
Feedback :
Fror some reason what works here causes trouble in LV2 plugin ?
Basically we have a peak eq around 17-18k when feedback applied
Could this be phase shifts caused by filters in feedback loop?
This could be a ba.selector :
Peak_EQ at 2500Hz = guitar presence
High shelf at 1500Hz = Alternative Guitar
High shelf at 2500Hz = Studio presence/air
guitar = fi.peak_eq_cq( -presence, 2500, 6.0 );
guitar2 = fi.high_shelf( -presence, 1500 );
studio = fi.high_shelf( -presence, 2500 );
With the shelf filter no response after 18dB only gives 4dB boost
presence = vslider("Presence[alias][style:knob]",0,0,10,0.1)/10: smoothi(0.999):*(24);
This needs to be sorted so that minimum is lowest but not off
At poresent basically - 2.0 so we could make 1+1
Drive in db -12db->+12dB
Does altering position of level affect strength of filters
feedback = hgroup( "Processing", *(level):presence_filter:fi.low_shelf( -resonance,750):*(-1));
channel =hgroup("Input", *(input)):hgroup("Tube",*(1.0+drive)):(+:lineamp)~ feedback:hgroup("Output",fi.lowpass( 1, 15000 ) :*(output)); | declare id "RedeyePreStereo";
declare name "RedeyePreStereo";
import("stdfaust.lib");
import("guitarix.lib");
stage1adjust = *( -3.2:ba.db2linear);
stage2adjust = *( 10.7:ba.db2linear);
stage1 = tubestage(TB_12AX7_68k,40.0,1500.0,1.5025):stage1adjust;
stage2 = tubestage(TB_12AX7_68k,20.0,1500.0,1.4925):stage1adjust ;
level = vslider("Feedback[alias][style:knob]",-12,-75,-3,0.1):ba.db2linear:smoothi(0.999) ;
presence_filter = fi.high_shelf( -presence, 1500 );
lineamp = stage1:stage2 ;
input = vslider("Input[alias][style:knob]",0,-20,20,0.1):ba.db2linear:smoothi(0.999) ;
output = vslider("Output[alias][style:knob]",0,-20,20,0.1) :ba.db2linear:smoothi(0.999);
presence = vslider("Presence[alias][style:knob]",0,0,10,0.1)/10:smoothi(0.999):*(24);
drive = vslider("Drive[alias][style:knob]",0.0,-15.0,15.0,0.1):ba.db2linear:smoothi(0.999);
resonance = vslider("Resonance[alias][style:knob]",0,0,10,0.1)/10:smoothi(0.999):*(24);
feedback = hgroup( "Processing",fi.low_shelf( -resonance,750):presence_filter:*(level):*(-1));
channel =hgroup("Input", *(input)):hgroup("Tube",*(drive)):
(+:lineamp)~feedback:hgroup("Output",fi.lowpass( 1, 18000 ) :*(output));
process =channel,channel ;
|
49adc63a5a95eca43eddbbfbc96b7c4eeb7ea60f3d38891db7ebe62c79d61e83 | brummer10/guitarix | hat_closed.dsp | import("stdfaust.lib");
// Port from SuperCollider (SC) to Faust of SynthDef \SOShat in
// <SuperCollider>/examples/demonstrations/DrumSynths.scd
// e.g., /usr/local/share/SuperCollider/examples/demonstrations/DrumSynths.scd
// on Linux
// based on a Sound-on-Sound 'synth secrets' tutorial:
// http://www.soundonsound.com/sos/Jun02/articles/synthsecrets0602.asp
//https://github.com/josmithiii/faust-jos/tree/master/percussion
pi = ma.PI;
decay(n,x) = x - (x>0.0)/n;
release(n) = + ~ decay(n);
envgate(dur,trigger) = trigger : release(int(dur*float(ma.SR))) : >(0.0);
adsr(a,d,s,r,t) = env ~ (_,_) : (!,_) // the 2 'state' signals are fed back
with {
env (p2,y) =
(t>0) & (p2|(y>=1)), // p2 = decay-sustain phase
(y + p1*u - (p2&(y>s))*v*y - p3*w*y) // y = envelop signal
*((p3==0)|(y>=eps)) // cut off tails to prevent denormals
with {
p1 = (p2==0) & (t>0) & (y<1); // p1 = attack phase
p3 = (t<=0) & (y>0); // p3 = release phase
// #samples in attack, decay, release, must be >0
na = ma.SR*a+(a==0.0); nd = ma.SR*d+(d==0.0); nr = ma.SR*r+(r==0.0);
// correct zero sustain level
z = s+(s==0.0)*ba.db2linear(-60);
// attack, decay and (-60dB) release rates
u = 1/na; v = 1-pow(z, 1/nd); w = 1-1/pow(z*ba.db2linear(60), 1/nr);
// values below this threshold are considered zero in the release phase
eps = ba.db2linear(-120);
};
};
perc(att,rel,trigger) = adsr(att,0,1.0,rel,envgate(att,trigger));
pmosc(carfreq,modfreq,index) = os.oscrs(carfreq + (index*modfreq)
* os.oscrs(modfreq));
line(start,end,dur,trigger) = trigger : release(int(dur*float(ma.SR)))
: *(start-end)+end;
lpf(freq) = fi.lowpass(3,freq);
hpf(freq) = fi.highpass(3,freq);
bpf(freq, rq) = fi.tf2(1.0,0,-1.0,-2.0*R*cos(theta),R^2) with {
theta = 2.0*pi*freq/ma.SR;
R = -pi*freq*rq/ma.SR;
};
pulse0p5(freq) = os.square(freq); // phase 0, duty cycle 0.5
gate = checkbox("gate [nomidi:no][alias]");
ampdb = vslider("Gain [tooltip: Volume level in decibels]",-20,-60,40,0.1);
amp = ampdb : si.smooth(0.999) : ba.db2linear;
freq = 1600.0;
sustain = 0.01;
//freq = 6000; // orig value
// sustain = 0.1; // orig value
trigger = gate > gate';
root_cymbal_square = pulse0p5(freq);
root_cymbal = root_cymbal_square <:
pmosc(freq*1.34, 310.0/1.3) +
pmosc(freq*2.405, 26.0/0.5) +
pmosc(freq*3.09, 11.0/3.4) +
pmosc(freq*1.309, 0.72772);
initial_bpf_contour = line(15000, 9000, 0.1, trigger);
initial_env = perc(0.005, 0.1, trigger);
initial_bpf = root_cymbal : bpf(initial_bpf_contour,1.0) * initial_env;
body_env = sqrt(perc(0.005, sustain, trigger));
body_hpf = root_cymbal : hpf(line(9000, 12000, sustain, trigger))
* body_env;
cymbal_mix = (initial_bpf + body_hpf) * amp;
process = cymbal_mix;
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/hat_closed.dsp | faust | Port from SuperCollider (SC) to Faust of SynthDef \SOShat in
<SuperCollider>/examples/demonstrations/DrumSynths.scd
e.g., /usr/local/share/SuperCollider/examples/demonstrations/DrumSynths.scd
on Linux
based on a Sound-on-Sound 'synth secrets' tutorial:
http://www.soundonsound.com/sos/Jun02/articles/synthsecrets0602.asp
https://github.com/josmithiii/faust-jos/tree/master/percussion
the 2 'state' signals are fed back
p2 = decay-sustain phase
y = envelop signal
cut off tails to prevent denormals
p1 = attack phase
p3 = release phase
#samples in attack, decay, release, must be >0
correct zero sustain level
attack, decay and (-60dB) release rates
values below this threshold are considered zero in the release phase
phase 0, duty cycle 0.5
freq = 6000; // orig value
sustain = 0.1; // orig value | import("stdfaust.lib");
pi = ma.PI;
decay(n,x) = x - (x>0.0)/n;
release(n) = + ~ decay(n);
envgate(dur,trigger) = trigger : release(int(dur*float(ma.SR))) : >(0.0);
with {
env (p2,y) =
with {
na = ma.SR*a+(a==0.0); nd = ma.SR*d+(d==0.0); nr = ma.SR*r+(r==0.0);
z = s+(s==0.0)*ba.db2linear(-60);
u = 1/na; v = 1-pow(z, 1/nd); w = 1-1/pow(z*ba.db2linear(60), 1/nr);
eps = ba.db2linear(-120);
};
};
perc(att,rel,trigger) = adsr(att,0,1.0,rel,envgate(att,trigger));
pmosc(carfreq,modfreq,index) = os.oscrs(carfreq + (index*modfreq)
* os.oscrs(modfreq));
line(start,end,dur,trigger) = trigger : release(int(dur*float(ma.SR)))
: *(start-end)+end;
lpf(freq) = fi.lowpass(3,freq);
hpf(freq) = fi.highpass(3,freq);
bpf(freq, rq) = fi.tf2(1.0,0,-1.0,-2.0*R*cos(theta),R^2) with {
theta = 2.0*pi*freq/ma.SR;
R = -pi*freq*rq/ma.SR;
};
gate = checkbox("gate [nomidi:no][alias]");
ampdb = vslider("Gain [tooltip: Volume level in decibels]",-20,-60,40,0.1);
amp = ampdb : si.smooth(0.999) : ba.db2linear;
freq = 1600.0;
sustain = 0.01;
trigger = gate > gate';
root_cymbal_square = pulse0p5(freq);
root_cymbal = root_cymbal_square <:
pmosc(freq*1.34, 310.0/1.3) +
pmosc(freq*2.405, 26.0/0.5) +
pmosc(freq*3.09, 11.0/3.4) +
pmosc(freq*1.309, 0.72772);
initial_bpf_contour = line(15000, 9000, 0.1, trigger);
initial_env = perc(0.005, 0.1, trigger);
initial_bpf = root_cymbal : bpf(initial_bpf_contour,1.0) * initial_env;
body_env = sqrt(perc(0.005, sustain, trigger));
body_hpf = root_cymbal : hpf(line(9000, 12000, sustain, trigger))
* body_env;
cymbal_mix = (initial_bpf + body_hpf) * amp;
process = cymbal_mix;
|
9ee89784edc7a6dd97b318704406728cacc170dc23a6253e883335598b72d463 | brummer10/guitarix | preampmono.dsp | declare id "RedeyePreMono";
declare name "RedeyePreMono";
import("stdfaust.lib");
import("guitarix.lib");
// Using guitarix tubes to create a simple line stage emulation stereo
//
//stage1 has approx 3.2dB gain
//stage2 has -10.7dB gain
stage1adjust = *( -3.2:ba.db2linear);
stage2adjust = *( 10.7:ba.db2linear);
stage1 = tubestage(TB_12AX7_68k,40.0,1500.0,1.5025):stage1adjust;
stage2 = tubestage(TB_12AX7_68k,20.0,1500.0,1.4925):stage1adjust ;
// We now have untiy gain stages which makes feedback easier to apply consistently
// And measure freq response flat up tpo around 19K then slow rolloff
// Feedback :
// Fror some reason what works here causes trouble in LV2 plugin ?
// Basically we have a peak eq around 17-18k when feedback applied
// Could this be phase shifts caused by filters in feedback loop?
level = vslider("Feedback[alias][style:knob]",-12,-75,-3,0.1):ba.db2linear:smoothi(0.999) ;
// This could be a ba.selector :
// Peak_EQ at 2500Hz = guitar presence
// High shelf at 1500Hz = Alternative Guitar
// High shelf at 2500Hz = Studio presence/air
//guitar = fi.peak_eq_cq( -presence, 2500, 6.0 );
//guitar2 = fi.high_shelf( -presence, 1500 );
//studio = fi.high_shelf( -presence, 2500 );
presence_filter = fi.high_shelf( -presence, 1500 );
lineamp = stage1:stage2 ;
input = vslider("Input[alias][style:knob]",0,-20,20,0.1):ba.db2linear:smoothi(0.999) ;
output = vslider("Output[alias][style:knob]",0,-20,20,0.1) :ba.db2linear:smoothi(0.999);
// With the shelf filter no response after 18dB only gives 4dB boost
//presence = vslider("Presence[alias][style:knob]",0,0,10,0.1)/10: smoothi(0.999):*(24);
presence = vslider("Presence[alias][style:knob]",0,0,10,0.1)/10:smoothi(0.999):*(24);
// This needs to be sorted so that minimum is lowest but not off
// At present basically - 2.0 so we could make 1+1
// Drive in db -12db->+12dB
drive = vslider("Drive[alias][style:knob]",0.0,-15.0,15.0,0.1):ba.db2linear:smoothi(0.999);
resonance = vslider("Resonance[alias][style:knob]",0,0,10,0.1)/10:smoothi(0.999):*(24);
// Does altering position of level affect strength of filters
//feedback = hgroup( "Processing", *(level):presence_filter:fi.low_shelf( -resonance,750):*(-1));
feedback = hgroup( "Processing",fi.low_shelf( -resonance,480):presence_filter:*(level):*(-1));
//channel =hgroup("Input", *(input)):hgroup("Tube",*(1.0+drive)):(+:lineamp)~ feedback:hgroup("Output",fi.lowpass( 1, 15000 ) :*(output));
channel =hgroup("Input", *(input)):hgroup("Tube",*(drive)):
(+:lineamp)~feedback:hgroup("Output",fi.lowpass( 1, 18000 ) :*(output));
process = channel ;
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/preampmono.dsp | faust | Using guitarix tubes to create a simple line stage emulation stereo
stage1 has approx 3.2dB gain
stage2 has -10.7dB gain
We now have untiy gain stages which makes feedback easier to apply consistently
And measure freq response flat up tpo around 19K then slow rolloff
Feedback :
Fror some reason what works here causes trouble in LV2 plugin ?
Basically we have a peak eq around 17-18k when feedback applied
Could this be phase shifts caused by filters in feedback loop?
This could be a ba.selector :
Peak_EQ at 2500Hz = guitar presence
High shelf at 1500Hz = Alternative Guitar
High shelf at 2500Hz = Studio presence/air
guitar = fi.peak_eq_cq( -presence, 2500, 6.0 );
guitar2 = fi.high_shelf( -presence, 1500 );
studio = fi.high_shelf( -presence, 2500 );
With the shelf filter no response after 18dB only gives 4dB boost
presence = vslider("Presence[alias][style:knob]",0,0,10,0.1)/10: smoothi(0.999):*(24);
This needs to be sorted so that minimum is lowest but not off
At present basically - 2.0 so we could make 1+1
Drive in db -12db->+12dB
Does altering position of level affect strength of filters
feedback = hgroup( "Processing", *(level):presence_filter:fi.low_shelf( -resonance,750):*(-1));
channel =hgroup("Input", *(input)):hgroup("Tube",*(1.0+drive)):(+:lineamp)~ feedback:hgroup("Output",fi.lowpass( 1, 15000 ) :*(output)); | declare id "RedeyePreMono";
declare name "RedeyePreMono";
import("stdfaust.lib");
import("guitarix.lib");
stage1adjust = *( -3.2:ba.db2linear);
stage2adjust = *( 10.7:ba.db2linear);
stage1 = tubestage(TB_12AX7_68k,40.0,1500.0,1.5025):stage1adjust;
stage2 = tubestage(TB_12AX7_68k,20.0,1500.0,1.4925):stage1adjust ;
level = vslider("Feedback[alias][style:knob]",-12,-75,-3,0.1):ba.db2linear:smoothi(0.999) ;
presence_filter = fi.high_shelf( -presence, 1500 );
lineamp = stage1:stage2 ;
input = vslider("Input[alias][style:knob]",0,-20,20,0.1):ba.db2linear:smoothi(0.999) ;
output = vslider("Output[alias][style:knob]",0,-20,20,0.1) :ba.db2linear:smoothi(0.999);
presence = vslider("Presence[alias][style:knob]",0,0,10,0.1)/10:smoothi(0.999):*(24);
drive = vslider("Drive[alias][style:knob]",0.0,-15.0,15.0,0.1):ba.db2linear:smoothi(0.999);
resonance = vslider("Resonance[alias][style:knob]",0,0,10,0.1)/10:smoothi(0.999):*(24);
feedback = hgroup( "Processing",fi.low_shelf( -resonance,480):presence_filter:*(level):*(-1));
channel =hgroup("Input", *(input)):hgroup("Tube",*(drive)):
(+:lineamp)~feedback:hgroup("Output",fi.lowpass( 1, 18000 ) :*(output));
process = channel ;
|
5a0245eb430f3a65001bddbb0891a45f9b77d904e8005c3d9cad127b0d594b8d | brummer10/guitarix | graphiceq.dsp | declare id "graphiceq";
declare name "Graphic EQ";
declare category "Tone Control";
declare description "Graphic EQ";
import("stdfaust.lib");
rd = library("reducemaps.lib");
//geq = fi.filterbank(3, (31.25, 62.5, 125., 250., 500., 1000., 2000., 4000., 8000., 16000.));
geq = fi.filterbank(3, (44., 88., 177., 354., 707., 1414., 2828., 5657., 11384., 18110.));
g1 = vslider("g1[tooltip:gain (dB) below 31.25 Hz]", 0, -30, 20, 0.1) : ba.db2linear : si.smooth(0.999);
g2 = vslider("g2 [tooltip:gain (dB) at 62.5 Hz]", 0, -30, 20, 0.1) : ba.db2linear : si.smooth(0.999);
g3 = vslider("g3 [tooltip:gain (dB) at 125 Hz]", 0, -30, 20, 0.1) : ba.db2linear : si.smooth(0.999);
g4 = vslider("g4 [tooltip:gain (dB) at 250 Hz]", 0, -30, 20, 0.1) : ba.db2linear : si.smooth(0.999);
g5 = vslider("g5 [tooltip:gain (dB) at 500 Hz]", 0, -30, 20, 0.1) : ba.db2linear : si.smooth(0.999);
g6 = vslider("g6 [tooltip:gain (dB) at 1 kHz]", 0, -30, 20, 0.1) : ba.db2linear : si.smooth(0.999);
g7 = vslider("g7 [tooltip:gain (dB) at 2 kHz]", 0, -30, 20, 0.1) : ba.db2linear : si.smooth(0.999);
g8 = vslider("g8 [tooltip:gain (dB) at 4 kHz]", 0, -30, 20, 0.1) : ba.db2linear : si.smooth(0.999);
g9 = vslider("g9 [tooltip:gain (dB) at 8 kHz]", 0, -30, 20, 0.1) : ba.db2linear : si.smooth(0.999);
g10 = vslider("g10 [tooltip:gain (dB) at 16 kHz]", 0, -30, 20, 0.1) : ba.db2linear : si.smooth(0.999);
g11 = vslider("g11 [tooltip:gain (dB) above 16 kHz]", 0, -30, 20, 0.1) : ba.db2linear : si.smooth(0.999);
v1(x) = attach(x, envelop(x) : vbargraph("v1[nomidi][log]", -70, +5));
v2(x) = attach(x, envelop(x) : vbargraph("v2[nomidi][log]", -70, +5));
v3(x) = attach(x, envelop(x) : vbargraph("v3[nomidi][log]", -70, +5));
v4(x) = attach(x, envelop(x) : vbargraph("v4[nomidi][log]", -70, +5));
v5(x) = attach(x, envelop(x) : vbargraph("v5[nomidi][log]", -70, +5));
v6(x) = attach(x, envelop(x) : vbargraph("v6[nomidi][log]", -70, +5));
v7(x) = attach(x, envelop(x) : vbargraph("v7[nomidi][log]", -70, +5));
v8(x) = attach(x, envelop(x) : vbargraph("v8[nomidi][log]", -70, +5));
v9(x) = attach(x, envelop(x) : vbargraph("v9[nomidi][log]", -70, +5));
v10(x) = attach(x, envelop(x) : vbargraph("v10[nomidi][log]", -70, +5));
v11(x) = attach(x, envelop(x) : vbargraph("v11[nomidi][log]", -70, +5));
envelop = abs : max ~ (1.0/ma.SR) : rd.maxn(4096) ;
process = geq :(*(g11):v11), (*(g10):v10),(*(g9):v9),(*(g8):v8),(*(g7):v7),(*(g6):v6),
(*(g5):v5),(*(g4):v4),(*(g3):v3),(*(g2):v2),(*(g1):v1) :>_;
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/graphiceq.dsp | faust | geq = fi.filterbank(3, (31.25, 62.5, 125., 250., 500., 1000., 2000., 4000., 8000., 16000.)); | declare id "graphiceq";
declare name "Graphic EQ";
declare category "Tone Control";
declare description "Graphic EQ";
import("stdfaust.lib");
rd = library("reducemaps.lib");
geq = fi.filterbank(3, (44., 88., 177., 354., 707., 1414., 2828., 5657., 11384., 18110.));
g1 = vslider("g1[tooltip:gain (dB) below 31.25 Hz]", 0, -30, 20, 0.1) : ba.db2linear : si.smooth(0.999);
g2 = vslider("g2 [tooltip:gain (dB) at 62.5 Hz]", 0, -30, 20, 0.1) : ba.db2linear : si.smooth(0.999);
g3 = vslider("g3 [tooltip:gain (dB) at 125 Hz]", 0, -30, 20, 0.1) : ba.db2linear : si.smooth(0.999);
g4 = vslider("g4 [tooltip:gain (dB) at 250 Hz]", 0, -30, 20, 0.1) : ba.db2linear : si.smooth(0.999);
g5 = vslider("g5 [tooltip:gain (dB) at 500 Hz]", 0, -30, 20, 0.1) : ba.db2linear : si.smooth(0.999);
g6 = vslider("g6 [tooltip:gain (dB) at 1 kHz]", 0, -30, 20, 0.1) : ba.db2linear : si.smooth(0.999);
g7 = vslider("g7 [tooltip:gain (dB) at 2 kHz]", 0, -30, 20, 0.1) : ba.db2linear : si.smooth(0.999);
g8 = vslider("g8 [tooltip:gain (dB) at 4 kHz]", 0, -30, 20, 0.1) : ba.db2linear : si.smooth(0.999);
g9 = vslider("g9 [tooltip:gain (dB) at 8 kHz]", 0, -30, 20, 0.1) : ba.db2linear : si.smooth(0.999);
g10 = vslider("g10 [tooltip:gain (dB) at 16 kHz]", 0, -30, 20, 0.1) : ba.db2linear : si.smooth(0.999);
g11 = vslider("g11 [tooltip:gain (dB) above 16 kHz]", 0, -30, 20, 0.1) : ba.db2linear : si.smooth(0.999);
v1(x) = attach(x, envelop(x) : vbargraph("v1[nomidi][log]", -70, +5));
v2(x) = attach(x, envelop(x) : vbargraph("v2[nomidi][log]", -70, +5));
v3(x) = attach(x, envelop(x) : vbargraph("v3[nomidi][log]", -70, +5));
v4(x) = attach(x, envelop(x) : vbargraph("v4[nomidi][log]", -70, +5));
v5(x) = attach(x, envelop(x) : vbargraph("v5[nomidi][log]", -70, +5));
v6(x) = attach(x, envelop(x) : vbargraph("v6[nomidi][log]", -70, +5));
v7(x) = attach(x, envelop(x) : vbargraph("v7[nomidi][log]", -70, +5));
v8(x) = attach(x, envelop(x) : vbargraph("v8[nomidi][log]", -70, +5));
v9(x) = attach(x, envelop(x) : vbargraph("v9[nomidi][log]", -70, +5));
v10(x) = attach(x, envelop(x) : vbargraph("v10[nomidi][log]", -70, +5));
v11(x) = attach(x, envelop(x) : vbargraph("v11[nomidi][log]", -70, +5));
envelop = abs : max ~ (1.0/ma.SR) : rd.maxn(4096) ;
process = geq :(*(g11):v11), (*(g10):v10),(*(g9):v9),(*(g8):v8),(*(g7):v7),(*(g6):v6),
(*(g5):v5),(*(g4):v4),(*(g3):v3),(*(g2):v2),(*(g1):v1) :>_;
|
3c9a34d8bab286a9a55518c458ef2b53565321ea307035a17bf9e4ff02e6adfc | brummer10/guitarix | mbclipper.dsp | declare id "mbclip";
declare name "MultiBand Clipper";
declare shortname "MB Clipper";
declare category "Distortion";
declare description "MultiBand Clipper";
import("stdfaust.lib");
import("reducemaps.lib");
anti_denormal = pow(10,-20);
anti_denormal_ac = 1 - 1' : *(anti_denormal) : + ~ *(-1);
hifr1 =hslider("crossover_b1_b2 [log][name:Crossover B1-B2 (hz)][tooltip: Crossover fi.bandpass frequency]" ,80 , 20, 20000, 1.08);
hifr2 =hslider("crossover_b2_b3 [log][name:Crossover B2-B3 (hz)][tooltip: Crossover fi.bandpass frequency]",210,20,20000,1.08);
hifr3 =hslider("crossover_b3_b4 [log][name:Crossover B3-B4 (hz)][tooltip: Crossover fi.bandpass frequency]",1700,20,20000,1.08);
hifr4 =hslider("crossover_b4_b5 [log][name:Crossover B4-B5 (hz)][tooltip: Crossover fi.bandpass frequency]",5000,20,20000,1.08);
geq = fi.filterbank(3, (hifr1,hifr2,hifr3,hifr4));
drive1 = hslider("Drive1 [tooltip: Amount of distortion]", 0.33, 0, 1, 0.01);
drive2 = hslider("Drive2 [tooltip: Amount of distortion]", 0.5, 0, 1, 0.01);
drive3 = hslider("Drive3 [tooltip: Amount of distortion]", 0.65, 0, 1, 0.01);
drive4 = hslider("Drive4 [tooltip: Amount of distortion]", 0.33, 0, 1, 0.01);
drive5 = hslider("Drive5 [tooltip: Amount of distortion]", 0.1, 0, 1, 0.01);
gain1 = vslider("Gain", 0, -40, 4, 0.1) : ba.db2linear : si.smooth(0.999);
vmeter1(x) = attach(x, envelop(x) : vbargraph("v1[nomidi][log]", -70, +5));
vmeter2(x) = attach(x, envelop(x) : vbargraph("v2[nomidi][log]", -70, +5));
vmeter3(x) = attach(x, envelop(x) : vbargraph("v3[nomidi][log]", -70, +5));
vmeter4(x) = attach(x, envelop(x) : vbargraph("v4[nomidi][log]", -70, +5));
vmeter5(x) = attach(x, envelop(x) : vbargraph("v5[nomidi][log]", -70, +5));
envelop = abs : max ~ (1.0/ma.SR) : mean(4096); // : max(ba.db2linear(-70)) : ba.linear2db;
clip(drive) = *(pregain) : clip : *(postgain) with {
pregain = pow(10.0,2*drive);
clip = ffunction(float symclip(float), "clipping.h", "");
postgain = max(1.0,1.0/pregain);
};
eclip(drive) = *(pregain) : clip : *(postgain) with {
pregain = pow(10.0,2*drive);
clip(x) = ((exp(x*4)-exp(-x*4*1.2))/(exp(x*4)+exp(-x*4)))/4;
postgain = max(1.0,1.0/(pregain*2.5));
};
cclip(drive) = *(pregain) : clip : *(postgain) with {
pregain = pow(10.0,drive);
clip(x) = ma.tanh((drive+0.0001)*x)/ma.tanh(drive+0.0001);
postgain = max(1.0,1.0/pregain);
};
aclip(drive) = *(pregain) : clip : *(postgain) with {
pregain = pow(10.0,2*drive);
clip(x) = atan(x)/ma.PI;
postgain = max(1.0,1.0/pregain);
};
process = _: +(anti_denormal_ac): geq: ( dist5s , dist4s , dist3s, dist2s, dist1s) :> *(gain1) with {
dist1s = clip(drive1: si.smooth(0.999)) : vmeter1;
dist2s = clip(drive2: si.smooth(0.999)) : vmeter2;
dist3s = clip(drive3: si.smooth(0.999)) : vmeter3;
dist4s = clip(drive4: si.smooth(0.999)) : vmeter4;
dist5s = clip(drive5: si.smooth(0.999)) : vmeter5;
};
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/plugins/mbclipper.dsp | faust | : max(ba.db2linear(-70)) : ba.linear2db; | declare id "mbclip";
declare name "MultiBand Clipper";
declare shortname "MB Clipper";
declare category "Distortion";
declare description "MultiBand Clipper";
import("stdfaust.lib");
import("reducemaps.lib");
anti_denormal = pow(10,-20);
anti_denormal_ac = 1 - 1' : *(anti_denormal) : + ~ *(-1);
hifr1 =hslider("crossover_b1_b2 [log][name:Crossover B1-B2 (hz)][tooltip: Crossover fi.bandpass frequency]" ,80 , 20, 20000, 1.08);
hifr2 =hslider("crossover_b2_b3 [log][name:Crossover B2-B3 (hz)][tooltip: Crossover fi.bandpass frequency]",210,20,20000,1.08);
hifr3 =hslider("crossover_b3_b4 [log][name:Crossover B3-B4 (hz)][tooltip: Crossover fi.bandpass frequency]",1700,20,20000,1.08);
hifr4 =hslider("crossover_b4_b5 [log][name:Crossover B4-B5 (hz)][tooltip: Crossover fi.bandpass frequency]",5000,20,20000,1.08);
geq = fi.filterbank(3, (hifr1,hifr2,hifr3,hifr4));
drive1 = hslider("Drive1 [tooltip: Amount of distortion]", 0.33, 0, 1, 0.01);
drive2 = hslider("Drive2 [tooltip: Amount of distortion]", 0.5, 0, 1, 0.01);
drive3 = hslider("Drive3 [tooltip: Amount of distortion]", 0.65, 0, 1, 0.01);
drive4 = hslider("Drive4 [tooltip: Amount of distortion]", 0.33, 0, 1, 0.01);
drive5 = hslider("Drive5 [tooltip: Amount of distortion]", 0.1, 0, 1, 0.01);
gain1 = vslider("Gain", 0, -40, 4, 0.1) : ba.db2linear : si.smooth(0.999);
vmeter1(x) = attach(x, envelop(x) : vbargraph("v1[nomidi][log]", -70, +5));
vmeter2(x) = attach(x, envelop(x) : vbargraph("v2[nomidi][log]", -70, +5));
vmeter3(x) = attach(x, envelop(x) : vbargraph("v3[nomidi][log]", -70, +5));
vmeter4(x) = attach(x, envelop(x) : vbargraph("v4[nomidi][log]", -70, +5));
vmeter5(x) = attach(x, envelop(x) : vbargraph("v5[nomidi][log]", -70, +5));
clip(drive) = *(pregain) : clip : *(postgain) with {
pregain = pow(10.0,2*drive);
clip = ffunction(float symclip(float), "clipping.h", "");
postgain = max(1.0,1.0/pregain);
};
eclip(drive) = *(pregain) : clip : *(postgain) with {
pregain = pow(10.0,2*drive);
clip(x) = ((exp(x*4)-exp(-x*4*1.2))/(exp(x*4)+exp(-x*4)))/4;
postgain = max(1.0,1.0/(pregain*2.5));
};
cclip(drive) = *(pregain) : clip : *(postgain) with {
pregain = pow(10.0,drive);
clip(x) = ma.tanh((drive+0.0001)*x)/ma.tanh(drive+0.0001);
postgain = max(1.0,1.0/pregain);
};
aclip(drive) = *(pregain) : clip : *(postgain) with {
pregain = pow(10.0,2*drive);
clip(x) = atan(x)/ma.PI;
postgain = max(1.0,1.0/pregain);
};
process = _: +(anti_denormal_ac): geq: ( dist5s , dist4s , dist3s, dist2s, dist1s) :> *(gain1) with {
dist1s = clip(drive1: si.smooth(0.999)) : vmeter1;
dist2s = clip(drive2: si.smooth(0.999)) : vmeter2;
dist3s = clip(drive3: si.smooth(0.999)) : vmeter3;
dist4s = clip(drive4: si.smooth(0.999)) : vmeter4;
dist5s = clip(drive5: si.smooth(0.999)) : vmeter5;
};
|
90c1556a6f165715e01907017aa47bef111f8ff4702da7799a4f52e4b1f8d09d | brummer10/guitarix | mbd.dsp | declare id "mbd";
declare name "MultiBand Distortion";
declare shortname "MB Distortion";
declare category "Distortion";
declare description "MultiBand Distortion";
import("stdfaust.lib");
rd = library("reducemaps.lib");
anti_denormal = pow(10,-20);
anti_denormal_ac = 1 - 1' : *(anti_denormal) : + ~ *(-1);
hifr1 =hslider("crossover_b1_b2 [log][name:Crossover B1-B2 (hz)][tooltip: Crossover fi.bandpass frequency]" ,80 , 20, 20000, 1.08);
hifr2 =hslider("crossover_b2_b3 [log][name:Crossover B2-B3 (hz)][tooltip: Crossover fi.bandpass frequency]",210,20,20000,1.08);
hifr3 =hslider("crossover_b3_b4 [log][name:Crossover B3-B4 (hz)][tooltip: Crossover fi.bandpass frequency]",1700,20,20000,1.08);
hifr4 =hslider("crossover_b4_b5 [log][name:Crossover B4-B5 (hz)][tooltip: Crossover fi.bandpass frequency]",5000,20,20000,1.08);
geq = fi.filterbank(3, (hifr1,hifr2,hifr3,hifr4));
drive1 = hslider("Drive1 [tooltip: Amount of distortion]", 0, 0, 1, 0.01): si.smooth(0.999);
offset1 = hslider("Offset1 [tooltip: Brings in even harmonics]", 0, 0, 0.5, 0.01): si.smooth(0.999);
drive2 = hslider("Drive2 [tooltip: Amount of distortion]", 0, 0, 1, 0.01): si.smooth(0.999);
offset2 = hslider("Offset2 [tooltip: Brings in even harmonics]", 0, 0, 0.5, 0.01): si.smooth(0.999);
drive3 = hslider("Drive3 [tooltip: Amount of distortion]", 0, 0, 1, 0.01): si.smooth(0.999);
offset3 = hslider("Offset3 [tooltip: Brings in even harmonics]", 0, 0, 0.5, 0.01): si.smooth(0.999);
drive4 = hslider("Drive4 [tooltip: Amount of distortion]", 0, 0, 1, 0.01): si.smooth(0.999);
offset4 = hslider("Offset4 [tooltip: Brings in even harmonics]", 0, 0, 0.5, 0.01): si.smooth(0.999);
drive5 = hslider("Drive5 [tooltip: Amount of distortion]", 0, 0, 1, 0.01): si.smooth(0.999);
offset5 = hslider("Offset5 [tooltip: Brings in even harmonics]", 0, 0, 0.5, 0.01): si.smooth(0.999);
gain1 = vslider("Gain", 0, -40, 4, 0.1) : ba.db2linear : si.smooth(0.999);
vmeter1(x) = attach(x, envelop(x) : vbargraph("v1[nomidi:no]", -70, +5));
vmeter2(x) = attach(x, envelop(x) : vbargraph("v2[nomidi:no]", -70, +5));
vmeter3(x) = attach(x, envelop(x) : vbargraph("v3[nomidi:no]", -70, +5));
vmeter4(x) = attach(x, envelop(x) : vbargraph("v4[nomidi:no]", -70, +5));
vmeter5(x) = attach(x, envelop(x) : vbargraph("v5[nomidi:no]", -70, +5));
envelop = abs : max ~ (1.0/ma.SR) : rd.maxn(4096) ;
//envelop = abs : max ~ (1.0/ma.SR) : mean(4096); // : max(ba.db2linear(-70)) : ba.linear2db;
process = _: +(anti_denormal_ac): geq: ( dist5s , dist4s , dist3s, dist2s, dist1s) :> *(gain1) with {
dist1s = ef.cubicnl(drive1,offset1) : fi.dcblockerat(1.0) : vmeter1;
dist2s = ef.cubicnl(drive2,offset2) : fi.dcblockerat(1.0) : vmeter2;
dist3s = ef.cubicnl(drive3,offset3) : fi.dcblockerat(1.0) : vmeter3;
dist4s = ef.cubicnl(drive4,offset4) : fi.dcblockerat(1.0) : vmeter4;
dist5s = ef.cubicnl(drive5,offset5) : fi.dcblockerat(1.0) : vmeter5;
};
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/mbd.dsp | faust | envelop = abs : max ~ (1.0/ma.SR) : mean(4096); // : max(ba.db2linear(-70)) : ba.linear2db; | declare id "mbd";
declare name "MultiBand Distortion";
declare shortname "MB Distortion";
declare category "Distortion";
declare description "MultiBand Distortion";
import("stdfaust.lib");
rd = library("reducemaps.lib");
anti_denormal = pow(10,-20);
anti_denormal_ac = 1 - 1' : *(anti_denormal) : + ~ *(-1);
hifr1 =hslider("crossover_b1_b2 [log][name:Crossover B1-B2 (hz)][tooltip: Crossover fi.bandpass frequency]" ,80 , 20, 20000, 1.08);
hifr2 =hslider("crossover_b2_b3 [log][name:Crossover B2-B3 (hz)][tooltip: Crossover fi.bandpass frequency]",210,20,20000,1.08);
hifr3 =hslider("crossover_b3_b4 [log][name:Crossover B3-B4 (hz)][tooltip: Crossover fi.bandpass frequency]",1700,20,20000,1.08);
hifr4 =hslider("crossover_b4_b5 [log][name:Crossover B4-B5 (hz)][tooltip: Crossover fi.bandpass frequency]",5000,20,20000,1.08);
geq = fi.filterbank(3, (hifr1,hifr2,hifr3,hifr4));
drive1 = hslider("Drive1 [tooltip: Amount of distortion]", 0, 0, 1, 0.01): si.smooth(0.999);
offset1 = hslider("Offset1 [tooltip: Brings in even harmonics]", 0, 0, 0.5, 0.01): si.smooth(0.999);
drive2 = hslider("Drive2 [tooltip: Amount of distortion]", 0, 0, 1, 0.01): si.smooth(0.999);
offset2 = hslider("Offset2 [tooltip: Brings in even harmonics]", 0, 0, 0.5, 0.01): si.smooth(0.999);
drive3 = hslider("Drive3 [tooltip: Amount of distortion]", 0, 0, 1, 0.01): si.smooth(0.999);
offset3 = hslider("Offset3 [tooltip: Brings in even harmonics]", 0, 0, 0.5, 0.01): si.smooth(0.999);
drive4 = hslider("Drive4 [tooltip: Amount of distortion]", 0, 0, 1, 0.01): si.smooth(0.999);
offset4 = hslider("Offset4 [tooltip: Brings in even harmonics]", 0, 0, 0.5, 0.01): si.smooth(0.999);
drive5 = hslider("Drive5 [tooltip: Amount of distortion]", 0, 0, 1, 0.01): si.smooth(0.999);
offset5 = hslider("Offset5 [tooltip: Brings in even harmonics]", 0, 0, 0.5, 0.01): si.smooth(0.999);
gain1 = vslider("Gain", 0, -40, 4, 0.1) : ba.db2linear : si.smooth(0.999);
vmeter1(x) = attach(x, envelop(x) : vbargraph("v1[nomidi:no]", -70, +5));
vmeter2(x) = attach(x, envelop(x) : vbargraph("v2[nomidi:no]", -70, +5));
vmeter3(x) = attach(x, envelop(x) : vbargraph("v3[nomidi:no]", -70, +5));
vmeter4(x) = attach(x, envelop(x) : vbargraph("v4[nomidi:no]", -70, +5));
vmeter5(x) = attach(x, envelop(x) : vbargraph("v5[nomidi:no]", -70, +5));
envelop = abs : max ~ (1.0/ma.SR) : rd.maxn(4096) ;
process = _: +(anti_denormal_ac): geq: ( dist5s , dist4s , dist3s, dist2s, dist1s) :> *(gain1) with {
dist1s = ef.cubicnl(drive1,offset1) : fi.dcblockerat(1.0) : vmeter1;
dist2s = ef.cubicnl(drive2,offset2) : fi.dcblockerat(1.0) : vmeter2;
dist3s = ef.cubicnl(drive3,offset3) : fi.dcblockerat(1.0) : vmeter3;
dist4s = ef.cubicnl(drive4,offset4) : fi.dcblockerat(1.0) : vmeter4;
dist5s = ef.cubicnl(drive5,offset5) : fi.dcblockerat(1.0) : vmeter5;
};
|
bd3ef1acfbc96fc0424f5e08e8b27750f54faa263504257895972519e4ecb72a | brummer10/guitarix | gx_vibrochump.dsp | declare id "Redeye Vibro Chump"; // in amp tube ba.selector
declare name "Redeye Vibro Chumo";
declare category "Amplifier";
import("stdfaust.lib");
import("guitarix.lib");
import("redeye.lib");
/****************************************************************
** Tube Preamp Emulation stage 1 - 2
**
** SHP : Experiment with the presence control as a feedback loop
** Created a loop with high shelf filter cutting around 1khz and up
** pot controls the amount of cut 0 > -70dB
** If feedback loop is inverted get mad distortion and feedback!
** With no inversion get required effect so guess the combination
** of filter and processing de.delay may be shifting phase some
**
** To do :
** Play with amp structure say a champ clone
** tube:eq:tube:tube
** 12AX7:??:12AX7:6V6
**
** Move feedback loop in more complex amp around driver and power tube
** 12AX7:EQ:(12AX7:6V6)~FEEDBACK
*/
/*
** Model of a vactrol tremolo unit by "transmogrify"
** c.f. http://sourceforge.net/apps/phpbb/guitarix/viewtopic.php?f=7&t=44&p=233&hilit=transmogrifox#p233
** http://transmogrifox.webs.com/vactrol.m
*/
/* vactrol model */
R1 = 2700;
Ra = 1e6;
Rb = 300;
b = exp(log(Ra)/log(Rb)) - exp(1);
dTC = 0.06;
minTC = log(0.005/dTC);
cds = ((_ <: _,_),_ : _+(1-alpha)*_) ~ (_<:*(alpha)) with {
iSR = 1/ma.SR;
dRC = dTC * exp(*(minTC));
alpha = 1 - iSR / (dRC + iSR);
};
vactrol = pow(_,1.9) : cds : *(b) + exp(1) : exp(log(Ra)/log) : R1/(_ + R1);
/* os.triangle oscillator (not bandlimited, frequency is approximate) */
trianglewave(freq) = _ ~ (_ <: _ + hyst) : /(periodsamps) with {
if(c,t,e) = select2(c,e,t);
hyst(x) = if(_ > 0, 2 * (x < periodsamps) - 1, 1 - 2 * (x > 0)) ~ _;
periodsamps = int(ma.SR / (2*float(freq)));
};
amp = bigChumpPre:*(vibe):bigChumpPre2:bigChumpPower:*(volume) with{
volume = hgroup( "Amp",vslider("Volume[alias][style:knob]",0.5,0,1,0.01):smoothi(0.999) );
// Tremelo effect
/* tremolo unit, using os.triangle or sine oscillator as lfo */
tremolo(freq, depth) = lfo * depth + 1 - depth : vactrol with {
sine(freq) = (os.oscs(freq) + 1) / 2 : max(0); // max(0) because of numerical inaccuracy
SINE=hgroup( "Tremelo",checkbox("SINEWAVE[3][enum:os.triangle|sine]") );
lfo = select2(SINE, trianglewave(freq), sine(freq));
};
speed = hgroup( "Tremelo",vslider("speed[2][style:knob]",5,0.1,10,0.1) ) ;
intensity = hgroup( "Tremelo", vslider("intensity[1][style:knob]",5,0,10,0.1)/10.2 ) ;
effect = tremolo(speed,intensity);
vof = hgroup( "Tremelo",checkbox("vibe[0][enum:Off|On]"));
vibe = select2(vof, effect, 1.0) ;
};
freq_split = fi.filterbank(3, (86.0,210.0,1200.0,6531.0));
process = freq_split: ( amp , amp , amp, amp, amp) :>_;
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/gx_vibrochump.dsp | faust | in amp tube ba.selector
***************************************************************
** Tube Preamp Emulation stage 1 - 2
**
** SHP : Experiment with the presence control as a feedback loop
** Created a loop with high shelf filter cutting around 1khz and up
** pot controls the amount of cut 0 > -70dB
** If feedback loop is inverted get mad distortion and feedback!
** With no inversion get required effect so guess the combination
** of filter and processing de.delay may be shifting phase some
**
** To do :
** Play with amp structure say a champ clone
** tube:eq:tube:tube
** 12AX7:??:12AX7:6V6
**
** Move feedback loop in more complex amp around driver and power tube
** 12AX7:EQ:(12AX7:6V6)~FEEDBACK
** Model of a vactrol tremolo unit by "transmogrify"
** c.f. http://sourceforge.net/apps/phpbb/guitarix/viewtopic.php?f=7&t=44&p=233&hilit=transmogrifox#p233
** http://transmogrifox.webs.com/vactrol.m
vactrol model
os.triangle oscillator (not bandlimited, frequency is approximate)
Tremelo effect
tremolo unit, using os.triangle or sine oscillator as lfo
max(0) because of numerical inaccuracy | declare name "Redeye Vibro Chumo";
declare category "Amplifier";
import("stdfaust.lib");
import("guitarix.lib");
import("redeye.lib");
R1 = 2700;
Ra = 1e6;
Rb = 300;
b = exp(log(Ra)/log(Rb)) - exp(1);
dTC = 0.06;
minTC = log(0.005/dTC);
cds = ((_ <: _,_),_ : _+(1-alpha)*_) ~ (_<:*(alpha)) with {
iSR = 1/ma.SR;
dRC = dTC * exp(*(minTC));
alpha = 1 - iSR / (dRC + iSR);
};
vactrol = pow(_,1.9) : cds : *(b) + exp(1) : exp(log(Ra)/log) : R1/(_ + R1);
trianglewave(freq) = _ ~ (_ <: _ + hyst) : /(periodsamps) with {
if(c,t,e) = select2(c,e,t);
hyst(x) = if(_ > 0, 2 * (x < periodsamps) - 1, 1 - 2 * (x > 0)) ~ _;
periodsamps = int(ma.SR / (2*float(freq)));
};
amp = bigChumpPre:*(vibe):bigChumpPre2:bigChumpPower:*(volume) with{
volume = hgroup( "Amp",vslider("Volume[alias][style:knob]",0.5,0,1,0.01):smoothi(0.999) );
tremolo(freq, depth) = lfo * depth + 1 - depth : vactrol with {
SINE=hgroup( "Tremelo",checkbox("SINEWAVE[3][enum:os.triangle|sine]") );
lfo = select2(SINE, trianglewave(freq), sine(freq));
};
speed = hgroup( "Tremelo",vslider("speed[2][style:knob]",5,0.1,10,0.1) ) ;
intensity = hgroup( "Tremelo", vslider("intensity[1][style:knob]",5,0,10,0.1)/10.2 ) ;
effect = tremolo(speed,intensity);
vof = hgroup( "Tremelo",checkbox("vibe[0][enum:Off|On]"));
vibe = select2(vof, effect, 1.0) ;
};
freq_split = fi.filterbank(3, (86.0,210.0,1200.0,6531.0));
process = freq_split: ( amp , amp , amp, amp, amp) :>_;
|
f6b866f7499c3c84512d6fa1fe866459a3e93c307b7e6a4bc0f2c7679ec3a26e | brummer10/guitarix | astrofuzz.dsp | // generated automatically
// DO NOT MODIFY!
declare id "astrofuzz";
declare name "Astrotone Fuzz";
declare category "Fuzz";
declare shortname "Astrotone";
declare description "Astrotone Fuzz";
import("stdfaust.lib");
import("trany.lib");
process = pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0)) : clip with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
clip = tranystage(TB_7199P_68k,86.0,2700.0,3.571981) : tranystage(TB_7199P_68k,86.0,2700.0,3.571981) ;
Tone = vslider("Tone[name:Tone]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
Volume = vslider("Volume[name:Volume]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
Attack = vslider("Attack[name:Attack]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
b0 = Attack*Volume*(1.00499515996459e-12*Tone*pow(fs,3) - 1.18589428875822e-12*pow(fs,3));
b1 = Attack*Volume*(-3.01498547989378e-12*Tone*pow(fs,3) + 3.55768286627466e-12*pow(fs,3));
b2 = Attack*Volume*(3.01498547989378e-12*Tone*pow(fs,3) - 3.55768286627466e-12*pow(fs,3));
b3 = Attack*Volume*(-1.00499515996459e-12*Tone*pow(fs,3) + 1.18589428875822e-12*pow(fs,3));
a0 = Attack*(Attack*(Tone*fs*(fs*(3.46486099611082e-14*fs + 3.92502015729988e-11) + 2.59598111483739e-9) + fs*(fs*(-4.09854197590519e-14*fs - 8.31252171811903e-11) - 5.6592388303455e-9)) + Tone*fs*(fs*(-3.46486099611082e-14*fs - 3.92502015729988e-11) - 2.59598111483739e-9) + fs*(fs*(4.09854197590519e-14*fs + 8.31252171811903e-11) + 5.6592388303455e-9)) + Tone*(fs*(fs*(-3.79430966640243e-15*fs - 7.96218897097081e-12) - 4.44205261980514e-9) - 2.76168203706105e-7) + fs*(fs*(4.49290068884749e-15*fs + 1.34316849964884e-11) + 9.42407659969146e-9) + 6.02046684079309e-7;
a1 = Attack*(Attack*(Tone*fs*(fs*(-1.03945829883325e-13*fs - 3.92502015729988e-11) + 2.59598111483739e-9) + fs*(fs*(1.22956259277156e-13*fs + 8.31252171811903e-11) - 5.6592388303455e-9)) + Tone*fs*(fs*(1.03945829883325e-13*fs + 3.92502015729988e-11) - 2.59598111483739e-9) + fs*(fs*(-1.22956259277156e-13*fs - 8.31252171811903e-11) + 5.6592388303455e-9)) + Tone*(fs*(fs*(1.13829289992073e-14*fs + 7.96218897097081e-12) - 4.44205261980514e-9) - 8.28504611118315e-7) + fs*(fs*(-1.34787020665425e-14*fs - 1.34316849964884e-11) + 9.42407659969146e-9) + 1.80614005223793e-6;
a2 = Attack*(Attack*(Tone*fs*(fs*(1.03945829883325e-13*fs - 3.92502015729988e-11) - 2.59598111483739e-9) + fs*(fs*(-1.22956259277156e-13*fs + 8.31252171811903e-11) + 5.6592388303455e-9)) + Tone*fs*(fs*(-1.03945829883325e-13*fs + 3.92502015729988e-11) + 2.59598111483739e-9) + fs*(fs*(1.22956259277156e-13*fs - 8.31252171811903e-11) - 5.6592388303455e-9)) + Tone*(fs*(fs*(-1.13829289992073e-14*fs + 7.96218897097081e-12) + 4.44205261980514e-9) - 8.28504611118315e-7) + fs*(fs*(1.34787020665425e-14*fs - 1.34316849964884e-11) - 9.42407659969146e-9) + 1.80614005223793e-6;
a3 = Attack*(Attack*(Tone*fs*(fs*(-3.46486099611082e-14*fs + 3.92502015729988e-11) - 2.59598111483739e-9) + fs*(fs*(4.09854197590519e-14*fs - 8.31252171811903e-11) + 5.6592388303455e-9)) + Tone*fs*(fs*(3.46486099611082e-14*fs - 3.92502015729988e-11) + 2.59598111483739e-9) + fs*(fs*(-4.09854197590519e-14*fs + 8.31252171811903e-11) - 5.6592388303455e-9)) + Tone*(fs*(fs*(3.79430966640243e-15*fs - 7.96218897097081e-12) + 4.44205261980514e-9) - 2.76168203706105e-7) + fs*(fs*(-4.49290068884749e-15*fs + 1.34316849964884e-11) - 9.42407659969146e-9) + 6.02046684079309e-7;
};
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/plugins/astrofuzz.dsp | faust | generated automatically
DO NOT MODIFY! | declare id "astrofuzz";
declare name "Astrotone Fuzz";
declare category "Fuzz";
declare shortname "Astrotone";
declare description "Astrotone Fuzz";
import("stdfaust.lib");
import("trany.lib");
process = pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0)) : clip with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
clip = tranystage(TB_7199P_68k,86.0,2700.0,3.571981) : tranystage(TB_7199P_68k,86.0,2700.0,3.571981) ;
Tone = vslider("Tone[name:Tone]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
Volume = vslider("Volume[name:Volume]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
Attack = vslider("Attack[name:Attack]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
b0 = Attack*Volume*(1.00499515996459e-12*Tone*pow(fs,3) - 1.18589428875822e-12*pow(fs,3));
b1 = Attack*Volume*(-3.01498547989378e-12*Tone*pow(fs,3) + 3.55768286627466e-12*pow(fs,3));
b2 = Attack*Volume*(3.01498547989378e-12*Tone*pow(fs,3) - 3.55768286627466e-12*pow(fs,3));
b3 = Attack*Volume*(-1.00499515996459e-12*Tone*pow(fs,3) + 1.18589428875822e-12*pow(fs,3));
a0 = Attack*(Attack*(Tone*fs*(fs*(3.46486099611082e-14*fs + 3.92502015729988e-11) + 2.59598111483739e-9) + fs*(fs*(-4.09854197590519e-14*fs - 8.31252171811903e-11) - 5.6592388303455e-9)) + Tone*fs*(fs*(-3.46486099611082e-14*fs - 3.92502015729988e-11) - 2.59598111483739e-9) + fs*(fs*(4.09854197590519e-14*fs + 8.31252171811903e-11) + 5.6592388303455e-9)) + Tone*(fs*(fs*(-3.79430966640243e-15*fs - 7.96218897097081e-12) - 4.44205261980514e-9) - 2.76168203706105e-7) + fs*(fs*(4.49290068884749e-15*fs + 1.34316849964884e-11) + 9.42407659969146e-9) + 6.02046684079309e-7;
a1 = Attack*(Attack*(Tone*fs*(fs*(-1.03945829883325e-13*fs - 3.92502015729988e-11) + 2.59598111483739e-9) + fs*(fs*(1.22956259277156e-13*fs + 8.31252171811903e-11) - 5.6592388303455e-9)) + Tone*fs*(fs*(1.03945829883325e-13*fs + 3.92502015729988e-11) - 2.59598111483739e-9) + fs*(fs*(-1.22956259277156e-13*fs - 8.31252171811903e-11) + 5.6592388303455e-9)) + Tone*(fs*(fs*(1.13829289992073e-14*fs + 7.96218897097081e-12) - 4.44205261980514e-9) - 8.28504611118315e-7) + fs*(fs*(-1.34787020665425e-14*fs - 1.34316849964884e-11) + 9.42407659969146e-9) + 1.80614005223793e-6;
a2 = Attack*(Attack*(Tone*fs*(fs*(1.03945829883325e-13*fs - 3.92502015729988e-11) - 2.59598111483739e-9) + fs*(fs*(-1.22956259277156e-13*fs + 8.31252171811903e-11) + 5.6592388303455e-9)) + Tone*fs*(fs*(-1.03945829883325e-13*fs + 3.92502015729988e-11) + 2.59598111483739e-9) + fs*(fs*(1.22956259277156e-13*fs - 8.31252171811903e-11) - 5.6592388303455e-9)) + Tone*(fs*(fs*(-1.13829289992073e-14*fs + 7.96218897097081e-12) + 4.44205261980514e-9) - 8.28504611118315e-7) + fs*(fs*(1.34787020665425e-14*fs - 1.34316849964884e-11) - 9.42407659969146e-9) + 1.80614005223793e-6;
a3 = Attack*(Attack*(Tone*fs*(fs*(-3.46486099611082e-14*fs + 3.92502015729988e-11) - 2.59598111483739e-9) + fs*(fs*(4.09854197590519e-14*fs - 8.31252171811903e-11) + 5.6592388303455e-9)) + Tone*fs*(fs*(3.46486099611082e-14*fs - 3.92502015729988e-11) + 2.59598111483739e-9) + fs*(fs*(-4.09854197590519e-14*fs + 8.31252171811903e-11) - 5.6592388303455e-9)) + Tone*(fs*(fs*(3.79430966640243e-15*fs - 7.96218897097081e-12) + 4.44205261980514e-9) - 2.76168203706105e-7) + fs*(fs*(-4.49290068884749e-15*fs + 1.34316849964884e-11) - 9.42407659969146e-9) + 6.02046684079309e-7;
};
|
44264199eb0feff623dc56b6f38ee3507bfc0745074257179b484b9e00e3a4b9 | brummer10/guitarix | buffb.dsp | // generated automatically
// DO NOT MODIFY!
declare id "buffb";
declare name "Buffer Booster";
declare category "Tone Control";
declare shortname "Buffer Boost";
declare description "Buffer Booster";
import("stdfaust.lib");
process = pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0)) with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
Volume = vslider("Volume[name:Volume]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
Intensity = vslider("Intensity[name:Intensity]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
b0 = Intensity*(Intensity*Volume*pow(fs,3)*(-2.84995035519639e-20*fs - 6.45077038297955e-16) + Volume*pow(fs,3)*(2.97690025361778e-20*fs - 3.02300377935444e-13)) + Volume*pow(fs,2)*(6.76568239458587e-19*fs - 6.87046313489645e-12);
b1 = Intensity*(Intensity*Volume*pow(fs,3)*(1.13998014207856e-19*fs + 1.29015407659591e-15) + Volume*pow(fs,3)*(-1.19076010144711e-19*fs + 6.04600755870888e-13)) - 1.35313647891717e-18*Volume*pow(fs,3);
b2 = Intensity*(-1.70997021311783e-19*Intensity*Volume*pow(fs,4) + 1.78614015217067e-19*Volume*pow(fs,4)) + 1.37409262697929e-11*Volume*pow(fs,2);
b3 = Intensity*(Intensity*Volume*pow(fs,3)*(1.13998014207856e-19*fs - 1.29015407659591e-15) + Volume*pow(fs,3)*(-1.19076010144711e-19*fs - 6.04600755870888e-13)) + 1.35313647891717e-18*Volume*pow(fs,3);
b4 = Intensity*(Intensity*Volume*pow(fs,3)*(-2.84995035519639e-20*fs + 6.45077038297955e-16) + Volume*pow(fs,3)*(2.97690025361778e-20*fs + 3.02300377935444e-13)) + Volume*pow(fs,2)*(-6.76568239458587e-19*fs - 6.87046313489645e-12);
a0 = Intensity*(Intensity*fs*(fs*(fs*(-2.88228949502788e-20*fs - 3.1353376203179e-14) - 9.57866164137552e-13) - 4.00199516463868e-12) + fs*(fs*(fs*(3.01067992749548e-20*fs + 3.28941142776728e-14) + 4.37053187936949e-12) + 2.10094331121784e-11)) + fs*(fs*(6.84245438067155e-19*fs + 7.47593506310745e-13) + 9.93302699856702e-11) + 4.77487116185873e-10;
a1 = Intensity*(Intensity*fs*(pow(fs,2)*(1.15291579801115e-19*fs + 6.27067524063581e-14) - 8.00399032927735e-12) + fs*(pow(fs,2)*(-1.20427197099819e-19*fs - 6.57882285553455e-14) + 4.20188662243568e-11)) + fs*(-1.36849087613431e-18*pow(fs,2) + 1.9866053997134e-10) + 1.90994846474349e-9;
a2 = Intensity*(Intensity*pow(fs,2)*(-1.72937369701673e-19*pow(fs,2) + 1.9157323282751e-12) + pow(fs,2)*(1.80640795649729e-19*pow(fs,2) - 8.74106375873897e-12)) - 1.49518701262149e-12*pow(fs,2) + 2.86492269711524e-9;
a3 = Intensity*(Intensity*fs*(pow(fs,2)*(1.15291579801115e-19*fs - 6.27067524063581e-14) + 8.00399032927735e-12) + fs*(pow(fs,2)*(-1.20427197099819e-19*fs + 6.57882285553455e-14) - 4.20188662243568e-11)) + fs*(1.36849087613431e-18*pow(fs,2) - 1.9866053997134e-10) + 1.90994846474349e-9;
a4 = Intensity*(Intensity*fs*(fs*(fs*(-2.88228949502788e-20*fs + 3.1353376203179e-14) - 9.57866164137552e-13) + 4.00199516463868e-12) + fs*(fs*(fs*(3.01067992749548e-20*fs - 3.28941142776728e-14) + 4.37053187936949e-12) - 2.10094331121784e-11)) + fs*(fs*(-6.84245438067155e-19*fs + 7.47593506310745e-13) - 9.93302699856702e-11) + 4.77487116185873e-10;
};
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/plugins/buffb.dsp | faust | generated automatically
DO NOT MODIFY! | declare id "buffb";
declare name "Buffer Booster";
declare category "Tone Control";
declare shortname "Buffer Boost";
declare description "Buffer Booster";
import("stdfaust.lib");
process = pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0)) with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
Volume = vslider("Volume[name:Volume]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
Intensity = vslider("Intensity[name:Intensity]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
b0 = Intensity*(Intensity*Volume*pow(fs,3)*(-2.84995035519639e-20*fs - 6.45077038297955e-16) + Volume*pow(fs,3)*(2.97690025361778e-20*fs - 3.02300377935444e-13)) + Volume*pow(fs,2)*(6.76568239458587e-19*fs - 6.87046313489645e-12);
b1 = Intensity*(Intensity*Volume*pow(fs,3)*(1.13998014207856e-19*fs + 1.29015407659591e-15) + Volume*pow(fs,3)*(-1.19076010144711e-19*fs + 6.04600755870888e-13)) - 1.35313647891717e-18*Volume*pow(fs,3);
b2 = Intensity*(-1.70997021311783e-19*Intensity*Volume*pow(fs,4) + 1.78614015217067e-19*Volume*pow(fs,4)) + 1.37409262697929e-11*Volume*pow(fs,2);
b3 = Intensity*(Intensity*Volume*pow(fs,3)*(1.13998014207856e-19*fs - 1.29015407659591e-15) + Volume*pow(fs,3)*(-1.19076010144711e-19*fs - 6.04600755870888e-13)) + 1.35313647891717e-18*Volume*pow(fs,3);
b4 = Intensity*(Intensity*Volume*pow(fs,3)*(-2.84995035519639e-20*fs + 6.45077038297955e-16) + Volume*pow(fs,3)*(2.97690025361778e-20*fs + 3.02300377935444e-13)) + Volume*pow(fs,2)*(-6.76568239458587e-19*fs - 6.87046313489645e-12);
a0 = Intensity*(Intensity*fs*(fs*(fs*(-2.88228949502788e-20*fs - 3.1353376203179e-14) - 9.57866164137552e-13) - 4.00199516463868e-12) + fs*(fs*(fs*(3.01067992749548e-20*fs + 3.28941142776728e-14) + 4.37053187936949e-12) + 2.10094331121784e-11)) + fs*(fs*(6.84245438067155e-19*fs + 7.47593506310745e-13) + 9.93302699856702e-11) + 4.77487116185873e-10;
a1 = Intensity*(Intensity*fs*(pow(fs,2)*(1.15291579801115e-19*fs + 6.27067524063581e-14) - 8.00399032927735e-12) + fs*(pow(fs,2)*(-1.20427197099819e-19*fs - 6.57882285553455e-14) + 4.20188662243568e-11)) + fs*(-1.36849087613431e-18*pow(fs,2) + 1.9866053997134e-10) + 1.90994846474349e-9;
a2 = Intensity*(Intensity*pow(fs,2)*(-1.72937369701673e-19*pow(fs,2) + 1.9157323282751e-12) + pow(fs,2)*(1.80640795649729e-19*pow(fs,2) - 8.74106375873897e-12)) - 1.49518701262149e-12*pow(fs,2) + 2.86492269711524e-9;
a3 = Intensity*(Intensity*fs*(pow(fs,2)*(1.15291579801115e-19*fs - 6.27067524063581e-14) + 8.00399032927735e-12) + fs*(pow(fs,2)*(-1.20427197099819e-19*fs + 6.57882285553455e-14) - 4.20188662243568e-11)) + fs*(1.36849087613431e-18*pow(fs,2) - 1.9866053997134e-10) + 1.90994846474349e-9;
a4 = Intensity*(Intensity*fs*(fs*(fs*(-2.88228949502788e-20*fs + 3.1353376203179e-14) - 9.57866164137552e-13) + 4.00199516463868e-12) + fs*(fs*(fs*(3.01067992749548e-20*fs - 3.28941142776728e-14) + 4.37053187936949e-12) - 2.10094331121784e-11)) + fs*(fs*(-6.84245438067155e-19*fs + 7.47593506310745e-13) - 9.93302699856702e-11) + 4.77487116185873e-10;
};
|
0ac2ef8985a5095e5d29833b0b1f5b6fcf7f906ef143738c459c083ecbf529b7 | brummer10/guitarix | uniBar.dsp | declare name "Nonlinear Banded Waveguide Models";
declare author "Romain Michon";
declare copyright "Romain Michon ([email protected])";
declare version "1.0";
declare licence "STK-4.3"; // Synthesis Tool Kit 4.3 (MIT style license);
declare description "This instrument uses banded pm.waveguide. For more information, see Essl, G. and Cook, P. Banded Waveguides: Towards Physical Modelling of Bar Percussion Instruments, Proceedings of the 1999 International Computer Music Conference.";
import("stdfaust.lib");
bow(offset,slope) = pow(abs(sample) + 0.75, -4) : saturationPos
with{
sample(y) = (y + offset)*slope;
};
bandPass(resonance,radius) = fi.TF2(b0,b1,b2,a1,a2)
with{
a2 = radius*radius;
a1 = -2*radius*cos(ma.PI*2*resonance/ma.SR);
b0 = 0.5-0.5*a2;
b1 = 0;
b2 = -b0;
};
saturationPos(x) = x <: (_>1),(_<=1 : *(x)) :> +;
saturationNeg(x) = x <: (_<-1),(_>=-1 : *(x)) :> *(-1) + _;
//==================== GUI SPECIFICATION ================
freq = hslider("h:Basic Parameters/synthfreq [1][unit:Hz] [tooltip:Tone frequency]",440,20,20000,1);
gain = hslider("h:Basic Parameters/gain [1][tooltip:Gain (value between 0 and 1)]",0.8,0,10,0.01)*10;
gate = checkbox("h:Basic Parameters/gate [1][tooltip:noteOn = 1, noteOff = 0]");
//==================== MODAL PARAMETERS ================
preset = 1;
nMode(1) = 4;
modes(1,0) = 1;
basegains(1,0) = pow(0.9,1);
excitation(1,0) = 1*gain/nMode(1);
modes(1,1) = 2.756;
basegains(1,1) = pow(0.9,2);
excitation(1,1) = 1*gain/nMode(1);
modes(1,2) = 5.404;
basegains(1,2) = pow(0.9,3);
excitation(1,2) = 1*gain/nMode(1);
modes(1,3) = 8.933;
basegains(1,3) = pow(0.9,4);
excitation(1,3) = 1*gain/nMode(1);
//==================== SIGNAL PROCESSING ================
//----------------------- Synthesis parameters computing and functions declaration ----------------------------
//the number of modes depends on the preset being used
nModes = nMode(preset);
//bow table parameters
tableOffset = 0;
tableSlope = 10 - (9);
delayLengthBase = ma.SR/freq;
//de.delay lengths in number of samples
delayLength(x) = delayLengthBase/modes(preset,x);
//de.delay lines
delayLine(x) = de.delay(4096,delayLength(x));
//Filter bank: fi.bandpass filters (declared in instrument.lib)
radius = 1 - ma.PI*32/ma.SR;
bandPassFilter(x) = bandPass(freq*modes(preset,x),radius);
//Delay lines feedback for bow table lookup control
baseGainApp = 0.8999999999999999 + (0.1);
velocityInputApp = 0.8;
velocityInput = velocityInputApp + _*baseGainApp,par(i,(nModes-1),(_*baseGainApp)) :> +;
//Bow velocity is controlled by an ADSR envelope
maxVelocity = 0.03 + 0.1*gain;
bowVelocity = maxVelocity*en.adsr(0.02,0.005,90,0.01,gate);
//----------------------- Algorithm implementation ----------------------------
//Bow table lookup (bow is decalred in instrument.lib)
bowing = bowVelocity - velocityInput <: *(bow(tableOffset,tableSlope)) : /(nModes);
//One resonance
resonance(x) = + : + (excitation(1,x)*gate) : delayLine(x) : _*basegains(1,x) : bandPassFilter(x);
/*process =
//Bowed Excitation
_<:((bowing <:
//nModes resonances with nModes feedbacks for bow table look-up
(resonance(1)~_))~_);*/
process(x) =
//Bowed Excitation
(bowing <:
//nModes resonances with nModes feedbacks for bow table look-up
par(i,nModes,(resonance(i)~_)))~par(i,nModes,_) :> _ : +(x) :_;
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/uniBar.dsp | faust | Synthesis Tool Kit 4.3 (MIT style license);
==================== GUI SPECIFICATION ================
==================== MODAL PARAMETERS ================
==================== SIGNAL PROCESSING ================
----------------------- Synthesis parameters computing and functions declaration ----------------------------
the number of modes depends on the preset being used
bow table parameters
de.delay lengths in number of samples
de.delay lines
Filter bank: fi.bandpass filters (declared in instrument.lib)
Delay lines feedback for bow table lookup control
Bow velocity is controlled by an ADSR envelope
----------------------- Algorithm implementation ----------------------------
Bow table lookup (bow is decalred in instrument.lib)
One resonance
process =
//Bowed Excitation
_<:((bowing <:
//nModes resonances with nModes feedbacks for bow table look-up
(resonance(1)~_))~_);
Bowed Excitation
nModes resonances with nModes feedbacks for bow table look-up | declare name "Nonlinear Banded Waveguide Models";
declare author "Romain Michon";
declare copyright "Romain Michon ([email protected])";
declare version "1.0";
declare description "This instrument uses banded pm.waveguide. For more information, see Essl, G. and Cook, P. Banded Waveguides: Towards Physical Modelling of Bar Percussion Instruments, Proceedings of the 1999 International Computer Music Conference.";
import("stdfaust.lib");
bow(offset,slope) = pow(abs(sample) + 0.75, -4) : saturationPos
with{
sample(y) = (y + offset)*slope;
};
bandPass(resonance,radius) = fi.TF2(b0,b1,b2,a1,a2)
with{
a2 = radius*radius;
a1 = -2*radius*cos(ma.PI*2*resonance/ma.SR);
b0 = 0.5-0.5*a2;
b1 = 0;
b2 = -b0;
};
saturationPos(x) = x <: (_>1),(_<=1 : *(x)) :> +;
saturationNeg(x) = x <: (_<-1),(_>=-1 : *(x)) :> *(-1) + _;
freq = hslider("h:Basic Parameters/synthfreq [1][unit:Hz] [tooltip:Tone frequency]",440,20,20000,1);
gain = hslider("h:Basic Parameters/gain [1][tooltip:Gain (value between 0 and 1)]",0.8,0,10,0.01)*10;
gate = checkbox("h:Basic Parameters/gate [1][tooltip:noteOn = 1, noteOff = 0]");
preset = 1;
nMode(1) = 4;
modes(1,0) = 1;
basegains(1,0) = pow(0.9,1);
excitation(1,0) = 1*gain/nMode(1);
modes(1,1) = 2.756;
basegains(1,1) = pow(0.9,2);
excitation(1,1) = 1*gain/nMode(1);
modes(1,2) = 5.404;
basegains(1,2) = pow(0.9,3);
excitation(1,2) = 1*gain/nMode(1);
modes(1,3) = 8.933;
basegains(1,3) = pow(0.9,4);
excitation(1,3) = 1*gain/nMode(1);
nModes = nMode(preset);
tableOffset = 0;
tableSlope = 10 - (9);
delayLengthBase = ma.SR/freq;
delayLength(x) = delayLengthBase/modes(preset,x);
delayLine(x) = de.delay(4096,delayLength(x));
radius = 1 - ma.PI*32/ma.SR;
bandPassFilter(x) = bandPass(freq*modes(preset,x),radius);
baseGainApp = 0.8999999999999999 + (0.1);
velocityInputApp = 0.8;
velocityInput = velocityInputApp + _*baseGainApp,par(i,(nModes-1),(_*baseGainApp)) :> +;
maxVelocity = 0.03 + 0.1*gain;
bowVelocity = maxVelocity*en.adsr(0.02,0.005,90,0.01,gate);
bowing = bowVelocity - velocityInput <: *(bow(tableOffset,tableSlope)) : /(nModes);
resonance(x) = + : + (excitation(1,x)*gate) : delayLine(x) : _*basegains(1,x) : bandPassFilter(x);
process(x) =
(bowing <:
par(i,nModes,(resonance(i)~_)))~par(i,nModes,_) :> _ : +(x) :_;
|
e367532f25e4dd51982d5d1732d4900eb0ff79e453b9b80ff645f1f80dad5c59 | brummer10/guitarix | compressor.dsp | declare name "Compressor";
declare category "Guitar Effects";
/* Compressor unit. */
//declare name "compressor -- compressor/limiter unit";
declare author "Albert Graef";
declare version "1.0";
import("stdfaust.lib");
import("guitarix.lib");
/* Controls. */
// partition the controls into these three groups
comp_group(x) = hgroup("1-compression", x);
env_group(x) = vgroup("2-envelop", x);
gain_group(x) = vgroup("3-gain", x);
// compressor controls: ratio, threshold and knee size
ratio = nentry("ratio", 2, 1, 20, 0.1);
threshold = nentry("threshold", -20, -96, 10, 0.1);
knee = nentry("knee", 3, 0, 20, 0.1);
// attack and release controls; clamped to a minimum of 1 sample
attack = hslider("attack", 0.002, 0, 1, 0.001) : max(1/ma.SR);
release = hslider("release", 0.5, 0, 10, 0.01) : max(1/ma.SR);
// gain controls: make-up gain, compression gain meter
makeup_gain = gain_group(hslider("makeup gain", 0, -96, 96, 0.1));
gain(x) = attach(x, x : gain_group(hbargraph("gain", -96, 0)));
t = 0.1;
g = exp(-1/(ma.SR*t));
env = abs : *(1-g) : + ~ *(g);
rms = sqr : *(1-g) : + ~ *(g) : sqrt;
sqr(x) = x*x;
/* Compute the envelop of a stereo signal. Replace env with rms ba.if you want to
use the RMS value instead. */
//env2(x,y) = max(env(x),env(y));
env2(x) = max(env(x));
/* Compute the compression factor for the current input level. The gain is
always 0 dB ba.if we're below the reduced threshold, threshold-knee. Beyond
the real threshold value the level is scaled by 1/ratio. Between these two
extremes we return a convex combination of those factors. This is also
known as "soft-knee" compression: the compression kicks in gradually at
threshold-knee and reaches its full value at threshold. For special
effects, you can also achieve old-school "hard-knee" compression by setting
the knee value to fi.zero. Also note that, before computing the gain, the
input level is first smoothed out using a 1 fi.pole IIR to prevent clicks when
the input level changes abruptly. The attack and release times of this
filter are configured with the corresponding envelop controls of the
compressor. */
compress(env) = level*(1-r)/r
with {
// the (filtered) input level above the threshold
level = env : h ~ _ : ba.linear2db : (_-threshold+knee) : max(0)
with {
h(x,y) = f*x+(1-f)*y with { f = (x<y)*ga+(x>=y)*gr; };
ga = exp(-1/(ma.SR*attack));
gr = exp(-1/(ma.SR*release));
};
// the knee factor, clamped to 0..1; we add a small perturbation in
// the denominator to prevent infinities and nan when knee<<1
p = level/(knee+eps) : max(0) : min(1) with { eps = 0.001; };
// the actual compression ratio
r = 1-p+p*ratio;
};
process(x) = g(x)*x
with {
//g = env2(x) : compress : gain : +(makeup_gain) : ba.db2linear ;
g = add_dc : env : compress : ba.db2linear ;
};
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/compressor.dsp | faust | Compressor unit.
declare name "compressor -- compressor/limiter unit";
Controls.
partition the controls into these three groups
compressor controls: ratio, threshold and knee size
attack and release controls; clamped to a minimum of 1 sample
gain controls: make-up gain, compression gain meter
Compute the envelop of a stereo signal. Replace env with rms ba.if you want to
use the RMS value instead.
env2(x,y) = max(env(x),env(y));
Compute the compression factor for the current input level. The gain is
always 0 dB ba.if we're below the reduced threshold, threshold-knee. Beyond
the real threshold value the level is scaled by 1/ratio. Between these two
extremes we return a convex combination of those factors. This is also
known as "soft-knee" compression: the compression kicks in gradually at
threshold-knee and reaches its full value at threshold. For special
effects, you can also achieve old-school "hard-knee" compression by setting
the knee value to fi.zero. Also note that, before computing the gain, the
input level is first smoothed out using a 1 fi.pole IIR to prevent clicks when
the input level changes abruptly. The attack and release times of this
filter are configured with the corresponding envelop controls of the
compressor.
the (filtered) input level above the threshold
the knee factor, clamped to 0..1; we add a small perturbation in
the denominator to prevent infinities and nan when knee<<1
the actual compression ratio
g = env2(x) : compress : gain : +(makeup_gain) : ba.db2linear ; | declare name "Compressor";
declare category "Guitar Effects";
declare author "Albert Graef";
declare version "1.0";
import("stdfaust.lib");
import("guitarix.lib");
comp_group(x) = hgroup("1-compression", x);
env_group(x) = vgroup("2-envelop", x);
gain_group(x) = vgroup("3-gain", x);
ratio = nentry("ratio", 2, 1, 20, 0.1);
threshold = nentry("threshold", -20, -96, 10, 0.1);
knee = nentry("knee", 3, 0, 20, 0.1);
attack = hslider("attack", 0.002, 0, 1, 0.001) : max(1/ma.SR);
release = hslider("release", 0.5, 0, 10, 0.01) : max(1/ma.SR);
makeup_gain = gain_group(hslider("makeup gain", 0, -96, 96, 0.1));
gain(x) = attach(x, x : gain_group(hbargraph("gain", -96, 0)));
t = 0.1;
g = exp(-1/(ma.SR*t));
env = abs : *(1-g) : + ~ *(g);
rms = sqr : *(1-g) : + ~ *(g) : sqrt;
sqr(x) = x*x;
env2(x) = max(env(x));
compress(env) = level*(1-r)/r
with {
level = env : h ~ _ : ba.linear2db : (_-threshold+knee) : max(0)
with {
h(x,y) = f*x+(1-f)*y with { f = (x<y)*ga+(x>=y)*gr; };
ga = exp(-1/(ma.SR*attack));
gr = exp(-1/(ma.SR*release));
};
p = level/(knee+eps) : max(0) : min(1) with { eps = 0.001; };
r = 1-p+p*ratio;
};
process(x) = g(x)*x
with {
g = add_dc : env : compress : ba.db2linear ;
};
|
57c9ac9c3ccdf245babea02d1ce11349af34e9e5006821caeb16b140f8305413 | brummer10/guitarix | compressor.dsp | declare name "Compressor";
declare category "Guitar Effects";
/* Compressor unit. */
//declare name "compressor -- compressor/limiter unit";
declare author "Albert Graef";
declare version "1.0";
import("stdfaust.lib");
import("guitarix.lib");
rd = library("reducemaps.lib");
/* Controls. */
// partition the controls into these three groups
comp_group(x) = hgroup("1-compression", x);
env_group(x) = vgroup("2-envelop", x);
gain_group(x) = vgroup("3-gain", x);
// compressor controls: ratio, threshold and knee size
ratio = nentry("ratio[name:Ratio]", 2, 1, 20, 0.1);
threshold = nentry("threshold[name:Threshold]", -20, -96, 10, 0.1);
knee = nentry("knee[name:Knee]", 3, 0, 20, 0.1);
// attack and release controls; clamped to a minimum of 1 sample
attack = hslider("attack[name:Attack]", 0.002, 0, 1, 0.001) : max(1/ma.SR);
release = hslider("release[name:Release]", 0.5, 0, 10, 0.01) : max(1/ma.SR);
// gain controls: make-up gain, compression gain meter
makeup_gain = gain_group(hslider("makeup gain[name:Makeup]", 0, -96, 96, 0.1));
gain(x) = attach(x, x : gain_group(hbargraph("gain", -96, 0)));
t = 0.1;
g = exp(-1/(ma.SR*t));
env = abs : *(1-g) : + ~ *(g);
rms = sqr : *(1-g) : + ~ *(g) : sqrt;
sqr(x) = x*x;
/* Compute the envelop of a stereo signal. Replace env with rms ba.if you want to
use the RMS value instead. */
//env2(x,y) = max(env(x),env(y));
env2(x) = max(env(x));
/* Compute the compression factor for the current input level. The gain is
always 0 dB ba.if we're below the reduced threshold, threshold-knee. Beyond
the real threshold value the level is scaled by 1/ratio. Between these two
extremes we return a convex combination of those factors. This is also
known as "soft-knee" compression: the compression kicks in gradually at
threshold-knee and reaches its full value at threshold. For special
effects, you can also achieve old-school "hard-knee" compression by setting
the knee value to fi.zero. Also note that, before computing the gain, the
input level is first smoothed out using a 1 fi.pole IIR to prevent clicks when
the input level changes abruptly. The attack and release times of this
filter are configured with the corresponding envelop controls of the
compressor. */
compress(env) = level*(1-r)/r
with {
// the (filtered) input level above the threshold
level = env : h ~ _ : ba.linear2db : (_-threshold+knee) : max(0)
with {
h(x,y) = f*x+(1-f)*y with { f = (x<y)*ga+(x>=y)*gr; };
ga = exp(-1/(ma.SR*attack));
gr = exp(-1/(ma.SR*release));
};
// the knee factor, clamped to 0..1; we add a small perturbation in
// the denominator to prevent infinities and nan when knee<<1
p = level/(knee+eps) : max(0) : min(1) with { eps = 0.001; };
// the actual compression ratio
r = 1-p+p*ratio;
};
vmeter1(x) = attach(x, envelop(x) : vbargraph("v1[nomidi][log]", 0, 40));
envelop = abs : max ~ (1.0/ma.SR) : rd.maxn(2048); // : max(ba.db2linear(-70)) : ba.linear2db;
process(x) = g(x)*x
with {
//g = env2(x) : compress : gain : +(makeup_gain) : ba.db2linear ;
g = add_dc : env : compress : vmeter1 : ba.db2linear ;
};
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/compressor.dsp | faust | Compressor unit.
declare name "compressor -- compressor/limiter unit";
Controls.
partition the controls into these three groups
compressor controls: ratio, threshold and knee size
attack and release controls; clamped to a minimum of 1 sample
gain controls: make-up gain, compression gain meter
Compute the envelop of a stereo signal. Replace env with rms ba.if you want to
use the RMS value instead.
env2(x,y) = max(env(x),env(y));
Compute the compression factor for the current input level. The gain is
always 0 dB ba.if we're below the reduced threshold, threshold-knee. Beyond
the real threshold value the level is scaled by 1/ratio. Between these two
extremes we return a convex combination of those factors. This is also
known as "soft-knee" compression: the compression kicks in gradually at
threshold-knee and reaches its full value at threshold. For special
effects, you can also achieve old-school "hard-knee" compression by setting
the knee value to fi.zero. Also note that, before computing the gain, the
input level is first smoothed out using a 1 fi.pole IIR to prevent clicks when
the input level changes abruptly. The attack and release times of this
filter are configured with the corresponding envelop controls of the
compressor.
the (filtered) input level above the threshold
the knee factor, clamped to 0..1; we add a small perturbation in
the denominator to prevent infinities and nan when knee<<1
the actual compression ratio
: max(ba.db2linear(-70)) : ba.linear2db;
g = env2(x) : compress : gain : +(makeup_gain) : ba.db2linear ; | declare name "Compressor";
declare category "Guitar Effects";
declare author "Albert Graef";
declare version "1.0";
import("stdfaust.lib");
import("guitarix.lib");
rd = library("reducemaps.lib");
comp_group(x) = hgroup("1-compression", x);
env_group(x) = vgroup("2-envelop", x);
gain_group(x) = vgroup("3-gain", x);
ratio = nentry("ratio[name:Ratio]", 2, 1, 20, 0.1);
threshold = nentry("threshold[name:Threshold]", -20, -96, 10, 0.1);
knee = nentry("knee[name:Knee]", 3, 0, 20, 0.1);
attack = hslider("attack[name:Attack]", 0.002, 0, 1, 0.001) : max(1/ma.SR);
release = hslider("release[name:Release]", 0.5, 0, 10, 0.01) : max(1/ma.SR);
makeup_gain = gain_group(hslider("makeup gain[name:Makeup]", 0, -96, 96, 0.1));
gain(x) = attach(x, x : gain_group(hbargraph("gain", -96, 0)));
t = 0.1;
g = exp(-1/(ma.SR*t));
env = abs : *(1-g) : + ~ *(g);
rms = sqr : *(1-g) : + ~ *(g) : sqrt;
sqr(x) = x*x;
env2(x) = max(env(x));
compress(env) = level*(1-r)/r
with {
level = env : h ~ _ : ba.linear2db : (_-threshold+knee) : max(0)
with {
h(x,y) = f*x+(1-f)*y with { f = (x<y)*ga+(x>=y)*gr; };
ga = exp(-1/(ma.SR*attack));
gr = exp(-1/(ma.SR*release));
};
p = level/(knee+eps) : max(0) : min(1) with { eps = 0.001; };
r = 1-p+p*ratio;
};
vmeter1(x) = attach(x, envelop(x) : vbargraph("v1[nomidi][log]", 0, 40));
process(x) = g(x)*x
with {
g = add_dc : env : compress : vmeter1 : ba.db2linear ;
};
|
5c4d549fcf78ab6dca56379e782a86acf9048788e1b2aa554a0941ba6da08d78 | brummer10/guitarix | mbchor.dsp | declare id "mbchor";
declare name "Multi Band Chorus";
declare shortname "MB Chorus";
declare category "Modulation";
declare description "Multi Band Chorus";
import("stdfaust.lib");
import("reducemaps.lib");
hifr1 =hslider("crossover_b1_b2 [log][name:Crossover B1-B2 (hz)][tooltip: Crossover fi.bandpass frequency]" ,80 , 20, 20000, 1.08);
hifr2 =hslider("crossover_b2_b3 [log][name:Crossover B2-B3 (hz)][tooltip: Crossover fi.bandpass frequency]",210,20,20000,1.08);
hifr3 =hslider("crossover_b3_b4 [log][name:Crossover B3-B4 (hz)][tooltip: Crossover fi.bandpass frequency]",1700,20,20000,1.08);
hifr4 =hslider("crossover_b4_b5 [log][name:Crossover B4-B5 (hz)][tooltip: Crossover fi.bandpass frequency]",5000,20,20000,1.08);
geq = fi.filterbank(3, (hifr1,hifr2,hifr3,hifr4));
l1 = hslider("level1", 0.5, 0, 1, 0.01);
f1 = hslider("freq1[tooltip:Beats per Minute]",30,24,360,1)/60;
d1 = hslider("delay1", 0.02, 0, 0.2, 0.01): si.smooth(0.999);
de1 = hslider("depth1", 0.02, 0.01, 1, 0.01)/10;
l2 = hslider("level2", 0.5, 0, 1, 0.01);
f2 = hslider("freq2[tooltip:Beats per Minute]",60,24,360,1)/60;
d2 = hslider("delay2", 0.04, 0, 0.2, 0.01): si.smooth(0.999);
de2 = hslider("depth2", 0.04, 0.01, 1, 0.01)/10;
l3 = hslider("level3", 0.5, 0, 1, 0.01);
f3 = hslider("freq3[tooltip:Beats per Minute]",90,24,360,1)/60;
d3 = hslider("delay3", 0.06, 0, 0.2, 0.01): si.smooth(0.999);
de3 = hslider("depth3", 0.06, 0.01, 1, 0.01)/10;
l4 = hslider("level4", 0.5, 0, 1, 0.01);
f4 = hslider("freq4[tooltip:Beats per Minute]",120,24,360,1)/60;
d4 = hslider("delay4", 0.08, 0, 0.2, 0.01): si.smooth(0.999);
de4 = hslider("depth4", 0.08, 0.01, 1, 0.01)/10;
l5 = hslider("level5", 0.5, 0, 1, 0.01);
f5 = hslider("freq5[tooltip:Beats per Minute]",150,24,360,1)/60;
d5 = hslider("delay5", 0.10, 0, 0.2, 0.01): si.smooth(0.999);
de5 = hslider("depth5", 0.10, 0.01, 1, 0.01)/10;
tblosc(n,f,freq,mod) = (1-d)*rdtable(n,wform,i&(n-1)) +
d*rdtable(n,wform,(i+1)&(n-1))
with {
wform = ba.time*(2.0*ma.PI)/n : f;
phase = freq/ma.SR : (+ : ma.decimal) ~ _;
modphase = ma.decimal(phase+mod/(2*ma.PI))*n;
i = int(floor(modphase));
d = ma.decimal(modphase);
};
chor(dtime,freq,depth,lev) = chorus(dtime,freq,depth,lev,0) : *(lev)
with {
chorus(dtime,freq,depth,lev,phase,x)
= x+lev*de.fdelay(1<<16, t, x)
with {
t = ma.SR*dtime/2*(1+depth*tblosc(1<<16, sin, freq, phase));
};
};
vmeter1(x) = attach(x, envelop(x) : vbargraph("v1[nomidi][log]", -0, +1));
vmeter2(x) = attach(x, envelop(x) : vbargraph("v2[nomidi][log]", -0, +1));
vmeter3(x) = attach(x, envelop(x) : vbargraph("v3[nomidi][log]", -0, +1));
vmeter4(x) = attach(x, envelop(x) : vbargraph("v4[nomidi][log]", -0, +1));
vmeter5(x) = attach(x, envelop(x) : vbargraph("v5[nomidi][log]", -0, +1));
envelop = abs : max ~ (1.0/ma.SR) :mean(4096) ; // : max(ba.db2linear(-70)) : ba.linear2db;
process = _<:(geq:( dist5s , dist4s , dist3s, dist2s, dist1s)),_ :>_ with {
dist1s = chor(d1,f1,de1,l1) : vmeter1;
dist2s = chor(d2,f2,de2,l2) : vmeter2;
dist3s = chor(d3,f3,de3,l3) : vmeter3;
dist4s = chor(d4,f4,de4,l4) : vmeter4;
dist5s = chor(d5,f5,de5,l5) : vmeter5;
};
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/plugins/mbchor.dsp | faust | : max(ba.db2linear(-70)) : ba.linear2db; | declare id "mbchor";
declare name "Multi Band Chorus";
declare shortname "MB Chorus";
declare category "Modulation";
declare description "Multi Band Chorus";
import("stdfaust.lib");
import("reducemaps.lib");
hifr1 =hslider("crossover_b1_b2 [log][name:Crossover B1-B2 (hz)][tooltip: Crossover fi.bandpass frequency]" ,80 , 20, 20000, 1.08);
hifr2 =hslider("crossover_b2_b3 [log][name:Crossover B2-B3 (hz)][tooltip: Crossover fi.bandpass frequency]",210,20,20000,1.08);
hifr3 =hslider("crossover_b3_b4 [log][name:Crossover B3-B4 (hz)][tooltip: Crossover fi.bandpass frequency]",1700,20,20000,1.08);
hifr4 =hslider("crossover_b4_b5 [log][name:Crossover B4-B5 (hz)][tooltip: Crossover fi.bandpass frequency]",5000,20,20000,1.08);
geq = fi.filterbank(3, (hifr1,hifr2,hifr3,hifr4));
l1 = hslider("level1", 0.5, 0, 1, 0.01);
f1 = hslider("freq1[tooltip:Beats per Minute]",30,24,360,1)/60;
d1 = hslider("delay1", 0.02, 0, 0.2, 0.01): si.smooth(0.999);
de1 = hslider("depth1", 0.02, 0.01, 1, 0.01)/10;
l2 = hslider("level2", 0.5, 0, 1, 0.01);
f2 = hslider("freq2[tooltip:Beats per Minute]",60,24,360,1)/60;
d2 = hslider("delay2", 0.04, 0, 0.2, 0.01): si.smooth(0.999);
de2 = hslider("depth2", 0.04, 0.01, 1, 0.01)/10;
l3 = hslider("level3", 0.5, 0, 1, 0.01);
f3 = hslider("freq3[tooltip:Beats per Minute]",90,24,360,1)/60;
d3 = hslider("delay3", 0.06, 0, 0.2, 0.01): si.smooth(0.999);
de3 = hslider("depth3", 0.06, 0.01, 1, 0.01)/10;
l4 = hslider("level4", 0.5, 0, 1, 0.01);
f4 = hslider("freq4[tooltip:Beats per Minute]",120,24,360,1)/60;
d4 = hslider("delay4", 0.08, 0, 0.2, 0.01): si.smooth(0.999);
de4 = hslider("depth4", 0.08, 0.01, 1, 0.01)/10;
l5 = hslider("level5", 0.5, 0, 1, 0.01);
f5 = hslider("freq5[tooltip:Beats per Minute]",150,24,360,1)/60;
d5 = hslider("delay5", 0.10, 0, 0.2, 0.01): si.smooth(0.999);
de5 = hslider("depth5", 0.10, 0.01, 1, 0.01)/10;
tblosc(n,f,freq,mod) = (1-d)*rdtable(n,wform,i&(n-1)) +
d*rdtable(n,wform,(i+1)&(n-1))
with {
wform = ba.time*(2.0*ma.PI)/n : f;
phase = freq/ma.SR : (+ : ma.decimal) ~ _;
modphase = ma.decimal(phase+mod/(2*ma.PI))*n;
i = int(floor(modphase));
d = ma.decimal(modphase);
};
chor(dtime,freq,depth,lev) = chorus(dtime,freq,depth,lev,0) : *(lev)
with {
chorus(dtime,freq,depth,lev,phase,x)
= x+lev*de.fdelay(1<<16, t, x)
with {
t = ma.SR*dtime/2*(1+depth*tblosc(1<<16, sin, freq, phase));
};
};
vmeter1(x) = attach(x, envelop(x) : vbargraph("v1[nomidi][log]", -0, +1));
vmeter2(x) = attach(x, envelop(x) : vbargraph("v2[nomidi][log]", -0, +1));
vmeter3(x) = attach(x, envelop(x) : vbargraph("v3[nomidi][log]", -0, +1));
vmeter4(x) = attach(x, envelop(x) : vbargraph("v4[nomidi][log]", -0, +1));
vmeter5(x) = attach(x, envelop(x) : vbargraph("v5[nomidi][log]", -0, +1));
process = _<:(geq:( dist5s , dist4s , dist3s, dist2s, dist1s)),_ :>_ with {
dist1s = chor(d1,f1,de1,l1) : vmeter1;
dist2s = chor(d2,f2,de2,l2) : vmeter2;
dist3s = chor(d3,f3,de3,l3) : vmeter3;
dist4s = chor(d4,f4,de4,l4) : vmeter4;
dist5s = chor(d5,f5,de5,l5) : vmeter5;
};
|
caa3009e532b1adb439f7bd333d0859a530d86758a292f90180766b56e703fff | brummer10/guitarix | mbdel.dsp | declare id "mbdel";
declare name "MultiBand Delay";
declare shortname "MB Delay";
declare category "Echo / Delay";
declare description "Multi Band Delay";
import("stdfaust.lib");
rd = library("reducemaps.lib");
hifr1 =hslider("crossover_b1_b2 [log][name:Crossover B1-B2 (hz)][tooltip: Crossover fi.bandpass frequency]" ,80 , 20, 20000, 1.08);
hifr2 =hslider("crossover_b2_b3 [log][name:Crossover B2-B3 (hz)][tooltip: Crossover fi.bandpass frequency]",210,20,20000,1.08);
hifr3 =hslider("crossover_b3_b4 [log][name:Crossover B3-B4 (hz)][tooltip: Crossover fi.bandpass frequency]",1700,20,20000,1.08);
hifr4 =hslider("crossover_b4_b5 [log][name:Crossover B4-B5 (hz)][tooltip: Crossover fi.bandpass frequency]",5000,20,20000,1.08);
geq = fi.filterbank(3, (hifr1,hifr2,hifr3,hifr4));
interp = 100*ma.SR/1000.0;
N = int( 2^18);
g1 = vslider("gain1", -10, -20, 20, 0.1) : ba.db2linear : si.smooth(0.999);
d1 = ba.tempo(hslider("delay1[tooltip:Delay in Beats per Minute]",30,24,360,1));
g2 = vslider("gain2", -5, -20, 20, 0.1) : ba.db2linear : si.smooth(0.999);
d2 = ba.tempo(hslider("delay2[tooltip:Delay in Beats per Minute]",60,24,360,1));
g3 = vslider("gain3", -2, -20, 20, 0.1) : ba.db2linear : si.smooth(0.999);
d3 = ba.tempo(hslider("delay3[tooltip:Delay in Beats per Minute]",90,24,360,1));
g4 = vslider("gain4", 0, -20, 20, 0.1) : ba.db2linear : si.smooth(0.999);
d4 = ba.tempo(hslider("delay4[tooltip:Delay in Beats per Minute]",120,24,360,1));
g5 = vslider("gain5", -10, -20, 20, 0.1) : ba.db2linear : si.smooth(0.999);
d5 = ba.tempo(hslider("delay5[tooltip:Delay in Beats per Minute]",150,24,360,1));
del(g,d,f) = *(g) : (+: de.sdelay(N, interp,d))~(*(f)) ;
vmeter1(x) = attach(x, envelop(x) : vbargraph("v1[nomidi:no]", -70, +5));
vmeter2(x) = attach(x, envelop(x) : vbargraph("v2[nomidi:no]", -70, +5));
vmeter3(x) = attach(x, envelop(x) : vbargraph("v3[nomidi:no]", -70, +5));
vmeter4(x) = attach(x, envelop(x) : vbargraph("v4[nomidi:no]", -70, +5));
vmeter5(x) = attach(x, envelop(x) : vbargraph("v5[nomidi:no]", -70, +5));
f1 = vslider("feedback1[tooltip:percentage of the feedback level in the de.delay loop]", 50, 1, 100, 1)/100 ;
f2 = vslider("feedback2[tooltip:percentage of the feedback level in the de.delay loop]", 50, 1, 100, 1)/100 ;
f3 = vslider("feedback3[tooltip:percentage of the feedback level in the de.delay loop]", 50, 1, 100, 1)/100 ;
f4 = vslider("feedback4[tooltip:percentage of the feedback level in the de.delay loop]", 50, 1, 100, 1)/100 ;
f5 = vslider("feedback5[tooltip:percentage of the feedback level in the de.delay loop]", 50, 1, 100, 1)/100 ;
envelop = abs : max ~ (1.0/ma.SR) : rd.maxn(4096) ;
//envelop = abs : max ~ (1.0/ma.SR) : mean(4096) ; // : max(ba.db2linear(-70)) : ba.linear2db;
process = _<:(geq: ( dist5s , dist4s , dist3s, dist2s, dist1s)),_:>_ with {
dist1s = del(g1,d1,f1) : vmeter1;
dist2s = del(g2,d2,f2) : vmeter2;
dist3s = del(g3,d3,f3) : vmeter3;
dist4s = del(g4,d4,f4) : vmeter4;
dist5s = del(g5,d5,f5) : vmeter5;
};
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/mbdel.dsp | faust | envelop = abs : max ~ (1.0/ma.SR) : mean(4096) ; // : max(ba.db2linear(-70)) : ba.linear2db; | declare id "mbdel";
declare name "MultiBand Delay";
declare shortname "MB Delay";
declare category "Echo / Delay";
declare description "Multi Band Delay";
import("stdfaust.lib");
rd = library("reducemaps.lib");
hifr1 =hslider("crossover_b1_b2 [log][name:Crossover B1-B2 (hz)][tooltip: Crossover fi.bandpass frequency]" ,80 , 20, 20000, 1.08);
hifr2 =hslider("crossover_b2_b3 [log][name:Crossover B2-B3 (hz)][tooltip: Crossover fi.bandpass frequency]",210,20,20000,1.08);
hifr3 =hslider("crossover_b3_b4 [log][name:Crossover B3-B4 (hz)][tooltip: Crossover fi.bandpass frequency]",1700,20,20000,1.08);
hifr4 =hslider("crossover_b4_b5 [log][name:Crossover B4-B5 (hz)][tooltip: Crossover fi.bandpass frequency]",5000,20,20000,1.08);
geq = fi.filterbank(3, (hifr1,hifr2,hifr3,hifr4));
interp = 100*ma.SR/1000.0;
N = int( 2^18);
g1 = vslider("gain1", -10, -20, 20, 0.1) : ba.db2linear : si.smooth(0.999);
d1 = ba.tempo(hslider("delay1[tooltip:Delay in Beats per Minute]",30,24,360,1));
g2 = vslider("gain2", -5, -20, 20, 0.1) : ba.db2linear : si.smooth(0.999);
d2 = ba.tempo(hslider("delay2[tooltip:Delay in Beats per Minute]",60,24,360,1));
g3 = vslider("gain3", -2, -20, 20, 0.1) : ba.db2linear : si.smooth(0.999);
d3 = ba.tempo(hslider("delay3[tooltip:Delay in Beats per Minute]",90,24,360,1));
g4 = vslider("gain4", 0, -20, 20, 0.1) : ba.db2linear : si.smooth(0.999);
d4 = ba.tempo(hslider("delay4[tooltip:Delay in Beats per Minute]",120,24,360,1));
g5 = vslider("gain5", -10, -20, 20, 0.1) : ba.db2linear : si.smooth(0.999);
d5 = ba.tempo(hslider("delay5[tooltip:Delay in Beats per Minute]",150,24,360,1));
del(g,d,f) = *(g) : (+: de.sdelay(N, interp,d))~(*(f)) ;
vmeter1(x) = attach(x, envelop(x) : vbargraph("v1[nomidi:no]", -70, +5));
vmeter2(x) = attach(x, envelop(x) : vbargraph("v2[nomidi:no]", -70, +5));
vmeter3(x) = attach(x, envelop(x) : vbargraph("v3[nomidi:no]", -70, +5));
vmeter4(x) = attach(x, envelop(x) : vbargraph("v4[nomidi:no]", -70, +5));
vmeter5(x) = attach(x, envelop(x) : vbargraph("v5[nomidi:no]", -70, +5));
f1 = vslider("feedback1[tooltip:percentage of the feedback level in the de.delay loop]", 50, 1, 100, 1)/100 ;
f2 = vslider("feedback2[tooltip:percentage of the feedback level in the de.delay loop]", 50, 1, 100, 1)/100 ;
f3 = vslider("feedback3[tooltip:percentage of the feedback level in the de.delay loop]", 50, 1, 100, 1)/100 ;
f4 = vslider("feedback4[tooltip:percentage of the feedback level in the de.delay loop]", 50, 1, 100, 1)/100 ;
f5 = vslider("feedback5[tooltip:percentage of the feedback level in the de.delay loop]", 50, 1, 100, 1)/100 ;
envelop = abs : max ~ (1.0/ma.SR) : rd.maxn(4096) ;
process = _<:(geq: ( dist5s , dist4s , dist3s, dist2s, dist1s)),_:>_ with {
dist1s = del(g1,d1,f1) : vmeter1;
dist2s = del(g2,d2,f2) : vmeter2;
dist3s = del(g3,d3,f3) : vmeter3;
dist4s = del(g4,d4,f4) : vmeter4;
dist5s = del(g5,d5,f5) : vmeter5;
};
|
63cde9bdbf459f74109d8ae0f485a4c3dc0917dd29a8b56a2b1b98f2043bfd50 | brummer10/guitarix | tonecontroll.dsp | declare id "tonemodul";
declare name "3 Band EQ";
declare category "Tone Control";
declare version "0.01";
declare author "brummer";
declare license "BSD";
declare copyright "(c)brummer 2008";
import("stdfaust.lib");
import("guitarix.lib");
F = 600; //nentry("split_low_freq", 250, 20, 600, 10);
F1 = 1200; //nentry("split_middle_freq", 650, 600, 1250, 10);
F2 = 2400; //nentry("split_high_freq", 1250, 1250, 12000, 10);
/**********************************************************************
*** this part is included here for backward compatibility from 0.9.27 to
*** 0.9.24
***********************************************************************/
//------------------------------ ba.count and ba.take --------------------------------------
countN ((xs, xxs)) = 1 + countN(xxs);
countN (xx) = 1;
takeN (1, (xs, xxs)) = xs;
takeN (1, xs) = xs;
takeN (nn, (xs, xxs)) = takeN (nn-1, xxs);
//------------------------------ low/high-passfilters --------------------------------------
tf1N(b0,b1,a1) = _ <: *(b0), (mem : *(b1)) :> + ~ *(0-a1);
tf2N(b0,b1,b2,a1,a2) = sub ~ conv2(a1,a2) : conv3(b0,b1,b2)
with {
conv3(k0,k1,k2,x) = k0*x + k1*x' + k2*x'';
conv2(k0,k1,x) = k0*x + k1*x';
sub(x,y) = y-x;
};
tf1sN(b1,b0,a0,w1) = tf1N(b0d,b1d,a1d)
with {
c = 1/tan((w1)*0.5/ma.SR); // bilinear-transform scale-factor
d = a0 + c;
b1d = (b0 - b1*c) / d;
b0d = (b0 + b1*c) / d;
a1d = (a0 - c) / d;
};
tf2sN(b2,b1,b0,a1,a0,w1) = tf2N(b0d,b1d,b2d,a1d,a2d)
with {
c = 1/tan((w1)*0.5/ma.SR); // bilinear-transform scale-factor
csq = c*c;
d = a0 + a1 * c + csq;
b0d = (b0 + b1 * c + b2 * csq)/d;
b1d = 2 * (b0 - b2 * csq)/d;
b2d = (b0 - b1 * c + b2 * csq)/d;
a1d = 2 * (a0 - csq)/d;
a2d = (a0 - a1*c + csq)/d;
};
lowpassN(N,fc) = lowpass0_highpass1N(0,N,fc);
highpassN(N,fc) = lowpass0_highpass1N(1,N,fc);
lowpass0_highpass1N(s,N,fc) = lphpr(s,N,N,fc)
with {
lphpr(s,0,N,fc) = _;
lphpr(s,1,N,fc) = tf1sN(s,1-s,1,2*ma.PI*fc);
lphpr(s,O,N,fc) = lphpr(s,(O-2),N,fc) : tf2sN(s,0,1-s,a1s,1,w1) with {
parity = N % 2;
S = (O-parity)/2; // current section number
a1s = -2*cos(-ma.PI + (1-parity)*ma.PI/(2*N) + (S-1+parity)*ma.PI/N);
w1 = 2*ma.PI*fc;
};
};
//------------------------------ an.analyzer --------------------------------------
analyzern(O,lfreqs) = _ <: bsplit(nb) with
{
nb = countN(lfreqs);
fc(n) = takeN(n, lfreqs);
lp(n) = lowpassN(O,fc(n));
hp(n) = highpassN(O,fc(n));
bsplit(0) = _;
bsplit(i) = hp(i), (lp(i) <: bsplit(i-1));
};
analyzerN(lfreqs) = analyzern(3,lfreqs);
filterbankn(O,lfreqs) = analyzern(O,lfreqs) : delayeq with
{
nb = ba.count(lfreqs);
fc(n) = ba.take(n, lfreqs);
ap(n) = fi.highpass_plus_lowpass(O,fc(n));
delayeq = par(i,nb-1,apchain(nb-1-i)),_,_;
apchain(0) = _;
apchain(i) = ap(i) : apchain(i-1);
};
filterbankN(lfreqs) = fi.filterbank(3,lfreqs);
/**********************************************************************
*** end for backward compatibility from 0.9.27 to
*** 0.9.24 , it could removed when switch completely to > 0.9.27
***********************************************************************/
//----------tone_controll---------
t = vslider("Treble", 0., -5., 5, 0.01): ba.db2linear : smoothi(0.999);
m = vslider("Middle", 0., -5., 5, 0.01): ba.db2linear : smoothi(0.999);
l = vslider("Bass", 0., -5., 5, 0.01): ba.db2linear : smoothi(0.999) ;
//tstack = component("tonestack.dsp");
sharp = vslider("sharper[name:sharper]", -2, -2.5, 5, 0.1);
press = -5. * sharp;
attack = 0.005;
release = 5.0;
knee = 10.5;
ratio = 3.0;
env = abs : max(1);
compress(env) = level * (1-r)/r
with {
level = env : h ~ _ : ba.linear2db : (_ - press ) : max(0)
with {
h(x,y) = f*x+(1-f)*y with { f = (x<y)*ga+(x>=y)*gr; };
ga = exp(-1/(ma.SR*attack));
gr = exp(-1/(ma.SR*release));
};
p = level/(knee+eps) : max(0) : min(1) with { eps = 0.001; };
r = 1 - p + p * ratio;
};
comp1(x) = g(x) * x
with {
g = env : compress + sharp : ba.db2linear;
};
comp = BP( comp1);
tone_controll = _ : filterbankN((F,F2)): *(t),*(m),*(l):>_;
process = (tone_controll : comp) ,(tone_controll : comp);
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/tonecontroll.dsp | faust | nentry("split_low_freq", 250, 20, 600, 10);
nentry("split_middle_freq", 650, 600, 1250, 10);
nentry("split_high_freq", 1250, 1250, 12000, 10);
*********************************************************************
*** this part is included here for backward compatibility from 0.9.27 to
*** 0.9.24
**********************************************************************
------------------------------ ba.count and ba.take --------------------------------------
------------------------------ low/high-passfilters --------------------------------------
bilinear-transform scale-factor
bilinear-transform scale-factor
current section number
------------------------------ an.analyzer --------------------------------------
*********************************************************************
*** end for backward compatibility from 0.9.27 to
*** 0.9.24 , it could removed when switch completely to > 0.9.27
**********************************************************************
----------tone_controll---------
tstack = component("tonestack.dsp"); | declare id "tonemodul";
declare name "3 Band EQ";
declare category "Tone Control";
declare version "0.01";
declare author "brummer";
declare license "BSD";
declare copyright "(c)brummer 2008";
import("stdfaust.lib");
import("guitarix.lib");
countN ((xs, xxs)) = 1 + countN(xxs);
countN (xx) = 1;
takeN (1, (xs, xxs)) = xs;
takeN (1, xs) = xs;
takeN (nn, (xs, xxs)) = takeN (nn-1, xxs);
tf1N(b0,b1,a1) = _ <: *(b0), (mem : *(b1)) :> + ~ *(0-a1);
tf2N(b0,b1,b2,a1,a2) = sub ~ conv2(a1,a2) : conv3(b0,b1,b2)
with {
conv3(k0,k1,k2,x) = k0*x + k1*x' + k2*x'';
conv2(k0,k1,x) = k0*x + k1*x';
sub(x,y) = y-x;
};
tf1sN(b1,b0,a0,w1) = tf1N(b0d,b1d,a1d)
with {
d = a0 + c;
b1d = (b0 - b1*c) / d;
b0d = (b0 + b1*c) / d;
a1d = (a0 - c) / d;
};
tf2sN(b2,b1,b0,a1,a0,w1) = tf2N(b0d,b1d,b2d,a1d,a2d)
with {
csq = c*c;
d = a0 + a1 * c + csq;
b0d = (b0 + b1 * c + b2 * csq)/d;
b1d = 2 * (b0 - b2 * csq)/d;
b2d = (b0 - b1 * c + b2 * csq)/d;
a1d = 2 * (a0 - csq)/d;
a2d = (a0 - a1*c + csq)/d;
};
lowpassN(N,fc) = lowpass0_highpass1N(0,N,fc);
highpassN(N,fc) = lowpass0_highpass1N(1,N,fc);
lowpass0_highpass1N(s,N,fc) = lphpr(s,N,N,fc)
with {
lphpr(s,0,N,fc) = _;
lphpr(s,1,N,fc) = tf1sN(s,1-s,1,2*ma.PI*fc);
lphpr(s,O,N,fc) = lphpr(s,(O-2),N,fc) : tf2sN(s,0,1-s,a1s,1,w1) with {
parity = N % 2;
a1s = -2*cos(-ma.PI + (1-parity)*ma.PI/(2*N) + (S-1+parity)*ma.PI/N);
w1 = 2*ma.PI*fc;
};
};
analyzern(O,lfreqs) = _ <: bsplit(nb) with
{
nb = countN(lfreqs);
fc(n) = takeN(n, lfreqs);
lp(n) = lowpassN(O,fc(n));
hp(n) = highpassN(O,fc(n));
bsplit(0) = _;
bsplit(i) = hp(i), (lp(i) <: bsplit(i-1));
};
analyzerN(lfreqs) = analyzern(3,lfreqs);
filterbankn(O,lfreqs) = analyzern(O,lfreqs) : delayeq with
{
nb = ba.count(lfreqs);
fc(n) = ba.take(n, lfreqs);
ap(n) = fi.highpass_plus_lowpass(O,fc(n));
delayeq = par(i,nb-1,apchain(nb-1-i)),_,_;
apchain(0) = _;
apchain(i) = ap(i) : apchain(i-1);
};
filterbankN(lfreqs) = fi.filterbank(3,lfreqs);
t = vslider("Treble", 0., -5., 5, 0.01): ba.db2linear : smoothi(0.999);
m = vslider("Middle", 0., -5., 5, 0.01): ba.db2linear : smoothi(0.999);
l = vslider("Bass", 0., -5., 5, 0.01): ba.db2linear : smoothi(0.999) ;
sharp = vslider("sharper[name:sharper]", -2, -2.5, 5, 0.1);
press = -5. * sharp;
attack = 0.005;
release = 5.0;
knee = 10.5;
ratio = 3.0;
env = abs : max(1);
compress(env) = level * (1-r)/r
with {
level = env : h ~ _ : ba.linear2db : (_ - press ) : max(0)
with {
h(x,y) = f*x+(1-f)*y with { f = (x<y)*ga+(x>=y)*gr; };
ga = exp(-1/(ma.SR*attack));
gr = exp(-1/(ma.SR*release));
};
p = level/(knee+eps) : max(0) : min(1) with { eps = 0.001; };
r = 1 - p + p * ratio;
};
comp1(x) = g(x) * x
with {
g = env : compress + sharp : ba.db2linear;
};
comp = BP( comp1);
tone_controll = _ : filterbankN((F,F2)): *(t),*(m),*(l):>_;
process = (tone_controll : comp) ,(tone_controll : comp);
|
5e2758060ee9f0d4df4f65f1e9101326eec400b3f9cd0f7813c2ec7e3da4476d | brummer10/guitarix | maestrowah.dsp | // generated automatically
// DO NOT MODIFY!
declare id "maestrowah";
declare name "Maestro Wah";
declare category "Guitar Effects";
declare shortname "Maestro Wah";
declare description "Maestro Boomerang Wah EG-1";
import("stdfaust.lib");
import("guitarix.lib");
process(x) = x : _<:*(dry),(*(wet) : pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0))):>_ with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = fi.dcblockerat(64.7682298922);
wet = wah_ctrl.wet_dry;
dry = 1 - wet;
Wah1 = (x : an.amp_follower_ud(0.01,0.1) : min(0.75) : max(0.09) );
Wah2 = wah_ctrl.wah : Inverted(1) : LogPot(5) : si.smooth(s);
sl = wah_ctrl.mode;
Wah3 = (os.oscs(freq) + 1) / 2 : min(0.91) : max(0.25) : Inverted(1) with {
freq = wah_ctrl.freq;
};
Wah = select3(sl, Wah2, Wah1, Wah3);
b0 = Wah*(Wah*pow(fs,2)*(fs*(2.72075590065939e-21*fs + 2.47828940556324e-17) + 8.86819759919558e-14) + pow(fs,2)*(fs*(-2.71455853073723e-21*fs - 2.47794028705763e-17) - 8.86817888313842e-14)) + fs*(fs*(fs*(-3.51316538913314e-20*fs - 4.11229500551683e-16) - 1.76902751745081e-12) - 1.98647626221981e-11);
b1 = Wah*(Wah*pow(fs,3)*(-1.08830236026375e-20*fs - 4.95657881112649e-17) + pow(fs,3)*(1.08582341229489e-20*fs + 4.95588057411526e-17)) + fs*(pow(fs,2)*(1.40526615565326e-19*fs + 8.22459001103366e-16) - 3.97295252443962e-11);
b2 = Wah*(Wah*pow(fs,2)*(1.63245354039563e-20*pow(fs,2) - 1.77363951983912e-13) + pow(fs,2)*(-1.62873511844234e-20*pow(fs,2) + 1.77363577662768e-13)) + pow(fs,2)*(-2.10789923347988e-19*pow(fs,2) + 3.53805503490162e-12);
b3 = Wah*(Wah*pow(fs,3)*(-1.08830236026375e-20*fs + 4.95657881112649e-17) + pow(fs,3)*(1.08582341229489e-20*fs - 4.95588057411526e-17)) + fs*(pow(fs,2)*(1.40526615565326e-19*fs - 8.22459001103366e-16) + 3.97295252443962e-11);
b4 = Wah*(Wah*pow(fs,2)*(fs*(2.72075590065939e-21*fs - 2.47828940556324e-17) + 8.86819759919558e-14) + pow(fs,2)*(fs*(-2.71455853073723e-21*fs + 2.47794028705763e-17) - 8.86817888313842e-14)) + fs*(fs*(fs*(-3.51316538913314e-20*fs + 4.11229500551683e-16) - 1.76902751745081e-12) + 1.98647626221981e-11);
a0 = Wah*(Wah*pow(fs,2)*(fs*(-4.53925105453318e-22*fs - 2.20007271917577e-18) - 1.9840085993285e-14) + fs*(fs*(fs*(3.15399184914731e-19*fs + 2.2050952353796e-17) + 2.81635784152467e-14) + 3.968017198657e-12)) + fs*(fs*(fs*(2.95651915836617e-20*fs + 3.70386813965067e-17) + 5.39738799500148e-13) + 7.65730526965241e-11) + 7.93603439731401e-10;
a1 = Wah*(Wah*pow(fs,3)*(1.81570042181327e-21*fs + 4.40014543835154e-18) + fs*(pow(fs,2)*(-1.26159673965892e-18*fs - 4.4101904707592e-17) + 7.93603439731401e-12)) + fs*(pow(fs,2)*(-1.18260766334647e-19*fs - 7.40773627930135e-17) + 1.53146105393048e-10) + 3.1744137589256e-9;
a2 = Wah*(Wah*pow(fs,2)*(-2.72355063271991e-21*pow(fs,2) + 3.968017198657e-14) + pow(fs,2)*(1.89239510948839e-18*pow(fs,2) - 5.63271568304933e-14)) + pow(fs,2)*(1.7739114950197e-19*pow(fs,2) - 1.0794775990003e-12) + 4.76162063838841e-9;
a3 = Wah*(Wah*pow(fs,3)*(1.81570042181327e-21*fs - 4.40014543835154e-18) + fs*(pow(fs,2)*(-1.26159673965892e-18*fs + 4.4101904707592e-17) - 7.93603439731401e-12)) + fs*(pow(fs,2)*(-1.18260766334647e-19*fs + 7.40773627930135e-17) - 1.53146105393048e-10) + 3.1744137589256e-9;
a4 = Wah*(Wah*pow(fs,2)*(fs*(-4.53925105453318e-22*fs + 2.20007271917577e-18) - 1.9840085993285e-14) + fs*(fs*(fs*(3.15399184914731e-19*fs - 2.2050952353796e-17) + 2.81635784152467e-14) - 3.968017198657e-12)) + fs*(fs*(fs*(2.95651915836617e-20*fs - 3.70386813965067e-17) + 5.39738799500148e-13) - 7.65730526965241e-11) + 7.93603439731401e-10;
};
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/maestrowah.dsp | faust | generated automatically
DO NOT MODIFY! | declare id "maestrowah";
declare name "Maestro Wah";
declare category "Guitar Effects";
declare shortname "Maestro Wah";
declare description "Maestro Boomerang Wah EG-1";
import("stdfaust.lib");
import("guitarix.lib");
process(x) = x : _<:*(dry),(*(wet) : pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0))):>_ with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = fi.dcblockerat(64.7682298922);
wet = wah_ctrl.wet_dry;
dry = 1 - wet;
Wah1 = (x : an.amp_follower_ud(0.01,0.1) : min(0.75) : max(0.09) );
Wah2 = wah_ctrl.wah : Inverted(1) : LogPot(5) : si.smooth(s);
sl = wah_ctrl.mode;
Wah3 = (os.oscs(freq) + 1) / 2 : min(0.91) : max(0.25) : Inverted(1) with {
freq = wah_ctrl.freq;
};
Wah = select3(sl, Wah2, Wah1, Wah3);
b0 = Wah*(Wah*pow(fs,2)*(fs*(2.72075590065939e-21*fs + 2.47828940556324e-17) + 8.86819759919558e-14) + pow(fs,2)*(fs*(-2.71455853073723e-21*fs - 2.47794028705763e-17) - 8.86817888313842e-14)) + fs*(fs*(fs*(-3.51316538913314e-20*fs - 4.11229500551683e-16) - 1.76902751745081e-12) - 1.98647626221981e-11);
b1 = Wah*(Wah*pow(fs,3)*(-1.08830236026375e-20*fs - 4.95657881112649e-17) + pow(fs,3)*(1.08582341229489e-20*fs + 4.95588057411526e-17)) + fs*(pow(fs,2)*(1.40526615565326e-19*fs + 8.22459001103366e-16) - 3.97295252443962e-11);
b2 = Wah*(Wah*pow(fs,2)*(1.63245354039563e-20*pow(fs,2) - 1.77363951983912e-13) + pow(fs,2)*(-1.62873511844234e-20*pow(fs,2) + 1.77363577662768e-13)) + pow(fs,2)*(-2.10789923347988e-19*pow(fs,2) + 3.53805503490162e-12);
b3 = Wah*(Wah*pow(fs,3)*(-1.08830236026375e-20*fs + 4.95657881112649e-17) + pow(fs,3)*(1.08582341229489e-20*fs - 4.95588057411526e-17)) + fs*(pow(fs,2)*(1.40526615565326e-19*fs - 8.22459001103366e-16) + 3.97295252443962e-11);
b4 = Wah*(Wah*pow(fs,2)*(fs*(2.72075590065939e-21*fs - 2.47828940556324e-17) + 8.86819759919558e-14) + pow(fs,2)*(fs*(-2.71455853073723e-21*fs + 2.47794028705763e-17) - 8.86817888313842e-14)) + fs*(fs*(fs*(-3.51316538913314e-20*fs + 4.11229500551683e-16) - 1.76902751745081e-12) + 1.98647626221981e-11);
a0 = Wah*(Wah*pow(fs,2)*(fs*(-4.53925105453318e-22*fs - 2.20007271917577e-18) - 1.9840085993285e-14) + fs*(fs*(fs*(3.15399184914731e-19*fs + 2.2050952353796e-17) + 2.81635784152467e-14) + 3.968017198657e-12)) + fs*(fs*(fs*(2.95651915836617e-20*fs + 3.70386813965067e-17) + 5.39738799500148e-13) + 7.65730526965241e-11) + 7.93603439731401e-10;
a1 = Wah*(Wah*pow(fs,3)*(1.81570042181327e-21*fs + 4.40014543835154e-18) + fs*(pow(fs,2)*(-1.26159673965892e-18*fs - 4.4101904707592e-17) + 7.93603439731401e-12)) + fs*(pow(fs,2)*(-1.18260766334647e-19*fs - 7.40773627930135e-17) + 1.53146105393048e-10) + 3.1744137589256e-9;
a2 = Wah*(Wah*pow(fs,2)*(-2.72355063271991e-21*pow(fs,2) + 3.968017198657e-14) + pow(fs,2)*(1.89239510948839e-18*pow(fs,2) - 5.63271568304933e-14)) + pow(fs,2)*(1.7739114950197e-19*pow(fs,2) - 1.0794775990003e-12) + 4.76162063838841e-9;
a3 = Wah*(Wah*pow(fs,3)*(1.81570042181327e-21*fs - 4.40014543835154e-18) + fs*(pow(fs,2)*(-1.26159673965892e-18*fs + 4.4101904707592e-17) - 7.93603439731401e-12)) + fs*(pow(fs,2)*(-1.18260766334647e-19*fs + 7.40773627930135e-17) - 1.53146105393048e-10) + 3.1744137589256e-9;
a4 = Wah*(Wah*pow(fs,2)*(fs*(-4.53925105453318e-22*fs + 2.20007271917577e-18) - 1.9840085993285e-14) + fs*(fs*(fs*(3.15399184914731e-19*fs - 2.2050952353796e-17) + 2.81635784152467e-14) - 3.968017198657e-12)) + fs*(fs*(fs*(2.95651915836617e-20*fs - 3.70386813965067e-17) + 5.39738799500148e-13) - 7.65730526965241e-11) + 7.93603439731401e-10;
};
|
83b07c273afb676ee29643ea1397882f559e6f10eca8672c05c750c583be0203 | brummer10/guitarix | cstb.dsp | // generated automatically
// DO NOT MODIFY!
declare id "cstb";
declare name "Colorsound Tone Blender";
declare category "Distortion";
declare shortname "CS Toneblender";
declare description "Colorsound Tone Blender";
import("stdfaust.lib");
import("trany.lib");
process = pre : _<:*(dry),(*(wet) : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0)) : clip ):>_ with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
wet = vslider("wet_dry[name:wet/dry][tooltip:percentage of processed signal in output signal]", 100, 0, 100, 1) : /(100) : si.smooth(s);
dry = 1 - wet;
clip = tranystage(TB_7199P_68k,86.0,2700.0,3.571981) : tranystage(TB_7199P_68k,86.0,2700.0,3.571981) ;
//clip(x) = 0.3 * (min(0.7514,max(-0.4514,x)));
Level = vslider("Level[name:Level]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
Attack = vslider("Attack[name:Attack]", 0.5, 0, 0.95, 0.01) : Inverted(0) : si.smooth(s);
b0 = Attack*(Attack*(2.34677954600673e-19*Level*pow(fs,4) + 2.34677954600673e-22*pow(fs,4)) - 2.35728909376724e-17*Level*pow(fs,4) - 2.35728909376724e-20*pow(fs,4)) - 2.50775435507154e-15*Level*pow(fs,3) - 2.50775435507154e-18*pow(fs,3);
b1 = Attack*(Attack*(-9.38711818402692e-19*Level*pow(fs,4) - 9.38711818402692e-22*pow(fs,4)) + 9.42915637506898e-17*Level*pow(fs,4) + 9.42915637506898e-20*pow(fs,4)) + 5.01550871014307e-15*Level*pow(fs,3) + 5.01550871014307e-18*pow(fs,3);
b2 = Attack*(Attack*(1.40806772760404e-18*Level*pow(fs,4) + 1.40806772760404e-21*pow(fs,4)) - 1.41437345626035e-16*Level*pow(fs,4) - 1.41437345626035e-19*pow(fs,4));
b3 = Attack*(Attack*(-9.38711818402692e-19*Level*pow(fs,4) - 9.38711818402692e-22*pow(fs,4)) + 9.42915637506898e-17*Level*pow(fs,4) + 9.42915637506898e-20*pow(fs,4)) - 5.01550871014307e-15*Level*pow(fs,3) - 5.01550871014307e-18*pow(fs,3);
b4 = Attack*(Attack*(2.34677954600673e-19*Level*pow(fs,4) + 2.34677954600673e-22*pow(fs,4)) - 2.35728909376724e-17*Level*pow(fs,4) - 2.35728909376724e-20*pow(fs,4)) + 2.50775435507154e-15*Level*pow(fs,3) + 2.50775435507154e-18*pow(fs,3);
a0 = Attack*(Attack*fs*(fs*(fs*(-7.13788307669893e-19*fs - 3.81274375281155e-16) - 1.78337596435683e-14) - 3.57720562427687e-14) + fs*(fs*(fs*(7.26395344169953e-19*fs + 3.82634300978431e-16) + 1.78716714442828e-14) + 3.58457860428614e-14)) + fs*(fs*(7.72761004436121e-17*fs + 4.0705776699833e-14) + 1.90124164300881e-12) + 3.81338149392143e-12;
a1 = Attack*(Attack*fs*(pow(fs,2)*(2.85515323067957e-18*fs + 7.6254875056231e-16) - 7.15441124855374e-14) + fs*(pow(fs,2)*(-2.90558137667981e-18*fs - 7.65268601956861e-16) + 7.16915720857228e-14)) + fs*(-1.54552200887224e-16*pow(fs,2) + 3.80248328601762e-12) + 1.52535259756857e-11;
a2 = Attack*(Attack*pow(fs,2)*(-4.28272984601936e-18*pow(fs,2) + 3.56675192871367e-14) + pow(fs,2)*(4.35837206501972e-18*pow(fs,2) - 3.57433428885656e-14)) - 8.14115533996661e-14*pow(fs,2) + 2.28802889635286e-11;
a3 = Attack*(Attack*fs*(pow(fs,2)*(2.85515323067957e-18*fs - 7.6254875056231e-16) + 7.15441124855374e-14) + fs*(pow(fs,2)*(-2.90558137667981e-18*fs + 7.65268601956861e-16) - 7.16915720857228e-14)) + fs*(1.54552200887224e-16*pow(fs,2) - 3.80248328601762e-12) + 1.52535259756857e-11;
a4 = Attack*(Attack*fs*(fs*(fs*(-7.13788307669893e-19*fs + 3.81274375281155e-16) - 1.78337596435683e-14) + 3.57720562427687e-14) + fs*(fs*(fs*(7.26395344169953e-19*fs - 3.82634300978431e-16) + 1.78716714442828e-14) - 3.58457860428614e-14)) + fs*(fs*(-7.72761004436121e-17*fs + 4.0705776699833e-14) - 1.90124164300881e-12) + 3.81338149392143e-12;
};
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/cstb.dsp | faust | generated automatically
DO NOT MODIFY!
clip(x) = 0.3 * (min(0.7514,max(-0.4514,x))); | declare id "cstb";
declare name "Colorsound Tone Blender";
declare category "Distortion";
declare shortname "CS Toneblender";
declare description "Colorsound Tone Blender";
import("stdfaust.lib");
import("trany.lib");
process = pre : _<:*(dry),(*(wet) : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0)) : clip ):>_ with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
wet = vslider("wet_dry[name:wet/dry][tooltip:percentage of processed signal in output signal]", 100, 0, 100, 1) : /(100) : si.smooth(s);
dry = 1 - wet;
clip = tranystage(TB_7199P_68k,86.0,2700.0,3.571981) : tranystage(TB_7199P_68k,86.0,2700.0,3.571981) ;
Level = vslider("Level[name:Level]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
Attack = vslider("Attack[name:Attack]", 0.5, 0, 0.95, 0.01) : Inverted(0) : si.smooth(s);
b0 = Attack*(Attack*(2.34677954600673e-19*Level*pow(fs,4) + 2.34677954600673e-22*pow(fs,4)) - 2.35728909376724e-17*Level*pow(fs,4) - 2.35728909376724e-20*pow(fs,4)) - 2.50775435507154e-15*Level*pow(fs,3) - 2.50775435507154e-18*pow(fs,3);
b1 = Attack*(Attack*(-9.38711818402692e-19*Level*pow(fs,4) - 9.38711818402692e-22*pow(fs,4)) + 9.42915637506898e-17*Level*pow(fs,4) + 9.42915637506898e-20*pow(fs,4)) + 5.01550871014307e-15*Level*pow(fs,3) + 5.01550871014307e-18*pow(fs,3);
b2 = Attack*(Attack*(1.40806772760404e-18*Level*pow(fs,4) + 1.40806772760404e-21*pow(fs,4)) - 1.41437345626035e-16*Level*pow(fs,4) - 1.41437345626035e-19*pow(fs,4));
b3 = Attack*(Attack*(-9.38711818402692e-19*Level*pow(fs,4) - 9.38711818402692e-22*pow(fs,4)) + 9.42915637506898e-17*Level*pow(fs,4) + 9.42915637506898e-20*pow(fs,4)) - 5.01550871014307e-15*Level*pow(fs,3) - 5.01550871014307e-18*pow(fs,3);
b4 = Attack*(Attack*(2.34677954600673e-19*Level*pow(fs,4) + 2.34677954600673e-22*pow(fs,4)) - 2.35728909376724e-17*Level*pow(fs,4) - 2.35728909376724e-20*pow(fs,4)) + 2.50775435507154e-15*Level*pow(fs,3) + 2.50775435507154e-18*pow(fs,3);
a0 = Attack*(Attack*fs*(fs*(fs*(-7.13788307669893e-19*fs - 3.81274375281155e-16) - 1.78337596435683e-14) - 3.57720562427687e-14) + fs*(fs*(fs*(7.26395344169953e-19*fs + 3.82634300978431e-16) + 1.78716714442828e-14) + 3.58457860428614e-14)) + fs*(fs*(7.72761004436121e-17*fs + 4.0705776699833e-14) + 1.90124164300881e-12) + 3.81338149392143e-12;
a1 = Attack*(Attack*fs*(pow(fs,2)*(2.85515323067957e-18*fs + 7.6254875056231e-16) - 7.15441124855374e-14) + fs*(pow(fs,2)*(-2.90558137667981e-18*fs - 7.65268601956861e-16) + 7.16915720857228e-14)) + fs*(-1.54552200887224e-16*pow(fs,2) + 3.80248328601762e-12) + 1.52535259756857e-11;
a2 = Attack*(Attack*pow(fs,2)*(-4.28272984601936e-18*pow(fs,2) + 3.56675192871367e-14) + pow(fs,2)*(4.35837206501972e-18*pow(fs,2) - 3.57433428885656e-14)) - 8.14115533996661e-14*pow(fs,2) + 2.28802889635286e-11;
a3 = Attack*(Attack*fs*(pow(fs,2)*(2.85515323067957e-18*fs - 7.6254875056231e-16) + 7.15441124855374e-14) + fs*(pow(fs,2)*(-2.90558137667981e-18*fs + 7.65268601956861e-16) - 7.16915720857228e-14)) + fs*(1.54552200887224e-16*pow(fs,2) - 3.80248328601762e-12) + 1.52535259756857e-11;
a4 = Attack*(Attack*fs*(fs*(fs*(-7.13788307669893e-19*fs + 3.81274375281155e-16) - 1.78337596435683e-14) + 3.57720562427687e-14) + fs*(fs*(fs*(7.26395344169953e-19*fs - 3.82634300978431e-16) + 1.78716714442828e-14) - 3.58457860428614e-14)) + fs*(fs*(-7.72761004436121e-17*fs + 4.0705776699833e-14) - 1.90124164300881e-12) + 3.81338149392143e-12;
};
|
e1a9ffc0c3400d25eefe01f8e21ae2294672cc1448a8699c35d548d647806093 | brummer10/guitarix | jenwah.dsp | // generated automatically
// DO NOT MODIFY!
declare id "jenwah";
declare name "Jen Wah";
declare category "Guitar Effects";
declare shortname "Jen Wah";
declare description "Jen Wah";
import("stdfaust.lib");
import("guitarix.lib");
process(x) = x : _<:*(dry),(*(wet) : pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0))):>_ with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = fi.dcblockerat(228.220182634);
wet = wah_ctrl.wet_dry;
dry = 1 - wet;
Wah1 = (x : an.amp_follower_ud(0.01,0.1) : min(0.99) : max(0.1)): si.smooth(s);
Wah2 = wah_ctrl.wah : Inverted(1) : si.smooth(s);
sl = wah_ctrl.mode;
Wah3 = (os.oscs(freq) + 1) / 2 : min(0.98) : max(0.01) : Inverted(1) with {
freq = wah_ctrl.freq;
};
Wah = select3(sl, Wah2, Wah1, Wah3);
b0 = Wah*(Wah*pow(fs,2)*(fs*(4.26313918949843e-21*fs + 6.7438235280676e-17) + 9.21166476483994e-14) + fs*(fs*(fs*(-4.24968880185418e-21*fs - 6.74722090896416e-17) - 9.33056295237144e-14) - 1.7091597982174e-12)) + fs*(fs*(fs*(-7.44753937081794e-21*fs - 2.45894566379345e-16) - 3.53469573143013e-13) - 2.09356017382726e-14);
b1 = Wah*(Wah*pow(fs,3)*(-1.70525567579937e-20*fs - 1.34876470561352e-16) + fs*(pow(fs,2)*(1.69987552074167e-20*fs + 1.34944418179283e-16) - 3.41831959643481e-12)) + fs*(pow(fs,2)*(2.97901574832717e-20*fs + 4.9178913275869e-16) - 4.18712034765452e-14);
b2 = Wah*(Wah*pow(fs,2)*(2.55788351369906e-20*pow(fs,2) - 1.84233295296799e-13) + pow(fs,2)*(-2.54981328111251e-20*pow(fs,2) + 1.86611259047429e-13)) + pow(fs,2)*(-4.46852362249076e-20*pow(fs,2) + 7.06939146286026e-13);
b3 = Wah*(Wah*pow(fs,3)*(-1.70525567579937e-20*fs + 1.34876470561352e-16) + fs*(pow(fs,2)*(1.69987552074167e-20*fs - 1.34944418179283e-16) + 3.41831959643481e-12)) + fs*(pow(fs,2)*(2.97901574832717e-20*fs - 4.9178913275869e-16) + 4.18712034765452e-14);
b4 = Wah*(Wah*pow(fs,2)*(fs*(4.26313918949843e-21*fs - 6.7438235280676e-17) + 9.21166476483994e-14) + fs*(fs*(fs*(-4.24968880185418e-21*fs + 6.74722090896416e-17) - 9.33056295237144e-14) + 1.7091597982174e-12)) + fs*(fs*(fs*(-7.44753937081794e-21*fs + 2.45894566379345e-16) - 3.53469573143013e-13) + 2.09356017382726e-14);
a0 = Wah*(Wah*pow(fs,2)*(fs*(-6.99671191908366e-20*fs - 1.39394278118629e-17) - 1.21159485597039e-13) + fs*(fs*(fs*(3.85720103312511e-19*fs + 2.77707619975565e-17) + 1.05494945988648e-13) + 2.75362467265997e-12)) + fs*(fs*(fs*(1.18553561246751e-20*fs + 3.2569797714609e-17) + 5.79248390117011e-13) + 1.0981649358109e-11) + 6.25823789240903e-13;
a1 = Wah*(Wah*pow(fs,3)*(2.79868476763347e-19*fs + 2.78788556237258e-17) + fs*(pow(fs,2)*(-1.54288041325004e-18*fs - 5.55415239951129e-17) + 5.50724934531995e-12)) + fs*(pow(fs,2)*(-4.74214244987003e-20*fs - 6.51395954292179e-17) + 2.19632987162179e-11) + 2.50329515696361e-12;
a2 = Wah*(Wah*pow(fs,2)*(-4.1980271514502e-19*pow(fs,2) + 2.42318971194078e-13) + pow(fs,2)*(2.31432061987506e-18*pow(fs,2) - 2.10989891977295e-13)) + pow(fs,2)*(7.11321367480505e-20*pow(fs,2) - 1.15849678023402e-12) + 3.75494273544542e-12;
a3 = Wah*(Wah*pow(fs,3)*(2.79868476763347e-19*fs - 2.78788556237258e-17) + fs*(pow(fs,2)*(-1.54288041325004e-18*fs + 5.55415239951129e-17) - 5.50724934531995e-12)) + fs*(pow(fs,2)*(-4.74214244987003e-20*fs + 6.51395954292179e-17) - 2.19632987162179e-11) + 2.50329515696361e-12;
a4 = Wah*(Wah*pow(fs,2)*(fs*(-6.99671191908366e-20*fs + 1.39394278118629e-17) - 1.21159485597039e-13) + fs*(fs*(fs*(3.85720103312511e-19*fs - 2.77707619975565e-17) + 1.05494945988648e-13) - 2.75362467265997e-12)) + fs*(fs*(fs*(1.18553561246751e-20*fs - 3.2569797714609e-17) + 5.79248390117011e-13) - 1.0981649358109e-11) + 6.25823789240903e-13;
};
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/jenwah.dsp | faust | generated automatically
DO NOT MODIFY! | declare id "jenwah";
declare name "Jen Wah";
declare category "Guitar Effects";
declare shortname "Jen Wah";
declare description "Jen Wah";
import("stdfaust.lib");
import("guitarix.lib");
process(x) = x : _<:*(dry),(*(wet) : pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0))):>_ with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = fi.dcblockerat(228.220182634);
wet = wah_ctrl.wet_dry;
dry = 1 - wet;
Wah1 = (x : an.amp_follower_ud(0.01,0.1) : min(0.99) : max(0.1)): si.smooth(s);
Wah2 = wah_ctrl.wah : Inverted(1) : si.smooth(s);
sl = wah_ctrl.mode;
Wah3 = (os.oscs(freq) + 1) / 2 : min(0.98) : max(0.01) : Inverted(1) with {
freq = wah_ctrl.freq;
};
Wah = select3(sl, Wah2, Wah1, Wah3);
b0 = Wah*(Wah*pow(fs,2)*(fs*(4.26313918949843e-21*fs + 6.7438235280676e-17) + 9.21166476483994e-14) + fs*(fs*(fs*(-4.24968880185418e-21*fs - 6.74722090896416e-17) - 9.33056295237144e-14) - 1.7091597982174e-12)) + fs*(fs*(fs*(-7.44753937081794e-21*fs - 2.45894566379345e-16) - 3.53469573143013e-13) - 2.09356017382726e-14);
b1 = Wah*(Wah*pow(fs,3)*(-1.70525567579937e-20*fs - 1.34876470561352e-16) + fs*(pow(fs,2)*(1.69987552074167e-20*fs + 1.34944418179283e-16) - 3.41831959643481e-12)) + fs*(pow(fs,2)*(2.97901574832717e-20*fs + 4.9178913275869e-16) - 4.18712034765452e-14);
b2 = Wah*(Wah*pow(fs,2)*(2.55788351369906e-20*pow(fs,2) - 1.84233295296799e-13) + pow(fs,2)*(-2.54981328111251e-20*pow(fs,2) + 1.86611259047429e-13)) + pow(fs,2)*(-4.46852362249076e-20*pow(fs,2) + 7.06939146286026e-13);
b3 = Wah*(Wah*pow(fs,3)*(-1.70525567579937e-20*fs + 1.34876470561352e-16) + fs*(pow(fs,2)*(1.69987552074167e-20*fs - 1.34944418179283e-16) + 3.41831959643481e-12)) + fs*(pow(fs,2)*(2.97901574832717e-20*fs - 4.9178913275869e-16) + 4.18712034765452e-14);
b4 = Wah*(Wah*pow(fs,2)*(fs*(4.26313918949843e-21*fs - 6.7438235280676e-17) + 9.21166476483994e-14) + fs*(fs*(fs*(-4.24968880185418e-21*fs + 6.74722090896416e-17) - 9.33056295237144e-14) + 1.7091597982174e-12)) + fs*(fs*(fs*(-7.44753937081794e-21*fs + 2.45894566379345e-16) - 3.53469573143013e-13) + 2.09356017382726e-14);
a0 = Wah*(Wah*pow(fs,2)*(fs*(-6.99671191908366e-20*fs - 1.39394278118629e-17) - 1.21159485597039e-13) + fs*(fs*(fs*(3.85720103312511e-19*fs + 2.77707619975565e-17) + 1.05494945988648e-13) + 2.75362467265997e-12)) + fs*(fs*(fs*(1.18553561246751e-20*fs + 3.2569797714609e-17) + 5.79248390117011e-13) + 1.0981649358109e-11) + 6.25823789240903e-13;
a1 = Wah*(Wah*pow(fs,3)*(2.79868476763347e-19*fs + 2.78788556237258e-17) + fs*(pow(fs,2)*(-1.54288041325004e-18*fs - 5.55415239951129e-17) + 5.50724934531995e-12)) + fs*(pow(fs,2)*(-4.74214244987003e-20*fs - 6.51395954292179e-17) + 2.19632987162179e-11) + 2.50329515696361e-12;
a2 = Wah*(Wah*pow(fs,2)*(-4.1980271514502e-19*pow(fs,2) + 2.42318971194078e-13) + pow(fs,2)*(2.31432061987506e-18*pow(fs,2) - 2.10989891977295e-13)) + pow(fs,2)*(7.11321367480505e-20*pow(fs,2) - 1.15849678023402e-12) + 3.75494273544542e-12;
a3 = Wah*(Wah*pow(fs,3)*(2.79868476763347e-19*fs - 2.78788556237258e-17) + fs*(pow(fs,2)*(-1.54288041325004e-18*fs + 5.55415239951129e-17) - 5.50724934531995e-12)) + fs*(pow(fs,2)*(-4.74214244987003e-20*fs + 6.51395954292179e-17) - 2.19632987162179e-11) + 2.50329515696361e-12;
a4 = Wah*(Wah*pow(fs,2)*(fs*(-6.99671191908366e-20*fs + 1.39394278118629e-17) - 1.21159485597039e-13) + fs*(fs*(fs*(3.85720103312511e-19*fs - 2.77707619975565e-17) + 1.05494945988648e-13) - 2.75362467265997e-12)) + fs*(fs*(fs*(1.18553561246751e-20*fs - 3.2569797714609e-17) + 5.79248390117011e-13) - 1.0981649358109e-11) + 6.25823789240903e-13;
};
|
6b2ada76c896cbeb9d9533ca7a7b0b88fc2d0f97a02063cb4a476e75c1dfdc75 | brummer10/guitarix | maestrowah.dsp | // generated automatically
// DO NOT MODIFY!
declare id "maestrowah";
declare name "Maestro Wah";
declare category "Guitar Effects";
declare shortname "Maestro Wah";
declare description "Maestro Boomerang Wah EG-1";
import("stdfaust.lib");
import("guitarix.lib");
process(x) = x : _<:*(dry),(*(wet) : pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0))):>_ with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = fi.dcblockerat(64.7682298922);
wet = wah_ctrl.wet_dry;
dry = 1 - wet;
Wah1 = (x : an.amp_follower_ud(0.01,0.1) : min(0.75) : max(0.09) );
Wah2 = wah_ctrl.wah : Inverted(1) : LogPot(1) : si.smooth(s);
sl = wah_ctrl.mode;
Wah3 = (os.oscs(freq) + 1) / 2 : min(0.91) : max(0.25) : Inverted(1) with {
freq = wah_ctrl.freq;
};
Wah = select3(sl, Wah2, Wah1, Wah3);
b0 = Wah*(Wah*pow(fs,2)*(fs*(2.72075590065939e-21*fs + 2.47828940556324e-17) + 8.86819759919558e-14) + pow(fs,2)*(fs*(-2.71455853073723e-21*fs - 2.47794028705763e-17) - 8.86817888313842e-14)) + fs*(fs*(fs*(-3.51316538913314e-20*fs - 4.11229500551683e-16) - 1.76902751745081e-12) - 1.98647626221981e-11);
b1 = Wah*(Wah*pow(fs,3)*(-1.08830236026375e-20*fs - 4.95657881112649e-17) + pow(fs,3)*(1.08582341229489e-20*fs + 4.95588057411526e-17)) + fs*(pow(fs,2)*(1.40526615565326e-19*fs + 8.22459001103366e-16) - 3.97295252443962e-11);
b2 = Wah*(Wah*pow(fs,2)*(1.63245354039563e-20*pow(fs,2) - 1.77363951983912e-13) + pow(fs,2)*(-1.62873511844234e-20*pow(fs,2) + 1.77363577662768e-13)) + pow(fs,2)*(-2.10789923347988e-19*pow(fs,2) + 3.53805503490162e-12);
b3 = Wah*(Wah*pow(fs,3)*(-1.08830236026375e-20*fs + 4.95657881112649e-17) + pow(fs,3)*(1.08582341229489e-20*fs - 4.95588057411526e-17)) + fs*(pow(fs,2)*(1.40526615565326e-19*fs - 8.22459001103366e-16) + 3.97295252443962e-11);
b4 = Wah*(Wah*pow(fs,2)*(fs*(2.72075590065939e-21*fs - 2.47828940556324e-17) + 8.86819759919558e-14) + pow(fs,2)*(fs*(-2.71455853073723e-21*fs + 2.47794028705763e-17) - 8.86817888313842e-14)) + fs*(fs*(fs*(-3.51316538913314e-20*fs + 4.11229500551683e-16) - 1.76902751745081e-12) + 1.98647626221981e-11);
a0 = Wah*(Wah*pow(fs,2)*(fs*(-4.53925105453318e-22*fs - 2.20007271917577e-18) - 1.9840085993285e-14) + fs*(fs*(fs*(3.15399184914731e-19*fs + 2.2050952353796e-17) + 2.81635784152467e-14) + 3.968017198657e-12)) + fs*(fs*(fs*(2.95651915836617e-20*fs + 3.70386813965067e-17) + 5.39738799500148e-13) + 7.65730526965241e-11) + 7.93603439731401e-10;
a1 = Wah*(Wah*pow(fs,3)*(1.81570042181327e-21*fs + 4.40014543835154e-18) + fs*(pow(fs,2)*(-1.26159673965892e-18*fs - 4.4101904707592e-17) + 7.93603439731401e-12)) + fs*(pow(fs,2)*(-1.18260766334647e-19*fs - 7.40773627930135e-17) + 1.53146105393048e-10) + 3.1744137589256e-9;
a2 = Wah*(Wah*pow(fs,2)*(-2.72355063271991e-21*pow(fs,2) + 3.968017198657e-14) + pow(fs,2)*(1.89239510948839e-18*pow(fs,2) - 5.63271568304933e-14)) + pow(fs,2)*(1.7739114950197e-19*pow(fs,2) - 1.0794775990003e-12) + 4.76162063838841e-9;
a3 = Wah*(Wah*pow(fs,3)*(1.81570042181327e-21*fs - 4.40014543835154e-18) + fs*(pow(fs,2)*(-1.26159673965892e-18*fs + 4.4101904707592e-17) - 7.93603439731401e-12)) + fs*(pow(fs,2)*(-1.18260766334647e-19*fs + 7.40773627930135e-17) - 1.53146105393048e-10) + 3.1744137589256e-9;
a4 = Wah*(Wah*pow(fs,2)*(fs*(-4.53925105453318e-22*fs + 2.20007271917577e-18) - 1.9840085993285e-14) + fs*(fs*(fs*(3.15399184914731e-19*fs - 2.2050952353796e-17) + 2.81635784152467e-14) - 3.968017198657e-12)) + fs*(fs*(fs*(2.95651915836617e-20*fs - 3.70386813965067e-17) + 5.39738799500148e-13) - 7.65730526965241e-11) + 7.93603439731401e-10;
};
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/maestrowah.dsp | faust | generated automatically
DO NOT MODIFY! | declare id "maestrowah";
declare name "Maestro Wah";
declare category "Guitar Effects";
declare shortname "Maestro Wah";
declare description "Maestro Boomerang Wah EG-1";
import("stdfaust.lib");
import("guitarix.lib");
process(x) = x : _<:*(dry),(*(wet) : pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0))):>_ with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = fi.dcblockerat(64.7682298922);
wet = wah_ctrl.wet_dry;
dry = 1 - wet;
Wah1 = (x : an.amp_follower_ud(0.01,0.1) : min(0.75) : max(0.09) );
Wah2 = wah_ctrl.wah : Inverted(1) : LogPot(1) : si.smooth(s);
sl = wah_ctrl.mode;
Wah3 = (os.oscs(freq) + 1) / 2 : min(0.91) : max(0.25) : Inverted(1) with {
freq = wah_ctrl.freq;
};
Wah = select3(sl, Wah2, Wah1, Wah3);
b0 = Wah*(Wah*pow(fs,2)*(fs*(2.72075590065939e-21*fs + 2.47828940556324e-17) + 8.86819759919558e-14) + pow(fs,2)*(fs*(-2.71455853073723e-21*fs - 2.47794028705763e-17) - 8.86817888313842e-14)) + fs*(fs*(fs*(-3.51316538913314e-20*fs - 4.11229500551683e-16) - 1.76902751745081e-12) - 1.98647626221981e-11);
b1 = Wah*(Wah*pow(fs,3)*(-1.08830236026375e-20*fs - 4.95657881112649e-17) + pow(fs,3)*(1.08582341229489e-20*fs + 4.95588057411526e-17)) + fs*(pow(fs,2)*(1.40526615565326e-19*fs + 8.22459001103366e-16) - 3.97295252443962e-11);
b2 = Wah*(Wah*pow(fs,2)*(1.63245354039563e-20*pow(fs,2) - 1.77363951983912e-13) + pow(fs,2)*(-1.62873511844234e-20*pow(fs,2) + 1.77363577662768e-13)) + pow(fs,2)*(-2.10789923347988e-19*pow(fs,2) + 3.53805503490162e-12);
b3 = Wah*(Wah*pow(fs,3)*(-1.08830236026375e-20*fs + 4.95657881112649e-17) + pow(fs,3)*(1.08582341229489e-20*fs - 4.95588057411526e-17)) + fs*(pow(fs,2)*(1.40526615565326e-19*fs - 8.22459001103366e-16) + 3.97295252443962e-11);
b4 = Wah*(Wah*pow(fs,2)*(fs*(2.72075590065939e-21*fs - 2.47828940556324e-17) + 8.86819759919558e-14) + pow(fs,2)*(fs*(-2.71455853073723e-21*fs + 2.47794028705763e-17) - 8.86817888313842e-14)) + fs*(fs*(fs*(-3.51316538913314e-20*fs + 4.11229500551683e-16) - 1.76902751745081e-12) + 1.98647626221981e-11);
a0 = Wah*(Wah*pow(fs,2)*(fs*(-4.53925105453318e-22*fs - 2.20007271917577e-18) - 1.9840085993285e-14) + fs*(fs*(fs*(3.15399184914731e-19*fs + 2.2050952353796e-17) + 2.81635784152467e-14) + 3.968017198657e-12)) + fs*(fs*(fs*(2.95651915836617e-20*fs + 3.70386813965067e-17) + 5.39738799500148e-13) + 7.65730526965241e-11) + 7.93603439731401e-10;
a1 = Wah*(Wah*pow(fs,3)*(1.81570042181327e-21*fs + 4.40014543835154e-18) + fs*(pow(fs,2)*(-1.26159673965892e-18*fs - 4.4101904707592e-17) + 7.93603439731401e-12)) + fs*(pow(fs,2)*(-1.18260766334647e-19*fs - 7.40773627930135e-17) + 1.53146105393048e-10) + 3.1744137589256e-9;
a2 = Wah*(Wah*pow(fs,2)*(-2.72355063271991e-21*pow(fs,2) + 3.968017198657e-14) + pow(fs,2)*(1.89239510948839e-18*pow(fs,2) - 5.63271568304933e-14)) + pow(fs,2)*(1.7739114950197e-19*pow(fs,2) - 1.0794775990003e-12) + 4.76162063838841e-9;
a3 = Wah*(Wah*pow(fs,3)*(1.81570042181327e-21*fs - 4.40014543835154e-18) + fs*(pow(fs,2)*(-1.26159673965892e-18*fs + 4.4101904707592e-17) - 7.93603439731401e-12)) + fs*(pow(fs,2)*(-1.18260766334647e-19*fs + 7.40773627930135e-17) - 1.53146105393048e-10) + 3.1744137589256e-9;
a4 = Wah*(Wah*pow(fs,2)*(fs*(-4.53925105453318e-22*fs + 2.20007271917577e-18) - 1.9840085993285e-14) + fs*(fs*(fs*(3.15399184914731e-19*fs - 2.2050952353796e-17) + 2.81635784152467e-14) - 3.968017198657e-12)) + fs*(fs*(fs*(2.95651915836617e-20*fs - 3.70386813965067e-17) + 5.39738799500148e-13) - 7.65730526965241e-11) + 7.93603439731401e-10;
};
|
9a9a951b88a7abeee76a6f9de9068adb09eeaefef2151654d45d04bb9f103a8f | brummer10/guitarix | selwah.dsp | // generated automatically
// DO NOT MODIFY!
declare id "selwah";
declare name "Selmer Wah";
declare category "Guitar Effects";
declare shortname "Selmer Wah";
declare description "Selmer Wah";
import("stdfaust.lib");
import("guitarix.lib");
process(x) = x : _<:*(dry),(*(wet) : pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0))):>_ with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = fi.dcblockerat(696.855682347);
wet = wah_ctrl.wet_dry;
dry = 1 - wet;
Wah1 = (x : an.amp_follower_ud(0.01,0.1) : min(0.99) : max(0.1) : Inverted(1)): si.smooth(s);
Wah2 = wah_ctrl.wah : si.smooth(s);
sl = wah_ctrl.mode;
Wah3 = (os.oscs(freq) + 1) / 2 : min(0.90) : max(0.01) with {
freq = wah_ctrl.freq;
};
Wah = select3(sl, Wah2, Wah1, Wah3);
b0 = Wah*(Wah*pow(fs,2)*(fs*(9.34067018664482e-21*fs + 1.87102855759734e-16) + 2.81828342103572e-13) + fs*(fs*(fs*(-9.34656187780755e-21*fs - 1.86919114730712e-16) - 2.77734086106026e-13) + 6.21752156007224e-12)) + fs*(fs*(fs*(-3.81791996652528e-20*fs - 8.47349775377979e-16) - 1.29923285740847e-12) - 2.03089386652508e-11);
b1 = Wah*(Wah*pow(fs,3)*(-3.73626807465793e-20*fs - 3.74205711519468e-16) + fs*(pow(fs,2)*(3.73862475112302e-20*fs + 3.73838229461424e-16) + 1.24350431201445e-11)) + fs*(pow(fs,2)*(1.52716798661011e-19*fs + 1.69469955075596e-15) - 4.06178773305017e-11);
b2 = Wah*(Wah*pow(fs,2)*(5.60440211198689e-20*pow(fs,2) - 5.63656684207144e-13) + pow(fs,2)*(-5.60793712668453e-20*pow(fs,2) + 5.55468172212051e-13)) + pow(fs,2)*(-2.29075197991517e-19*pow(fs,2) + 2.59846571481694e-12);
b3 = Wah*(Wah*pow(fs,3)*(-3.73626807465793e-20*fs + 3.74205711519468e-16) + fs*(pow(fs,2)*(3.73862475112302e-20*fs - 3.73838229461424e-16) - 1.24350431201445e-11)) + fs*(pow(fs,2)*(1.52716798661011e-19*fs - 1.69469955075596e-15) + 4.06178773305017e-11);
b4 = Wah*(Wah*pow(fs,2)*(fs*(9.34067018664482e-21*fs - 1.87102855759734e-16) + 2.81828342103572e-13) + fs*(fs*(fs*(-9.34656187780755e-21*fs + 1.86919114730712e-16) - 2.77734086106026e-13) - 6.21752156007224e-12)) + fs*(fs*(fs*(-3.81791996652528e-20*fs + 8.47349775377979e-16) - 1.29923285740847e-12) + 2.03089386652508e-11);
a0 = Wah*(Wah*pow(fs,2)*(fs*(-6.9507309070366e-20*fs - 1.01737279942973e-17) - 8.91391550989893e-14) + fs*(fs*(fs*(-2.47965348716056e-19*fs - 9.25643357134141e-18) + 1.10300249541729e-13) - 2.02588988861339e-12)) + fs*(fs*(fs*(3.2847328592148e-19*fs + 5.6599406495133e-17) + 5.11880447644045e-13) + 1.73599395967319e-11) + 1.0129449443067e-10;
a1 = Wah*(Wah*pow(fs,3)*(2.78029236281464e-19*fs + 2.03474559885945e-17) + fs*(pow(fs,2)*(9.91861394864224e-19*fs + 1.85128671426828e-17) - 4.05177977722679e-12)) + fs*(pow(fs,2)*(-1.31389314368592e-18*fs - 1.13198812990266e-16) + 3.47198791934638e-11) + 4.05177977722679e-10;
a2 = Wah*(Wah*pow(fs,2)*(-4.17043854422196e-19*pow(fs,2) + 1.78278310197979e-13) + pow(fs,2)*(-1.48779209229634e-18*pow(fs,2) - 2.20600499083458e-13)) + pow(fs,2)*(1.97083971552888e-18*pow(fs,2) - 1.02376089528809e-12) + 6.07766966584018e-10;
a3 = Wah*(Wah*pow(fs,3)*(2.78029236281464e-19*fs - 2.03474559885945e-17) + fs*(pow(fs,2)*(9.91861394864224e-19*fs - 1.85128671426828e-17) + 4.05177977722679e-12)) + fs*(pow(fs,2)*(-1.31389314368592e-18*fs + 1.13198812990266e-16) - 3.47198791934638e-11) + 4.05177977722679e-10;
a4 = Wah*(Wah*pow(fs,2)*(fs*(-6.9507309070366e-20*fs + 1.01737279942973e-17) - 8.91391550989893e-14) + fs*(fs*(fs*(-2.47965348716056e-19*fs + 9.25643357134141e-18) + 1.10300249541729e-13) + 2.02588988861339e-12)) + fs*(fs*(fs*(3.2847328592148e-19*fs - 5.6599406495133e-17) + 5.11880447644045e-13) - 1.73599395967319e-11) + 1.0129449443067e-10;
};
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/selwah.dsp | faust | generated automatically
DO NOT MODIFY! | declare id "selwah";
declare name "Selmer Wah";
declare category "Guitar Effects";
declare shortname "Selmer Wah";
declare description "Selmer Wah";
import("stdfaust.lib");
import("guitarix.lib");
process(x) = x : _<:*(dry),(*(wet) : pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0))):>_ with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = fi.dcblockerat(696.855682347);
wet = wah_ctrl.wet_dry;
dry = 1 - wet;
Wah1 = (x : an.amp_follower_ud(0.01,0.1) : min(0.99) : max(0.1) : Inverted(1)): si.smooth(s);
Wah2 = wah_ctrl.wah : si.smooth(s);
sl = wah_ctrl.mode;
Wah3 = (os.oscs(freq) + 1) / 2 : min(0.90) : max(0.01) with {
freq = wah_ctrl.freq;
};
Wah = select3(sl, Wah2, Wah1, Wah3);
b0 = Wah*(Wah*pow(fs,2)*(fs*(9.34067018664482e-21*fs + 1.87102855759734e-16) + 2.81828342103572e-13) + fs*(fs*(fs*(-9.34656187780755e-21*fs - 1.86919114730712e-16) - 2.77734086106026e-13) + 6.21752156007224e-12)) + fs*(fs*(fs*(-3.81791996652528e-20*fs - 8.47349775377979e-16) - 1.29923285740847e-12) - 2.03089386652508e-11);
b1 = Wah*(Wah*pow(fs,3)*(-3.73626807465793e-20*fs - 3.74205711519468e-16) + fs*(pow(fs,2)*(3.73862475112302e-20*fs + 3.73838229461424e-16) + 1.24350431201445e-11)) + fs*(pow(fs,2)*(1.52716798661011e-19*fs + 1.69469955075596e-15) - 4.06178773305017e-11);
b2 = Wah*(Wah*pow(fs,2)*(5.60440211198689e-20*pow(fs,2) - 5.63656684207144e-13) + pow(fs,2)*(-5.60793712668453e-20*pow(fs,2) + 5.55468172212051e-13)) + pow(fs,2)*(-2.29075197991517e-19*pow(fs,2) + 2.59846571481694e-12);
b3 = Wah*(Wah*pow(fs,3)*(-3.73626807465793e-20*fs + 3.74205711519468e-16) + fs*(pow(fs,2)*(3.73862475112302e-20*fs - 3.73838229461424e-16) - 1.24350431201445e-11)) + fs*(pow(fs,2)*(1.52716798661011e-19*fs - 1.69469955075596e-15) + 4.06178773305017e-11);
b4 = Wah*(Wah*pow(fs,2)*(fs*(9.34067018664482e-21*fs - 1.87102855759734e-16) + 2.81828342103572e-13) + fs*(fs*(fs*(-9.34656187780755e-21*fs + 1.86919114730712e-16) - 2.77734086106026e-13) - 6.21752156007224e-12)) + fs*(fs*(fs*(-3.81791996652528e-20*fs + 8.47349775377979e-16) - 1.29923285740847e-12) + 2.03089386652508e-11);
a0 = Wah*(Wah*pow(fs,2)*(fs*(-6.9507309070366e-20*fs - 1.01737279942973e-17) - 8.91391550989893e-14) + fs*(fs*(fs*(-2.47965348716056e-19*fs - 9.25643357134141e-18) + 1.10300249541729e-13) - 2.02588988861339e-12)) + fs*(fs*(fs*(3.2847328592148e-19*fs + 5.6599406495133e-17) + 5.11880447644045e-13) + 1.73599395967319e-11) + 1.0129449443067e-10;
a1 = Wah*(Wah*pow(fs,3)*(2.78029236281464e-19*fs + 2.03474559885945e-17) + fs*(pow(fs,2)*(9.91861394864224e-19*fs + 1.85128671426828e-17) - 4.05177977722679e-12)) + fs*(pow(fs,2)*(-1.31389314368592e-18*fs - 1.13198812990266e-16) + 3.47198791934638e-11) + 4.05177977722679e-10;
a2 = Wah*(Wah*pow(fs,2)*(-4.17043854422196e-19*pow(fs,2) + 1.78278310197979e-13) + pow(fs,2)*(-1.48779209229634e-18*pow(fs,2) - 2.20600499083458e-13)) + pow(fs,2)*(1.97083971552888e-18*pow(fs,2) - 1.02376089528809e-12) + 6.07766966584018e-10;
a3 = Wah*(Wah*pow(fs,3)*(2.78029236281464e-19*fs - 2.03474559885945e-17) + fs*(pow(fs,2)*(9.91861394864224e-19*fs - 1.85128671426828e-17) + 4.05177977722679e-12)) + fs*(pow(fs,2)*(-1.31389314368592e-18*fs + 1.13198812990266e-16) - 3.47198791934638e-11) + 4.05177977722679e-10;
a4 = Wah*(Wah*pow(fs,2)*(fs*(-6.9507309070366e-20*fs + 1.01737279942973e-17) - 8.91391550989893e-14) + fs*(fs*(fs*(-2.47965348716056e-19*fs + 9.25643357134141e-18) + 1.10300249541729e-13) + 2.02588988861339e-12)) + fs*(fs*(fs*(3.2847328592148e-19*fs - 5.6599406495133e-17) + 5.11880447644045e-13) - 1.73599395967319e-11) + 1.0129449443067e-10;
};
|
79b0896f8640ba8cfaa036bbfc4d6201dd2d138e2f8b684959a6700a6b4913cf | brummer10/guitarix | rolwah.dsp | // generated by ./build_wah.py
// DO NOT MODIFY!
declare id "rolwah";
declare name "Roland Wah";
declare category "Guitar Effects";
declare description "Roland Wah";
import("stdfaust.lib");
import("guitarix.lib");
process(x) = x : _<:*(dry),(*(wet) : pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0))):>_ with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = fi.dcblockerat(178.633638624);
wet = wah_ctrl.wet_dry;
dry = 1 - wet;
Wah1 = (x : an.amp_follower_ud(0.01,0.1) : min(0.99) : max(0.1)): si.smooth(s);
Wah2 = wah_ctrl.wah : Inverted(1) : LogPot(5) : si.smooth(s);
sl = wah_ctrl.mode;
Wah3 = (os.oscs(freq) + 1) / 2 : min(0.98) : max(0.01) : Inverted(1) with {
freq = wah_ctrl.freq;
};
Wah = select3(sl, Wah2, Wah1, Wah3);
b0 = Wah*(Wah*pow(fs,2)*(fs*(1.67423892093516e-21*fs + 2.84356697701846e-17) + 4.21808310223676e-14) + fs*(fs*(fs*(-1.67086003986576e-21*fs - 2.84459385679371e-17) - 4.25288501077712e-14) - 5.40786717438269e-13)) + fs*(fs*(fs*(-2.25167399879093e-21*fs - 7.2000883805872e-17) - 1.122655366476e-13) - 6.39103500338903e-13);
b1 = Wah*(Wah*pow(fs,3)*(-6.69695568374064e-21*fs - 5.68713395403691e-17) + fs*(pow(fs,2)*(6.68344015946305e-21*fs + 5.68918771358741e-17) - 1.08157343487654e-12)) + fs*(pow(fs,2)*(9.00669599516373e-21*fs + 1.44001767611744e-16) - 1.27820700067781e-12);
b2 = Wah*(Wah*pow(fs,2)*(1.0045433525611e-20*pow(fs,2) - 8.43616620447352e-14) + pow(fs,2)*(-1.00251602391946e-20*pow(fs,2) + 8.50577002155424e-14)) + pow(fs,2)*(-1.35100439927456e-20*pow(fs,2) + 2.245310732952e-13);
b3 = Wah*(Wah*pow(fs,3)*(-6.69695568374064e-21*fs + 5.68713395403691e-17) + fs*(pow(fs,2)*(6.68344015946305e-21*fs - 5.68918771358741e-17) + 1.08157343487654e-12)) + fs*(pow(fs,2)*(9.00669599516373e-21*fs - 1.44001767611744e-16) + 1.27820700067781e-12);
b4 = Wah*(Wah*pow(fs,2)*(fs*(1.67423892093516e-21*fs - 2.84356697701846e-17) + 4.21808310223676e-14) + fs*(fs*(fs*(-1.67086003986576e-21*fs + 2.84459385679371e-17) - 4.25288501077712e-14) + 5.40786717438269e-13)) + fs*(fs*(fs*(-2.25167399879093e-21*fs + 7.2000883805872e-17) - 1.122655366476e-13) + 6.39103500338903e-13);
a0 = Wah*(Wah*pow(fs,2)*(fs*(-1.00220281601996e-19*fs - 1.70950590451549e-17) - 1.90549124429613e-13) + fs*(fs*(fs*(4.01507415376654e-19*fs + 3.69834165265026e-17) + 1.74041670594569e-13) + 2.88710794590323e-12)) + fs*(fs*(fs*(1.17381624550525e-20*fs + 1.80001288492797e-17) + 5.87277230952925e-13) + 1.11753192188666e-11) + 4.37440597864126e-11;
a1 = Wah*(Wah*pow(fs,3)*(4.00881126407982e-19*fs + 3.41901180903099e-17) + fs*(pow(fs,2)*(-1.60602966150662e-18*fs - 7.39668330530053e-17) + 5.77421589180647e-12)) + fs*(pow(fs,2)*(-4.69526498202101e-20*fs - 3.60002576985594e-17) + 2.23506384377333e-11) + 1.7497623914565e-10;
a2 = Wah*(Wah*pow(fs,2)*(-6.01321689611973e-19*pow(fs,2) + 3.81098248859227e-13) + pow(fs,2)*(2.40904449225993e-18*pow(fs,2) - 3.48083341189137e-13)) + pow(fs,2)*(7.04289747303152e-20*pow(fs,2) - 1.17455446190585e-12) + 2.62464358718476e-10;
a3 = Wah*(Wah*pow(fs,3)*(4.00881126407982e-19*fs - 3.41901180903099e-17) + fs*(pow(fs,2)*(-1.60602966150662e-18*fs + 7.39668330530053e-17) - 5.77421589180647e-12)) + fs*(pow(fs,2)*(-4.69526498202101e-20*fs + 3.60002576985594e-17) - 2.23506384377333e-11) + 1.7497623914565e-10;
a4 = Wah*(Wah*pow(fs,2)*(fs*(-1.00220281601996e-19*fs + 1.70950590451549e-17) - 1.90549124429613e-13) + fs*(fs*(fs*(4.01507415376654e-19*fs - 3.69834165265026e-17) + 1.74041670594569e-13) - 2.88710794590323e-12)) + fs*(fs*(fs*(1.17381624550525e-20*fs - 1.80001288492797e-17) + 5.87277230952925e-13) - 1.11753192188666e-11) + 4.37440597864126e-11;
};
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/rolwah.dsp | faust | generated by ./build_wah.py
DO NOT MODIFY! | declare id "rolwah";
declare name "Roland Wah";
declare category "Guitar Effects";
declare description "Roland Wah";
import("stdfaust.lib");
import("guitarix.lib");
process(x) = x : _<:*(dry),(*(wet) : pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0))):>_ with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = fi.dcblockerat(178.633638624);
wet = wah_ctrl.wet_dry;
dry = 1 - wet;
Wah1 = (x : an.amp_follower_ud(0.01,0.1) : min(0.99) : max(0.1)): si.smooth(s);
Wah2 = wah_ctrl.wah : Inverted(1) : LogPot(5) : si.smooth(s);
sl = wah_ctrl.mode;
Wah3 = (os.oscs(freq) + 1) / 2 : min(0.98) : max(0.01) : Inverted(1) with {
freq = wah_ctrl.freq;
};
Wah = select3(sl, Wah2, Wah1, Wah3);
b0 = Wah*(Wah*pow(fs,2)*(fs*(1.67423892093516e-21*fs + 2.84356697701846e-17) + 4.21808310223676e-14) + fs*(fs*(fs*(-1.67086003986576e-21*fs - 2.84459385679371e-17) - 4.25288501077712e-14) - 5.40786717438269e-13)) + fs*(fs*(fs*(-2.25167399879093e-21*fs - 7.2000883805872e-17) - 1.122655366476e-13) - 6.39103500338903e-13);
b1 = Wah*(Wah*pow(fs,3)*(-6.69695568374064e-21*fs - 5.68713395403691e-17) + fs*(pow(fs,2)*(6.68344015946305e-21*fs + 5.68918771358741e-17) - 1.08157343487654e-12)) + fs*(pow(fs,2)*(9.00669599516373e-21*fs + 1.44001767611744e-16) - 1.27820700067781e-12);
b2 = Wah*(Wah*pow(fs,2)*(1.0045433525611e-20*pow(fs,2) - 8.43616620447352e-14) + pow(fs,2)*(-1.00251602391946e-20*pow(fs,2) + 8.50577002155424e-14)) + pow(fs,2)*(-1.35100439927456e-20*pow(fs,2) + 2.245310732952e-13);
b3 = Wah*(Wah*pow(fs,3)*(-6.69695568374064e-21*fs + 5.68713395403691e-17) + fs*(pow(fs,2)*(6.68344015946305e-21*fs - 5.68918771358741e-17) + 1.08157343487654e-12)) + fs*(pow(fs,2)*(9.00669599516373e-21*fs - 1.44001767611744e-16) + 1.27820700067781e-12);
b4 = Wah*(Wah*pow(fs,2)*(fs*(1.67423892093516e-21*fs - 2.84356697701846e-17) + 4.21808310223676e-14) + fs*(fs*(fs*(-1.67086003986576e-21*fs + 2.84459385679371e-17) - 4.25288501077712e-14) + 5.40786717438269e-13)) + fs*(fs*(fs*(-2.25167399879093e-21*fs + 7.2000883805872e-17) - 1.122655366476e-13) + 6.39103500338903e-13);
a0 = Wah*(Wah*pow(fs,2)*(fs*(-1.00220281601996e-19*fs - 1.70950590451549e-17) - 1.90549124429613e-13) + fs*(fs*(fs*(4.01507415376654e-19*fs + 3.69834165265026e-17) + 1.74041670594569e-13) + 2.88710794590323e-12)) + fs*(fs*(fs*(1.17381624550525e-20*fs + 1.80001288492797e-17) + 5.87277230952925e-13) + 1.11753192188666e-11) + 4.37440597864126e-11;
a1 = Wah*(Wah*pow(fs,3)*(4.00881126407982e-19*fs + 3.41901180903099e-17) + fs*(pow(fs,2)*(-1.60602966150662e-18*fs - 7.39668330530053e-17) + 5.77421589180647e-12)) + fs*(pow(fs,2)*(-4.69526498202101e-20*fs - 3.60002576985594e-17) + 2.23506384377333e-11) + 1.7497623914565e-10;
a2 = Wah*(Wah*pow(fs,2)*(-6.01321689611973e-19*pow(fs,2) + 3.81098248859227e-13) + pow(fs,2)*(2.40904449225993e-18*pow(fs,2) - 3.48083341189137e-13)) + pow(fs,2)*(7.04289747303152e-20*pow(fs,2) - 1.17455446190585e-12) + 2.62464358718476e-10;
a3 = Wah*(Wah*pow(fs,3)*(4.00881126407982e-19*fs - 3.41901180903099e-17) + fs*(pow(fs,2)*(-1.60602966150662e-18*fs + 7.39668330530053e-17) - 5.77421589180647e-12)) + fs*(pow(fs,2)*(-4.69526498202101e-20*fs + 3.60002576985594e-17) - 2.23506384377333e-11) + 1.7497623914565e-10;
a4 = Wah*(Wah*pow(fs,2)*(fs*(-1.00220281601996e-19*fs + 1.70950590451549e-17) - 1.90549124429613e-13) + fs*(fs*(fs*(4.01507415376654e-19*fs - 3.69834165265026e-17) + 1.74041670594569e-13) - 2.88710794590323e-12)) + fs*(fs*(fs*(1.17381624550525e-20*fs - 1.80001288492797e-17) + 5.87277230952925e-13) - 1.11753192188666e-11) + 4.37440597864126e-11;
};
|
dd82088b04c7a431deb467d00c78bf996dfd57c4b42de7860743cca389b0245b | brummer10/guitarix | gcb_95.dsp | // generated by scripts/build_GCB_95.py
// DO NOT MODIFY!
declare id "GCB_95";
declare name "GCB 95";
declare category "Guitar Effects";
declare description "Linear filter simulating the GCB 95 ve.crybaby circuit";
import("stdfaust.lib");
process = pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0)) : *(Volume) with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = fi.dcblockerat(228.105325695);
Volume = vslider("Volume", 0, -20, +4, 0.1) : ba.db2linear : si.smooth(s);
hotpotz = vslider("hotpotz[name:Wah]", 0.5, 0, 1, 0.01) : Inverted(1) : LogPot(5) : si.smooth(s);
b0 = fs*(fs*(fs*(-7.41350388334374e-21*fs - 2.47418541205506e-16) - 3.69672787496925e-13) - 1.8397056665289e-12) + hotpotz*(pow(fs,2)*hotpotz*(fs*(1.96834437163512e-21*fs + 5.48587515516469e-17) + 8.09470493272714e-14) + fs*(fs*(fs*(-1.96653248770188e-21*fs - 5.48942867863191e-17) - 8.21432353321142e-14) - 1.78155704878595e-12));
b1 = fs*(pow(fs,2)*(2.9654015533375e-20*fs + 4.94837082411013e-16) - 3.67941133305779e-12) + hotpotz*(pow(fs,3)*hotpotz*(-7.87337748654046e-21*fs - 1.09717503103294e-16) + fs*(pow(fs,2)*(7.86612995080753e-21*fs + 1.09788573572638e-16) - 3.56311409757189e-12));
b2 = pow(fs,2)*(-4.44810233000624e-20*pow(fs,2) + 7.39345574993849e-13) + hotpotz*(pow(fs,2)*hotpotz*(1.18100662298107e-20*pow(fs,2) - 1.61894098654543e-13) + pow(fs,2)*(-1.17991949262113e-20*pow(fs,2) + 1.64286470664228e-13));
b3 = fs*(pow(fs,2)*(2.9654015533375e-20*fs - 4.94837082411013e-16) + 3.67941133305779e-12) + hotpotz*(pow(fs,3)*hotpotz*(-7.87337748654046e-21*fs + 1.09717503103294e-16) + fs*(pow(fs,2)*(7.86612995080753e-21*fs - 1.09788573572638e-16) + 3.56311409757189e-12));
b4 = fs*(fs*(fs*(-7.41350388334374e-21*fs + 2.47418541205506e-16) - 3.69672787496925e-13) + 1.8397056665289e-12) + hotpotz*(pow(fs,2)*hotpotz*(fs*(1.96834437163512e-21*fs - 5.48587515516469e-17) + 8.09470493272714e-14) + fs*(fs*(fs*(-1.96653248770188e-21*fs + 5.48942867863191e-17) - 8.21432353321142e-14) + 1.78155704878595e-12));
a0 = fs*(fs*(fs*(1.08819023657393e-20*fs + 2.80985481683452e-17) + 5.44712113689982e-13) + 1.29191360120173e-11) + hotpotz*(pow(fs,2)*hotpotz*(fs*(-6.9672955745145e-20*fs - 9.30061422376548e-18) - 9.53707992555105e-14) + fs*(fs*(fs*(3.8766476861454e-19*fs + 2.92076464853813e-17) + 7.68323461702748e-14) + 2.16751816489796e-12)) + 4.92617764749537e-11;
a1 = fs*(pow(fs,2)*(-4.3527609462957e-20*fs - 5.61970963366905e-17) + 2.58382720240347e-11) + hotpotz*(pow(fs,3)*hotpotz*(2.7869182298058e-19*fs + 1.8601228447531e-17) + fs*(pow(fs,2)*(-1.55065907445816e-18*fs - 5.84152929707626e-17) + 4.33503632979593e-12)) + 1.97047105899815e-10;
a2 = pow(fs,2)*(6.52914141944355e-20*pow(fs,2) - 1.08942422737996e-12) + hotpotz*(pow(fs,2)*hotpotz*(-4.1803773447087e-19*pow(fs,2) + 1.90741598511021e-13) + pow(fs,2)*(2.32598861168724e-18*pow(fs,2) - 1.5366469234055e-13)) + 2.95570658849723e-10;
a3 = fs*(pow(fs,2)*(-4.3527609462957e-20*fs + 5.61970963366905e-17) - 2.58382720240347e-11) + hotpotz*(pow(fs,3)*hotpotz*(2.7869182298058e-19*fs - 1.8601228447531e-17) + fs*(pow(fs,2)*(-1.55065907445816e-18*fs + 5.84152929707626e-17) - 4.33503632979593e-12)) + 1.97047105899815e-10;
a4 = fs*(fs*(fs*(1.08819023657393e-20*fs - 2.80985481683452e-17) + 5.44712113689982e-13) - 1.29191360120173e-11) + hotpotz*(pow(fs,2)*hotpotz*(fs*(-6.9672955745145e-20*fs + 9.30061422376548e-18) - 9.53707992555105e-14) + fs*(fs*(fs*(3.8766476861454e-19*fs - 2.92076464853813e-17) + 7.68323461702748e-14) - 2.16751816489796e-12)) + 4.92617764749537e-11;
};
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/plugins/gcb_95.dsp | faust | generated by scripts/build_GCB_95.py
DO NOT MODIFY! | declare id "GCB_95";
declare name "GCB 95";
declare category "Guitar Effects";
declare description "Linear filter simulating the GCB 95 ve.crybaby circuit";
import("stdfaust.lib");
process = pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0)) : *(Volume) with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = fi.dcblockerat(228.105325695);
Volume = vslider("Volume", 0, -20, +4, 0.1) : ba.db2linear : si.smooth(s);
hotpotz = vslider("hotpotz[name:Wah]", 0.5, 0, 1, 0.01) : Inverted(1) : LogPot(5) : si.smooth(s);
b0 = fs*(fs*(fs*(-7.41350388334374e-21*fs - 2.47418541205506e-16) - 3.69672787496925e-13) - 1.8397056665289e-12) + hotpotz*(pow(fs,2)*hotpotz*(fs*(1.96834437163512e-21*fs + 5.48587515516469e-17) + 8.09470493272714e-14) + fs*(fs*(fs*(-1.96653248770188e-21*fs - 5.48942867863191e-17) - 8.21432353321142e-14) - 1.78155704878595e-12));
b1 = fs*(pow(fs,2)*(2.9654015533375e-20*fs + 4.94837082411013e-16) - 3.67941133305779e-12) + hotpotz*(pow(fs,3)*hotpotz*(-7.87337748654046e-21*fs - 1.09717503103294e-16) + fs*(pow(fs,2)*(7.86612995080753e-21*fs + 1.09788573572638e-16) - 3.56311409757189e-12));
b2 = pow(fs,2)*(-4.44810233000624e-20*pow(fs,2) + 7.39345574993849e-13) + hotpotz*(pow(fs,2)*hotpotz*(1.18100662298107e-20*pow(fs,2) - 1.61894098654543e-13) + pow(fs,2)*(-1.17991949262113e-20*pow(fs,2) + 1.64286470664228e-13));
b3 = fs*(pow(fs,2)*(2.9654015533375e-20*fs - 4.94837082411013e-16) + 3.67941133305779e-12) + hotpotz*(pow(fs,3)*hotpotz*(-7.87337748654046e-21*fs + 1.09717503103294e-16) + fs*(pow(fs,2)*(7.86612995080753e-21*fs - 1.09788573572638e-16) + 3.56311409757189e-12));
b4 = fs*(fs*(fs*(-7.41350388334374e-21*fs + 2.47418541205506e-16) - 3.69672787496925e-13) + 1.8397056665289e-12) + hotpotz*(pow(fs,2)*hotpotz*(fs*(1.96834437163512e-21*fs - 5.48587515516469e-17) + 8.09470493272714e-14) + fs*(fs*(fs*(-1.96653248770188e-21*fs + 5.48942867863191e-17) - 8.21432353321142e-14) + 1.78155704878595e-12));
a0 = fs*(fs*(fs*(1.08819023657393e-20*fs + 2.80985481683452e-17) + 5.44712113689982e-13) + 1.29191360120173e-11) + hotpotz*(pow(fs,2)*hotpotz*(fs*(-6.9672955745145e-20*fs - 9.30061422376548e-18) - 9.53707992555105e-14) + fs*(fs*(fs*(3.8766476861454e-19*fs + 2.92076464853813e-17) + 7.68323461702748e-14) + 2.16751816489796e-12)) + 4.92617764749537e-11;
a1 = fs*(pow(fs,2)*(-4.3527609462957e-20*fs - 5.61970963366905e-17) + 2.58382720240347e-11) + hotpotz*(pow(fs,3)*hotpotz*(2.7869182298058e-19*fs + 1.8601228447531e-17) + fs*(pow(fs,2)*(-1.55065907445816e-18*fs - 5.84152929707626e-17) + 4.33503632979593e-12)) + 1.97047105899815e-10;
a2 = pow(fs,2)*(6.52914141944355e-20*pow(fs,2) - 1.08942422737996e-12) + hotpotz*(pow(fs,2)*hotpotz*(-4.1803773447087e-19*pow(fs,2) + 1.90741598511021e-13) + pow(fs,2)*(2.32598861168724e-18*pow(fs,2) - 1.5366469234055e-13)) + 2.95570658849723e-10;
a3 = fs*(pow(fs,2)*(-4.3527609462957e-20*fs + 5.61970963366905e-17) - 2.58382720240347e-11) + hotpotz*(pow(fs,3)*hotpotz*(2.7869182298058e-19*fs - 1.8601228447531e-17) + fs*(pow(fs,2)*(-1.55065907445816e-18*fs + 5.84152929707626e-17) - 4.33503632979593e-12)) + 1.97047105899815e-10;
a4 = fs*(fs*(fs*(1.08819023657393e-20*fs - 2.80985481683452e-17) + 5.44712113689982e-13) - 1.29191360120173e-11) + hotpotz*(pow(fs,2)*hotpotz*(fs*(-6.9672955745145e-20*fs + 9.30061422376548e-18) - 9.53707992555105e-14) + fs*(fs*(fs*(3.8766476861454e-19*fs - 2.92076464853813e-17) + 7.68323461702748e-14) - 2.16751816489796e-12)) + 4.92617764749537e-11;
};
|
69aa4b70b02d43d211fe3357a13e5f909159d80aedac08fdb98fffe7dac6a095 | brummer10/guitarix | foxwah.dsp | // generated automatically
// DO NOT MODIFY!
declare id "foxwah";
declare name "Foxx Wah";
declare category "Guitar Effects";
declare shortname "Foxx Wah";
declare description "Foxx Wah";
import("stdfaust.lib");
import("guitarix.lib");
process(x) = x : _<:*(dry),(*(wet) : pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0))):>_ with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
wet = wah_ctrl.wet_dry;
dry = 1 - wet;
pre = fi.dcblockerat(228.232162503);
Wah1 = (x : an.amp_follower_ud(0.01,0.1) : min(0.98) : max(0.02) : Inverted(1)): si.smooth(s);
Wah2 = wah_ctrl.wah : max(0.01) : LogPot(5) : si.smooth(s);
sl = wah_ctrl.mode;
Wah3 = (os.oscs(freq) + 1) / 2 : min(0.98) : max(0.02) : Inverted(1) with {
freq = wah_ctrl.freq;
};
Wah = select3(sl, Wah2, Wah1, Wah3);
b0 = Wah*(Wah*pow(fs,2)*(fs*(1.83199828084009e-21*fs + 4.37177575394138e-17) + 5.9658637492238e-14) + fs*(fs*(fs*(-2.03749178510912e-21*fs - 4.85447818408113e-17) - 6.52701543961359e-14) + 1.41209804493283e-12)) + fs*(fs*(fs*(-7.06526492747902e-21*fs - 2.33820876003629e-16) - 3.26825644515106e-13) - 3.24292143859646e-12);
b1 = Wah*(Wah*pow(fs,3)*(-7.32799312336037e-21*fs - 8.74355150788276e-17) + fs*(pow(fs,2)*(8.14996714043648e-21*fs + 9.70895636816225e-17) + 2.82419608986565e-12)) + fs*(pow(fs,2)*(2.82610597099161e-20*fs + 4.67641752007259e-16) - 6.48584287719292e-12);
b2 = Wah*(Wah*pow(fs,2)*(1.09919896850405e-20*pow(fs,2) - 1.19317274984476e-13) + pow(fs,2)*(-1.22249507106547e-20*pow(fs,2) + 1.30540308792272e-13)) + pow(fs,2)*(-4.23915895648741e-20*pow(fs,2) + 6.53651289030211e-13);
b3 = Wah*(Wah*pow(fs,3)*(-7.32799312336037e-21*fs + 8.74355150788276e-17) + fs*(pow(fs,2)*(8.14996714043648e-21*fs - 9.70895636816225e-17) - 2.82419608986565e-12)) + fs*(pow(fs,2)*(2.82610597099161e-20*fs - 4.67641752007259e-16) + 6.48584287719292e-12);
b4 = Wah*(Wah*pow(fs,2)*(fs*(1.83199828084009e-21*fs - 4.37177575394138e-17) + 5.9658637492238e-14) + fs*(fs*(fs*(-2.03749178510912e-21*fs + 4.85447818408113e-17) - 6.52701543961359e-14) - 1.41209804493283e-12)) + fs*(fs*(fs*(-7.06526492747902e-21*fs + 2.33820876003629e-16) - 3.26825644515106e-13) + 3.24292143859646e-12);
a0 = Wah*(Wah*pow(fs,2)*(fs*(-5.27939482245346e-20*fs - 3.84581222788281e-18) - 4.45118937547182e-14) + fs*(fs*(fs*(-2.11837046611975e-19*fs - 1.50671579237021e-18) + 5.84262202161266e-14) - 1.12403772107874e-12)) + fs*(fs*(fs*(3.06896988210923e-19*fs + 2.40276998984285e-17) + 2.93439745158876e-13) + 8.49404844378593e-12) + 2.83847909363319e-11;
a1 = Wah*(Wah*pow(fs,3)*(2.11175792898138e-19*fs + 7.69162445576562e-18) + fs*(pow(fs,2)*(8.473481864479e-19*fs + 3.01343158474042e-18) - 2.24807544215749e-12)) + fs*(pow(fs,2)*(-1.22758795284369e-18*fs - 4.80553997968569e-17) + 1.69880968875719e-11) + 1.13539163745328e-10;
a2 = Wah*(Wah*pow(fs,2)*(-3.16763689347207e-19*pow(fs,2) + 8.90237875094365e-14) + pow(fs,2)*(-1.27102227967185e-18*pow(fs,2) - 1.16852440432253e-13)) + pow(fs,2)*(1.84138192926554e-18*pow(fs,2) - 5.86879490317752e-13) + 1.70308745617991e-10;
a3 = Wah*(Wah*pow(fs,3)*(2.11175792898138e-19*fs - 7.69162445576562e-18) + fs*(pow(fs,2)*(8.473481864479e-19*fs - 3.01343158474042e-18) + 2.24807544215749e-12)) + fs*(pow(fs,2)*(-1.22758795284369e-18*fs + 4.80553997968569e-17) - 1.69880968875719e-11) + 1.13539163745328e-10;
a4 = Wah*(Wah*pow(fs,2)*(fs*(-5.27939482245346e-20*fs + 3.84581222788281e-18) - 4.45118937547182e-14) + fs*(fs*(fs*(-2.11837046611975e-19*fs + 1.50671579237021e-18) + 5.84262202161266e-14) + 1.12403772107874e-12)) + fs*(fs*(fs*(3.06896988210923e-19*fs - 2.40276998984285e-17) + 2.93439745158876e-13) - 8.49404844378593e-12) + 2.83847909363319e-11;
};
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/foxwah.dsp | faust | generated automatically
DO NOT MODIFY! | declare id "foxwah";
declare name "Foxx Wah";
declare category "Guitar Effects";
declare shortname "Foxx Wah";
declare description "Foxx Wah";
import("stdfaust.lib");
import("guitarix.lib");
process(x) = x : _<:*(dry),(*(wet) : pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0))):>_ with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
wet = wah_ctrl.wet_dry;
dry = 1 - wet;
pre = fi.dcblockerat(228.232162503);
Wah1 = (x : an.amp_follower_ud(0.01,0.1) : min(0.98) : max(0.02) : Inverted(1)): si.smooth(s);
Wah2 = wah_ctrl.wah : max(0.01) : LogPot(5) : si.smooth(s);
sl = wah_ctrl.mode;
Wah3 = (os.oscs(freq) + 1) / 2 : min(0.98) : max(0.02) : Inverted(1) with {
freq = wah_ctrl.freq;
};
Wah = select3(sl, Wah2, Wah1, Wah3);
b0 = Wah*(Wah*pow(fs,2)*(fs*(1.83199828084009e-21*fs + 4.37177575394138e-17) + 5.9658637492238e-14) + fs*(fs*(fs*(-2.03749178510912e-21*fs - 4.85447818408113e-17) - 6.52701543961359e-14) + 1.41209804493283e-12)) + fs*(fs*(fs*(-7.06526492747902e-21*fs - 2.33820876003629e-16) - 3.26825644515106e-13) - 3.24292143859646e-12);
b1 = Wah*(Wah*pow(fs,3)*(-7.32799312336037e-21*fs - 8.74355150788276e-17) + fs*(pow(fs,2)*(8.14996714043648e-21*fs + 9.70895636816225e-17) + 2.82419608986565e-12)) + fs*(pow(fs,2)*(2.82610597099161e-20*fs + 4.67641752007259e-16) - 6.48584287719292e-12);
b2 = Wah*(Wah*pow(fs,2)*(1.09919896850405e-20*pow(fs,2) - 1.19317274984476e-13) + pow(fs,2)*(-1.22249507106547e-20*pow(fs,2) + 1.30540308792272e-13)) + pow(fs,2)*(-4.23915895648741e-20*pow(fs,2) + 6.53651289030211e-13);
b3 = Wah*(Wah*pow(fs,3)*(-7.32799312336037e-21*fs + 8.74355150788276e-17) + fs*(pow(fs,2)*(8.14996714043648e-21*fs - 9.70895636816225e-17) - 2.82419608986565e-12)) + fs*(pow(fs,2)*(2.82610597099161e-20*fs - 4.67641752007259e-16) + 6.48584287719292e-12);
b4 = Wah*(Wah*pow(fs,2)*(fs*(1.83199828084009e-21*fs - 4.37177575394138e-17) + 5.9658637492238e-14) + fs*(fs*(fs*(-2.03749178510912e-21*fs + 4.85447818408113e-17) - 6.52701543961359e-14) - 1.41209804493283e-12)) + fs*(fs*(fs*(-7.06526492747902e-21*fs + 2.33820876003629e-16) - 3.26825644515106e-13) + 3.24292143859646e-12);
a0 = Wah*(Wah*pow(fs,2)*(fs*(-5.27939482245346e-20*fs - 3.84581222788281e-18) - 4.45118937547182e-14) + fs*(fs*(fs*(-2.11837046611975e-19*fs - 1.50671579237021e-18) + 5.84262202161266e-14) - 1.12403772107874e-12)) + fs*(fs*(fs*(3.06896988210923e-19*fs + 2.40276998984285e-17) + 2.93439745158876e-13) + 8.49404844378593e-12) + 2.83847909363319e-11;
a1 = Wah*(Wah*pow(fs,3)*(2.11175792898138e-19*fs + 7.69162445576562e-18) + fs*(pow(fs,2)*(8.473481864479e-19*fs + 3.01343158474042e-18) - 2.24807544215749e-12)) + fs*(pow(fs,2)*(-1.22758795284369e-18*fs - 4.80553997968569e-17) + 1.69880968875719e-11) + 1.13539163745328e-10;
a2 = Wah*(Wah*pow(fs,2)*(-3.16763689347207e-19*pow(fs,2) + 8.90237875094365e-14) + pow(fs,2)*(-1.27102227967185e-18*pow(fs,2) - 1.16852440432253e-13)) + pow(fs,2)*(1.84138192926554e-18*pow(fs,2) - 5.86879490317752e-13) + 1.70308745617991e-10;
a3 = Wah*(Wah*pow(fs,3)*(2.11175792898138e-19*fs - 7.69162445576562e-18) + fs*(pow(fs,2)*(8.473481864479e-19*fs - 3.01343158474042e-18) + 2.24807544215749e-12)) + fs*(pow(fs,2)*(-1.22758795284369e-18*fs + 4.80553997968569e-17) - 1.69880968875719e-11) + 1.13539163745328e-10;
a4 = Wah*(Wah*pow(fs,2)*(fs*(-5.27939482245346e-20*fs + 3.84581222788281e-18) - 4.45118937547182e-14) + fs*(fs*(fs*(-2.11837046611975e-19*fs + 1.50671579237021e-18) + 5.84262202161266e-14) + 1.12403772107874e-12)) + fs*(fs*(fs*(3.06896988210923e-19*fs - 2.40276998984285e-17) + 2.93439745158876e-13) - 8.49404844378593e-12) + 2.83847909363319e-11;
};
|
53d17df56766dd6b7514000556b9976c7eb627cf4c76172caf0cdc2a93d7922b | brummer10/guitarix | colbwah.dsp | // generated automatically
// DO NOT MODIFY!
declare id "colbwah";
declare name "ColorSound Bass Wah";
declare category "Guitar Effects";
declare shortname "ColorSound Bass Wah";
declare description "ColorSound Bass Wah";
import("stdfaust.lib");
import("guitarix.lib");
process(x) = x : _<:*(dry),(*(wet) : pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0))):>_ with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
wet = wah_ctrl.wet_dry;
dry = 1 - wet;
pre = fi.dcblockerat(157.14639273);
Wah1 = (x : an.amp_follower_ud(0.01,0.1) : min(1) : max(0.02) );
Wah2 = wah_ctrl.wah : max(0.01) : Inverted(1) : LogPot(5) : si.smooth(s);
sl = wah_ctrl.mode;
Wah3 = (os.oscs(freq) + 1) / 2 : min(0.98) : max(0.02) : Inverted(1) with {
freq = wah_ctrl.freq;
};
Wah = select3(sl, Wah2, Wah1, Wah3);
b0 = Wah*(Wah*pow(fs,2)*(fs*(8.31690116887645e-22*fs + 3.20379811195304e-18) + 4.28499923433696e-15) + fs*(fs*(fs*(-8.23016292634919e-22*fs - 3.18413428804882e-18) - 4.30254138569803e-15) - 9.2036968791553e-14)) + fs*(fs*(fs*(-2.6706830774037e-21*fs - 1.27578229328233e-17) - 1.93436893661132e-14) - 1.00293349888753e-13);
b1 = Wah*(Wah*pow(fs,3)*(-3.32676046755058e-21*fs - 6.40759622390608e-18) + fs*(pow(fs,2)*(3.29206517053968e-21*fs + 6.36826857609764e-18) - 1.84073937583106e-13)) + fs*(pow(fs,2)*(1.06827323096148e-20*fs + 2.55156458656466e-17) - 2.00586699777507e-13);
b2 = Wah*(Wah*pow(fs,2)*(4.99014070132587e-21*pow(fs,2) - 8.56999846867392e-15) + pow(fs,2)*(-4.93809775580952e-21*pow(fs,2) + 8.60508277139606e-15)) + pow(fs,2)*(-1.60240984644222e-20*pow(fs,2) + 3.86873787322263e-14);
b3 = Wah*(Wah*pow(fs,3)*(-3.32676046755058e-21*fs + 6.40759622390608e-18) + fs*(pow(fs,2)*(3.29206517053968e-21*fs - 6.36826857609764e-18) + 1.84073937583106e-13)) + fs*(pow(fs,2)*(1.06827323096148e-20*fs - 2.55156458656466e-17) + 2.00586699777507e-13);
b4 = Wah*(Wah*pow(fs,2)*(fs*(8.31690116887645e-22*fs - 3.20379811195304e-18) + 4.28499923433696e-15) + fs*(fs*(fs*(-8.23016292634919e-22*fs + 3.18413428804882e-18) - 4.30254138569803e-15) + 9.2036968791553e-14)) + fs*(fs*(fs*(-2.6706830774037e-21*fs + 1.27578229328233e-17) - 1.93436893661132e-14) + 1.00293349888753e-13);
a0 = Wah*(Wah*fs*(fs*(fs*(-6.97503428259418e-20*fs - 5.39620091780675e-18) - 3.42307552972106e-15) - 3.4676044717882e-14) + fs*(fs*(fs*(3.97898188862218e-19*fs + 2.67097118338883e-17) + 2.93048706029115e-15) + 1.04378397231604e-13)) + fs*(fs*(fs*(6.5528601067591e-21*fs + 2.74563396261683e-18) + 1.8780340503575e-14) + 5.83881532956283e-13) + 2.41228015122866e-12;
a1 = Wah*(Wah*fs*(pow(fs,2)*(2.79001371303767e-19*fs + 1.07924018356135e-17) - 6.9352089435764e-14) + fs*(pow(fs,2)*(-1.59159275544887e-18*fs - 5.34194236677766e-17) + 2.08756794463207e-13)) + fs*(pow(fs,2)*(-2.62114404270364e-20*fs - 5.49126792523366e-18) + 1.16776306591257e-12) + 9.64912060491465e-12;
a2 = Wah*(Wah*pow(fs,2)*(-4.18502056955651e-19*pow(fs,2) + 6.84615105944212e-15) + pow(fs,2)*(2.38738913317331e-18*pow(fs,2) - 5.8609741205823e-15)) + pow(fs,2)*(3.93171606405546e-20*pow(fs,2) - 3.75606810071501e-14) + 1.4473680907372e-11;
a3 = Wah*(Wah*fs*(pow(fs,2)*(2.79001371303767e-19*fs - 1.07924018356135e-17) + 6.9352089435764e-14) + fs*(pow(fs,2)*(-1.59159275544887e-18*fs + 5.34194236677766e-17) - 2.08756794463207e-13)) + fs*(pow(fs,2)*(-2.62114404270364e-20*fs + 5.49126792523366e-18) - 1.16776306591257e-12) + 9.64912060491465e-12;
a4 = Wah*(Wah*fs*(fs*(fs*(-6.97503428259418e-20*fs + 5.39620091780675e-18) - 3.42307552972106e-15) + 3.4676044717882e-14) + fs*(fs*(fs*(3.97898188862218e-19*fs - 2.67097118338883e-17) + 2.93048706029115e-15) - 1.04378397231604e-13)) + fs*(fs*(fs*(6.5528601067591e-21*fs - 2.74563396261683e-18) + 1.8780340503575e-14) - 5.83881532956283e-13) + 2.41228015122866e-12;
};
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/colbwah.dsp | faust | generated automatically
DO NOT MODIFY! | declare id "colbwah";
declare name "ColorSound Bass Wah";
declare category "Guitar Effects";
declare shortname "ColorSound Bass Wah";
declare description "ColorSound Bass Wah";
import("stdfaust.lib");
import("guitarix.lib");
process(x) = x : _<:*(dry),(*(wet) : pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0))):>_ with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
wet = wah_ctrl.wet_dry;
dry = 1 - wet;
pre = fi.dcblockerat(157.14639273);
Wah1 = (x : an.amp_follower_ud(0.01,0.1) : min(1) : max(0.02) );
Wah2 = wah_ctrl.wah : max(0.01) : Inverted(1) : LogPot(5) : si.smooth(s);
sl = wah_ctrl.mode;
Wah3 = (os.oscs(freq) + 1) / 2 : min(0.98) : max(0.02) : Inverted(1) with {
freq = wah_ctrl.freq;
};
Wah = select3(sl, Wah2, Wah1, Wah3);
b0 = Wah*(Wah*pow(fs,2)*(fs*(8.31690116887645e-22*fs + 3.20379811195304e-18) + 4.28499923433696e-15) + fs*(fs*(fs*(-8.23016292634919e-22*fs - 3.18413428804882e-18) - 4.30254138569803e-15) - 9.2036968791553e-14)) + fs*(fs*(fs*(-2.6706830774037e-21*fs - 1.27578229328233e-17) - 1.93436893661132e-14) - 1.00293349888753e-13);
b1 = Wah*(Wah*pow(fs,3)*(-3.32676046755058e-21*fs - 6.40759622390608e-18) + fs*(pow(fs,2)*(3.29206517053968e-21*fs + 6.36826857609764e-18) - 1.84073937583106e-13)) + fs*(pow(fs,2)*(1.06827323096148e-20*fs + 2.55156458656466e-17) - 2.00586699777507e-13);
b2 = Wah*(Wah*pow(fs,2)*(4.99014070132587e-21*pow(fs,2) - 8.56999846867392e-15) + pow(fs,2)*(-4.93809775580952e-21*pow(fs,2) + 8.60508277139606e-15)) + pow(fs,2)*(-1.60240984644222e-20*pow(fs,2) + 3.86873787322263e-14);
b3 = Wah*(Wah*pow(fs,3)*(-3.32676046755058e-21*fs + 6.40759622390608e-18) + fs*(pow(fs,2)*(3.29206517053968e-21*fs - 6.36826857609764e-18) + 1.84073937583106e-13)) + fs*(pow(fs,2)*(1.06827323096148e-20*fs - 2.55156458656466e-17) + 2.00586699777507e-13);
b4 = Wah*(Wah*pow(fs,2)*(fs*(8.31690116887645e-22*fs - 3.20379811195304e-18) + 4.28499923433696e-15) + fs*(fs*(fs*(-8.23016292634919e-22*fs + 3.18413428804882e-18) - 4.30254138569803e-15) + 9.2036968791553e-14)) + fs*(fs*(fs*(-2.6706830774037e-21*fs + 1.27578229328233e-17) - 1.93436893661132e-14) + 1.00293349888753e-13);
a0 = Wah*(Wah*fs*(fs*(fs*(-6.97503428259418e-20*fs - 5.39620091780675e-18) - 3.42307552972106e-15) - 3.4676044717882e-14) + fs*(fs*(fs*(3.97898188862218e-19*fs + 2.67097118338883e-17) + 2.93048706029115e-15) + 1.04378397231604e-13)) + fs*(fs*(fs*(6.5528601067591e-21*fs + 2.74563396261683e-18) + 1.8780340503575e-14) + 5.83881532956283e-13) + 2.41228015122866e-12;
a1 = Wah*(Wah*fs*(pow(fs,2)*(2.79001371303767e-19*fs + 1.07924018356135e-17) - 6.9352089435764e-14) + fs*(pow(fs,2)*(-1.59159275544887e-18*fs - 5.34194236677766e-17) + 2.08756794463207e-13)) + fs*(pow(fs,2)*(-2.62114404270364e-20*fs - 5.49126792523366e-18) + 1.16776306591257e-12) + 9.64912060491465e-12;
a2 = Wah*(Wah*pow(fs,2)*(-4.18502056955651e-19*pow(fs,2) + 6.84615105944212e-15) + pow(fs,2)*(2.38738913317331e-18*pow(fs,2) - 5.8609741205823e-15)) + pow(fs,2)*(3.93171606405546e-20*pow(fs,2) - 3.75606810071501e-14) + 1.4473680907372e-11;
a3 = Wah*(Wah*fs*(pow(fs,2)*(2.79001371303767e-19*fs - 1.07924018356135e-17) + 6.9352089435764e-14) + fs*(pow(fs,2)*(-1.59159275544887e-18*fs + 5.34194236677766e-17) - 2.08756794463207e-13)) + fs*(pow(fs,2)*(-2.62114404270364e-20*fs + 5.49126792523366e-18) - 1.16776306591257e-12) + 9.64912060491465e-12;
a4 = Wah*(Wah*fs*(fs*(fs*(-6.97503428259418e-20*fs + 5.39620091780675e-18) - 3.42307552972106e-15) + 3.4676044717882e-14) + fs*(fs*(fs*(3.97898188862218e-19*fs - 2.67097118338883e-17) + 2.93048706029115e-15) - 1.04378397231604e-13)) + fs*(fs*(fs*(6.5528601067591e-21*fs - 2.74563396261683e-18) + 1.8780340503575e-14) - 5.83881532956283e-13) + 2.41228015122866e-12;
};
|
2bd6453e90c4c3341213ce791fdac62a1f99d9203fb9bf51c2d90026d66ffb5e | brummer10/guitarix | voxwah.dsp | // generated automatically
// DO NOT MODIFY!
declare id "voxwah";
declare name "Vox Wah V847";
declare category "Guitar Effects";
declare shortname "Vox Wah";
declare description "Vox Wah V847";
import("stdfaust.lib");
import("guitarix.lib");
process(x) = x : _<:*(dry),(*(wet) : pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0))):>_ with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = fi.dcblockerat(228.092318097);
wet = wah_ctrl.wet_dry;
dry = 1 - wet;
Wah1 = (x : an.amp_follower_ud(0.01,0.1) : min(0.98) : max(0.03) : Inverted(1)): si.smooth(s);
Wah2 = wah_ctrl.wah : max(0.03) : LogPot(5) : si.smooth(s);
sl = wah_ctrl.mode;
Wah3 = (os.oscs(freq) + 1) / 2 : min(1) : max(0.03) with {
freq = wah_ctrl.freq;
};
Wah = select3(sl, Wah2, Wah1, Wah3);
b0 = Wah*(Wah*pow(fs,2)*(fs*(1.25354929341128e-21*fs + 3.48240441721223e-17) + 5.13677938435808e-14) + fs*(fs*(fs*(-1.25190991353587e-21*fs - 3.48523283463119e-17) - 5.2316993137229e-14) - 1.41321715016552e-12)) + fs*(fs*(fs*(-7.56083860086155e-21*fs - 2.50316072026991e-16) - 3.73895528534631e-13) - 2.00079255014785e-12);
b1 = Wah*(Wah*pow(fs,3)*(-5.01419717364513e-21*fs - 6.96480883442447e-17) + fs*(pow(fs,2)*(5.00763965414349e-21*fs + 6.97046566926238e-17) - 2.82643430033104e-12)) + fs*(pow(fs,2)*(3.02433544034462e-20*fs + 5.00632144053981e-16) - 4.0015851002957e-12);
b2 = Wah*(Wah*pow(fs,2)*(7.52129576046769e-21*pow(fs,2) - 1.02735587687162e-13) + pow(fs,2)*(-7.51145948121523e-21*pow(fs,2) + 1.04633986274458e-13)) + pow(fs,2)*(-4.53650316051693e-20*pow(fs,2) + 7.47791057069262e-13);
b3 = Wah*(Wah*pow(fs,3)*(-5.01419717364513e-21*fs + 6.96480883442447e-17) + fs*(pow(fs,2)*(5.00763965414349e-21*fs - 6.97046566926238e-17) + 2.82643430033104e-12)) + fs*(pow(fs,2)*(3.02433544034462e-20*fs - 5.00632144053981e-16) + 4.0015851002957e-12);
b4 = Wah*(Wah*pow(fs,2)*(fs*(1.25354929341128e-21*fs - 3.48240441721223e-17) + 5.13677938435808e-14) + fs*(fs*(fs*(-1.25190991353587e-21*fs + 3.48523283463119e-17) - 5.2316993137229e-14) + 1.41321715016552e-12)) + fs*(fs*(fs*(-7.56083860086155e-21*fs + 2.50316072026991e-16) - 3.73895528534631e-13) + 2.00079255014785e-12);
a0 = Wah*(Wah*pow(fs,2)*(fs*(-4.43653850017937e-20*fs - 6.36752117258257e-18) - 6.90511452608771e-14) + fs*(fs*(fs*(2.96437047678913e-19*fs + 2.2065454697261e-17) + 5.22620199701727e-14) + 1.9616802630931e-12)) + fs*(fs*(fs*(5.00642970027606e-20*fs + 3.44255097160751e-17) + 6.23836917215568e-13) + 1.48605150842693e-11) + 5.57295529287812e-11;
a1 = Wah*(Wah*pow(fs,3)*(1.77461540007175e-19*fs + 1.27350423451651e-17) + fs*(pow(fs,2)*(-1.18574819071565e-18*fs - 4.4130909394522e-17) + 3.9233605261862e-12)) + fs*(pow(fs,2)*(-2.00257188011043e-19*fs - 6.88510194321502e-17) + 2.97210301685387e-11) + 2.22918211715125e-10;
a2 = Wah*(Wah*pow(fs,2)*(-2.66192310010762e-19*pow(fs,2) + 1.38102290521754e-13) + pow(fs,2)*(1.77862228607348e-18*pow(fs,2) - 1.04524039940345e-13)) + pow(fs,2)*(3.00385782016564e-19*pow(fs,2) - 1.24767383443114e-12) + 3.34377317572687e-10;
a3 = Wah*(Wah*pow(fs,3)*(1.77461540007175e-19*fs - 1.27350423451651e-17) + fs*(pow(fs,2)*(-1.18574819071565e-18*fs + 4.4130909394522e-17) - 3.9233605261862e-12)) + fs*(pow(fs,2)*(-2.00257188011043e-19*fs + 6.88510194321502e-17) - 2.97210301685387e-11) + 2.22918211715125e-10;
a4 = Wah*(Wah*pow(fs,2)*(fs*(-4.43653850017937e-20*fs + 6.36752117258257e-18) - 6.90511452608771e-14) + fs*(fs*(fs*(2.96437047678913e-19*fs - 2.2065454697261e-17) + 5.22620199701727e-14) - 1.9616802630931e-12)) + fs*(fs*(fs*(5.00642970027606e-20*fs - 3.44255097160751e-17) + 6.23836917215568e-13) - 1.48605150842693e-11) + 5.57295529287812e-11;
};
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/voxwah.dsp | faust | generated automatically
DO NOT MODIFY! | declare id "voxwah";
declare name "Vox Wah V847";
declare category "Guitar Effects";
declare shortname "Vox Wah";
declare description "Vox Wah V847";
import("stdfaust.lib");
import("guitarix.lib");
process(x) = x : _<:*(dry),(*(wet) : pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0))):>_ with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = fi.dcblockerat(228.092318097);
wet = wah_ctrl.wet_dry;
dry = 1 - wet;
Wah1 = (x : an.amp_follower_ud(0.01,0.1) : min(0.98) : max(0.03) : Inverted(1)): si.smooth(s);
Wah2 = wah_ctrl.wah : max(0.03) : LogPot(5) : si.smooth(s);
sl = wah_ctrl.mode;
Wah3 = (os.oscs(freq) + 1) / 2 : min(1) : max(0.03) with {
freq = wah_ctrl.freq;
};
Wah = select3(sl, Wah2, Wah1, Wah3);
b0 = Wah*(Wah*pow(fs,2)*(fs*(1.25354929341128e-21*fs + 3.48240441721223e-17) + 5.13677938435808e-14) + fs*(fs*(fs*(-1.25190991353587e-21*fs - 3.48523283463119e-17) - 5.2316993137229e-14) - 1.41321715016552e-12)) + fs*(fs*(fs*(-7.56083860086155e-21*fs - 2.50316072026991e-16) - 3.73895528534631e-13) - 2.00079255014785e-12);
b1 = Wah*(Wah*pow(fs,3)*(-5.01419717364513e-21*fs - 6.96480883442447e-17) + fs*(pow(fs,2)*(5.00763965414349e-21*fs + 6.97046566926238e-17) - 2.82643430033104e-12)) + fs*(pow(fs,2)*(3.02433544034462e-20*fs + 5.00632144053981e-16) - 4.0015851002957e-12);
b2 = Wah*(Wah*pow(fs,2)*(7.52129576046769e-21*pow(fs,2) - 1.02735587687162e-13) + pow(fs,2)*(-7.51145948121523e-21*pow(fs,2) + 1.04633986274458e-13)) + pow(fs,2)*(-4.53650316051693e-20*pow(fs,2) + 7.47791057069262e-13);
b3 = Wah*(Wah*pow(fs,3)*(-5.01419717364513e-21*fs + 6.96480883442447e-17) + fs*(pow(fs,2)*(5.00763965414349e-21*fs - 6.97046566926238e-17) + 2.82643430033104e-12)) + fs*(pow(fs,2)*(3.02433544034462e-20*fs - 5.00632144053981e-16) + 4.0015851002957e-12);
b4 = Wah*(Wah*pow(fs,2)*(fs*(1.25354929341128e-21*fs - 3.48240441721223e-17) + 5.13677938435808e-14) + fs*(fs*(fs*(-1.25190991353587e-21*fs + 3.48523283463119e-17) - 5.2316993137229e-14) + 1.41321715016552e-12)) + fs*(fs*(fs*(-7.56083860086155e-21*fs + 2.50316072026991e-16) - 3.73895528534631e-13) + 2.00079255014785e-12);
a0 = Wah*(Wah*pow(fs,2)*(fs*(-4.43653850017937e-20*fs - 6.36752117258257e-18) - 6.90511452608771e-14) + fs*(fs*(fs*(2.96437047678913e-19*fs + 2.2065454697261e-17) + 5.22620199701727e-14) + 1.9616802630931e-12)) + fs*(fs*(fs*(5.00642970027606e-20*fs + 3.44255097160751e-17) + 6.23836917215568e-13) + 1.48605150842693e-11) + 5.57295529287812e-11;
a1 = Wah*(Wah*pow(fs,3)*(1.77461540007175e-19*fs + 1.27350423451651e-17) + fs*(pow(fs,2)*(-1.18574819071565e-18*fs - 4.4130909394522e-17) + 3.9233605261862e-12)) + fs*(pow(fs,2)*(-2.00257188011043e-19*fs - 6.88510194321502e-17) + 2.97210301685387e-11) + 2.22918211715125e-10;
a2 = Wah*(Wah*pow(fs,2)*(-2.66192310010762e-19*pow(fs,2) + 1.38102290521754e-13) + pow(fs,2)*(1.77862228607348e-18*pow(fs,2) - 1.04524039940345e-13)) + pow(fs,2)*(3.00385782016564e-19*pow(fs,2) - 1.24767383443114e-12) + 3.34377317572687e-10;
a3 = Wah*(Wah*pow(fs,3)*(1.77461540007175e-19*fs - 1.27350423451651e-17) + fs*(pow(fs,2)*(-1.18574819071565e-18*fs + 4.4130909394522e-17) - 3.9233605261862e-12)) + fs*(pow(fs,2)*(-2.00257188011043e-19*fs + 6.88510194321502e-17) - 2.97210301685387e-11) + 2.22918211715125e-10;
a4 = Wah*(Wah*pow(fs,2)*(fs*(-4.43653850017937e-20*fs + 6.36752117258257e-18) - 6.90511452608771e-14) + fs*(fs*(fs*(2.96437047678913e-19*fs - 2.2065454697261e-17) + 5.22620199701727e-14) - 1.9616802630931e-12)) + fs*(fs*(fs*(5.00642970027606e-20*fs - 3.44255097160751e-17) + 6.23836917215568e-13) - 1.48605150842693e-11) + 5.57295529287812e-11;
};
|
0356082c9584e840e5f04e6908d30aa8af7c69eb1fac834fa76ef09d01e868aa | brummer10/guitarix | bfuzz.dsp | // generated automatically
// DO NOT MODIFY!
declare id "bfuzz";
declare name "Bass Fuzz Pedal";
declare category "Fuzz";
declare shortname "Bass Fuzz";
declare description "Bass Fuzz Pedal";
declare insert_p "tranyclipper";
import("stdfaust.lib");
import("trany.lib");
process = pre : _<:*(dry),(*(wet) : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0)) ):>_ with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
wet = vslider("wet_dry[name:Wet/Dry][tooltip:percentage of processed signal in output signal]", 100, 0, 100, 1) : /(100);
dry = 1 - wet;
clip = tranystageb(TB_7199P_68k,86.0,2700.0,5.571981) : tranystageb(TB_7199P_68k,86.0,2700.0,5.571981) ;
Level = vslider("Level[name:Level]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
Drive = vslider("Drive[name:Drive]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
Thickness = vslider("Thickness[name:Thickness]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
b0 = Drive*Level*pow(fs,2)*(-1.65780932898435e-16*fs - 8.29281439339673e-13) + Level*pow(fs,2)*(-7.76911913609341e-14*fs - 3.88632527694127e-10) + Thickness*(1.65780932898435e-16*Drive*Level*pow(fs,3) + 7.76911913609341e-14*Level*pow(fs,3));
b1 = 3.3156186579687e-16*Drive*Level*pow(fs,3) + 1.55382382721868e-13*Level*pow(fs,3) + Thickness*(-3.3156186579687e-16*Drive*Level*pow(fs,3) - 1.55382382721868e-13*Level*pow(fs,3));
b2 = 1.65856287867935e-12*Drive*Level*pow(fs,2) + 7.77265055388254e-10*Level*pow(fs,2);
b3 = -3.3156186579687e-16*Drive*Level*pow(fs,3) - 1.55382382721868e-13*Level*pow(fs,3) + Thickness*(3.3156186579687e-16*Drive*Level*pow(fs,3) + 1.55382382721868e-13*Level*pow(fs,3));
b4 = Drive*Level*pow(fs,2)*(1.65780932898435e-16*fs - 8.29281439339673e-13) + Level*pow(fs,2)*(7.76911913609341e-14*fs - 3.88632527694127e-10) + Thickness*(-1.65780932898435e-16*Drive*Level*pow(fs,3) - 7.76911913609341e-14*Level*pow(fs,3));
a0 = Drive*(fs*(fs*(fs*(-1.8235902618655e-20*fs - 8.82979918090661e-15) - 5.32286268006641e-11) - 2.42569918771087e-9) - 9.41937118747331e-10) + Thickness*(Drive*fs*(fs*(fs*(1.8235902618655e-20*fs + 8.73857822258011e-15) + 9.51587528271067e-12) + 4.14452332248826e-10) + fs*(fs*(fs*(-1.90624114055858e-19*fs - 9.05150991318089e-15) - 9.57238853136628e-11) - 4.70914107604798e-9)) + fs*(fs*(fs*(1.90624114055858e-19*fs + 1.0005063720083e-14) + 1.41002006493022e-10) + 6.98583678876617e-9) + 1.07025933546545e-8;
a1 = Drive*(fs*(pow(fs,2)*(7.294361047462e-20*fs + 1.76595983618132e-14) - 4.85139837542174e-9) - 3.76774847498933e-9) + Thickness*(Drive*fs*(pow(fs,2)*(-7.294361047462e-20*fs - 1.74771564451602e-14) + 8.28904664497652e-10) + fs*(pow(fs,2)*(7.6249645622343e-19*fs + 1.81030198263618e-14) - 9.41828215209595e-9)) + fs*(pow(fs,2)*(-7.6249645622343e-19*fs - 2.00101274401661e-14) + 1.39716735775323e-8) + 4.2810373418618e-8;
a2 = Drive*(pow(fs,2)*(-1.0941541571193e-19*pow(fs,2) + 1.06457253601328e-10) - 5.65162271248399e-9) + Thickness*(Drive*pow(fs,2)*(1.0941541571193e-19*pow(fs,2) - 1.90317505654213e-11) + pow(fs,2)*(-1.14374468433515e-18*pow(fs,2) + 1.91447770627326e-10)) + pow(fs,2)*(1.14374468433515e-18*pow(fs,2) - 2.82004012986045e-10) + 6.4215560127927e-8;
a3 = Drive*(fs*(pow(fs,2)*(7.294361047462e-20*fs - 1.76595983618132e-14) + 4.85139837542174e-9) - 3.76774847498933e-9) + Thickness*(Drive*fs*(pow(fs,2)*(-7.294361047462e-20*fs + 1.74771564451602e-14) - 8.28904664497652e-10) + fs*(pow(fs,2)*(7.6249645622343e-19*fs - 1.81030198263618e-14) + 9.41828215209595e-9)) + fs*(pow(fs,2)*(-7.6249645622343e-19*fs + 2.00101274401661e-14) - 1.39716735775323e-8) + 4.2810373418618e-8;
a4 = Drive*(fs*(fs*(fs*(-1.8235902618655e-20*fs + 8.82979918090661e-15) - 5.32286268006641e-11) + 2.42569918771087e-9) - 9.41937118747331e-10) + Thickness*(Drive*fs*(fs*(fs*(1.8235902618655e-20*fs - 8.73857822258011e-15) + 9.51587528271067e-12) - 4.14452332248826e-10) + fs*(fs*(fs*(-1.90624114055858e-19*fs + 9.05150991318089e-15) - 9.57238853136628e-11) + 4.70914107604798e-9)) + fs*(fs*(fs*(1.90624114055858e-19*fs - 1.0005063720083e-14) + 1.41002006493022e-10) - 6.98583678876617e-9) + 1.07025933546545e-8;
};
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/plugins/bfuzz.dsp | faust | generated automatically
DO NOT MODIFY! | declare id "bfuzz";
declare name "Bass Fuzz Pedal";
declare category "Fuzz";
declare shortname "Bass Fuzz";
declare description "Bass Fuzz Pedal";
declare insert_p "tranyclipper";
import("stdfaust.lib");
import("trany.lib");
process = pre : _<:*(dry),(*(wet) : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0)) ):>_ with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
wet = vslider("wet_dry[name:Wet/Dry][tooltip:percentage of processed signal in output signal]", 100, 0, 100, 1) : /(100);
dry = 1 - wet;
clip = tranystageb(TB_7199P_68k,86.0,2700.0,5.571981) : tranystageb(TB_7199P_68k,86.0,2700.0,5.571981) ;
Level = vslider("Level[name:Level]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
Drive = vslider("Drive[name:Drive]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
Thickness = vslider("Thickness[name:Thickness]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
b0 = Drive*Level*pow(fs,2)*(-1.65780932898435e-16*fs - 8.29281439339673e-13) + Level*pow(fs,2)*(-7.76911913609341e-14*fs - 3.88632527694127e-10) + Thickness*(1.65780932898435e-16*Drive*Level*pow(fs,3) + 7.76911913609341e-14*Level*pow(fs,3));
b1 = 3.3156186579687e-16*Drive*Level*pow(fs,3) + 1.55382382721868e-13*Level*pow(fs,3) + Thickness*(-3.3156186579687e-16*Drive*Level*pow(fs,3) - 1.55382382721868e-13*Level*pow(fs,3));
b2 = 1.65856287867935e-12*Drive*Level*pow(fs,2) + 7.77265055388254e-10*Level*pow(fs,2);
b3 = -3.3156186579687e-16*Drive*Level*pow(fs,3) - 1.55382382721868e-13*Level*pow(fs,3) + Thickness*(3.3156186579687e-16*Drive*Level*pow(fs,3) + 1.55382382721868e-13*Level*pow(fs,3));
b4 = Drive*Level*pow(fs,2)*(1.65780932898435e-16*fs - 8.29281439339673e-13) + Level*pow(fs,2)*(7.76911913609341e-14*fs - 3.88632527694127e-10) + Thickness*(-1.65780932898435e-16*Drive*Level*pow(fs,3) - 7.76911913609341e-14*Level*pow(fs,3));
a0 = Drive*(fs*(fs*(fs*(-1.8235902618655e-20*fs - 8.82979918090661e-15) - 5.32286268006641e-11) - 2.42569918771087e-9) - 9.41937118747331e-10) + Thickness*(Drive*fs*(fs*(fs*(1.8235902618655e-20*fs + 8.73857822258011e-15) + 9.51587528271067e-12) + 4.14452332248826e-10) + fs*(fs*(fs*(-1.90624114055858e-19*fs - 9.05150991318089e-15) - 9.57238853136628e-11) - 4.70914107604798e-9)) + fs*(fs*(fs*(1.90624114055858e-19*fs + 1.0005063720083e-14) + 1.41002006493022e-10) + 6.98583678876617e-9) + 1.07025933546545e-8;
a1 = Drive*(fs*(pow(fs,2)*(7.294361047462e-20*fs + 1.76595983618132e-14) - 4.85139837542174e-9) - 3.76774847498933e-9) + Thickness*(Drive*fs*(pow(fs,2)*(-7.294361047462e-20*fs - 1.74771564451602e-14) + 8.28904664497652e-10) + fs*(pow(fs,2)*(7.6249645622343e-19*fs + 1.81030198263618e-14) - 9.41828215209595e-9)) + fs*(pow(fs,2)*(-7.6249645622343e-19*fs - 2.00101274401661e-14) + 1.39716735775323e-8) + 4.2810373418618e-8;
a2 = Drive*(pow(fs,2)*(-1.0941541571193e-19*pow(fs,2) + 1.06457253601328e-10) - 5.65162271248399e-9) + Thickness*(Drive*pow(fs,2)*(1.0941541571193e-19*pow(fs,2) - 1.90317505654213e-11) + pow(fs,2)*(-1.14374468433515e-18*pow(fs,2) + 1.91447770627326e-10)) + pow(fs,2)*(1.14374468433515e-18*pow(fs,2) - 2.82004012986045e-10) + 6.4215560127927e-8;
a3 = Drive*(fs*(pow(fs,2)*(7.294361047462e-20*fs - 1.76595983618132e-14) + 4.85139837542174e-9) - 3.76774847498933e-9) + Thickness*(Drive*fs*(pow(fs,2)*(-7.294361047462e-20*fs + 1.74771564451602e-14) - 8.28904664497652e-10) + fs*(pow(fs,2)*(7.6249645622343e-19*fs - 1.81030198263618e-14) + 9.41828215209595e-9)) + fs*(pow(fs,2)*(-7.6249645622343e-19*fs + 2.00101274401661e-14) - 1.39716735775323e-8) + 4.2810373418618e-8;
a4 = Drive*(fs*(fs*(fs*(-1.8235902618655e-20*fs + 8.82979918090661e-15) - 5.32286268006641e-11) + 2.42569918771087e-9) - 9.41937118747331e-10) + Thickness*(Drive*fs*(fs*(fs*(1.8235902618655e-20*fs - 8.73857822258011e-15) + 9.51587528271067e-12) - 4.14452332248826e-10) + fs*(fs*(fs*(-1.90624114055858e-19*fs + 9.05150991318089e-15) - 9.57238853136628e-11) + 4.70914107604798e-9)) + fs*(fs*(fs*(1.90624114055858e-19*fs - 1.0005063720083e-14) + 1.41002006493022e-10) - 6.98583678876617e-9) + 1.07025933546545e-8;
};
|
fd243344f4135e991d3ab238af68faeef190540bdceca58ec28a133d50cb7911 | brummer10/guitarix | mbreverb.dsp | declare id "mbe";
declare name "MultiBand Reverb";
declare shortname "MB Reverb";
declare category "Reverb";
declare description "Multi Band Reverb";
import("stdfaust.lib");
rd = library("reducemaps.lib");
import("guitarix.lib");
hifr1 =hslider("crossover_b1_b2 [log][name:Crossover B1-B2 (hz)][tooltip: Crossover fi.bandpass frequency]" ,80 , 20, 20000, 1.08);
hifr2 =hslider("crossover_b2_b3 [log][name:Crossover B2-B3 (hz)][tooltip: Crossover fi.bandpass frequency]",210,20,20000,1.08);
hifr3 =hslider("crossover_b3_b4 [log][name:Crossover B3-B4 (hz)][tooltip: Crossover fi.bandpass frequency]",1700,20,20000,1.08);
hifr4 =hslider("crossover_b4_b5 [log][name:Crossover B4-B5 (hz)][tooltip: Crossover fi.bandpass frequency]",5000,20,20000,1.08);
geq = fi.filterbank(3, (hifr1,hifr2,hifr3,hifr4));
vmeter1(x) = attach(x, envelop(x) : vbargraph("v1[nomidi:no]", -70, +5));
vmeter2(x) = attach(x, envelop(x) : vbargraph("v2[nomidi:no]", -70, +5));
vmeter3(x) = attach(x, envelop(x) : vbargraph("v3[nomidi:no]", -70, +5));
vmeter4(x) = attach(x, envelop(x) : vbargraph("v4[nomidi:no]", -70, +5));
vmeter5(x) = attach(x, envelop(x) : vbargraph("v5[nomidi:no]", -70, +5));
envelop = abs : max ~ (1.0/ma.SR) : rd.maxn(4096) ;
//envelop = abs : max ~ (1.0/ma.SR) : mean(4096) ; // : max(ba.db2linear(-70)) : ba.linear2db;
/*-----------------------------------------------
freeverb by "Grame"
-----------------------------------------------*/
c1 = vslider("RoomSize1", 0.5, 0, 1, 0.025)*0.28 + 0.7;
d1 = vslider("damp1",0.5, 0, 1, 0.025);
wet1 = vslider("wet_dry1[name:wet/dry]", 50, 0, 100, 1) : /(100);
dry1 = 1 - wet1;
c2 = vslider("RoomSize2", 0.5, 0, 1, 0.025)*0.28 + 0.7;
d2 = vslider("damp2",0.5, 0, 1, 0.025);
wet2 = vslider("wet_dry2[name:wet/dry]", 50, 0, 100, 1) : /(100);
dry2 = 1 - wet2;
c3 = vslider("RoomSize3", 0.5, 0, 1, 0.025)*0.28 + 0.7;
d3 = vslider("damp3",0.5, 0, 1, 0.025);
wet3 = vslider("wet_dry3[name:wet/dry]", 50, 0, 100, 1) : /(100);
dry3 = 1 - wet3;
c4 = vslider("RoomSize4", 0.5, 0, 1, 0.025)*0.28 + 0.7;
d4 = vslider("damp4",0.5, 0, 1, 0.025);
wet4 = vslider("wet_dry4[name:wet/dry]", 50, 0, 100, 1) : /(100);
dry4 = 1 - wet4;
c5 = vslider("RoomSize5", 0.5, 0, 1, 0.025)*0.28 + 0.7;
d5 = vslider("damp5",0.5, 0, 1, 0.025);
wet5 = vslider("wet_dry5[name:wet/dry]", 50, 0, 100, 1) : /(100);
dry5 = 1 - wet5;
// Filter Parameters
combtuningL1 = 1116;
combtuningL2 = 1188;
combtuningL3 = 1277;
combtuningL4 = 1356;
combtuningL5 = 1422;
combtuningL6 = 1491;
combtuningL7 = 1557;
combtuningL8 = 1617;
allpasstuningL1 = 556;
allpasstuningL2 = 441;
allpasstuningL3 = 341;
allpasstuningL4 = 225;
// Reverb components
monoReverb(fb1, fb2, damp, spread)
= _ <: comb(combtuningL1+spread, fb1, damp),
comb(combtuningL2+spread, fb1, damp),
comb(combtuningL3+spread, fb1, damp),
comb(combtuningL4+spread, fb1, damp),
comb(combtuningL5+spread, fb1, damp),
comb(combtuningL6+spread, fb1, damp),
comb(combtuningL7+spread, fb1, damp),
comb(combtuningL8+spread, fb1, damp)
+>
allpass (allpasstuningL1+spread, fb2)
: allpass (allpasstuningL2+spread, fb2)
: allpass (allpasstuningL3+spread, fb2)
: allpass (allpasstuningL4+spread, fb2)
;
//----------------------------------------------------------------
fxctrl(g,w,Fx) = _ <: (*(g) <: _ + Fx ), *(1-w) +> _;
reverb(dry, wet_dry, combfeed, dampslider) = _<:*(dry),(*(wet_dry):fxctrl(0.015,wet_dry, monoReverb(combfeed, 0.5, dampslider, 23))):>_;
process = geq: ( dist5s , dist4s , dist3s, dist2s, dist1s) :>_ with {
dist1s = reverb(dry1,wet1,c1,d1) : vmeter1 ;
dist2s = reverb(dry2,wet2,c2,d2) : vmeter2;
dist3s = reverb(dry3,wet3,c3,d3) : vmeter3;
dist4s = reverb(dry4,wet4,c4,d4) : vmeter4;
dist5s = reverb(dry5,wet5,c5,d5) : vmeter5;
};
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/mbreverb.dsp | faust | envelop = abs : max ~ (1.0/ma.SR) : mean(4096) ; // : max(ba.db2linear(-70)) : ba.linear2db;
-----------------------------------------------
freeverb by "Grame"
-----------------------------------------------
Filter Parameters
Reverb components
---------------------------------------------------------------- | declare id "mbe";
declare name "MultiBand Reverb";
declare shortname "MB Reverb";
declare category "Reverb";
declare description "Multi Band Reverb";
import("stdfaust.lib");
rd = library("reducemaps.lib");
import("guitarix.lib");
hifr1 =hslider("crossover_b1_b2 [log][name:Crossover B1-B2 (hz)][tooltip: Crossover fi.bandpass frequency]" ,80 , 20, 20000, 1.08);
hifr2 =hslider("crossover_b2_b3 [log][name:Crossover B2-B3 (hz)][tooltip: Crossover fi.bandpass frequency]",210,20,20000,1.08);
hifr3 =hslider("crossover_b3_b4 [log][name:Crossover B3-B4 (hz)][tooltip: Crossover fi.bandpass frequency]",1700,20,20000,1.08);
hifr4 =hslider("crossover_b4_b5 [log][name:Crossover B4-B5 (hz)][tooltip: Crossover fi.bandpass frequency]",5000,20,20000,1.08);
geq = fi.filterbank(3, (hifr1,hifr2,hifr3,hifr4));
vmeter1(x) = attach(x, envelop(x) : vbargraph("v1[nomidi:no]", -70, +5));
vmeter2(x) = attach(x, envelop(x) : vbargraph("v2[nomidi:no]", -70, +5));
vmeter3(x) = attach(x, envelop(x) : vbargraph("v3[nomidi:no]", -70, +5));
vmeter4(x) = attach(x, envelop(x) : vbargraph("v4[nomidi:no]", -70, +5));
vmeter5(x) = attach(x, envelop(x) : vbargraph("v5[nomidi:no]", -70, +5));
envelop = abs : max ~ (1.0/ma.SR) : rd.maxn(4096) ;
c1 = vslider("RoomSize1", 0.5, 0, 1, 0.025)*0.28 + 0.7;
d1 = vslider("damp1",0.5, 0, 1, 0.025);
wet1 = vslider("wet_dry1[name:wet/dry]", 50, 0, 100, 1) : /(100);
dry1 = 1 - wet1;
c2 = vslider("RoomSize2", 0.5, 0, 1, 0.025)*0.28 + 0.7;
d2 = vslider("damp2",0.5, 0, 1, 0.025);
wet2 = vslider("wet_dry2[name:wet/dry]", 50, 0, 100, 1) : /(100);
dry2 = 1 - wet2;
c3 = vslider("RoomSize3", 0.5, 0, 1, 0.025)*0.28 + 0.7;
d3 = vslider("damp3",0.5, 0, 1, 0.025);
wet3 = vslider("wet_dry3[name:wet/dry]", 50, 0, 100, 1) : /(100);
dry3 = 1 - wet3;
c4 = vslider("RoomSize4", 0.5, 0, 1, 0.025)*0.28 + 0.7;
d4 = vslider("damp4",0.5, 0, 1, 0.025);
wet4 = vslider("wet_dry4[name:wet/dry]", 50, 0, 100, 1) : /(100);
dry4 = 1 - wet4;
c5 = vslider("RoomSize5", 0.5, 0, 1, 0.025)*0.28 + 0.7;
d5 = vslider("damp5",0.5, 0, 1, 0.025);
wet5 = vslider("wet_dry5[name:wet/dry]", 50, 0, 100, 1) : /(100);
dry5 = 1 - wet5;
combtuningL1 = 1116;
combtuningL2 = 1188;
combtuningL3 = 1277;
combtuningL4 = 1356;
combtuningL5 = 1422;
combtuningL6 = 1491;
combtuningL7 = 1557;
combtuningL8 = 1617;
allpasstuningL1 = 556;
allpasstuningL2 = 441;
allpasstuningL3 = 341;
allpasstuningL4 = 225;
monoReverb(fb1, fb2, damp, spread)
= _ <: comb(combtuningL1+spread, fb1, damp),
comb(combtuningL2+spread, fb1, damp),
comb(combtuningL3+spread, fb1, damp),
comb(combtuningL4+spread, fb1, damp),
comb(combtuningL5+spread, fb1, damp),
comb(combtuningL6+spread, fb1, damp),
comb(combtuningL7+spread, fb1, damp),
comb(combtuningL8+spread, fb1, damp)
+>
allpass (allpasstuningL1+spread, fb2)
: allpass (allpasstuningL2+spread, fb2)
: allpass (allpasstuningL3+spread, fb2)
: allpass (allpasstuningL4+spread, fb2)
;
fxctrl(g,w,Fx) = _ <: (*(g) <: _ + Fx ), *(1-w) +> _;
reverb(dry, wet_dry, combfeed, dampslider) = _<:*(dry),(*(wet_dry):fxctrl(0.015,wet_dry, monoReverb(combfeed, 0.5, dampslider, 23))):>_;
process = geq: ( dist5s , dist4s , dist3s, dist2s, dist1s) :>_ with {
dist1s = reverb(dry1,wet1,c1,d1) : vmeter1 ;
dist2s = reverb(dry2,wet2,c2,d2) : vmeter2;
dist3s = reverb(dry3,wet3,c3,d3) : vmeter3;
dist4s = reverb(dry4,wet4,c4,d4) : vmeter4;
dist5s = reverb(dry5,wet5,c5,d5) : vmeter5;
};
|
849133b78e84ea8bf222a99e408aa20c1e01eaef6aca36fb30654ff904e6ed6a | brummer10/guitarix | voxwah.dsp | // generated automatically
// DO NOT MODIFY!
declare id "voxwah";
declare name "Vox Wah V847";
declare category "Guitar Effects";
declare shortname "Vox Wah";
declare description "Vox Wah V847";
import("stdfaust.lib");
import("guitarix.lib");
process(x) = x : _<:*(dry),(*(wet) : pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0))):>_ with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = fi.dcblockerat(228.092318097);
wet = wah_ctrl.wet_dry;
dry = 1 - wet;
Wah1 = (x : an.amp_follower_ud(0.01,0.1) : min(0.98) : max(0.03) : Inverted(1)): si.smooth(s);
Wah2 = wah_ctrl.wah : max(0.03) : si.smooth(s);
sl = wah_ctrl.mode;
Wah3 = (os.oscs(freq) + 1) / 2 : min(1) : max(0.03) with {
freq = wah_ctrl.freq;
};
Wah = select3(sl, Wah2, Wah1, Wah3);
b0 = Wah*(Wah*pow(fs,2)*(fs*(1.25354929341128e-21*fs + 3.48240441721223e-17) + 5.13677938435808e-14) + fs*(fs*(fs*(-1.25190991353587e-21*fs - 3.48523283463119e-17) - 5.2316993137229e-14) - 1.41321715016552e-12)) + fs*(fs*(fs*(-7.56083860086155e-21*fs - 2.50316072026991e-16) - 3.73895528534631e-13) - 2.00079255014785e-12);
b1 = Wah*(Wah*pow(fs,3)*(-5.01419717364513e-21*fs - 6.96480883442447e-17) + fs*(pow(fs,2)*(5.00763965414349e-21*fs + 6.97046566926238e-17) - 2.82643430033104e-12)) + fs*(pow(fs,2)*(3.02433544034462e-20*fs + 5.00632144053981e-16) - 4.0015851002957e-12);
b2 = Wah*(Wah*pow(fs,2)*(7.52129576046769e-21*pow(fs,2) - 1.02735587687162e-13) + pow(fs,2)*(-7.51145948121523e-21*pow(fs,2) + 1.04633986274458e-13)) + pow(fs,2)*(-4.53650316051693e-20*pow(fs,2) + 7.47791057069262e-13);
b3 = Wah*(Wah*pow(fs,3)*(-5.01419717364513e-21*fs + 6.96480883442447e-17) + fs*(pow(fs,2)*(5.00763965414349e-21*fs - 6.97046566926238e-17) + 2.82643430033104e-12)) + fs*(pow(fs,2)*(3.02433544034462e-20*fs - 5.00632144053981e-16) + 4.0015851002957e-12);
b4 = Wah*(Wah*pow(fs,2)*(fs*(1.25354929341128e-21*fs - 3.48240441721223e-17) + 5.13677938435808e-14) + fs*(fs*(fs*(-1.25190991353587e-21*fs + 3.48523283463119e-17) - 5.2316993137229e-14) + 1.41321715016552e-12)) + fs*(fs*(fs*(-7.56083860086155e-21*fs + 2.50316072026991e-16) - 3.73895528534631e-13) + 2.00079255014785e-12);
a0 = Wah*(Wah*pow(fs,2)*(fs*(-4.43653850017937e-20*fs - 6.36752117258257e-18) - 6.90511452608771e-14) + fs*(fs*(fs*(2.96437047678913e-19*fs + 2.2065454697261e-17) + 5.22620199701727e-14) + 1.9616802630931e-12)) + fs*(fs*(fs*(5.00642970027606e-20*fs + 3.44255097160751e-17) + 6.23836917215568e-13) + 1.48605150842693e-11) + 5.57295529287812e-11;
a1 = Wah*(Wah*pow(fs,3)*(1.77461540007175e-19*fs + 1.27350423451651e-17) + fs*(pow(fs,2)*(-1.18574819071565e-18*fs - 4.4130909394522e-17) + 3.9233605261862e-12)) + fs*(pow(fs,2)*(-2.00257188011043e-19*fs - 6.88510194321502e-17) + 2.97210301685387e-11) + 2.22918211715125e-10;
a2 = Wah*(Wah*pow(fs,2)*(-2.66192310010762e-19*pow(fs,2) + 1.38102290521754e-13) + pow(fs,2)*(1.77862228607348e-18*pow(fs,2) - 1.04524039940345e-13)) + pow(fs,2)*(3.00385782016564e-19*pow(fs,2) - 1.24767383443114e-12) + 3.34377317572687e-10;
a3 = Wah*(Wah*pow(fs,3)*(1.77461540007175e-19*fs - 1.27350423451651e-17) + fs*(pow(fs,2)*(-1.18574819071565e-18*fs + 4.4130909394522e-17) - 3.9233605261862e-12)) + fs*(pow(fs,2)*(-2.00257188011043e-19*fs + 6.88510194321502e-17) - 2.97210301685387e-11) + 2.22918211715125e-10;
a4 = Wah*(Wah*pow(fs,2)*(fs*(-4.43653850017937e-20*fs + 6.36752117258257e-18) - 6.90511452608771e-14) + fs*(fs*(fs*(2.96437047678913e-19*fs - 2.2065454697261e-17) + 5.22620199701727e-14) - 1.9616802630931e-12)) + fs*(fs*(fs*(5.00642970027606e-20*fs - 3.44255097160751e-17) + 6.23836917215568e-13) - 1.48605150842693e-11) + 5.57295529287812e-11;
};
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/voxwah.dsp | faust | generated automatically
DO NOT MODIFY! | declare id "voxwah";
declare name "Vox Wah V847";
declare category "Guitar Effects";
declare shortname "Vox Wah";
declare description "Vox Wah V847";
import("stdfaust.lib");
import("guitarix.lib");
process(x) = x : _<:*(dry),(*(wet) : pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0))):>_ with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = fi.dcblockerat(228.092318097);
wet = wah_ctrl.wet_dry;
dry = 1 - wet;
Wah1 = (x : an.amp_follower_ud(0.01,0.1) : min(0.98) : max(0.03) : Inverted(1)): si.smooth(s);
Wah2 = wah_ctrl.wah : max(0.03) : si.smooth(s);
sl = wah_ctrl.mode;
Wah3 = (os.oscs(freq) + 1) / 2 : min(1) : max(0.03) with {
freq = wah_ctrl.freq;
};
Wah = select3(sl, Wah2, Wah1, Wah3);
b0 = Wah*(Wah*pow(fs,2)*(fs*(1.25354929341128e-21*fs + 3.48240441721223e-17) + 5.13677938435808e-14) + fs*(fs*(fs*(-1.25190991353587e-21*fs - 3.48523283463119e-17) - 5.2316993137229e-14) - 1.41321715016552e-12)) + fs*(fs*(fs*(-7.56083860086155e-21*fs - 2.50316072026991e-16) - 3.73895528534631e-13) - 2.00079255014785e-12);
b1 = Wah*(Wah*pow(fs,3)*(-5.01419717364513e-21*fs - 6.96480883442447e-17) + fs*(pow(fs,2)*(5.00763965414349e-21*fs + 6.97046566926238e-17) - 2.82643430033104e-12)) + fs*(pow(fs,2)*(3.02433544034462e-20*fs + 5.00632144053981e-16) - 4.0015851002957e-12);
b2 = Wah*(Wah*pow(fs,2)*(7.52129576046769e-21*pow(fs,2) - 1.02735587687162e-13) + pow(fs,2)*(-7.51145948121523e-21*pow(fs,2) + 1.04633986274458e-13)) + pow(fs,2)*(-4.53650316051693e-20*pow(fs,2) + 7.47791057069262e-13);
b3 = Wah*(Wah*pow(fs,3)*(-5.01419717364513e-21*fs + 6.96480883442447e-17) + fs*(pow(fs,2)*(5.00763965414349e-21*fs - 6.97046566926238e-17) + 2.82643430033104e-12)) + fs*(pow(fs,2)*(3.02433544034462e-20*fs - 5.00632144053981e-16) + 4.0015851002957e-12);
b4 = Wah*(Wah*pow(fs,2)*(fs*(1.25354929341128e-21*fs - 3.48240441721223e-17) + 5.13677938435808e-14) + fs*(fs*(fs*(-1.25190991353587e-21*fs + 3.48523283463119e-17) - 5.2316993137229e-14) + 1.41321715016552e-12)) + fs*(fs*(fs*(-7.56083860086155e-21*fs + 2.50316072026991e-16) - 3.73895528534631e-13) + 2.00079255014785e-12);
a0 = Wah*(Wah*pow(fs,2)*(fs*(-4.43653850017937e-20*fs - 6.36752117258257e-18) - 6.90511452608771e-14) + fs*(fs*(fs*(2.96437047678913e-19*fs + 2.2065454697261e-17) + 5.22620199701727e-14) + 1.9616802630931e-12)) + fs*(fs*(fs*(5.00642970027606e-20*fs + 3.44255097160751e-17) + 6.23836917215568e-13) + 1.48605150842693e-11) + 5.57295529287812e-11;
a1 = Wah*(Wah*pow(fs,3)*(1.77461540007175e-19*fs + 1.27350423451651e-17) + fs*(pow(fs,2)*(-1.18574819071565e-18*fs - 4.4130909394522e-17) + 3.9233605261862e-12)) + fs*(pow(fs,2)*(-2.00257188011043e-19*fs - 6.88510194321502e-17) + 2.97210301685387e-11) + 2.22918211715125e-10;
a2 = Wah*(Wah*pow(fs,2)*(-2.66192310010762e-19*pow(fs,2) + 1.38102290521754e-13) + pow(fs,2)*(1.77862228607348e-18*pow(fs,2) - 1.04524039940345e-13)) + pow(fs,2)*(3.00385782016564e-19*pow(fs,2) - 1.24767383443114e-12) + 3.34377317572687e-10;
a3 = Wah*(Wah*pow(fs,3)*(1.77461540007175e-19*fs - 1.27350423451651e-17) + fs*(pow(fs,2)*(-1.18574819071565e-18*fs + 4.4130909394522e-17) - 3.9233605261862e-12)) + fs*(pow(fs,2)*(-2.00257188011043e-19*fs + 6.88510194321502e-17) - 2.97210301685387e-11) + 2.22918211715125e-10;
a4 = Wah*(Wah*pow(fs,2)*(fs*(-4.43653850017937e-20*fs + 6.36752117258257e-18) - 6.90511452608771e-14) + fs*(fs*(fs*(2.96437047678913e-19*fs - 2.2065454697261e-17) + 5.22620199701727e-14) - 1.9616802630931e-12)) + fs*(fs*(fs*(5.00642970027606e-20*fs - 3.44255097160751e-17) + 6.23836917215568e-13) - 1.48605150842693e-11) + 5.57295529287812e-11;
};
|
617f5797c11d5cabec2e1e8c87678a9bcbebd40f483fb281a0f5843b9fc99956 | brummer10/guitarix | selwah.dsp | // generated automatically
// DO NOT MODIFY!
declare id "selwah";
declare name "Selmer Wah";
declare category "Guitar Effects";
declare shortname "Selmer Wah";
declare description "Selmer Wah";
import("stdfaust.lib");
import("guitarix.lib");
process(x) = x : _<:*(dry),(*(wet) : pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0))):>_ with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = fi.dcblockerat(696.855682347);
wet = wah_ctrl.wet_dry;
dry = 1 - wet;
Wah1 = (x : an.amp_follower_ud(0.01,0.1) : min(0.99) : max(0.1) : Inverted(1)): si.smooth(s);
Wah2 = wah_ctrl.wah : LogPot(5) : si.smooth(s);
sl = wah_ctrl.mode;
Wah3 = (os.oscs(freq) + 1) / 2 : min(0.90) : max(0.01) with {
freq = wah_ctrl.freq;
};
Wah = select3(sl, Wah2, Wah1, Wah3);
b0 = Wah*(Wah*pow(fs,2)*(fs*(9.34067018664482e-21*fs + 1.87102855759734e-16) + 2.81828342103572e-13) + fs*(fs*(fs*(-9.34656187780755e-21*fs - 1.86919114730712e-16) - 2.77734086106026e-13) + 6.21752156007224e-12)) + fs*(fs*(fs*(-3.81791996652528e-20*fs - 8.47349775377979e-16) - 1.29923285740847e-12) - 2.03089386652508e-11);
b1 = Wah*(Wah*pow(fs,3)*(-3.73626807465793e-20*fs - 3.74205711519468e-16) + fs*(pow(fs,2)*(3.73862475112302e-20*fs + 3.73838229461424e-16) + 1.24350431201445e-11)) + fs*(pow(fs,2)*(1.52716798661011e-19*fs + 1.69469955075596e-15) - 4.06178773305017e-11);
b2 = Wah*(Wah*pow(fs,2)*(5.60440211198689e-20*pow(fs,2) - 5.63656684207144e-13) + pow(fs,2)*(-5.60793712668453e-20*pow(fs,2) + 5.55468172212051e-13)) + pow(fs,2)*(-2.29075197991517e-19*pow(fs,2) + 2.59846571481694e-12);
b3 = Wah*(Wah*pow(fs,3)*(-3.73626807465793e-20*fs + 3.74205711519468e-16) + fs*(pow(fs,2)*(3.73862475112302e-20*fs - 3.73838229461424e-16) - 1.24350431201445e-11)) + fs*(pow(fs,2)*(1.52716798661011e-19*fs - 1.69469955075596e-15) + 4.06178773305017e-11);
b4 = Wah*(Wah*pow(fs,2)*(fs*(9.34067018664482e-21*fs - 1.87102855759734e-16) + 2.81828342103572e-13) + fs*(fs*(fs*(-9.34656187780755e-21*fs + 1.86919114730712e-16) - 2.77734086106026e-13) - 6.21752156007224e-12)) + fs*(fs*(fs*(-3.81791996652528e-20*fs + 8.47349775377979e-16) - 1.29923285740847e-12) + 2.03089386652508e-11);
a0 = Wah*(Wah*pow(fs,2)*(fs*(-6.9507309070366e-20*fs - 1.01737279942973e-17) - 8.91391550989893e-14) + fs*(fs*(fs*(-2.47965348716056e-19*fs - 9.25643357134141e-18) + 1.10300249541729e-13) - 2.02588988861339e-12)) + fs*(fs*(fs*(3.2847328592148e-19*fs + 5.6599406495133e-17) + 5.11880447644045e-13) + 1.73599395967319e-11) + 1.0129449443067e-10;
a1 = Wah*(Wah*pow(fs,3)*(2.78029236281464e-19*fs + 2.03474559885945e-17) + fs*(pow(fs,2)*(9.91861394864224e-19*fs + 1.85128671426828e-17) - 4.05177977722679e-12)) + fs*(pow(fs,2)*(-1.31389314368592e-18*fs - 1.13198812990266e-16) + 3.47198791934638e-11) + 4.05177977722679e-10;
a2 = Wah*(Wah*pow(fs,2)*(-4.17043854422196e-19*pow(fs,2) + 1.78278310197979e-13) + pow(fs,2)*(-1.48779209229634e-18*pow(fs,2) - 2.20600499083458e-13)) + pow(fs,2)*(1.97083971552888e-18*pow(fs,2) - 1.02376089528809e-12) + 6.07766966584018e-10;
a3 = Wah*(Wah*pow(fs,3)*(2.78029236281464e-19*fs - 2.03474559885945e-17) + fs*(pow(fs,2)*(9.91861394864224e-19*fs - 1.85128671426828e-17) + 4.05177977722679e-12)) + fs*(pow(fs,2)*(-1.31389314368592e-18*fs + 1.13198812990266e-16) - 3.47198791934638e-11) + 4.05177977722679e-10;
a4 = Wah*(Wah*pow(fs,2)*(fs*(-6.9507309070366e-20*fs + 1.01737279942973e-17) - 8.91391550989893e-14) + fs*(fs*(fs*(-2.47965348716056e-19*fs + 9.25643357134141e-18) + 1.10300249541729e-13) + 2.02588988861339e-12)) + fs*(fs*(fs*(3.2847328592148e-19*fs - 5.6599406495133e-17) + 5.11880447644045e-13) - 1.73599395967319e-11) + 1.0129449443067e-10;
};
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/selwah.dsp | faust | generated automatically
DO NOT MODIFY! | declare id "selwah";
declare name "Selmer Wah";
declare category "Guitar Effects";
declare shortname "Selmer Wah";
declare description "Selmer Wah";
import("stdfaust.lib");
import("guitarix.lib");
process(x) = x : _<:*(dry),(*(wet) : pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0))):>_ with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = fi.dcblockerat(696.855682347);
wet = wah_ctrl.wet_dry;
dry = 1 - wet;
Wah1 = (x : an.amp_follower_ud(0.01,0.1) : min(0.99) : max(0.1) : Inverted(1)): si.smooth(s);
Wah2 = wah_ctrl.wah : LogPot(5) : si.smooth(s);
sl = wah_ctrl.mode;
Wah3 = (os.oscs(freq) + 1) / 2 : min(0.90) : max(0.01) with {
freq = wah_ctrl.freq;
};
Wah = select3(sl, Wah2, Wah1, Wah3);
b0 = Wah*(Wah*pow(fs,2)*(fs*(9.34067018664482e-21*fs + 1.87102855759734e-16) + 2.81828342103572e-13) + fs*(fs*(fs*(-9.34656187780755e-21*fs - 1.86919114730712e-16) - 2.77734086106026e-13) + 6.21752156007224e-12)) + fs*(fs*(fs*(-3.81791996652528e-20*fs - 8.47349775377979e-16) - 1.29923285740847e-12) - 2.03089386652508e-11);
b1 = Wah*(Wah*pow(fs,3)*(-3.73626807465793e-20*fs - 3.74205711519468e-16) + fs*(pow(fs,2)*(3.73862475112302e-20*fs + 3.73838229461424e-16) + 1.24350431201445e-11)) + fs*(pow(fs,2)*(1.52716798661011e-19*fs + 1.69469955075596e-15) - 4.06178773305017e-11);
b2 = Wah*(Wah*pow(fs,2)*(5.60440211198689e-20*pow(fs,2) - 5.63656684207144e-13) + pow(fs,2)*(-5.60793712668453e-20*pow(fs,2) + 5.55468172212051e-13)) + pow(fs,2)*(-2.29075197991517e-19*pow(fs,2) + 2.59846571481694e-12);
b3 = Wah*(Wah*pow(fs,3)*(-3.73626807465793e-20*fs + 3.74205711519468e-16) + fs*(pow(fs,2)*(3.73862475112302e-20*fs - 3.73838229461424e-16) - 1.24350431201445e-11)) + fs*(pow(fs,2)*(1.52716798661011e-19*fs - 1.69469955075596e-15) + 4.06178773305017e-11);
b4 = Wah*(Wah*pow(fs,2)*(fs*(9.34067018664482e-21*fs - 1.87102855759734e-16) + 2.81828342103572e-13) + fs*(fs*(fs*(-9.34656187780755e-21*fs + 1.86919114730712e-16) - 2.77734086106026e-13) - 6.21752156007224e-12)) + fs*(fs*(fs*(-3.81791996652528e-20*fs + 8.47349775377979e-16) - 1.29923285740847e-12) + 2.03089386652508e-11);
a0 = Wah*(Wah*pow(fs,2)*(fs*(-6.9507309070366e-20*fs - 1.01737279942973e-17) - 8.91391550989893e-14) + fs*(fs*(fs*(-2.47965348716056e-19*fs - 9.25643357134141e-18) + 1.10300249541729e-13) - 2.02588988861339e-12)) + fs*(fs*(fs*(3.2847328592148e-19*fs + 5.6599406495133e-17) + 5.11880447644045e-13) + 1.73599395967319e-11) + 1.0129449443067e-10;
a1 = Wah*(Wah*pow(fs,3)*(2.78029236281464e-19*fs + 2.03474559885945e-17) + fs*(pow(fs,2)*(9.91861394864224e-19*fs + 1.85128671426828e-17) - 4.05177977722679e-12)) + fs*(pow(fs,2)*(-1.31389314368592e-18*fs - 1.13198812990266e-16) + 3.47198791934638e-11) + 4.05177977722679e-10;
a2 = Wah*(Wah*pow(fs,2)*(-4.17043854422196e-19*pow(fs,2) + 1.78278310197979e-13) + pow(fs,2)*(-1.48779209229634e-18*pow(fs,2) - 2.20600499083458e-13)) + pow(fs,2)*(1.97083971552888e-18*pow(fs,2) - 1.02376089528809e-12) + 6.07766966584018e-10;
a3 = Wah*(Wah*pow(fs,3)*(2.78029236281464e-19*fs - 2.03474559885945e-17) + fs*(pow(fs,2)*(9.91861394864224e-19*fs - 1.85128671426828e-17) + 4.05177977722679e-12)) + fs*(pow(fs,2)*(-1.31389314368592e-18*fs + 1.13198812990266e-16) - 3.47198791934638e-11) + 4.05177977722679e-10;
a4 = Wah*(Wah*pow(fs,2)*(fs*(-6.9507309070366e-20*fs + 1.01737279942973e-17) - 8.91391550989893e-14) + fs*(fs*(fs*(-2.47965348716056e-19*fs + 9.25643357134141e-18) + 1.10300249541729e-13) + 2.02588988861339e-12)) + fs*(fs*(fs*(3.2847328592148e-19*fs - 5.6599406495133e-17) + 5.11880447644045e-13) - 1.73599395967319e-11) + 1.0129449443067e-10;
};
|
dc9c775fe880a51a1f58ddc8c63c38e6eb2d9bbc09ea5a7bd07354e11e06dd10 | brummer10/guitarix | jenbasswah.dsp | // generated by ./build_wah.py
// DO NOT MODIFY!
declare id "jenbasswah";
declare name "Jen Bass Wah";
declare category "Guitar Effects";
declare description "Jen BassWah";
import("stdfaust.lib");
import("guitarix.lib");
process(x) = x : _<:*(dry),(*(wet) : pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0))):>_ with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = fi.dcblockerat(228.636413554);
wet = wah_ctrl.wet_dry;
dry = 1 - wet;
Wah1 = (x : an.amp_follower_ud(0.01,0.1) : min(0.99) : max(0.1)): si.smooth(s);
Wah2 = wah_ctrl.wah : Inverted(1) : LogPot(5) : si.smooth(s);
sl = wah_ctrl.mode;
Wah3 = (os.oscs(freq) + 1) / 2 : min(0.98) : max(0.01) : Inverted(1) with {
freq = wah_ctrl.freq;
};
Wah = select3(sl, Wah2, Wah1, Wah3);
b0 = Wah*(Wah*pow(fs,2)*(fs*(4.28115775363339e-21*fs + 1.30268272702044e-17) + 1.36038216822257e-14) + fs*(fs*(fs*(-4.26765051664369e-21*fs - 1.30609446727126e-17) - 1.3782974775989e-14) - 2.52409371323892e-13)) + fs*(fs*(fs*(-7.47901710601256e-21*fs - 3.70620297844195e-17) - 5.22012186323421e-14) - 3.09177765505129e-15);
b1 = Wah*(Wah*pow(fs,3)*(-1.71246310145335e-20*fs - 2.60536545404087e-17) + fs*(pow(fs,2)*(1.70706020665747e-20*fs + 2.61218893454252e-17) - 5.04818742647784e-13)) + fs*(pow(fs,2)*(2.99160684240502e-20*fs + 7.4124059568839e-17) - 6.18355531010259e-15);
b2 = Wah*(Wah*pow(fs,2)*(2.56869465218003e-20*pow(fs,2) - 2.72076433644514e-14) + pow(fs,2)*(-2.56059030998621e-20*pow(fs,2) + 2.75659495519781e-14)) + pow(fs,2)*(-4.48741026360754e-20*pow(fs,2) + 1.04402437264684e-13);
b3 = Wah*(Wah*pow(fs,3)*(-1.71246310145335e-20*fs + 2.60536545404087e-17) + fs*(pow(fs,2)*(1.70706020665747e-20*fs - 2.61218893454252e-17) + 5.04818742647784e-13)) + fs*(pow(fs,2)*(2.99160684240502e-20*fs - 7.4124059568839e-17) + 6.18355531010259e-15);
b4 = Wah*(Wah*pow(fs,2)*(fs*(4.28115775363339e-21*fs - 1.30268272702044e-17) + 1.36038216822257e-14) + fs*(fs*(fs*(-4.26765051664369e-21*fs + 1.30609446727126e-17) - 1.3782974775989e-14) + 2.52409371323892e-13)) + fs*(fs*(fs*(-7.47901710601256e-21*fs + 3.70620297844195e-17) - 5.22012186323421e-14) + 3.09177765505129e-15);
a0 = Wah*(Wah*pow(fs,2)*(fs*(-7.02628418882998e-20*fs - 8.45822966675918e-18) - 1.78928790753088e-14) + fs*(fs*(fs*(3.87350386089898e-19*fs + 2.30787830877444e-17) + 1.57249804702232e-14) + 4.06656342620655e-13)) + fs*(fs*(fs*(1.19054639174528e-20*fs + 6.24901706816551e-18) + 8.55689125277824e-14) + 1.62180722455991e-12) + 9.24218960501488e-14;
a1 = Wah*(Wah*pow(fs,3)*(2.81051367553199e-19*fs + 1.69164593335184e-17) + fs*(pow(fs,2)*(-1.54940154435959e-18*fs - 4.61575661754889e-17) + 8.1331268524131e-13)) + fs*(pow(fs,2)*(-4.76218556698113e-20*fs - 1.2498034136331e-17) + 3.24361444911983e-12) + 3.69687584200595e-13;
a2 = Wah*(Wah*pow(fs,2)*(-4.21577051329799e-19*pow(fs,2) + 3.57857581506176e-14) + pow(fs,2)*(2.32410231653939e-18*pow(fs,2) - 3.14499609404464e-14)) + pow(fs,2)*(7.1432783504717e-20*pow(fs,2) - 1.71137825055565e-13) + 5.54531376300893e-13;
a3 = Wah*(Wah*pow(fs,3)*(2.81051367553199e-19*fs - 1.69164593335184e-17) + fs*(pow(fs,2)*(-1.54940154435959e-18*fs + 4.61575661754889e-17) - 8.1331268524131e-13)) + fs*(pow(fs,2)*(-4.76218556698113e-20*fs + 1.2498034136331e-17) - 3.24361444911983e-12) + 3.69687584200595e-13;
a4 = Wah*(Wah*pow(fs,2)*(fs*(-7.02628418882998e-20*fs + 8.45822966675918e-18) - 1.78928790753088e-14) + fs*(fs*(fs*(3.87350386089898e-19*fs - 2.30787830877444e-17) + 1.57249804702232e-14) - 4.06656342620655e-13)) + fs*(fs*(fs*(1.19054639174528e-20*fs - 6.24901706816551e-18) + 8.55689125277824e-14) - 1.62180722455991e-12) + 9.24218960501488e-14;
};
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/jenbasswah.dsp | faust | generated by ./build_wah.py
DO NOT MODIFY! | declare id "jenbasswah";
declare name "Jen Bass Wah";
declare category "Guitar Effects";
declare description "Jen BassWah";
import("stdfaust.lib");
import("guitarix.lib");
process(x) = x : _<:*(dry),(*(wet) : pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0))):>_ with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = fi.dcblockerat(228.636413554);
wet = wah_ctrl.wet_dry;
dry = 1 - wet;
Wah1 = (x : an.amp_follower_ud(0.01,0.1) : min(0.99) : max(0.1)): si.smooth(s);
Wah2 = wah_ctrl.wah : Inverted(1) : LogPot(5) : si.smooth(s);
sl = wah_ctrl.mode;
Wah3 = (os.oscs(freq) + 1) / 2 : min(0.98) : max(0.01) : Inverted(1) with {
freq = wah_ctrl.freq;
};
Wah = select3(sl, Wah2, Wah1, Wah3);
b0 = Wah*(Wah*pow(fs,2)*(fs*(4.28115775363339e-21*fs + 1.30268272702044e-17) + 1.36038216822257e-14) + fs*(fs*(fs*(-4.26765051664369e-21*fs - 1.30609446727126e-17) - 1.3782974775989e-14) - 2.52409371323892e-13)) + fs*(fs*(fs*(-7.47901710601256e-21*fs - 3.70620297844195e-17) - 5.22012186323421e-14) - 3.09177765505129e-15);
b1 = Wah*(Wah*pow(fs,3)*(-1.71246310145335e-20*fs - 2.60536545404087e-17) + fs*(pow(fs,2)*(1.70706020665747e-20*fs + 2.61218893454252e-17) - 5.04818742647784e-13)) + fs*(pow(fs,2)*(2.99160684240502e-20*fs + 7.4124059568839e-17) - 6.18355531010259e-15);
b2 = Wah*(Wah*pow(fs,2)*(2.56869465218003e-20*pow(fs,2) - 2.72076433644514e-14) + pow(fs,2)*(-2.56059030998621e-20*pow(fs,2) + 2.75659495519781e-14)) + pow(fs,2)*(-4.48741026360754e-20*pow(fs,2) + 1.04402437264684e-13);
b3 = Wah*(Wah*pow(fs,3)*(-1.71246310145335e-20*fs + 2.60536545404087e-17) + fs*(pow(fs,2)*(1.70706020665747e-20*fs - 2.61218893454252e-17) + 5.04818742647784e-13)) + fs*(pow(fs,2)*(2.99160684240502e-20*fs - 7.4124059568839e-17) + 6.18355531010259e-15);
b4 = Wah*(Wah*pow(fs,2)*(fs*(4.28115775363339e-21*fs - 1.30268272702044e-17) + 1.36038216822257e-14) + fs*(fs*(fs*(-4.26765051664369e-21*fs + 1.30609446727126e-17) - 1.3782974775989e-14) + 2.52409371323892e-13)) + fs*(fs*(fs*(-7.47901710601256e-21*fs + 3.70620297844195e-17) - 5.22012186323421e-14) + 3.09177765505129e-15);
a0 = Wah*(Wah*pow(fs,2)*(fs*(-7.02628418882998e-20*fs - 8.45822966675918e-18) - 1.78928790753088e-14) + fs*(fs*(fs*(3.87350386089898e-19*fs + 2.30787830877444e-17) + 1.57249804702232e-14) + 4.06656342620655e-13)) + fs*(fs*(fs*(1.19054639174528e-20*fs + 6.24901706816551e-18) + 8.55689125277824e-14) + 1.62180722455991e-12) + 9.24218960501488e-14;
a1 = Wah*(Wah*pow(fs,3)*(2.81051367553199e-19*fs + 1.69164593335184e-17) + fs*(pow(fs,2)*(-1.54940154435959e-18*fs - 4.61575661754889e-17) + 8.1331268524131e-13)) + fs*(pow(fs,2)*(-4.76218556698113e-20*fs - 1.2498034136331e-17) + 3.24361444911983e-12) + 3.69687584200595e-13;
a2 = Wah*(Wah*pow(fs,2)*(-4.21577051329799e-19*pow(fs,2) + 3.57857581506176e-14) + pow(fs,2)*(2.32410231653939e-18*pow(fs,2) - 3.14499609404464e-14)) + pow(fs,2)*(7.1432783504717e-20*pow(fs,2) - 1.71137825055565e-13) + 5.54531376300893e-13;
a3 = Wah*(Wah*pow(fs,3)*(2.81051367553199e-19*fs - 1.69164593335184e-17) + fs*(pow(fs,2)*(-1.54940154435959e-18*fs + 4.61575661754889e-17) - 8.1331268524131e-13)) + fs*(pow(fs,2)*(-4.76218556698113e-20*fs + 1.2498034136331e-17) - 3.24361444911983e-12) + 3.69687584200595e-13;
a4 = Wah*(Wah*pow(fs,2)*(fs*(-7.02628418882998e-20*fs + 8.45822966675918e-18) - 1.78928790753088e-14) + fs*(fs*(fs*(3.87350386089898e-19*fs - 2.30787830877444e-17) + 1.57249804702232e-14) - 4.06656342620655e-13)) + fs*(fs*(fs*(1.19054639174528e-20*fs - 6.24901706816551e-18) + 8.55689125277824e-14) - 1.62180722455991e-12) + 9.24218960501488e-14;
};
|
ff1d50aca8c5f1552221b8d9a4c50eb19d3fe63cdb4203542b74f69f6643569e | brummer10/guitarix | jenwah.dsp | // generated automatically
// DO NOT MODIFY!
declare id "jenwah";
declare name "Jen Wah";
declare category "Guitar Effects";
declare shortname "Jen Wah";
declare description "Jen Wah";
import("stdfaust.lib");
import("guitarix.lib");
process(x) = x : _<:*(dry),(*(wet) : pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0))):>_ with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = fi.dcblockerat(228.220182634);
wet = wah_ctrl.wet_dry;
dry = 1 - wet;
Wah1 = (x : an.amp_follower_ud(0.01,0.1) : min(0.99) : max(0.1)): si.smooth(s);
Wah2 = wah_ctrl.wah : Inverted(1) : LogPot(5) : si.smooth(s);
sl = wah_ctrl.mode;
Wah3 = (os.oscs(freq) + 1) / 2 : min(0.98) : max(0.01) : Inverted(1) with {
freq = wah_ctrl.freq;
};
Wah = select3(sl, Wah2, Wah1, Wah3);
b0 = Wah*(Wah*pow(fs,2)*(fs*(4.26313918949843e-21*fs + 6.7438235280676e-17) + 9.21166476483994e-14) + fs*(fs*(fs*(-4.24968880185418e-21*fs - 6.74722090896416e-17) - 9.33056295237144e-14) - 1.7091597982174e-12)) + fs*(fs*(fs*(-7.44753937081794e-21*fs - 2.45894566379345e-16) - 3.53469573143013e-13) - 2.09356017382726e-14);
b1 = Wah*(Wah*pow(fs,3)*(-1.70525567579937e-20*fs - 1.34876470561352e-16) + fs*(pow(fs,2)*(1.69987552074167e-20*fs + 1.34944418179283e-16) - 3.41831959643481e-12)) + fs*(pow(fs,2)*(2.97901574832717e-20*fs + 4.9178913275869e-16) - 4.18712034765452e-14);
b2 = Wah*(Wah*pow(fs,2)*(2.55788351369906e-20*pow(fs,2) - 1.84233295296799e-13) + pow(fs,2)*(-2.54981328111251e-20*pow(fs,2) + 1.86611259047429e-13)) + pow(fs,2)*(-4.46852362249076e-20*pow(fs,2) + 7.06939146286026e-13);
b3 = Wah*(Wah*pow(fs,3)*(-1.70525567579937e-20*fs + 1.34876470561352e-16) + fs*(pow(fs,2)*(1.69987552074167e-20*fs - 1.34944418179283e-16) + 3.41831959643481e-12)) + fs*(pow(fs,2)*(2.97901574832717e-20*fs - 4.9178913275869e-16) + 4.18712034765452e-14);
b4 = Wah*(Wah*pow(fs,2)*(fs*(4.26313918949843e-21*fs - 6.7438235280676e-17) + 9.21166476483994e-14) + fs*(fs*(fs*(-4.24968880185418e-21*fs + 6.74722090896416e-17) - 9.33056295237144e-14) + 1.7091597982174e-12)) + fs*(fs*(fs*(-7.44753937081794e-21*fs + 2.45894566379345e-16) - 3.53469573143013e-13) + 2.09356017382726e-14);
a0 = Wah*(Wah*pow(fs,2)*(fs*(-6.99671191908366e-20*fs - 1.39394278118629e-17) - 1.21159485597039e-13) + fs*(fs*(fs*(3.85720103312511e-19*fs + 2.77707619975565e-17) + 1.05494945988648e-13) + 2.75362467265997e-12)) + fs*(fs*(fs*(1.18553561246751e-20*fs + 3.2569797714609e-17) + 5.79248390117011e-13) + 1.0981649358109e-11) + 6.25823789240903e-13;
a1 = Wah*(Wah*pow(fs,3)*(2.79868476763347e-19*fs + 2.78788556237258e-17) + fs*(pow(fs,2)*(-1.54288041325004e-18*fs - 5.55415239951129e-17) + 5.50724934531995e-12)) + fs*(pow(fs,2)*(-4.74214244987003e-20*fs - 6.51395954292179e-17) + 2.19632987162179e-11) + 2.50329515696361e-12;
a2 = Wah*(Wah*pow(fs,2)*(-4.1980271514502e-19*pow(fs,2) + 2.42318971194078e-13) + pow(fs,2)*(2.31432061987506e-18*pow(fs,2) - 2.10989891977295e-13)) + pow(fs,2)*(7.11321367480505e-20*pow(fs,2) - 1.15849678023402e-12) + 3.75494273544542e-12;
a3 = Wah*(Wah*pow(fs,3)*(2.79868476763347e-19*fs - 2.78788556237258e-17) + fs*(pow(fs,2)*(-1.54288041325004e-18*fs + 5.55415239951129e-17) - 5.50724934531995e-12)) + fs*(pow(fs,2)*(-4.74214244987003e-20*fs + 6.51395954292179e-17) - 2.19632987162179e-11) + 2.50329515696361e-12;
a4 = Wah*(Wah*pow(fs,2)*(fs*(-6.99671191908366e-20*fs + 1.39394278118629e-17) - 1.21159485597039e-13) + fs*(fs*(fs*(3.85720103312511e-19*fs - 2.77707619975565e-17) + 1.05494945988648e-13) - 2.75362467265997e-12)) + fs*(fs*(fs*(1.18553561246751e-20*fs - 3.2569797714609e-17) + 5.79248390117011e-13) - 1.0981649358109e-11) + 6.25823789240903e-13;
};
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/jenwah.dsp | faust | generated automatically
DO NOT MODIFY! | declare id "jenwah";
declare name "Jen Wah";
declare category "Guitar Effects";
declare shortname "Jen Wah";
declare description "Jen Wah";
import("stdfaust.lib");
import("guitarix.lib");
process(x) = x : _<:*(dry),(*(wet) : pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0))):>_ with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = fi.dcblockerat(228.220182634);
wet = wah_ctrl.wet_dry;
dry = 1 - wet;
Wah1 = (x : an.amp_follower_ud(0.01,0.1) : min(0.99) : max(0.1)): si.smooth(s);
Wah2 = wah_ctrl.wah : Inverted(1) : LogPot(5) : si.smooth(s);
sl = wah_ctrl.mode;
Wah3 = (os.oscs(freq) + 1) / 2 : min(0.98) : max(0.01) : Inverted(1) with {
freq = wah_ctrl.freq;
};
Wah = select3(sl, Wah2, Wah1, Wah3);
b0 = Wah*(Wah*pow(fs,2)*(fs*(4.26313918949843e-21*fs + 6.7438235280676e-17) + 9.21166476483994e-14) + fs*(fs*(fs*(-4.24968880185418e-21*fs - 6.74722090896416e-17) - 9.33056295237144e-14) - 1.7091597982174e-12)) + fs*(fs*(fs*(-7.44753937081794e-21*fs - 2.45894566379345e-16) - 3.53469573143013e-13) - 2.09356017382726e-14);
b1 = Wah*(Wah*pow(fs,3)*(-1.70525567579937e-20*fs - 1.34876470561352e-16) + fs*(pow(fs,2)*(1.69987552074167e-20*fs + 1.34944418179283e-16) - 3.41831959643481e-12)) + fs*(pow(fs,2)*(2.97901574832717e-20*fs + 4.9178913275869e-16) - 4.18712034765452e-14);
b2 = Wah*(Wah*pow(fs,2)*(2.55788351369906e-20*pow(fs,2) - 1.84233295296799e-13) + pow(fs,2)*(-2.54981328111251e-20*pow(fs,2) + 1.86611259047429e-13)) + pow(fs,2)*(-4.46852362249076e-20*pow(fs,2) + 7.06939146286026e-13);
b3 = Wah*(Wah*pow(fs,3)*(-1.70525567579937e-20*fs + 1.34876470561352e-16) + fs*(pow(fs,2)*(1.69987552074167e-20*fs - 1.34944418179283e-16) + 3.41831959643481e-12)) + fs*(pow(fs,2)*(2.97901574832717e-20*fs - 4.9178913275869e-16) + 4.18712034765452e-14);
b4 = Wah*(Wah*pow(fs,2)*(fs*(4.26313918949843e-21*fs - 6.7438235280676e-17) + 9.21166476483994e-14) + fs*(fs*(fs*(-4.24968880185418e-21*fs + 6.74722090896416e-17) - 9.33056295237144e-14) + 1.7091597982174e-12)) + fs*(fs*(fs*(-7.44753937081794e-21*fs + 2.45894566379345e-16) - 3.53469573143013e-13) + 2.09356017382726e-14);
a0 = Wah*(Wah*pow(fs,2)*(fs*(-6.99671191908366e-20*fs - 1.39394278118629e-17) - 1.21159485597039e-13) + fs*(fs*(fs*(3.85720103312511e-19*fs + 2.77707619975565e-17) + 1.05494945988648e-13) + 2.75362467265997e-12)) + fs*(fs*(fs*(1.18553561246751e-20*fs + 3.2569797714609e-17) + 5.79248390117011e-13) + 1.0981649358109e-11) + 6.25823789240903e-13;
a1 = Wah*(Wah*pow(fs,3)*(2.79868476763347e-19*fs + 2.78788556237258e-17) + fs*(pow(fs,2)*(-1.54288041325004e-18*fs - 5.55415239951129e-17) + 5.50724934531995e-12)) + fs*(pow(fs,2)*(-4.74214244987003e-20*fs - 6.51395954292179e-17) + 2.19632987162179e-11) + 2.50329515696361e-12;
a2 = Wah*(Wah*pow(fs,2)*(-4.1980271514502e-19*pow(fs,2) + 2.42318971194078e-13) + pow(fs,2)*(2.31432061987506e-18*pow(fs,2) - 2.10989891977295e-13)) + pow(fs,2)*(7.11321367480505e-20*pow(fs,2) - 1.15849678023402e-12) + 3.75494273544542e-12;
a3 = Wah*(Wah*pow(fs,3)*(2.79868476763347e-19*fs - 2.78788556237258e-17) + fs*(pow(fs,2)*(-1.54288041325004e-18*fs + 5.55415239951129e-17) - 5.50724934531995e-12)) + fs*(pow(fs,2)*(-4.74214244987003e-20*fs + 6.51395954292179e-17) - 2.19632987162179e-11) + 2.50329515696361e-12;
a4 = Wah*(Wah*pow(fs,2)*(fs*(-6.99671191908366e-20*fs + 1.39394278118629e-17) - 1.21159485597039e-13) + fs*(fs*(fs*(3.85720103312511e-19*fs - 2.77707619975565e-17) + 1.05494945988648e-13) - 2.75362467265997e-12)) + fs*(fs*(fs*(1.18553561246751e-20*fs - 3.2569797714609e-17) + 5.79248390117011e-13) - 1.0981649358109e-11) + 6.25823789240903e-13;
};
|
2898fe9e00060fc6a18ef15e4df57b74715ead3c5460c74f5744e875b3ef31fa | brummer10/guitarix | foxwah.dsp | // generated automatically
// DO NOT MODIFY!
declare id "foxwah";
declare name "Foxx Wah";
declare category "Guitar Effects";
declare shortname "Foxx Wah";
declare description "Foxx Wah";
import("stdfaust.lib");
import("guitarix.lib");
process(x) = x : _<:*(dry),(*(wet) : pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0))):>_ with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
wet = wah_ctrl.wet_dry;
dry = 1 - wet;
pre = fi.dcblockerat(228.232162503);
Wah1 = (x : an.amp_follower_ud(0.01,0.1) : min(0.98) : max(0.02) : Inverted(1)): si.smooth(s);
Wah2 = wah_ctrl.wah : max(0.01) : LogPot(1) : si.smooth(s);
sl = wah_ctrl.mode;
Wah3 = (os.oscs(freq) + 1) / 2 : min(0.98) : max(0.02) : Inverted(1) with {
freq = wah_ctrl.freq;
};
Wah = select3(sl, Wah2, Wah1, Wah3);
b0 = Wah*(Wah*pow(fs,2)*(fs*(1.83199828084009e-21*fs + 4.37177575394138e-17) + 5.9658637492238e-14) + fs*(fs*(fs*(-2.03749178510912e-21*fs - 4.85447818408113e-17) - 6.52701543961359e-14) + 1.41209804493283e-12)) + fs*(fs*(fs*(-7.06526492747902e-21*fs - 2.33820876003629e-16) - 3.26825644515106e-13) - 3.24292143859646e-12);
b1 = Wah*(Wah*pow(fs,3)*(-7.32799312336037e-21*fs - 8.74355150788276e-17) + fs*(pow(fs,2)*(8.14996714043648e-21*fs + 9.70895636816225e-17) + 2.82419608986565e-12)) + fs*(pow(fs,2)*(2.82610597099161e-20*fs + 4.67641752007259e-16) - 6.48584287719292e-12);
b2 = Wah*(Wah*pow(fs,2)*(1.09919896850405e-20*pow(fs,2) - 1.19317274984476e-13) + pow(fs,2)*(-1.22249507106547e-20*pow(fs,2) + 1.30540308792272e-13)) + pow(fs,2)*(-4.23915895648741e-20*pow(fs,2) + 6.53651289030211e-13);
b3 = Wah*(Wah*pow(fs,3)*(-7.32799312336037e-21*fs + 8.74355150788276e-17) + fs*(pow(fs,2)*(8.14996714043648e-21*fs - 9.70895636816225e-17) - 2.82419608986565e-12)) + fs*(pow(fs,2)*(2.82610597099161e-20*fs - 4.67641752007259e-16) + 6.48584287719292e-12);
b4 = Wah*(Wah*pow(fs,2)*(fs*(1.83199828084009e-21*fs - 4.37177575394138e-17) + 5.9658637492238e-14) + fs*(fs*(fs*(-2.03749178510912e-21*fs + 4.85447818408113e-17) - 6.52701543961359e-14) - 1.41209804493283e-12)) + fs*(fs*(fs*(-7.06526492747902e-21*fs + 2.33820876003629e-16) - 3.26825644515106e-13) + 3.24292143859646e-12);
a0 = Wah*(Wah*pow(fs,2)*(fs*(-5.27939482245346e-20*fs - 3.84581222788281e-18) - 4.45118937547182e-14) + fs*(fs*(fs*(-2.11837046611975e-19*fs - 1.50671579237021e-18) + 5.84262202161266e-14) - 1.12403772107874e-12)) + fs*(fs*(fs*(3.06896988210923e-19*fs + 2.40276998984285e-17) + 2.93439745158876e-13) + 8.49404844378593e-12) + 2.83847909363319e-11;
a1 = Wah*(Wah*pow(fs,3)*(2.11175792898138e-19*fs + 7.69162445576562e-18) + fs*(pow(fs,2)*(8.473481864479e-19*fs + 3.01343158474042e-18) - 2.24807544215749e-12)) + fs*(pow(fs,2)*(-1.22758795284369e-18*fs - 4.80553997968569e-17) + 1.69880968875719e-11) + 1.13539163745328e-10;
a2 = Wah*(Wah*pow(fs,2)*(-3.16763689347207e-19*pow(fs,2) + 8.90237875094365e-14) + pow(fs,2)*(-1.27102227967185e-18*pow(fs,2) - 1.16852440432253e-13)) + pow(fs,2)*(1.84138192926554e-18*pow(fs,2) - 5.86879490317752e-13) + 1.70308745617991e-10;
a3 = Wah*(Wah*pow(fs,3)*(2.11175792898138e-19*fs - 7.69162445576562e-18) + fs*(pow(fs,2)*(8.473481864479e-19*fs - 3.01343158474042e-18) + 2.24807544215749e-12)) + fs*(pow(fs,2)*(-1.22758795284369e-18*fs + 4.80553997968569e-17) - 1.69880968875719e-11) + 1.13539163745328e-10;
a4 = Wah*(Wah*pow(fs,2)*(fs*(-5.27939482245346e-20*fs + 3.84581222788281e-18) - 4.45118937547182e-14) + fs*(fs*(fs*(-2.11837046611975e-19*fs + 1.50671579237021e-18) + 5.84262202161266e-14) + 1.12403772107874e-12)) + fs*(fs*(fs*(3.06896988210923e-19*fs - 2.40276998984285e-17) + 2.93439745158876e-13) - 8.49404844378593e-12) + 2.83847909363319e-11;
};
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/foxwah.dsp | faust | generated automatically
DO NOT MODIFY! | declare id "foxwah";
declare name "Foxx Wah";
declare category "Guitar Effects";
declare shortname "Foxx Wah";
declare description "Foxx Wah";
import("stdfaust.lib");
import("guitarix.lib");
process(x) = x : _<:*(dry),(*(wet) : pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0))):>_ with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
wet = wah_ctrl.wet_dry;
dry = 1 - wet;
pre = fi.dcblockerat(228.232162503);
Wah1 = (x : an.amp_follower_ud(0.01,0.1) : min(0.98) : max(0.02) : Inverted(1)): si.smooth(s);
Wah2 = wah_ctrl.wah : max(0.01) : LogPot(1) : si.smooth(s);
sl = wah_ctrl.mode;
Wah3 = (os.oscs(freq) + 1) / 2 : min(0.98) : max(0.02) : Inverted(1) with {
freq = wah_ctrl.freq;
};
Wah = select3(sl, Wah2, Wah1, Wah3);
b0 = Wah*(Wah*pow(fs,2)*(fs*(1.83199828084009e-21*fs + 4.37177575394138e-17) + 5.9658637492238e-14) + fs*(fs*(fs*(-2.03749178510912e-21*fs - 4.85447818408113e-17) - 6.52701543961359e-14) + 1.41209804493283e-12)) + fs*(fs*(fs*(-7.06526492747902e-21*fs - 2.33820876003629e-16) - 3.26825644515106e-13) - 3.24292143859646e-12);
b1 = Wah*(Wah*pow(fs,3)*(-7.32799312336037e-21*fs - 8.74355150788276e-17) + fs*(pow(fs,2)*(8.14996714043648e-21*fs + 9.70895636816225e-17) + 2.82419608986565e-12)) + fs*(pow(fs,2)*(2.82610597099161e-20*fs + 4.67641752007259e-16) - 6.48584287719292e-12);
b2 = Wah*(Wah*pow(fs,2)*(1.09919896850405e-20*pow(fs,2) - 1.19317274984476e-13) + pow(fs,2)*(-1.22249507106547e-20*pow(fs,2) + 1.30540308792272e-13)) + pow(fs,2)*(-4.23915895648741e-20*pow(fs,2) + 6.53651289030211e-13);
b3 = Wah*(Wah*pow(fs,3)*(-7.32799312336037e-21*fs + 8.74355150788276e-17) + fs*(pow(fs,2)*(8.14996714043648e-21*fs - 9.70895636816225e-17) - 2.82419608986565e-12)) + fs*(pow(fs,2)*(2.82610597099161e-20*fs - 4.67641752007259e-16) + 6.48584287719292e-12);
b4 = Wah*(Wah*pow(fs,2)*(fs*(1.83199828084009e-21*fs - 4.37177575394138e-17) + 5.9658637492238e-14) + fs*(fs*(fs*(-2.03749178510912e-21*fs + 4.85447818408113e-17) - 6.52701543961359e-14) - 1.41209804493283e-12)) + fs*(fs*(fs*(-7.06526492747902e-21*fs + 2.33820876003629e-16) - 3.26825644515106e-13) + 3.24292143859646e-12);
a0 = Wah*(Wah*pow(fs,2)*(fs*(-5.27939482245346e-20*fs - 3.84581222788281e-18) - 4.45118937547182e-14) + fs*(fs*(fs*(-2.11837046611975e-19*fs - 1.50671579237021e-18) + 5.84262202161266e-14) - 1.12403772107874e-12)) + fs*(fs*(fs*(3.06896988210923e-19*fs + 2.40276998984285e-17) + 2.93439745158876e-13) + 8.49404844378593e-12) + 2.83847909363319e-11;
a1 = Wah*(Wah*pow(fs,3)*(2.11175792898138e-19*fs + 7.69162445576562e-18) + fs*(pow(fs,2)*(8.473481864479e-19*fs + 3.01343158474042e-18) - 2.24807544215749e-12)) + fs*(pow(fs,2)*(-1.22758795284369e-18*fs - 4.80553997968569e-17) + 1.69880968875719e-11) + 1.13539163745328e-10;
a2 = Wah*(Wah*pow(fs,2)*(-3.16763689347207e-19*pow(fs,2) + 8.90237875094365e-14) + pow(fs,2)*(-1.27102227967185e-18*pow(fs,2) - 1.16852440432253e-13)) + pow(fs,2)*(1.84138192926554e-18*pow(fs,2) - 5.86879490317752e-13) + 1.70308745617991e-10;
a3 = Wah*(Wah*pow(fs,3)*(2.11175792898138e-19*fs - 7.69162445576562e-18) + fs*(pow(fs,2)*(8.473481864479e-19*fs - 3.01343158474042e-18) + 2.24807544215749e-12)) + fs*(pow(fs,2)*(-1.22758795284369e-18*fs + 4.80553997968569e-17) - 1.69880968875719e-11) + 1.13539163745328e-10;
a4 = Wah*(Wah*pow(fs,2)*(fs*(-5.27939482245346e-20*fs + 3.84581222788281e-18) - 4.45118937547182e-14) + fs*(fs*(fs*(-2.11837046611975e-19*fs + 1.50671579237021e-18) + 5.84262202161266e-14) + 1.12403772107874e-12)) + fs*(fs*(fs*(3.06896988210923e-19*fs - 2.40276998984285e-17) + 2.93439745158876e-13) - 8.49404844378593e-12) + 2.83847909363319e-11;
};
|
129108c630f4da0195fea4f6f772a27a66d36ef0cffb94e659f02b993ce6a65c | brummer10/guitarix | colwah.dsp | // generated automatically
// DO NOT MODIFY!
declare id "colwah";
declare name "ColorSound Wah";
declare category "Guitar Effects";
declare shortname "ColorSound Wah";
declare description "ColorSound Wah";
import("stdfaust.lib");
import("guitarix.lib");
process(x) = x : _<:*(dry),(*(wet) : pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0))):>_ with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
wet = wah_ctrl.wet_dry;
dry = 1 - wet;
pre = fi.dcblockerat(156.537925581);
Wah1 = (x : an.amp_follower_ud(0.01,0.1) : min(1) : max(0.02) ) : si.smooth(s);
Wah2 = wah_ctrl.wah : max(0.01) : Inverted(1) : LogPot(5) : si.smooth(s);
sl = wah_ctrl.mode;
Wah3 = (os.oscs(freq) + 1) / 2 : min(0.98) : max(0.02) : Inverted(1) with {
freq = wah_ctrl.freq;
};
Wah = select3(sl, Wah2, Wah1, Wah3);
b0 = Wah*(Wah*pow(fs,2)*(fs*(8.31249052050881e-22*fs + 1.912505767204e-17) + 2.9122542229415e-14) + fs*(fs*(fs*(-8.22579827731233e-22*fs - 1.89445663105706e-17) - 2.92311751105741e-14) - 6.25519484069141e-13)) + fs*(fs*(fs*(-2.66926675132622e-21*fs - 8.43534115306834e-17) - 1.31405791553819e-13) - 6.81633101368958e-13);
b1 = Wah*(Wah*pow(fs,3)*(-3.32499620820352e-21*fs - 3.825011534408e-17) + fs*(pow(fs,2)*(3.29031931092493e-21*fs + 3.78891326211413e-17) - 1.25103896813828e-12)) + fs*(pow(fs,2)*(1.06770670053049e-20*fs + 1.68706823061367e-16) - 1.36326620273792e-12);
b2 = Wah*(Wah*pow(fs,2)*(4.98749431230529e-21*pow(fs,2) - 5.824508445883e-14) + pow(fs,2)*(-4.9354789663874e-21*pow(fs,2) + 5.84623502211483e-14)) + pow(fs,2)*(-1.60156005079573e-20*pow(fs,2) + 2.62811583107638e-13);
b3 = Wah*(Wah*pow(fs,3)*(-3.32499620820352e-21*fs + 3.825011534408e-17) + fs*(pow(fs,2)*(3.29031931092493e-21*fs - 3.78891326211413e-17) + 1.25103896813828e-12)) + fs*(pow(fs,2)*(1.06770670053049e-20*fs - 1.68706823061367e-16) + 1.36326620273792e-12);
b4 = Wah*(Wah*pow(fs,2)*(fs*(8.31249052050881e-22*fs - 1.912505767204e-17) + 2.9122542229415e-14) + fs*(fs*(fs*(-8.22579827731233e-22*fs + 1.89445663105706e-17) - 2.92311751105741e-14) + 6.25519484069141e-13)) + fs*(fs*(fs*(-2.66926675132622e-21*fs + 8.43534115306834e-17) - 1.31405791553819e-13) + 6.81633101368958e-13);
a0 = Wah*(Wah*fs*(fs*(fs*(-6.9713352578405e-20*fs - 5.83030654431973e-18) - 2.29684974478901e-14) - 2.35672055328543e-13) + fs*(fs*(fs*(3.97687174092932e-19*fs + 2.70551577331849e-17) + 1.90255378851155e-14) + 7.09396691797023e-13)) + fs*(fs*(fs*(6.54938497087849e-21*fs + 5.15430968663743e-18) + 1.2663530557943e-13) + 3.94769224069978e-12) + 1.63948058636323e-11;
a1 = Wah*(Wah*fs*(pow(fs,2)*(2.7885341031362e-19*fs + 1.16606130886395e-17) - 4.71344110657085e-13) + fs*(pow(fs,2)*(-1.59074869637173e-18*fs - 5.41103154663699e-17) + 1.41879338359405e-12)) + fs*(pow(fs,2)*(-2.6197539883514e-20*fs - 1.03086193732749e-17) + 7.89538448139956e-12) + 6.55792234545291e-11;
a2 = Wah*(Wah*pow(fs,2)*(-4.1828011547043e-19*pow(fs,2) + 4.59369948957802e-14) + pow(fs,2)*(2.38612304455759e-18*pow(fs,2) - 3.8051075770231e-14)) + pow(fs,2)*(3.9296309825271e-20*pow(fs,2) - 2.5327061115886e-13) + 9.83688351817936e-11;
a3 = Wah*(Wah*fs*(pow(fs,2)*(2.7885341031362e-19*fs - 1.16606130886395e-17) + 4.71344110657085e-13) + fs*(pow(fs,2)*(-1.59074869637173e-18*fs + 5.41103154663699e-17) - 1.41879338359405e-12)) + fs*(pow(fs,2)*(-2.6197539883514e-20*fs + 1.03086193732749e-17) - 7.89538448139956e-12) + 6.55792234545291e-11;
a4 = Wah*(Wah*fs*(fs*(fs*(-6.9713352578405e-20*fs + 5.83030654431973e-18) - 2.29684974478901e-14) + 2.35672055328543e-13) + fs*(fs*(fs*(3.97687174092932e-19*fs - 2.70551577331849e-17) + 1.90255378851155e-14) - 7.09396691797023e-13)) + fs*(fs*(fs*(6.54938497087849e-21*fs - 5.15430968663743e-18) + 1.2663530557943e-13) - 3.94769224069978e-12) + 1.63948058636323e-11;
};
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/colwah.dsp | faust | generated automatically
DO NOT MODIFY! | declare id "colwah";
declare name "ColorSound Wah";
declare category "Guitar Effects";
declare shortname "ColorSound Wah";
declare description "ColorSound Wah";
import("stdfaust.lib");
import("guitarix.lib");
process(x) = x : _<:*(dry),(*(wet) : pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0))):>_ with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
wet = wah_ctrl.wet_dry;
dry = 1 - wet;
pre = fi.dcblockerat(156.537925581);
Wah1 = (x : an.amp_follower_ud(0.01,0.1) : min(1) : max(0.02) ) : si.smooth(s);
Wah2 = wah_ctrl.wah : max(0.01) : Inverted(1) : LogPot(5) : si.smooth(s);
sl = wah_ctrl.mode;
Wah3 = (os.oscs(freq) + 1) / 2 : min(0.98) : max(0.02) : Inverted(1) with {
freq = wah_ctrl.freq;
};
Wah = select3(sl, Wah2, Wah1, Wah3);
b0 = Wah*(Wah*pow(fs,2)*(fs*(8.31249052050881e-22*fs + 1.912505767204e-17) + 2.9122542229415e-14) + fs*(fs*(fs*(-8.22579827731233e-22*fs - 1.89445663105706e-17) - 2.92311751105741e-14) - 6.25519484069141e-13)) + fs*(fs*(fs*(-2.66926675132622e-21*fs - 8.43534115306834e-17) - 1.31405791553819e-13) - 6.81633101368958e-13);
b1 = Wah*(Wah*pow(fs,3)*(-3.32499620820352e-21*fs - 3.825011534408e-17) + fs*(pow(fs,2)*(3.29031931092493e-21*fs + 3.78891326211413e-17) - 1.25103896813828e-12)) + fs*(pow(fs,2)*(1.06770670053049e-20*fs + 1.68706823061367e-16) - 1.36326620273792e-12);
b2 = Wah*(Wah*pow(fs,2)*(4.98749431230529e-21*pow(fs,2) - 5.824508445883e-14) + pow(fs,2)*(-4.9354789663874e-21*pow(fs,2) + 5.84623502211483e-14)) + pow(fs,2)*(-1.60156005079573e-20*pow(fs,2) + 2.62811583107638e-13);
b3 = Wah*(Wah*pow(fs,3)*(-3.32499620820352e-21*fs + 3.825011534408e-17) + fs*(pow(fs,2)*(3.29031931092493e-21*fs - 3.78891326211413e-17) + 1.25103896813828e-12)) + fs*(pow(fs,2)*(1.06770670053049e-20*fs - 1.68706823061367e-16) + 1.36326620273792e-12);
b4 = Wah*(Wah*pow(fs,2)*(fs*(8.31249052050881e-22*fs - 1.912505767204e-17) + 2.9122542229415e-14) + fs*(fs*(fs*(-8.22579827731233e-22*fs + 1.89445663105706e-17) - 2.92311751105741e-14) + 6.25519484069141e-13)) + fs*(fs*(fs*(-2.66926675132622e-21*fs + 8.43534115306834e-17) - 1.31405791553819e-13) + 6.81633101368958e-13);
a0 = Wah*(Wah*fs*(fs*(fs*(-6.9713352578405e-20*fs - 5.83030654431973e-18) - 2.29684974478901e-14) - 2.35672055328543e-13) + fs*(fs*(fs*(3.97687174092932e-19*fs + 2.70551577331849e-17) + 1.90255378851155e-14) + 7.09396691797023e-13)) + fs*(fs*(fs*(6.54938497087849e-21*fs + 5.15430968663743e-18) + 1.2663530557943e-13) + 3.94769224069978e-12) + 1.63948058636323e-11;
a1 = Wah*(Wah*fs*(pow(fs,2)*(2.7885341031362e-19*fs + 1.16606130886395e-17) - 4.71344110657085e-13) + fs*(pow(fs,2)*(-1.59074869637173e-18*fs - 5.41103154663699e-17) + 1.41879338359405e-12)) + fs*(pow(fs,2)*(-2.6197539883514e-20*fs - 1.03086193732749e-17) + 7.89538448139956e-12) + 6.55792234545291e-11;
a2 = Wah*(Wah*pow(fs,2)*(-4.1828011547043e-19*pow(fs,2) + 4.59369948957802e-14) + pow(fs,2)*(2.38612304455759e-18*pow(fs,2) - 3.8051075770231e-14)) + pow(fs,2)*(3.9296309825271e-20*pow(fs,2) - 2.5327061115886e-13) + 9.83688351817936e-11;
a3 = Wah*(Wah*fs*(pow(fs,2)*(2.7885341031362e-19*fs - 1.16606130886395e-17) + 4.71344110657085e-13) + fs*(pow(fs,2)*(-1.59074869637173e-18*fs + 5.41103154663699e-17) - 1.41879338359405e-12)) + fs*(pow(fs,2)*(-2.6197539883514e-20*fs + 1.03086193732749e-17) - 7.89538448139956e-12) + 6.55792234545291e-11;
a4 = Wah*(Wah*fs*(fs*(fs*(-6.9713352578405e-20*fs + 5.83030654431973e-18) - 2.29684974478901e-14) + 2.35672055328543e-13) + fs*(fs*(fs*(3.97687174092932e-19*fs - 2.70551577331849e-17) + 1.90255378851155e-14) - 7.09396691797023e-13)) + fs*(fs*(fs*(6.54938497087849e-21*fs - 5.15430968663743e-18) + 1.2663530557943e-13) - 3.94769224069978e-12) + 1.63948058636323e-11;
};
|
3b36be40ec630652edd91608741345b882e9578a8ca8efb5a073761e7677a090 | brummer10/guitarix | dallaswah.dsp | // generated automatically
// DO NOT MODIFY!
declare id "dallaswah";
declare name "Dallas Wah";
declare category "Guitar Effects";
declare shortname "Dallas Wah";
declare description "Dallas Arbiter Wah";
import("stdfaust.lib");
import("guitarix.lib");
process(x) = x : _<:*(dry),(*(wet) : pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0))):>_ with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = fi.dcblockerat(583.714419367);
wet = wah_ctrl.wet_dry;
dry = 1 - wet;
Wah1 = (x : an.amp_follower_ud(0.01,0.1) : min(1) : max(0.02) ) : si.smooth(s);
Wah2 = wah_ctrl.wah : max(0.01) : Inverted(1) : LogPot(5) : si.smooth(s);
sl = wah_ctrl.mode;
Wah3 = (os.oscs(freq) + 1) / 2 : min(0.98) : max(0.02) : Inverted(1) with {
freq = wah_ctrl.freq;
};
Wah = select3(sl, Wah2, Wah1, Wah3);
b0 = Wah*(Wah*fs*(fs*(fs*(2.83510090714092e-21*fs + 1.04896968320146e-16) + 1.59534818623044e-13) - 1.53357283072645e-26) + fs*(fs*(fs*(-2.32347860461171e-21*fs - 8.64108311643329e-17) - 1.33575525905195e-13) - 3.41675778537176e-12)) + fs*(fs*(fs*(-7.07917432005204e-21*fs - 5.52389028989215e-16) - 8.63117119019868e-13) - 5.62135356398181e-12);
b1 = Wah*(Wah*fs*(pow(fs,2)*(-1.13404036285637e-20*fs - 2.09793936640293e-16) - 3.06714566145289e-26) + fs*(pow(fs,2)*(9.29391441844685e-21*fs + 1.72821662328666e-16) - 6.83351557074351e-12)) + fs*(pow(fs,2)*(2.83166972802082e-20*fs + 1.10477805797843e-15) - 1.12427071279636e-11);
b2 = Wah*(Wah*pow(fs,2)*(1.70106054428455e-20*pow(fs,2) - 3.19069637246088e-13) + pow(fs,2)*(-1.39408716276703e-20*pow(fs,2) + 2.6715105181039e-13)) + pow(fs,2)*(-4.24750459203123e-20*pow(fs,2) + 1.72623423803974e-12);
b3 = Wah*(Wah*fs*(pow(fs,2)*(-1.13404036285637e-20*fs + 2.09793936640293e-16) + 3.06714566145289e-26) + fs*(pow(fs,2)*(9.29391441844685e-21*fs - 1.72821662328666e-16) + 6.83351557074351e-12)) + fs*(pow(fs,2)*(2.83166972802082e-20*fs - 1.10477805797843e-15) + 1.12427071279636e-11);
b4 = Wah*(Wah*fs*(fs*(fs*(2.83510090714092e-21*fs - 1.04896968320146e-16) + 1.59534818623044e-13) + 1.53357283072645e-26) + fs*(fs*(fs*(-2.32347860461171e-21*fs + 8.64108311643329e-17) - 1.33575525905195e-13) + 3.41675778537176e-12)) + fs*(fs*(fs*(-7.07917432005204e-21*fs + 5.52389028989215e-16) - 8.63117119019868e-13) + 5.62135356398181e-12);
a0 = Wah*(Wah*fs*(fs*(fs*(-4.47972527031659e-20*fs - 1.0922674147551e-17) - 2.09610231217262e-13) + 2.01493666656321e-26) + fs*(fs*(fs*(2.74906060407121e-19*fs + 2.45407810123387e-17) + 1.4198849343527e-13) + 5.60455163682517e-12) - 5.38753119401928e-25) + fs*(fs*(fs*(6.05097478328861e-20*fs + 3.86741226880994e-17) + 1.39111781189056e-12) + 3.46679367777423e-11) + 1.49854321840248e-10;
a1 = Wah*(Wah*fs*(pow(fs,2)*(1.79189010812664e-19*fs + 2.18453482951021e-17) + 4.02987333312642e-26) + fs*(pow(fs,2)*(-1.09962424162848e-18*fs - 4.90815620246775e-17) + 1.12091032736503e-11) - 2.15501247760771e-24) + fs*(pow(fs,2)*(-2.42038991331544e-19*fs - 7.73482453761989e-17) + 6.93358735554846e-11) + 5.99417287360993e-10;
a2 = Wah*(Wah*pow(fs,2)*(-2.68783516218996e-19*pow(fs,2) + 4.19220462434524e-13) + pow(fs,2)*(1.64943636244273e-18*pow(fs,2) - 2.8397698687054e-13) - 3.23251871641157e-24) + pow(fs,2)*(3.63058486997317e-19*pow(fs,2) - 2.78223562378113e-12) + 8.99125931041489e-10;
a3 = Wah*(Wah*fs*(pow(fs,2)*(1.79189010812664e-19*fs - 2.18453482951021e-17) - 4.02987333312642e-26) + fs*(pow(fs,2)*(-1.09962424162848e-18*fs + 4.90815620246775e-17) - 1.12091032736503e-11) - 2.15501247760771e-24) + fs*(pow(fs,2)*(-2.42038991331544e-19*fs + 7.73482453761989e-17) - 6.93358735554846e-11) + 5.99417287360993e-10;
a4 = Wah*(Wah*fs*(fs*(fs*(-4.47972527031659e-20*fs + 1.0922674147551e-17) - 2.09610231217262e-13) - 2.01493666656321e-26) + fs*(fs*(fs*(2.74906060407121e-19*fs - 2.45407810123387e-17) + 1.4198849343527e-13) - 5.60455163682517e-12) - 5.38753119401928e-25) + fs*(fs*(fs*(6.05097478328861e-20*fs - 3.86741226880994e-17) + 1.39111781189056e-12) - 3.46679367777423e-11) + 1.49854321840248e-10;
};
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/dallaswah.dsp | faust | generated automatically
DO NOT MODIFY! | declare id "dallaswah";
declare name "Dallas Wah";
declare category "Guitar Effects";
declare shortname "Dallas Wah";
declare description "Dallas Arbiter Wah";
import("stdfaust.lib");
import("guitarix.lib");
process(x) = x : _<:*(dry),(*(wet) : pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0))):>_ with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = fi.dcblockerat(583.714419367);
wet = wah_ctrl.wet_dry;
dry = 1 - wet;
Wah1 = (x : an.amp_follower_ud(0.01,0.1) : min(1) : max(0.02) ) : si.smooth(s);
Wah2 = wah_ctrl.wah : max(0.01) : Inverted(1) : LogPot(5) : si.smooth(s);
sl = wah_ctrl.mode;
Wah3 = (os.oscs(freq) + 1) / 2 : min(0.98) : max(0.02) : Inverted(1) with {
freq = wah_ctrl.freq;
};
Wah = select3(sl, Wah2, Wah1, Wah3);
b0 = Wah*(Wah*fs*(fs*(fs*(2.83510090714092e-21*fs + 1.04896968320146e-16) + 1.59534818623044e-13) - 1.53357283072645e-26) + fs*(fs*(fs*(-2.32347860461171e-21*fs - 8.64108311643329e-17) - 1.33575525905195e-13) - 3.41675778537176e-12)) + fs*(fs*(fs*(-7.07917432005204e-21*fs - 5.52389028989215e-16) - 8.63117119019868e-13) - 5.62135356398181e-12);
b1 = Wah*(Wah*fs*(pow(fs,2)*(-1.13404036285637e-20*fs - 2.09793936640293e-16) - 3.06714566145289e-26) + fs*(pow(fs,2)*(9.29391441844685e-21*fs + 1.72821662328666e-16) - 6.83351557074351e-12)) + fs*(pow(fs,2)*(2.83166972802082e-20*fs + 1.10477805797843e-15) - 1.12427071279636e-11);
b2 = Wah*(Wah*pow(fs,2)*(1.70106054428455e-20*pow(fs,2) - 3.19069637246088e-13) + pow(fs,2)*(-1.39408716276703e-20*pow(fs,2) + 2.6715105181039e-13)) + pow(fs,2)*(-4.24750459203123e-20*pow(fs,2) + 1.72623423803974e-12);
b3 = Wah*(Wah*fs*(pow(fs,2)*(-1.13404036285637e-20*fs + 2.09793936640293e-16) + 3.06714566145289e-26) + fs*(pow(fs,2)*(9.29391441844685e-21*fs - 1.72821662328666e-16) + 6.83351557074351e-12)) + fs*(pow(fs,2)*(2.83166972802082e-20*fs - 1.10477805797843e-15) + 1.12427071279636e-11);
b4 = Wah*(Wah*fs*(fs*(fs*(2.83510090714092e-21*fs - 1.04896968320146e-16) + 1.59534818623044e-13) + 1.53357283072645e-26) + fs*(fs*(fs*(-2.32347860461171e-21*fs + 8.64108311643329e-17) - 1.33575525905195e-13) + 3.41675778537176e-12)) + fs*(fs*(fs*(-7.07917432005204e-21*fs + 5.52389028989215e-16) - 8.63117119019868e-13) + 5.62135356398181e-12);
a0 = Wah*(Wah*fs*(fs*(fs*(-4.47972527031659e-20*fs - 1.0922674147551e-17) - 2.09610231217262e-13) + 2.01493666656321e-26) + fs*(fs*(fs*(2.74906060407121e-19*fs + 2.45407810123387e-17) + 1.4198849343527e-13) + 5.60455163682517e-12) - 5.38753119401928e-25) + fs*(fs*(fs*(6.05097478328861e-20*fs + 3.86741226880994e-17) + 1.39111781189056e-12) + 3.46679367777423e-11) + 1.49854321840248e-10;
a1 = Wah*(Wah*fs*(pow(fs,2)*(1.79189010812664e-19*fs + 2.18453482951021e-17) + 4.02987333312642e-26) + fs*(pow(fs,2)*(-1.09962424162848e-18*fs - 4.90815620246775e-17) + 1.12091032736503e-11) - 2.15501247760771e-24) + fs*(pow(fs,2)*(-2.42038991331544e-19*fs - 7.73482453761989e-17) + 6.93358735554846e-11) + 5.99417287360993e-10;
a2 = Wah*(Wah*pow(fs,2)*(-2.68783516218996e-19*pow(fs,2) + 4.19220462434524e-13) + pow(fs,2)*(1.64943636244273e-18*pow(fs,2) - 2.8397698687054e-13) - 3.23251871641157e-24) + pow(fs,2)*(3.63058486997317e-19*pow(fs,2) - 2.78223562378113e-12) + 8.99125931041489e-10;
a3 = Wah*(Wah*fs*(pow(fs,2)*(1.79189010812664e-19*fs - 2.18453482951021e-17) - 4.02987333312642e-26) + fs*(pow(fs,2)*(-1.09962424162848e-18*fs + 4.90815620246775e-17) - 1.12091032736503e-11) - 2.15501247760771e-24) + fs*(pow(fs,2)*(-2.42038991331544e-19*fs + 7.73482453761989e-17) - 6.93358735554846e-11) + 5.99417287360993e-10;
a4 = Wah*(Wah*fs*(fs*(fs*(-4.47972527031659e-20*fs + 1.0922674147551e-17) - 2.09610231217262e-13) - 2.01493666656321e-26) + fs*(fs*(fs*(2.74906060407121e-19*fs - 2.45407810123387e-17) + 1.4198849343527e-13) - 5.60455163682517e-12) - 5.38753119401928e-25) + fs*(fs*(fs*(6.05097478328861e-20*fs - 3.86741226880994e-17) + 1.39111781189056e-12) - 3.46679367777423e-11) + 1.49854321840248e-10;
};
|
c4d7cf5827d63b9545f7bf4cabffc01824bd94ee2b9f844a57377816f37e7926 | brummer10/guitarix | bmp.dsp | // generated automatically
// DO NOT MODIFY!
declare id "bmp";
declare name "BigMuffPi";
declare category "Fuzz";
declare shortname "BMP";
declare description "BigMuffPi";
declare samplerate "96000";
import("stdfaust.lib");
bpmin = pre : fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
b0 = 3.7454979802542e-6*fs;
b1 = 0;
b2 = -3.7454979802542e-6*fs;
a0 = 2.08287704934496e-5*fs + 0.000219016314271736;
a1 = 0.000438032628543473;
a2 = -2.08287704934496e-5*fs + 0.000219016314271736;
};
bpmamp1 = pre : fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
Sustain = vslider("Sustain[name:Sustain]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
b0 = Sustain*fs*(2.26293387153501e-12*fs - 1.17905906929765e-5) + fs*(2.26293387153501e-14*fs - 1.17905906929765e-7);
b1 = -4.52586774307001e-12*Sustain*pow(fs,2) - 4.52586774307001e-14*pow(fs,2);
b2 = Sustain*fs*(2.26293387153501e-12*fs + 1.17905906929765e-5) + fs*(2.26293387153501e-14*fs + 1.17905906929765e-7);
a0 = Sustain*(Sustain*fs*(-1.13446519814126e-9*fs - 2.89110812782566e-6) + fs*(1.12312054615984e-9*fs + 2.8621970465474e-6)) + fs*(1.2821120020393e-10*fs + 6.26521815410076e-7) + 0.000146000960455196;
a1 = Sustain*(2.26893039628251e-9*Sustain*pow(fs,2) - 2.24624109231969e-9*pow(fs,2)) - 2.5642240040786e-10*pow(fs,2) + 0.000292001920910392;
a2 = Sustain*(Sustain*fs*(-1.13446519814126e-9*fs + 2.89110812782566e-6) + fs*(1.12312054615984e-9*fs - 2.8621970465474e-6)) + fs*(1.2821120020393e-10*fs - 6.26521815410076e-7) + 0.000146000960455196;
};
bpmamp2 = pre : fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
b0 = fs*(7.66731214399861e-12*fs - 3.99490857178962e-5);
b1 = -1.53346242879972e-11*pow(fs,2);
b2 = fs*(7.66731214399861e-12*fs + 3.99490857178962e-5);
a0 = fs*(3.920487958595e-10*fs + 2.00478727462711e-6) + 0.000489785157611555;
a1 = -7.84097591718999e-10*pow(fs,2) + 0.000979570315223111;
a2 = fs*(3.920487958595e-10*fs - 2.00478727462711e-6) + 0.000489785157611555;
};
bpmtone = pre : fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
Tone = vslider("Tone[name:Tone]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
b0 = Tone*(3.68688858465455e-10*pow(fs,2) - 0.00316091270975185) + 8.67101574539126e-7*fs + 0.00401435914138484;
b1 = Tone*(-7.37377716930911e-10*pow(fs,2) - 0.00632182541950369) + 0.00802871828276969;
b2 = Tone*(3.68688858465455e-10*pow(fs,2) - 0.00316091270975185) - 8.67101574539126e-7*fs + 0.00401435914138484;
a0 = fs*(3.68688858465455e-10*fs + 3.03485551088694e-6) + 0.00486780557301784;
a1 = -7.37377716930911e-10*pow(fs,2) + 0.00973561114603569;
a2 = fs*(3.68688858465455e-10*fs - 3.03485551088694e-6) + 0.00486780557301784;
};
bpmout = pre : fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
Volume = vslider("Volume[name:Volume]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
b0 = -1.74325899023428e-9*Volume*pow(fs,2);
b1 = 3.48651798046856e-9*Volume*pow(fs,2);
b2 = -1.74325899023428e-9*Volume*pow(fs,2);
a0 = fs*(4.33884681055068e-10*fs + 6.86809013445937e-9) + 2.65226702159437e-8;
a1 = -8.67769362110135e-10*pow(fs,2) + 5.30453404318874e-8;
a2 = fs*(4.33884681055068e-10*fs - 6.86809013445937e-9) + 2.65226702159437e-8;
};
antialiasing = pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0)) with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
b0 = fs*(4.68362091734077e-13*fs + 7.44521670106066e-7);
b1 = 1.48904334021213e-6*fs;
b2 = -9.36724183468154e-13*pow(fs,2);
b3 = -1.48904334021213e-6*fs;
b4 = fs*(4.68362091734077e-13*fs - 7.44521670106066e-7);
a0 = fs*(7.55757331680132e-11*fs + 8.45438325675249e-7) + 0.000114185647251642;
a1 = 1.6908766513505e-6*fs + 0.00045674258900657;
a2 = -1.51151466336026e-10*pow(fs,2) + 0.000685113883509854;
a3 = -1.6908766513505e-6*fs + 0.00045674258900657;
a4 = fs*(7.55757331680132e-11*fs - 8.45438325675249e-7) + 0.000114185647251642;
};
symclip = ffunction(float symclip(float), "clipping.h", "");
sclip = symclip(_);
process = bpmin : bpmamp1 : sclip : bpmamp2 : sclip : bpmtone : bpmout : fi.peak_eq_cq(-8.5,12000,8.5);
| https://raw.githubusercontent.com/brummer10/guitarix/ef0c509dc3538e32152206667d37a157bb471ae7/trunk/src/LV2/faust/bmp.dsp | faust | generated automatically
DO NOT MODIFY! | declare id "bmp";
declare name "BigMuffPi";
declare category "Fuzz";
declare shortname "BMP";
declare description "BigMuffPi";
declare samplerate "96000";
import("stdfaust.lib");
bpmin = pre : fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
b0 = 3.7454979802542e-6*fs;
b1 = 0;
b2 = -3.7454979802542e-6*fs;
a0 = 2.08287704934496e-5*fs + 0.000219016314271736;
a1 = 0.000438032628543473;
a2 = -2.08287704934496e-5*fs + 0.000219016314271736;
};
bpmamp1 = pre : fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
Sustain = vslider("Sustain[name:Sustain]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
b0 = Sustain*fs*(2.26293387153501e-12*fs - 1.17905906929765e-5) + fs*(2.26293387153501e-14*fs - 1.17905906929765e-7);
b1 = -4.52586774307001e-12*Sustain*pow(fs,2) - 4.52586774307001e-14*pow(fs,2);
b2 = Sustain*fs*(2.26293387153501e-12*fs + 1.17905906929765e-5) + fs*(2.26293387153501e-14*fs + 1.17905906929765e-7);
a0 = Sustain*(Sustain*fs*(-1.13446519814126e-9*fs - 2.89110812782566e-6) + fs*(1.12312054615984e-9*fs + 2.8621970465474e-6)) + fs*(1.2821120020393e-10*fs + 6.26521815410076e-7) + 0.000146000960455196;
a1 = Sustain*(2.26893039628251e-9*Sustain*pow(fs,2) - 2.24624109231969e-9*pow(fs,2)) - 2.5642240040786e-10*pow(fs,2) + 0.000292001920910392;
a2 = Sustain*(Sustain*fs*(-1.13446519814126e-9*fs + 2.89110812782566e-6) + fs*(1.12312054615984e-9*fs - 2.8621970465474e-6)) + fs*(1.2821120020393e-10*fs - 6.26521815410076e-7) + 0.000146000960455196;
};
bpmamp2 = pre : fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
b0 = fs*(7.66731214399861e-12*fs - 3.99490857178962e-5);
b1 = -1.53346242879972e-11*pow(fs,2);
b2 = fs*(7.66731214399861e-12*fs + 3.99490857178962e-5);
a0 = fs*(3.920487958595e-10*fs + 2.00478727462711e-6) + 0.000489785157611555;
a1 = -7.84097591718999e-10*pow(fs,2) + 0.000979570315223111;
a2 = fs*(3.920487958595e-10*fs - 2.00478727462711e-6) + 0.000489785157611555;
};
bpmtone = pre : fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
Tone = vslider("Tone[name:Tone]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
b0 = Tone*(3.68688858465455e-10*pow(fs,2) - 0.00316091270975185) + 8.67101574539126e-7*fs + 0.00401435914138484;
b1 = Tone*(-7.37377716930911e-10*pow(fs,2) - 0.00632182541950369) + 0.00802871828276969;
b2 = Tone*(3.68688858465455e-10*pow(fs,2) - 0.00316091270975185) - 8.67101574539126e-7*fs + 0.00401435914138484;
a0 = fs*(3.68688858465455e-10*fs + 3.03485551088694e-6) + 0.00486780557301784;
a1 = -7.37377716930911e-10*pow(fs,2) + 0.00973561114603569;
a2 = fs*(3.68688858465455e-10*fs - 3.03485551088694e-6) + 0.00486780557301784;
};
bpmout = pre : fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
Volume = vslider("Volume[name:Volume]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
b0 = -1.74325899023428e-9*Volume*pow(fs,2);
b1 = 3.48651798046856e-9*Volume*pow(fs,2);
b2 = -1.74325899023428e-9*Volume*pow(fs,2);
a0 = fs*(4.33884681055068e-10*fs + 6.86809013445937e-9) + 2.65226702159437e-8;
a1 = -8.67769362110135e-10*pow(fs,2) + 5.30453404318874e-8;
a2 = fs*(4.33884681055068e-10*fs - 6.86809013445937e-9) + 2.65226702159437e-8;
};
antialiasing = pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0)) with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
b0 = fs*(4.68362091734077e-13*fs + 7.44521670106066e-7);
b1 = 1.48904334021213e-6*fs;
b2 = -9.36724183468154e-13*pow(fs,2);
b3 = -1.48904334021213e-6*fs;
b4 = fs*(4.68362091734077e-13*fs - 7.44521670106066e-7);
a0 = fs*(7.55757331680132e-11*fs + 8.45438325675249e-7) + 0.000114185647251642;
a1 = 1.6908766513505e-6*fs + 0.00045674258900657;
a2 = -1.51151466336026e-10*pow(fs,2) + 0.000685113883509854;
a3 = -1.6908766513505e-6*fs + 0.00045674258900657;
a4 = fs*(7.55757331680132e-11*fs - 8.45438325675249e-7) + 0.000114185647251642;
};
symclip = ffunction(float symclip(float), "clipping.h", "");
sclip = symclip(_);
process = bpmin : bpmamp1 : sclip : bpmamp2 : sclip : bpmtone : bpmout : fi.peak_eq_cq(-8.5,12000,8.5);
|
15746e8ef7bea72ad72f4ef83f44549f5e8d06673e614be32607f8baa488f6d3 | brummer10/guitarix | gxdistortion.dsp | declare id "gxdistortion";
declare version "0.01";
declare author "brummer";
declare license "BSD";
declare copyright "(c)brummer 2008";
import("stdfaust.lib");
import("guitarix.lib");
F = 300; //nentry("split_low_freq", 250, 20, 600, 10);
F1 = 1200; //nentry("split_middle_freq", 650, 600, 1250, 10);
F2 = 3200; //nentry("split_high_freq", 1250, 1250, 12000, 10);
/**********************************************************************
*** this part is included here for backward compatibility from 0.9.27 to
*** 0.9.24
***********************************************************************/
//------------------------------ ba.count and ba.take --------------------------------------
countN ((xs, xxs)) = 1 + countN(xxs);
countN (xx) = 1;
takeN (1, (xs, xxs)) = xs;
takeN (1, xs) = xs;
takeN (nn, (xs, xxs)) = takeN (nn-1, xxs);
//------------------------------ low/high-passfilters --------------------------------------
tf1N(b0,b1,a1) = _ <: *(b0), (mem : *(b1)) :> + ~ *(0-a1);
tf2N(b0,b1,b2,a1,a2) = sub ~ conv2(a1,a2) : conv3(b0,b1,b2)
with {
conv3(k0,k1,k2,x) = k0*x + k1*x' + k2*x'';
conv2(k0,k1,x) = k0*x + k1*x';
sub(x,y) = y-x;
};
tf1sN(b1,b0,a0,w1) = tf1N(b0d,b1d,a1d)
with {
c = 1/tan((w1)*0.5/ma.SR); // bilinear-transform scale-factor
d = a0 + c;
b1d = (b0 - b1*c) / d;
b0d = (b0 + b1*c) / d;
a1d = (a0 - c) / d;
};
tf2sN(b2,b1,b0,a1,a0,w1) = tf2N(b0d,b1d,b2d,a1d,a2d)
with {
c = 1/tan((w1)*0.5/ma.SR); // bilinear-transform scale-factor
csq = c*c;
d = a0 + a1 * c + csq;
b0d = (b0 + b1 * c + b2 * csq)/d;
b1d = 2 * (b0 - b2 * csq)/d;
b2d = (b0 - b1 * c + b2 * csq)/d;
a1d = 2 * (a0 - csq)/d;
a2d = (a0 - a1*c + csq)/d;
};
lowpassN(N,fc) = lowpass0_highpass1N(0,N,fc);
highpassN(N,fc) = lowpass0_highpass1N(1,N,fc);
lowpass0_highpass1N(s,N,fc) = lphpr(s,N,N,fc)
with {
lphpr(s,0,N,fc) = _;
lphpr(s,1,N,fc) = tf1sN(s,1-s,1,2*ma.PI*fc);
lphpr(s,O,N,fc) = lphpr(s,(O-2),N,fc) : tf2sN(s,0,1-s,a1s,1,w1) with {
parity = N % 2;
S = (O-parity)/2; // current section number
a1s = -2*cos(-ma.PI + (1-parity)*ma.PI/(2*N) + (S-1+parity)*ma.PI/N);
w1 = 2*ma.PI*fc;
};
};
//------------------------------ an.analyzer --------------------------------------
analyzern(O,lfreqs) = _ <: bsplit(nb) with
{
nb = countN(lfreqs);
fc(n) = takeN(n, lfreqs);
lp(n) = lowpassN(O,fc(n));
hp(n) = highpassN(O,fc(n));
bsplit(0) = _;
bsplit(i) = hp(i), (lp(i) <: bsplit(i-1));
};
analyzerN(lfreqs) = analyzern(3,lfreqs);
filterbankn(O,lfreqs) = analyzern(O,lfreqs) : delayeq with
{
nb = ba.count(lfreqs);
fc(n) = ba.take(n, lfreqs);
ap(n) = fi.highpass_plus_lowpass(O,fc(n));
delayeq = par(i,nb-1,apchain(nb-1-i)),_,_;
apchain(0) = _;
apchain(i) = ap(i) : apchain(i-1);
};
filterbankN(lfreqs) = fi.filterbank(3,lfreqs);
/**********************************************************************
*** end for backward compatibility from 0.9.27 to
*** 0.9.24 , it could removed when switch completely to > 0.9.27
***********************************************************************/
//----------distortion---------
/* 2 exp() because of valve.vt */
val(x) = valve.vt(dist, q(x), x)
with {
dist = 40.1;
q(x) = lp1tm1(x) * 1.0 - lp2tm1(x) * 1.02 - 1.0 : clip(-1.0,-0.01);
lp(a) = *(1 - a) : + ~ *(a);
lp1tm1 = abs <: lp(0.9999), _ : max;
avgs = lp1tm1 : avg;
avg_size = ma.SR/9;
avg(x) = x - de.delay1s(avg_size,x) : + ~ _ : /(avg_size);
lp2tm1 = avgs : lp(0.999);
};
vt = valve.vt(dist, q) : ma.neg : valve.vt(dist, q) : ma.neg with
{
q_p = 0.9;
dist_p = 1.7;
q = -q_p*-q_p*-q_p;
dist = pow(10,dist_p);
};
//-distortion
distdrive(drive) = wet_dry_mix(wet_dry, _: distortion) with {
//drive = vslider("drive", 0.35, 0, 1, 0.01);
//h = (2.0): ba.db2linear; //1,2589412
//l = (4.0): ba.db2linear; //1,584893192
//mh = (4.0): ba.db2linear; //1,584893192
//ml = (2.5): ba.db2linear; //1,333521432
distortion1 = _:ef.cubicnl(0.45*drive,0.0): *(1.2589412); // l
distortion2 = _:ef.cubicnl(0.4*drive,0.0) : *(1.584893192); // h
distortion3 = _:ef.cubicnl(1.0*drive,0.0) : *(1.584893192); //ml
distortion4 = _:ef.cubicnl(0.6*drive,0.0) : *(1.333521432); //mh
distortion = fi.lowpass(2,15000.0): fi.highpass(1,31.0) : filterbankN((F,F1,F2)) : distortion2,distortion4 ,distortion3,distortion1 :>fi.lowpass(1,6531.0);
wet_dry = (drive - 0.5) * 2;
};
clipit = min(0.7) : max(-0.7) ;
gx_drive(drive) = _ <: _ + nonlin(4,4,0.125) * drive * 10 ;
wetdry = vslider("wet_dry[name:wet/dry]", 100, 0, 100, 1) : /(100);
drive = vslider("drive", 0.35, 0, 1, 0.01) : smoothi(0.999);
dist(drive,wetdry) =_<:(*(dry): gx_drive(drive)),(*(wetdry):distdrive(drive)):>_
with{
dry = 1 - wetdry;
};
dist1(drive,wetdry) =_<:(*(dry): gx_drive(drive)),(*(wetdry) <: (clipit: ef.cubicnl(drive,0.0) : * (0.5)),distdrive(drive) :>_):>_
with{
dry = 1 - wetdry;
};
/* 4 exp() because of val */
dist2(drive,wetdry) =_<:(*(dry): gx_drive(drive)),(*(wetdry) :val :distdrive(drive)):>_
with{
dry = 1 - wetdry;
};
dist4(drive,wetdry) =_<:(*(dry): gx_drive(drive)),
(*(wetdry) : val <:
(ef.cubicnl(drive,0.0) : * (0.5)),distdrive(drive) :>_):>_
with{
dry = 1 - wetdry;
};
process = distdrive;
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/gxdistortion.dsp | faust | nentry("split_low_freq", 250, 20, 600, 10);
nentry("split_middle_freq", 650, 600, 1250, 10);
nentry("split_high_freq", 1250, 1250, 12000, 10);
*********************************************************************
*** this part is included here for backward compatibility from 0.9.27 to
*** 0.9.24
**********************************************************************
------------------------------ ba.count and ba.take --------------------------------------
------------------------------ low/high-passfilters --------------------------------------
bilinear-transform scale-factor
bilinear-transform scale-factor
current section number
------------------------------ an.analyzer --------------------------------------
*********************************************************************
*** end for backward compatibility from 0.9.27 to
*** 0.9.24 , it could removed when switch completely to > 0.9.27
**********************************************************************
----------distortion---------
2 exp() because of valve.vt
-distortion
drive = vslider("drive", 0.35, 0, 1, 0.01);
h = (2.0): ba.db2linear; //1,2589412
l = (4.0): ba.db2linear; //1,584893192
mh = (4.0): ba.db2linear; //1,584893192
ml = (2.5): ba.db2linear; //1,333521432
l
h
ml
mh
4 exp() because of val | declare id "gxdistortion";
declare version "0.01";
declare author "brummer";
declare license "BSD";
declare copyright "(c)brummer 2008";
import("stdfaust.lib");
import("guitarix.lib");
countN ((xs, xxs)) = 1 + countN(xxs);
countN (xx) = 1;
takeN (1, (xs, xxs)) = xs;
takeN (1, xs) = xs;
takeN (nn, (xs, xxs)) = takeN (nn-1, xxs);
tf1N(b0,b1,a1) = _ <: *(b0), (mem : *(b1)) :> + ~ *(0-a1);
tf2N(b0,b1,b2,a1,a2) = sub ~ conv2(a1,a2) : conv3(b0,b1,b2)
with {
conv3(k0,k1,k2,x) = k0*x + k1*x' + k2*x'';
conv2(k0,k1,x) = k0*x + k1*x';
sub(x,y) = y-x;
};
tf1sN(b1,b0,a0,w1) = tf1N(b0d,b1d,a1d)
with {
d = a0 + c;
b1d = (b0 - b1*c) / d;
b0d = (b0 + b1*c) / d;
a1d = (a0 - c) / d;
};
tf2sN(b2,b1,b0,a1,a0,w1) = tf2N(b0d,b1d,b2d,a1d,a2d)
with {
csq = c*c;
d = a0 + a1 * c + csq;
b0d = (b0 + b1 * c + b2 * csq)/d;
b1d = 2 * (b0 - b2 * csq)/d;
b2d = (b0 - b1 * c + b2 * csq)/d;
a1d = 2 * (a0 - csq)/d;
a2d = (a0 - a1*c + csq)/d;
};
lowpassN(N,fc) = lowpass0_highpass1N(0,N,fc);
highpassN(N,fc) = lowpass0_highpass1N(1,N,fc);
lowpass0_highpass1N(s,N,fc) = lphpr(s,N,N,fc)
with {
lphpr(s,0,N,fc) = _;
lphpr(s,1,N,fc) = tf1sN(s,1-s,1,2*ma.PI*fc);
lphpr(s,O,N,fc) = lphpr(s,(O-2),N,fc) : tf2sN(s,0,1-s,a1s,1,w1) with {
parity = N % 2;
a1s = -2*cos(-ma.PI + (1-parity)*ma.PI/(2*N) + (S-1+parity)*ma.PI/N);
w1 = 2*ma.PI*fc;
};
};
analyzern(O,lfreqs) = _ <: bsplit(nb) with
{
nb = countN(lfreqs);
fc(n) = takeN(n, lfreqs);
lp(n) = lowpassN(O,fc(n));
hp(n) = highpassN(O,fc(n));
bsplit(0) = _;
bsplit(i) = hp(i), (lp(i) <: bsplit(i-1));
};
analyzerN(lfreqs) = analyzern(3,lfreqs);
filterbankn(O,lfreqs) = analyzern(O,lfreqs) : delayeq with
{
nb = ba.count(lfreqs);
fc(n) = ba.take(n, lfreqs);
ap(n) = fi.highpass_plus_lowpass(O,fc(n));
delayeq = par(i,nb-1,apchain(nb-1-i)),_,_;
apchain(0) = _;
apchain(i) = ap(i) : apchain(i-1);
};
filterbankN(lfreqs) = fi.filterbank(3,lfreqs);
val(x) = valve.vt(dist, q(x), x)
with {
dist = 40.1;
q(x) = lp1tm1(x) * 1.0 - lp2tm1(x) * 1.02 - 1.0 : clip(-1.0,-0.01);
lp(a) = *(1 - a) : + ~ *(a);
lp1tm1 = abs <: lp(0.9999), _ : max;
avgs = lp1tm1 : avg;
avg_size = ma.SR/9;
avg(x) = x - de.delay1s(avg_size,x) : + ~ _ : /(avg_size);
lp2tm1 = avgs : lp(0.999);
};
vt = valve.vt(dist, q) : ma.neg : valve.vt(dist, q) : ma.neg with
{
q_p = 0.9;
dist_p = 1.7;
q = -q_p*-q_p*-q_p;
dist = pow(10,dist_p);
};
distdrive(drive) = wet_dry_mix(wet_dry, _: distortion) with {
distortion = fi.lowpass(2,15000.0): fi.highpass(1,31.0) : filterbankN((F,F1,F2)) : distortion2,distortion4 ,distortion3,distortion1 :>fi.lowpass(1,6531.0);
wet_dry = (drive - 0.5) * 2;
};
clipit = min(0.7) : max(-0.7) ;
gx_drive(drive) = _ <: _ + nonlin(4,4,0.125) * drive * 10 ;
wetdry = vslider("wet_dry[name:wet/dry]", 100, 0, 100, 1) : /(100);
drive = vslider("drive", 0.35, 0, 1, 0.01) : smoothi(0.999);
dist(drive,wetdry) =_<:(*(dry): gx_drive(drive)),(*(wetdry):distdrive(drive)):>_
with{
dry = 1 - wetdry;
};
dist1(drive,wetdry) =_<:(*(dry): gx_drive(drive)),(*(wetdry) <: (clipit: ef.cubicnl(drive,0.0) : * (0.5)),distdrive(drive) :>_):>_
with{
dry = 1 - wetdry;
};
dist2(drive,wetdry) =_<:(*(dry): gx_drive(drive)),(*(wetdry) :val :distdrive(drive)):>_
with{
dry = 1 - wetdry;
};
dist4(drive,wetdry) =_<:(*(dry): gx_drive(drive)),
(*(wetdry) : val <:
(ef.cubicnl(drive,0.0) : * (0.5)),distdrive(drive) :>_):>_
with{
dry = 1 - wetdry;
};
process = distdrive;
|
770a4d6158e2b2245b3f19f5755181da96bf96d856a516ed66c52de9de64f156 | brummer10/guitarix | zita_rev1.dsp | // this code is copied from faust effect.lib and
// some parameter texts and defaults changed
declare id "zita_rev1";
declare name "Zita Rev1";
declare category "Reverb";
import("stdfaust.lib");
process(x,y) = re.zita_rev1_stereo(rdel,f1,f2,t60dc,t60m,fsmax,x,y)
: out_eq : dry_wet(x,y) : out_level
with {
fsmax = 48000.0; // highest sampling rate that will be used
fdn_group(x) = hgroup(
"zita_rev1[name:Zita_Rev1] [tooltip: ~ ZITA REV1 FEEDBACK DELAY NETWORK (FDN) & SCHROEDER ALLPASS-COMB REVERBERATOR (8x8). See Faust's effect.lib for documentation and references]", x);
in_group(x) = fdn_group(hgroup("input[name:Input]", x));
rdel = in_group(vslider("in_delay[name:Pre Delay] [unit:ms] [style:knob]
[tooltip: Delay in ms before reverberation begins]",
60,20,100,1));
freq_group(x) = fdn_group(hgroup("decay_times[name:Decay Times in Bands]", x));
f1 = freq_group(vslider("lf_x[name:Freq X] [unit:Hz] [style:knob] [log]
[tooltip: Crossover frequency (Hz) separating low and middle frequencies]",
200, 50, 1000, 1.08));
t60dc = freq_group(vslider("low_rt60[name:Low] [unit:s] [style:knob] [log]
[style:knob] [tooltip: T60 = time (in seconds) to decay 60dB in low-frequency band]",
3, 1, 8, 1.08));
t60m = freq_group(vslider("mid_rt60[name:Mid] [unit:s] [style:knob] [log]
[tooltip: T60 = time (in seconds) to decay 60dB in middle band]",
2, 1, 8, 1.08));
f2 = freq_group(vslider("hf_damping[name:HF Damp] [unit:Hz] [style:knob] [log]
[tooltip: Frequency (Hz) at which the high-frequency T60 is half the middle-band's T60]",
6000, 1500, 0.49*fsmax, 1.08));
out_eq = pareq_stereo(eq1f,eq1l,eq1q) : pareq_stereo(eq2f,eq2l,eq2q);
// Zolzer style peaking eq (not used in zita-fi.rev1) (filter.lib):
// pareq_stereo(eqf,eql,Q) = fi.peak_eq(eql,eqf,eqf/Q), fi.peak_eq(eql,eqf,eqf/Q);
// Regalia-Mitra peaking eq with "Q" hard-wired near sqrt(g)/2 (filter.lib):
pareq_stereo(eqf,eql,Q) = fi.peak_eq_rm(eql,eqf,tpbt), fi.peak_eq_rm(eql,eqf,tpbt)
with {
tpbt = wcT/sqrt(g); // tan(ma.PI*B/ma.SR) where B bandwidth in Hz (Q^2 ~ g/4)
wcT = 2*ma.PI*eqf/ma.SR; // peak frequency in rad/sample
g = ba.db2linear(eql); // peak gain
};
eq1_group(x) = fdn_group(hgroup("equalizer1[name:RM Peaking Equalizer 1]", x));
eq1f = eq1_group(vslider("eq1_freq[name:Freq] [unit:Hz] [style:knob] [log]
[tooltip: Center-frequency of second-order Regalia-Mitra peaking equalizer section 1]",
315, 40, 2500, 1.08));
eq1l = eq1_group(vslider("eq1_level[name:Level] [unit:dB] [style:knob]
[tooltip: Peak level in dB of second-order Regalia-Mitra peaking equalizer section 1]",
0, -15, 15, 0.1));
eq1q = eq1_group(vslider("eq1_q[name:Q] [style:knob]
[tooltip: Q = centerFrequency/bandwidth of second-order peaking equalizer section 1]",
3, 0.1, 10, 0.1));
eq2_group(x) = fdn_group(hgroup("equalizer2[name:RM Peaking Equalizer 2]", x));
eq2f = eq2_group(vslider("eq2_freq[name:Freq] [unit:Hz] [style:knob] [log]
[tooltip: Center-frequency of second-order Regalia-Mitra peaking equalizer section 2]",
1500, 160, 10000, 1.08));
eq2l = eq2_group(vslider("eq2_level[name:Level] [unit:dB] [style:knob]
[tooltip: Peak level in dB of second-order Regalia-Mitra peaking equalizer section 2]",
0, -15, 15, 0.1));
eq2q = eq2_group(vslider("eq2_q[name:Q] [style:knob]
[tooltip: Q = centerFrequency/bandwidth of second-order peaking equalizer section 2]",
3, 0.1, 10, 0.1));
out_group(x) = fdn_group(hgroup("output[name:Output]", x));
dry_wet(x,y) = *(wet) + dry*x, *(wet) + dry*y with {
wet = 0.5*(drywet+1.0);
dry = 1.0-wet;
};
drywet = out_group(vslider("dry_wet_mix[name:Dry/Wet] [style:knob]
[tooltip: -1 = dry, 1 = wet]",
0, -1.0, 1.0, 0.01)) : si.smooth(0.999);
out_level = *(gain),*(gain);
gain = out_group(vslider("level[name:Level] [unit:dB] [style:knob]
[tooltip: Output scale factor]", 0, -70, 40, 0.1))
: si.smooth(0.999) : ba.db2linear;
};
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/plugins/zita_rev1.dsp | faust | this code is copied from faust effect.lib and
some parameter texts and defaults changed
highest sampling rate that will be used
Zolzer style peaking eq (not used in zita-fi.rev1) (filter.lib):
pareq_stereo(eqf,eql,Q) = fi.peak_eq(eql,eqf,eqf/Q), fi.peak_eq(eql,eqf,eqf/Q);
Regalia-Mitra peaking eq with "Q" hard-wired near sqrt(g)/2 (filter.lib):
tan(ma.PI*B/ma.SR) where B bandwidth in Hz (Q^2 ~ g/4)
peak frequency in rad/sample
peak gain |
declare id "zita_rev1";
declare name "Zita Rev1";
declare category "Reverb";
import("stdfaust.lib");
process(x,y) = re.zita_rev1_stereo(rdel,f1,f2,t60dc,t60m,fsmax,x,y)
: out_eq : dry_wet(x,y) : out_level
with {
fdn_group(x) = hgroup(
"zita_rev1[name:Zita_Rev1] [tooltip: ~ ZITA REV1 FEEDBACK DELAY NETWORK (FDN) & SCHROEDER ALLPASS-COMB REVERBERATOR (8x8). See Faust's effect.lib for documentation and references]", x);
in_group(x) = fdn_group(hgroup("input[name:Input]", x));
rdel = in_group(vslider("in_delay[name:Pre Delay] [unit:ms] [style:knob]
[tooltip: Delay in ms before reverberation begins]",
60,20,100,1));
freq_group(x) = fdn_group(hgroup("decay_times[name:Decay Times in Bands]", x));
f1 = freq_group(vslider("lf_x[name:Freq X] [unit:Hz] [style:knob] [log]
[tooltip: Crossover frequency (Hz) separating low and middle frequencies]",
200, 50, 1000, 1.08));
t60dc = freq_group(vslider("low_rt60[name:Low] [unit:s] [style:knob] [log]
[style:knob] [tooltip: T60 = time (in seconds) to decay 60dB in low-frequency band]",
3, 1, 8, 1.08));
t60m = freq_group(vslider("mid_rt60[name:Mid] [unit:s] [style:knob] [log]
[tooltip: T60 = time (in seconds) to decay 60dB in middle band]",
2, 1, 8, 1.08));
f2 = freq_group(vslider("hf_damping[name:HF Damp] [unit:Hz] [style:knob] [log]
[tooltip: Frequency (Hz) at which the high-frequency T60 is half the middle-band's T60]",
6000, 1500, 0.49*fsmax, 1.08));
out_eq = pareq_stereo(eq1f,eq1l,eq1q) : pareq_stereo(eq2f,eq2l,eq2q);
pareq_stereo(eqf,eql,Q) = fi.peak_eq_rm(eql,eqf,tpbt), fi.peak_eq_rm(eql,eqf,tpbt)
with {
};
eq1_group(x) = fdn_group(hgroup("equalizer1[name:RM Peaking Equalizer 1]", x));
eq1f = eq1_group(vslider("eq1_freq[name:Freq] [unit:Hz] [style:knob] [log]
[tooltip: Center-frequency of second-order Regalia-Mitra peaking equalizer section 1]",
315, 40, 2500, 1.08));
eq1l = eq1_group(vslider("eq1_level[name:Level] [unit:dB] [style:knob]
[tooltip: Peak level in dB of second-order Regalia-Mitra peaking equalizer section 1]",
0, -15, 15, 0.1));
eq1q = eq1_group(vslider("eq1_q[name:Q] [style:knob]
[tooltip: Q = centerFrequency/bandwidth of second-order peaking equalizer section 1]",
3, 0.1, 10, 0.1));
eq2_group(x) = fdn_group(hgroup("equalizer2[name:RM Peaking Equalizer 2]", x));
eq2f = eq2_group(vslider("eq2_freq[name:Freq] [unit:Hz] [style:knob] [log]
[tooltip: Center-frequency of second-order Regalia-Mitra peaking equalizer section 2]",
1500, 160, 10000, 1.08));
eq2l = eq2_group(vslider("eq2_level[name:Level] [unit:dB] [style:knob]
[tooltip: Peak level in dB of second-order Regalia-Mitra peaking equalizer section 2]",
0, -15, 15, 0.1));
eq2q = eq2_group(vslider("eq2_q[name:Q] [style:knob]
[tooltip: Q = centerFrequency/bandwidth of second-order peaking equalizer section 2]",
3, 0.1, 10, 0.1));
out_group(x) = fdn_group(hgroup("output[name:Output]", x));
dry_wet(x,y) = *(wet) + dry*x, *(wet) + dry*y with {
wet = 0.5*(drywet+1.0);
dry = 1.0-wet;
};
drywet = out_group(vslider("dry_wet_mix[name:Dry/Wet] [style:knob]
[tooltip: -1 = dry, 1 = wet]",
0, -1.0, 1.0, 0.01)) : si.smooth(0.999);
out_level = *(gain),*(gain);
gain = out_group(vslider("level[name:Level] [unit:dB] [style:knob]
[tooltip: Output scale factor]", 0, -70, 40, 0.1))
: si.smooth(0.999) : ba.db2linear;
};
|
0b36071e14fb8becc008f962245132e78d1bfbd685c86b4a9b0536ff6768ce13 | brummer10/guitarix | bmp.dsp | // generated automatically
// DO NOT MODIFY!
declare id "bmp";
declare name "BigMuffPi";
declare category "Fuzz";
declare shortname "BMP";
declare description "BigMuffPi";
declare samplerate "96000";
import("stdfaust.lib");
bpmin = pre : fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
b0 = 3.7454979802542e-6*fs;
b1 = 0;
b2 = -3.7454979802542e-6*fs;
a0 = 2.08287704934496e-5*fs + 0.000219016314271736;
a1 = 0.000438032628543473;
a2 = -2.08287704934496e-5*fs + 0.000219016314271736;
};
bpmamp1 = pre : fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
Sustain = vslider("Sustain[name:Sustain]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
b0 = Sustain*fs*(2.26293387153501e-12*fs - 1.17905906929765e-5) + fs*(2.26293387153501e-14*fs - 1.17905906929765e-7);
b1 = -4.52586774307001e-12*Sustain*pow(fs,2) - 4.52586774307001e-14*pow(fs,2);
b2 = Sustain*fs*(2.26293387153501e-12*fs + 1.17905906929765e-5) + fs*(2.26293387153501e-14*fs + 1.17905906929765e-7);
a0 = Sustain*(Sustain*fs*(-1.13446519814126e-9*fs - 2.89110812782566e-6) + fs*(1.12312054615984e-9*fs + 2.8621970465474e-6)) + fs*(1.2821120020393e-10*fs + 6.26521815410076e-7) + 0.000146000960455196;
a1 = Sustain*(2.26893039628251e-9*Sustain*pow(fs,2) - 2.24624109231969e-9*pow(fs,2)) - 2.5642240040786e-10*pow(fs,2) + 0.000292001920910392;
a2 = Sustain*(Sustain*fs*(-1.13446519814126e-9*fs + 2.89110812782566e-6) + fs*(1.12312054615984e-9*fs - 2.8621970465474e-6)) + fs*(1.2821120020393e-10*fs - 6.26521815410076e-7) + 0.000146000960455196;
};
bpmamp2 = pre : fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
b0 = fs*(7.66731214399861e-12*fs - 3.99490857178962e-5);
b1 = -1.53346242879972e-11*pow(fs,2);
b2 = fs*(7.66731214399861e-12*fs + 3.99490857178962e-5);
a0 = fs*(3.920487958595e-10*fs + 2.00478727462711e-6) + 0.000489785157611555;
a1 = -7.84097591718999e-10*pow(fs,2) + 0.000979570315223111;
a2 = fs*(3.920487958595e-10*fs - 2.00478727462711e-6) + 0.000489785157611555;
};
bpmtone = pre : fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
Tone = vslider("Tone[name:Tone]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
b0 = Tone*(3.68688858465455e-10*pow(fs,2) - 0.00316091270975185) + 8.67101574539126e-7*fs + 0.00401435914138484;
b1 = Tone*(-7.37377716930911e-10*pow(fs,2) - 0.00632182541950369) + 0.00802871828276969;
b2 = Tone*(3.68688858465455e-10*pow(fs,2) - 0.00316091270975185) - 8.67101574539126e-7*fs + 0.00401435914138484;
a0 = fs*(3.68688858465455e-10*fs + 3.03485551088694e-6) + 0.00486780557301784;
a1 = -7.37377716930911e-10*pow(fs,2) + 0.00973561114603569;
a2 = fs*(3.68688858465455e-10*fs - 3.03485551088694e-6) + 0.00486780557301784;
};
bpmout = pre : fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
Volume = vslider("Volume[name:Volume]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
b0 = -1.74325899023428e-9*Volume*pow(fs,2);
b1 = 3.48651798046856e-9*Volume*pow(fs,2);
b2 = -1.74325899023428e-9*Volume*pow(fs,2);
a0 = fs*(4.33884681055068e-10*fs + 6.86809013445937e-9) + 2.65226702159437e-8;
a1 = -8.67769362110135e-10*pow(fs,2) + 5.30453404318874e-8;
a2 = fs*(4.33884681055068e-10*fs - 6.86809013445937e-9) + 2.65226702159437e-8;
};
antialiasing = pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0)) with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
b0 = fs*(4.68362091734077e-13*fs + 7.44521670106066e-7);
b1 = 1.48904334021213e-6*fs;
b2 = -9.36724183468154e-13*pow(fs,2);
b3 = -1.48904334021213e-6*fs;
b4 = fs*(4.68362091734077e-13*fs - 7.44521670106066e-7);
a0 = fs*(7.55757331680132e-11*fs + 8.45438325675249e-7) + 0.000114185647251642;
a1 = 1.6908766513505e-6*fs + 0.00045674258900657;
a2 = -1.51151466336026e-10*pow(fs,2) + 0.000685113883509854;
a3 = -1.6908766513505e-6*fs + 0.00045674258900657;
a4 = fs*(7.55757331680132e-11*fs - 8.45438325675249e-7) + 0.000114185647251642;
};
symclip = ffunction(float symclip(float), "clipping.h", "");
sclip = symclip(_);
clip(x) = atan(x)/ma.PI;
process = bpmin : bpmamp1 : clip : bpmamp2 : sclip : bpmtone : bpmout;
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/plugins/bmp.dsp | faust | generated automatically
DO NOT MODIFY! | declare id "bmp";
declare name "BigMuffPi";
declare category "Fuzz";
declare shortname "BMP";
declare description "BigMuffPi";
declare samplerate "96000";
import("stdfaust.lib");
bpmin = pre : fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
b0 = 3.7454979802542e-6*fs;
b1 = 0;
b2 = -3.7454979802542e-6*fs;
a0 = 2.08287704934496e-5*fs + 0.000219016314271736;
a1 = 0.000438032628543473;
a2 = -2.08287704934496e-5*fs + 0.000219016314271736;
};
bpmamp1 = pre : fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
Sustain = vslider("Sustain[name:Sustain]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
b0 = Sustain*fs*(2.26293387153501e-12*fs - 1.17905906929765e-5) + fs*(2.26293387153501e-14*fs - 1.17905906929765e-7);
b1 = -4.52586774307001e-12*Sustain*pow(fs,2) - 4.52586774307001e-14*pow(fs,2);
b2 = Sustain*fs*(2.26293387153501e-12*fs + 1.17905906929765e-5) + fs*(2.26293387153501e-14*fs + 1.17905906929765e-7);
a0 = Sustain*(Sustain*fs*(-1.13446519814126e-9*fs - 2.89110812782566e-6) + fs*(1.12312054615984e-9*fs + 2.8621970465474e-6)) + fs*(1.2821120020393e-10*fs + 6.26521815410076e-7) + 0.000146000960455196;
a1 = Sustain*(2.26893039628251e-9*Sustain*pow(fs,2) - 2.24624109231969e-9*pow(fs,2)) - 2.5642240040786e-10*pow(fs,2) + 0.000292001920910392;
a2 = Sustain*(Sustain*fs*(-1.13446519814126e-9*fs + 2.89110812782566e-6) + fs*(1.12312054615984e-9*fs - 2.8621970465474e-6)) + fs*(1.2821120020393e-10*fs - 6.26521815410076e-7) + 0.000146000960455196;
};
bpmamp2 = pre : fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
b0 = fs*(7.66731214399861e-12*fs - 3.99490857178962e-5);
b1 = -1.53346242879972e-11*pow(fs,2);
b2 = fs*(7.66731214399861e-12*fs + 3.99490857178962e-5);
a0 = fs*(3.920487958595e-10*fs + 2.00478727462711e-6) + 0.000489785157611555;
a1 = -7.84097591718999e-10*pow(fs,2) + 0.000979570315223111;
a2 = fs*(3.920487958595e-10*fs - 2.00478727462711e-6) + 0.000489785157611555;
};
bpmtone = pre : fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
Tone = vslider("Tone[name:Tone]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
b0 = Tone*(3.68688858465455e-10*pow(fs,2) - 0.00316091270975185) + 8.67101574539126e-7*fs + 0.00401435914138484;
b1 = Tone*(-7.37377716930911e-10*pow(fs,2) - 0.00632182541950369) + 0.00802871828276969;
b2 = Tone*(3.68688858465455e-10*pow(fs,2) - 0.00316091270975185) - 8.67101574539126e-7*fs + 0.00401435914138484;
a0 = fs*(3.68688858465455e-10*fs + 3.03485551088694e-6) + 0.00486780557301784;
a1 = -7.37377716930911e-10*pow(fs,2) + 0.00973561114603569;
a2 = fs*(3.68688858465455e-10*fs - 3.03485551088694e-6) + 0.00486780557301784;
};
bpmout = pre : fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
Volume = vslider("Volume[name:Volume]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
b0 = -1.74325899023428e-9*Volume*pow(fs,2);
b1 = 3.48651798046856e-9*Volume*pow(fs,2);
b2 = -1.74325899023428e-9*Volume*pow(fs,2);
a0 = fs*(4.33884681055068e-10*fs + 6.86809013445937e-9) + 2.65226702159437e-8;
a1 = -8.67769362110135e-10*pow(fs,2) + 5.30453404318874e-8;
a2 = fs*(4.33884681055068e-10*fs - 6.86809013445937e-9) + 2.65226702159437e-8;
};
antialiasing = pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0)) with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
b0 = fs*(4.68362091734077e-13*fs + 7.44521670106066e-7);
b1 = 1.48904334021213e-6*fs;
b2 = -9.36724183468154e-13*pow(fs,2);
b3 = -1.48904334021213e-6*fs;
b4 = fs*(4.68362091734077e-13*fs - 7.44521670106066e-7);
a0 = fs*(7.55757331680132e-11*fs + 8.45438325675249e-7) + 0.000114185647251642;
a1 = 1.6908766513505e-6*fs + 0.00045674258900657;
a2 = -1.51151466336026e-10*pow(fs,2) + 0.000685113883509854;
a3 = -1.6908766513505e-6*fs + 0.00045674258900657;
a4 = fs*(7.55757331680132e-11*fs - 8.45438325675249e-7) + 0.000114185647251642;
};
symclip = ffunction(float symclip(float), "clipping.h", "");
sclip = symclip(_);
clip(x) = atan(x)/ma.PI;
process = bpmin : bpmamp1 : clip : bpmamp2 : sclip : bpmtone : bpmout;
|
c8f45d37783eef3a07eceb8eddae1281bbfa9d6e055ace84c39cd549221930ab | brummer10/guitarix | bossds1.dsp | // generated automatically
// DO NOT MODIFY!
declare id "bossds1";
declare name "Boss DS1";
declare category "Distortion";
declare shortname "DS1";
declare description "Boss DS1";
declare samplerate "96000";
import("stdfaust.lib");
ds1_in = fi.iir((b0/a0,b1/a0),(a1/a0)) with {
fs = float(ma.SR);
b0 = 2.07110717442793e-5*fs;
b1 = -2.07110717442793e-5*fs;
a0 = 2.08232145615427e-5*fs + 0.000485701045951343;
a1 = -2.08232145615427e-5*fs + 0.000485701045951343;
};
ds1_boost= fi.iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0)) with {
fs = float(ma.SR);
b0 = -5.51041967277497e-9*pow(fs,2);
b1 = 5.51041967277497e-9*pow(fs,2);
b2 = 5.51041967277497e-9*pow(fs,2);
b3 = -5.51041967277497e-9*pow(fs,2);
a0 = fs*(3.53982651634833e-10*fs + 2.38582349500046e-7) + 1.94656546234155e-5;
a1 = fs*(-3.53982651634833e-10*fs + 2.38582349500046e-7) + 5.83969638702466e-5;
a2 = fs*(-3.53982651634833e-10*fs - 2.38582349500046e-7) + 5.83969638702466e-5;
a3 = fs*(3.53982651634833e-10*fs - 2.38582349500046e-7) + 1.94656546234155e-5;
};
ds1_tone = fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
s = 0.993;
fs = float(ma.SR);
Tone = vslider("Tone[name:Tone]", 0.7, 0, 1, 0.01) : si.smooth(s);
b0 = Tone*(fs*(-2.18842400636233e-10*fs + 5.20602596669238e-8) + 0.000537812599864916) + (fs*(2.18842400636233e-10*fs + 2.33324618325395e-7) + 0.000182856283954071);
b1 = Tone*(4.37684801272465e-10*pow(fs,2) + 0.00107562519972983) + (-4.37684801272465e-10*pow(fs,2) + 0.000365712567908143);
b2 = Tone*(fs*(-2.18842400636233e-10*fs - 5.20602596669238e-8) + 0.000537812599864916) + (fs*(2.18842400636233e-10*fs - 2.33324618325395e-7) + 0.000182856283954071);
a0 = Tone*(Tone*(fs*(-2.89644353783249e-10*fs - 9.44398925362792e-7) - 0.000537812599864916) + fs*(2.65571689713263e-10*fs + 7.50424979344313e-7) + 0.000537812599864916) + fs*(3.3778968192322e-10*fs + 1.55559824875468e-6) + 0.00114855258827151;
a1 = Tone*(Tone*(5.79288707566498e-10*pow(fs,2) - 0.00107562519972983) - 5.31143379426527e-10*pow(fs,2) + 0.00107562519972983) - 6.7557936384644e-10*pow(fs,2) + 0.00229710517654303;
a2 = Tone*(Tone*(fs*(-2.89644353783249e-10*fs + 9.44398925362792e-7) - 0.000537812599864916) + fs*(2.65571689713263e-10*fs - 7.50424979344313e-7) + 0.000537812599864916) + fs*(3.3778968192322e-10*fs - 1.55559824875468e-6) + 0.00114855258827151;
};
ds1_out = fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
fs = float(ma.SR);
b0 = 4.28019579852603e-10*pow(fs,2);
b1 = -8.56039159705207e-10*pow(fs,2);
b2 = 4.28019579852603e-10*pow(fs,2);
a0 = fs*(4.33879508860142e-10*fs + 7.11639898820675e-9) + 2.44347979826776e-8;
a1 = -8.67759017720285e-10*pow(fs,2) + 4.88695959653553e-8;
a2 = fs*(4.33879508860142e-10*fs - 7.11639898820675e-9) + 2.44347979826776e-8;
};
ds1_drive = fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
fs = float(ma.SR);
b0 = drive*(-3.18093350083904e-10*drive*pow(fs,2) + fs*(3.0314296262996e-10*fs + 1.59012835323858e-5)) + fs*(1.49503874539434e-11*fs + 7.50903344506575e-7) + 0.000169198590470161;
b1 = drive*(6.36186700167807e-10*drive*pow(fs,2) - 6.0628592525992e-10*pow(fs,2)) - 2.99007749078869e-11*pow(fs,2) + 0.000338397180940323;
b2 = drive*(-3.18093350083904e-10*drive*pow(fs,2) + fs*(3.0314296262996e-10*fs - 1.59012835323858e-5)) + fs*(1.49503874539434e-11*fs - 7.50903344506575e-7) + 0.000169198590470161;
a0 = drive*(-3.18093350083904e-10*drive*pow(fs,2) + fs*(3.0314296262996e-10*fs - 3.38397180940322e-9)) + fs*(1.49503874539434e-11*fs + 1.66555708487018e-5) + 0.000169198590470162;
a1 = drive*(6.36186700167807e-10*drive*pow(fs,2) - 6.0628592525992e-10*pow(fs,2)) - 2.99007749078869e-11*pow(fs,2) + 0.000338397180940324;
a2 = drive*(-3.18093350083904e-10*drive*pow(fs,2) + fs*(3.0314296262996e-10*fs + 3.38397180940322e-9)) + fs*(1.49503874539434e-11*fs - 1.66555708487018e-5) + 0.000169198590470162;
};
s = 0.993;
drive = hslider("drive[name:Drive]", 0.5, 0, 1, 0.01) : *(0.314): si.smooth(s);
process = ds1_in : ds1_boost : ds1_drive : sclip : hf : X1 : X3 : lf : clip : ds1_tone : ds1_out : *(gain) with {
R1 = 4700 + 100000 * (1.0 - drive);
R2 = 100000 + 100000 * drive;
C = 0.047 * 1e-6;
a1 = (R1 + R2) * C * 2 * ma.SR;
a2 = R1 * C * 2 * ma.SR;
B0 = (1 + a1) / (1 + a2);
B1 = (1 - a1) / (1 + a2);
A1 = (1 - a2) / (1 + a2);
X2 = fi.tf1(B0, B1, A1);
s = 0.993;
hf = fi.highpass(2,23.);
lf = fi.lowpass(2,7200.);
symclip = ffunction(float asymclip3(float), "clipping.h", "");
sclip = symclip(_);
opamp = ffunction(float opamp(float), "clipping.h", "");
X1 = _ <: _ - opamp(_) :> _ ;
X3 = _ <: _ - opamp(X2-_) :> _ ;
asymclip = ffunction(float asymhardclip2(float), "clipping.h", "");
clip = asymclip(_);
gain = hslider("Level[name:Level]", 3, -20, 12, 0.1) : ba.db2linear : si.smooth(s);
};
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/bossds1.dsp | faust | generated automatically
DO NOT MODIFY! | declare id "bossds1";
declare name "Boss DS1";
declare category "Distortion";
declare shortname "DS1";
declare description "Boss DS1";
declare samplerate "96000";
import("stdfaust.lib");
ds1_in = fi.iir((b0/a0,b1/a0),(a1/a0)) with {
fs = float(ma.SR);
b0 = 2.07110717442793e-5*fs;
b1 = -2.07110717442793e-5*fs;
a0 = 2.08232145615427e-5*fs + 0.000485701045951343;
a1 = -2.08232145615427e-5*fs + 0.000485701045951343;
};
ds1_boost= fi.iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0)) with {
fs = float(ma.SR);
b0 = -5.51041967277497e-9*pow(fs,2);
b1 = 5.51041967277497e-9*pow(fs,2);
b2 = 5.51041967277497e-9*pow(fs,2);
b3 = -5.51041967277497e-9*pow(fs,2);
a0 = fs*(3.53982651634833e-10*fs + 2.38582349500046e-7) + 1.94656546234155e-5;
a1 = fs*(-3.53982651634833e-10*fs + 2.38582349500046e-7) + 5.83969638702466e-5;
a2 = fs*(-3.53982651634833e-10*fs - 2.38582349500046e-7) + 5.83969638702466e-5;
a3 = fs*(3.53982651634833e-10*fs - 2.38582349500046e-7) + 1.94656546234155e-5;
};
ds1_tone = fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
s = 0.993;
fs = float(ma.SR);
Tone = vslider("Tone[name:Tone]", 0.7, 0, 1, 0.01) : si.smooth(s);
b0 = Tone*(fs*(-2.18842400636233e-10*fs + 5.20602596669238e-8) + 0.000537812599864916) + (fs*(2.18842400636233e-10*fs + 2.33324618325395e-7) + 0.000182856283954071);
b1 = Tone*(4.37684801272465e-10*pow(fs,2) + 0.00107562519972983) + (-4.37684801272465e-10*pow(fs,2) + 0.000365712567908143);
b2 = Tone*(fs*(-2.18842400636233e-10*fs - 5.20602596669238e-8) + 0.000537812599864916) + (fs*(2.18842400636233e-10*fs - 2.33324618325395e-7) + 0.000182856283954071);
a0 = Tone*(Tone*(fs*(-2.89644353783249e-10*fs - 9.44398925362792e-7) - 0.000537812599864916) + fs*(2.65571689713263e-10*fs + 7.50424979344313e-7) + 0.000537812599864916) + fs*(3.3778968192322e-10*fs + 1.55559824875468e-6) + 0.00114855258827151;
a1 = Tone*(Tone*(5.79288707566498e-10*pow(fs,2) - 0.00107562519972983) - 5.31143379426527e-10*pow(fs,2) + 0.00107562519972983) - 6.7557936384644e-10*pow(fs,2) + 0.00229710517654303;
a2 = Tone*(Tone*(fs*(-2.89644353783249e-10*fs + 9.44398925362792e-7) - 0.000537812599864916) + fs*(2.65571689713263e-10*fs - 7.50424979344313e-7) + 0.000537812599864916) + fs*(3.3778968192322e-10*fs - 1.55559824875468e-6) + 0.00114855258827151;
};
ds1_out = fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
fs = float(ma.SR);
b0 = 4.28019579852603e-10*pow(fs,2);
b1 = -8.56039159705207e-10*pow(fs,2);
b2 = 4.28019579852603e-10*pow(fs,2);
a0 = fs*(4.33879508860142e-10*fs + 7.11639898820675e-9) + 2.44347979826776e-8;
a1 = -8.67759017720285e-10*pow(fs,2) + 4.88695959653553e-8;
a2 = fs*(4.33879508860142e-10*fs - 7.11639898820675e-9) + 2.44347979826776e-8;
};
ds1_drive = fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
fs = float(ma.SR);
b0 = drive*(-3.18093350083904e-10*drive*pow(fs,2) + fs*(3.0314296262996e-10*fs + 1.59012835323858e-5)) + fs*(1.49503874539434e-11*fs + 7.50903344506575e-7) + 0.000169198590470161;
b1 = drive*(6.36186700167807e-10*drive*pow(fs,2) - 6.0628592525992e-10*pow(fs,2)) - 2.99007749078869e-11*pow(fs,2) + 0.000338397180940323;
b2 = drive*(-3.18093350083904e-10*drive*pow(fs,2) + fs*(3.0314296262996e-10*fs - 1.59012835323858e-5)) + fs*(1.49503874539434e-11*fs - 7.50903344506575e-7) + 0.000169198590470161;
a0 = drive*(-3.18093350083904e-10*drive*pow(fs,2) + fs*(3.0314296262996e-10*fs - 3.38397180940322e-9)) + fs*(1.49503874539434e-11*fs + 1.66555708487018e-5) + 0.000169198590470162;
a1 = drive*(6.36186700167807e-10*drive*pow(fs,2) - 6.0628592525992e-10*pow(fs,2)) - 2.99007749078869e-11*pow(fs,2) + 0.000338397180940324;
a2 = drive*(-3.18093350083904e-10*drive*pow(fs,2) + fs*(3.0314296262996e-10*fs + 3.38397180940322e-9)) + fs*(1.49503874539434e-11*fs - 1.66555708487018e-5) + 0.000169198590470162;
};
s = 0.993;
drive = hslider("drive[name:Drive]", 0.5, 0, 1, 0.01) : *(0.314): si.smooth(s);
process = ds1_in : ds1_boost : ds1_drive : sclip : hf : X1 : X3 : lf : clip : ds1_tone : ds1_out : *(gain) with {
R1 = 4700 + 100000 * (1.0 - drive);
R2 = 100000 + 100000 * drive;
C = 0.047 * 1e-6;
a1 = (R1 + R2) * C * 2 * ma.SR;
a2 = R1 * C * 2 * ma.SR;
B0 = (1 + a1) / (1 + a2);
B1 = (1 - a1) / (1 + a2);
A1 = (1 - a2) / (1 + a2);
X2 = fi.tf1(B0, B1, A1);
s = 0.993;
hf = fi.highpass(2,23.);
lf = fi.lowpass(2,7200.);
symclip = ffunction(float asymclip3(float), "clipping.h", "");
sclip = symclip(_);
opamp = ffunction(float opamp(float), "clipping.h", "");
X1 = _ <: _ - opamp(_) :> _ ;
X3 = _ <: _ - opamp(X2-_) :> _ ;
asymclip = ffunction(float asymhardclip2(float), "clipping.h", "");
clip = asymclip(_);
gain = hslider("Level[name:Level]", 3, -20, 12, 0.1) : ba.db2linear : si.smooth(s);
};
|
129783104ba558737316a9bc032c891b2c14bb174934e645b9d0dc8456922a7a | brummer10/guitarix | gx_zita_rev1.dsp | // this code is copied from faust effect.lib and
// some parameter texts and defaults changed
declare id "zita_rev1";
declare name "Zita Rev1";
declare category "Reverb";
import("stdfaust.lib");
process(x,y) = re.zita_rev1_stereo(rdel,f1,f2,t60dc,t60m,fsmax,x,y)
: out_eq : dry_wet(x,y) : out_level
with {
fsmax = 48000.0; // highest sampling rate that will be used
fdn_group(x) = hgroup(
"zita_rev1[name:Zita_Rev1] [tooltip: ~ ZITA REV1 FEEDBACK DELAY NETWORK (FDN) & SCHROEDER ALLPASS-COMB REVERBERATOR (8x8). See Faust's effect.lib for documentation and references]", x);
in_group(x) = fdn_group(hgroup("input[name:Input]", x));
rdel = in_group(vslider("in_delay[name:In Delay] [unit:ms] [style:knob]
[tooltip: Delay in ms before reverberation begins]",
60,20,100,1));
freq_group(x) = fdn_group(hgroup("decay_times[name:Decay Times in Bands]", x));
f1 = freq_group(vslider("lf_x[name:Freq X] [unit:Hz] [style:knob]
[tooltip: Crossover frequency (Hz) separating low and middle frequencies]",
200, 50, 1000, 1));
t60dc = freq_group(vslider("low_rt60[name:Low] [unit:s] [style:knob]
[style:knob] [tooltip: T60 = time (in seconds) to decay 60dB in low-frequency band]",
3, 1, 8, 0.1));
t60m = freq_group(vslider("mid_rt60[name:Mid] [unit:s] [style:knob]
[tooltip: T60 = time (in seconds) to decay 60dB in middle band]",
2, 1, 8, 0.1));
f2 = freq_group(vslider("hf_damping[name:HF Damping] [unit:Hz] [style:knob]
[tooltip: Frequency (Hz) at which the high-frequency T60 is half the middle-band's T60]",
6000, 1500, 0.49*fsmax, 1));
out_eq = pareq_stereo(eq1f,eq1l,eq1q) : pareq_stereo(eq2f,eq2l,eq2q);
// Zolzer style peaking eq (not used in zita-fi.rev1) (filter.lib):
// pareq_stereo(eqf,eql,Q) = fi.peak_eq(eql,eqf,eqf/Q), fi.peak_eq(eql,eqf,eqf/Q);
// Regalia-Mitra peaking eq with "Q" hard-wired near sqrt(g)/2 (filter.lib):
pareq_stereo(eqf,eql,Q) = fi.peak_eq_rm(eql,eqf,tpbt), fi.peak_eq_rm(eql,eqf,tpbt)
with {
tpbt = wcT/sqrt(g); // tan(ma.PI*B/ma.SR) where B bandwidth in Hz (Q^2 ~ g/4)
wcT = 2*ma.PI*eqf/ma.SR; // peak frequency in rad/sample
g = ba.db2linear(eql); // peak gain
};
eq1_group(x) = fdn_group(hgroup("equalizer1[name:RM Peaking Equalizer 1]", x));
eq1f = eq1_group(vslider("eq1_freq[name:Freq] [unit:Hz] [style:knob]
[tooltip: Center-frequency of second-order Regalia-Mitra peaking equalizer section 1]",
315, 40, 2500, 1));
eq1l = eq1_group(vslider("eq1_level[name:Level] [unit:dB] [style:knob]
[tooltip: Peak level in dB of second-order Regalia-Mitra peaking equalizer section 1]",
0, -15, 15, 0.1));
eq1q = eq1_group(vslider("eq1_q[name:Q] [style:knob]
[tooltip: Q = centerFrequency/bandwidth of second-order peaking equalizer section 1]",
3, 0.1, 10, 0.1));
eq2_group(x) = fdn_group(hgroup("equalizer2[name:RM Peaking Equalizer 2]", x));
eq2f = eq2_group(vslider("eq2_freq[name:Freq] [unit:Hz] [style:knob]
[tooltip: Center-frequency of second-order Regalia-Mitra peaking equalizer section 2]",
1500, 160, 10000, 1));
eq2l = eq2_group(vslider("eq2_level[name:Level] [unit:dB] [style:knob]
[tooltip: Peak level in dB of second-order Regalia-Mitra peaking equalizer section 2]",
0, -15, 15, 0.1));
eq2q = eq2_group(vslider("eq2_q[name:Q] [style:knob]
[tooltip: Q = centerFrequency/bandwidth of second-order peaking equalizer section 2]",
3, 0.1, 10, 0.1));
out_group(x) = fdn_group(hgroup("output[name:Output]", x));
dry_wet(x,y) = *(wet) + dry*x, *(wet) + dry*y with {
wet = 0.5*(drywet+1.0);
dry = 1.0-wet;
};
drywet = out_group(vslider("dry_wet_mix[name:Dry/Wet] [style:knob]
[tooltip: -1 = dry, 1 = wet]",
0, -1.0, 1.0, 0.01)) : si.smooth(0.999);
out_level = *(gain),*(gain);
gain = out_group(vslider("level[name:Level] [unit:dB] [style:knob]
[tooltip: Output scale factor]", 0, -70, 40, 0.1))
: si.smooth(0.999) : ba.db2linear;
};
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/gx_zita_rev1.dsp | faust | this code is copied from faust effect.lib and
some parameter texts and defaults changed
highest sampling rate that will be used
Zolzer style peaking eq (not used in zita-fi.rev1) (filter.lib):
pareq_stereo(eqf,eql,Q) = fi.peak_eq(eql,eqf,eqf/Q), fi.peak_eq(eql,eqf,eqf/Q);
Regalia-Mitra peaking eq with "Q" hard-wired near sqrt(g)/2 (filter.lib):
tan(ma.PI*B/ma.SR) where B bandwidth in Hz (Q^2 ~ g/4)
peak frequency in rad/sample
peak gain |
declare id "zita_rev1";
declare name "Zita Rev1";
declare category "Reverb";
import("stdfaust.lib");
process(x,y) = re.zita_rev1_stereo(rdel,f1,f2,t60dc,t60m,fsmax,x,y)
: out_eq : dry_wet(x,y) : out_level
with {
fdn_group(x) = hgroup(
"zita_rev1[name:Zita_Rev1] [tooltip: ~ ZITA REV1 FEEDBACK DELAY NETWORK (FDN) & SCHROEDER ALLPASS-COMB REVERBERATOR (8x8). See Faust's effect.lib for documentation and references]", x);
in_group(x) = fdn_group(hgroup("input[name:Input]", x));
rdel = in_group(vslider("in_delay[name:In Delay] [unit:ms] [style:knob]
[tooltip: Delay in ms before reverberation begins]",
60,20,100,1));
freq_group(x) = fdn_group(hgroup("decay_times[name:Decay Times in Bands]", x));
f1 = freq_group(vslider("lf_x[name:Freq X] [unit:Hz] [style:knob]
[tooltip: Crossover frequency (Hz) separating low and middle frequencies]",
200, 50, 1000, 1));
t60dc = freq_group(vslider("low_rt60[name:Low] [unit:s] [style:knob]
[style:knob] [tooltip: T60 = time (in seconds) to decay 60dB in low-frequency band]",
3, 1, 8, 0.1));
t60m = freq_group(vslider("mid_rt60[name:Mid] [unit:s] [style:knob]
[tooltip: T60 = time (in seconds) to decay 60dB in middle band]",
2, 1, 8, 0.1));
f2 = freq_group(vslider("hf_damping[name:HF Damping] [unit:Hz] [style:knob]
[tooltip: Frequency (Hz) at which the high-frequency T60 is half the middle-band's T60]",
6000, 1500, 0.49*fsmax, 1));
out_eq = pareq_stereo(eq1f,eq1l,eq1q) : pareq_stereo(eq2f,eq2l,eq2q);
pareq_stereo(eqf,eql,Q) = fi.peak_eq_rm(eql,eqf,tpbt), fi.peak_eq_rm(eql,eqf,tpbt)
with {
};
eq1_group(x) = fdn_group(hgroup("equalizer1[name:RM Peaking Equalizer 1]", x));
eq1f = eq1_group(vslider("eq1_freq[name:Freq] [unit:Hz] [style:knob]
[tooltip: Center-frequency of second-order Regalia-Mitra peaking equalizer section 1]",
315, 40, 2500, 1));
eq1l = eq1_group(vslider("eq1_level[name:Level] [unit:dB] [style:knob]
[tooltip: Peak level in dB of second-order Regalia-Mitra peaking equalizer section 1]",
0, -15, 15, 0.1));
eq1q = eq1_group(vslider("eq1_q[name:Q] [style:knob]
[tooltip: Q = centerFrequency/bandwidth of second-order peaking equalizer section 1]",
3, 0.1, 10, 0.1));
eq2_group(x) = fdn_group(hgroup("equalizer2[name:RM Peaking Equalizer 2]", x));
eq2f = eq2_group(vslider("eq2_freq[name:Freq] [unit:Hz] [style:knob]
[tooltip: Center-frequency of second-order Regalia-Mitra peaking equalizer section 2]",
1500, 160, 10000, 1));
eq2l = eq2_group(vslider("eq2_level[name:Level] [unit:dB] [style:knob]
[tooltip: Peak level in dB of second-order Regalia-Mitra peaking equalizer section 2]",
0, -15, 15, 0.1));
eq2q = eq2_group(vslider("eq2_q[name:Q] [style:knob]
[tooltip: Q = centerFrequency/bandwidth of second-order peaking equalizer section 2]",
3, 0.1, 10, 0.1));
out_group(x) = fdn_group(hgroup("output[name:Output]", x));
dry_wet(x,y) = *(wet) + dry*x, *(wet) + dry*y with {
wet = 0.5*(drywet+1.0);
dry = 1.0-wet;
};
drywet = out_group(vslider("dry_wet_mix[name:Dry/Wet] [style:knob]
[tooltip: -1 = dry, 1 = wet]",
0, -1.0, 1.0, 0.01)) : si.smooth(0.999);
out_level = *(gain),*(gain);
gain = out_group(vslider("level[name:Level] [unit:dB] [style:knob]
[tooltip: Output scale factor]", 0, -70, 40, 0.1))
: si.smooth(0.999) : ba.db2linear;
};
|
75583b498d465a194c29777f4fda0447d0a290ed4760db866d341c5c551754d4 | brummer10/guitarix | distortion.dsp | //declare name "distortion";
declare version "0.01";
declare author "brummer";
declare license "BSD";
declare copyright "(c)brummer 2008";
import("stdfaust.lib");
import("guitarix.lib");
F = nentry("split_low_freq", 250, 20, 600, 10);
F1 = nentry("split_middle_freq", 650, 600, 1250, 10);
F2 = nentry("split_high_freq", 1250, 1250, 12000, 10);
/**********************************************************************
*** this part is included here for backward compatibility from 0.9.27 to
*** 0.9.24
***********************************************************************/
//------------------------------ ba.count and ba.take --------------------------------------
countN ((xs, xxs)) = 1 + countN(xxs);
countN (xx) = 1;
takeN (1, (xs, xxs)) = xs;
takeN (1, xs) = xs;
takeN (nn, (xs, xxs)) = takeN (nn-1, xxs);
//------------------------------ low/high-passfilters --------------------------------------
tf1N(b0,b1,a1) = _ <: *(b0), (mem : *(b1)) :> + ~ *(0-a1);
tf2N(b0,b1,b2,a1,a2) = ma.sub ~ conv2(a1,a2) : conv3(b0,b1,b2)
with {
conv3(k0,k1,k2,x) = k0*x + k1*x' + k2*x'';
conv2(k0,k1,x) = k0*x + k1*x';
ma.sub(x,y) = y-x;
};
tf1sN(b1,b0,a0,w1) = tf1N(b0d,b1d,a1d)
with {
c = 1/tan((w1)*0.5/ma.SR); // bilinear-transform scale-factor
d = a0 + c;
b1d = (b0 - b1*c) / d;
b0d = (b0 + b1*c) / d;
a1d = (a0 - c) / d;
};
tf2sN(b2,b1,b0,a1,a0,w1) = tf2N(b0d,b1d,b2d,a1d,a2d)
with {
c = 1/tan((w1)*0.5/ma.SR); // bilinear-transform scale-factor
csq = c*c;
d = a0 + a1 * c + csq;
b0d = (b0 + b1 * c + b2 * csq)/d;
b1d = 2 * (b0 - b2 * csq)/d;
b2d = (b0 - b1 * c + b2 * csq)/d;
a1d = 2 * (a0 - csq)/d;
a2d = (a0 - a1*c + csq)/d;
};
lowpassN(N,fc) = lowpass0_highpass1N(0,N,fc);
highpassN(N,fc) = lowpass0_highpass1N(1,N,fc);
lowpass0_highpass1N(s,N,fc) = lphpr(s,N,N,fc)
with {
lphpr(s,0,N,fc) = _;
lphpr(s,1,N,fc) = tf1sN(s,1-s,1,2*ma.PI*fc);
lphpr(s,O,N,fc) = lphpr(s,(O-2),N,fc) : tf2sN(s,0,1-s,a1s,1,w1) with {
parity = N % 2;
S = (O-parity)/2; // current section number
a1s = -2*cos(-ma.PI + (1-parity)*ma.PI/(2*N) + (S-1+parity)*ma.PI/N);
w1 = 2*ma.PI*fc;
};
};
//------------------------------ an.analyzer --------------------------------------
analyzern(O,lfreqs) = _ <: bsplit(nb) with
{
nb = countN(lfreqs);
fc(n) = takeN(n, lfreqs);
lp(n) = lowpassN(O,fc(n));
hp(n) = highpassN(O,fc(n));
bsplit(0) = _;
bsplit(i) = hp(i), (lp(i) <: bsplit(i-1));
};
analyzerN(lfreqs) = analyzern(3,lfreqs);
/**********************************************************************
*** end for backward compatibility from 0.9.27 to
*** 0.9.24 , it could removed when switch completely to > 0.9.27
***********************************************************************/
//----------distortion---------
//-speaker emulation
sbp1 = vslider("low_freq[name:low freq][tooltip:low-freq cutoff Hz]",130,20,1000,10);
sbp2 = vslider("high_freq[name:high freq][tooltip:high-freq cutoff Hz]",5000,1000,12000,10);
switch1 = checkbox("on_off[name:low highcutoff]");
sbp = hgroup("low_highcutoff", bypass(switch1, +(anti_denormal_ac) : ef.speakerbp(sbp1,sbp2)));
//-low and fi.highpass
lowpassfreq = nentry("low_freq[name:low freq]", 5000, 20, 12000, 10);
highpassfreq = nentry("high_freq[name:high freq]", 130, 20, 7040, 10);
switch = checkbox("on_off[name:low fi.highpass]");
passo = +(anti_denormal_ac) : lowpassN(1,lowpassfreq) : highpassN(1,highpassfreq);
pass = hgroup("low_highpass", bypass(switch, passo));
//-distortion
drivelevel = vslider("level", 0.01, 0, 0.5, 0.01);
drivegain1 = vslider("gain", 2, -10, 10, 0.1)-10 : ba.db2linear : smoothi(0.999);
low_gain = vslider("low_gain", 10, -10, 20, 0.1)-10 : ba.db2linear : smoothi(0.999);
high_gain = vslider("high_gain", 10, -10, 20, 0.1)-10 : ba.db2linear : smoothi(0.999);
middle_gain_l = vslider("middle_l_gain", 10, -10, 20, 0.1)-10 : ba.db2linear : smoothi(0.999);
middle_gain_h = vslider("middle_h_gain", 10, -10, 20, 0.1)-10 : ba.db2linear : smoothi(0.999);
drive = vslider("drive", 0.64, 0, 1, 0.01);
drive1 = vslider("low_drive", 1, 0, 1, 0.01)*drive;
drive2 = vslider("high_drive", 1, 0, 1, 0.01)*drive;
drive3 = vslider("middle_l_drive", 1, 0, 1, 0.01)*drive;
drive4 = vslider("middle_h_drive", 1, 0, 1, 0.01)*drive;
distortion1 = _:ef.cubicnl(drive1,drivelevel): *(low_gain);
distortion2 = _:ef.cubicnl(drive2,drivelevel) : *(high_gain);
distortion3 = _:ef.cubicnl(drive3,drivelevel) : *(middle_gain_l);
distortion4 = _:ef.cubicnl(drive4,drivelevel) : *(middle_gain_h);
distortion = _ : analyzerN((F,(F1,F2))) : distortion2,distortion4 ,distortion3,distortion1 :>_;
//-resonator
resonator = (+ <: (de.delay(4096, d-1) + de.delay(4096, d)) / 2) ~ *(1.0-a)
with {
d = vslider("vibrato", 1, 0, 1, 0.01);
a = vslider("trigger", 0.12, 0, 1, 0.01);
};
switch2 = checkbox("resonator.on_off[name:resonat]");
//reso = hgroup("resonator", bypass(switch2, resonator));
hs = component("HighShelf.dsp").hs;
process = bypass(switch2, resonator) : +(anti_denormal_ac) : pass : sbp : hs : distortion : *(drivegain1) : hs : sbp;
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/distortion.dsp | faust | declare name "distortion";
*********************************************************************
*** this part is included here for backward compatibility from 0.9.27 to
*** 0.9.24
**********************************************************************
------------------------------ ba.count and ba.take --------------------------------------
------------------------------ low/high-passfilters --------------------------------------
bilinear-transform scale-factor
bilinear-transform scale-factor
current section number
------------------------------ an.analyzer --------------------------------------
*********************************************************************
*** end for backward compatibility from 0.9.27 to
*** 0.9.24 , it could removed when switch completely to > 0.9.27
**********************************************************************
----------distortion---------
-speaker emulation
-low and fi.highpass
-distortion
-resonator
reso = hgroup("resonator", bypass(switch2, resonator)); | declare version "0.01";
declare author "brummer";
declare license "BSD";
declare copyright "(c)brummer 2008";
import("stdfaust.lib");
import("guitarix.lib");
F = nentry("split_low_freq", 250, 20, 600, 10);
F1 = nentry("split_middle_freq", 650, 600, 1250, 10);
F2 = nentry("split_high_freq", 1250, 1250, 12000, 10);
countN ((xs, xxs)) = 1 + countN(xxs);
countN (xx) = 1;
takeN (1, (xs, xxs)) = xs;
takeN (1, xs) = xs;
takeN (nn, (xs, xxs)) = takeN (nn-1, xxs);
tf1N(b0,b1,a1) = _ <: *(b0), (mem : *(b1)) :> + ~ *(0-a1);
tf2N(b0,b1,b2,a1,a2) = ma.sub ~ conv2(a1,a2) : conv3(b0,b1,b2)
with {
conv3(k0,k1,k2,x) = k0*x + k1*x' + k2*x'';
conv2(k0,k1,x) = k0*x + k1*x';
ma.sub(x,y) = y-x;
};
tf1sN(b1,b0,a0,w1) = tf1N(b0d,b1d,a1d)
with {
d = a0 + c;
b1d = (b0 - b1*c) / d;
b0d = (b0 + b1*c) / d;
a1d = (a0 - c) / d;
};
tf2sN(b2,b1,b0,a1,a0,w1) = tf2N(b0d,b1d,b2d,a1d,a2d)
with {
csq = c*c;
d = a0 + a1 * c + csq;
b0d = (b0 + b1 * c + b2 * csq)/d;
b1d = 2 * (b0 - b2 * csq)/d;
b2d = (b0 - b1 * c + b2 * csq)/d;
a1d = 2 * (a0 - csq)/d;
a2d = (a0 - a1*c + csq)/d;
};
lowpassN(N,fc) = lowpass0_highpass1N(0,N,fc);
highpassN(N,fc) = lowpass0_highpass1N(1,N,fc);
lowpass0_highpass1N(s,N,fc) = lphpr(s,N,N,fc)
with {
lphpr(s,0,N,fc) = _;
lphpr(s,1,N,fc) = tf1sN(s,1-s,1,2*ma.PI*fc);
lphpr(s,O,N,fc) = lphpr(s,(O-2),N,fc) : tf2sN(s,0,1-s,a1s,1,w1) with {
parity = N % 2;
a1s = -2*cos(-ma.PI + (1-parity)*ma.PI/(2*N) + (S-1+parity)*ma.PI/N);
w1 = 2*ma.PI*fc;
};
};
analyzern(O,lfreqs) = _ <: bsplit(nb) with
{
nb = countN(lfreqs);
fc(n) = takeN(n, lfreqs);
lp(n) = lowpassN(O,fc(n));
hp(n) = highpassN(O,fc(n));
bsplit(0) = _;
bsplit(i) = hp(i), (lp(i) <: bsplit(i-1));
};
analyzerN(lfreqs) = analyzern(3,lfreqs);
sbp1 = vslider("low_freq[name:low freq][tooltip:low-freq cutoff Hz]",130,20,1000,10);
sbp2 = vslider("high_freq[name:high freq][tooltip:high-freq cutoff Hz]",5000,1000,12000,10);
switch1 = checkbox("on_off[name:low highcutoff]");
sbp = hgroup("low_highcutoff", bypass(switch1, +(anti_denormal_ac) : ef.speakerbp(sbp1,sbp2)));
lowpassfreq = nentry("low_freq[name:low freq]", 5000, 20, 12000, 10);
highpassfreq = nentry("high_freq[name:high freq]", 130, 20, 7040, 10);
switch = checkbox("on_off[name:low fi.highpass]");
passo = +(anti_denormal_ac) : lowpassN(1,lowpassfreq) : highpassN(1,highpassfreq);
pass = hgroup("low_highpass", bypass(switch, passo));
drivelevel = vslider("level", 0.01, 0, 0.5, 0.01);
drivegain1 = vslider("gain", 2, -10, 10, 0.1)-10 : ba.db2linear : smoothi(0.999);
low_gain = vslider("low_gain", 10, -10, 20, 0.1)-10 : ba.db2linear : smoothi(0.999);
high_gain = vslider("high_gain", 10, -10, 20, 0.1)-10 : ba.db2linear : smoothi(0.999);
middle_gain_l = vslider("middle_l_gain", 10, -10, 20, 0.1)-10 : ba.db2linear : smoothi(0.999);
middle_gain_h = vslider("middle_h_gain", 10, -10, 20, 0.1)-10 : ba.db2linear : smoothi(0.999);
drive = vslider("drive", 0.64, 0, 1, 0.01);
drive1 = vslider("low_drive", 1, 0, 1, 0.01)*drive;
drive2 = vslider("high_drive", 1, 0, 1, 0.01)*drive;
drive3 = vslider("middle_l_drive", 1, 0, 1, 0.01)*drive;
drive4 = vslider("middle_h_drive", 1, 0, 1, 0.01)*drive;
distortion1 = _:ef.cubicnl(drive1,drivelevel): *(low_gain);
distortion2 = _:ef.cubicnl(drive2,drivelevel) : *(high_gain);
distortion3 = _:ef.cubicnl(drive3,drivelevel) : *(middle_gain_l);
distortion4 = _:ef.cubicnl(drive4,drivelevel) : *(middle_gain_h);
distortion = _ : analyzerN((F,(F1,F2))) : distortion2,distortion4 ,distortion3,distortion1 :>_;
resonator = (+ <: (de.delay(4096, d-1) + de.delay(4096, d)) / 2) ~ *(1.0-a)
with {
d = vslider("vibrato", 1, 0, 1, 0.01);
a = vslider("trigger", 0.12, 0, 1, 0.01);
};
switch2 = checkbox("resonator.on_off[name:resonat]");
hs = component("HighShelf.dsp").hs;
process = bypass(switch2, resonator) : +(anti_denormal_ac) : pass : sbp : hs : distortion : *(drivegain1) : hs : sbp;
|
bc518c844b0026340ab9e9c81403357e89945137176398acbc34097561e344d7 | brummer10/guitarix | gxdistortion.dsp | declare id "gxdistortion";
declare version "0.01";
declare author "brummer";
declare license "BSD";
declare copyright "(c)brummer 2008";
import("stdfaust.lib");
import("guitarix.lib");
F = 300; //nentry("split_low_freq", 250, 20, 600, 10);
F1 = 1200; //nentry("split_middle_freq", 650, 600, 1250, 10);
F2 = 3200; //nentry("split_high_freq", 1250, 1250, 12000, 10);
/**********************************************************************
*** this part is included here for backward compatibility from 0.9.27 to
*** 0.9.24
***********************************************************************/
//------------------------------ ba.count and ba.take --------------------------------------
countN ((xs, xxs)) = 1 + countN(xxs);
countN (xx) = 1;
takeN (1, (xs, xxs)) = xs;
takeN (1, xs) = xs;
takeN (nn, (xs, xxs)) = takeN (nn-1, xxs);
//------------------------------ low/high-passfilters --------------------------------------
tf1N(b0,b1,a1) = _ <: *(b0), (mem : *(b1)) :> + ~ *(0-a1);
tf2N(b0,b1,b2,a1,a2) = sub ~ conv2(a1,a2) : conv3(b0,b1,b2)
with {
conv3(k0,k1,k2,x) = k0*x + k1*x' + k2*x'';
conv2(k0,k1,x) = k0*x + k1*x';
sub(x,y) = y-x;
};
tf1sN(b1,b0,a0,w1) = tf1N(b0d,b1d,a1d)
with {
c = 1/tan((w1)*0.5/ma.SR); // bilinear-transform scale-factor
d = a0 + c;
b1d = (b0 - b1*c) / d;
b0d = (b0 + b1*c) / d;
a1d = (a0 - c) / d;
};
tf2sN(b2,b1,b0,a1,a0,w1) = tf2N(b0d,b1d,b2d,a1d,a2d)
with {
c = 1/tan((w1)*0.5/ma.SR); // bilinear-transform scale-factor
csq = c*c;
d = a0 + a1 * c + csq;
b0d = (b0 + b1 * c + b2 * csq)/d;
b1d = 2 * (b0 - b2 * csq)/d;
b2d = (b0 - b1 * c + b2 * csq)/d;
a1d = 2 * (a0 - csq)/d;
a2d = (a0 - a1*c + csq)/d;
};
lowpassN(N,fc) = lowpass0_highpass1N(0,N,fc);
highpassN(N,fc) = lowpass0_highpass1N(1,N,fc);
lowpass0_highpass1N(s,N,fc) = lphpr(s,N,N,fc)
with {
lphpr(s,0,N,fc) = _;
lphpr(s,1,N,fc) = tf1sN(s,1-s,1,2*ma.PI*fc);
lphpr(s,O,N,fc) = lphpr(s,(O-2),N,fc) : tf2sN(s,0,1-s,a1s,1,w1) with {
parity = N % 2;
S = (O-parity)/2; // current section number
a1s = -2*cos(-ma.PI + (1-parity)*ma.PI/(2*N) + (S-1+parity)*ma.PI/N);
w1 = 2*ma.PI*fc;
};
};
//------------------------------ an.analyzer --------------------------------------
analyzern(O,lfreqs) = _ <: bsplit(nb) with
{
nb = countN(lfreqs);
fc(n) = takeN(n, lfreqs);
lp(n) = lowpassN(O,fc(n));
hp(n) = highpassN(O,fc(n));
bsplit(0) = _;
bsplit(i) = hp(i), (lp(i) <: bsplit(i-1));
};
analyzerN(lfreqs) = analyzern(3,lfreqs);
filterbankn(O,lfreqs) = analyzern(O,lfreqs) : delayeq with
{
nb = ba.count(lfreqs);
fc(n) = ba.take(n, lfreqs);
ap(n) = fi.highpass_plus_lowpass(O,fc(n));
delayeq = par(i,nb-1,apchain(nb-1-i)),_,_;
apchain(0) = _;
apchain(i) = ap(i) : apchain(i-1);
};
filterbankN(lfreqs) = fi.filterbank(3,lfreqs);
/**********************************************************************
*** end for backward compatibility from 0.9.27 to
*** 0.9.24 , it could removed when switch completely to > 0.9.27
***********************************************************************/
//----------distortion---------
val(x) = valve.vt(dist, q(x), x)
with {
dist = 40.1;
q(x) = lp1tm1(x) * 1.0 - lp2tm1(x) * 1.02 - 1.0 : clip(-1.0,-0.01);
lp(a) = *(1 - a) : + ~ *(a);
lp1tm1 = abs <: lp(0.9999), _ : max;
avgs = lp1tm1 : avg;
avg_size = ma.SR/9;
avg(x) = x - de.delay1s(avg_size,x) : + ~ _ : /(avg_size);
lp2tm1 = avgs : lp(0.999);
};
vt = valve.vt(dist, q) : ma.neg : valve.vt(dist, q) : ma.neg with
{
q_p = 0.9;
dist_p = 1.7;
q = -q_p*-q_p*-q_p;
dist = pow(10,dist_p);
};
//-distortion
distdrive(drive) = wet_dry_mix(wet_dry, _: distortion) with {
//drive = vslider("drive", 0.35, 0, 1, 0.01);
//h = (2.0): ba.db2linear; //1,2589412
//l = (4.0): ba.db2linear; //1,584893192
//mh = (4.0): ba.db2linear; //1,584893192
//ml = (2.5): ba.db2linear; //1,333521432
distortion1 = _:ef.cubicnl(0.45*drive,0.0): *(1.2589412); // l
distortion2 = _:ef.cubicnl(0.4*drive,0.0) : *(1.584893192); // h
distortion3 = _:ef.cubicnl(1.0*drive,0.0) : *(1.584893192); //ml
distortion4 = _:ef.cubicnl(0.6*drive,0.0) : *(1.333521432); //mh
distortion = fi.lowpass(2,15000.0): fi.highpass(1,31.0) : filterbankN((F,(F1,F2))) : distortion2,distortion4 ,distortion3,distortion1 :>fi.lowpass(1,6531.0);
wet_dry = (drive - 0.5) * 2;
};
distdrive1(drive) = wet_dry_mix(wet_dry, _: distortion) with {
//drive = vslider("drive", 0.35, 0, 1, 0.01);
//h = (2.0): ba.db2linear; //1,2589412
//l = (4.0): ba.db2linear; //1,584893192
//mh = (4.0): ba.db2linear; //1,584893192
//ml = (2.5): ba.db2linear; //1,333521432
distortion1 = _:ef.cubicnl(0.4*drive,0.0): *(1.2589412); // l
distortion2 = _:ef.cubicnl(0.8*drive,0.0) : *(1.584893192); // h
distortion3 = _:ef.cubicnl(0.8*drive,0.0) : *(1.584893192); //ml
distortion4 = _:ef.cubicnl(0.6*drive,0.0) : *(1.333521432); //mh
distortion = lowpassN(1,6531.0): fi.highpass(1,120.0) : filterbankN((F,(F1,F2))) : distortion2,distortion4 ,distortion3,distortion1 :>fi.lowpass(1,6531.0): fi.highpass(1,120.0);
wet_dry = (drive - 0.5) * 2;
};
clipit = min(0.7) : max(-0.7) ;
gx_drive(drive) = _ <: _ + nonlin(4,4,0.125) * drive * 10 ;
wetdry = vslider("wet_dry[name:wet/dry]", 100, 0, 100, 1) : /(100);
drive = vslider("drive", 0.35, 0, 1, 0.01) : smoothi(0.999);
dist(drive,wetdry) =_<:(*(dry): +(no_denormal) :gx_drive(drive)),(*(wetdry):+(no_denormal) :distdrive(drive)):>_
with{
dry = 1 - wetdry;
};
dist1(drive,wetdry) =_<:(*(dry): gx_drive(drive)),(*(wetdry) <: (clipit: ef.cubicnl(drive,0.0) : * (0.5)),distdrive(drive) :>_):>_
with{
dry = 1 - wetdry;
};
dist2(drive,wetdry) =_<:(*(dry): gx_drive(drive)),(*(wetdry):val :distdrive(drive)):>_
with{
dry = 1 - wetdry;
};
dist4(drive,wetdry) =_<:(*(dry): gx_drive(drive)),
(*(wetdry) : val <:
(ef.cubicnl(drive,0.0) : * (0.5)),distdrive(drive) :>_):>_
with{
dry = 1 - wetdry;
};
process = distdrive;
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/gxdistortion.dsp | faust | nentry("split_low_freq", 250, 20, 600, 10);
nentry("split_middle_freq", 650, 600, 1250, 10);
nentry("split_high_freq", 1250, 1250, 12000, 10);
*********************************************************************
*** this part is included here for backward compatibility from 0.9.27 to
*** 0.9.24
**********************************************************************
------------------------------ ba.count and ba.take --------------------------------------
------------------------------ low/high-passfilters --------------------------------------
bilinear-transform scale-factor
bilinear-transform scale-factor
current section number
------------------------------ an.analyzer --------------------------------------
*********************************************************************
*** end for backward compatibility from 0.9.27 to
*** 0.9.24 , it could removed when switch completely to > 0.9.27
**********************************************************************
----------distortion---------
-distortion
drive = vslider("drive", 0.35, 0, 1, 0.01);
h = (2.0): ba.db2linear; //1,2589412
l = (4.0): ba.db2linear; //1,584893192
mh = (4.0): ba.db2linear; //1,584893192
ml = (2.5): ba.db2linear; //1,333521432
l
h
ml
mh
drive = vslider("drive", 0.35, 0, 1, 0.01);
h = (2.0): ba.db2linear; //1,2589412
l = (4.0): ba.db2linear; //1,584893192
mh = (4.0): ba.db2linear; //1,584893192
ml = (2.5): ba.db2linear; //1,333521432
l
h
ml
mh | declare id "gxdistortion";
declare version "0.01";
declare author "brummer";
declare license "BSD";
declare copyright "(c)brummer 2008";
import("stdfaust.lib");
import("guitarix.lib");
countN ((xs, xxs)) = 1 + countN(xxs);
countN (xx) = 1;
takeN (1, (xs, xxs)) = xs;
takeN (1, xs) = xs;
takeN (nn, (xs, xxs)) = takeN (nn-1, xxs);
tf1N(b0,b1,a1) = _ <: *(b0), (mem : *(b1)) :> + ~ *(0-a1);
tf2N(b0,b1,b2,a1,a2) = sub ~ conv2(a1,a2) : conv3(b0,b1,b2)
with {
conv3(k0,k1,k2,x) = k0*x + k1*x' + k2*x'';
conv2(k0,k1,x) = k0*x + k1*x';
sub(x,y) = y-x;
};
tf1sN(b1,b0,a0,w1) = tf1N(b0d,b1d,a1d)
with {
d = a0 + c;
b1d = (b0 - b1*c) / d;
b0d = (b0 + b1*c) / d;
a1d = (a0 - c) / d;
};
tf2sN(b2,b1,b0,a1,a0,w1) = tf2N(b0d,b1d,b2d,a1d,a2d)
with {
csq = c*c;
d = a0 + a1 * c + csq;
b0d = (b0 + b1 * c + b2 * csq)/d;
b1d = 2 * (b0 - b2 * csq)/d;
b2d = (b0 - b1 * c + b2 * csq)/d;
a1d = 2 * (a0 - csq)/d;
a2d = (a0 - a1*c + csq)/d;
};
lowpassN(N,fc) = lowpass0_highpass1N(0,N,fc);
highpassN(N,fc) = lowpass0_highpass1N(1,N,fc);
lowpass0_highpass1N(s,N,fc) = lphpr(s,N,N,fc)
with {
lphpr(s,0,N,fc) = _;
lphpr(s,1,N,fc) = tf1sN(s,1-s,1,2*ma.PI*fc);
lphpr(s,O,N,fc) = lphpr(s,(O-2),N,fc) : tf2sN(s,0,1-s,a1s,1,w1) with {
parity = N % 2;
a1s = -2*cos(-ma.PI + (1-parity)*ma.PI/(2*N) + (S-1+parity)*ma.PI/N);
w1 = 2*ma.PI*fc;
};
};
analyzern(O,lfreqs) = _ <: bsplit(nb) with
{
nb = countN(lfreqs);
fc(n) = takeN(n, lfreqs);
lp(n) = lowpassN(O,fc(n));
hp(n) = highpassN(O,fc(n));
bsplit(0) = _;
bsplit(i) = hp(i), (lp(i) <: bsplit(i-1));
};
analyzerN(lfreqs) = analyzern(3,lfreqs);
filterbankn(O,lfreqs) = analyzern(O,lfreqs) : delayeq with
{
nb = ba.count(lfreqs);
fc(n) = ba.take(n, lfreqs);
ap(n) = fi.highpass_plus_lowpass(O,fc(n));
delayeq = par(i,nb-1,apchain(nb-1-i)),_,_;
apchain(0) = _;
apchain(i) = ap(i) : apchain(i-1);
};
filterbankN(lfreqs) = fi.filterbank(3,lfreqs);
val(x) = valve.vt(dist, q(x), x)
with {
dist = 40.1;
q(x) = lp1tm1(x) * 1.0 - lp2tm1(x) * 1.02 - 1.0 : clip(-1.0,-0.01);
lp(a) = *(1 - a) : + ~ *(a);
lp1tm1 = abs <: lp(0.9999), _ : max;
avgs = lp1tm1 : avg;
avg_size = ma.SR/9;
avg(x) = x - de.delay1s(avg_size,x) : + ~ _ : /(avg_size);
lp2tm1 = avgs : lp(0.999);
};
vt = valve.vt(dist, q) : ma.neg : valve.vt(dist, q) : ma.neg with
{
q_p = 0.9;
dist_p = 1.7;
q = -q_p*-q_p*-q_p;
dist = pow(10,dist_p);
};
distdrive(drive) = wet_dry_mix(wet_dry, _: distortion) with {
distortion = fi.lowpass(2,15000.0): fi.highpass(1,31.0) : filterbankN((F,(F1,F2))) : distortion2,distortion4 ,distortion3,distortion1 :>fi.lowpass(1,6531.0);
wet_dry = (drive - 0.5) * 2;
};
distdrive1(drive) = wet_dry_mix(wet_dry, _: distortion) with {
distortion = lowpassN(1,6531.0): fi.highpass(1,120.0) : filterbankN((F,(F1,F2))) : distortion2,distortion4 ,distortion3,distortion1 :>fi.lowpass(1,6531.0): fi.highpass(1,120.0);
wet_dry = (drive - 0.5) * 2;
};
clipit = min(0.7) : max(-0.7) ;
gx_drive(drive) = _ <: _ + nonlin(4,4,0.125) * drive * 10 ;
wetdry = vslider("wet_dry[name:wet/dry]", 100, 0, 100, 1) : /(100);
drive = vslider("drive", 0.35, 0, 1, 0.01) : smoothi(0.999);
dist(drive,wetdry) =_<:(*(dry): +(no_denormal) :gx_drive(drive)),(*(wetdry):+(no_denormal) :distdrive(drive)):>_
with{
dry = 1 - wetdry;
};
dist1(drive,wetdry) =_<:(*(dry): gx_drive(drive)),(*(wetdry) <: (clipit: ef.cubicnl(drive,0.0) : * (0.5)),distdrive(drive) :>_):>_
with{
dry = 1 - wetdry;
};
dist2(drive,wetdry) =_<:(*(dry): gx_drive(drive)),(*(wetdry):val :distdrive(drive)):>_
with{
dry = 1 - wetdry;
};
dist4(drive,wetdry) =_<:(*(dry): gx_drive(drive)),
(*(wetdry) : val <:
(ef.cubicnl(drive,0.0) : * (0.5)),distdrive(drive) :>_):>_
with{
dry = 1 - wetdry;
};
process = distdrive;
|
f4756390176436789da2c16abe5ee8e82bf632c8f0b39bf95980ab7dbd5e15e6 | brummer10/guitarix | bossds1.dsp | // generated automatically
// DO NOT MODIFY!
declare id "bossds1";
declare name "DS1";
declare category "Distortion";
declare shortname "DS1";
declare description "DS1 simulation";
declare samplerate "96000";
import("stdfaust.lib");
ds1_in = fi.iir((b0/a0,b1/a0),(a1/a0)) with {
fs = float(ma.SR);
b0 = 2.06179485600366e-5*fs;
b1 = -2.06179485600366e-5*fs;
a0 = 2.08223456923865e-5*fs + 0.000527406765446517;
a1 = -2.08223456923865e-5*fs + 0.000527406765446517;
};
ds1_boost= fi.iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0)) with {
fs = float(ma.SR);
b0 = -5.51041967277497e-9*pow(fs,2);
b1 = 5.51041967277497e-9*pow(fs,2);
b2 = 5.51041967277497e-9*pow(fs,2);
b3 = -5.51041967277497e-9*pow(fs,2);
a0 = fs*(3.53982651634833e-10*fs + 2.38582349500046e-7) + 1.94656546234155e-5;
a1 = fs*(-3.53982651634833e-10*fs + 2.38582349500046e-7) + 5.83969638702466e-5;
a2 = fs*(-3.53982651634833e-10*fs - 2.38582349500046e-7) + 5.83969638702466e-5;
a3 = fs*(3.53982651634833e-10*fs - 2.38582349500046e-7) + 1.94656546234155e-5;
};
ds1_ampin = fi.iir((b0/a0,b1/a0),(a1/a0)) with {
fs = float(ma.SR);
b0 = 1.89077966855745e-5*fs;
b1 = -1.89077966855745e-5*fs;
a0 = 2.07985763541319e-5*fs + 0.00166833500166833;
a1 = -2.07985763541319e-5*fs + 0.00166833500166833;
};
ds1_ampout = fi.iir((b0/a0,b1/a0),(a1/a0)) with {
fs = float(ma.SR);
b0 = 0.319154715341156;
b1 = 0.319154715341156;
a0 = 1.40428074750109e-5*fs + 0.325945241199478;
a1 = -1.40428074750109e-5*fs + 0.325945241199478;
};
ds1_tone = fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
s = 0.993;
fs = float(ma.SR);
Tone = vslider("Tone[name:Tone]", 0.7, 0, 1, 0.01) : si.smooth(s);
b0 = Tone*(fs*(-2.18842400636233e-10*fs + 5.20602596669238e-8) + 0.000537812599864916) + (fs*(2.18842400636233e-10*fs + 2.33324618325395e-7) + 0.000182856283954071);
b1 = Tone*(4.37684801272465e-10*pow(fs,2) + 0.00107562519972983) + (-4.37684801272465e-10*pow(fs,2) + 0.000365712567908143);
b2 = Tone*(fs*(-2.18842400636233e-10*fs - 5.20602596669238e-8) + 0.000537812599864916) + (fs*(2.18842400636233e-10*fs - 2.33324618325395e-7) + 0.000182856283954071);
a0 = Tone*(Tone*(fs*(-2.89644353783249e-10*fs - 9.44398925362792e-7) - 0.000537812599864916) + fs*(2.65571689713263e-10*fs + 7.50424979344313e-7) + 0.000537812599864916) + fs*(3.3778968192322e-10*fs + 1.55559824875468e-6) + 0.00114855258827151;
a1 = Tone*(Tone*(5.79288707566498e-10*pow(fs,2) - 0.00107562519972983) - 5.31143379426527e-10*pow(fs,2) + 0.00107562519972983) - 6.7557936384644e-10*pow(fs,2) + 0.00229710517654303;
a2 = Tone*(Tone*(fs*(-2.89644353783249e-10*fs + 9.44398925362792e-7) - 0.000537812599864916) + fs*(2.65571689713263e-10*fs - 7.50424979344313e-7) + 0.000537812599864916) + fs*(3.3778968192322e-10*fs - 1.55559824875468e-6) + 0.00114855258827151;
};
ds1_out = fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
fs = float(ma.SR);
b0 = fs*(4.26031359768866e-10*fs + 2.06011295826338e-10);
b1 = -8.52062719537733e-10*pow(fs,2);
b2 = fs*(4.26031359768866e-10*fs - 2.06011295826338e-10);
a0 = fs*(4.33883931795138e-10*fs + 6.90412007909908e-9) + 2.33802056631403e-8;
a1 = -8.67767863590276e-10*pow(fs,2) + 4.67604113262805e-8;
a2 = fs*(4.33883931795138e-10*fs - 6.90412007909908e-9) + 2.33802056631403e-8;
};
ds1_drive = fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
fs = float(ma.SR);
b0 = drive*(-3.18093350083904e-10*drive*pow(fs,2) + fs*(3.0314296262996e-10*fs + 1.59012835323858e-5)) + fs*(1.49503874539434e-11*fs + 7.50903344506575e-7) + 0.000169198590470161;
b1 = drive*(6.36186700167807e-10*drive*pow(fs,2) - 6.0628592525992e-10*pow(fs,2)) - 2.99007749078869e-11*pow(fs,2) + 0.000338397180940323;
b2 = drive*(-3.18093350083904e-10*drive*pow(fs,2) + fs*(3.0314296262996e-10*fs - 1.59012835323858e-5)) + fs*(1.49503874539434e-11*fs - 7.50903344506575e-7) + 0.000169198590470161;
a0 = drive*(-3.18093350083904e-10*drive*pow(fs,2) + fs*(3.0314296262996e-10*fs - 3.38397180940322e-9)) + fs*(1.49503874539434e-11*fs + 1.66555708487018e-5) + 0.000169198590470162;
a1 = drive*(6.36186700167807e-10*drive*pow(fs,2) - 6.0628592525992e-10*pow(fs,2)) - 2.99007749078869e-11*pow(fs,2) + 0.000338397180940324;
a2 = drive*(-3.18093350083904e-10*drive*pow(fs,2) + fs*(3.0314296262996e-10*fs + 3.38397180940322e-9)) + fs*(1.49503874539434e-11*fs - 1.66555708487018e-5) + 0.000169198590470162;
};
s = 0.993;
drive = hslider("drive[name:Drive]", 0.5, 0, 1, 0.01) : *(0.314): si.smooth(s);
out_filter = fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
fs = float(ma.SR);
b0 = fs*(1.53935536722449e-12*fs - 3.51811088946986e-5);
b1 = -3.07871073444898e-12*pow(fs,2);
b2 = fs*(1.53935536722449e-12*fs + 3.51811088946986e-5);
a0 = fs*(1.00951608665768e-11*fs + 2.02317674756392e-5) + 0.00561591053272674;
a1 = -2.01903217331536e-11*pow(fs,2) + 0.0112318210654535;
a2 = fs*(1.00951608665768e-11*fs - 2.02317674756392e-5) + 0.00561591053272674;
};
process = ds1_in : ds1_boost : ds1_drive : sclip : ds1_ampin : X1 : X3 : clip : ds1_ampout : *(cgain) : ds1_tone : ds1_out : *(gain) with {
R1 = 4700 + 100000 * (1.0 - drive);
R2 = 100000 + 100000 * drive;
C = 0.047 * 1e-6;
a1 = (R1 + R2) * C * 2 * ma.SR;
a2 = R1 * C * 2 * ma.SR;
B0 = (1 + a1) / (1 + a2);
B1 = (1 - a1) / (1 + a2);
A1 = (1 - a2) / (1 + a2);
X2 = fi.tf1(B0, B1, A1);
s = 0.993;
symclip = ffunction(float asymclip3(float), "clipping.h", "");
//sclip = symclip(_);
sclip(x) = atan(x)/ma.PI;
opamp = ffunction(float opamp(float), "clipping.h", "");
X1 = _ <: _ - opamp(_) :> _ ;
X3 = _ <: _ - opamp(X2-_) :> _ ;
asymclip = ffunction(float asymhardclip2(float), "clipping.h", "");
clip = asymclip(_);
cgain = 3.0 : ba.db2linear ;
gain = hslider("Level[name:Level]", 3, -20, 12, 0.1) : ba.db2linear : si.smooth(s);
};
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/plugins/bossds1.dsp | faust | generated automatically
DO NOT MODIFY!
sclip = symclip(_); | declare id "bossds1";
declare name "DS1";
declare category "Distortion";
declare shortname "DS1";
declare description "DS1 simulation";
declare samplerate "96000";
import("stdfaust.lib");
ds1_in = fi.iir((b0/a0,b1/a0),(a1/a0)) with {
fs = float(ma.SR);
b0 = 2.06179485600366e-5*fs;
b1 = -2.06179485600366e-5*fs;
a0 = 2.08223456923865e-5*fs + 0.000527406765446517;
a1 = -2.08223456923865e-5*fs + 0.000527406765446517;
};
ds1_boost= fi.iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0)) with {
fs = float(ma.SR);
b0 = -5.51041967277497e-9*pow(fs,2);
b1 = 5.51041967277497e-9*pow(fs,2);
b2 = 5.51041967277497e-9*pow(fs,2);
b3 = -5.51041967277497e-9*pow(fs,2);
a0 = fs*(3.53982651634833e-10*fs + 2.38582349500046e-7) + 1.94656546234155e-5;
a1 = fs*(-3.53982651634833e-10*fs + 2.38582349500046e-7) + 5.83969638702466e-5;
a2 = fs*(-3.53982651634833e-10*fs - 2.38582349500046e-7) + 5.83969638702466e-5;
a3 = fs*(3.53982651634833e-10*fs - 2.38582349500046e-7) + 1.94656546234155e-5;
};
ds1_ampin = fi.iir((b0/a0,b1/a0),(a1/a0)) with {
fs = float(ma.SR);
b0 = 1.89077966855745e-5*fs;
b1 = -1.89077966855745e-5*fs;
a0 = 2.07985763541319e-5*fs + 0.00166833500166833;
a1 = -2.07985763541319e-5*fs + 0.00166833500166833;
};
ds1_ampout = fi.iir((b0/a0,b1/a0),(a1/a0)) with {
fs = float(ma.SR);
b0 = 0.319154715341156;
b1 = 0.319154715341156;
a0 = 1.40428074750109e-5*fs + 0.325945241199478;
a1 = -1.40428074750109e-5*fs + 0.325945241199478;
};
ds1_tone = fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
s = 0.993;
fs = float(ma.SR);
Tone = vslider("Tone[name:Tone]", 0.7, 0, 1, 0.01) : si.smooth(s);
b0 = Tone*(fs*(-2.18842400636233e-10*fs + 5.20602596669238e-8) + 0.000537812599864916) + (fs*(2.18842400636233e-10*fs + 2.33324618325395e-7) + 0.000182856283954071);
b1 = Tone*(4.37684801272465e-10*pow(fs,2) + 0.00107562519972983) + (-4.37684801272465e-10*pow(fs,2) + 0.000365712567908143);
b2 = Tone*(fs*(-2.18842400636233e-10*fs - 5.20602596669238e-8) + 0.000537812599864916) + (fs*(2.18842400636233e-10*fs - 2.33324618325395e-7) + 0.000182856283954071);
a0 = Tone*(Tone*(fs*(-2.89644353783249e-10*fs - 9.44398925362792e-7) - 0.000537812599864916) + fs*(2.65571689713263e-10*fs + 7.50424979344313e-7) + 0.000537812599864916) + fs*(3.3778968192322e-10*fs + 1.55559824875468e-6) + 0.00114855258827151;
a1 = Tone*(Tone*(5.79288707566498e-10*pow(fs,2) - 0.00107562519972983) - 5.31143379426527e-10*pow(fs,2) + 0.00107562519972983) - 6.7557936384644e-10*pow(fs,2) + 0.00229710517654303;
a2 = Tone*(Tone*(fs*(-2.89644353783249e-10*fs + 9.44398925362792e-7) - 0.000537812599864916) + fs*(2.65571689713263e-10*fs - 7.50424979344313e-7) + 0.000537812599864916) + fs*(3.3778968192322e-10*fs - 1.55559824875468e-6) + 0.00114855258827151;
};
ds1_out = fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
fs = float(ma.SR);
b0 = fs*(4.26031359768866e-10*fs + 2.06011295826338e-10);
b1 = -8.52062719537733e-10*pow(fs,2);
b2 = fs*(4.26031359768866e-10*fs - 2.06011295826338e-10);
a0 = fs*(4.33883931795138e-10*fs + 6.90412007909908e-9) + 2.33802056631403e-8;
a1 = -8.67767863590276e-10*pow(fs,2) + 4.67604113262805e-8;
a2 = fs*(4.33883931795138e-10*fs - 6.90412007909908e-9) + 2.33802056631403e-8;
};
ds1_drive = fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
fs = float(ma.SR);
b0 = drive*(-3.18093350083904e-10*drive*pow(fs,2) + fs*(3.0314296262996e-10*fs + 1.59012835323858e-5)) + fs*(1.49503874539434e-11*fs + 7.50903344506575e-7) + 0.000169198590470161;
b1 = drive*(6.36186700167807e-10*drive*pow(fs,2) - 6.0628592525992e-10*pow(fs,2)) - 2.99007749078869e-11*pow(fs,2) + 0.000338397180940323;
b2 = drive*(-3.18093350083904e-10*drive*pow(fs,2) + fs*(3.0314296262996e-10*fs - 1.59012835323858e-5)) + fs*(1.49503874539434e-11*fs - 7.50903344506575e-7) + 0.000169198590470161;
a0 = drive*(-3.18093350083904e-10*drive*pow(fs,2) + fs*(3.0314296262996e-10*fs - 3.38397180940322e-9)) + fs*(1.49503874539434e-11*fs + 1.66555708487018e-5) + 0.000169198590470162;
a1 = drive*(6.36186700167807e-10*drive*pow(fs,2) - 6.0628592525992e-10*pow(fs,2)) - 2.99007749078869e-11*pow(fs,2) + 0.000338397180940324;
a2 = drive*(-3.18093350083904e-10*drive*pow(fs,2) + fs*(3.0314296262996e-10*fs + 3.38397180940322e-9)) + fs*(1.49503874539434e-11*fs - 1.66555708487018e-5) + 0.000169198590470162;
};
s = 0.993;
drive = hslider("drive[name:Drive]", 0.5, 0, 1, 0.01) : *(0.314): si.smooth(s);
out_filter = fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
fs = float(ma.SR);
b0 = fs*(1.53935536722449e-12*fs - 3.51811088946986e-5);
b1 = -3.07871073444898e-12*pow(fs,2);
b2 = fs*(1.53935536722449e-12*fs + 3.51811088946986e-5);
a0 = fs*(1.00951608665768e-11*fs + 2.02317674756392e-5) + 0.00561591053272674;
a1 = -2.01903217331536e-11*pow(fs,2) + 0.0112318210654535;
a2 = fs*(1.00951608665768e-11*fs - 2.02317674756392e-5) + 0.00561591053272674;
};
process = ds1_in : ds1_boost : ds1_drive : sclip : ds1_ampin : X1 : X3 : clip : ds1_ampout : *(cgain) : ds1_tone : ds1_out : *(gain) with {
R1 = 4700 + 100000 * (1.0 - drive);
R2 = 100000 + 100000 * drive;
C = 0.047 * 1e-6;
a1 = (R1 + R2) * C * 2 * ma.SR;
a2 = R1 * C * 2 * ma.SR;
B0 = (1 + a1) / (1 + a2);
B1 = (1 - a1) / (1 + a2);
A1 = (1 - a2) / (1 + a2);
X2 = fi.tf1(B0, B1, A1);
s = 0.993;
symclip = ffunction(float asymclip3(float), "clipping.h", "");
sclip(x) = atan(x)/ma.PI;
opamp = ffunction(float opamp(float), "clipping.h", "");
X1 = _ <: _ - opamp(_) :> _ ;
X3 = _ <: _ - opamp(X2-_) :> _ ;
asymclip = ffunction(float asymhardclip2(float), "clipping.h", "");
clip = asymclip(_);
cgain = 3.0 : ba.db2linear ;
gain = hslider("Level[name:Level]", 3, -20, 12, 0.1) : ba.db2linear : si.smooth(s);
};
|
e01f5967c0684d2eafade1ee82c5acce61fa3cb20feb3eede9e34298d6627f21 | brummer10/guitarix | tapesim.dsp | // Tape compression/saturation and frequency response
// Add wow & flutter and we have tape emulation - needsa to modulate the frequency
// which means basically vibrato
// So far so good - tubes may not be needed
// Need to work out better levels of saturation as current range too distorted
// wow at 1% is 0.15 inchs per second > 10ms * ma.SR/1000
// Which would indicate we need a de.delay time of 10ms to allow +-10ms modulation
// and thus delaytime = (10 + modulation ) * ma.SR/1000;
import("stdfaust.lib");
import("guitarix.lib");
import("redeye.lib");
// ((( lfo + 1 ) *5)+5) from vibrato
//wow = sine( freq )* depth with{
wow = de.sdelay(N, interp, delaytime) with{
freq = hgroup( "Wow Control",vslider("wowfreq[style:knob]",0.0,0.0,4.0,0.1) );
depth = hgroup( "Wow Control",vslider("wowdepth[style:knob]",0.0,0.0,0.03,0.001) );
sine(freq) = (os.oscs(freq) + 1) / 2 : max(0); // max(0) because of numerical inaccuracy what is range of this
modulation = (( sine( freq ) + 1 ) * 5)* depth ; // This should give number between 0-10 ms ??
delaytime = modulation * ma.SR/1000;
N = int(2^12);
interp = 100.0 *ma.SR/1000.0;
};
flutter = de.sdelay(N, interp, modulation*ma.SR/1000.0) with{
freq = hgroup( "Flutter",vslider("flutterfreq[style:knob]",4,4,60,0.1) );
depth = hgroup( "Flutter",vslider("flutterdepth[style:knob]",0.0,0.0,0.03,0.001) );
sine(freq) = (os.oscs(freq) + 1) / 2 : max(0); // max(0) because of numerical inaccuracy
modulation = ((( sine( freq ) + 1 ) *5))* depth ;
N = int(2^12);
interp = 100.0 *ma.SR/1000.0;
};
// Each tape recorde rhas its own frequency response
// Revox A77
// Hump in bass around 50Hz around 2-3dB
// Gentle slope from 100Hz down to 10K about -3dB
// fairly steep rolloff after that
// Can it be done with fi.iir or fi.fir?
// Try to boost highs 1st then cut after to get frequency dependent compressor
// These filters very subtly boost and cut highs
// So should be that the highs are more compressed - which seems to sound better
// may be look into better filter curve
tapesaturate = filter1:sigmoid:filter2:fi.lowpass( 3, 15000):fi.highpass(1,25) with {
//tapesaturate = sigmoid:fi.lowpass( 3, 15000):fi.highpass(1,25) with {
sigmoid(x) = 2.0/( 1.0 + exp(-5.0*x)) - 1.0;
filter1 = fi.iir((1.0, 0.0, 0.0),
(0.3 , 0.0 ,0.0)); // Boost higher frequencies
filter2 = fi.iir((1.0, 0.0, 0.0),
(-0.3 , 0.0 ,0.0)); // Cut higher frequencies
};
// We can incorporate a speed switch ( 7.5 ips / 15 ips )
// This would then select an alternative response curve
// 7.5 ips Revox has no bass hump and cuts treble off even more sharply
// In theory the frequency of no.noise would also double
speed = checkbox("speed");
taperesponse = _<:select2( tapetype, taperesponse1, taperesponse2 ):tapehiss with{
// This is loosely based on Revox B77
tapetype = vslider("tapetype[style:knob]", 0, 0, 1,1);
taperesponse1 = select2( speed ,taperesponse1b,taperesponse1a);
// Taperesponses
// Revoc B77
// 7.5ips
taperesponse1a = fi.highpass(1,25):fi.lowpass( 1, 10000 ):fi.lowpass( 2, 12500 );
// 15 ips
taperesponse1b = fi.highpass(1,25):fi.peak_eq_cq(3, 50, 0.4 ):fi.lowpass( 1, 12500 ):fi.lowpass( 2, 15000 ) ;
// Loosely based on Tascam A3340X
taperesponse2 = select2( speed ,taperesponse2b,taperesponse2a);
// TASCAM Q = 0.4 peak 9dB -- Although the ma.sub fi.lowpass works creates a lot of unwanted high end
//7.5ips
taperesponse2a = fi.highpass(1,25):fi.peak_eq_cq(6,75,0.4):ma.sub~fi.lowpass( 1, 4547 ):fi.lowpass( 4, 10000 );
// 15ips
taperesponse2b = fi.highpass(1,35):fi.peak_eq_cq(6,75,0.4):ma.sub~fi.lowpass( 1, 4547 ):fi.lowpass( 4, 15000 );
// Sort this out so level is -XXdB no.noise floor
tapehiss = _<:_,(no.noise * level:hissfilter):>_ ;
level = vslider("tapehiss[style:knob]", 0.0, 0.0, 1.0, 0.01):*(0.0474):si.smooth( 0.9999) ;
scale = ( ( 1.0-speed) + 1.0 )/2.0 ;
// Might be able to simplify this once I get to grips with IIR and fi.fir....!
// Current value is pretty good approximation of actual tape hiss
hissfilter = _<:(fi.highpass(1,3000):*(0.2)),fi.lowpass( 1, 250 ):>fi.lowpass( 2, 15000*scale );
} ;
// Can I design these as RC/CR filters incorporated into the circuit ?
iecfilter = select2( speed, 4547, 2274 );
iec_in = fi.lowpass( 1, iecfilter );
iec_out = ma.sub~fi.lowpass( 1, iecfilter );
machine = iec_in:tapesaturate:taperesponse:wow:flutter:iec_out;
delaystage = component( "delaystage.dsp").delaystage ;
// This is standard IEC eq maybe wrong way round as I want highs saturated more than lows
// Time constants to Hertz
// Speed Low HF Type
// 15ips None 35us(4547Hz ) IEC
// 3180us(50Hz) 50us(3183Hz) NAB
// 7.5ips None 70us(2274Hz) IEC
// 3180us(50Hz) 50us(3183Hz) NAB
// so the above should change so order is IECIN -> SATURATE -> RESPONSE -> WOW&FLUTTER -> IECOUT
amp = input12au7:BP(machine):output12au7:fi.lowpass( 2, 20000);
freq_split = fi.filterbank(3, (86.0,210.0,1200.0,6531.0));
channel = freq_split: ( amp , amp , amp, amp, amp) :>_;
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/tapesim.dsp | faust | Tape compression/saturation and frequency response
Add wow & flutter and we have tape emulation - needsa to modulate the frequency
which means basically vibrato
So far so good - tubes may not be needed
Need to work out better levels of saturation as current range too distorted
wow at 1% is 0.15 inchs per second > 10ms * ma.SR/1000
Which would indicate we need a de.delay time of 10ms to allow +-10ms modulation
and thus delaytime = (10 + modulation ) * ma.SR/1000;
((( lfo + 1 ) *5)+5) from vibrato
wow = sine( freq )* depth with{
max(0) because of numerical inaccuracy what is range of this
This should give number between 0-10 ms ??
max(0) because of numerical inaccuracy
Each tape recorde rhas its own frequency response
Revox A77
Hump in bass around 50Hz around 2-3dB
Gentle slope from 100Hz down to 10K about -3dB
fairly steep rolloff after that
Can it be done with fi.iir or fi.fir?
Try to boost highs 1st then cut after to get frequency dependent compressor
These filters very subtly boost and cut highs
So should be that the highs are more compressed - which seems to sound better
may be look into better filter curve
tapesaturate = sigmoid:fi.lowpass( 3, 15000):fi.highpass(1,25) with {
Boost higher frequencies
Cut higher frequencies
We can incorporate a speed switch ( 7.5 ips / 15 ips )
This would then select an alternative response curve
7.5 ips Revox has no bass hump and cuts treble off even more sharply
In theory the frequency of no.noise would also double
This is loosely based on Revox B77
Taperesponses
Revoc B77
7.5ips
15 ips
Loosely based on Tascam A3340X
TASCAM Q = 0.4 peak 9dB -- Although the ma.sub fi.lowpass works creates a lot of unwanted high end
7.5ips
15ips
Sort this out so level is -XXdB no.noise floor
Might be able to simplify this once I get to grips with IIR and fi.fir....!
Current value is pretty good approximation of actual tape hiss
Can I design these as RC/CR filters incorporated into the circuit ?
This is standard IEC eq maybe wrong way round as I want highs saturated more than lows
Time constants to Hertz
Speed Low HF Type
15ips None 35us(4547Hz ) IEC
3180us(50Hz) 50us(3183Hz) NAB
7.5ips None 70us(2274Hz) IEC
3180us(50Hz) 50us(3183Hz) NAB
so the above should change so order is IECIN -> SATURATE -> RESPONSE -> WOW&FLUTTER -> IECOUT |
import("stdfaust.lib");
import("guitarix.lib");
import("redeye.lib");
wow = de.sdelay(N, interp, delaytime) with{
freq = hgroup( "Wow Control",vslider("wowfreq[style:knob]",0.0,0.0,4.0,0.1) );
depth = hgroup( "Wow Control",vslider("wowdepth[style:knob]",0.0,0.0,0.03,0.001) );
delaytime = modulation * ma.SR/1000;
N = int(2^12);
interp = 100.0 *ma.SR/1000.0;
};
flutter = de.sdelay(N, interp, modulation*ma.SR/1000.0) with{
freq = hgroup( "Flutter",vslider("flutterfreq[style:knob]",4,4,60,0.1) );
depth = hgroup( "Flutter",vslider("flutterdepth[style:knob]",0.0,0.0,0.03,0.001) );
modulation = ((( sine( freq ) + 1 ) *5))* depth ;
N = int(2^12);
interp = 100.0 *ma.SR/1000.0;
};
tapesaturate = filter1:sigmoid:filter2:fi.lowpass( 3, 15000):fi.highpass(1,25) with {
sigmoid(x) = 2.0/( 1.0 + exp(-5.0*x)) - 1.0;
filter1 = fi.iir((1.0, 0.0, 0.0),
filter2 = fi.iir((1.0, 0.0, 0.0),
};
speed = checkbox("speed");
taperesponse = _<:select2( tapetype, taperesponse1, taperesponse2 ):tapehiss with{
tapetype = vslider("tapetype[style:knob]", 0, 0, 1,1);
taperesponse1 = select2( speed ,taperesponse1b,taperesponse1a);
taperesponse1a = fi.highpass(1,25):fi.lowpass( 1, 10000 ):fi.lowpass( 2, 12500 );
taperesponse1b = fi.highpass(1,25):fi.peak_eq_cq(3, 50, 0.4 ):fi.lowpass( 1, 12500 ):fi.lowpass( 2, 15000 ) ;
taperesponse2 = select2( speed ,taperesponse2b,taperesponse2a);
taperesponse2a = fi.highpass(1,25):fi.peak_eq_cq(6,75,0.4):ma.sub~fi.lowpass( 1, 4547 ):fi.lowpass( 4, 10000 );
taperesponse2b = fi.highpass(1,35):fi.peak_eq_cq(6,75,0.4):ma.sub~fi.lowpass( 1, 4547 ):fi.lowpass( 4, 15000 );
tapehiss = _<:_,(no.noise * level:hissfilter):>_ ;
level = vslider("tapehiss[style:knob]", 0.0, 0.0, 1.0, 0.01):*(0.0474):si.smooth( 0.9999) ;
scale = ( ( 1.0-speed) + 1.0 )/2.0 ;
hissfilter = _<:(fi.highpass(1,3000):*(0.2)),fi.lowpass( 1, 250 ):>fi.lowpass( 2, 15000*scale );
} ;
iecfilter = select2( speed, 4547, 2274 );
iec_in = fi.lowpass( 1, iecfilter );
iec_out = ma.sub~fi.lowpass( 1, iecfilter );
machine = iec_in:tapesaturate:taperesponse:wow:flutter:iec_out;
delaystage = component( "delaystage.dsp").delaystage ;
amp = input12au7:BP(machine):output12au7:fi.lowpass( 2, 20000);
freq_split = fi.filterbank(3, (86.0,210.0,1200.0,6531.0));
channel = freq_split: ( amp , amp , amp, amp, amp) :>_;
|
cfa84ed78c525c662e28eca90d5cd1d585e529dbf6fdf72201b121573e1ba782 | brummer10/guitarix | fuzzface.dsp | // generated automatically
// DO NOT MODIFY!
declare id "fuzzface";
declare name "Fuzz Face";
declare category "Fuzz";
declare description "J Hendrix Fuzz Face simulation";
declare insert_p "clipper";
import("stdfaust.lib");
//import("trany.lib");
process = pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0,b5/a0),(a1/a0,a2/a0,a3/a0,a4/a0,a5/a0)) with {
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
// clip = tranystage(TB_7199P_68k,86.0,2700.0,3.571981) : tranystage(TB_7199P_68k,86.0,2700.0,3.571981) ;
Level = vslider("Level[name:Level]", 0.5, 0, 1, 0.01) : Inverted(1) : si.smooth(s);
Fuzz = vslider("Fuzz[name:Fuzz]", 0.5, 0, 1, 0.01) : Inverted(1) : si.smooth(s);
b0 = Fuzz*(Fuzz*(Level*pow(fs,3)*(4.76991513499346e-20*fs + 5.38351707988916e-15) + pow(fs,3)*(-4.76991513499346e-20*fs - 5.38351707988916e-15)) + Level*pow(fs,3)*(-4.76991513499346e-20*fs + 5.00346713698171e-13) + pow(fs,3)*(4.76991513499346e-20*fs - 5.00346713698171e-13)) + Level*pow(fs,2)*(-5.05730339185222e-13*fs - 1.16162215422261e-12) + pow(fs,2)*(5.05730339185222e-13*fs + 1.16162215422261e-12);
b1 = Fuzz*(Fuzz*(Level*pow(fs,3)*(-1.43097454049804e-19*fs - 5.38351707988916e-15) + pow(fs,3)*(1.43097454049804e-19*fs + 5.38351707988916e-15)) + Level*pow(fs,3)*(1.43097454049804e-19*fs - 5.00346713698171e-13) + pow(fs,3)*(-1.43097454049804e-19*fs + 5.00346713698171e-13)) + Level*pow(fs,2)*(5.05730339185222e-13*fs - 1.16162215422261e-12) + pow(fs,2)*(-5.05730339185222e-13*fs + 1.16162215422261e-12);
b2 = Fuzz*(Fuzz*(Level*pow(fs,3)*(9.53983026998693e-20*fs - 1.07670341597783e-14) + pow(fs,3)*(-9.53983026998693e-20*fs + 1.07670341597783e-14)) + Level*pow(fs,3)*(-9.53983026998693e-20*fs - 1.00069342739634e-12) + pow(fs,3)*(9.53983026998693e-20*fs + 1.00069342739634e-12)) + Level*pow(fs,2)*(1.01146067837044e-12*fs + 2.32324430844522e-12) + pow(fs,2)*(-1.01146067837044e-12*fs - 2.32324430844522e-12);
b3 = Fuzz*(Fuzz*(Level*pow(fs,3)*(9.53983026998693e-20*fs + 1.07670341597783e-14) + pow(fs,3)*(-9.53983026998693e-20*fs - 1.07670341597783e-14)) + Level*pow(fs,3)*(-9.53983026998693e-20*fs + 1.00069342739634e-12) + pow(fs,3)*(9.53983026998693e-20*fs - 1.00069342739634e-12)) + Level*pow(fs,2)*(-1.01146067837044e-12*fs + 2.32324430844522e-12) + pow(fs,2)*(1.01146067837044e-12*fs - 2.32324430844522e-12);
b4 = Fuzz*(Fuzz*(Level*pow(fs,3)*(-1.43097454049804e-19*fs + 5.38351707988916e-15) + pow(fs,3)*(1.43097454049804e-19*fs - 5.38351707988916e-15)) + Level*pow(fs,3)*(1.43097454049804e-19*fs + 5.00346713698171e-13) + pow(fs,3)*(-1.43097454049804e-19*fs - 5.00346713698171e-13)) + Level*pow(fs,2)*(-5.05730339185222e-13*fs - 1.16162215422261e-12) + pow(fs,2)*(5.05730339185222e-13*fs + 1.16162215422261e-12);
b5 = Fuzz*(Fuzz*(Level*pow(fs,3)*(4.76991513499346e-20*fs - 5.38351707988916e-15) + pow(fs,3)*(-4.76991513499346e-20*fs + 5.38351707988916e-15)) + Level*pow(fs,3)*(-4.76991513499346e-20*fs - 5.00346713698171e-13) + pow(fs,3)*(4.76991513499346e-20*fs + 5.00346713698171e-13)) + Level*pow(fs,2)*(5.05730339185222e-13*fs - 1.16162215422261e-12) + pow(fs,2)*(-5.05730339185222e-13*fs + 1.16162215422261e-12);
a0 = Fuzz*(Fuzz*fs*(fs*(fs*(fs*(-3.73292075290073e-29*fs - 1.05633134620746e-20) - 3.11506369039915e-14) - 2.30719916990074e-11) - 1.07493164710329e-9) + fs*(fs*(fs*(fs*(3.73292075290073e-29*fs + 1.01643277726662e-20) + 2.91602352831988e-14) + 2.29636966370042e-11) + 1.07449105454163e-9)) + fs*(fs*(fs*(3.98985774247549e-22*fs + 1.99042653510896e-15) + 1.83615604104971e-13) + 5.31230624730483e-11) + 2.44402781742033e-9;
a1 = Fuzz*(Fuzz*fs*(fs*(fs*(fs*(1.86646037645036e-28*fs + 3.16899403862238e-20) + 3.11506369039915e-14) - 2.30719916990074e-11) - 3.22479494130986e-9) + fs*(fs*(fs*(fs*(-1.86646037645036e-28*fs - 3.04929833179984e-20) - 2.91602352831988e-14) + 2.29636966370042e-11) + 3.22347316362488e-9)) + fs*(fs*(fs*(-1.19695732274265e-21*fs - 1.99042653510896e-15) + 1.83615604104971e-13) + 1.59369187419145e-10) + 1.22201390871017e-8;
a2 = Fuzz*(Fuzz*fs*(fs*(fs*(fs*(-3.73292075290073e-28*fs - 2.11266269241492e-20) + 6.2301273807983e-14) + 4.61439833980148e-11) - 2.14986329420657e-9) + fs*(fs*(fs*(fs*(3.73292075290073e-28*fs + 2.03286555453323e-20) - 5.83204705663976e-14) - 4.59273932740084e-11) + 2.14898210908325e-9)) + fs*(fs*(fs*(7.97971548495099e-22*fs - 3.98085307021793e-15) - 3.67231208209942e-13) + 1.06246124946097e-10) + 2.44402781742033e-8;
a3 = Fuzz*(Fuzz*fs*(fs*(fs*(fs*(3.73292075290073e-28*fs - 2.11266269241492e-20) - 6.2301273807983e-14) + 4.61439833980148e-11) + 2.14986329420657e-9) + fs*(fs*(fs*(fs*(-3.73292075290073e-28*fs + 2.03286555453323e-20) + 5.83204705663976e-14) - 4.59273932740084e-11) - 2.14898210908325e-9)) + fs*(fs*(fs*(7.97971548495099e-22*fs + 3.98085307021793e-15) - 3.67231208209942e-13) - 1.06246124946097e-10) + 2.44402781742033e-8;
a4 = Fuzz*(Fuzz*fs*(fs*(fs*(fs*(-1.86646037645036e-28*fs + 3.16899403862238e-20) - 3.11506369039915e-14) - 2.30719916990074e-11) + 3.22479494130986e-9) + fs*(fs*(fs*(fs*(1.86646037645036e-28*fs - 3.04929833179984e-20) + 2.91602352831988e-14) + 2.29636966370042e-11) - 3.22347316362488e-9)) + fs*(fs*(fs*(-1.19695732274265e-21*fs + 1.99042653510896e-15) + 1.83615604104971e-13) - 1.59369187419145e-10) + 1.22201390871017e-8;
a5 = Fuzz*(Fuzz*fs*(fs*(fs*(fs*(3.73292075290073e-29*fs - 1.05633134620746e-20) + 3.11506369039915e-14) - 2.30719916990074e-11) + 1.07493164710329e-9) + fs*(fs*(fs*(fs*(-3.73292075290073e-29*fs + 1.01643277726662e-20) - 2.91602352831988e-14) + 2.29636966370042e-11) - 1.07449105454163e-9)) + fs*(fs*(fs*(3.98985774247549e-22*fs - 1.99042653510896e-15) + 1.83615604104971e-13) - 5.31230624730483e-11) + 2.44402781742033e-9;
};
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/fuzzface.dsp | faust | generated automatically
DO NOT MODIFY!
import("trany.lib");
clip = tranystage(TB_7199P_68k,86.0,2700.0,3.571981) : tranystage(TB_7199P_68k,86.0,2700.0,3.571981) ; | declare id "fuzzface";
declare name "Fuzz Face";
declare category "Fuzz";
declare description "J Hendrix Fuzz Face simulation";
declare insert_p "clipper";
import("stdfaust.lib");
process = pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0,b5/a0),(a1/a0,a2/a0,a3/a0,a4/a0,a5/a0)) with {
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
Level = vslider("Level[name:Level]", 0.5, 0, 1, 0.01) : Inverted(1) : si.smooth(s);
Fuzz = vslider("Fuzz[name:Fuzz]", 0.5, 0, 1, 0.01) : Inverted(1) : si.smooth(s);
b0 = Fuzz*(Fuzz*(Level*pow(fs,3)*(4.76991513499346e-20*fs + 5.38351707988916e-15) + pow(fs,3)*(-4.76991513499346e-20*fs - 5.38351707988916e-15)) + Level*pow(fs,3)*(-4.76991513499346e-20*fs + 5.00346713698171e-13) + pow(fs,3)*(4.76991513499346e-20*fs - 5.00346713698171e-13)) + Level*pow(fs,2)*(-5.05730339185222e-13*fs - 1.16162215422261e-12) + pow(fs,2)*(5.05730339185222e-13*fs + 1.16162215422261e-12);
b1 = Fuzz*(Fuzz*(Level*pow(fs,3)*(-1.43097454049804e-19*fs - 5.38351707988916e-15) + pow(fs,3)*(1.43097454049804e-19*fs + 5.38351707988916e-15)) + Level*pow(fs,3)*(1.43097454049804e-19*fs - 5.00346713698171e-13) + pow(fs,3)*(-1.43097454049804e-19*fs + 5.00346713698171e-13)) + Level*pow(fs,2)*(5.05730339185222e-13*fs - 1.16162215422261e-12) + pow(fs,2)*(-5.05730339185222e-13*fs + 1.16162215422261e-12);
b2 = Fuzz*(Fuzz*(Level*pow(fs,3)*(9.53983026998693e-20*fs - 1.07670341597783e-14) + pow(fs,3)*(-9.53983026998693e-20*fs + 1.07670341597783e-14)) + Level*pow(fs,3)*(-9.53983026998693e-20*fs - 1.00069342739634e-12) + pow(fs,3)*(9.53983026998693e-20*fs + 1.00069342739634e-12)) + Level*pow(fs,2)*(1.01146067837044e-12*fs + 2.32324430844522e-12) + pow(fs,2)*(-1.01146067837044e-12*fs - 2.32324430844522e-12);
b3 = Fuzz*(Fuzz*(Level*pow(fs,3)*(9.53983026998693e-20*fs + 1.07670341597783e-14) + pow(fs,3)*(-9.53983026998693e-20*fs - 1.07670341597783e-14)) + Level*pow(fs,3)*(-9.53983026998693e-20*fs + 1.00069342739634e-12) + pow(fs,3)*(9.53983026998693e-20*fs - 1.00069342739634e-12)) + Level*pow(fs,2)*(-1.01146067837044e-12*fs + 2.32324430844522e-12) + pow(fs,2)*(1.01146067837044e-12*fs - 2.32324430844522e-12);
b4 = Fuzz*(Fuzz*(Level*pow(fs,3)*(-1.43097454049804e-19*fs + 5.38351707988916e-15) + pow(fs,3)*(1.43097454049804e-19*fs - 5.38351707988916e-15)) + Level*pow(fs,3)*(1.43097454049804e-19*fs + 5.00346713698171e-13) + pow(fs,3)*(-1.43097454049804e-19*fs - 5.00346713698171e-13)) + Level*pow(fs,2)*(-5.05730339185222e-13*fs - 1.16162215422261e-12) + pow(fs,2)*(5.05730339185222e-13*fs + 1.16162215422261e-12);
b5 = Fuzz*(Fuzz*(Level*pow(fs,3)*(4.76991513499346e-20*fs - 5.38351707988916e-15) + pow(fs,3)*(-4.76991513499346e-20*fs + 5.38351707988916e-15)) + Level*pow(fs,3)*(-4.76991513499346e-20*fs - 5.00346713698171e-13) + pow(fs,3)*(4.76991513499346e-20*fs + 5.00346713698171e-13)) + Level*pow(fs,2)*(5.05730339185222e-13*fs - 1.16162215422261e-12) + pow(fs,2)*(-5.05730339185222e-13*fs + 1.16162215422261e-12);
a0 = Fuzz*(Fuzz*fs*(fs*(fs*(fs*(-3.73292075290073e-29*fs - 1.05633134620746e-20) - 3.11506369039915e-14) - 2.30719916990074e-11) - 1.07493164710329e-9) + fs*(fs*(fs*(fs*(3.73292075290073e-29*fs + 1.01643277726662e-20) + 2.91602352831988e-14) + 2.29636966370042e-11) + 1.07449105454163e-9)) + fs*(fs*(fs*(3.98985774247549e-22*fs + 1.99042653510896e-15) + 1.83615604104971e-13) + 5.31230624730483e-11) + 2.44402781742033e-9;
a1 = Fuzz*(Fuzz*fs*(fs*(fs*(fs*(1.86646037645036e-28*fs + 3.16899403862238e-20) + 3.11506369039915e-14) - 2.30719916990074e-11) - 3.22479494130986e-9) + fs*(fs*(fs*(fs*(-1.86646037645036e-28*fs - 3.04929833179984e-20) - 2.91602352831988e-14) + 2.29636966370042e-11) + 3.22347316362488e-9)) + fs*(fs*(fs*(-1.19695732274265e-21*fs - 1.99042653510896e-15) + 1.83615604104971e-13) + 1.59369187419145e-10) + 1.22201390871017e-8;
a2 = Fuzz*(Fuzz*fs*(fs*(fs*(fs*(-3.73292075290073e-28*fs - 2.11266269241492e-20) + 6.2301273807983e-14) + 4.61439833980148e-11) - 2.14986329420657e-9) + fs*(fs*(fs*(fs*(3.73292075290073e-28*fs + 2.03286555453323e-20) - 5.83204705663976e-14) - 4.59273932740084e-11) + 2.14898210908325e-9)) + fs*(fs*(fs*(7.97971548495099e-22*fs - 3.98085307021793e-15) - 3.67231208209942e-13) + 1.06246124946097e-10) + 2.44402781742033e-8;
a3 = Fuzz*(Fuzz*fs*(fs*(fs*(fs*(3.73292075290073e-28*fs - 2.11266269241492e-20) - 6.2301273807983e-14) + 4.61439833980148e-11) + 2.14986329420657e-9) + fs*(fs*(fs*(fs*(-3.73292075290073e-28*fs + 2.03286555453323e-20) + 5.83204705663976e-14) - 4.59273932740084e-11) - 2.14898210908325e-9)) + fs*(fs*(fs*(7.97971548495099e-22*fs + 3.98085307021793e-15) - 3.67231208209942e-13) - 1.06246124946097e-10) + 2.44402781742033e-8;
a4 = Fuzz*(Fuzz*fs*(fs*(fs*(fs*(-1.86646037645036e-28*fs + 3.16899403862238e-20) - 3.11506369039915e-14) - 2.30719916990074e-11) + 3.22479494130986e-9) + fs*(fs*(fs*(fs*(1.86646037645036e-28*fs - 3.04929833179984e-20) + 2.91602352831988e-14) + 2.29636966370042e-11) - 3.22347316362488e-9)) + fs*(fs*(fs*(-1.19695732274265e-21*fs + 1.99042653510896e-15) + 1.83615604104971e-13) - 1.59369187419145e-10) + 1.22201390871017e-8;
a5 = Fuzz*(Fuzz*fs*(fs*(fs*(fs*(3.73292075290073e-29*fs - 1.05633134620746e-20) + 3.11506369039915e-14) - 2.30719916990074e-11) + 1.07493164710329e-9) + fs*(fs*(fs*(fs*(-3.73292075290073e-29*fs + 1.01643277726662e-20) - 2.91602352831988e-14) + 2.29636966370042e-11) - 1.07449105454163e-9)) + fs*(fs*(fs*(3.98985774247549e-22*fs - 1.99042653510896e-15) + 1.83615604104971e-13) - 5.31230624730483e-11) + 2.44402781742033e-9;
};
|
a561a77c58c809968c3243a122ca67380050c1c7399568da5f643f73a60c5bb4 | brummer10/guitarix | fuzzface.dsp | // generated automatically
// DO NOT MODIFY!
declare id "fuzzface";
declare name "Fuzz Face";
declare category "Distortion";
declare description "J Hendrix Fuzz Face simulation";
import("stdfaust.lib");
import("trany.lib");
process = pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0,b5/a0),(a1/a0,a2/a0,a3/a0,a4/a0,a5/a0)) : clip with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
clip = tranystage(TB_7199P_68k,86.0,2700.0,3.571981) : tranystage(TB_7199P_68k,86.0,2700.0,3.571981) : tranystage(TB_7199P_68k,86.0,2700.0,3.571981) ;
//clip(x) = 0.4 * (min(0.7514,max(-0.4514,x)));
Level = 1.0 - vslider("Level[name:Level]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
Fuzz = 1.0 - vslider("Fuzz[name:Fuzz]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
b0 = Fuzz*(Fuzz*(Level*pow(fs,3)*(4.76991513499346e-20*fs + 5.38351707988916e-15) + pow(fs,3)*(-4.76991513499346e-20*fs - 5.38351707988916e-15)) + Level*pow(fs,3)*(-4.76991513499346e-20*fs + 5.00346713698171e-13) + pow(fs,3)*(4.76991513499346e-20*fs - 5.00346713698171e-13)) + Level*pow(fs,2)*(-5.05730339185222e-13*fs - 1.16162215422261e-12) + pow(fs,2)*(5.05730339185222e-13*fs + 1.16162215422261e-12);
b1 = Fuzz*(Fuzz*(Level*pow(fs,3)*(-1.43097454049804e-19*fs - 5.38351707988916e-15) + pow(fs,3)*(1.43097454049804e-19*fs + 5.38351707988916e-15)) + Level*pow(fs,3)*(1.43097454049804e-19*fs - 5.00346713698171e-13) + pow(fs,3)*(-1.43097454049804e-19*fs + 5.00346713698171e-13)) + Level*pow(fs,2)*(5.05730339185222e-13*fs - 1.16162215422261e-12) + pow(fs,2)*(-5.05730339185222e-13*fs + 1.16162215422261e-12);
b2 = Fuzz*(Fuzz*(Level*pow(fs,3)*(9.53983026998693e-20*fs - 1.07670341597783e-14) + pow(fs,3)*(-9.53983026998693e-20*fs + 1.07670341597783e-14)) + Level*pow(fs,3)*(-9.53983026998693e-20*fs - 1.00069342739634e-12) + pow(fs,3)*(9.53983026998693e-20*fs + 1.00069342739634e-12)) + Level*pow(fs,2)*(1.01146067837044e-12*fs + 2.32324430844522e-12) + pow(fs,2)*(-1.01146067837044e-12*fs - 2.32324430844522e-12);
b3 = Fuzz*(Fuzz*(Level*pow(fs,3)*(9.53983026998693e-20*fs + 1.07670341597783e-14) + pow(fs,3)*(-9.53983026998693e-20*fs - 1.07670341597783e-14)) + Level*pow(fs,3)*(-9.53983026998693e-20*fs + 1.00069342739634e-12) + pow(fs,3)*(9.53983026998693e-20*fs - 1.00069342739634e-12)) + Level*pow(fs,2)*(-1.01146067837044e-12*fs + 2.32324430844522e-12) + pow(fs,2)*(1.01146067837044e-12*fs - 2.32324430844522e-12);
b4 = Fuzz*(Fuzz*(Level*pow(fs,3)*(-1.43097454049804e-19*fs + 5.38351707988916e-15) + pow(fs,3)*(1.43097454049804e-19*fs - 5.38351707988916e-15)) + Level*pow(fs,3)*(1.43097454049804e-19*fs + 5.00346713698171e-13) + pow(fs,3)*(-1.43097454049804e-19*fs - 5.00346713698171e-13)) + Level*pow(fs,2)*(-5.05730339185222e-13*fs - 1.16162215422261e-12) + pow(fs,2)*(5.05730339185222e-13*fs + 1.16162215422261e-12);
b5 = Fuzz*(Fuzz*(Level*pow(fs,3)*(4.76991513499346e-20*fs - 5.38351707988916e-15) + pow(fs,3)*(-4.76991513499346e-20*fs + 5.38351707988916e-15)) + Level*pow(fs,3)*(-4.76991513499346e-20*fs - 5.00346713698171e-13) + pow(fs,3)*(4.76991513499346e-20*fs + 5.00346713698171e-13)) + Level*pow(fs,2)*(5.05730339185222e-13*fs - 1.16162215422261e-12) + pow(fs,2)*(-5.05730339185222e-13*fs + 1.16162215422261e-12);
a0 = Fuzz*(Fuzz*fs*(fs*(fs*(fs*(-3.73292075290073e-29*fs - 1.05633134620746e-20) - 3.11506369039915e-14) - 2.30719916990074e-11) - 1.07493164710329e-9) + fs*(fs*(fs*(fs*(3.73292075290073e-29*fs + 1.01643277726662e-20) + 2.91602352831988e-14) + 2.29636966370042e-11) + 1.07449105454163e-9)) + fs*(fs*(fs*(3.98985774247549e-22*fs + 1.99042653510896e-15) + 1.83615604104971e-13) + 5.31230624730483e-11) + 2.44402781742033e-9;
a1 = Fuzz*(Fuzz*fs*(fs*(fs*(fs*(1.86646037645036e-28*fs + 3.16899403862238e-20) + 3.11506369039915e-14) - 2.30719916990074e-11) - 3.22479494130986e-9) + fs*(fs*(fs*(fs*(-1.86646037645036e-28*fs - 3.04929833179984e-20) - 2.91602352831988e-14) + 2.29636966370042e-11) + 3.22347316362488e-9)) + fs*(fs*(fs*(-1.19695732274265e-21*fs - 1.99042653510896e-15) + 1.83615604104971e-13) + 1.59369187419145e-10) + 1.22201390871017e-8;
a2 = Fuzz*(Fuzz*fs*(fs*(fs*(fs*(-3.73292075290073e-28*fs - 2.11266269241492e-20) + 6.2301273807983e-14) + 4.61439833980148e-11) - 2.14986329420657e-9) + fs*(fs*(fs*(fs*(3.73292075290073e-28*fs + 2.03286555453323e-20) - 5.83204705663976e-14) - 4.59273932740084e-11) + 2.14898210908325e-9)) + fs*(fs*(fs*(7.97971548495099e-22*fs - 3.98085307021793e-15) - 3.67231208209942e-13) + 1.06246124946097e-10) + 2.44402781742033e-8;
a3 = Fuzz*(Fuzz*fs*(fs*(fs*(fs*(3.73292075290073e-28*fs - 2.11266269241492e-20) - 6.2301273807983e-14) + 4.61439833980148e-11) + 2.14986329420657e-9) + fs*(fs*(fs*(fs*(-3.73292075290073e-28*fs + 2.03286555453323e-20) + 5.83204705663976e-14) - 4.59273932740084e-11) - 2.14898210908325e-9)) + fs*(fs*(fs*(7.97971548495099e-22*fs + 3.98085307021793e-15) - 3.67231208209942e-13) - 1.06246124946097e-10) + 2.44402781742033e-8;
a4 = Fuzz*(Fuzz*fs*(fs*(fs*(fs*(-1.86646037645036e-28*fs + 3.16899403862238e-20) - 3.11506369039915e-14) - 2.30719916990074e-11) + 3.22479494130986e-9) + fs*(fs*(fs*(fs*(1.86646037645036e-28*fs - 3.04929833179984e-20) + 2.91602352831988e-14) + 2.29636966370042e-11) - 3.22347316362488e-9)) + fs*(fs*(fs*(-1.19695732274265e-21*fs + 1.99042653510896e-15) + 1.83615604104971e-13) - 1.59369187419145e-10) + 1.22201390871017e-8;
a5 = Fuzz*(Fuzz*fs*(fs*(fs*(fs*(3.73292075290073e-29*fs - 1.05633134620746e-20) + 3.11506369039915e-14) - 2.30719916990074e-11) + 1.07493164710329e-9) + fs*(fs*(fs*(fs*(-3.73292075290073e-29*fs + 1.01643277726662e-20) - 2.91602352831988e-14) + 2.29636966370042e-11) - 1.07449105454163e-9)) + fs*(fs*(fs*(3.98985774247549e-22*fs - 1.99042653510896e-15) + 1.83615604104971e-13) - 5.31230624730483e-11) + 2.44402781742033e-9;
};
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/fuzzface.dsp | faust | generated automatically
DO NOT MODIFY!
clip(x) = 0.4 * (min(0.7514,max(-0.4514,x))); | declare id "fuzzface";
declare name "Fuzz Face";
declare category "Distortion";
declare description "J Hendrix Fuzz Face simulation";
import("stdfaust.lib");
import("trany.lib");
process = pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0,b5/a0),(a1/a0,a2/a0,a3/a0,a4/a0,a5/a0)) : clip with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
clip = tranystage(TB_7199P_68k,86.0,2700.0,3.571981) : tranystage(TB_7199P_68k,86.0,2700.0,3.571981) : tranystage(TB_7199P_68k,86.0,2700.0,3.571981) ;
Level = 1.0 - vslider("Level[name:Level]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
Fuzz = 1.0 - vslider("Fuzz[name:Fuzz]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
b0 = Fuzz*(Fuzz*(Level*pow(fs,3)*(4.76991513499346e-20*fs + 5.38351707988916e-15) + pow(fs,3)*(-4.76991513499346e-20*fs - 5.38351707988916e-15)) + Level*pow(fs,3)*(-4.76991513499346e-20*fs + 5.00346713698171e-13) + pow(fs,3)*(4.76991513499346e-20*fs - 5.00346713698171e-13)) + Level*pow(fs,2)*(-5.05730339185222e-13*fs - 1.16162215422261e-12) + pow(fs,2)*(5.05730339185222e-13*fs + 1.16162215422261e-12);
b1 = Fuzz*(Fuzz*(Level*pow(fs,3)*(-1.43097454049804e-19*fs - 5.38351707988916e-15) + pow(fs,3)*(1.43097454049804e-19*fs + 5.38351707988916e-15)) + Level*pow(fs,3)*(1.43097454049804e-19*fs - 5.00346713698171e-13) + pow(fs,3)*(-1.43097454049804e-19*fs + 5.00346713698171e-13)) + Level*pow(fs,2)*(5.05730339185222e-13*fs - 1.16162215422261e-12) + pow(fs,2)*(-5.05730339185222e-13*fs + 1.16162215422261e-12);
b2 = Fuzz*(Fuzz*(Level*pow(fs,3)*(9.53983026998693e-20*fs - 1.07670341597783e-14) + pow(fs,3)*(-9.53983026998693e-20*fs + 1.07670341597783e-14)) + Level*pow(fs,3)*(-9.53983026998693e-20*fs - 1.00069342739634e-12) + pow(fs,3)*(9.53983026998693e-20*fs + 1.00069342739634e-12)) + Level*pow(fs,2)*(1.01146067837044e-12*fs + 2.32324430844522e-12) + pow(fs,2)*(-1.01146067837044e-12*fs - 2.32324430844522e-12);
b3 = Fuzz*(Fuzz*(Level*pow(fs,3)*(9.53983026998693e-20*fs + 1.07670341597783e-14) + pow(fs,3)*(-9.53983026998693e-20*fs - 1.07670341597783e-14)) + Level*pow(fs,3)*(-9.53983026998693e-20*fs + 1.00069342739634e-12) + pow(fs,3)*(9.53983026998693e-20*fs - 1.00069342739634e-12)) + Level*pow(fs,2)*(-1.01146067837044e-12*fs + 2.32324430844522e-12) + pow(fs,2)*(1.01146067837044e-12*fs - 2.32324430844522e-12);
b4 = Fuzz*(Fuzz*(Level*pow(fs,3)*(-1.43097454049804e-19*fs + 5.38351707988916e-15) + pow(fs,3)*(1.43097454049804e-19*fs - 5.38351707988916e-15)) + Level*pow(fs,3)*(1.43097454049804e-19*fs + 5.00346713698171e-13) + pow(fs,3)*(-1.43097454049804e-19*fs - 5.00346713698171e-13)) + Level*pow(fs,2)*(-5.05730339185222e-13*fs - 1.16162215422261e-12) + pow(fs,2)*(5.05730339185222e-13*fs + 1.16162215422261e-12);
b5 = Fuzz*(Fuzz*(Level*pow(fs,3)*(4.76991513499346e-20*fs - 5.38351707988916e-15) + pow(fs,3)*(-4.76991513499346e-20*fs + 5.38351707988916e-15)) + Level*pow(fs,3)*(-4.76991513499346e-20*fs - 5.00346713698171e-13) + pow(fs,3)*(4.76991513499346e-20*fs + 5.00346713698171e-13)) + Level*pow(fs,2)*(5.05730339185222e-13*fs - 1.16162215422261e-12) + pow(fs,2)*(-5.05730339185222e-13*fs + 1.16162215422261e-12);
a0 = Fuzz*(Fuzz*fs*(fs*(fs*(fs*(-3.73292075290073e-29*fs - 1.05633134620746e-20) - 3.11506369039915e-14) - 2.30719916990074e-11) - 1.07493164710329e-9) + fs*(fs*(fs*(fs*(3.73292075290073e-29*fs + 1.01643277726662e-20) + 2.91602352831988e-14) + 2.29636966370042e-11) + 1.07449105454163e-9)) + fs*(fs*(fs*(3.98985774247549e-22*fs + 1.99042653510896e-15) + 1.83615604104971e-13) + 5.31230624730483e-11) + 2.44402781742033e-9;
a1 = Fuzz*(Fuzz*fs*(fs*(fs*(fs*(1.86646037645036e-28*fs + 3.16899403862238e-20) + 3.11506369039915e-14) - 2.30719916990074e-11) - 3.22479494130986e-9) + fs*(fs*(fs*(fs*(-1.86646037645036e-28*fs - 3.04929833179984e-20) - 2.91602352831988e-14) + 2.29636966370042e-11) + 3.22347316362488e-9)) + fs*(fs*(fs*(-1.19695732274265e-21*fs - 1.99042653510896e-15) + 1.83615604104971e-13) + 1.59369187419145e-10) + 1.22201390871017e-8;
a2 = Fuzz*(Fuzz*fs*(fs*(fs*(fs*(-3.73292075290073e-28*fs - 2.11266269241492e-20) + 6.2301273807983e-14) + 4.61439833980148e-11) - 2.14986329420657e-9) + fs*(fs*(fs*(fs*(3.73292075290073e-28*fs + 2.03286555453323e-20) - 5.83204705663976e-14) - 4.59273932740084e-11) + 2.14898210908325e-9)) + fs*(fs*(fs*(7.97971548495099e-22*fs - 3.98085307021793e-15) - 3.67231208209942e-13) + 1.06246124946097e-10) + 2.44402781742033e-8;
a3 = Fuzz*(Fuzz*fs*(fs*(fs*(fs*(3.73292075290073e-28*fs - 2.11266269241492e-20) - 6.2301273807983e-14) + 4.61439833980148e-11) + 2.14986329420657e-9) + fs*(fs*(fs*(fs*(-3.73292075290073e-28*fs + 2.03286555453323e-20) + 5.83204705663976e-14) - 4.59273932740084e-11) - 2.14898210908325e-9)) + fs*(fs*(fs*(7.97971548495099e-22*fs + 3.98085307021793e-15) - 3.67231208209942e-13) - 1.06246124946097e-10) + 2.44402781742033e-8;
a4 = Fuzz*(Fuzz*fs*(fs*(fs*(fs*(-1.86646037645036e-28*fs + 3.16899403862238e-20) - 3.11506369039915e-14) - 2.30719916990074e-11) + 3.22479494130986e-9) + fs*(fs*(fs*(fs*(1.86646037645036e-28*fs - 3.04929833179984e-20) + 2.91602352831988e-14) + 2.29636966370042e-11) - 3.22347316362488e-9)) + fs*(fs*(fs*(-1.19695732274265e-21*fs + 1.99042653510896e-15) + 1.83615604104971e-13) - 1.59369187419145e-10) + 1.22201390871017e-8;
a5 = Fuzz*(Fuzz*fs*(fs*(fs*(fs*(3.73292075290073e-29*fs - 1.05633134620746e-20) + 3.11506369039915e-14) - 2.30719916990074e-11) + 1.07493164710329e-9) + fs*(fs*(fs*(fs*(-3.73292075290073e-29*fs + 1.01643277726662e-20) - 2.91602352831988e-14) + 2.29636966370042e-11) - 1.07449105454163e-9)) + fs*(fs*(fs*(3.98985774247549e-22*fs - 1.99042653510896e-15) + 1.83615604104971e-13) - 5.31230624730483e-11) + 2.44402781742033e-9;
};
|
9f4232ef95d1e0378ef4825819dcdc031662e3aa27138830fb31ffbac9a5fbdb | brummer10/CollisionDrive | CollisionDrivesim.dsp | declare id "collison";
declare name "Collision Drive";
declare category "Distortion";
declare samplerate "96000";
import("stdfaust.lib");
/*******************************************************************************
* 1-dimensional function table for linear interpolation
*******************************************************************************/
rd = library("reducemaps.lib");
//-- Rdtable from waveform
rtable(table, r) = (table, int(r)):rdtable;
//-- Copy the sign of x to f
ccopysign(f, x) = ma.fabs(f) * sign(x);
//-- Get sign of value x
sign(x) = x<0, 1, -1 : select2;
//-- Check if value x is negative
fsignbit(x) = x<0;
//-- Get fractal part of value n
fractal(n) = n - int(n);
//-- Interpolate value between i and i+1 in table with fractal coefficient f.
interpolation(table, size, f, i) = select2(i<0,select2(i>size-2,
rtable(table, i)*(1-f) + rtable(table,i+1)*f, rtable(table, size-1)),
rtable(table, 0)) ;
//-- Linear interpolation for value x in rdtable
circuit_response(table, low, high, step, size, x) =
interpolation(table, size, fractal(linindex(step, x)),
int(linindex(step, x))), x : ccopysign;
//-- Calculate linear table index for value x
linindex(step, x) = ma.fabs(x) * step;
//-- table response for the Collison Drive Clipping Amp section
collison_drive_clip = circuit_response(collison_drive_table, low, high, step, size) with {
low = 0;
high =0.970874;
step =101.97;
size =100;
collison_drive_table = waveform {
0.0,-0.0296990148227,-0.0599780676992,-0.0908231643281,-0.122163239629,
-0.15376009788,-0.184938007182,-0.214177260107,-0.239335434213,-0.259232575019,
-0.274433909887,-0.286183308354,-0.29553854444,-0.303222323477,-0.309706249977,
-0.315301338712,-0.320218440785,-0.324604982281,-0.328567120703,-0.332183356975,
-0.335513124719,-0.33860236542,-0.34148724693,-0.344196707008,-0.346754233717,
-0.34917913798,-0.351487480543,-0.35369275887,-0.355806424152,-0.357838275995,
-0.359796767655,-0.361689244919,-0.363522135105,-0.365301098113,-0.367031148289,
-0.368716753588,-0.370361916943,-0.371970243537,-0.373544996828,-0.375089145544,
-0.376605403346,-0.378096262548,-0.379564022938,-0.381010816596,-0.382438629377,
-0.383849319643,-0.385244634694,-0.386626225283,-0.387995658543,-0.389354429565,
-0.39070397188,-0.392045667012,-0.393380853288,-0.39471083403,-0.396036885269,
-0.397360263098,-0.398682210753,-0.400003965547,-0.401326765733,-0.402651857394,
-0.403980501471,-0.405313980999,-0.406653608692,-0.40800073496,-0.409356756504,
-0.410723125631,-0.412101360439,-0.413493056085,-0.414899897347,-0.416323672745,
-0.417766290556,-0.419229797097,-0.420716397759,-0.422228481377,-0.423768648654,
-0.425339745558,-0.426944902828,-0.428587583057,-0.430271637224,-0.432001373102,
-0.433781638746,-0.435617925286,-0.437516494692,-0.439484540257,-0.441530390423,
-0.443663770898,-0.445896146322,-0.448241172434,-0.450715304661,-0.453338632988,
-0.45613605235,-0.45913894467,-0.46238766699,-0.465935359011,-0.469854010456,
-0.474244617411,-0.479255257451,-0.48511588606,-0.492212726244,-0.501272723631
};
};
/*
** Noisegate of the Collision Drive
*/
noiseGate = _ <: _*((((abs(_) : si.smoo) < tLinear) : si.smooth(pole)) ) : v1 with{
threshold = hslider("Gate[name:Gate]", -15, -30, -10, 1);
tLinear = threshold : ba.db2linear;
pole = 0.001 : ba.tau2pole; // att
v1(x) = attach(x, envelop(x) : vbargraph("v1[nomidi:no]", -0, +1));
envelop = abs : max ~ (1.0/ma.SR) : rd.maxn(4096) ;
};
/*
** Input buffer based on a circuit diagram of the Collision Drive
*/
p1 = pre : fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
b0 = 4.25021404100375e-10*pow(fs,2);
b1 = -8.50042808200749e-10*pow(fs,2);
b2 = 4.25021404100375e-10*pow(fs,2);
a0 = fs*(4.33044799014014e-10*fs + 4.71597371213838e-8) + 1.11568988593319e-6;
a1 = -8.66089598028028e-10*pow(fs,2) + 2.23137977186639e-6;
a2 = fs*(4.33044799014014e-10*fs - 4.71597371213838e-8) + 1.11568988593319e-6;
};
/*
** Capacitor selector of the Collision Drive
*/
capset = (table, int(p)):rdtable * 1e-6 with {
table = waveform {
0.47, 0.22, 0.1, 0.047, 0.022, 0.01
};
p = hslider("attack[name:Attack]", 3, 0, 5, 1);
};
/*
** Clipping amp based on a circuit diagram of the Collision Drive
*/
p2 = ts9 with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
R1 = 1000;
R2 = 10000 + 500000 * (hslider("drive[name:Drive]", 0.1, 0, 1, 0.01) : LogPot(3));
C = capset;
a1 = (R1 + R2) * C * 2 * ma.SR;
a2 = R1 * C * 2 * ma.SR;
B0 = (1 + a1) / (1 + a2);
B1 = (1 - a1) / (1 + a2);
A1 = (1 - a2) / (1 + a2);
X2 = fi.tf1(B0, B1, A1);
ts9nonlin = ffunction(float ts9nonlin(float), "ts9nonlin.h", "");
ts9 = _ <: _ - ts9nonlin(X2-_) :> _;
//ts9 = _ <: _ - collison_drive_clip(X2-_) :> _;
};
/*
** Tone Control section based on a circuit diagram of the Collision Drive
*/
p3 = pre : fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
Bright = vslider("Bright[name:Bright][style:knob]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
b0 = Bright*(-3.04435668052817e-6*Bright*fs + 5.41895489134013e-6*fs) + 1.33951693943239e-7*fs + 0.00138379849114917;
b1 = 0.00276759698229833;
b2 = Bright*(3.04435668052817e-6*Bright*fs - 5.41895489134013e-6*fs) - 1.33951693943239e-7*fs + 0.00138379849114917;
a0 = Bright*(Bright*fs*(-1.33953035705602e-9*fs - 3.34882589264005e-6) + fs*(1.33954082280245e-9*fs + 2.73997462198066e-6)) + fs*(5.89397962033077e-11*fs + 1.3651141432266e-6) + 0.00152220825269361;
a1 = Bright*(2.67906071411204e-9*Bright*pow(fs,2) - 2.6790816456049e-9*pow(fs,2)) - 1.17879592406615e-10*pow(fs,2) + 0.00304441650538723;
a2 = Bright*(Bright*fs*(-1.33953035705602e-9*fs + 3.34882589264005e-6) + fs*(1.33954082280245e-9*fs - 2.73997462198066e-6)) + fs*(5.89397962033077e-11*fs - 1.3651141432266e-6) + 0.00152220825269361;
};
/*
** Volume Control section based on a circuit diagram of the Collision Drive
*/
p4 = pre : fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
Volume = vslider("Level[name:Level][style:knob]", 0.5, 0, 1, 0.01) : Inverted(0) : LogPot(3) : si.smooth(s);
b0 = 3.59629027188009e-10*Volume*pow(fs,2);
b1 = -7.19258054376018e-10*Volume*pow(fs,2);
b2 = 3.59629027188009e-10*Volume*pow(fs,2);
a0 = Volume*(Volume*fs*(-9.64298428951757e-11*fs - 4.15286911498117e-7) + fs*(9.64298428951757e-11*fs + 4.15286911498117e-7)) + fs*(3.6890696017522e-10*fs + 1.86049349697801e-6) + 0.000207643455749058;
a1 = Volume*(1.92859685790351e-10*Volume*pow(fs,2) - 1.92859685790351e-10*pow(fs,2)) - 7.37813920350441e-10*pow(fs,2) + 0.000415286911498117;
a2 = Volume*(Volume*fs*(-9.64298428951757e-11*fs + 4.15286911498117e-7) + fs*(9.64298428951757e-11*fs - 4.15286911498117e-7)) + fs*(3.6890696017522e-10*fs - 1.86049349697801e-6) + 0.000207643455749058;
};
process = noiseGate : p1 : p2 : p3 : *(gain) with {
gain = hslider("level[name:Level]", -10, -20, 4, 0.1) : ba.db2linear : si.smooth(0.993);
};
| https://raw.githubusercontent.com/brummer10/CollisionDrive/24e745a4b6d6406b5e4e5f05230d5df23a424742/CollisionDrive/dsp/CollisionDrivesim.dsp | faust | ******************************************************************************
* 1-dimensional function table for linear interpolation
******************************************************************************
-- Rdtable from waveform
-- Copy the sign of x to f
-- Get sign of value x
-- Check if value x is negative
-- Get fractal part of value n
-- Interpolate value between i and i+1 in table with fractal coefficient f.
-- Linear interpolation for value x in rdtable
-- Calculate linear table index for value x
-- table response for the Collison Drive Clipping Amp section
** Noisegate of the Collision Drive
att
** Input buffer based on a circuit diagram of the Collision Drive
** Capacitor selector of the Collision Drive
** Clipping amp based on a circuit diagram of the Collision Drive
ts9 = _ <: _ - collison_drive_clip(X2-_) :> _;
** Tone Control section based on a circuit diagram of the Collision Drive
** Volume Control section based on a circuit diagram of the Collision Drive
| declare id "collison";
declare name "Collision Drive";
declare category "Distortion";
declare samplerate "96000";
import("stdfaust.lib");
rd = library("reducemaps.lib");
rtable(table, r) = (table, int(r)):rdtable;
ccopysign(f, x) = ma.fabs(f) * sign(x);
sign(x) = x<0, 1, -1 : select2;
fsignbit(x) = x<0;
fractal(n) = n - int(n);
interpolation(table, size, f, i) = select2(i<0,select2(i>size-2,
rtable(table, i)*(1-f) + rtable(table,i+1)*f, rtable(table, size-1)),
rtable(table, 0)) ;
circuit_response(table, low, high, step, size, x) =
interpolation(table, size, fractal(linindex(step, x)),
int(linindex(step, x))), x : ccopysign;
linindex(step, x) = ma.fabs(x) * step;
collison_drive_clip = circuit_response(collison_drive_table, low, high, step, size) with {
low = 0;
high =0.970874;
step =101.97;
size =100;
collison_drive_table = waveform {
0.0,-0.0296990148227,-0.0599780676992,-0.0908231643281,-0.122163239629,
-0.15376009788,-0.184938007182,-0.214177260107,-0.239335434213,-0.259232575019,
-0.274433909887,-0.286183308354,-0.29553854444,-0.303222323477,-0.309706249977,
-0.315301338712,-0.320218440785,-0.324604982281,-0.328567120703,-0.332183356975,
-0.335513124719,-0.33860236542,-0.34148724693,-0.344196707008,-0.346754233717,
-0.34917913798,-0.351487480543,-0.35369275887,-0.355806424152,-0.357838275995,
-0.359796767655,-0.361689244919,-0.363522135105,-0.365301098113,-0.367031148289,
-0.368716753588,-0.370361916943,-0.371970243537,-0.373544996828,-0.375089145544,
-0.376605403346,-0.378096262548,-0.379564022938,-0.381010816596,-0.382438629377,
-0.383849319643,-0.385244634694,-0.386626225283,-0.387995658543,-0.389354429565,
-0.39070397188,-0.392045667012,-0.393380853288,-0.39471083403,-0.396036885269,
-0.397360263098,-0.398682210753,-0.400003965547,-0.401326765733,-0.402651857394,
-0.403980501471,-0.405313980999,-0.406653608692,-0.40800073496,-0.409356756504,
-0.410723125631,-0.412101360439,-0.413493056085,-0.414899897347,-0.416323672745,
-0.417766290556,-0.419229797097,-0.420716397759,-0.422228481377,-0.423768648654,
-0.425339745558,-0.426944902828,-0.428587583057,-0.430271637224,-0.432001373102,
-0.433781638746,-0.435617925286,-0.437516494692,-0.439484540257,-0.441530390423,
-0.443663770898,-0.445896146322,-0.448241172434,-0.450715304661,-0.453338632988,
-0.45613605235,-0.45913894467,-0.46238766699,-0.465935359011,-0.469854010456,
-0.474244617411,-0.479255257451,-0.48511588606,-0.492212726244,-0.501272723631
};
};
noiseGate = _ <: _*((((abs(_) : si.smoo) < tLinear) : si.smooth(pole)) ) : v1 with{
threshold = hslider("Gate[name:Gate]", -15, -30, -10, 1);
tLinear = threshold : ba.db2linear;
v1(x) = attach(x, envelop(x) : vbargraph("v1[nomidi:no]", -0, +1));
envelop = abs : max ~ (1.0/ma.SR) : rd.maxn(4096) ;
};
p1 = pre : fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
b0 = 4.25021404100375e-10*pow(fs,2);
b1 = -8.50042808200749e-10*pow(fs,2);
b2 = 4.25021404100375e-10*pow(fs,2);
a0 = fs*(4.33044799014014e-10*fs + 4.71597371213838e-8) + 1.11568988593319e-6;
a1 = -8.66089598028028e-10*pow(fs,2) + 2.23137977186639e-6;
a2 = fs*(4.33044799014014e-10*fs - 4.71597371213838e-8) + 1.11568988593319e-6;
};
capset = (table, int(p)):rdtable * 1e-6 with {
table = waveform {
0.47, 0.22, 0.1, 0.047, 0.022, 0.01
};
p = hslider("attack[name:Attack]", 3, 0, 5, 1);
};
p2 = ts9 with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
R1 = 1000;
R2 = 10000 + 500000 * (hslider("drive[name:Drive]", 0.1, 0, 1, 0.01) : LogPot(3));
C = capset;
a1 = (R1 + R2) * C * 2 * ma.SR;
a2 = R1 * C * 2 * ma.SR;
B0 = (1 + a1) / (1 + a2);
B1 = (1 - a1) / (1 + a2);
A1 = (1 - a2) / (1 + a2);
X2 = fi.tf1(B0, B1, A1);
ts9nonlin = ffunction(float ts9nonlin(float), "ts9nonlin.h", "");
ts9 = _ <: _ - ts9nonlin(X2-_) :> _;
};
p3 = pre : fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
Bright = vslider("Bright[name:Bright][style:knob]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
b0 = Bright*(-3.04435668052817e-6*Bright*fs + 5.41895489134013e-6*fs) + 1.33951693943239e-7*fs + 0.00138379849114917;
b1 = 0.00276759698229833;
b2 = Bright*(3.04435668052817e-6*Bright*fs - 5.41895489134013e-6*fs) - 1.33951693943239e-7*fs + 0.00138379849114917;
a0 = Bright*(Bright*fs*(-1.33953035705602e-9*fs - 3.34882589264005e-6) + fs*(1.33954082280245e-9*fs + 2.73997462198066e-6)) + fs*(5.89397962033077e-11*fs + 1.3651141432266e-6) + 0.00152220825269361;
a1 = Bright*(2.67906071411204e-9*Bright*pow(fs,2) - 2.6790816456049e-9*pow(fs,2)) - 1.17879592406615e-10*pow(fs,2) + 0.00304441650538723;
a2 = Bright*(Bright*fs*(-1.33953035705602e-9*fs + 3.34882589264005e-6) + fs*(1.33954082280245e-9*fs - 2.73997462198066e-6)) + fs*(5.89397962033077e-11*fs - 1.3651141432266e-6) + 0.00152220825269361;
};
p4 = pre : fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
Volume = vslider("Level[name:Level][style:knob]", 0.5, 0, 1, 0.01) : Inverted(0) : LogPot(3) : si.smooth(s);
b0 = 3.59629027188009e-10*Volume*pow(fs,2);
b1 = -7.19258054376018e-10*Volume*pow(fs,2);
b2 = 3.59629027188009e-10*Volume*pow(fs,2);
a0 = Volume*(Volume*fs*(-9.64298428951757e-11*fs - 4.15286911498117e-7) + fs*(9.64298428951757e-11*fs + 4.15286911498117e-7)) + fs*(3.6890696017522e-10*fs + 1.86049349697801e-6) + 0.000207643455749058;
a1 = Volume*(1.92859685790351e-10*Volume*pow(fs,2) - 1.92859685790351e-10*pow(fs,2)) - 7.37813920350441e-10*pow(fs,2) + 0.000415286911498117;
a2 = Volume*(Volume*fs*(-9.64298428951757e-11*fs + 4.15286911498117e-7) + fs*(9.64298428951757e-11*fs - 4.15286911498117e-7)) + fs*(3.6890696017522e-10*fs - 1.86049349697801e-6) + 0.000207643455749058;
};
process = noiseGate : p1 : p2 : p3 : *(gain) with {
gain = hslider("level[name:Level]", -10, -20, 4, 0.1) : ba.db2linear : si.smooth(0.993);
};
|
9d3a8dfe0db3ed474351ed8aa8b970ba8fe6b091ce436ca097ac1990ec5540b7 | brummer10/guitarix | mbc.dsp | declare id "mbc";
declare name "Multi Band Compressor";
declare shortname "MB Comp";
declare category "Guitar Effects";
declare description "Multi Band Compressor contributed by kokoko3k";
import("stdfaust.lib");
import("reducemaps.lib");
vmeter1(x) = attach(x, envelop(x) : vbargraph("v1[nomidi][log]", -70, +5));
vmeter2(x) = attach(x, envelop(x) : vbargraph("v2[nomidi][log]", -70, +5));
vmeter3(x) = attach(x, envelop(x) : vbargraph("v3[nomidi][log]", -70, +5));
vmeter4(x) = attach(x, envelop(x) : vbargraph("v4[nomidi][log]", -70, +5));
vmeter5(x) = attach(x, envelop(x) : vbargraph("v5[nomidi][log]", -70, +5));
envelop = abs : max ~ (1.0/ma.SR) : mean(4096) ; // : max(ba.db2linear(-70)) : ba.linear2db;
//Mono
process = geq : ( gcomp5s , gcomp4s , gcomp3s, gcomp2s, gcomp1s) :>_ with {
gcomp1s = ba.bypass1(bswitch1,co.compressor_mono(ratio1,-push1,attack1,release1)):*(Makeup1) : vmeter1;
gcomp2s = ba.bypass1(bswitch2,co.compressor_mono(ratio2,-push2,attack2,release2)):*(Makeup2) : vmeter2;
gcomp3s = ba.bypass1(bswitch3,co.compressor_mono(ratio3,-push3,attack3,release3)):*(Makeup3) : vmeter3;
gcomp4s = ba.bypass1(bswitch4,co.compressor_mono(ratio4,-push4,attack4,release4)):*(Makeup4) : vmeter4;
gcomp5s = ba.bypass1(bswitch5,co.compressor_mono(ratio5,-push5,attack5,release5)):*(Makeup5) : vmeter5;
};
sel1 = hslider("Mode1[enum:Compress|Bypass|Mute][tooltip: Compress or Mute the selected band, or Bypass The Compressor]",1,1,3,1);
sel2 = hslider("Mode2[enum:Compress|Bypass|Mute][tooltip: Compress or Mute the selected band, or Bypass The Compressor]",1,1,3,1);
sel3 = hslider("Mode3[enum:Compress|Bypass|Mute][tooltip: Compress or Mute the selected band, or Bypass The Compressor]",1,1,3,1);
sel4 = hslider("Mode4[enum:Compress|Bypass|Mute][tooltip: Compress or Mute the selected band, or Bypass The Compressor]",1,1,3,1);
sel5 = hslider("Mode5[enum:Compress|Bypass|Mute][tooltip: Compress or Mute the selected band, or Bypass The Compressor]",1,1,3,1);
not(x) = abs(x-1);
mute1 = not(max(0,sel1-2));
mute2 = not(max(0,sel2-2));
mute3 = not(max(0,sel3-2));
mute4 = not(max(0,sel4-2));
mute5 = not(max(0,sel5-2));
bypass(switch, block) = _ <: select2(switch, _, block);
bswitch1 = max(0,sel1-1);
bswitch2 = max(0,sel2-1);
bswitch3 = max(0,sel3-1);
bswitch4 = max(0,sel4-1);
bswitch5 = max(0,sel5-1);
hifr1 =hslider("crossover_b1_b2 [log][name:Crossover B1-B2 (hz)][tooltip: Crossover fi.bandpass frequency]" ,80 , 20, 20000, 1.08);
hifr2 =hslider("crossover_b2_b3 [log][name:Crossover B2-B3 (hz)][tooltip: Crossover fi.bandpass frequency]",210,20,20000,1.08);
hifr3 =hslider("crossover_b3_b4 [log][name:Crossover B3-B4 (hz)][tooltip: Crossover fi.bandpass frequency]",1700,20,20000,1.08);
hifr4 =hslider("crossover_b4_b5 [log][name:Crossover B4-B5 (hz)][tooltip: Crossover fi.bandpass frequency]",5000,20,20000,1.08);
geq = fi.filterbank(3, (hifr1,hifr2,hifr3,hifr4));
ratio1 = hslider("[9] Ratio1 [tooltip: Compression ratio]",2,1,100,0.1);
attack1 = hslider("[A] Attack1 [tooltip: Time before the compressor starts to kick in]", 0.012, 0.001, 1, 0.001);
release1 = hslider("[B] Release1 [tooltip: Time before the compressor releases the sound]", 1.25, 0.01, 10, 0.01);
ratio2 = hslider("[9] Ratio2 [tooltip: Compression ratio]",2,1,100,0.1);
attack2 = hslider("[A] Attack2 [tooltip: Time before the compressor starts to kick in]", 0.012, 0.001, 1, 0.001);
release2 = hslider("[B] Release2 [tooltip: Time before the compressor releases the sound]", 1.25, 0.01, 10, 0.01);
ratio3 = hslider("[9] Ratio3 [tooltip: Compression ratio]",2,1,100,0.1);
attack3 = hslider("[A] Attack3 [tooltip: Time before the compressor starts to kick in]", 0.012, 0.001, 1, 0.001);
release3 = hslider("[B] Release3 [tooltip: Time before the compressor releases the sound]", 1.25, 0.01, 10, 0.01);
ratio4 = hslider("[9] Ratio4 [tooltip: Compression ratio]",2,1,100,0.1);
attack4 = hslider("[A] Attack4 [tooltip: Time before the compressor starts to kick in]", 0.012, 0.001, 1, 0.001);
release4 = hslider("[B] Release4 [tooltip: Time before the compressor releases the sound]", 1.25, 0.01, 10, 0.01);
ratio5 = hslider("[9] Ratio5 [tooltip: Compression ratio]",2,1,100,0.1);
attack5 = hslider("[A] Attack5 [tooltip: Time before the compressor starts to kick in]", 0.012, 0.001, 1, 0.001);
release5 = hslider("[B] Release5 [tooltip: Time before the compressor releases the sound]", 1.25, 0.01, 10, 0.01);
push1 = hslider("[5] Makeup1 [tooltip: Post amplification and threshold]" , 13, -50, +50, 0.1) ; // threshold-=push ; makeup+=push
push2 = hslider("[5] Makeup2 [tooltip: Post amplification and threshold]" , 10, -50, +50, 0.1) ; // threshold-=push ; makeup+=push
push3 = hslider("[5] Makeup3 [tooltip: Post amplification and threshold]" , 4, -50, +50, 0.1) ; // threshold-=push ; makeup+=push
push4 = hslider("[5] Makeup4 [tooltip: Post amplification and threshold]" , 8, -50, +50, 0.1) ; // threshold-=push ; makeup+=push
push5 = hslider("[5] Makeup5 [tooltip: Post amplification and threshold]" , 11, -50, +50, 0.1) ; // threshold-=push ; makeup+=push
safe1 = hslider("[6] Makeup-Threshold1 [tooltip: Threshold correction, an anticlip measure]" , 2, 0, +10, 0.1) ; // makeup-=safe
safe2 = hslider("[6] Makeup-Threshold2 [tooltip: Threshold correction, an anticlip measure]" , 2, 0, +10, 0.1) ; // makeup-=safe
safe3 = hslider("[6] Makeup-Threshold3 [tooltip: Threshold correction, an anticlip measure]" , 2, 0, +10, 0.1) ; // makeup-=safe
safe4 = hslider("[6] Makeup-Threshold4 [tooltip: Threshold correction, an anticlip measure]" , 2, 0, +10, 0.1) ; // makeup-=safe
safe5 = hslider("[6] Makeup-Threshold5 [tooltip: Threshold correction, an anticlip measure]" , 2, 0, +10, 0.1) ; // makeup-=safe
Makeup1 = mute1* (not(bswitch1)*(push1-safe1) : ba.db2linear : si.smooth(0.999));
Makeup2 = mute2* (not(bswitch2)*(push2-safe2) : ba.db2linear : si.smooth(0.999));
Makeup3 = mute3* (not(bswitch3)*(push3-safe3) : ba.db2linear : si.smooth(0.999));
Makeup4 = mute4* (not(bswitch4)*(push4-safe4) : ba.db2linear : si.smooth(0.999));
Makeup5 = mute5* (not(bswitch5)*(push5-safe5) : ba.db2linear : si.smooth(0.999));
//Low end headsets: 13,10,4,8,11 (split 80,210,1700,5000)
//Mid-high end headsets: 17,20.5,20,10.5,10 (split 44,180,800,5000)
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/plugins/mbc.dsp | faust | : max(ba.db2linear(-70)) : ba.linear2db;
Mono
threshold-=push ; makeup+=push
threshold-=push ; makeup+=push
threshold-=push ; makeup+=push
threshold-=push ; makeup+=push
threshold-=push ; makeup+=push
makeup-=safe
makeup-=safe
makeup-=safe
makeup-=safe
makeup-=safe
Low end headsets: 13,10,4,8,11 (split 80,210,1700,5000)
Mid-high end headsets: 17,20.5,20,10.5,10 (split 44,180,800,5000) | declare id "mbc";
declare name "Multi Band Compressor";
declare shortname "MB Comp";
declare category "Guitar Effects";
declare description "Multi Band Compressor contributed by kokoko3k";
import("stdfaust.lib");
import("reducemaps.lib");
vmeter1(x) = attach(x, envelop(x) : vbargraph("v1[nomidi][log]", -70, +5));
vmeter2(x) = attach(x, envelop(x) : vbargraph("v2[nomidi][log]", -70, +5));
vmeter3(x) = attach(x, envelop(x) : vbargraph("v3[nomidi][log]", -70, +5));
vmeter4(x) = attach(x, envelop(x) : vbargraph("v4[nomidi][log]", -70, +5));
vmeter5(x) = attach(x, envelop(x) : vbargraph("v5[nomidi][log]", -70, +5));
process = geq : ( gcomp5s , gcomp4s , gcomp3s, gcomp2s, gcomp1s) :>_ with {
gcomp1s = ba.bypass1(bswitch1,co.compressor_mono(ratio1,-push1,attack1,release1)):*(Makeup1) : vmeter1;
gcomp2s = ba.bypass1(bswitch2,co.compressor_mono(ratio2,-push2,attack2,release2)):*(Makeup2) : vmeter2;
gcomp3s = ba.bypass1(bswitch3,co.compressor_mono(ratio3,-push3,attack3,release3)):*(Makeup3) : vmeter3;
gcomp4s = ba.bypass1(bswitch4,co.compressor_mono(ratio4,-push4,attack4,release4)):*(Makeup4) : vmeter4;
gcomp5s = ba.bypass1(bswitch5,co.compressor_mono(ratio5,-push5,attack5,release5)):*(Makeup5) : vmeter5;
};
sel1 = hslider("Mode1[enum:Compress|Bypass|Mute][tooltip: Compress or Mute the selected band, or Bypass The Compressor]",1,1,3,1);
sel2 = hslider("Mode2[enum:Compress|Bypass|Mute][tooltip: Compress or Mute the selected band, or Bypass The Compressor]",1,1,3,1);
sel3 = hslider("Mode3[enum:Compress|Bypass|Mute][tooltip: Compress or Mute the selected band, or Bypass The Compressor]",1,1,3,1);
sel4 = hslider("Mode4[enum:Compress|Bypass|Mute][tooltip: Compress or Mute the selected band, or Bypass The Compressor]",1,1,3,1);
sel5 = hslider("Mode5[enum:Compress|Bypass|Mute][tooltip: Compress or Mute the selected band, or Bypass The Compressor]",1,1,3,1);
not(x) = abs(x-1);
mute1 = not(max(0,sel1-2));
mute2 = not(max(0,sel2-2));
mute3 = not(max(0,sel3-2));
mute4 = not(max(0,sel4-2));
mute5 = not(max(0,sel5-2));
bypass(switch, block) = _ <: select2(switch, _, block);
bswitch1 = max(0,sel1-1);
bswitch2 = max(0,sel2-1);
bswitch3 = max(0,sel3-1);
bswitch4 = max(0,sel4-1);
bswitch5 = max(0,sel5-1);
hifr1 =hslider("crossover_b1_b2 [log][name:Crossover B1-B2 (hz)][tooltip: Crossover fi.bandpass frequency]" ,80 , 20, 20000, 1.08);
hifr2 =hslider("crossover_b2_b3 [log][name:Crossover B2-B3 (hz)][tooltip: Crossover fi.bandpass frequency]",210,20,20000,1.08);
hifr3 =hslider("crossover_b3_b4 [log][name:Crossover B3-B4 (hz)][tooltip: Crossover fi.bandpass frequency]",1700,20,20000,1.08);
hifr4 =hslider("crossover_b4_b5 [log][name:Crossover B4-B5 (hz)][tooltip: Crossover fi.bandpass frequency]",5000,20,20000,1.08);
geq = fi.filterbank(3, (hifr1,hifr2,hifr3,hifr4));
ratio1 = hslider("[9] Ratio1 [tooltip: Compression ratio]",2,1,100,0.1);
attack1 = hslider("[A] Attack1 [tooltip: Time before the compressor starts to kick in]", 0.012, 0.001, 1, 0.001);
release1 = hslider("[B] Release1 [tooltip: Time before the compressor releases the sound]", 1.25, 0.01, 10, 0.01);
ratio2 = hslider("[9] Ratio2 [tooltip: Compression ratio]",2,1,100,0.1);
attack2 = hslider("[A] Attack2 [tooltip: Time before the compressor starts to kick in]", 0.012, 0.001, 1, 0.001);
release2 = hslider("[B] Release2 [tooltip: Time before the compressor releases the sound]", 1.25, 0.01, 10, 0.01);
ratio3 = hslider("[9] Ratio3 [tooltip: Compression ratio]",2,1,100,0.1);
attack3 = hslider("[A] Attack3 [tooltip: Time before the compressor starts to kick in]", 0.012, 0.001, 1, 0.001);
release3 = hslider("[B] Release3 [tooltip: Time before the compressor releases the sound]", 1.25, 0.01, 10, 0.01);
ratio4 = hslider("[9] Ratio4 [tooltip: Compression ratio]",2,1,100,0.1);
attack4 = hslider("[A] Attack4 [tooltip: Time before the compressor starts to kick in]", 0.012, 0.001, 1, 0.001);
release4 = hslider("[B] Release4 [tooltip: Time before the compressor releases the sound]", 1.25, 0.01, 10, 0.01);
ratio5 = hslider("[9] Ratio5 [tooltip: Compression ratio]",2,1,100,0.1);
attack5 = hslider("[A] Attack5 [tooltip: Time before the compressor starts to kick in]", 0.012, 0.001, 1, 0.001);
release5 = hslider("[B] Release5 [tooltip: Time before the compressor releases the sound]", 1.25, 0.01, 10, 0.01);
Makeup1 = mute1* (not(bswitch1)*(push1-safe1) : ba.db2linear : si.smooth(0.999));
Makeup2 = mute2* (not(bswitch2)*(push2-safe2) : ba.db2linear : si.smooth(0.999));
Makeup3 = mute3* (not(bswitch3)*(push3-safe3) : ba.db2linear : si.smooth(0.999));
Makeup4 = mute4* (not(bswitch4)*(push4-safe4) : ba.db2linear : si.smooth(0.999));
Makeup5 = mute5* (not(bswitch5)*(push5-safe5) : ba.db2linear : si.smooth(0.999));
|
602d4f10185d150feeeada92569371498c1353fd555823f4c150e2133981d42f | brummer10/guitarix | hornet.dsp | // generated automatically
// DO NOT MODIFY!
declare id "hornet";
declare name "Hornet";
declare category "Fuzz";
declare description "Hornet simulation";
import("stdfaust.lib");
process = pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0)) : clip with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
clip(x) = 0.4 * (min(0.7514,max(-0.4514,x)));
Level = vslider("Level[name:Level]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
Sustain = vslider("Sustain[name:Sustain]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
Fuzz = vslider("Fuzz[name:Fuzz]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
b0 = Fuzz*(Fuzz*Level*pow(fs,3)*(-3.36831187151837e-20*fs - 1.75582214579149e-16) + Level*pow(fs,3)*(9.4649563589667e-21*fs + 4.93386022967413e-17)) + Sustain*(Fuzz*(Fuzz*Level*pow(fs,3)*(2.89798007739403e-18*fs + 1.51064918927987e-14) + Level*pow(fs,3)*(2.28655633153439e-18*fs + 1.19192830048069e-14)) + Level*pow(fs,2)*(fs*(1.45891323583538e-19*fs + 7.40489463150802e-16) - 1.04296301457845e-13)) + Level*pow(fs,2)*(fs*(2.4218162356217e-20*fs + 1.26859583357635e-16) + 3.21091305171869e-15);
b1 = Fuzz*(Fuzz*Level*pow(fs,3)*(1.34732474860735e-19*fs + 3.51164429158298e-16) + Level*pow(fs,3)*(-3.78598254358668e-20*fs - 9.86772045934826e-17)) + Sustain*(Fuzz*(Fuzz*Level*pow(fs,3)*(-1.15919203095761e-17*fs - 3.02129837855973e-14) + Level*pow(fs,3)*(-9.14622532613756e-18*fs - 2.38385660096139e-14)) + Level*pow(fs,3)*(-5.83565294334152e-19*fs - 1.4809789263016e-15)) + Level*pow(fs,3)*(-9.6872649424868e-20*fs - 2.53719166715271e-16);
b2 = Fuzz*(-2.02098712291102e-19*Fuzz*Level*pow(fs,4) + 5.67897381538002e-20*Level*pow(fs,4)) + Sustain*(Fuzz*(1.73878804643642e-17*Fuzz*Level*pow(fs,4) + 1.37193379892063e-17*Level*pow(fs,4)) + Level*pow(fs,2)*(8.75347941501228e-19*pow(fs,2) + 2.08592602915691e-13)) + Level*pow(fs,2)*(1.45308974137302e-19*pow(fs,2) - 6.42182610343738e-15);
b3 = Fuzz*(Fuzz*Level*pow(fs,3)*(1.34732474860735e-19*fs - 3.51164429158298e-16) + Level*pow(fs,3)*(-3.78598254358668e-20*fs + 9.86772045934826e-17)) + Sustain*(Fuzz*(Fuzz*Level*pow(fs,3)*(-1.15919203095761e-17*fs + 3.02129837855973e-14) + Level*pow(fs,3)*(-9.14622532613756e-18*fs + 2.38385660096139e-14)) + Level*pow(fs,3)*(-5.83565294334152e-19*fs + 1.4809789263016e-15)) + Level*pow(fs,3)*(-9.6872649424868e-20*fs + 2.53719166715271e-16);
b4 = Fuzz*(Fuzz*Level*pow(fs,3)*(-3.36831187151837e-20*fs + 1.75582214579149e-16) + Level*pow(fs,3)*(9.4649563589667e-21*fs - 4.93386022967413e-17)) + Sustain*(Fuzz*(Fuzz*Level*pow(fs,3)*(2.89798007739403e-18*fs - 1.51064918927987e-14) + Level*pow(fs,3)*(2.28655633153439e-18*fs - 1.19192830048069e-14)) + Level*pow(fs,2)*(fs*(1.45891323583538e-19*fs - 7.40489463150802e-16) - 1.04296301457845e-13)) + Level*pow(fs,2)*(fs*(2.4218162356217e-20*fs - 1.26859583357635e-16) + 3.21091305171869e-15);
a0 = Fuzz*(Fuzz*fs*(fs*(fs*(-2.57087433571955e-21*fs - 3.20282580029198e-16) - 1.59955479510613e-12) - 1.59265781983301e-11) + fs*(fs*(fs*(7.22415688337201e-22*fs + 1.15708148345401e-16) + 5.83730418035165e-13) + 5.81517816570128e-12)) + Sustain*(Fuzz*(Fuzz*fs*(fs*(fs*(-2.22731835703847e-20*fs - 1.15680872556631e-16) - 1.02110226030461e-14) - 8.86189120121937e-14) + fs*(fs*(fs*(2.63346198155234e-19*fs + 1.39560593212619e-15) + 1.23553821745518e-13) + 1.09557219057811e-12)) + fs*(fs*(fs*(2.00860283725342e-19*fs + 1.06638545237487e-15) + 1.10730441129884e-13) + 2.30413820563986e-12) + 1.30107041069324e-11) + fs*(fs*(fs*(1.84845864738235e-21*fs + 2.48814775695488e-16) + 1.25274019677064e-12) + 4.3094216014379e-11) + 3.05506357605318e-10;
a1 = Fuzz*(Fuzz*fs*(pow(fs,2)*(1.02834973428782e-20*fs + 6.40565160058397e-16) - 3.18531563966602e-11) + fs*(pow(fs,2)*(-2.8896627533488e-21*fs - 2.31416296690802e-16) + 1.16303563314026e-11)) + Sustain*(Fuzz*(Fuzz*fs*(pow(fs,2)*(8.9092734281539e-20*fs + 2.31361745113263e-16) - 1.77237824024387e-13) + fs*(pow(fs,2)*(-1.05338479262093e-18*fs - 2.79121186425238e-15) + 2.19114438115622e-12)) + fs*(pow(fs,2)*(-8.03441134901368e-19*fs - 2.13277090474974e-15) + 4.60827641127972e-12) + 5.20428164277295e-11) + fs*(pow(fs,2)*(-7.39383458952941e-21*fs - 4.97629551390976e-16) + 8.6188432028758e-11) + 1.22202543042127e-9;
a2 = Fuzz*(Fuzz*pow(fs,2)*(-1.54252460143173e-20*pow(fs,2) + 3.19910959021226e-12) + pow(fs,2)*(4.33449413002321e-21*pow(fs,2) - 1.16746083607033e-12)) + Sustain*(Fuzz*(Fuzz*pow(fs,2)*(-1.33639101422308e-19*pow(fs,2) + 2.04220452060922e-14) + pow(fs,2)*(1.5800771889314e-18*pow(fs,2) - 2.47107643491035e-13)) + pow(fs,2)*(1.20516170235205e-18*pow(fs,2) - 2.21460882259768e-13) + 7.80642246415943e-11) + pow(fs,2)*(1.10907518842941e-20*pow(fs,2) - 2.50548039354128e-12) + 1.83303814563191e-9;
a3 = Fuzz*(Fuzz*fs*(pow(fs,2)*(1.02834973428782e-20*fs - 6.40565160058397e-16) + 3.18531563966602e-11) + fs*(pow(fs,2)*(-2.8896627533488e-21*fs + 2.31416296690802e-16) - 1.16303563314026e-11)) + Sustain*(Fuzz*(Fuzz*fs*(pow(fs,2)*(8.9092734281539e-20*fs - 2.31361745113263e-16) + 1.77237824024387e-13) + fs*(pow(fs,2)*(-1.05338479262093e-18*fs + 2.79121186425238e-15) - 2.19114438115622e-12)) + fs*(pow(fs,2)*(-8.03441134901368e-19*fs + 2.13277090474974e-15) - 4.60827641127972e-12) + 5.20428164277295e-11) + fs*(pow(fs,2)*(-7.39383458952941e-21*fs + 4.97629551390976e-16) - 8.6188432028758e-11) + 1.22202543042127e-9;
a4 = Fuzz*(Fuzz*fs*(fs*(fs*(-2.57087433571955e-21*fs + 3.20282580029198e-16) - 1.59955479510613e-12) + 1.59265781983301e-11) + fs*(fs*(fs*(7.22415688337201e-22*fs - 1.15708148345401e-16) + 5.83730418035165e-13) - 5.81517816570128e-12)) + Sustain*(Fuzz*(Fuzz*fs*(fs*(fs*(-2.22731835703847e-20*fs + 1.15680872556631e-16) - 1.02110226030461e-14) + 8.86189120121937e-14) + fs*(fs*(fs*(2.63346198155234e-19*fs - 1.39560593212619e-15) + 1.23553821745518e-13) - 1.09557219057811e-12)) + fs*(fs*(fs*(2.00860283725342e-19*fs - 1.06638545237487e-15) + 1.10730441129884e-13) - 2.30413820563986e-12) + 1.30107041069324e-11) + fs*(fs*(fs*(1.84845864738235e-21*fs - 2.48814775695488e-16) + 1.25274019677064e-12) - 4.3094216014379e-11) + 3.05506357605318e-10;
};
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/plugins/hornet.dsp | faust | generated automatically
DO NOT MODIFY! | declare id "hornet";
declare name "Hornet";
declare category "Fuzz";
declare description "Hornet simulation";
import("stdfaust.lib");
process = pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0)) : clip with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
clip(x) = 0.4 * (min(0.7514,max(-0.4514,x)));
Level = vslider("Level[name:Level]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
Sustain = vslider("Sustain[name:Sustain]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
Fuzz = vslider("Fuzz[name:Fuzz]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
b0 = Fuzz*(Fuzz*Level*pow(fs,3)*(-3.36831187151837e-20*fs - 1.75582214579149e-16) + Level*pow(fs,3)*(9.4649563589667e-21*fs + 4.93386022967413e-17)) + Sustain*(Fuzz*(Fuzz*Level*pow(fs,3)*(2.89798007739403e-18*fs + 1.51064918927987e-14) + Level*pow(fs,3)*(2.28655633153439e-18*fs + 1.19192830048069e-14)) + Level*pow(fs,2)*(fs*(1.45891323583538e-19*fs + 7.40489463150802e-16) - 1.04296301457845e-13)) + Level*pow(fs,2)*(fs*(2.4218162356217e-20*fs + 1.26859583357635e-16) + 3.21091305171869e-15);
b1 = Fuzz*(Fuzz*Level*pow(fs,3)*(1.34732474860735e-19*fs + 3.51164429158298e-16) + Level*pow(fs,3)*(-3.78598254358668e-20*fs - 9.86772045934826e-17)) + Sustain*(Fuzz*(Fuzz*Level*pow(fs,3)*(-1.15919203095761e-17*fs - 3.02129837855973e-14) + Level*pow(fs,3)*(-9.14622532613756e-18*fs - 2.38385660096139e-14)) + Level*pow(fs,3)*(-5.83565294334152e-19*fs - 1.4809789263016e-15)) + Level*pow(fs,3)*(-9.6872649424868e-20*fs - 2.53719166715271e-16);
b2 = Fuzz*(-2.02098712291102e-19*Fuzz*Level*pow(fs,4) + 5.67897381538002e-20*Level*pow(fs,4)) + Sustain*(Fuzz*(1.73878804643642e-17*Fuzz*Level*pow(fs,4) + 1.37193379892063e-17*Level*pow(fs,4)) + Level*pow(fs,2)*(8.75347941501228e-19*pow(fs,2) + 2.08592602915691e-13)) + Level*pow(fs,2)*(1.45308974137302e-19*pow(fs,2) - 6.42182610343738e-15);
b3 = Fuzz*(Fuzz*Level*pow(fs,3)*(1.34732474860735e-19*fs - 3.51164429158298e-16) + Level*pow(fs,3)*(-3.78598254358668e-20*fs + 9.86772045934826e-17)) + Sustain*(Fuzz*(Fuzz*Level*pow(fs,3)*(-1.15919203095761e-17*fs + 3.02129837855973e-14) + Level*pow(fs,3)*(-9.14622532613756e-18*fs + 2.38385660096139e-14)) + Level*pow(fs,3)*(-5.83565294334152e-19*fs + 1.4809789263016e-15)) + Level*pow(fs,3)*(-9.6872649424868e-20*fs + 2.53719166715271e-16);
b4 = Fuzz*(Fuzz*Level*pow(fs,3)*(-3.36831187151837e-20*fs + 1.75582214579149e-16) + Level*pow(fs,3)*(9.4649563589667e-21*fs - 4.93386022967413e-17)) + Sustain*(Fuzz*(Fuzz*Level*pow(fs,3)*(2.89798007739403e-18*fs - 1.51064918927987e-14) + Level*pow(fs,3)*(2.28655633153439e-18*fs - 1.19192830048069e-14)) + Level*pow(fs,2)*(fs*(1.45891323583538e-19*fs - 7.40489463150802e-16) - 1.04296301457845e-13)) + Level*pow(fs,2)*(fs*(2.4218162356217e-20*fs - 1.26859583357635e-16) + 3.21091305171869e-15);
a0 = Fuzz*(Fuzz*fs*(fs*(fs*(-2.57087433571955e-21*fs - 3.20282580029198e-16) - 1.59955479510613e-12) - 1.59265781983301e-11) + fs*(fs*(fs*(7.22415688337201e-22*fs + 1.15708148345401e-16) + 5.83730418035165e-13) + 5.81517816570128e-12)) + Sustain*(Fuzz*(Fuzz*fs*(fs*(fs*(-2.22731835703847e-20*fs - 1.15680872556631e-16) - 1.02110226030461e-14) - 8.86189120121937e-14) + fs*(fs*(fs*(2.63346198155234e-19*fs + 1.39560593212619e-15) + 1.23553821745518e-13) + 1.09557219057811e-12)) + fs*(fs*(fs*(2.00860283725342e-19*fs + 1.06638545237487e-15) + 1.10730441129884e-13) + 2.30413820563986e-12) + 1.30107041069324e-11) + fs*(fs*(fs*(1.84845864738235e-21*fs + 2.48814775695488e-16) + 1.25274019677064e-12) + 4.3094216014379e-11) + 3.05506357605318e-10;
a1 = Fuzz*(Fuzz*fs*(pow(fs,2)*(1.02834973428782e-20*fs + 6.40565160058397e-16) - 3.18531563966602e-11) + fs*(pow(fs,2)*(-2.8896627533488e-21*fs - 2.31416296690802e-16) + 1.16303563314026e-11)) + Sustain*(Fuzz*(Fuzz*fs*(pow(fs,2)*(8.9092734281539e-20*fs + 2.31361745113263e-16) - 1.77237824024387e-13) + fs*(pow(fs,2)*(-1.05338479262093e-18*fs - 2.79121186425238e-15) + 2.19114438115622e-12)) + fs*(pow(fs,2)*(-8.03441134901368e-19*fs - 2.13277090474974e-15) + 4.60827641127972e-12) + 5.20428164277295e-11) + fs*(pow(fs,2)*(-7.39383458952941e-21*fs - 4.97629551390976e-16) + 8.6188432028758e-11) + 1.22202543042127e-9;
a2 = Fuzz*(Fuzz*pow(fs,2)*(-1.54252460143173e-20*pow(fs,2) + 3.19910959021226e-12) + pow(fs,2)*(4.33449413002321e-21*pow(fs,2) - 1.16746083607033e-12)) + Sustain*(Fuzz*(Fuzz*pow(fs,2)*(-1.33639101422308e-19*pow(fs,2) + 2.04220452060922e-14) + pow(fs,2)*(1.5800771889314e-18*pow(fs,2) - 2.47107643491035e-13)) + pow(fs,2)*(1.20516170235205e-18*pow(fs,2) - 2.21460882259768e-13) + 7.80642246415943e-11) + pow(fs,2)*(1.10907518842941e-20*pow(fs,2) - 2.50548039354128e-12) + 1.83303814563191e-9;
a3 = Fuzz*(Fuzz*fs*(pow(fs,2)*(1.02834973428782e-20*fs - 6.40565160058397e-16) + 3.18531563966602e-11) + fs*(pow(fs,2)*(-2.8896627533488e-21*fs + 2.31416296690802e-16) - 1.16303563314026e-11)) + Sustain*(Fuzz*(Fuzz*fs*(pow(fs,2)*(8.9092734281539e-20*fs - 2.31361745113263e-16) + 1.77237824024387e-13) + fs*(pow(fs,2)*(-1.05338479262093e-18*fs + 2.79121186425238e-15) - 2.19114438115622e-12)) + fs*(pow(fs,2)*(-8.03441134901368e-19*fs + 2.13277090474974e-15) - 4.60827641127972e-12) + 5.20428164277295e-11) + fs*(pow(fs,2)*(-7.39383458952941e-21*fs + 4.97629551390976e-16) - 8.6188432028758e-11) + 1.22202543042127e-9;
a4 = Fuzz*(Fuzz*fs*(fs*(fs*(-2.57087433571955e-21*fs + 3.20282580029198e-16) - 1.59955479510613e-12) + 1.59265781983301e-11) + fs*(fs*(fs*(7.22415688337201e-22*fs - 1.15708148345401e-16) + 5.83730418035165e-13) - 5.81517816570128e-12)) + Sustain*(Fuzz*(Fuzz*fs*(fs*(fs*(-2.22731835703847e-20*fs + 1.15680872556631e-16) - 1.02110226030461e-14) + 8.86189120121937e-14) + fs*(fs*(fs*(2.63346198155234e-19*fs - 1.39560593212619e-15) + 1.23553821745518e-13) - 1.09557219057811e-12)) + fs*(fs*(fs*(2.00860283725342e-19*fs - 1.06638545237487e-15) + 1.10730441129884e-13) - 2.30413820563986e-12) + 1.30107041069324e-11) + fs*(fs*(fs*(1.84845864738235e-21*fs - 2.48814775695488e-16) + 1.25274019677064e-12) - 4.3094216014379e-11) + 3.05506357605318e-10;
};
|
48ebeb1d4346642327ac2c16ca5138fa5355593386f6c2b6343c327e940d8147 | brummer10/guitarix | fumaster.dsp | // generated automatically
// DO NOT MODIFY!
declare id "fumaster";
declare name "Fuzz Master";
declare category "Fuzz";
declare shortname "Fuzz Master";
declare description "Vintage Fuzz Master simulation";
declare insert_p "tranyclipper";
declare drywetbox "true";
declare volume_p "Level";
import("stdfaust.lib");
import("trany.lib");
process = pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0,b5/a0,b6/a0),(a1/a0,a2/a0,a3/a0,a4/a0,a5/a0,a6/a0)) with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
//wet = vslider("wet_dry[name:wet/dry][tooltip:percentage of processed signal in output signal]", 100, 0, 100, 1) : /(100);
//dry = 1 - wet;
//clip = tranystage(TB_7199P_68k,86.0,2700.0,3.571981) : tranystage(TB_7199P_68k,86.0,2700.0,3.571981) : tranystage(TB_7199P_68k,86.0,2700.0,3.571981) ;
Tone = vslider("Tone[name:Tone]", 0.5, 0, 0.99, 0.01) : Inverted(0) : si.smooth(s);
//Level = vslider("Level[name:Level]", 0.1, 0, 1, 0.01) : *(0.8) : Inverted(0) : si.smooth(s);
b0 = Tone*(pow(fs,5)*(-1.41775270516311e-27*fs + 4.71779589725812e-22) + pow(fs,5)*(-1.41775270516311e-29*fs + 4.71779589725812e-24)) + (0.1)*pow(fs,4)*(fs*(1.41775270516311e-27*fs - 4.70999825737972e-22) - 2.59478774349197e-19) + pow(fs,4)*(fs*(1.41775270516311e-29*fs - 4.70999825737972e-24) - 2.59478774349197e-21);
b1 = Tone*(pow(fs,5)*(8.50651623097868e-27*fs - 1.88711835890325e-21) + pow(fs,5)*(8.50651623097868e-29*fs - 1.88711835890325e-23)) + 0.1*pow(fs,4)*(fs*(-8.50651623097868e-27*fs + 1.88399930295189e-21) + 5.18957548698393e-19) + pow(fs,4)*(fs*(-8.50651623097868e-29*fs + 1.88399930295189e-23) + 5.18957548698393e-21);
b2 = Tone*(pow(fs,5)*(-2.12662905774467e-26*fs + 2.35889794862906e-21) + pow(fs,5)*(-2.12662905774467e-28*fs + 2.35889794862906e-23)) + 0.1*pow(fs,4)*(fs*(2.12662905774467e-26*fs - 2.35499912868986e-21) + 2.59478774349197e-19) + pow(fs,4)*(fs*(2.12662905774467e-28*fs - 2.35499912868986e-23) + 2.59478774349197e-21);
b3 = Tone*(2.83550541032623e-26*pow(fs,6) + 2.83550541032623e-28*pow(fs,6)) + 0.1*pow(fs,4)*(-2.83550541032623e-26*pow(fs,2) - 1.03791509739679e-18) + pow(fs,4)*(-2.83550541032623e-28*pow(fs,2) - 1.03791509739679e-20);
b4 = Tone*(pow(fs,5)*(-2.12662905774467e-26*fs - 2.35889794862906e-21) + pow(fs,5)*(-2.12662905774467e-28*fs - 2.35889794862906e-23)) + 0.1*pow(fs,4)*(fs*(2.12662905774467e-26*fs + 2.35499912868986e-21) + 2.59478774349197e-19) + pow(fs,4)*(fs*(2.12662905774467e-28*fs + 2.35499912868986e-23) + 2.59478774349197e-21);
b5 = Tone*(pow(fs,5)*(8.50651623097868e-27*fs + 1.88711835890325e-21) + pow(fs,5)*(8.50651623097868e-29*fs + 1.88711835890325e-23)) + 0.1*pow(fs,4)*(fs*(-8.50651623097868e-27*fs - 1.88399930295189e-21) + 5.18957548698393e-19) + pow(fs,4)*(fs*(-8.50651623097868e-29*fs - 1.88399930295189e-23) + 5.18957548698393e-21);
b6 = Tone*(pow(fs,5)*(-1.41775270516311e-27*fs - 4.71779589725812e-22) + pow(fs,5)*(-1.41775270516311e-29*fs - 4.71779589725812e-24)) + 0.1*pow(fs,4)*(fs*(1.41775270516311e-27*fs + 4.70999825737972e-22) - 2.59478774349197e-19) + pow(fs,4)*(fs*(1.41775270516311e-29*fs + 4.70999825737972e-24) - 2.59478774349197e-21);
a0 = Tone*(Tone*pow(fs,2)*(fs*(fs*(fs*(-1.00799506674223e-28*fs - 2.59175366383786e-25) - 4.35259230096405e-22) - 1.02583553103419e-19) - 2.16974948431515e-18) + fs*(fs*(fs*(fs*(fs*(-1.5016846937505e-31*fs + 4.96235474586462e-26) + 1.27917670111645e-22) + 2.16655787499057e-19) + 5.11414335446406e-17) + 1.08487474215758e-15)) + fs*(fs*(fs*(fs*(fs*(1.00949675143598e-28*fs + 3.20513868924941e-25) + 5.95381363906935e-22) + 3.72110810064138e-19) + 7.52873102578757e-17) + 3.94912717206244e-15) + 5.42437371078787e-14;
a1 = Tone*(Tone*pow(fs,2)*(pow(fs,2)*(fs*(6.0479704004534e-28*fs + 1.03670146553514e-24) + 8.70518460192809e-22) - 4.3394989686303e-18) + fs*(fs*(pow(fs,2)*(fs*(9.01010816250298e-31*fs - 1.98494189834585e-25) - 2.5583534022329e-22) + 1.02282867089281e-16) + 4.3394989686303e-15)) + fs*(fs*(pow(fs,2)*(fs*(-6.0569805086159e-28*fs - 1.28205547569977e-24) - 1.19076272781387e-21) + 1.50574620515751e-16) + 1.57965086882498e-14) + 3.25462422647273e-13;
a2 = Tone*(Tone*pow(fs,2)*(fs*(fs*(fs*(-1.51199260011335e-27*fs - 1.29587683191893e-24) + 4.35259230096405e-22) + 3.07750659310257e-19) + 2.16974948431515e-18) + fs*(fs*(fs*(fs*(fs*(-2.25252704062574e-30*fs + 2.48117737293231e-25) - 1.27917670111645e-22) - 6.4996736249717e-19) - 5.11414335446406e-17) + 5.42437371078788e-15)) + fs*(fs*(fs*(fs*(fs*(1.51424512715397e-27*fs + 1.60256934462471e-24) - 5.95381363906935e-22) - 1.11633243019242e-18) - 7.52873102578757e-17) + 1.97456358603122e-14) + 8.13656056618181e-13;
a3 = Tone*(Tone*pow(fs,2)*(pow(fs,2)*(2.01599013348447e-27*pow(fs,2) - 1.74103692038562e-21) + 8.6789979372606e-18) + pow(fs,2)*(pow(fs,2)*(3.00336938750099e-30*pow(fs,2) + 5.11670680446579e-22) - 2.04565734178562e-16)) + pow(fs,2)*(pow(fs,2)*(-2.01899350287197e-27*pow(fs,2) + 2.38152545562774e-21) - 3.01149241031503e-16) + 1.08487474215758e-12;
a4 = Tone*(Tone*pow(fs,2)*(fs*(fs*(fs*(-1.51199260011335e-27*fs + 1.29587683191893e-24) + 4.35259230096405e-22) - 3.07750659310257e-19) + 2.16974948431515e-18) + fs*(fs*(fs*(fs*(fs*(-2.25252704062574e-30*fs - 2.48117737293231e-25) - 1.27917670111645e-22) + 6.4996736249717e-19) - 5.11414335446406e-17) - 5.42437371078788e-15)) + fs*(fs*(fs*(fs*(fs*(1.51424512715397e-27*fs - 1.60256934462471e-24) - 5.95381363906935e-22) + 1.11633243019242e-18) - 7.52873102578757e-17) - 1.97456358603122e-14) + 8.13656056618181e-13;
a5 = Tone*(Tone*pow(fs,2)*(pow(fs,2)*(fs*(6.0479704004534e-28*fs - 1.03670146553514e-24) + 8.70518460192809e-22) - 4.3394989686303e-18) + fs*(fs*(pow(fs,2)*(fs*(9.01010816250298e-31*fs + 1.98494189834585e-25) - 2.5583534022329e-22) + 1.02282867089281e-16) - 4.3394989686303e-15)) + fs*(fs*(pow(fs,2)*(fs*(-6.0569805086159e-28*fs + 1.28205547569977e-24) - 1.19076272781387e-21) + 1.50574620515751e-16) - 1.57965086882498e-14) + 3.25462422647273e-13;
a6 = Tone*(Tone*pow(fs,2)*(fs*(fs*(fs*(-1.00799506674223e-28*fs + 2.59175366383786e-25) - 4.35259230096405e-22) + 1.02583553103419e-19) - 2.16974948431515e-18) + fs*(fs*(fs*(fs*(fs*(-1.5016846937505e-31*fs - 4.96235474586462e-26) + 1.27917670111645e-22) - 2.16655787499057e-19) + 5.11414335446406e-17) - 1.08487474215758e-15)) + fs*(fs*(fs*(fs*(fs*(1.00949675143598e-28*fs - 3.20513868924941e-25) + 5.95381363906935e-22) - 3.72110810064138e-19) + 7.52873102578757e-17) - 3.94912717206244e-15) + 5.42437371078787e-14;
};
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/plugins/fumaster.dsp | faust | generated automatically
DO NOT MODIFY!
wet = vslider("wet_dry[name:wet/dry][tooltip:percentage of processed signal in output signal]", 100, 0, 100, 1) : /(100);
dry = 1 - wet;
clip = tranystage(TB_7199P_68k,86.0,2700.0,3.571981) : tranystage(TB_7199P_68k,86.0,2700.0,3.571981) : tranystage(TB_7199P_68k,86.0,2700.0,3.571981) ;
Level = vslider("Level[name:Level]", 0.1, 0, 1, 0.01) : *(0.8) : Inverted(0) : si.smooth(s); | declare id "fumaster";
declare name "Fuzz Master";
declare category "Fuzz";
declare shortname "Fuzz Master";
declare description "Vintage Fuzz Master simulation";
declare insert_p "tranyclipper";
declare drywetbox "true";
declare volume_p "Level";
import("stdfaust.lib");
import("trany.lib");
process = pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0,b5/a0,b6/a0),(a1/a0,a2/a0,a3/a0,a4/a0,a5/a0,a6/a0)) with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
Tone = vslider("Tone[name:Tone]", 0.5, 0, 0.99, 0.01) : Inverted(0) : si.smooth(s);
b0 = Tone*(pow(fs,5)*(-1.41775270516311e-27*fs + 4.71779589725812e-22) + pow(fs,5)*(-1.41775270516311e-29*fs + 4.71779589725812e-24)) + (0.1)*pow(fs,4)*(fs*(1.41775270516311e-27*fs - 4.70999825737972e-22) - 2.59478774349197e-19) + pow(fs,4)*(fs*(1.41775270516311e-29*fs - 4.70999825737972e-24) - 2.59478774349197e-21);
b1 = Tone*(pow(fs,5)*(8.50651623097868e-27*fs - 1.88711835890325e-21) + pow(fs,5)*(8.50651623097868e-29*fs - 1.88711835890325e-23)) + 0.1*pow(fs,4)*(fs*(-8.50651623097868e-27*fs + 1.88399930295189e-21) + 5.18957548698393e-19) + pow(fs,4)*(fs*(-8.50651623097868e-29*fs + 1.88399930295189e-23) + 5.18957548698393e-21);
b2 = Tone*(pow(fs,5)*(-2.12662905774467e-26*fs + 2.35889794862906e-21) + pow(fs,5)*(-2.12662905774467e-28*fs + 2.35889794862906e-23)) + 0.1*pow(fs,4)*(fs*(2.12662905774467e-26*fs - 2.35499912868986e-21) + 2.59478774349197e-19) + pow(fs,4)*(fs*(2.12662905774467e-28*fs - 2.35499912868986e-23) + 2.59478774349197e-21);
b3 = Tone*(2.83550541032623e-26*pow(fs,6) + 2.83550541032623e-28*pow(fs,6)) + 0.1*pow(fs,4)*(-2.83550541032623e-26*pow(fs,2) - 1.03791509739679e-18) + pow(fs,4)*(-2.83550541032623e-28*pow(fs,2) - 1.03791509739679e-20);
b4 = Tone*(pow(fs,5)*(-2.12662905774467e-26*fs - 2.35889794862906e-21) + pow(fs,5)*(-2.12662905774467e-28*fs - 2.35889794862906e-23)) + 0.1*pow(fs,4)*(fs*(2.12662905774467e-26*fs + 2.35499912868986e-21) + 2.59478774349197e-19) + pow(fs,4)*(fs*(2.12662905774467e-28*fs + 2.35499912868986e-23) + 2.59478774349197e-21);
b5 = Tone*(pow(fs,5)*(8.50651623097868e-27*fs + 1.88711835890325e-21) + pow(fs,5)*(8.50651623097868e-29*fs + 1.88711835890325e-23)) + 0.1*pow(fs,4)*(fs*(-8.50651623097868e-27*fs - 1.88399930295189e-21) + 5.18957548698393e-19) + pow(fs,4)*(fs*(-8.50651623097868e-29*fs - 1.88399930295189e-23) + 5.18957548698393e-21);
b6 = Tone*(pow(fs,5)*(-1.41775270516311e-27*fs - 4.71779589725812e-22) + pow(fs,5)*(-1.41775270516311e-29*fs - 4.71779589725812e-24)) + 0.1*pow(fs,4)*(fs*(1.41775270516311e-27*fs + 4.70999825737972e-22) - 2.59478774349197e-19) + pow(fs,4)*(fs*(1.41775270516311e-29*fs + 4.70999825737972e-24) - 2.59478774349197e-21);
a0 = Tone*(Tone*pow(fs,2)*(fs*(fs*(fs*(-1.00799506674223e-28*fs - 2.59175366383786e-25) - 4.35259230096405e-22) - 1.02583553103419e-19) - 2.16974948431515e-18) + fs*(fs*(fs*(fs*(fs*(-1.5016846937505e-31*fs + 4.96235474586462e-26) + 1.27917670111645e-22) + 2.16655787499057e-19) + 5.11414335446406e-17) + 1.08487474215758e-15)) + fs*(fs*(fs*(fs*(fs*(1.00949675143598e-28*fs + 3.20513868924941e-25) + 5.95381363906935e-22) + 3.72110810064138e-19) + 7.52873102578757e-17) + 3.94912717206244e-15) + 5.42437371078787e-14;
a1 = Tone*(Tone*pow(fs,2)*(pow(fs,2)*(fs*(6.0479704004534e-28*fs + 1.03670146553514e-24) + 8.70518460192809e-22) - 4.3394989686303e-18) + fs*(fs*(pow(fs,2)*(fs*(9.01010816250298e-31*fs - 1.98494189834585e-25) - 2.5583534022329e-22) + 1.02282867089281e-16) + 4.3394989686303e-15)) + fs*(fs*(pow(fs,2)*(fs*(-6.0569805086159e-28*fs - 1.28205547569977e-24) - 1.19076272781387e-21) + 1.50574620515751e-16) + 1.57965086882498e-14) + 3.25462422647273e-13;
a2 = Tone*(Tone*pow(fs,2)*(fs*(fs*(fs*(-1.51199260011335e-27*fs - 1.29587683191893e-24) + 4.35259230096405e-22) + 3.07750659310257e-19) + 2.16974948431515e-18) + fs*(fs*(fs*(fs*(fs*(-2.25252704062574e-30*fs + 2.48117737293231e-25) - 1.27917670111645e-22) - 6.4996736249717e-19) - 5.11414335446406e-17) + 5.42437371078788e-15)) + fs*(fs*(fs*(fs*(fs*(1.51424512715397e-27*fs + 1.60256934462471e-24) - 5.95381363906935e-22) - 1.11633243019242e-18) - 7.52873102578757e-17) + 1.97456358603122e-14) + 8.13656056618181e-13;
a3 = Tone*(Tone*pow(fs,2)*(pow(fs,2)*(2.01599013348447e-27*pow(fs,2) - 1.74103692038562e-21) + 8.6789979372606e-18) + pow(fs,2)*(pow(fs,2)*(3.00336938750099e-30*pow(fs,2) + 5.11670680446579e-22) - 2.04565734178562e-16)) + pow(fs,2)*(pow(fs,2)*(-2.01899350287197e-27*pow(fs,2) + 2.38152545562774e-21) - 3.01149241031503e-16) + 1.08487474215758e-12;
a4 = Tone*(Tone*pow(fs,2)*(fs*(fs*(fs*(-1.51199260011335e-27*fs + 1.29587683191893e-24) + 4.35259230096405e-22) - 3.07750659310257e-19) + 2.16974948431515e-18) + fs*(fs*(fs*(fs*(fs*(-2.25252704062574e-30*fs - 2.48117737293231e-25) - 1.27917670111645e-22) + 6.4996736249717e-19) - 5.11414335446406e-17) - 5.42437371078788e-15)) + fs*(fs*(fs*(fs*(fs*(1.51424512715397e-27*fs - 1.60256934462471e-24) - 5.95381363906935e-22) + 1.11633243019242e-18) - 7.52873102578757e-17) - 1.97456358603122e-14) + 8.13656056618181e-13;
a5 = Tone*(Tone*pow(fs,2)*(pow(fs,2)*(fs*(6.0479704004534e-28*fs - 1.03670146553514e-24) + 8.70518460192809e-22) - 4.3394989686303e-18) + fs*(fs*(pow(fs,2)*(fs*(9.01010816250298e-31*fs + 1.98494189834585e-25) - 2.5583534022329e-22) + 1.02282867089281e-16) - 4.3394989686303e-15)) + fs*(fs*(pow(fs,2)*(fs*(-6.0569805086159e-28*fs + 1.28205547569977e-24) - 1.19076272781387e-21) + 1.50574620515751e-16) - 1.57965086882498e-14) + 3.25462422647273e-13;
a6 = Tone*(Tone*pow(fs,2)*(fs*(fs*(fs*(-1.00799506674223e-28*fs + 2.59175366383786e-25) - 4.35259230096405e-22) + 1.02583553103419e-19) - 2.16974948431515e-18) + fs*(fs*(fs*(fs*(fs*(-1.5016846937505e-31*fs - 4.96235474586462e-26) + 1.27917670111645e-22) - 2.16655787499057e-19) + 5.11414335446406e-17) - 1.08487474215758e-15)) + fs*(fs*(fs*(fs*(fs*(1.00949675143598e-28*fs - 3.20513868924941e-25) + 5.95381363906935e-22) - 3.72110810064138e-19) + 7.52873102578757e-17) - 3.94912717206244e-15) + 5.42437371078787e-14;
};
|
677fece36229288c7671d3280c8d338c89ee06d032c000a4f4226c2dc40fad13 | brummer10/guitarix | hornet.dsp | // generated automatically
// DO NOT MODIFY!
declare id "hornet";
declare name "Hornet";
declare category "Distortion";
declare description "Hornet simulation";
import("stdfaust.lib");
process = fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0)) : clip with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
a = 1.2715 - Fuzz ;
clip(x) = (0.4 * (min(0.7514,max(-0.4514,x))));
Volume = vslider("Volume[name:Volume]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
Sustain = vslider("Sustain[name:Sustain]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
Fuzz = vslider("Fuzz[name:Fuzz]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
b0 = Fuzz*(Fuzz*Volume*pow(fs,3)*(-3.36831187151837e-20*fs - 1.75582214579149e-16) + Volume*pow(fs,3)*(9.4649563589667e-21*fs + 4.93386022967413e-17)) + Sustain*(Fuzz*(Fuzz*Volume*pow(fs,3)*(2.89798007739403e-18*fs + 1.51064918927987e-14) + Volume*pow(fs,3)*(2.28655633153439e-18*fs + 1.19192830048069e-14)) + Volume*pow(fs,2)*(fs*(1.45891323583538e-19*fs + 7.40489463150802e-16) - 1.04296301457845e-13)) + Volume*pow(fs,2)*(fs*(2.4218162356217e-20*fs + 1.26859583357635e-16) + 3.21091305171869e-15);
b1 = Fuzz*(Fuzz*Volume*pow(fs,3)*(1.34732474860735e-19*fs + 3.51164429158298e-16) + Volume*pow(fs,3)*(-3.78598254358668e-20*fs - 9.86772045934826e-17)) + Sustain*(Fuzz*(Fuzz*Volume*pow(fs,3)*(-1.15919203095761e-17*fs - 3.02129837855973e-14) + Volume*pow(fs,3)*(-9.14622532613756e-18*fs - 2.38385660096139e-14)) + Volume*pow(fs,3)*(-5.83565294334152e-19*fs - 1.4809789263016e-15)) + Volume*pow(fs,3)*(-9.6872649424868e-20*fs - 2.53719166715271e-16);
b2 = Fuzz*(-2.02098712291102e-19*Fuzz*Volume*pow(fs,4) + 5.67897381538002e-20*Volume*pow(fs,4)) + Sustain*(Fuzz*(1.73878804643642e-17*Fuzz*Volume*pow(fs,4) + 1.37193379892063e-17*Volume*pow(fs,4)) + Volume*pow(fs,2)*(8.75347941501228e-19*pow(fs,2) + 2.08592602915691e-13)) + Volume*pow(fs,2)*(1.45308974137302e-19*pow(fs,2) - 6.42182610343738e-15);
b3 = Fuzz*(Fuzz*Volume*pow(fs,3)*(1.34732474860735e-19*fs - 3.51164429158298e-16) + Volume*pow(fs,3)*(-3.78598254358668e-20*fs + 9.86772045934826e-17)) + Sustain*(Fuzz*(Fuzz*Volume*pow(fs,3)*(-1.15919203095761e-17*fs + 3.02129837855973e-14) + Volume*pow(fs,3)*(-9.14622532613756e-18*fs + 2.38385660096139e-14)) + Volume*pow(fs,3)*(-5.83565294334152e-19*fs + 1.4809789263016e-15)) + Volume*pow(fs,3)*(-9.6872649424868e-20*fs + 2.53719166715271e-16);
b4 = Fuzz*(Fuzz*Volume*pow(fs,3)*(-3.36831187151837e-20*fs + 1.75582214579149e-16) + Volume*pow(fs,3)*(9.4649563589667e-21*fs - 4.93386022967413e-17)) + Sustain*(Fuzz*(Fuzz*Volume*pow(fs,3)*(2.89798007739403e-18*fs - 1.51064918927987e-14) + Volume*pow(fs,3)*(2.28655633153439e-18*fs - 1.19192830048069e-14)) + Volume*pow(fs,2)*(fs*(1.45891323583538e-19*fs - 7.40489463150802e-16) - 1.04296301457845e-13)) + Volume*pow(fs,2)*(fs*(2.4218162356217e-20*fs - 1.26859583357635e-16) + 3.21091305171869e-15);
a0 = Fuzz*(Fuzz*fs*(fs*(fs*(-2.57087433571955e-21*fs - 3.20282580029198e-16) - 1.59955479510613e-12) - 1.59265781983301e-11) + fs*(fs*(fs*(7.22415688337201e-22*fs + 1.15708148345401e-16) + 5.83730418035165e-13) + 5.81517816570128e-12)) + Sustain*(Fuzz*(Fuzz*fs*(fs*(fs*(-2.22731835703847e-20*fs - 1.15680872556631e-16) - 1.02110226030461e-14) - 8.86189120121937e-14) + fs*(fs*(fs*(2.63346198155234e-19*fs + 1.39560593212619e-15) + 1.23553821745518e-13) + 1.09557219057811e-12)) + fs*(fs*(fs*(2.00860283725342e-19*fs + 1.06638545237487e-15) + 1.10730441129884e-13) + 2.30413820563986e-12) + 1.30107041069324e-11) + fs*(fs*(fs*(1.84845864738235e-21*fs + 2.48814775695488e-16) + 1.25274019677064e-12) + 4.3094216014379e-11) + 3.05506357605318e-10;
a1 = Fuzz*(Fuzz*fs*(pow(fs,2)*(1.02834973428782e-20*fs + 6.40565160058397e-16) - 3.18531563966602e-11) + fs*(pow(fs,2)*(-2.8896627533488e-21*fs - 2.31416296690802e-16) + 1.16303563314026e-11)) + Sustain*(Fuzz*(Fuzz*fs*(pow(fs,2)*(8.9092734281539e-20*fs + 2.31361745113263e-16) - 1.77237824024387e-13) + fs*(pow(fs,2)*(-1.05338479262093e-18*fs - 2.79121186425238e-15) + 2.19114438115622e-12)) + fs*(pow(fs,2)*(-8.03441134901368e-19*fs - 2.13277090474974e-15) + 4.60827641127972e-12) + 5.20428164277295e-11) + fs*(pow(fs,2)*(-7.39383458952941e-21*fs - 4.97629551390976e-16) + 8.6188432028758e-11) + 1.22202543042127e-9;
a2 = Fuzz*(Fuzz*pow(fs,2)*(-1.54252460143173e-20*pow(fs,2) + 3.19910959021226e-12) + pow(fs,2)*(4.33449413002321e-21*pow(fs,2) - 1.16746083607033e-12)) + Sustain*(Fuzz*(Fuzz*pow(fs,2)*(-1.33639101422308e-19*pow(fs,2) + 2.04220452060922e-14) + pow(fs,2)*(1.5800771889314e-18*pow(fs,2) - 2.47107643491035e-13)) + pow(fs,2)*(1.20516170235205e-18*pow(fs,2) - 2.21460882259768e-13) + 7.80642246415943e-11) + pow(fs,2)*(1.10907518842941e-20*pow(fs,2) - 2.50548039354128e-12) + 1.83303814563191e-9;
a3 = Fuzz*(Fuzz*fs*(pow(fs,2)*(1.02834973428782e-20*fs - 6.40565160058397e-16) + 3.18531563966602e-11) + fs*(pow(fs,2)*(-2.8896627533488e-21*fs + 2.31416296690802e-16) - 1.16303563314026e-11)) + Sustain*(Fuzz*(Fuzz*fs*(pow(fs,2)*(8.9092734281539e-20*fs - 2.31361745113263e-16) + 1.77237824024387e-13) + fs*(pow(fs,2)*(-1.05338479262093e-18*fs + 2.79121186425238e-15) - 2.19114438115622e-12)) + fs*(pow(fs,2)*(-8.03441134901368e-19*fs + 2.13277090474974e-15) - 4.60827641127972e-12) + 5.20428164277295e-11) + fs*(pow(fs,2)*(-7.39383458952941e-21*fs + 4.97629551390976e-16) - 8.6188432028758e-11) + 1.22202543042127e-9;
a4 = Fuzz*(Fuzz*fs*(fs*(fs*(-2.57087433571955e-21*fs + 3.20282580029198e-16) - 1.59955479510613e-12) + 1.59265781983301e-11) + fs*(fs*(fs*(7.22415688337201e-22*fs - 1.15708148345401e-16) + 5.83730418035165e-13) - 5.81517816570128e-12)) + Sustain*(Fuzz*(Fuzz*fs*(fs*(fs*(-2.22731835703847e-20*fs + 1.15680872556631e-16) - 1.02110226030461e-14) + 8.86189120121937e-14) + fs*(fs*(fs*(2.63346198155234e-19*fs - 1.39560593212619e-15) + 1.23553821745518e-13) - 1.09557219057811e-12)) + fs*(fs*(fs*(2.00860283725342e-19*fs - 1.06638545237487e-15) + 1.10730441129884e-13) - 2.30413820563986e-12) + 1.30107041069324e-11) + fs*(fs*(fs*(1.84845864738235e-21*fs - 2.48814775695488e-16) + 1.25274019677064e-12) - 4.3094216014379e-11) + 3.05506357605318e-10;
};
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/hornet.dsp | faust | generated automatically
DO NOT MODIFY! | declare id "hornet";
declare name "Hornet";
declare category "Distortion";
declare description "Hornet simulation";
import("stdfaust.lib");
process = fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0)) : clip with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
a = 1.2715 - Fuzz ;
clip(x) = (0.4 * (min(0.7514,max(-0.4514,x))));
Volume = vslider("Volume[name:Volume]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
Sustain = vslider("Sustain[name:Sustain]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
Fuzz = vslider("Fuzz[name:Fuzz]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
b0 = Fuzz*(Fuzz*Volume*pow(fs,3)*(-3.36831187151837e-20*fs - 1.75582214579149e-16) + Volume*pow(fs,3)*(9.4649563589667e-21*fs + 4.93386022967413e-17)) + Sustain*(Fuzz*(Fuzz*Volume*pow(fs,3)*(2.89798007739403e-18*fs + 1.51064918927987e-14) + Volume*pow(fs,3)*(2.28655633153439e-18*fs + 1.19192830048069e-14)) + Volume*pow(fs,2)*(fs*(1.45891323583538e-19*fs + 7.40489463150802e-16) - 1.04296301457845e-13)) + Volume*pow(fs,2)*(fs*(2.4218162356217e-20*fs + 1.26859583357635e-16) + 3.21091305171869e-15);
b1 = Fuzz*(Fuzz*Volume*pow(fs,3)*(1.34732474860735e-19*fs + 3.51164429158298e-16) + Volume*pow(fs,3)*(-3.78598254358668e-20*fs - 9.86772045934826e-17)) + Sustain*(Fuzz*(Fuzz*Volume*pow(fs,3)*(-1.15919203095761e-17*fs - 3.02129837855973e-14) + Volume*pow(fs,3)*(-9.14622532613756e-18*fs - 2.38385660096139e-14)) + Volume*pow(fs,3)*(-5.83565294334152e-19*fs - 1.4809789263016e-15)) + Volume*pow(fs,3)*(-9.6872649424868e-20*fs - 2.53719166715271e-16);
b2 = Fuzz*(-2.02098712291102e-19*Fuzz*Volume*pow(fs,4) + 5.67897381538002e-20*Volume*pow(fs,4)) + Sustain*(Fuzz*(1.73878804643642e-17*Fuzz*Volume*pow(fs,4) + 1.37193379892063e-17*Volume*pow(fs,4)) + Volume*pow(fs,2)*(8.75347941501228e-19*pow(fs,2) + 2.08592602915691e-13)) + Volume*pow(fs,2)*(1.45308974137302e-19*pow(fs,2) - 6.42182610343738e-15);
b3 = Fuzz*(Fuzz*Volume*pow(fs,3)*(1.34732474860735e-19*fs - 3.51164429158298e-16) + Volume*pow(fs,3)*(-3.78598254358668e-20*fs + 9.86772045934826e-17)) + Sustain*(Fuzz*(Fuzz*Volume*pow(fs,3)*(-1.15919203095761e-17*fs + 3.02129837855973e-14) + Volume*pow(fs,3)*(-9.14622532613756e-18*fs + 2.38385660096139e-14)) + Volume*pow(fs,3)*(-5.83565294334152e-19*fs + 1.4809789263016e-15)) + Volume*pow(fs,3)*(-9.6872649424868e-20*fs + 2.53719166715271e-16);
b4 = Fuzz*(Fuzz*Volume*pow(fs,3)*(-3.36831187151837e-20*fs + 1.75582214579149e-16) + Volume*pow(fs,3)*(9.4649563589667e-21*fs - 4.93386022967413e-17)) + Sustain*(Fuzz*(Fuzz*Volume*pow(fs,3)*(2.89798007739403e-18*fs - 1.51064918927987e-14) + Volume*pow(fs,3)*(2.28655633153439e-18*fs - 1.19192830048069e-14)) + Volume*pow(fs,2)*(fs*(1.45891323583538e-19*fs - 7.40489463150802e-16) - 1.04296301457845e-13)) + Volume*pow(fs,2)*(fs*(2.4218162356217e-20*fs - 1.26859583357635e-16) + 3.21091305171869e-15);
a0 = Fuzz*(Fuzz*fs*(fs*(fs*(-2.57087433571955e-21*fs - 3.20282580029198e-16) - 1.59955479510613e-12) - 1.59265781983301e-11) + fs*(fs*(fs*(7.22415688337201e-22*fs + 1.15708148345401e-16) + 5.83730418035165e-13) + 5.81517816570128e-12)) + Sustain*(Fuzz*(Fuzz*fs*(fs*(fs*(-2.22731835703847e-20*fs - 1.15680872556631e-16) - 1.02110226030461e-14) - 8.86189120121937e-14) + fs*(fs*(fs*(2.63346198155234e-19*fs + 1.39560593212619e-15) + 1.23553821745518e-13) + 1.09557219057811e-12)) + fs*(fs*(fs*(2.00860283725342e-19*fs + 1.06638545237487e-15) + 1.10730441129884e-13) + 2.30413820563986e-12) + 1.30107041069324e-11) + fs*(fs*(fs*(1.84845864738235e-21*fs + 2.48814775695488e-16) + 1.25274019677064e-12) + 4.3094216014379e-11) + 3.05506357605318e-10;
a1 = Fuzz*(Fuzz*fs*(pow(fs,2)*(1.02834973428782e-20*fs + 6.40565160058397e-16) - 3.18531563966602e-11) + fs*(pow(fs,2)*(-2.8896627533488e-21*fs - 2.31416296690802e-16) + 1.16303563314026e-11)) + Sustain*(Fuzz*(Fuzz*fs*(pow(fs,2)*(8.9092734281539e-20*fs + 2.31361745113263e-16) - 1.77237824024387e-13) + fs*(pow(fs,2)*(-1.05338479262093e-18*fs - 2.79121186425238e-15) + 2.19114438115622e-12)) + fs*(pow(fs,2)*(-8.03441134901368e-19*fs - 2.13277090474974e-15) + 4.60827641127972e-12) + 5.20428164277295e-11) + fs*(pow(fs,2)*(-7.39383458952941e-21*fs - 4.97629551390976e-16) + 8.6188432028758e-11) + 1.22202543042127e-9;
a2 = Fuzz*(Fuzz*pow(fs,2)*(-1.54252460143173e-20*pow(fs,2) + 3.19910959021226e-12) + pow(fs,2)*(4.33449413002321e-21*pow(fs,2) - 1.16746083607033e-12)) + Sustain*(Fuzz*(Fuzz*pow(fs,2)*(-1.33639101422308e-19*pow(fs,2) + 2.04220452060922e-14) + pow(fs,2)*(1.5800771889314e-18*pow(fs,2) - 2.47107643491035e-13)) + pow(fs,2)*(1.20516170235205e-18*pow(fs,2) - 2.21460882259768e-13) + 7.80642246415943e-11) + pow(fs,2)*(1.10907518842941e-20*pow(fs,2) - 2.50548039354128e-12) + 1.83303814563191e-9;
a3 = Fuzz*(Fuzz*fs*(pow(fs,2)*(1.02834973428782e-20*fs - 6.40565160058397e-16) + 3.18531563966602e-11) + fs*(pow(fs,2)*(-2.8896627533488e-21*fs + 2.31416296690802e-16) - 1.16303563314026e-11)) + Sustain*(Fuzz*(Fuzz*fs*(pow(fs,2)*(8.9092734281539e-20*fs - 2.31361745113263e-16) + 1.77237824024387e-13) + fs*(pow(fs,2)*(-1.05338479262093e-18*fs + 2.79121186425238e-15) - 2.19114438115622e-12)) + fs*(pow(fs,2)*(-8.03441134901368e-19*fs + 2.13277090474974e-15) - 4.60827641127972e-12) + 5.20428164277295e-11) + fs*(pow(fs,2)*(-7.39383458952941e-21*fs + 4.97629551390976e-16) - 8.6188432028758e-11) + 1.22202543042127e-9;
a4 = Fuzz*(Fuzz*fs*(fs*(fs*(-2.57087433571955e-21*fs + 3.20282580029198e-16) - 1.59955479510613e-12) + 1.59265781983301e-11) + fs*(fs*(fs*(7.22415688337201e-22*fs - 1.15708148345401e-16) + 5.83730418035165e-13) - 5.81517816570128e-12)) + Sustain*(Fuzz*(Fuzz*fs*(fs*(fs*(-2.22731835703847e-20*fs + 1.15680872556631e-16) - 1.02110226030461e-14) + 8.86189120121937e-14) + fs*(fs*(fs*(2.63346198155234e-19*fs - 1.39560593212619e-15) + 1.23553821745518e-13) - 1.09557219057811e-12)) + fs*(fs*(fs*(2.00860283725342e-19*fs - 1.06638545237487e-15) + 1.10730441129884e-13) - 2.30413820563986e-12) + 1.30107041069324e-11) + fs*(fs*(fs*(1.84845864738235e-21*fs - 2.48814775695488e-16) + 1.25274019677064e-12) - 4.3094216014379e-11) + 3.05506357605318e-10;
};
|
9a6640247e839f5cabfbf9d7f260771d069f9ad2fe549fce3433d44db1b66560 | brummer10/guitarix | fumaster.dsp | // generated automatically
// DO NOT MODIFY!
declare id "fumaster";
declare name "Fuzz Master";
declare category "Distortion";
declare shortname "Fuzz Master";
declare description "Vintage Fuzz Master";
import("stdfaust.lib");
import("trany.lib");
process = pre : _<:*(dry),(*(wet) : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0,b5/a0,b6/a0),(a1/a0,a2/a0,a3/a0,a4/a0,a5/a0,a6/a0)): clip):>_ with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
wet = vslider("wet_dry[name:wet/dry][tooltip:percentage of processed signal in output signal]", 100, 0, 100, 1) : /(100);
dry = 1 - wet;
clip = tranystage(TB_7199P_68k,86.0,2700.0,3.571981) : tranystage(TB_7199P_68k,86.0,2700.0,3.571981) : tranystage(TB_7199P_68k,86.0,2700.0,3.571981) ;
Tone = vslider("Tone[name:Tone]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
Volume = vslider("Volume[name:Volume]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
b0 = Tone*(Volume*pow(fs,5)*(-1.41775270516311e-27*fs + 4.71779589725812e-22) + pow(fs,5)*(-1.41775270516311e-29*fs + 4.71779589725812e-24)) + Volume*pow(fs,4)*(fs*(1.41775270516311e-27*fs - 4.70999825737972e-22) - 2.59478774349197e-19) + pow(fs,4)*(fs*(1.41775270516311e-29*fs - 4.70999825737972e-24) - 2.59478774349197e-21);
b1 = Tone*(Volume*pow(fs,5)*(8.50651623097868e-27*fs - 1.88711835890325e-21) + pow(fs,5)*(8.50651623097868e-29*fs - 1.88711835890325e-23)) + Volume*pow(fs,4)*(fs*(-8.50651623097868e-27*fs + 1.88399930295189e-21) + 5.18957548698393e-19) + pow(fs,4)*(fs*(-8.50651623097868e-29*fs + 1.88399930295189e-23) + 5.18957548698393e-21);
b2 = Tone*(Volume*pow(fs,5)*(-2.12662905774467e-26*fs + 2.35889794862906e-21) + pow(fs,5)*(-2.12662905774467e-28*fs + 2.35889794862906e-23)) + Volume*pow(fs,4)*(fs*(2.12662905774467e-26*fs - 2.35499912868986e-21) + 2.59478774349197e-19) + pow(fs,4)*(fs*(2.12662905774467e-28*fs - 2.35499912868986e-23) + 2.59478774349197e-21);
b3 = Tone*(2.83550541032623e-26*Volume*pow(fs,6) + 2.83550541032623e-28*pow(fs,6)) + Volume*pow(fs,4)*(-2.83550541032623e-26*pow(fs,2) - 1.03791509739679e-18) + pow(fs,4)*(-2.83550541032623e-28*pow(fs,2) - 1.03791509739679e-20);
b4 = Tone*(Volume*pow(fs,5)*(-2.12662905774467e-26*fs - 2.35889794862906e-21) + pow(fs,5)*(-2.12662905774467e-28*fs - 2.35889794862906e-23)) + Volume*pow(fs,4)*(fs*(2.12662905774467e-26*fs + 2.35499912868986e-21) + 2.59478774349197e-19) + pow(fs,4)*(fs*(2.12662905774467e-28*fs + 2.35499912868986e-23) + 2.59478774349197e-21);
b5 = Tone*(Volume*pow(fs,5)*(8.50651623097868e-27*fs + 1.88711835890325e-21) + pow(fs,5)*(8.50651623097868e-29*fs + 1.88711835890325e-23)) + Volume*pow(fs,4)*(fs*(-8.50651623097868e-27*fs - 1.88399930295189e-21) + 5.18957548698393e-19) + pow(fs,4)*(fs*(-8.50651623097868e-29*fs - 1.88399930295189e-23) + 5.18957548698393e-21);
b6 = Tone*(Volume*pow(fs,5)*(-1.41775270516311e-27*fs - 4.71779589725812e-22) + pow(fs,5)*(-1.41775270516311e-29*fs - 4.71779589725812e-24)) + Volume*pow(fs,4)*(fs*(1.41775270516311e-27*fs + 4.70999825737972e-22) - 2.59478774349197e-19) + pow(fs,4)*(fs*(1.41775270516311e-29*fs + 4.70999825737972e-24) - 2.59478774349197e-21);
a0 = Tone*(Tone*pow(fs,2)*(fs*(fs*(fs*(-1.00799506674223e-28*fs - 2.59175366383786e-25) - 4.35259230096405e-22) - 1.02583553103419e-19) - 2.16974948431515e-18) + fs*(fs*(fs*(fs*(fs*(-1.5016846937505e-31*fs + 4.96235474586462e-26) + 1.27917670111645e-22) + 2.16655787499057e-19) + 5.11414335446406e-17) + 1.08487474215758e-15)) + fs*(fs*(fs*(fs*(fs*(1.00949675143598e-28*fs + 3.20513868924941e-25) + 5.95381363906935e-22) + 3.72110810064138e-19) + 7.52873102578757e-17) + 3.94912717206244e-15) + 5.42437371078787e-14;
a1 = Tone*(Tone*pow(fs,2)*(pow(fs,2)*(fs*(6.0479704004534e-28*fs + 1.03670146553514e-24) + 8.70518460192809e-22) - 4.3394989686303e-18) + fs*(fs*(pow(fs,2)*(fs*(9.01010816250298e-31*fs - 1.98494189834585e-25) - 2.5583534022329e-22) + 1.02282867089281e-16) + 4.3394989686303e-15)) + fs*(fs*(pow(fs,2)*(fs*(-6.0569805086159e-28*fs - 1.28205547569977e-24) - 1.19076272781387e-21) + 1.50574620515751e-16) + 1.57965086882498e-14) + 3.25462422647273e-13;
a2 = Tone*(Tone*pow(fs,2)*(fs*(fs*(fs*(-1.51199260011335e-27*fs - 1.29587683191893e-24) + 4.35259230096405e-22) + 3.07750659310257e-19) + 2.16974948431515e-18) + fs*(fs*(fs*(fs*(fs*(-2.25252704062574e-30*fs + 2.48117737293231e-25) - 1.27917670111645e-22) - 6.4996736249717e-19) - 5.11414335446406e-17) + 5.42437371078788e-15)) + fs*(fs*(fs*(fs*(fs*(1.51424512715397e-27*fs + 1.60256934462471e-24) - 5.95381363906935e-22) - 1.11633243019242e-18) - 7.52873102578757e-17) + 1.97456358603122e-14) + 8.13656056618181e-13;
a3 = Tone*(Tone*pow(fs,2)*(pow(fs,2)*(2.01599013348447e-27*pow(fs,2) - 1.74103692038562e-21) + 8.6789979372606e-18) + pow(fs,2)*(pow(fs,2)*(3.00336938750099e-30*pow(fs,2) + 5.11670680446579e-22) - 2.04565734178562e-16)) + pow(fs,2)*(pow(fs,2)*(-2.01899350287197e-27*pow(fs,2) + 2.38152545562774e-21) - 3.01149241031503e-16) + 1.08487474215758e-12;
a4 = Tone*(Tone*pow(fs,2)*(fs*(fs*(fs*(-1.51199260011335e-27*fs + 1.29587683191893e-24) + 4.35259230096405e-22) - 3.07750659310257e-19) + 2.16974948431515e-18) + fs*(fs*(fs*(fs*(fs*(-2.25252704062574e-30*fs - 2.48117737293231e-25) - 1.27917670111645e-22) + 6.4996736249717e-19) - 5.11414335446406e-17) - 5.42437371078788e-15)) + fs*(fs*(fs*(fs*(fs*(1.51424512715397e-27*fs - 1.60256934462471e-24) - 5.95381363906935e-22) + 1.11633243019242e-18) - 7.52873102578757e-17) - 1.97456358603122e-14) + 8.13656056618181e-13;
a5 = Tone*(Tone*pow(fs,2)*(pow(fs,2)*(fs*(6.0479704004534e-28*fs - 1.03670146553514e-24) + 8.70518460192809e-22) - 4.3394989686303e-18) + fs*(fs*(pow(fs,2)*(fs*(9.01010816250298e-31*fs + 1.98494189834585e-25) - 2.5583534022329e-22) + 1.02282867089281e-16) - 4.3394989686303e-15)) + fs*(fs*(pow(fs,2)*(fs*(-6.0569805086159e-28*fs + 1.28205547569977e-24) - 1.19076272781387e-21) + 1.50574620515751e-16) - 1.57965086882498e-14) + 3.25462422647273e-13;
a6 = Tone*(Tone*pow(fs,2)*(fs*(fs*(fs*(-1.00799506674223e-28*fs + 2.59175366383786e-25) - 4.35259230096405e-22) + 1.02583553103419e-19) - 2.16974948431515e-18) + fs*(fs*(fs*(fs*(fs*(-1.5016846937505e-31*fs - 4.96235474586462e-26) + 1.27917670111645e-22) - 2.16655787499057e-19) + 5.11414335446406e-17) - 1.08487474215758e-15)) + fs*(fs*(fs*(fs*(fs*(1.00949675143598e-28*fs - 3.20513868924941e-25) + 5.95381363906935e-22) - 3.72110810064138e-19) + 7.52873102578757e-17) - 3.94912717206244e-15) + 5.42437371078787e-14;
};
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/fumaster.dsp | faust | generated automatically
DO NOT MODIFY! | declare id "fumaster";
declare name "Fuzz Master";
declare category "Distortion";
declare shortname "Fuzz Master";
declare description "Vintage Fuzz Master";
import("stdfaust.lib");
import("trany.lib");
process = pre : _<:*(dry),(*(wet) : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0,b5/a0,b6/a0),(a1/a0,a2/a0,a3/a0,a4/a0,a5/a0,a6/a0)): clip):>_ with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
wet = vslider("wet_dry[name:wet/dry][tooltip:percentage of processed signal in output signal]", 100, 0, 100, 1) : /(100);
dry = 1 - wet;
clip = tranystage(TB_7199P_68k,86.0,2700.0,3.571981) : tranystage(TB_7199P_68k,86.0,2700.0,3.571981) : tranystage(TB_7199P_68k,86.0,2700.0,3.571981) ;
Tone = vslider("Tone[name:Tone]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
Volume = vslider("Volume[name:Volume]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
b0 = Tone*(Volume*pow(fs,5)*(-1.41775270516311e-27*fs + 4.71779589725812e-22) + pow(fs,5)*(-1.41775270516311e-29*fs + 4.71779589725812e-24)) + Volume*pow(fs,4)*(fs*(1.41775270516311e-27*fs - 4.70999825737972e-22) - 2.59478774349197e-19) + pow(fs,4)*(fs*(1.41775270516311e-29*fs - 4.70999825737972e-24) - 2.59478774349197e-21);
b1 = Tone*(Volume*pow(fs,5)*(8.50651623097868e-27*fs - 1.88711835890325e-21) + pow(fs,5)*(8.50651623097868e-29*fs - 1.88711835890325e-23)) + Volume*pow(fs,4)*(fs*(-8.50651623097868e-27*fs + 1.88399930295189e-21) + 5.18957548698393e-19) + pow(fs,4)*(fs*(-8.50651623097868e-29*fs + 1.88399930295189e-23) + 5.18957548698393e-21);
b2 = Tone*(Volume*pow(fs,5)*(-2.12662905774467e-26*fs + 2.35889794862906e-21) + pow(fs,5)*(-2.12662905774467e-28*fs + 2.35889794862906e-23)) + Volume*pow(fs,4)*(fs*(2.12662905774467e-26*fs - 2.35499912868986e-21) + 2.59478774349197e-19) + pow(fs,4)*(fs*(2.12662905774467e-28*fs - 2.35499912868986e-23) + 2.59478774349197e-21);
b3 = Tone*(2.83550541032623e-26*Volume*pow(fs,6) + 2.83550541032623e-28*pow(fs,6)) + Volume*pow(fs,4)*(-2.83550541032623e-26*pow(fs,2) - 1.03791509739679e-18) + pow(fs,4)*(-2.83550541032623e-28*pow(fs,2) - 1.03791509739679e-20);
b4 = Tone*(Volume*pow(fs,5)*(-2.12662905774467e-26*fs - 2.35889794862906e-21) + pow(fs,5)*(-2.12662905774467e-28*fs - 2.35889794862906e-23)) + Volume*pow(fs,4)*(fs*(2.12662905774467e-26*fs + 2.35499912868986e-21) + 2.59478774349197e-19) + pow(fs,4)*(fs*(2.12662905774467e-28*fs + 2.35499912868986e-23) + 2.59478774349197e-21);
b5 = Tone*(Volume*pow(fs,5)*(8.50651623097868e-27*fs + 1.88711835890325e-21) + pow(fs,5)*(8.50651623097868e-29*fs + 1.88711835890325e-23)) + Volume*pow(fs,4)*(fs*(-8.50651623097868e-27*fs - 1.88399930295189e-21) + 5.18957548698393e-19) + pow(fs,4)*(fs*(-8.50651623097868e-29*fs - 1.88399930295189e-23) + 5.18957548698393e-21);
b6 = Tone*(Volume*pow(fs,5)*(-1.41775270516311e-27*fs - 4.71779589725812e-22) + pow(fs,5)*(-1.41775270516311e-29*fs - 4.71779589725812e-24)) + Volume*pow(fs,4)*(fs*(1.41775270516311e-27*fs + 4.70999825737972e-22) - 2.59478774349197e-19) + pow(fs,4)*(fs*(1.41775270516311e-29*fs + 4.70999825737972e-24) - 2.59478774349197e-21);
a0 = Tone*(Tone*pow(fs,2)*(fs*(fs*(fs*(-1.00799506674223e-28*fs - 2.59175366383786e-25) - 4.35259230096405e-22) - 1.02583553103419e-19) - 2.16974948431515e-18) + fs*(fs*(fs*(fs*(fs*(-1.5016846937505e-31*fs + 4.96235474586462e-26) + 1.27917670111645e-22) + 2.16655787499057e-19) + 5.11414335446406e-17) + 1.08487474215758e-15)) + fs*(fs*(fs*(fs*(fs*(1.00949675143598e-28*fs + 3.20513868924941e-25) + 5.95381363906935e-22) + 3.72110810064138e-19) + 7.52873102578757e-17) + 3.94912717206244e-15) + 5.42437371078787e-14;
a1 = Tone*(Tone*pow(fs,2)*(pow(fs,2)*(fs*(6.0479704004534e-28*fs + 1.03670146553514e-24) + 8.70518460192809e-22) - 4.3394989686303e-18) + fs*(fs*(pow(fs,2)*(fs*(9.01010816250298e-31*fs - 1.98494189834585e-25) - 2.5583534022329e-22) + 1.02282867089281e-16) + 4.3394989686303e-15)) + fs*(fs*(pow(fs,2)*(fs*(-6.0569805086159e-28*fs - 1.28205547569977e-24) - 1.19076272781387e-21) + 1.50574620515751e-16) + 1.57965086882498e-14) + 3.25462422647273e-13;
a2 = Tone*(Tone*pow(fs,2)*(fs*(fs*(fs*(-1.51199260011335e-27*fs - 1.29587683191893e-24) + 4.35259230096405e-22) + 3.07750659310257e-19) + 2.16974948431515e-18) + fs*(fs*(fs*(fs*(fs*(-2.25252704062574e-30*fs + 2.48117737293231e-25) - 1.27917670111645e-22) - 6.4996736249717e-19) - 5.11414335446406e-17) + 5.42437371078788e-15)) + fs*(fs*(fs*(fs*(fs*(1.51424512715397e-27*fs + 1.60256934462471e-24) - 5.95381363906935e-22) - 1.11633243019242e-18) - 7.52873102578757e-17) + 1.97456358603122e-14) + 8.13656056618181e-13;
a3 = Tone*(Tone*pow(fs,2)*(pow(fs,2)*(2.01599013348447e-27*pow(fs,2) - 1.74103692038562e-21) + 8.6789979372606e-18) + pow(fs,2)*(pow(fs,2)*(3.00336938750099e-30*pow(fs,2) + 5.11670680446579e-22) - 2.04565734178562e-16)) + pow(fs,2)*(pow(fs,2)*(-2.01899350287197e-27*pow(fs,2) + 2.38152545562774e-21) - 3.01149241031503e-16) + 1.08487474215758e-12;
a4 = Tone*(Tone*pow(fs,2)*(fs*(fs*(fs*(-1.51199260011335e-27*fs + 1.29587683191893e-24) + 4.35259230096405e-22) - 3.07750659310257e-19) + 2.16974948431515e-18) + fs*(fs*(fs*(fs*(fs*(-2.25252704062574e-30*fs - 2.48117737293231e-25) - 1.27917670111645e-22) + 6.4996736249717e-19) - 5.11414335446406e-17) - 5.42437371078788e-15)) + fs*(fs*(fs*(fs*(fs*(1.51424512715397e-27*fs - 1.60256934462471e-24) - 5.95381363906935e-22) + 1.11633243019242e-18) - 7.52873102578757e-17) - 1.97456358603122e-14) + 8.13656056618181e-13;
a5 = Tone*(Tone*pow(fs,2)*(pow(fs,2)*(fs*(6.0479704004534e-28*fs - 1.03670146553514e-24) + 8.70518460192809e-22) - 4.3394989686303e-18) + fs*(fs*(pow(fs,2)*(fs*(9.01010816250298e-31*fs + 1.98494189834585e-25) - 2.5583534022329e-22) + 1.02282867089281e-16) - 4.3394989686303e-15)) + fs*(fs*(pow(fs,2)*(fs*(-6.0569805086159e-28*fs + 1.28205547569977e-24) - 1.19076272781387e-21) + 1.50574620515751e-16) - 1.57965086882498e-14) + 3.25462422647273e-13;
a6 = Tone*(Tone*pow(fs,2)*(fs*(fs*(fs*(-1.00799506674223e-28*fs + 2.59175366383786e-25) - 4.35259230096405e-22) + 1.02583553103419e-19) - 2.16974948431515e-18) + fs*(fs*(fs*(fs*(fs*(-1.5016846937505e-31*fs - 4.96235474586462e-26) + 1.27917670111645e-22) - 2.16655787499057e-19) + 5.11414335446406e-17) - 1.08487474215758e-15)) + fs*(fs*(fs*(fs*(fs*(1.00949675143598e-28*fs - 3.20513868924941e-25) + 5.95381363906935e-22) - 3.72110810064138e-19) + 7.52873102578757e-17) - 3.94912717206244e-15) + 5.42437371078787e-14;
};
|
3ed7a1773d01bb9535af343bc62450805294ae76209fa235702fed41bc8ab33f | brummer10/guitarix | mbcs.dsp | declare id "mbcs";
declare name "Multi Band Compressor Stereo";
declare shortname "MB Comp St";
declare category "Guitar Effects";
declare description "Multi Band Compressor contributed by kokoko3k";
import("stdfaust.lib");
import("reducemaps.lib");
sel1 = hslider("Mode1[enum:Compress|Bypass|Mute][tooltip: Compress or Mute the selected band, or Bypass The Compressor]",1,1,3,1);
sel2 = hslider("Mode2[enum:Compress|Bypass|Mute][tooltip: Compress or Mute the selected band, or Bypass The Compressor]",1,1,3,1);
sel3 = hslider("Mode3[enum:Compress|Bypass|Mute][tooltip: Compress or Mute the selected band, or Bypass The Compressor]",1,1,3,1);
sel4 = hslider("Mode4[enum:Compress|Bypass|Mute][tooltip: Compress or Mute the selected band, or Bypass The Compressor]",1,1,3,1);
sel5 = hslider("Mode5[enum:Compress|Bypass|Mute][tooltip: Compress or Mute the selected band, or Bypass The Compressor]",1,1,3,1);
not(x) = abs(x-1);
mute1 = not(max(0,sel1-2));
mute2 = not(max(0,sel2-2));
mute3 = not(max(0,sel3-2));
mute4 = not(max(0,sel4-2));
mute5 = not(max(0,sel5-2));
bypass(switch, block) = _ <: select2(switch, _, block);
bswitch1 = max(0,sel1-1);
bswitch2 = max(0,sel2-1);
bswitch3 = max(0,sel3-1);
bswitch4 = max(0,sel4-1);
bswitch5 = max(0,sel5-1);
vmeter1(x,y) = attach(x, envelop(abs(x)+abs(y)) : vbargraph("v1[nomidi][log][tooltip: Sum of Band1 ]", -70, +5)),y;
vmeter2(x,y) = attach(x, envelop(abs(x)+abs(y)) : vbargraph("v2[nomidi][log][tooltip: Sum of Band2 ]", -70, +5)),y;
vmeter3(x,y) = attach(x, envelop(abs(x)+abs(y)) : vbargraph("v3[nomidi][log][tooltip: Sum of Band3 ]", -70, +5)),y;
vmeter4(x,y) = attach(x, envelop(abs(x)+abs(y)) : vbargraph("v4[nomidi][log][tooltip: Sum of Band4 ]", -70, +5)),y;
vmeter5(x,y) = attach(x, envelop(abs(x)+abs(y)) : vbargraph("v5[nomidi][log][tooltip: Sum of Band5 ]", -70, +5)),y;
envelop = _ : max ~ (1.0/ma.SR) : mean(4096) : *(0.5); // : max(ba.db2linear(-70)) : ba.linear2db;
//Stereo
process = (_,_):geqs: ( gcomp5s , gcomp4s , gcomp3s, gcomp2s, gcomp1s) :>(_,_) with {
gcomp1s = ba.bypass2(bswitch1,co.compressor_stereo(ratio1,-push1,attack1,release1)):*(Makeup1),*(Makeup1) : vmeter1;
gcomp2s = ba.bypass2(bswitch2,co.compressor_stereo(ratio2,-push2,attack2,release2)):*(Makeup2),*(Makeup2) : vmeter2;
gcomp3s = ba.bypass2(bswitch3,co.compressor_stereo(ratio3,-push3,attack3,release3)):*(Makeup3),*(Makeup3) : vmeter3;
gcomp4s = ba.bypass2(bswitch4,co.compressor_stereo(ratio4,-push4,attack4,release4)):*(Makeup4),*(Makeup4) : vmeter4;
gcomp5s = ba.bypass2(bswitch5,co.compressor_stereo(ratio5,-push5,attack5,release5)):*(Makeup5),*(Makeup5) : vmeter5;
};
hifr1 =hslider("crossover_b1_b2 [log][name:Crossover B1-B2 (hz)][tooltip: Crossover fi.bandpass frequency]" ,80 , 20, 20000, 1.08);
hifr2 =hslider("crossover_b2_b3 [log][name:Crossover B2-B3 (hz)][tooltip: Crossover fi.bandpass frequency]",210,20,20000,1.08);
hifr3 =hslider("crossover_b3_b4 [log][name:Crossover B3-B4 (hz)][tooltip: Crossover fi.bandpass frequency]",1700,20,20000,1.08);
hifr4 =hslider("crossover_b4_b5 [log][name:Crossover B4-B5 (hz)][tooltip: Crossover fi.bandpass frequency]",5000,20,20000,1.08);
geq = fi.filterbank(3, (hifr1,hifr2,hifr3,hifr4));
cross5 = _,!,!,!,!,_,!,!,!,!,!,_,!,!,!,!,_,!,!,!,!,!,_,!,!,!,!,_,!,!,!,!,!,_,!,!,!,!,_,!,!,!,!,!,_,!,!,!,!,_ ;
geqs = (geq,geq) <: cross5;
ratio1 = hslider("[9] Ratio1 [tooltip: Compression ratio]",2,1,100,0.1);
attack1 = hslider("[A] Attack1 [tooltip: Time before the compressor starts to kick in]", 0.012, 0.001, 1, 0.001);
release1 = hslider("[B] Release1 [tooltip: Time before the compressor releases the sound]", 1.25, 0.01, 10, 0.01);
ratio2 = hslider("[9] Ratio2 [tooltip: Compression ratio]",2,1,100,0.1);
attack2 = hslider("[A] Attack2 [tooltip: Time before the compressor starts to kick in]", 0.012, 0.001, 1, 0.001);
release2 = hslider("[B] Release2 [tooltip: Time before the compressor releases the sound]", 1.25, 0.01, 10, 0.01);
ratio3 = hslider("[9] Ratio3 [tooltip: Compression ratio]",2,1,100,0.1);
attack3 = hslider("[A] Attack3 [tooltip: Time before the compressor starts to kick in]", 0.012, 0.001, 1, 0.001);
release3 = hslider("[B] Release3 [tooltip: Time before the compressor releases the sound]", 1.25, 0.01, 10, 0.01);
ratio4 = hslider("[9] Ratio4 [tooltip: Compression ratio]",2,1,100,0.1);
attack4 = hslider("[A] Attack4 [tooltip: Time before the compressor starts to kick in]", 0.012, 0.001, 1, 0.001);
release4 = hslider("[B] Release4 [tooltip: Time before the compressor releases the sound]", 1.25, 0.01, 10, 0.01);
ratio5 = hslider("[9] Ratio5 [tooltip: Compression ratio]",2,1,100,0.1);
attack5 = hslider("[A] Attack5 [tooltip: Time before the compressor starts to kick in]", 0.012, 0.001, 1, 0.001);
release5 = hslider("[B] Release5 [tooltip: Time before the compressor releases the sound]", 1.25, 0.01, 10, 0.01);
push1 = hslider("[5] Makeup1 [tooltip: Post amplification and threshold]" , 13, -50, +50, 0.1) ; // threshold-=push ; makeup+=push
push2 = hslider("[5] Makeup2 [tooltip: Post amplification and threshold]" , 10, -50, +50, 0.1) ; // threshold-=push ; makeup+=push
push3 = hslider("[5] Makeup3 [tooltip: Post amplification and threshold]" , 4, -50, +50, 0.1) ; // threshold-=push ; makeup+=push
push4 = hslider("[5] Makeup4 [tooltip: Post amplification and threshold]" , 8, -50, +50, 0.1) ; // threshold-=push ; makeup+=push
push5 = hslider("[5] Makeup5 [tooltip: Post amplification and threshold]" , 11, -50, +50, 0.1) ; // threshold-=push ; makeup+=push
safe1 = hslider("[6] Makeup-Threshold1 [tooltip: Threshold correction, an anticlip measure]" , 2, 0, +10, 0.1) ; // makeup-=safe
safe2 = hslider("[6] Makeup-Threshold2 [tooltip: Threshold correction, an anticlip measure]" , 2, 0, +10, 0.1) ; // makeup-=safe
safe3 = hslider("[6] Makeup-Threshold3 [tooltip: Threshold correction, an anticlip measure]" , 2, 0, +10, 0.1) ; // makeup-=safe
safe4 = hslider("[6] Makeup-Threshold4 [tooltip: Threshold correction, an anticlip measure]" , 2, 0, +10, 0.1) ; // makeup-=safe
safe5 = hslider("[6] Makeup-Threshold5 [tooltip: Threshold correction, an anticlip measure]" , 2, 0, +10, 0.1) ; // makeup-=safe
Makeup1 = mute1* (not(bswitch1)*(push1-safe1) : ba.db2linear : si.smooth(0.999));
Makeup2 = mute2* (not(bswitch2)*(push2-safe2) : ba.db2linear : si.smooth(0.999));
Makeup3 = mute3* (not(bswitch3)*(push3-safe3) : ba.db2linear : si.smooth(0.999));
Makeup4 = mute4* (not(bswitch4)*(push4-safe4) : ba.db2linear : si.smooth(0.999));
Makeup5 = mute5* (not(bswitch5)*(push5-safe5) : ba.db2linear : si.smooth(0.999));
//Low end headsets: 13,10,4,8,11 (split 80,210,1700,5000)
//Mid-high end headsets: 17,20.5,20,10.5,10 (split 44,180,800,5000)
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/plugins/mbcs.dsp | faust | : max(ba.db2linear(-70)) : ba.linear2db;
Stereo
threshold-=push ; makeup+=push
threshold-=push ; makeup+=push
threshold-=push ; makeup+=push
threshold-=push ; makeup+=push
threshold-=push ; makeup+=push
makeup-=safe
makeup-=safe
makeup-=safe
makeup-=safe
makeup-=safe
Low end headsets: 13,10,4,8,11 (split 80,210,1700,5000)
Mid-high end headsets: 17,20.5,20,10.5,10 (split 44,180,800,5000) | declare id "mbcs";
declare name "Multi Band Compressor Stereo";
declare shortname "MB Comp St";
declare category "Guitar Effects";
declare description "Multi Band Compressor contributed by kokoko3k";
import("stdfaust.lib");
import("reducemaps.lib");
sel1 = hslider("Mode1[enum:Compress|Bypass|Mute][tooltip: Compress or Mute the selected band, or Bypass The Compressor]",1,1,3,1);
sel2 = hslider("Mode2[enum:Compress|Bypass|Mute][tooltip: Compress or Mute the selected band, or Bypass The Compressor]",1,1,3,1);
sel3 = hslider("Mode3[enum:Compress|Bypass|Mute][tooltip: Compress or Mute the selected band, or Bypass The Compressor]",1,1,3,1);
sel4 = hslider("Mode4[enum:Compress|Bypass|Mute][tooltip: Compress or Mute the selected band, or Bypass The Compressor]",1,1,3,1);
sel5 = hslider("Mode5[enum:Compress|Bypass|Mute][tooltip: Compress or Mute the selected band, or Bypass The Compressor]",1,1,3,1);
not(x) = abs(x-1);
mute1 = not(max(0,sel1-2));
mute2 = not(max(0,sel2-2));
mute3 = not(max(0,sel3-2));
mute4 = not(max(0,sel4-2));
mute5 = not(max(0,sel5-2));
bypass(switch, block) = _ <: select2(switch, _, block);
bswitch1 = max(0,sel1-1);
bswitch2 = max(0,sel2-1);
bswitch3 = max(0,sel3-1);
bswitch4 = max(0,sel4-1);
bswitch5 = max(0,sel5-1);
vmeter1(x,y) = attach(x, envelop(abs(x)+abs(y)) : vbargraph("v1[nomidi][log][tooltip: Sum of Band1 ]", -70, +5)),y;
vmeter2(x,y) = attach(x, envelop(abs(x)+abs(y)) : vbargraph("v2[nomidi][log][tooltip: Sum of Band2 ]", -70, +5)),y;
vmeter3(x,y) = attach(x, envelop(abs(x)+abs(y)) : vbargraph("v3[nomidi][log][tooltip: Sum of Band3 ]", -70, +5)),y;
vmeter4(x,y) = attach(x, envelop(abs(x)+abs(y)) : vbargraph("v4[nomidi][log][tooltip: Sum of Band4 ]", -70, +5)),y;
vmeter5(x,y) = attach(x, envelop(abs(x)+abs(y)) : vbargraph("v5[nomidi][log][tooltip: Sum of Band5 ]", -70, +5)),y;
process = (_,_):geqs: ( gcomp5s , gcomp4s , gcomp3s, gcomp2s, gcomp1s) :>(_,_) with {
gcomp1s = ba.bypass2(bswitch1,co.compressor_stereo(ratio1,-push1,attack1,release1)):*(Makeup1),*(Makeup1) : vmeter1;
gcomp2s = ba.bypass2(bswitch2,co.compressor_stereo(ratio2,-push2,attack2,release2)):*(Makeup2),*(Makeup2) : vmeter2;
gcomp3s = ba.bypass2(bswitch3,co.compressor_stereo(ratio3,-push3,attack3,release3)):*(Makeup3),*(Makeup3) : vmeter3;
gcomp4s = ba.bypass2(bswitch4,co.compressor_stereo(ratio4,-push4,attack4,release4)):*(Makeup4),*(Makeup4) : vmeter4;
gcomp5s = ba.bypass2(bswitch5,co.compressor_stereo(ratio5,-push5,attack5,release5)):*(Makeup5),*(Makeup5) : vmeter5;
};
hifr1 =hslider("crossover_b1_b2 [log][name:Crossover B1-B2 (hz)][tooltip: Crossover fi.bandpass frequency]" ,80 , 20, 20000, 1.08);
hifr2 =hslider("crossover_b2_b3 [log][name:Crossover B2-B3 (hz)][tooltip: Crossover fi.bandpass frequency]",210,20,20000,1.08);
hifr3 =hslider("crossover_b3_b4 [log][name:Crossover B3-B4 (hz)][tooltip: Crossover fi.bandpass frequency]",1700,20,20000,1.08);
hifr4 =hslider("crossover_b4_b5 [log][name:Crossover B4-B5 (hz)][tooltip: Crossover fi.bandpass frequency]",5000,20,20000,1.08);
geq = fi.filterbank(3, (hifr1,hifr2,hifr3,hifr4));
cross5 = _,!,!,!,!,_,!,!,!,!,!,_,!,!,!,!,_,!,!,!,!,!,_,!,!,!,!,_,!,!,!,!,!,_,!,!,!,!,_,!,!,!,!,!,_,!,!,!,!,_ ;
geqs = (geq,geq) <: cross5;
ratio1 = hslider("[9] Ratio1 [tooltip: Compression ratio]",2,1,100,0.1);
attack1 = hslider("[A] Attack1 [tooltip: Time before the compressor starts to kick in]", 0.012, 0.001, 1, 0.001);
release1 = hslider("[B] Release1 [tooltip: Time before the compressor releases the sound]", 1.25, 0.01, 10, 0.01);
ratio2 = hslider("[9] Ratio2 [tooltip: Compression ratio]",2,1,100,0.1);
attack2 = hslider("[A] Attack2 [tooltip: Time before the compressor starts to kick in]", 0.012, 0.001, 1, 0.001);
release2 = hslider("[B] Release2 [tooltip: Time before the compressor releases the sound]", 1.25, 0.01, 10, 0.01);
ratio3 = hslider("[9] Ratio3 [tooltip: Compression ratio]",2,1,100,0.1);
attack3 = hslider("[A] Attack3 [tooltip: Time before the compressor starts to kick in]", 0.012, 0.001, 1, 0.001);
release3 = hslider("[B] Release3 [tooltip: Time before the compressor releases the sound]", 1.25, 0.01, 10, 0.01);
ratio4 = hslider("[9] Ratio4 [tooltip: Compression ratio]",2,1,100,0.1);
attack4 = hslider("[A] Attack4 [tooltip: Time before the compressor starts to kick in]", 0.012, 0.001, 1, 0.001);
release4 = hslider("[B] Release4 [tooltip: Time before the compressor releases the sound]", 1.25, 0.01, 10, 0.01);
ratio5 = hslider("[9] Ratio5 [tooltip: Compression ratio]",2,1,100,0.1);
attack5 = hslider("[A] Attack5 [tooltip: Time before the compressor starts to kick in]", 0.012, 0.001, 1, 0.001);
release5 = hslider("[B] Release5 [tooltip: Time before the compressor releases the sound]", 1.25, 0.01, 10, 0.01);
Makeup1 = mute1* (not(bswitch1)*(push1-safe1) : ba.db2linear : si.smooth(0.999));
Makeup2 = mute2* (not(bswitch2)*(push2-safe2) : ba.db2linear : si.smooth(0.999));
Makeup3 = mute3* (not(bswitch3)*(push3-safe3) : ba.db2linear : si.smooth(0.999));
Makeup4 = mute4* (not(bswitch4)*(push4-safe4) : ba.db2linear : si.smooth(0.999));
Makeup5 = mute5* (not(bswitch5)*(push5-safe5) : ba.db2linear : si.smooth(0.999));
|
c62b4e493b25c89ef35279be19145fc141a0d209eff590b74508ddffbf7ca170 | brummer10/guitarix | baxandall.dsp | // generated automatically
// DO NOT MODIFY!
declare id "baxandall";
declare name "Baxandall";
declare category "Tone Control";
import("stdfaust.lib");
process = pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0)) with {
s = 0.993;
fs = float(ma.SR);
pre = _;
tr = vslider("tr[name:treble]", 0.5, 0, 1, 0.01) : si.smooth(s);
ba = 1.0 - vslider("ba[name:bass]", 0.5, 0, 1, 0.01) : si.smooth(s);
b0 = ba*(ba*(fs*(fs*(-1.16646701382671e-16*fs - 1.35752299926304e-12) - 1.24043238434298e-9) + tr*(pow(fs,3)*tr*(7.45996346051965e-20*fs + 7.93613134097836e-16) + pow(fs,2)*(fs*(-3.84934114562814e-19*fs - 4.45721994768766e-15) - 3.85293803981734e-12))) + fs*(fs*(1.16646701382671e-16*fs + 1.13415697533877e-12) + 5.05476196619765e-10) + tr*(pow(fs,2)*tr*(fs*(-7.45996346051965e-20*fs - 6.50762769960225e-16) + 1.68853858318688e-12) + fs*(fs*(fs*(3.84934114562814e-19*fs + 3.72011206873759e-15) + 1.47087060946334e-12) - 4.60510522687332e-9)) - 1.55054048042873e-6) + fs*(2.48184471026959e-13*fs + 9.9677425108649e-10) + tr*(pow(fs,2)*tr*(-1.58722626819567e-16*fs - 1.72230935485062e-12) + fs*(fs*(8.19008754388966e-16*fs + 3.24125726288252e-12) + 4.69720733141079e-9)) + 1.5815512900373e-6;
b1 = ba*(ba*(fs*(2.33293402765342e-16*pow(fs,2) - 2.48086476868596e-9) + tr*(pow(fs,3)*tr*(-2.98398538420786e-19*fs - 1.58722626819567e-15) + pow(fs,3)*(1.53973645825126e-18*fs + 8.91443989537532e-15))) + fs*(-2.33293402765342e-16*pow(fs,2) + 1.01095239323953e-9) + tr*(pow(fs,3)*tr*(2.98398538420786e-19*fs + 1.30152553992045e-15) + fs*(pow(fs,2)*(-1.53973645825126e-18*fs - 7.44022413747518e-15) - 9.21021045374664e-9)) - 6.20216192171491e-6) + 1.99354850217298e-9*fs + tr*(3.17445253639134e-16*pow(fs,3)*tr + fs*(-1.63801750877793e-15*pow(fs,2) + 9.39441466282157e-9)) + 6.32620516014921e-6;
b2 = ba*(ba*(2.71504599852608e-12*pow(fs,2) + tr*(4.47597807631179e-19*pow(fs,4)*tr + pow(fs,2)*(-2.30960468737688e-18*pow(fs,2) + 7.70587607963469e-12))) - 2.26831395067755e-12*pow(fs,2) + tr*(pow(fs,2)*tr*(-4.47597807631179e-19*pow(fs,2) - 3.37707716637377e-12) + pow(fs,2)*(2.30960468737688e-18*pow(fs,2) - 2.94174121892668e-12)) - 9.30324288257237e-6) - 4.96368942053919e-13*pow(fs,2) + tr*(3.44461870970124e-12*pow(fs,2)*tr - 6.48251452576504e-12*pow(fs,2)) + 9.48930774022381e-6;
b3 = ba*(ba*(fs*(-2.33293402765342e-16*pow(fs,2) + 2.48086476868596e-9) + tr*(pow(fs,3)*tr*(-2.98398538420786e-19*fs + 1.58722626819567e-15) + pow(fs,3)*(1.53973645825126e-18*fs - 8.91443989537532e-15))) + fs*(2.33293402765342e-16*pow(fs,2) - 1.01095239323953e-9) + tr*(pow(fs,3)*tr*(2.98398538420786e-19*fs - 1.30152553992045e-15) + fs*(pow(fs,2)*(-1.53973645825126e-18*fs + 7.44022413747518e-15) + 9.21021045374664e-9)) - 6.20216192171491e-6) - 1.99354850217298e-9*fs + tr*(-3.17445253639134e-16*pow(fs,3)*tr + fs*(1.63801750877793e-15*pow(fs,2) - 9.39441466282157e-9)) + 6.32620516014921e-6;
b4 = ba*(ba*(fs*(fs*(1.16646701382671e-16*fs - 1.35752299926304e-12) + 1.24043238434298e-9) + tr*(pow(fs,3)*tr*(7.45996346051965e-20*fs - 7.93613134097836e-16) + pow(fs,2)*(fs*(-3.84934114562814e-19*fs + 4.45721994768766e-15) - 3.85293803981734e-12))) + fs*(fs*(-1.16646701382671e-16*fs + 1.13415697533877e-12) - 5.05476196619765e-10) + tr*(pow(fs,2)*tr*(fs*(-7.45996346051965e-20*fs + 6.50762769960225e-16) + 1.68853858318688e-12) + fs*(fs*(fs*(3.84934114562814e-19*fs - 3.72011206873759e-15) + 1.47087060946334e-12) + 4.60510522687332e-9)) - 1.55054048042873e-6) + fs*(2.48184471026959e-13*fs - 9.9677425108649e-10) + tr*(pow(fs,2)*tr*(1.58722626819567e-16*fs - 1.72230935485062e-12) + fs*(fs*(-8.19008754388966e-16*fs + 3.24125726288252e-12) - 4.69720733141079e-9)) + 1.5815512900373e-6;
a0 = ba*(ba*(fs*(fs*(fs*(-3.10334479957618e-19*fs - 4.74326697987594e-15) - 1.66212915750803e-11) - 1.36447562277728e-8) + tr*(pow(fs,3)*tr*(8.20595980657162e-19*fs + 8.72974447507619e-15) + pow(fs,2)*(fs*(-8.20595980657162e-19*fs - 1.09677335132321e-14) - 2.38083940229351e-11))) + fs*(fs*(fs*(3.10334479957618e-19*fs + 4.14900946506348e-15) + 1.38603283669398e-11) + 1.11887001067737e-8) + tr*(pow(fs,3)*tr*(-8.20595980657162e-19*fs - 7.15839046956248e-15) + pow(fs,2)*(fs*(8.20595980657162e-19*fs + 9.39637950771837e-15) + 1.95228830988068e-11))) + fs*(fs*(6.60286127569399e-16*fs + 3.81609719800236e-12) + 5.84773317653659e-9) + tr*(pow(fs,2)*tr*(-1.74594889501524e-15*fs - 2.060017071488e-12) + fs*(fs*(1.74594889501524e-15*fs + 6.82169587607501e-12) + 5.61822837678545e-9)) + 1.89165938612305e-6;
a1 = ba*(ba*(fs*(pow(fs,2)*(1.24133791983047e-18*fs + 9.48653395975189e-15) - 2.72895124555456e-8) + tr*(pow(fs,3)*tr*(-3.28238392262865e-18*fs - 1.74594889501524e-14) + pow(fs,3)*(3.28238392262865e-18*fs + 2.19354670264642e-14))) + fs*(pow(fs,2)*(-1.24133791983047e-18*fs - 8.29801893012697e-15) + 2.23774002135474e-8) + tr*(pow(fs,3)*tr*(3.28238392262865e-18*fs + 1.4316780939125e-14) + pow(fs,3)*(-3.28238392262865e-18*fs - 1.87927590154367e-14))) + fs*(-1.3205722551388e-15*pow(fs,2) + 1.16954663530732e-8) + tr*(3.49189779003048e-15*pow(fs,3)*tr + fs*(-3.49189779003048e-15*pow(fs,2) + 1.12364567535709e-8)) + 7.56663754449219e-6;
a2 = ba*(ba*(pow(fs,2)*(-1.86200687974571e-18*pow(fs,2) + 3.32425831501606e-11) + tr*(4.92357588394297e-18*pow(fs,4)*tr + pow(fs,2)*(-4.92357588394297e-18*pow(fs,2) + 4.76167880458701e-11))) + pow(fs,2)*(1.86200687974571e-18*pow(fs,2) - 2.77206567338795e-11) + tr*(-4.92357588394297e-18*pow(fs,4)*tr + pow(fs,2)*(4.92357588394297e-18*pow(fs,2) - 3.90457661976135e-11))) - 7.63219439600472e-12*pow(fs,2) + tr*(4.120034142976e-12*pow(fs,2)*tr - 1.364339175215e-11*pow(fs,2)) + 1.13499563167383e-5;
a3 = ba*(ba*(fs*(pow(fs,2)*(1.24133791983047e-18*fs - 9.48653395975189e-15) + 2.72895124555456e-8) + tr*(pow(fs,3)*tr*(-3.28238392262865e-18*fs + 1.74594889501524e-14) + pow(fs,3)*(3.28238392262865e-18*fs - 2.19354670264642e-14))) + fs*(pow(fs,2)*(-1.24133791983047e-18*fs + 8.29801893012697e-15) - 2.23774002135474e-8) + tr*(pow(fs,3)*tr*(3.28238392262865e-18*fs - 1.4316780939125e-14) + pow(fs,3)*(-3.28238392262865e-18*fs + 1.87927590154367e-14))) + fs*(1.3205722551388e-15*pow(fs,2) - 1.16954663530732e-8) + tr*(-3.49189779003048e-15*pow(fs,3)*tr + fs*(3.49189779003048e-15*pow(fs,2) - 1.12364567535709e-8)) + 7.56663754449219e-6;
a4 = ba*(ba*(fs*(fs*(fs*(-3.10334479957618e-19*fs + 4.74326697987594e-15) - 1.66212915750803e-11) + 1.36447562277728e-8) + tr*(pow(fs,3)*tr*(8.20595980657162e-19*fs - 8.72974447507619e-15) + pow(fs,2)*(fs*(-8.20595980657162e-19*fs + 1.09677335132321e-14) - 2.38083940229351e-11))) + fs*(fs*(fs*(3.10334479957618e-19*fs - 4.14900946506348e-15) + 1.38603283669398e-11) - 1.11887001067737e-8) + tr*(pow(fs,3)*tr*(-8.20595980657162e-19*fs + 7.15839046956248e-15) + pow(fs,2)*(fs*(8.20595980657162e-19*fs - 9.39637950771837e-15) + 1.95228830988068e-11))) + fs*(fs*(-6.60286127569399e-16*fs + 3.81609719800236e-12) - 5.84773317653659e-9) + tr*(pow(fs,2)*tr*(1.74594889501524e-15*fs - 2.060017071488e-12) + fs*(fs*(-1.74594889501524e-15*fs + 6.82169587607501e-12) - 5.61822837678545e-9)) + 1.89165938612305e-6;
};
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/baxandall.dsp | faust | generated automatically
DO NOT MODIFY! | declare id "baxandall";
declare name "Baxandall";
declare category "Tone Control";
import("stdfaust.lib");
process = pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0)) with {
s = 0.993;
fs = float(ma.SR);
pre = _;
tr = vslider("tr[name:treble]", 0.5, 0, 1, 0.01) : si.smooth(s);
ba = 1.0 - vslider("ba[name:bass]", 0.5, 0, 1, 0.01) : si.smooth(s);
b0 = ba*(ba*(fs*(fs*(-1.16646701382671e-16*fs - 1.35752299926304e-12) - 1.24043238434298e-9) + tr*(pow(fs,3)*tr*(7.45996346051965e-20*fs + 7.93613134097836e-16) + pow(fs,2)*(fs*(-3.84934114562814e-19*fs - 4.45721994768766e-15) - 3.85293803981734e-12))) + fs*(fs*(1.16646701382671e-16*fs + 1.13415697533877e-12) + 5.05476196619765e-10) + tr*(pow(fs,2)*tr*(fs*(-7.45996346051965e-20*fs - 6.50762769960225e-16) + 1.68853858318688e-12) + fs*(fs*(fs*(3.84934114562814e-19*fs + 3.72011206873759e-15) + 1.47087060946334e-12) - 4.60510522687332e-9)) - 1.55054048042873e-6) + fs*(2.48184471026959e-13*fs + 9.9677425108649e-10) + tr*(pow(fs,2)*tr*(-1.58722626819567e-16*fs - 1.72230935485062e-12) + fs*(fs*(8.19008754388966e-16*fs + 3.24125726288252e-12) + 4.69720733141079e-9)) + 1.5815512900373e-6;
b1 = ba*(ba*(fs*(2.33293402765342e-16*pow(fs,2) - 2.48086476868596e-9) + tr*(pow(fs,3)*tr*(-2.98398538420786e-19*fs - 1.58722626819567e-15) + pow(fs,3)*(1.53973645825126e-18*fs + 8.91443989537532e-15))) + fs*(-2.33293402765342e-16*pow(fs,2) + 1.01095239323953e-9) + tr*(pow(fs,3)*tr*(2.98398538420786e-19*fs + 1.30152553992045e-15) + fs*(pow(fs,2)*(-1.53973645825126e-18*fs - 7.44022413747518e-15) - 9.21021045374664e-9)) - 6.20216192171491e-6) + 1.99354850217298e-9*fs + tr*(3.17445253639134e-16*pow(fs,3)*tr + fs*(-1.63801750877793e-15*pow(fs,2) + 9.39441466282157e-9)) + 6.32620516014921e-6;
b2 = ba*(ba*(2.71504599852608e-12*pow(fs,2) + tr*(4.47597807631179e-19*pow(fs,4)*tr + pow(fs,2)*(-2.30960468737688e-18*pow(fs,2) + 7.70587607963469e-12))) - 2.26831395067755e-12*pow(fs,2) + tr*(pow(fs,2)*tr*(-4.47597807631179e-19*pow(fs,2) - 3.37707716637377e-12) + pow(fs,2)*(2.30960468737688e-18*pow(fs,2) - 2.94174121892668e-12)) - 9.30324288257237e-6) - 4.96368942053919e-13*pow(fs,2) + tr*(3.44461870970124e-12*pow(fs,2)*tr - 6.48251452576504e-12*pow(fs,2)) + 9.48930774022381e-6;
b3 = ba*(ba*(fs*(-2.33293402765342e-16*pow(fs,2) + 2.48086476868596e-9) + tr*(pow(fs,3)*tr*(-2.98398538420786e-19*fs + 1.58722626819567e-15) + pow(fs,3)*(1.53973645825126e-18*fs - 8.91443989537532e-15))) + fs*(2.33293402765342e-16*pow(fs,2) - 1.01095239323953e-9) + tr*(pow(fs,3)*tr*(2.98398538420786e-19*fs - 1.30152553992045e-15) + fs*(pow(fs,2)*(-1.53973645825126e-18*fs + 7.44022413747518e-15) + 9.21021045374664e-9)) - 6.20216192171491e-6) - 1.99354850217298e-9*fs + tr*(-3.17445253639134e-16*pow(fs,3)*tr + fs*(1.63801750877793e-15*pow(fs,2) - 9.39441466282157e-9)) + 6.32620516014921e-6;
b4 = ba*(ba*(fs*(fs*(1.16646701382671e-16*fs - 1.35752299926304e-12) + 1.24043238434298e-9) + tr*(pow(fs,3)*tr*(7.45996346051965e-20*fs - 7.93613134097836e-16) + pow(fs,2)*(fs*(-3.84934114562814e-19*fs + 4.45721994768766e-15) - 3.85293803981734e-12))) + fs*(fs*(-1.16646701382671e-16*fs + 1.13415697533877e-12) - 5.05476196619765e-10) + tr*(pow(fs,2)*tr*(fs*(-7.45996346051965e-20*fs + 6.50762769960225e-16) + 1.68853858318688e-12) + fs*(fs*(fs*(3.84934114562814e-19*fs - 3.72011206873759e-15) + 1.47087060946334e-12) + 4.60510522687332e-9)) - 1.55054048042873e-6) + fs*(2.48184471026959e-13*fs - 9.9677425108649e-10) + tr*(pow(fs,2)*tr*(1.58722626819567e-16*fs - 1.72230935485062e-12) + fs*(fs*(-8.19008754388966e-16*fs + 3.24125726288252e-12) - 4.69720733141079e-9)) + 1.5815512900373e-6;
a0 = ba*(ba*(fs*(fs*(fs*(-3.10334479957618e-19*fs - 4.74326697987594e-15) - 1.66212915750803e-11) - 1.36447562277728e-8) + tr*(pow(fs,3)*tr*(8.20595980657162e-19*fs + 8.72974447507619e-15) + pow(fs,2)*(fs*(-8.20595980657162e-19*fs - 1.09677335132321e-14) - 2.38083940229351e-11))) + fs*(fs*(fs*(3.10334479957618e-19*fs + 4.14900946506348e-15) + 1.38603283669398e-11) + 1.11887001067737e-8) + tr*(pow(fs,3)*tr*(-8.20595980657162e-19*fs - 7.15839046956248e-15) + pow(fs,2)*(fs*(8.20595980657162e-19*fs + 9.39637950771837e-15) + 1.95228830988068e-11))) + fs*(fs*(6.60286127569399e-16*fs + 3.81609719800236e-12) + 5.84773317653659e-9) + tr*(pow(fs,2)*tr*(-1.74594889501524e-15*fs - 2.060017071488e-12) + fs*(fs*(1.74594889501524e-15*fs + 6.82169587607501e-12) + 5.61822837678545e-9)) + 1.89165938612305e-6;
a1 = ba*(ba*(fs*(pow(fs,2)*(1.24133791983047e-18*fs + 9.48653395975189e-15) - 2.72895124555456e-8) + tr*(pow(fs,3)*tr*(-3.28238392262865e-18*fs - 1.74594889501524e-14) + pow(fs,3)*(3.28238392262865e-18*fs + 2.19354670264642e-14))) + fs*(pow(fs,2)*(-1.24133791983047e-18*fs - 8.29801893012697e-15) + 2.23774002135474e-8) + tr*(pow(fs,3)*tr*(3.28238392262865e-18*fs + 1.4316780939125e-14) + pow(fs,3)*(-3.28238392262865e-18*fs - 1.87927590154367e-14))) + fs*(-1.3205722551388e-15*pow(fs,2) + 1.16954663530732e-8) + tr*(3.49189779003048e-15*pow(fs,3)*tr + fs*(-3.49189779003048e-15*pow(fs,2) + 1.12364567535709e-8)) + 7.56663754449219e-6;
a2 = ba*(ba*(pow(fs,2)*(-1.86200687974571e-18*pow(fs,2) + 3.32425831501606e-11) + tr*(4.92357588394297e-18*pow(fs,4)*tr + pow(fs,2)*(-4.92357588394297e-18*pow(fs,2) + 4.76167880458701e-11))) + pow(fs,2)*(1.86200687974571e-18*pow(fs,2) - 2.77206567338795e-11) + tr*(-4.92357588394297e-18*pow(fs,4)*tr + pow(fs,2)*(4.92357588394297e-18*pow(fs,2) - 3.90457661976135e-11))) - 7.63219439600472e-12*pow(fs,2) + tr*(4.120034142976e-12*pow(fs,2)*tr - 1.364339175215e-11*pow(fs,2)) + 1.13499563167383e-5;
a3 = ba*(ba*(fs*(pow(fs,2)*(1.24133791983047e-18*fs - 9.48653395975189e-15) + 2.72895124555456e-8) + tr*(pow(fs,3)*tr*(-3.28238392262865e-18*fs + 1.74594889501524e-14) + pow(fs,3)*(3.28238392262865e-18*fs - 2.19354670264642e-14))) + fs*(pow(fs,2)*(-1.24133791983047e-18*fs + 8.29801893012697e-15) - 2.23774002135474e-8) + tr*(pow(fs,3)*tr*(3.28238392262865e-18*fs - 1.4316780939125e-14) + pow(fs,3)*(-3.28238392262865e-18*fs + 1.87927590154367e-14))) + fs*(1.3205722551388e-15*pow(fs,2) - 1.16954663530732e-8) + tr*(-3.49189779003048e-15*pow(fs,3)*tr + fs*(3.49189779003048e-15*pow(fs,2) - 1.12364567535709e-8)) + 7.56663754449219e-6;
a4 = ba*(ba*(fs*(fs*(fs*(-3.10334479957618e-19*fs + 4.74326697987594e-15) - 1.66212915750803e-11) + 1.36447562277728e-8) + tr*(pow(fs,3)*tr*(8.20595980657162e-19*fs - 8.72974447507619e-15) + pow(fs,2)*(fs*(-8.20595980657162e-19*fs + 1.09677335132321e-14) - 2.38083940229351e-11))) + fs*(fs*(fs*(3.10334479957618e-19*fs - 4.14900946506348e-15) + 1.38603283669398e-11) - 1.11887001067737e-8) + tr*(pow(fs,3)*tr*(-8.20595980657162e-19*fs + 7.15839046956248e-15) + pow(fs,2)*(fs*(8.20595980657162e-19*fs - 9.39637950771837e-15) + 1.95228830988068e-11))) + fs*(fs*(-6.60286127569399e-16*fs + 3.81609719800236e-12) - 5.84773317653659e-9) + tr*(pow(fs,2)*tr*(1.74594889501524e-15*fs - 2.060017071488e-12) + fs*(fs*(-1.74594889501524e-15*fs + 6.82169587607501e-12) - 5.61822837678545e-9)) + 1.89165938612305e-6;
};
|
aae1da96fd8eac38cf6798ef102f347c69a592e3c183fe38dd6691962dc6f2cf | brummer10/guitarix | axface.dsp | // generated automatically
// DO NOT MODIFY!
declare id "axface";
declare name "Axis Face";
declare category "Fuzz";
declare shortname "Axis Face";
declare description "Axis Face";
import("stdfaust.lib");
import("trany.lib");
process = pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0,b5/a0),(a1/a0,a2/a0,a3/a0,a4/a0,a5/a0)) : clip with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
clip = tranystage(TB_7199P_68k,86.0,2700.0,3.571981) : tranystage(TB_7199P_68k,86.0,2700.0,3.571981) ;
Attack = vslider("Attack[name:Attack]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
Smooth = vslider("Smooth[name:Smooth]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
Level = vslider("Level[name:Level]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
b0 = Attack*(Attack*Level*pow(fs,3)*(3.38149630023061e-21*fs - 1.69477435943983e-16) + Level*pow(fs,3)*(-3.86160790724035e-21*fs + 1.70600223084551e-14)) + Level*pow(fs,2)*(-1.28720263574678e-19*fs + 5.68667410281837e-13);
b1 = Attack*(Attack*Level*pow(fs,3)*(-1.01444889006918e-20*fs + 1.69477435943983e-16) + Level*pow(fs,3)*(1.15848237217211e-20*fs - 1.70600223084551e-14)) + Level*pow(fs,2)*(1.28720263574678e-19*fs + 5.68667410281837e-13);
b2 = Attack*(Attack*Level*pow(fs,3)*(6.76299260046122e-21*fs + 3.38954871887967e-16) + Level*pow(fs,3)*(-7.7232158144807e-21*fs - 3.41200446169102e-14)) + Level*pow(fs,2)*(2.57440527149357e-19*fs - 1.13733482056367e-12);
b3 = Attack*(Attack*Level*pow(fs,3)*(6.76299260046122e-21*fs - 3.38954871887967e-16) + Level*pow(fs,3)*(-7.7232158144807e-21*fs + 3.41200446169102e-14)) + Level*pow(fs,2)*(-2.57440527149357e-19*fs - 1.13733482056367e-12);
b4 = Attack*(Attack*Level*pow(fs,3)*(-1.01444889006918e-20*fs - 1.69477435943983e-16) + Level*pow(fs,3)*(1.15848237217211e-20*fs + 1.70600223084551e-14)) + Level*pow(fs,2)*(-1.28720263574678e-19*fs + 5.68667410281837e-13);
b5 = Attack*(Attack*Level*pow(fs,3)*(3.38149630023061e-21*fs + 1.69477435943983e-16) + Level*pow(fs,3)*(-3.86160790724035e-21*fs - 1.70600223084551e-14)) + Level*pow(fs,2)*(1.28720263574678e-19*fs + 5.68667410281837e-13);
a0 = Attack*(Attack*fs*(fs*(fs*(fs*(-4.03791059191999e-25*fs - 1.13427407987086e-18) - 1.49739128868709e-14) - 7.44393603614497e-12) - 1.60942285815325e-10) + fs*(fs*(fs*(fs*(5.1173274738794e-25*fs + 1.13834320666478e-18) + 1.49968987528957e-14) + 7.45459961503187e-12) + 1.61087815478651e-10)) + Smooth*(Attack*(Attack*pow(fs,2)*(fs*(fs*(3.77313513934094e-25*fs + 1.13011470525257e-18) + 1.48978106454603e-14) + 7.08146057587431e-12) + pow(fs,2)*(fs*(fs*(-4.4415330562134e-25*fs - 1.13263345455505e-18) - 1.49120085362402e-14) - 7.08786388106065e-12)) + fs*(fs*(fs*(-1.4805110187378e-23*fs - 3.77544484851683e-17) - 4.97066951208006e-13) - 2.36262129368688e-10)) + fs*(fs*(fs*(1.70577582462647e-23*fs + 3.79447735554928e-17) + 4.99896625096522e-13) + 2.48486653834396e-10) + 5.36959384928837e-9;
a1 = Attack*(Attack*fs*(fs*(fs*(fs*(2.01895529596e-24*fs + 3.40282223961257e-18) + 1.49739128868709e-14) - 7.44393603614497e-12) - 4.82826857445976e-10) + fs*(fs*(fs*(fs*(-2.5586637369397e-24*fs - 3.41502961999435e-18) - 1.49968987528957e-14) + 7.45459961503187e-12) + 4.83263446435953e-10)) + Smooth*(Attack*(Attack*pow(fs,2)*(fs*(fs*(-1.88656756967047e-24*fs - 3.39034411575772e-18) - 1.48978106454603e-14) + 7.08146057587431e-12) + pow(fs,2)*(fs*(fs*(2.2207665281067e-24*fs + 3.39790036366515e-18) + 1.49120085362402e-14) - 7.08786388106065e-12)) + fs*(fs*(fs*(4.4415330562134e-23*fs + 3.77544484851683e-17) - 4.97066951208006e-13) - 7.08786388106065e-10)) + fs*(fs*(fs*(-5.1173274738794e-23*fs - 3.79447735554928e-17) + 4.99896625096522e-13) + 7.45459961503187e-10) + 2.68479692464418e-8;
a2 = Attack*(Attack*fs*(fs*(fs*(fs*(-4.03791059191999e-24*fs - 2.26854815974171e-18) + 2.99478257737419e-14) + 1.48878720722899e-11) - 3.21884571630651e-10) + fs*(fs*(fs*(fs*(5.1173274738794e-24*fs + 2.27668641332957e-18) - 2.99937975057913e-14) - 1.49091992300637e-11) + 3.22175630957302e-10)) + Smooth*(Attack*(Attack*pow(fs,2)*(fs*(fs*(3.77313513934094e-24*fs + 2.26022941050514e-18) - 2.97956212909206e-14) - 1.41629211517486e-11) + pow(fs,2)*(fs*(fs*(-4.4415330562134e-24*fs - 2.2652669091101e-18) + 2.98240170724803e-14) + 1.41757277621213e-11)) + fs*(fs*(fs*(-2.9610220374756e-23*fs + 7.55088969703365e-17) + 9.94133902416011e-13) - 4.72524258737377e-10)) + fs*(fs*(fs*(3.41155164925293e-23*fs - 7.58895471109855e-17) - 9.99793250193045e-13) + 4.96973307668791e-10) + 5.36959384928837e-8;
a3 = Attack*(Attack*fs*(fs*(fs*(fs*(4.03791059191999e-24*fs - 2.26854815974171e-18) - 2.99478257737419e-14) + 1.48878720722899e-11) + 3.21884571630651e-10) + fs*(fs*(fs*(fs*(-5.1173274738794e-24*fs + 2.27668641332957e-18) + 2.99937975057913e-14) - 1.49091992300637e-11) - 3.22175630957302e-10)) + Smooth*(Attack*(Attack*pow(fs,2)*(fs*(fs*(-3.77313513934094e-24*fs + 2.26022941050514e-18) + 2.97956212909206e-14) - 1.41629211517486e-11) + pow(fs,2)*(fs*(fs*(4.4415330562134e-24*fs - 2.2652669091101e-18) - 2.98240170724803e-14) + 1.41757277621213e-11)) + fs*(fs*(fs*(-2.9610220374756e-23*fs - 7.55088969703365e-17) + 9.94133902416011e-13) + 4.72524258737377e-10)) + fs*(fs*(fs*(3.41155164925293e-23*fs + 7.58895471109855e-17) - 9.99793250193045e-13) - 4.96973307668791e-10) + 5.36959384928837e-8;
a4 = Attack*(Attack*fs*(fs*(fs*(fs*(-2.01895529596e-24*fs + 3.40282223961257e-18) - 1.49739128868709e-14) - 7.44393603614497e-12) + 4.82826857445976e-10) + fs*(fs*(fs*(fs*(2.5586637369397e-24*fs - 3.41502961999435e-18) + 1.49968987528957e-14) + 7.45459961503187e-12) - 4.83263446435953e-10)) + Smooth*(Attack*(Attack*pow(fs,2)*(fs*(fs*(1.88656756967047e-24*fs - 3.39034411575772e-18) + 1.48978106454603e-14) + 7.08146057587431e-12) + pow(fs,2)*(fs*(fs*(-2.2207665281067e-24*fs + 3.39790036366515e-18) - 1.49120085362402e-14) - 7.08786388106065e-12)) + fs*(fs*(fs*(4.4415330562134e-23*fs - 3.77544484851683e-17) - 4.97066951208006e-13) + 7.08786388106065e-10)) + fs*(fs*(fs*(-5.1173274738794e-23*fs + 3.79447735554928e-17) + 4.99896625096522e-13) - 7.45459961503187e-10) + 2.68479692464418e-8;
a5 = Attack*(Attack*fs*(fs*(fs*(fs*(4.03791059191999e-25*fs - 1.13427407987086e-18) + 1.49739128868709e-14) - 7.44393603614497e-12) + 1.60942285815325e-10) + fs*(fs*(fs*(fs*(-5.1173274738794e-25*fs + 1.13834320666478e-18) - 1.49968987528957e-14) + 7.45459961503187e-12) - 1.61087815478651e-10)) + Smooth*(Attack*(Attack*pow(fs,2)*(fs*(fs*(-3.77313513934094e-25*fs + 1.13011470525257e-18) - 1.48978106454603e-14) + 7.08146057587431e-12) + pow(fs,2)*(fs*(fs*(4.4415330562134e-25*fs - 1.13263345455505e-18) + 1.49120085362402e-14) - 7.08786388106065e-12)) + fs*(fs*(fs*(-1.4805110187378e-23*fs + 3.77544484851683e-17) - 4.97066951208006e-13) + 2.36262129368688e-10)) + fs*(fs*(fs*(1.70577582462647e-23*fs - 3.79447735554928e-17) + 4.99896625096522e-13) - 2.48486653834396e-10) + 5.36959384928837e-9;
};
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/plugins/axface.dsp | faust | generated automatically
DO NOT MODIFY! | declare id "axface";
declare name "Axis Face";
declare category "Fuzz";
declare shortname "Axis Face";
declare description "Axis Face";
import("stdfaust.lib");
import("trany.lib");
process = pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0,b5/a0),(a1/a0,a2/a0,a3/a0,a4/a0,a5/a0)) : clip with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
clip = tranystage(TB_7199P_68k,86.0,2700.0,3.571981) : tranystage(TB_7199P_68k,86.0,2700.0,3.571981) ;
Attack = vslider("Attack[name:Attack]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
Smooth = vslider("Smooth[name:Smooth]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
Level = vslider("Level[name:Level]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
b0 = Attack*(Attack*Level*pow(fs,3)*(3.38149630023061e-21*fs - 1.69477435943983e-16) + Level*pow(fs,3)*(-3.86160790724035e-21*fs + 1.70600223084551e-14)) + Level*pow(fs,2)*(-1.28720263574678e-19*fs + 5.68667410281837e-13);
b1 = Attack*(Attack*Level*pow(fs,3)*(-1.01444889006918e-20*fs + 1.69477435943983e-16) + Level*pow(fs,3)*(1.15848237217211e-20*fs - 1.70600223084551e-14)) + Level*pow(fs,2)*(1.28720263574678e-19*fs + 5.68667410281837e-13);
b2 = Attack*(Attack*Level*pow(fs,3)*(6.76299260046122e-21*fs + 3.38954871887967e-16) + Level*pow(fs,3)*(-7.7232158144807e-21*fs - 3.41200446169102e-14)) + Level*pow(fs,2)*(2.57440527149357e-19*fs - 1.13733482056367e-12);
b3 = Attack*(Attack*Level*pow(fs,3)*(6.76299260046122e-21*fs - 3.38954871887967e-16) + Level*pow(fs,3)*(-7.7232158144807e-21*fs + 3.41200446169102e-14)) + Level*pow(fs,2)*(-2.57440527149357e-19*fs - 1.13733482056367e-12);
b4 = Attack*(Attack*Level*pow(fs,3)*(-1.01444889006918e-20*fs - 1.69477435943983e-16) + Level*pow(fs,3)*(1.15848237217211e-20*fs + 1.70600223084551e-14)) + Level*pow(fs,2)*(-1.28720263574678e-19*fs + 5.68667410281837e-13);
b5 = Attack*(Attack*Level*pow(fs,3)*(3.38149630023061e-21*fs + 1.69477435943983e-16) + Level*pow(fs,3)*(-3.86160790724035e-21*fs - 1.70600223084551e-14)) + Level*pow(fs,2)*(1.28720263574678e-19*fs + 5.68667410281837e-13);
a0 = Attack*(Attack*fs*(fs*(fs*(fs*(-4.03791059191999e-25*fs - 1.13427407987086e-18) - 1.49739128868709e-14) - 7.44393603614497e-12) - 1.60942285815325e-10) + fs*(fs*(fs*(fs*(5.1173274738794e-25*fs + 1.13834320666478e-18) + 1.49968987528957e-14) + 7.45459961503187e-12) + 1.61087815478651e-10)) + Smooth*(Attack*(Attack*pow(fs,2)*(fs*(fs*(3.77313513934094e-25*fs + 1.13011470525257e-18) + 1.48978106454603e-14) + 7.08146057587431e-12) + pow(fs,2)*(fs*(fs*(-4.4415330562134e-25*fs - 1.13263345455505e-18) - 1.49120085362402e-14) - 7.08786388106065e-12)) + fs*(fs*(fs*(-1.4805110187378e-23*fs - 3.77544484851683e-17) - 4.97066951208006e-13) - 2.36262129368688e-10)) + fs*(fs*(fs*(1.70577582462647e-23*fs + 3.79447735554928e-17) + 4.99896625096522e-13) + 2.48486653834396e-10) + 5.36959384928837e-9;
a1 = Attack*(Attack*fs*(fs*(fs*(fs*(2.01895529596e-24*fs + 3.40282223961257e-18) + 1.49739128868709e-14) - 7.44393603614497e-12) - 4.82826857445976e-10) + fs*(fs*(fs*(fs*(-2.5586637369397e-24*fs - 3.41502961999435e-18) - 1.49968987528957e-14) + 7.45459961503187e-12) + 4.83263446435953e-10)) + Smooth*(Attack*(Attack*pow(fs,2)*(fs*(fs*(-1.88656756967047e-24*fs - 3.39034411575772e-18) - 1.48978106454603e-14) + 7.08146057587431e-12) + pow(fs,2)*(fs*(fs*(2.2207665281067e-24*fs + 3.39790036366515e-18) + 1.49120085362402e-14) - 7.08786388106065e-12)) + fs*(fs*(fs*(4.4415330562134e-23*fs + 3.77544484851683e-17) - 4.97066951208006e-13) - 7.08786388106065e-10)) + fs*(fs*(fs*(-5.1173274738794e-23*fs - 3.79447735554928e-17) + 4.99896625096522e-13) + 7.45459961503187e-10) + 2.68479692464418e-8;
a2 = Attack*(Attack*fs*(fs*(fs*(fs*(-4.03791059191999e-24*fs - 2.26854815974171e-18) + 2.99478257737419e-14) + 1.48878720722899e-11) - 3.21884571630651e-10) + fs*(fs*(fs*(fs*(5.1173274738794e-24*fs + 2.27668641332957e-18) - 2.99937975057913e-14) - 1.49091992300637e-11) + 3.22175630957302e-10)) + Smooth*(Attack*(Attack*pow(fs,2)*(fs*(fs*(3.77313513934094e-24*fs + 2.26022941050514e-18) - 2.97956212909206e-14) - 1.41629211517486e-11) + pow(fs,2)*(fs*(fs*(-4.4415330562134e-24*fs - 2.2652669091101e-18) + 2.98240170724803e-14) + 1.41757277621213e-11)) + fs*(fs*(fs*(-2.9610220374756e-23*fs + 7.55088969703365e-17) + 9.94133902416011e-13) - 4.72524258737377e-10)) + fs*(fs*(fs*(3.41155164925293e-23*fs - 7.58895471109855e-17) - 9.99793250193045e-13) + 4.96973307668791e-10) + 5.36959384928837e-8;
a3 = Attack*(Attack*fs*(fs*(fs*(fs*(4.03791059191999e-24*fs - 2.26854815974171e-18) - 2.99478257737419e-14) + 1.48878720722899e-11) + 3.21884571630651e-10) + fs*(fs*(fs*(fs*(-5.1173274738794e-24*fs + 2.27668641332957e-18) + 2.99937975057913e-14) - 1.49091992300637e-11) - 3.22175630957302e-10)) + Smooth*(Attack*(Attack*pow(fs,2)*(fs*(fs*(-3.77313513934094e-24*fs + 2.26022941050514e-18) + 2.97956212909206e-14) - 1.41629211517486e-11) + pow(fs,2)*(fs*(fs*(4.4415330562134e-24*fs - 2.2652669091101e-18) - 2.98240170724803e-14) + 1.41757277621213e-11)) + fs*(fs*(fs*(-2.9610220374756e-23*fs - 7.55088969703365e-17) + 9.94133902416011e-13) + 4.72524258737377e-10)) + fs*(fs*(fs*(3.41155164925293e-23*fs + 7.58895471109855e-17) - 9.99793250193045e-13) - 4.96973307668791e-10) + 5.36959384928837e-8;
a4 = Attack*(Attack*fs*(fs*(fs*(fs*(-2.01895529596e-24*fs + 3.40282223961257e-18) - 1.49739128868709e-14) - 7.44393603614497e-12) + 4.82826857445976e-10) + fs*(fs*(fs*(fs*(2.5586637369397e-24*fs - 3.41502961999435e-18) + 1.49968987528957e-14) + 7.45459961503187e-12) - 4.83263446435953e-10)) + Smooth*(Attack*(Attack*pow(fs,2)*(fs*(fs*(1.88656756967047e-24*fs - 3.39034411575772e-18) + 1.48978106454603e-14) + 7.08146057587431e-12) + pow(fs,2)*(fs*(fs*(-2.2207665281067e-24*fs + 3.39790036366515e-18) - 1.49120085362402e-14) - 7.08786388106065e-12)) + fs*(fs*(fs*(4.4415330562134e-23*fs - 3.77544484851683e-17) - 4.97066951208006e-13) + 7.08786388106065e-10)) + fs*(fs*(fs*(-5.1173274738794e-23*fs + 3.79447735554928e-17) + 4.99896625096522e-13) - 7.45459961503187e-10) + 2.68479692464418e-8;
a5 = Attack*(Attack*fs*(fs*(fs*(fs*(4.03791059191999e-25*fs - 1.13427407987086e-18) + 1.49739128868709e-14) - 7.44393603614497e-12) + 1.60942285815325e-10) + fs*(fs*(fs*(fs*(-5.1173274738794e-25*fs + 1.13834320666478e-18) - 1.49968987528957e-14) + 7.45459961503187e-12) - 1.61087815478651e-10)) + Smooth*(Attack*(Attack*pow(fs,2)*(fs*(fs*(-3.77313513934094e-25*fs + 1.13011470525257e-18) - 1.48978106454603e-14) + 7.08146057587431e-12) + pow(fs,2)*(fs*(fs*(4.4415330562134e-25*fs - 1.13263345455505e-18) + 1.49120085362402e-14) - 7.08786388106065e-12)) + fs*(fs*(fs*(-1.4805110187378e-23*fs + 3.77544484851683e-17) - 4.97066951208006e-13) + 2.36262129368688e-10)) + fs*(fs*(fs*(1.70577582462647e-23*fs - 3.79447735554928e-17) + 4.99896625096522e-13) - 2.48486653834396e-10) + 5.36959384928837e-9;
};
|
d2f204c785c1b02da8f1296a27128f358eb1e69e73ae369df088b4e6530917cb | brummer10/guitarix | muff.dsp | // generated automatically
// DO NOT MODIFY!
declare id "muff";
declare name "Muff";
declare category "Fuzz";
declare shortname "Muff";
declare description "Muff";
declare insert_p "tranyclipper";
declare volume_p "Level";
import("stdfaust.lib");
import("trany.lib");
process = pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0,b5/a0,b6/a0),(a1/a0,a2/a0,a3/a0,a4/a0,a5/a0,a6/a0)) with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
//clip = tranystage(TB_7199P_68k,86.0,2700.0,3.571981) : tranystage(TB_7199P_68k,86.0,2700.0,3.571981) : tranystage(TB_7199P_68k,86.0,2700.0,3.571981) ;
Tone = vslider("Tone[name:Tone]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
//Level = vslider("Level[name:Level]", 0.5, 0, 1, 0.01): *(0.8) : Inverted(0) : si.smooth(s);
b0 = Tone*pow(fs,3)*(fs*(fs*(-1.29955117406144e-31*fs + 3.73173380397863e-25) + 1.11415567049164e-24) - 3.19936025718332e-18) + (Tone*pow(fs,3)*(fs*(fs*(-5.90705079118838e-30*fs + 1.6962426381721e-23) + 5.06434395678016e-23) - 1.45425466235606e-16) + pow(fs,3)*(fs*(-1.38925083422393e-26*fs + 3.98287967295002e-20) + 1.84690342119219e-16)) + pow(fs,3)*(fs*(-3.05635183529265e-28*fs + 8.76233528049005e-22) + 4.06318752662282e-18);
b1 = Tone*pow(fs,4)*(fs*(7.79730704436866e-31*fs - 1.49269352159145e-24) - 2.22831134098327e-24) + (Tone*pow(fs,4)*(fs*(3.54423047471303e-29*fs - 6.78497055268842e-23) - 1.01286879135603e-22) + pow(fs,4)*(5.55700333689573e-26*fs - 7.96575934590005e-20)) + pow(fs,4)*(1.22254073411706e-27*fs - 1.75246705609801e-21);
b2 = Tone*pow(fs,3)*(fs*(fs*(-1.94932676109216e-30*fs + 1.86586690198932e-24) - 1.11415567049164e-24) + 9.59808077154997e-18) + (Tone*pow(fs,3)*(fs*(fs*(-8.86057618678257e-29*fs + 8.48121319086052e-23) - 5.06434395678016e-23) + 4.36276398706817e-16) + pow(fs,3)*(fs*(-6.94625417111967e-26*fs - 3.98287967295002e-20) - 5.54071026357658e-16)) + pow(fs,3)*(fs*(-1.52817591764633e-27*fs - 8.76233528049005e-22) - 1.21895625798685e-17);
b3 = Tone*pow(fs,4)*(2.59910234812289e-30*pow(fs,2) + 4.45662268196654e-24) + (Tone*pow(fs,4)*(1.18141015823768e-28*pow(fs,2) + 2.02573758271206e-22) + 1.59315186918001e-19*pow(fs,4)) + 3.50493411219602e-21*pow(fs,4);
b4 = Tone*pow(fs,3)*(fs*(fs*(-1.94932676109216e-30*fs - 1.86586690198932e-24) - 1.11415567049164e-24) - 9.59808077154997e-18) + (Tone*pow(fs,3)*(fs*(fs*(-8.86057618678257e-29*fs - 8.48121319086052e-23) - 5.06434395678016e-23) - 4.36276398706817e-16) + pow(fs,3)*(fs*(6.94625417111967e-26*fs - 3.98287967295002e-20) + 5.54071026357658e-16)) + pow(fs,3)*(fs*(1.52817591764633e-27*fs - 8.76233528049005e-22) + 1.21895625798685e-17);
b5 = Tone*pow(fs,4)*(fs*(7.79730704436866e-31*fs + 1.49269352159145e-24) - 2.22831134098327e-24) + (Tone*pow(fs,4)*(fs*(3.54423047471303e-29*fs + 6.78497055268842e-23) - 1.01286879135603e-22) + pow(fs,4)*(-5.55700333689573e-26*fs - 7.96575934590005e-20)) + pow(fs,4)*(-1.22254073411706e-27*fs - 1.75246705609801e-21);
b6 = Tone*pow(fs,3)*(fs*(fs*(-1.29955117406144e-31*fs - 3.73173380397863e-25) + 1.11415567049164e-24) + 3.19936025718332e-18) + (Tone*pow(fs,3)*(fs*(fs*(-5.90705079118838e-30*fs - 1.6962426381721e-23) + 5.06434395678016e-23) + 1.45425466235606e-16) + pow(fs,3)*(fs*(1.38925083422393e-26*fs + 3.98287967295002e-20) - 1.84690342119219e-16)) + pow(fs,3)*(fs*(3.05635183529265e-28*fs + 8.76233528049005e-22) - 4.06318752662282e-18);
a0 = Tone*(Tone*fs*(fs*(fs*(fs*(fs*(-5.75452574944698e-29*fs - 7.27469124190795e-25) - 2.36761929650589e-21) - 2.15665382234029e-18) - 5.3389212423117e-16) - 3.40686364113531e-15) + fs*(fs*(fs*(fs*(fs*(5.77317651704237e-29*fs + 7.91492198040202e-25) + 2.5773097315087e-21) + 2.02385759012812e-18) + 5.21709009014916e-16) + 3.33278467477534e-15)) + fs*(fs*(fs*(fs*(fs*(4.64196013276193e-29*fs + 7.1140905248404e-25) + 2.87245155338884e-21) + 3.60543982135142e-18) + 8.93675308928682e-16) + 1.16723639524299e-14) + 3.91224189243262e-14;
a1 = Tone*(Tone*fs*(fs*(pow(fs,2)*(fs*(3.45271544966819e-28*fs + 2.90987649676318e-24) + 4.73523859301178e-21) - 1.06778424846234e-15) - 1.36274545645413e-14) + fs*(fs*(pow(fs,2)*(fs*(-3.46390591022542e-28*fs - 3.16596879216081e-24) - 5.15461946301739e-21) + 1.04341801802983e-15) + 1.33311386991013e-14)) + fs*(fs*(pow(fs,2)*(fs*(-2.78517607965716e-28*fs - 2.84563620993616e-24) - 5.74490310677768e-21) + 1.78735061785736e-15) + 4.66894558097195e-14) + 2.34734513545957e-13;
a2 = Tone*(Tone*fs*(fs*(fs*(fs*(fs*(-8.63178862417047e-28*fs - 3.63734562095397e-24) + 2.36761929650589e-21) + 6.46996146702087e-18) + 5.3389212423117e-16) - 1.70343182056766e-14) + fs*(fs*(fs*(fs*(fs*(8.65976477556356e-28*fs + 3.95746099020101e-24) - 2.5773097315087e-21) - 6.07157277038437e-18) - 5.21709009014916e-16) + 1.66639233738767e-14)) + fs*(fs*(fs*(fs*(fs*(6.96294019914289e-28*fs + 3.5570452624202e-24) - 2.87245155338884e-21) - 1.08163194640543e-17) - 8.93675308928682e-16) + 5.83618197621494e-14) + 5.86836283864892e-13;
a3 = Tone*(Tone*pow(fs,2)*(pow(fs,2)*(1.1509051498894e-27*pow(fs,2) - 9.47047718602356e-21) + 2.13556849692468e-15) + pow(fs,2)*(pow(fs,2)*(-1.15463530340847e-27*pow(fs,2) + 1.03092389260348e-20) - 2.08683603605967e-15)) + pow(fs,2)*(pow(fs,2)*(-9.28392026552386e-28*pow(fs,2) + 1.14898062135554e-20) - 3.57470123571473e-15) + 7.82448378486523e-13;
a4 = Tone*(Tone*fs*(fs*(fs*(fs*(fs*(-8.63178862417047e-28*fs + 3.63734562095397e-24) + 2.36761929650589e-21) - 6.46996146702087e-18) + 5.3389212423117e-16) + 1.70343182056766e-14) + fs*(fs*(fs*(fs*(fs*(8.65976477556356e-28*fs - 3.95746099020101e-24) - 2.5773097315087e-21) + 6.07157277038437e-18) - 5.21709009014916e-16) - 1.66639233738767e-14)) + fs*(fs*(fs*(fs*(fs*(6.96294019914289e-28*fs - 3.5570452624202e-24) - 2.87245155338884e-21) + 1.08163194640543e-17) - 8.93675308928682e-16) - 5.83618197621494e-14) + 5.86836283864892e-13;
a5 = Tone*(Tone*fs*(fs*(pow(fs,2)*(fs*(3.45271544966819e-28*fs - 2.90987649676318e-24) + 4.73523859301178e-21) - 1.06778424846234e-15) + 1.36274545645413e-14) + fs*(fs*(pow(fs,2)*(fs*(-3.46390591022542e-28*fs + 3.16596879216081e-24) - 5.15461946301739e-21) + 1.04341801802983e-15) - 1.33311386991013e-14)) + fs*(fs*(pow(fs,2)*(fs*(-2.78517607965716e-28*fs + 2.84563620993616e-24) - 5.74490310677768e-21) + 1.78735061785736e-15) - 4.66894558097195e-14) + 2.34734513545957e-13;
a6 = Tone*(Tone*fs*(fs*(fs*(fs*(fs*(-5.75452574944698e-29*fs + 7.27469124190795e-25) - 2.36761929650589e-21) + 2.15665382234029e-18) - 5.3389212423117e-16) + 3.40686364113531e-15) + fs*(fs*(fs*(fs*(fs*(5.77317651704237e-29*fs - 7.91492198040202e-25) + 2.5773097315087e-21) - 2.02385759012812e-18) + 5.21709009014916e-16) - 3.33278467477534e-15)) + fs*(fs*(fs*(fs*(fs*(4.64196013276193e-29*fs - 7.1140905248404e-25) + 2.87245155338884e-21) - 3.60543982135142e-18) + 8.93675308928682e-16) - 1.16723639524299e-14) + 3.91224189243262e-14;
};
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/plugins/muff.dsp | faust | generated automatically
DO NOT MODIFY!
clip = tranystage(TB_7199P_68k,86.0,2700.0,3.571981) : tranystage(TB_7199P_68k,86.0,2700.0,3.571981) : tranystage(TB_7199P_68k,86.0,2700.0,3.571981) ;
Level = vslider("Level[name:Level]", 0.5, 0, 1, 0.01): *(0.8) : Inverted(0) : si.smooth(s); | declare id "muff";
declare name "Muff";
declare category "Fuzz";
declare shortname "Muff";
declare description "Muff";
declare insert_p "tranyclipper";
declare volume_p "Level";
import("stdfaust.lib");
import("trany.lib");
process = pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0,b5/a0,b6/a0),(a1/a0,a2/a0,a3/a0,a4/a0,a5/a0,a6/a0)) with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
Tone = vslider("Tone[name:Tone]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
b0 = Tone*pow(fs,3)*(fs*(fs*(-1.29955117406144e-31*fs + 3.73173380397863e-25) + 1.11415567049164e-24) - 3.19936025718332e-18) + (Tone*pow(fs,3)*(fs*(fs*(-5.90705079118838e-30*fs + 1.6962426381721e-23) + 5.06434395678016e-23) - 1.45425466235606e-16) + pow(fs,3)*(fs*(-1.38925083422393e-26*fs + 3.98287967295002e-20) + 1.84690342119219e-16)) + pow(fs,3)*(fs*(-3.05635183529265e-28*fs + 8.76233528049005e-22) + 4.06318752662282e-18);
b1 = Tone*pow(fs,4)*(fs*(7.79730704436866e-31*fs - 1.49269352159145e-24) - 2.22831134098327e-24) + (Tone*pow(fs,4)*(fs*(3.54423047471303e-29*fs - 6.78497055268842e-23) - 1.01286879135603e-22) + pow(fs,4)*(5.55700333689573e-26*fs - 7.96575934590005e-20)) + pow(fs,4)*(1.22254073411706e-27*fs - 1.75246705609801e-21);
b2 = Tone*pow(fs,3)*(fs*(fs*(-1.94932676109216e-30*fs + 1.86586690198932e-24) - 1.11415567049164e-24) + 9.59808077154997e-18) + (Tone*pow(fs,3)*(fs*(fs*(-8.86057618678257e-29*fs + 8.48121319086052e-23) - 5.06434395678016e-23) + 4.36276398706817e-16) + pow(fs,3)*(fs*(-6.94625417111967e-26*fs - 3.98287967295002e-20) - 5.54071026357658e-16)) + pow(fs,3)*(fs*(-1.52817591764633e-27*fs - 8.76233528049005e-22) - 1.21895625798685e-17);
b3 = Tone*pow(fs,4)*(2.59910234812289e-30*pow(fs,2) + 4.45662268196654e-24) + (Tone*pow(fs,4)*(1.18141015823768e-28*pow(fs,2) + 2.02573758271206e-22) + 1.59315186918001e-19*pow(fs,4)) + 3.50493411219602e-21*pow(fs,4);
b4 = Tone*pow(fs,3)*(fs*(fs*(-1.94932676109216e-30*fs - 1.86586690198932e-24) - 1.11415567049164e-24) - 9.59808077154997e-18) + (Tone*pow(fs,3)*(fs*(fs*(-8.86057618678257e-29*fs - 8.48121319086052e-23) - 5.06434395678016e-23) - 4.36276398706817e-16) + pow(fs,3)*(fs*(6.94625417111967e-26*fs - 3.98287967295002e-20) + 5.54071026357658e-16)) + pow(fs,3)*(fs*(1.52817591764633e-27*fs - 8.76233528049005e-22) + 1.21895625798685e-17);
b5 = Tone*pow(fs,4)*(fs*(7.79730704436866e-31*fs + 1.49269352159145e-24) - 2.22831134098327e-24) + (Tone*pow(fs,4)*(fs*(3.54423047471303e-29*fs + 6.78497055268842e-23) - 1.01286879135603e-22) + pow(fs,4)*(-5.55700333689573e-26*fs - 7.96575934590005e-20)) + pow(fs,4)*(-1.22254073411706e-27*fs - 1.75246705609801e-21);
b6 = Tone*pow(fs,3)*(fs*(fs*(-1.29955117406144e-31*fs - 3.73173380397863e-25) + 1.11415567049164e-24) + 3.19936025718332e-18) + (Tone*pow(fs,3)*(fs*(fs*(-5.90705079118838e-30*fs - 1.6962426381721e-23) + 5.06434395678016e-23) + 1.45425466235606e-16) + pow(fs,3)*(fs*(1.38925083422393e-26*fs + 3.98287967295002e-20) - 1.84690342119219e-16)) + pow(fs,3)*(fs*(3.05635183529265e-28*fs + 8.76233528049005e-22) - 4.06318752662282e-18);
a0 = Tone*(Tone*fs*(fs*(fs*(fs*(fs*(-5.75452574944698e-29*fs - 7.27469124190795e-25) - 2.36761929650589e-21) - 2.15665382234029e-18) - 5.3389212423117e-16) - 3.40686364113531e-15) + fs*(fs*(fs*(fs*(fs*(5.77317651704237e-29*fs + 7.91492198040202e-25) + 2.5773097315087e-21) + 2.02385759012812e-18) + 5.21709009014916e-16) + 3.33278467477534e-15)) + fs*(fs*(fs*(fs*(fs*(4.64196013276193e-29*fs + 7.1140905248404e-25) + 2.87245155338884e-21) + 3.60543982135142e-18) + 8.93675308928682e-16) + 1.16723639524299e-14) + 3.91224189243262e-14;
a1 = Tone*(Tone*fs*(fs*(pow(fs,2)*(fs*(3.45271544966819e-28*fs + 2.90987649676318e-24) + 4.73523859301178e-21) - 1.06778424846234e-15) - 1.36274545645413e-14) + fs*(fs*(pow(fs,2)*(fs*(-3.46390591022542e-28*fs - 3.16596879216081e-24) - 5.15461946301739e-21) + 1.04341801802983e-15) + 1.33311386991013e-14)) + fs*(fs*(pow(fs,2)*(fs*(-2.78517607965716e-28*fs - 2.84563620993616e-24) - 5.74490310677768e-21) + 1.78735061785736e-15) + 4.66894558097195e-14) + 2.34734513545957e-13;
a2 = Tone*(Tone*fs*(fs*(fs*(fs*(fs*(-8.63178862417047e-28*fs - 3.63734562095397e-24) + 2.36761929650589e-21) + 6.46996146702087e-18) + 5.3389212423117e-16) - 1.70343182056766e-14) + fs*(fs*(fs*(fs*(fs*(8.65976477556356e-28*fs + 3.95746099020101e-24) - 2.5773097315087e-21) - 6.07157277038437e-18) - 5.21709009014916e-16) + 1.66639233738767e-14)) + fs*(fs*(fs*(fs*(fs*(6.96294019914289e-28*fs + 3.5570452624202e-24) - 2.87245155338884e-21) - 1.08163194640543e-17) - 8.93675308928682e-16) + 5.83618197621494e-14) + 5.86836283864892e-13;
a3 = Tone*(Tone*pow(fs,2)*(pow(fs,2)*(1.1509051498894e-27*pow(fs,2) - 9.47047718602356e-21) + 2.13556849692468e-15) + pow(fs,2)*(pow(fs,2)*(-1.15463530340847e-27*pow(fs,2) + 1.03092389260348e-20) - 2.08683603605967e-15)) + pow(fs,2)*(pow(fs,2)*(-9.28392026552386e-28*pow(fs,2) + 1.14898062135554e-20) - 3.57470123571473e-15) + 7.82448378486523e-13;
a4 = Tone*(Tone*fs*(fs*(fs*(fs*(fs*(-8.63178862417047e-28*fs + 3.63734562095397e-24) + 2.36761929650589e-21) - 6.46996146702087e-18) + 5.3389212423117e-16) + 1.70343182056766e-14) + fs*(fs*(fs*(fs*(fs*(8.65976477556356e-28*fs - 3.95746099020101e-24) - 2.5773097315087e-21) + 6.07157277038437e-18) - 5.21709009014916e-16) - 1.66639233738767e-14)) + fs*(fs*(fs*(fs*(fs*(6.96294019914289e-28*fs - 3.5570452624202e-24) - 2.87245155338884e-21) + 1.08163194640543e-17) - 8.93675308928682e-16) - 5.83618197621494e-14) + 5.86836283864892e-13;
a5 = Tone*(Tone*fs*(fs*(pow(fs,2)*(fs*(3.45271544966819e-28*fs - 2.90987649676318e-24) + 4.73523859301178e-21) - 1.06778424846234e-15) + 1.36274545645413e-14) + fs*(fs*(pow(fs,2)*(fs*(-3.46390591022542e-28*fs + 3.16596879216081e-24) - 5.15461946301739e-21) + 1.04341801802983e-15) - 1.33311386991013e-14)) + fs*(fs*(pow(fs,2)*(fs*(-2.78517607965716e-28*fs + 2.84563620993616e-24) - 5.74490310677768e-21) + 1.78735061785736e-15) - 4.66894558097195e-14) + 2.34734513545957e-13;
a6 = Tone*(Tone*fs*(fs*(fs*(fs*(fs*(-5.75452574944698e-29*fs + 7.27469124190795e-25) - 2.36761929650589e-21) + 2.15665382234029e-18) - 5.3389212423117e-16) + 3.40686364113531e-15) + fs*(fs*(fs*(fs*(fs*(5.77317651704237e-29*fs - 7.91492198040202e-25) + 2.5773097315087e-21) - 2.02385759012812e-18) + 5.21709009014916e-16) - 3.33278467477534e-15)) + fs*(fs*(fs*(fs*(fs*(4.64196013276193e-29*fs - 7.1140905248404e-25) + 2.87245155338884e-21) - 3.60543982135142e-18) + 8.93675308928682e-16) - 1.16723639524299e-14) + 3.91224189243262e-14;
};
|
4b81e6c25eec92827075b6d2a60c5a0e64631016ad0d09f0eb7a5808220b0cd5 | brummer10/guitarix | muff.dsp | // generated automatically
// DO NOT MODIFY!
declare id "muff";
declare name "Muff";
declare category "Fuzz";
declare shortname "Muff";
declare description "Muff";
declare insert_p "tranyclipper";
declare volume_p "Volume";
import("stdfaust.lib");
import("trany.lib");
process = pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0,b5/a0,b6/a0),(a1/a0,a2/a0,a3/a0,a4/a0,a5/a0,a6/a0)) with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
//clip = tranystage(TB_7199P_68k,86.0,2700.0,3.571981) : tranystage(TB_7199P_68k,86.0,2700.0,3.571981) : tranystage(TB_7199P_68k,86.0,2700.0,3.571981) ;
Tone = vslider("Tone[name:Tone]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
//Level = vslider("Level[name:Level]", 0.5, 0, 1, 0.01): *(0.8) : Inverted(0) : si.smooth(s);
b0 = Tone*pow(fs,3)*(fs*(fs*(-1.29955117406144e-31*fs + 3.73173380397863e-25) + 1.11415567049164e-24) - 3.19936025718332e-18) + (Tone*pow(fs,3)*(fs*(fs*(-5.90705079118838e-30*fs + 1.6962426381721e-23) + 5.06434395678016e-23) - 1.45425466235606e-16) + pow(fs,3)*(fs*(-1.38925083422393e-26*fs + 3.98287967295002e-20) + 1.84690342119219e-16)) + pow(fs,3)*(fs*(-3.05635183529265e-28*fs + 8.76233528049005e-22) + 4.06318752662282e-18);
b1 = Tone*pow(fs,4)*(fs*(7.79730704436866e-31*fs - 1.49269352159145e-24) - 2.22831134098327e-24) + (Tone*pow(fs,4)*(fs*(3.54423047471303e-29*fs - 6.78497055268842e-23) - 1.01286879135603e-22) + pow(fs,4)*(5.55700333689573e-26*fs - 7.96575934590005e-20)) + pow(fs,4)*(1.22254073411706e-27*fs - 1.75246705609801e-21);
b2 = Tone*pow(fs,3)*(fs*(fs*(-1.94932676109216e-30*fs + 1.86586690198932e-24) - 1.11415567049164e-24) + 9.59808077154997e-18) + (Tone*pow(fs,3)*(fs*(fs*(-8.86057618678257e-29*fs + 8.48121319086052e-23) - 5.06434395678016e-23) + 4.36276398706817e-16) + pow(fs,3)*(fs*(-6.94625417111967e-26*fs - 3.98287967295002e-20) - 5.54071026357658e-16)) + pow(fs,3)*(fs*(-1.52817591764633e-27*fs - 8.76233528049005e-22) - 1.21895625798685e-17);
b3 = Tone*pow(fs,4)*(2.59910234812289e-30*pow(fs,2) + 4.45662268196654e-24) + (Tone*pow(fs,4)*(1.18141015823768e-28*pow(fs,2) + 2.02573758271206e-22) + 1.59315186918001e-19*pow(fs,4)) + 3.50493411219602e-21*pow(fs,4);
b4 = Tone*pow(fs,3)*(fs*(fs*(-1.94932676109216e-30*fs - 1.86586690198932e-24) - 1.11415567049164e-24) - 9.59808077154997e-18) + (Tone*pow(fs,3)*(fs*(fs*(-8.86057618678257e-29*fs - 8.48121319086052e-23) - 5.06434395678016e-23) - 4.36276398706817e-16) + pow(fs,3)*(fs*(6.94625417111967e-26*fs - 3.98287967295002e-20) + 5.54071026357658e-16)) + pow(fs,3)*(fs*(1.52817591764633e-27*fs - 8.76233528049005e-22) + 1.21895625798685e-17);
b5 = Tone*pow(fs,4)*(fs*(7.79730704436866e-31*fs + 1.49269352159145e-24) - 2.22831134098327e-24) + (Tone*pow(fs,4)*(fs*(3.54423047471303e-29*fs + 6.78497055268842e-23) - 1.01286879135603e-22) + pow(fs,4)*(-5.55700333689573e-26*fs - 7.96575934590005e-20)) + pow(fs,4)*(-1.22254073411706e-27*fs - 1.75246705609801e-21);
b6 = Tone*pow(fs,3)*(fs*(fs*(-1.29955117406144e-31*fs - 3.73173380397863e-25) + 1.11415567049164e-24) + 3.19936025718332e-18) + (Tone*pow(fs,3)*(fs*(fs*(-5.90705079118838e-30*fs - 1.6962426381721e-23) + 5.06434395678016e-23) + 1.45425466235606e-16) + pow(fs,3)*(fs*(1.38925083422393e-26*fs + 3.98287967295002e-20) - 1.84690342119219e-16)) + pow(fs,3)*(fs*(3.05635183529265e-28*fs + 8.76233528049005e-22) - 4.06318752662282e-18);
a0 = Tone*(Tone*fs*(fs*(fs*(fs*(fs*(-5.75452574944698e-29*fs - 7.27469124190795e-25) - 2.36761929650589e-21) - 2.15665382234029e-18) - 5.3389212423117e-16) - 3.40686364113531e-15) + fs*(fs*(fs*(fs*(fs*(5.77317651704237e-29*fs + 7.91492198040202e-25) + 2.5773097315087e-21) + 2.02385759012812e-18) + 5.21709009014916e-16) + 3.33278467477534e-15)) + fs*(fs*(fs*(fs*(fs*(4.64196013276193e-29*fs + 7.1140905248404e-25) + 2.87245155338884e-21) + 3.60543982135142e-18) + 8.93675308928682e-16) + 1.16723639524299e-14) + 3.91224189243262e-14;
a1 = Tone*(Tone*fs*(fs*(pow(fs,2)*(fs*(3.45271544966819e-28*fs + 2.90987649676318e-24) + 4.73523859301178e-21) - 1.06778424846234e-15) - 1.36274545645413e-14) + fs*(fs*(pow(fs,2)*(fs*(-3.46390591022542e-28*fs - 3.16596879216081e-24) - 5.15461946301739e-21) + 1.04341801802983e-15) + 1.33311386991013e-14)) + fs*(fs*(pow(fs,2)*(fs*(-2.78517607965716e-28*fs - 2.84563620993616e-24) - 5.74490310677768e-21) + 1.78735061785736e-15) + 4.66894558097195e-14) + 2.34734513545957e-13;
a2 = Tone*(Tone*fs*(fs*(fs*(fs*(fs*(-8.63178862417047e-28*fs - 3.63734562095397e-24) + 2.36761929650589e-21) + 6.46996146702087e-18) + 5.3389212423117e-16) - 1.70343182056766e-14) + fs*(fs*(fs*(fs*(fs*(8.65976477556356e-28*fs + 3.95746099020101e-24) - 2.5773097315087e-21) - 6.07157277038437e-18) - 5.21709009014916e-16) + 1.66639233738767e-14)) + fs*(fs*(fs*(fs*(fs*(6.96294019914289e-28*fs + 3.5570452624202e-24) - 2.87245155338884e-21) - 1.08163194640543e-17) - 8.93675308928682e-16) + 5.83618197621494e-14) + 5.86836283864892e-13;
a3 = Tone*(Tone*pow(fs,2)*(pow(fs,2)*(1.1509051498894e-27*pow(fs,2) - 9.47047718602356e-21) + 2.13556849692468e-15) + pow(fs,2)*(pow(fs,2)*(-1.15463530340847e-27*pow(fs,2) + 1.03092389260348e-20) - 2.08683603605967e-15)) + pow(fs,2)*(pow(fs,2)*(-9.28392026552386e-28*pow(fs,2) + 1.14898062135554e-20) - 3.57470123571473e-15) + 7.82448378486523e-13;
a4 = Tone*(Tone*fs*(fs*(fs*(fs*(fs*(-8.63178862417047e-28*fs + 3.63734562095397e-24) + 2.36761929650589e-21) - 6.46996146702087e-18) + 5.3389212423117e-16) + 1.70343182056766e-14) + fs*(fs*(fs*(fs*(fs*(8.65976477556356e-28*fs - 3.95746099020101e-24) - 2.5773097315087e-21) + 6.07157277038437e-18) - 5.21709009014916e-16) - 1.66639233738767e-14)) + fs*(fs*(fs*(fs*(fs*(6.96294019914289e-28*fs - 3.5570452624202e-24) - 2.87245155338884e-21) + 1.08163194640543e-17) - 8.93675308928682e-16) - 5.83618197621494e-14) + 5.86836283864892e-13;
a5 = Tone*(Tone*fs*(fs*(pow(fs,2)*(fs*(3.45271544966819e-28*fs - 2.90987649676318e-24) + 4.73523859301178e-21) - 1.06778424846234e-15) + 1.36274545645413e-14) + fs*(fs*(pow(fs,2)*(fs*(-3.46390591022542e-28*fs + 3.16596879216081e-24) - 5.15461946301739e-21) + 1.04341801802983e-15) - 1.33311386991013e-14)) + fs*(fs*(pow(fs,2)*(fs*(-2.78517607965716e-28*fs + 2.84563620993616e-24) - 5.74490310677768e-21) + 1.78735061785736e-15) - 4.66894558097195e-14) + 2.34734513545957e-13;
a6 = Tone*(Tone*fs*(fs*(fs*(fs*(fs*(-5.75452574944698e-29*fs + 7.27469124190795e-25) - 2.36761929650589e-21) + 2.15665382234029e-18) - 5.3389212423117e-16) + 3.40686364113531e-15) + fs*(fs*(fs*(fs*(fs*(5.77317651704237e-29*fs - 7.91492198040202e-25) + 2.5773097315087e-21) - 2.02385759012812e-18) + 5.21709009014916e-16) - 3.33278467477534e-15)) + fs*(fs*(fs*(fs*(fs*(4.64196013276193e-29*fs - 7.1140905248404e-25) + 2.87245155338884e-21) - 3.60543982135142e-18) + 8.93675308928682e-16) - 1.16723639524299e-14) + 3.91224189243262e-14;
};
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/muff.dsp | faust | generated automatically
DO NOT MODIFY!
clip = tranystage(TB_7199P_68k,86.0,2700.0,3.571981) : tranystage(TB_7199P_68k,86.0,2700.0,3.571981) : tranystage(TB_7199P_68k,86.0,2700.0,3.571981) ;
Level = vslider("Level[name:Level]", 0.5, 0, 1, 0.01): *(0.8) : Inverted(0) : si.smooth(s); | declare id "muff";
declare name "Muff";
declare category "Fuzz";
declare shortname "Muff";
declare description "Muff";
declare insert_p "tranyclipper";
declare volume_p "Volume";
import("stdfaust.lib");
import("trany.lib");
process = pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0,b5/a0,b6/a0),(a1/a0,a2/a0,a3/a0,a4/a0,a5/a0,a6/a0)) with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
Tone = vslider("Tone[name:Tone]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
b0 = Tone*pow(fs,3)*(fs*(fs*(-1.29955117406144e-31*fs + 3.73173380397863e-25) + 1.11415567049164e-24) - 3.19936025718332e-18) + (Tone*pow(fs,3)*(fs*(fs*(-5.90705079118838e-30*fs + 1.6962426381721e-23) + 5.06434395678016e-23) - 1.45425466235606e-16) + pow(fs,3)*(fs*(-1.38925083422393e-26*fs + 3.98287967295002e-20) + 1.84690342119219e-16)) + pow(fs,3)*(fs*(-3.05635183529265e-28*fs + 8.76233528049005e-22) + 4.06318752662282e-18);
b1 = Tone*pow(fs,4)*(fs*(7.79730704436866e-31*fs - 1.49269352159145e-24) - 2.22831134098327e-24) + (Tone*pow(fs,4)*(fs*(3.54423047471303e-29*fs - 6.78497055268842e-23) - 1.01286879135603e-22) + pow(fs,4)*(5.55700333689573e-26*fs - 7.96575934590005e-20)) + pow(fs,4)*(1.22254073411706e-27*fs - 1.75246705609801e-21);
b2 = Tone*pow(fs,3)*(fs*(fs*(-1.94932676109216e-30*fs + 1.86586690198932e-24) - 1.11415567049164e-24) + 9.59808077154997e-18) + (Tone*pow(fs,3)*(fs*(fs*(-8.86057618678257e-29*fs + 8.48121319086052e-23) - 5.06434395678016e-23) + 4.36276398706817e-16) + pow(fs,3)*(fs*(-6.94625417111967e-26*fs - 3.98287967295002e-20) - 5.54071026357658e-16)) + pow(fs,3)*(fs*(-1.52817591764633e-27*fs - 8.76233528049005e-22) - 1.21895625798685e-17);
b3 = Tone*pow(fs,4)*(2.59910234812289e-30*pow(fs,2) + 4.45662268196654e-24) + (Tone*pow(fs,4)*(1.18141015823768e-28*pow(fs,2) + 2.02573758271206e-22) + 1.59315186918001e-19*pow(fs,4)) + 3.50493411219602e-21*pow(fs,4);
b4 = Tone*pow(fs,3)*(fs*(fs*(-1.94932676109216e-30*fs - 1.86586690198932e-24) - 1.11415567049164e-24) - 9.59808077154997e-18) + (Tone*pow(fs,3)*(fs*(fs*(-8.86057618678257e-29*fs - 8.48121319086052e-23) - 5.06434395678016e-23) - 4.36276398706817e-16) + pow(fs,3)*(fs*(6.94625417111967e-26*fs - 3.98287967295002e-20) + 5.54071026357658e-16)) + pow(fs,3)*(fs*(1.52817591764633e-27*fs - 8.76233528049005e-22) + 1.21895625798685e-17);
b5 = Tone*pow(fs,4)*(fs*(7.79730704436866e-31*fs + 1.49269352159145e-24) - 2.22831134098327e-24) + (Tone*pow(fs,4)*(fs*(3.54423047471303e-29*fs + 6.78497055268842e-23) - 1.01286879135603e-22) + pow(fs,4)*(-5.55700333689573e-26*fs - 7.96575934590005e-20)) + pow(fs,4)*(-1.22254073411706e-27*fs - 1.75246705609801e-21);
b6 = Tone*pow(fs,3)*(fs*(fs*(-1.29955117406144e-31*fs - 3.73173380397863e-25) + 1.11415567049164e-24) + 3.19936025718332e-18) + (Tone*pow(fs,3)*(fs*(fs*(-5.90705079118838e-30*fs - 1.6962426381721e-23) + 5.06434395678016e-23) + 1.45425466235606e-16) + pow(fs,3)*(fs*(1.38925083422393e-26*fs + 3.98287967295002e-20) - 1.84690342119219e-16)) + pow(fs,3)*(fs*(3.05635183529265e-28*fs + 8.76233528049005e-22) - 4.06318752662282e-18);
a0 = Tone*(Tone*fs*(fs*(fs*(fs*(fs*(-5.75452574944698e-29*fs - 7.27469124190795e-25) - 2.36761929650589e-21) - 2.15665382234029e-18) - 5.3389212423117e-16) - 3.40686364113531e-15) + fs*(fs*(fs*(fs*(fs*(5.77317651704237e-29*fs + 7.91492198040202e-25) + 2.5773097315087e-21) + 2.02385759012812e-18) + 5.21709009014916e-16) + 3.33278467477534e-15)) + fs*(fs*(fs*(fs*(fs*(4.64196013276193e-29*fs + 7.1140905248404e-25) + 2.87245155338884e-21) + 3.60543982135142e-18) + 8.93675308928682e-16) + 1.16723639524299e-14) + 3.91224189243262e-14;
a1 = Tone*(Tone*fs*(fs*(pow(fs,2)*(fs*(3.45271544966819e-28*fs + 2.90987649676318e-24) + 4.73523859301178e-21) - 1.06778424846234e-15) - 1.36274545645413e-14) + fs*(fs*(pow(fs,2)*(fs*(-3.46390591022542e-28*fs - 3.16596879216081e-24) - 5.15461946301739e-21) + 1.04341801802983e-15) + 1.33311386991013e-14)) + fs*(fs*(pow(fs,2)*(fs*(-2.78517607965716e-28*fs - 2.84563620993616e-24) - 5.74490310677768e-21) + 1.78735061785736e-15) + 4.66894558097195e-14) + 2.34734513545957e-13;
a2 = Tone*(Tone*fs*(fs*(fs*(fs*(fs*(-8.63178862417047e-28*fs - 3.63734562095397e-24) + 2.36761929650589e-21) + 6.46996146702087e-18) + 5.3389212423117e-16) - 1.70343182056766e-14) + fs*(fs*(fs*(fs*(fs*(8.65976477556356e-28*fs + 3.95746099020101e-24) - 2.5773097315087e-21) - 6.07157277038437e-18) - 5.21709009014916e-16) + 1.66639233738767e-14)) + fs*(fs*(fs*(fs*(fs*(6.96294019914289e-28*fs + 3.5570452624202e-24) - 2.87245155338884e-21) - 1.08163194640543e-17) - 8.93675308928682e-16) + 5.83618197621494e-14) + 5.86836283864892e-13;
a3 = Tone*(Tone*pow(fs,2)*(pow(fs,2)*(1.1509051498894e-27*pow(fs,2) - 9.47047718602356e-21) + 2.13556849692468e-15) + pow(fs,2)*(pow(fs,2)*(-1.15463530340847e-27*pow(fs,2) + 1.03092389260348e-20) - 2.08683603605967e-15)) + pow(fs,2)*(pow(fs,2)*(-9.28392026552386e-28*pow(fs,2) + 1.14898062135554e-20) - 3.57470123571473e-15) + 7.82448378486523e-13;
a4 = Tone*(Tone*fs*(fs*(fs*(fs*(fs*(-8.63178862417047e-28*fs + 3.63734562095397e-24) + 2.36761929650589e-21) - 6.46996146702087e-18) + 5.3389212423117e-16) + 1.70343182056766e-14) + fs*(fs*(fs*(fs*(fs*(8.65976477556356e-28*fs - 3.95746099020101e-24) - 2.5773097315087e-21) + 6.07157277038437e-18) - 5.21709009014916e-16) - 1.66639233738767e-14)) + fs*(fs*(fs*(fs*(fs*(6.96294019914289e-28*fs - 3.5570452624202e-24) - 2.87245155338884e-21) + 1.08163194640543e-17) - 8.93675308928682e-16) - 5.83618197621494e-14) + 5.86836283864892e-13;
a5 = Tone*(Tone*fs*(fs*(pow(fs,2)*(fs*(3.45271544966819e-28*fs - 2.90987649676318e-24) + 4.73523859301178e-21) - 1.06778424846234e-15) + 1.36274545645413e-14) + fs*(fs*(pow(fs,2)*(fs*(-3.46390591022542e-28*fs + 3.16596879216081e-24) - 5.15461946301739e-21) + 1.04341801802983e-15) - 1.33311386991013e-14)) + fs*(fs*(pow(fs,2)*(fs*(-2.78517607965716e-28*fs + 2.84563620993616e-24) - 5.74490310677768e-21) + 1.78735061785736e-15) - 4.66894558097195e-14) + 2.34734513545957e-13;
a6 = Tone*(Tone*fs*(fs*(fs*(fs*(fs*(-5.75452574944698e-29*fs + 7.27469124190795e-25) - 2.36761929650589e-21) + 2.15665382234029e-18) - 5.3389212423117e-16) + 3.40686364113531e-15) + fs*(fs*(fs*(fs*(fs*(5.77317651704237e-29*fs - 7.91492198040202e-25) + 2.5773097315087e-21) - 2.02385759012812e-18) + 5.21709009014916e-16) - 3.33278467477534e-15)) + fs*(fs*(fs*(fs*(fs*(4.64196013276193e-29*fs - 7.1140905248404e-25) + 2.87245155338884e-21) - 3.60543982135142e-18) + 8.93675308928682e-16) - 1.16723639524299e-14) + 3.91224189243262e-14;
};
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.