_id
string
repository
string
name
string
content
string
download_url
string
language
string
comments
string
code
string
cb6a7c808f8ea55e3b1b95201eeeae4215f61fd8bcda744da86a114be988f57c
brummer10/guitarix
overdrive.dsp
declare name "Overdrive"; declare category "Distortion"; import("stdfaust.lib"); import("guitarix.lib"); drive = vslider("drive", 1, 1, 20, 0.1); f = drive * -0.5 : ba.db2linear : smoothi(0.999); wet = vslider("wet_dry[name:wet/dry][tooltip:percentage of processed signal in output signal]", 100, 0, 100, 1) : /(100); dry = 1 - wet; overdrive(x) = (x*(abs(x) + drive)/(x*x + (drive-1)*abs(x) + 1)) * f; process = _<:*(dry),(*(wet) : overdrive):>_;
https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/overdrive.dsp
faust
declare name "Overdrive"; declare category "Distortion"; import("stdfaust.lib"); import("guitarix.lib"); drive = vslider("drive", 1, 1, 20, 0.1); f = drive * -0.5 : ba.db2linear : smoothi(0.999); wet = vslider("wet_dry[name:wet/dry][tooltip:percentage of processed signal in output signal]", 100, 0, 100, 1) : /(100); dry = 1 - wet; overdrive(x) = (x*(abs(x) + drive)/(x*x + (drive-1)*abs(x) + 1)) * f; process = _<:*(dry),(*(wet) : overdrive):>_;
14bd754112bb903d031698643844973ed61744e69bde790ef924119a67fb0a52
brummer10/guitarix
overdrive.dsp
declare name "Overdrive"; declare category "Distortion"; import("stdfaust.lib"); import("guitarix.lib"); drive = vslider("drive[name:Drive]", 1, 1, 20, 0.1); f = drive * -0.5 : ba.db2linear : smoothi(0.999); wet = vslider("wet_dry[name:Dry/Wet][tooltip:percentage of processed signal in output signal]", 100, 0, 100, 1) : /(100); dry = 1 - wet; overdrive(x) = (x*(abs(x) + drive)/(x*x + (drive-1)*abs(x) + 1)) * f; process = _<:*(dry),(*(wet) : overdrive):>_;
https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/overdrive.dsp
faust
declare name "Overdrive"; declare category "Distortion"; import("stdfaust.lib"); import("guitarix.lib"); drive = vslider("drive[name:Drive]", 1, 1, 20, 0.1); f = drive * -0.5 : ba.db2linear : smoothi(0.999); wet = vslider("wet_dry[name:Dry/Wet][tooltip:percentage of processed signal in output signal]", 100, 0, 100, 1) : /(100); dry = 1 - wet; overdrive(x) = (x*(abs(x) + drive)/(x*x + (drive-1)*abs(x) + 1)) * f; process = _<:*(dry),(*(wet) : overdrive):>_;
29817483164065b3393cc10055fa57249e2e4d18054c7844a5ab4e4d69c68bd6
brummer10/guitarix
jconv_post_mono.dsp
declare id "jconv_mono"; import("stdfaust.lib"); import("guitarix.lib"); wet = vslider("wet_dry[name:wet/dry][tooltip:percentage of processed signal in output signal]", 100, 0, 100, 1) : /(100); dry = 1 - wet; gain = vslider("gain[name:Gain][tooltip:gain trim for processed signal (unit: dB)]", 0, -20, 20, 0.1) : ba.db2linear : smoothi(0.999); process = *(dry), (*(wet): *(gain)) :>_ ;
https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/jconv_post_mono.dsp
faust
declare id "jconv_mono"; import("stdfaust.lib"); import("guitarix.lib"); wet = vslider("wet_dry[name:wet/dry][tooltip:percentage of processed signal in output signal]", 100, 0, 100, 1) : /(100); dry = 1 - wet; gain = vslider("gain[name:Gain][tooltip:gain trim for processed signal (unit: dB)]", 0, -20, 20, 0.1) : ba.db2linear : smoothi(0.999); process = *(dry), (*(wet): *(gain)) :>_ ;
155d735b1cd940f8b97a04f4ef97d54f8499db86f4686cfdf9a33c6ea629b227
brummer10/guitarix
vibe_lfo_triangle.dsp
import("guitarix.lib"); import("stdfaust.lib"); rawsaw_stereo(periodsamps, phasesamps) = rawsaw(periodsamps) <: _, shift(phasesamps) with { shift(x) = _+x, periodsamps : fmod; }; triangle_stereo(periodsamps, phasesamps) = rawsaw_stereo(periodsamps, phasesamps) : triangle with { triangleshaper = 2 * _ / periodsamps <: select2(_ > 1, _, 2 - _); triangle = triangleshaper, triangleshaper; }; process = triangle_stereo(periodsamps, phasesamps) with { periodsamps = ma.SR/vibe_lfo_ctrl.freq; phasesamps = periodsamps * (1 + vibe_lfo_ctrl.phase / (2 * ma.PI)); };
https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/vibe_lfo_triangle.dsp
faust
import("guitarix.lib"); import("stdfaust.lib"); rawsaw_stereo(periodsamps, phasesamps) = rawsaw(periodsamps) <: _, shift(phasesamps) with { shift(x) = _+x, periodsamps : fmod; }; triangle_stereo(periodsamps, phasesamps) = rawsaw_stereo(periodsamps, phasesamps) : triangle with { triangleshaper = 2 * _ / periodsamps <: select2(_ > 1, _, 2 - _); triangle = triangleshaper, triangleshaper; }; process = triangle_stereo(periodsamps, phasesamps) with { periodsamps = ma.SR/vibe_lfo_ctrl.freq; phasesamps = periodsamps * (1 + vibe_lfo_ctrl.phase / (2 * ma.PI)); };
383b253b2bf152517eb8ea422a16ac7627cdd8458f53c39724f7a6bd0e096a28
brummer10/guitarix
delay.dsp
declare name "Delay"; declare category "Echo / Delay"; import("stdfaust.lib"); import("guitarix.lib"); msec = ma.SR/1000.0; interp = 100*msec; N = int( 2^19); gain = vslider("gain[name:Gain]", 0, -20, 20, 0.1) : ba.db2linear : smoothi(0.999); d = ba.tempo(hslider("bpm[name:BPM][tooltip:Delay in Beats per Minute]",120,24,360,1)); //d = vslider("de.delay", 0, 0, 5000, 10)*msec; process = _ <: _ + gain * de.sdelay(N, interp,d) :> _;
https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/delay.dsp
faust
d = vslider("de.delay", 0, 0, 5000, 10)*msec;
declare name "Delay"; declare category "Echo / Delay"; import("stdfaust.lib"); import("guitarix.lib"); msec = ma.SR/1000.0; interp = 100*msec; N = int( 2^19); gain = vslider("gain[name:Gain]", 0, -20, 20, 0.1) : ba.db2linear : smoothi(0.999); d = ba.tempo(hslider("bpm[name:BPM][tooltip:Delay in Beats per Minute]",120,24,360,1)); process = _ <: _ + gain * de.sdelay(N, interp,d) :> _;
53db707df261fe85d60a2766aa49a55c7ece14fc599c5ce0edf5afb0d8f9ae1f
brummer10/guitarix
reso_tube.dsp
declare id "tube2"; import("stdfaust.lib"); import("guitarix.lib"); resonator = (+ <: (de.delay(4096, d-1) + de.delay(4096, d))/2.0)~*(1.0-a) with { //d = vslider("vibrato", 0.5, 0, 1, 0.01); d = 1 - vslider("vibrato[alias]", 1, 0, 1, 0.01); //a = vslider("trigger", 0.12, 0, 1, 0.01); a = 0.9 - vslider("resonanz[alias]", 0.5, 0, 0.9, 0.01); }; //fuzzy = vslider("fuzzy", 0.5, 0, 1, 0.01); fuzzy = vslider("fuzzy[name:tube][alias]", 1, -3, 10, 1); tube1 = nonlin1 : resonator * fuzzy * 0.5 : sym_clip(0.7) : ma.neg; process = add_dc <: _ + tube1 : sym_clip(0.7);
https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/reso_tube.dsp
faust
d = vslider("vibrato", 0.5, 0, 1, 0.01); a = vslider("trigger", 0.12, 0, 1, 0.01); fuzzy = vslider("fuzzy", 0.5, 0, 1, 0.01);
declare id "tube2"; import("stdfaust.lib"); import("guitarix.lib"); resonator = (+ <: (de.delay(4096, d-1) + de.delay(4096, d))/2.0)~*(1.0-a) with { d = 1 - vslider("vibrato[alias]", 1, 0, 1, 0.01); a = 0.9 - vslider("resonanz[alias]", 0.5, 0, 0.9, 0.01); }; fuzzy = vslider("fuzzy[name:tube][alias]", 1, -3, 10, 1); tube1 = nonlin1 : resonator * fuzzy * 0.5 : sym_clip(0.7) : ma.neg; process = add_dc <: _ + tube1 : sym_clip(0.7);
edd8d9a0cbc0ddd64bce3fb5317de5f483822249ad8a874de7a6627762875b74
brummer10/guitarix
valve_rect.dsp
// dsp algorithm from swh ladspa valve_rect plugin (Steve Harrison) import("stdfaust.lib"); import("guitarix.lib"); sag = vslider("sag", 0, 0, 1, 0.01); dist_p = vslider("dist", 0, 0, 1, 0.01); process(x) = valve.vt(dist, q(x), x) with { dist = dist_p * 40 + 0.1; q(x) = lp1tm1(x) * sag - 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 - delay1s(avg_size,x) : + ~ _ : /(avg_size); lp2tm1 = avgs : lp(0.999); };
https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/valve_rect.dsp
faust
dsp algorithm from swh ladspa valve_rect plugin (Steve Harrison)
import("stdfaust.lib"); import("guitarix.lib"); sag = vslider("sag", 0, 0, 1, 0.01); dist_p = vslider("dist", 0, 0, 1, 0.01); process(x) = valve.vt(dist, q(x), x) with { dist = dist_p * 40 + 0.1; q(x) = lp1tm1(x) * sag - 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 - delay1s(avg_size,x) : + ~ _ : /(avg_size); lp2tm1 = avgs : lp(0.999); };
2449934df4bb0bde4d2f963c12e10057dfd338e781f016ba18046dc2f605468f
brummer10/guitarix
cabinet_impulse_former.dsp
//declare name "Cabinet Impulse Former"; declare id "cab"; import("stdfaust.lib"); import("guitarix.lib"); gain = vslider("Level[alias]", 1, 0.5, 5, 0.5) ; bass_gain = vslider("bass[name:bass][alias]", 0, -10, 10, 0.5); treble_gain = vslider("treble[name:treble][alias]", 0, -10, 10, 0.5); tone = component("tone.dsp").gxlow_shelf(300,bass_gain): component("tone.dsp").gxhigh_shelf(2400,treble_gain); process = tone : *(gain * pow(10, -0.1 * gain)); // FIXME
https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/cabinet_impulse_former.dsp
faust
declare name "Cabinet Impulse Former"; FIXME
declare id "cab"; import("stdfaust.lib"); import("guitarix.lib"); gain = vslider("Level[alias]", 1, 0.5, 5, 0.5) ; bass_gain = vslider("bass[name:bass][alias]", 0, -10, 10, 0.5); treble_gain = vslider("treble[name:treble][alias]", 0, -10, 10, 0.5); tone = component("tone.dsp").gxlow_shelf(300,bass_gain): component("tone.dsp").gxhigh_shelf(2400,treble_gain);
2f3a8bd34e27a39984a5327f060b0f512e3a624a1d5b4d9a99b43ce610330a4a
brummer10/guitarix
preamp_impulse_former.dsp
//declare name "Preamp Impulse Former"; declare id "pre"; import("stdfaust.lib"); import("guitarix.lib"); gain = vslider("Level[alias]", 1, 0.1, 2.1, 0.1) ; bass_gain = vslider("bass[name:bass][alias]", 0, -10, 10, 0.5); treble_gain = vslider("treble[name:treble][alias]", 0, -10, 10, 0.5); tone = component("tone.dsp").gxlow_shelf(300,bass_gain): component("tone.dsp").gxhigh_shelf(2400,treble_gain); process = tone : *(gain * pow(10, -0.1 * gain)); // FIXME
https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/preamp_impulse_former.dsp
faust
declare name "Preamp Impulse Former"; FIXME
declare id "pre"; import("stdfaust.lib"); import("guitarix.lib"); gain = vslider("Level[alias]", 1, 0.1, 2.1, 0.1) ; bass_gain = vslider("bass[name:bass][alias]", 0, -10, 10, 0.5); treble_gain = vslider("treble[name:treble][alias]", 0, -10, 10, 0.5); tone = component("tone.dsp").gxlow_shelf(300,bass_gain): component("tone.dsp").gxhigh_shelf(2400,treble_gain);
4d85974b2db701fe43db9beb4615cf17429d52b5ba27c5e481bc0339b492d9ce
brummer10/guitarix
feed.dsp
import("stdfaust.lib"); fold = ffunction(float fold(float,float), <math.h>, ""); ngate = fvariable(float ngate, <math.h>); feedback = hslider("amp.feedback[name:Feedback]", 0, -1, 1, 0.01); feedforward = hslider("amp.feedforward[name:Feedforward]", 0, -1, 1, 0.01); threshold = hslider("amp.fuzz[name:fuzz]", 1, 0, 1, 0.01); tmax = 1-pow(10,-6); // 0 is bad value when using sigmoid in fold fforw(x) = x + feedforward * x'''; fbackw = (- : ma.neg : *(ngate) : fold(min(tmax,threshold))) ~ (feedback * _''''); process = fforw : fbackw <: _,_;
https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/feed.dsp
faust
0 is bad value when using sigmoid in fold
import("stdfaust.lib"); fold = ffunction(float fold(float,float), <math.h>, ""); ngate = fvariable(float ngate, <math.h>); feedback = hslider("amp.feedback[name:Feedback]", 0, -1, 1, 0.01); feedforward = hslider("amp.feedforward[name:Feedforward]", 0, -1, 1, 0.01); threshold = hslider("amp.fuzz[name:fuzz]", 1, 0, 1, 0.01); fforw(x) = x + feedforward * x'''; fbackw = (- : ma.neg : *(ngate) : fold(min(tmax,threshold))) ~ (feedback * _''''); process = fforw : fbackw <: _,_;
e10d69c31add11d47fe7a073c8f869373eaf54a41be98270598198036327ded7
brummer10/guitarix
cabinet_impulse_former_st.dsp
//declare name "Cabinet Impulse Former"; declare id "cab_st"; import("stdfaust.lib"); gain = vslider("Level[name:Level][tooltip:Level][alias]", 1, 0.5, 5, 0.5) ; bass_gain = vslider("bass[name:Bass][tooltip:Bass][alias]", 0, -10, 10, 0.5); treble_gain = vslider("treble[name:Treble][tooltip:Treble][alias]", 0, -10, 10, 0.5); tone = component("tone.dsp").gxlow_shelf(300,bass_gain): component("tone.dsp").gxhigh_shelf(2400,treble_gain); process = tone : *(gain * pow(10, -0.1 * gain)); // FIXME
https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/cabinet_impulse_former_st.dsp
faust
declare name "Cabinet Impulse Former"; FIXME
declare id "cab_st"; import("stdfaust.lib"); gain = vslider("Level[name:Level][tooltip:Level][alias]", 1, 0.5, 5, 0.5) ; bass_gain = vslider("bass[name:Bass][tooltip:Bass][alias]", 0, -10, 10, 0.5); treble_gain = vslider("treble[name:Treble][tooltip:Treble][alias]", 0, -10, 10, 0.5); tone = component("tone.dsp").gxlow_shelf(300,bass_gain): component("tone.dsp").gxhigh_shelf(2400,treble_gain);
e30cd2efbf9528bffcc4be3138f0fd08f42891c84196436378704ac53092835b
brummer10/guitarix
preamp.dsp
//declare name "preamp"; import("stdfaust.lib"); import("guitarix.lib"); fatan = vslider("atan[name:drive][tooltip:Input level for pre-amp (higher level gives more distortion)]", 1, 1, 10, 1); moving_filter(x) = (x+x'+x'')/3; nonlin1p(x) = (x-0.15*x*x)-(0.15*(x+anti_denormal_ac)*x*x); nonlin2p(x) = 1.5*x - 0.5*(x+anti_denormal_ac)*x*x; normalize(fatan) = 1/atan(fatan) * atan(_*fatan); process = moving_filter : nonlin1p : nonlin2p : normalize(fatan)*0.75 : moving_filter; /* ** old definition was: ** moving_filter*0.001 : nonlin1 : nonlin2 : normalize(fatan)*750; */
https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/preamp.dsp
faust
declare name "preamp"; ** old definition was: ** moving_filter*0.001 : nonlin1 : nonlin2 : normalize(fatan)*750;
import("stdfaust.lib"); import("guitarix.lib"); fatan = vslider("atan[name:drive][tooltip:Input level for pre-amp (higher level gives more distortion)]", 1, 1, 10, 1); moving_filter(x) = (x+x'+x'')/3; nonlin1p(x) = (x-0.15*x*x)-(0.15*(x+anti_denormal_ac)*x*x); nonlin2p(x) = 1.5*x - 0.5*(x+anti_denormal_ac)*x*x; normalize(fatan) = 1/atan(fatan) * atan(_*fatan); process = moving_filter : nonlin1p : nonlin2p : normalize(fatan)*0.75 : moving_filter;
c8f303f7b5c93655d388817c1f8dd57cd06adf7d65875e0b1a4ae20832bd1d89
brummer10/guitarix
preamp_impulse_former.dsp
//declare name "Preamp Impulse Former"; declare id "pre"; import("stdfaust.lib"); import("guitarix.lib"); gain = vslider("Level[name:Level][tooltip:Level][alias]", 1, 0.1, 2.1, 0.1) ; bass_gain = vslider("bass[name:Bass][tooltip:Bass][alias]", 0, -10, 10, 0.5); treble_gain = vslider("treble[name:Treble][tooltip:Treble][alias]", 0, -10, 10, 0.5); tone = component("tone.dsp").gxlow_shelf(300,bass_gain): component("tone.dsp").gxhigh_shelf(2400,treble_gain); process = tone : *(gain * pow(10, -0.1 * gain)); // FIXME
https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/preamp_impulse_former.dsp
faust
declare name "Preamp Impulse Former"; FIXME
declare id "pre"; import("stdfaust.lib"); import("guitarix.lib"); gain = vslider("Level[name:Level][tooltip:Level][alias]", 1, 0.1, 2.1, 0.1) ; bass_gain = vslider("bass[name:Bass][tooltip:Bass][alias]", 0, -10, 10, 0.5); treble_gain = vslider("treble[name:Treble][tooltip:Treble][alias]", 0, -10, 10, 0.5); tone = component("tone.dsp").gxlow_shelf(300,bass_gain): component("tone.dsp").gxhigh_shelf(2400,treble_gain);
c391a4c9bab265f9df926c2e421e5c8acb6c7a5c22b2f72c4afa152a2e673415
brummer10/guitarix
cabinet_impulse_former.dsp
//declare name "Cabinet Impulse Former"; declare id "cab"; import("stdfaust.lib"); import("guitarix.lib"); gain = vslider("Level[name:Level][tooltip:Level][alias]", 1, 0.5, 5, 0.5) ; bass_gain = vslider("bass[name:Bass][tooltip:Bass][alias]", 0, -10, 10, 0.5); treble_gain = vslider("treble[name:Treble][tooltip:Treble][alias]", 0, -10, 10, 0.5); tone = component("tone.dsp").gxlow_shelf(300,bass_gain): component("tone.dsp").gxhigh_shelf(2400,treble_gain); process = tone : *(gain * pow(10, -0.1 * gain)); // FIXME
https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/cabinet_impulse_former.dsp
faust
declare name "Cabinet Impulse Former"; FIXME
declare id "cab"; import("stdfaust.lib"); import("guitarix.lib"); gain = vslider("Level[name:Level][tooltip:Level][alias]", 1, 0.5, 5, 0.5) ; bass_gain = vslider("bass[name:Bass][tooltip:Bass][alias]", 0, -10, 10, 0.5); treble_gain = vslider("treble[name:Treble][tooltip:Treble][alias]", 0, -10, 10, 0.5); tone = component("tone.dsp").gxlow_shelf(300,bass_gain): component("tone.dsp").gxhigh_shelf(2400,treble_gain);
b040ec9accced70c3c0198f9dc49b1b38c958b353910fc03fb5bab71fed25a6e
brummer10/guitarix
osc_tube.dsp
declare id "tube2"; import("stdfaust.lib"); import("guitarix.lib"); resonator = (+ <: (de.delay(4096, d-1) + de.delay(4096, d))/2.0)~*(1.0-a) with { //d = vslider("vibrato", 0.5, 0, 1, 0.01); d = 1 - vslider("vibrato", 1, 0, 0.99, 0.01); //a = vslider("trigger[name:resonanz]", 0.12, 0, 1, 0.01); a = 0.9 - vslider("resonanz", 0.5, 0, 0.9, 0.01); }; //fuzzy = vslider("fuzzy[name:tube]", 0.5, 0, 1, 0.01); fuzzy = vslider("fuzzy[name:tube]", 1, -3, 10, 1); tube1 = component("HighShelf.dsp").hs : nonlin1 : resonator : +(anti_denormal_ac) : ef.speakerbp(130,5000) * fuzzy * 0.5; process(x) = x + tube1(x) : sym_clip(0.7);
https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/osc_tube.dsp
faust
d = vslider("vibrato", 0.5, 0, 1, 0.01); a = vslider("trigger[name:resonanz]", 0.12, 0, 1, 0.01); fuzzy = vslider("fuzzy[name:tube]", 0.5, 0, 1, 0.01);
declare id "tube2"; import("stdfaust.lib"); import("guitarix.lib"); resonator = (+ <: (de.delay(4096, d-1) + de.delay(4096, d))/2.0)~*(1.0-a) with { d = 1 - vslider("vibrato", 1, 0, 0.99, 0.01); a = 0.9 - vslider("resonanz", 0.5, 0, 0.9, 0.01); }; fuzzy = vslider("fuzzy[name:tube]", 1, -3, 10, 1); tube1 = component("HighShelf.dsp").hs : nonlin1 : resonator : +(anti_denormal_ac) : ef.speakerbp(130,5000) * fuzzy * 0.5; process(x) = x + tube1(x) : sym_clip(0.7);
a0ecba1fcd3fa5c7d1af8b1e7e119237c1173b44c22b1d0dd6916f2cc00f79e5
brummer10/guitarix
noise_shaper.dsp
declare id "shaper"; declare name "Shaper"; import("stdfaust.lib"); sharp = vslider("sharper[name:sharper]", 1, 1, 10, 1); 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; }; process(x) = g(x) * x with { g = env : compress + sharp : ba.db2linear; };
https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/noise_shaper.dsp
faust
declare id "shaper"; declare name "Shaper"; import("stdfaust.lib"); sharp = vslider("sharper[name:sharper]", 1, 1, 10, 1); 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; }; process(x) = g(x) * x with { g = env : compress + sharp : ba.db2linear; };
df2126b6f7614a5ddacdbfb6e6c21159d5660ca5bce0d844b669db9810653e0f
brummer10/guitarix
preamp_impulse_former_st.dsp
//declare name "Preamp Impulse Former"; declare id "pre_st"; import("stdfaust.lib"); import("guitarix.lib"); gain = vslider("Level[name:Level][tooltip:Level][alias]", 1, 0.1, 2.1, 0.1) ; bass_gain = vslider("bass[name:Bass][tooltip:Bass][alias]", 0, -10, 10, 0.5); treble_gain = vslider("treble[name:Treble][tooltip:Treble][alias]", 0, -10, 10, 0.5); tone = component("tone.dsp").gxlow_shelf(300,bass_gain): component("tone.dsp").gxhigh_shelf(2400,treble_gain); process = tone : *(gain * pow(10, -0.1 * gain)); // FIXME
https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/preamp_impulse_former_st.dsp
faust
declare name "Preamp Impulse Former"; FIXME
declare id "pre_st"; import("stdfaust.lib"); import("guitarix.lib"); gain = vslider("Level[name:Level][tooltip:Level][alias]", 1, 0.1, 2.1, 0.1) ; bass_gain = vslider("bass[name:Bass][tooltip:Bass][alias]", 0, -10, 10, 0.5); treble_gain = vslider("treble[name:Treble][tooltip:Treble][alias]", 0, -10, 10, 0.5); tone = component("tone.dsp").gxlow_shelf(300,bass_gain): component("tone.dsp").gxhigh_shelf(2400,treble_gain);
eb4d34bcee6dc9b16315b11681b045b6d5bca8192c348f884cf4382884757e36
brummer10/guitarix
bassbooster.dsp
declare id "amp.bass_boost"; declare name "Bassbooster"; declare groups ".bassbooster[Bassbooster]"; import("stdfaust.lib"); //------------------------------------------------------------------ // DAFX, Digital Audio Effects (Wiley ed.) // chapter 2 : filters // section 2.3 : Equalizers // page 53 : second order shelving filter design //------------------------------------------------------------------ lfboost(F,G) = fi.tf2(b0,b1,b2,a0,a1) with { V = ba.db2linear(G); K = tan(ma.PI*F/ma.SR); D = 1 + sqrt(2)*K + K*K; b0 = (1 + sqrt(2*V)*K + V*K*K) / D; b1 = 2 * (V*K*K - 1) / D; b2 = (1 - sqrt(2*V)*K + V*K*K) / D; a0 = 2 * (K*K - 1) / D; a1 = (1 - sqrt(2)*K + K*K) / D; }; level = vslider(".bassbooster.Level", 10, 0.5, 20, 0.5) ; process = lfboost(120, level);
https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/bassbooster.dsp
faust
------------------------------------------------------------------ DAFX, Digital Audio Effects (Wiley ed.) chapter 2 : filters section 2.3 : Equalizers page 53 : second order shelving filter design ------------------------------------------------------------------
declare id "amp.bass_boost"; declare name "Bassbooster"; declare groups ".bassbooster[Bassbooster]"; import("stdfaust.lib"); lfboost(F,G) = fi.tf2(b0,b1,b2,a0,a1) with { V = ba.db2linear(G); K = tan(ma.PI*F/ma.SR); D = 1 + sqrt(2)*K + K*K; b0 = (1 + sqrt(2*V)*K + V*K*K) / D; b1 = 2 * (V*K*K - 1) / D; b2 = (1 - sqrt(2*V)*K + V*K*K) / D; a0 = 2 * (K*K - 1) / D; a1 = (1 - sqrt(2)*K + K*K) / D; }; level = vslider(".bassbooster.Level", 10, 0.5, 20, 0.5) ; process = lfboost(120, level);
dfb32a8e0f8513f057e273e7c80831a2f4d34ad30805478d9bae3d7bdce62c9b
brummer10/guitarix
bassbooster.dsp
declare id "amp.bass_boost"; declare name "Bassbooster"; declare groups ".bassbooster[Bassbooster]"; import("stdfaust.lib"); //------------------------------------------------------------------ // DAFX, Digital Audio Effects (Wiley ed.) // chapter 2 : filters // section 2.3 : Equalizers // page 53 : second order shelving filter design //------------------------------------------------------------------ lfboost(F,G) = fi.tf2(b0,b1,b2,a0,a1) with { V = ba.db2linear(G); K = tan(ma.PI*F/ma.SR); D = 1 + sqrt(2)*K + K*K; b0 = (1 + sqrt(2*V)*K + V*K*K) / D; b1 = 2 * (V*K*K - 1) / D; b2 = (1 - sqrt(2*V)*K + V*K*K) / D; a0 = 2 * (K*K - 1) / D; a1 = (1 - sqrt(2)*K + K*K) / D; }; level = vslider(".bassbooster.Level", 10, 0.5, 20, 0.5) : si.smooth(0.9999); process = lfboost(120, level);
https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/bassbooster.dsp
faust
------------------------------------------------------------------ DAFX, Digital Audio Effects (Wiley ed.) chapter 2 : filters section 2.3 : Equalizers page 53 : second order shelving filter design ------------------------------------------------------------------
declare id "amp.bass_boost"; declare name "Bassbooster"; declare groups ".bassbooster[Bassbooster]"; import("stdfaust.lib"); lfboost(F,G) = fi.tf2(b0,b1,b2,a0,a1) with { V = ba.db2linear(G); K = tan(ma.PI*F/ma.SR); D = 1 + sqrt(2)*K + K*K; b0 = (1 + sqrt(2*V)*K + V*K*K) / D; b1 = 2 * (V*K*K - 1) / D; b2 = (1 - sqrt(2*V)*K + V*K*K) / D; a0 = 2 * (K*K - 1) / D; a1 = (1 - sqrt(2)*K + K*K) / D; }; level = vslider(".bassbooster.Level", 10, 0.5, 20, 0.5) : si.smooth(0.9999); process = lfboost(120, level);
7464af1859e05eebf521a48b8022899a5afd8e685b12369b4b720e754b53eeaa
brummer10/guitarix
tubestage.dsp
import("stdfaust.lib"); import("../src/faust/guitarix.lib"); tubestage_test(tb,fck,Rk,vplus,Vk0) = tube : hpf with { lpfk = fi.lowpass(1,fck); divider = 40; Rp = 100.0e3; VkC = Vk0 * (Rp/Rk); tube = (+ : -(Vk0) : Ftube(tb) : +(VkC-vplus)) ~ (*(Rk/Rp) : lpfk) : /(divider); hpf = _; //highpass1(31.0); }; process = tubestage_test(tb,86.0,Rk,vplus,Vk0) with { tb = vslider("tb",0,0,9,1); Rk = vslider("Rk",2700,0,10000,0.01); Vk0 = vslider("Vk0", 0, -5, 5, 0.01); vplus = vslider("vplus", 250.0, 10, 400, 0.01); };
https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/tools/tubestage.dsp
faust
highpass1(31.0);
import("stdfaust.lib"); import("../src/faust/guitarix.lib"); tubestage_test(tb,fck,Rk,vplus,Vk0) = tube : hpf with { lpfk = fi.lowpass(1,fck); divider = 40; Rp = 100.0e3; VkC = Vk0 * (Rp/Rk); tube = (+ : -(Vk0) : Ftube(tb) : +(VkC-vplus)) ~ (*(Rk/Rp) : lpfk) : /(divider); }; process = tubestage_test(tb,86.0,Rk,vplus,Vk0) with { tb = vslider("tb",0,0,9,1); Rk = vslider("Rk",2700,0,10000,0.01); Vk0 = vslider("Vk0", 0, -5, 5, 0.01); vplus = vslider("vplus", 250.0, 10, 400, 0.01); };
690db85d2d9f98bf23ab44037c05c1b96e7189fd42c4ca60554ebac113f18160
brummer10/guitarix
amp2.dsp
import("stdfaust.lib"); import("guitarix.lib"); /**************************************************************** ** Tube Preamp Emulation stage 1 - 2 */ process = hgroup("amp2", hgroup("preamp",(BP(preamp))) : hgroup("stage1", BP(stage1)) : hgroup("stage2", BP(stage2)) ) with { preamp = *(vslider("Pregain",30,-10,80,0.1):ba.db2linear : smoothi(0.999)); stage1 = tubestage(TB_12AX7_68k,86.0,2700.0,1.581656) : *(gain1) with { gain1 = vslider("gain1", 6, -10.0, 20.0, 0.1) : ba.db2linear : smoothi(0.999); }; stage2 = lowpass1(6531.0) : tubestage(TB_12AX7_250k,132.0,1500.0,1.204285) : *(gain2) with { gain2 = vslider("gain2", 6, -10.0, 20.0, 0.1) : ba.db2linear : smoothi(0.999); }; };
https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/amp2.dsp
faust
*************************************************************** ** Tube Preamp Emulation stage 1 - 2
import("stdfaust.lib"); import("guitarix.lib"); process = hgroup("amp2", hgroup("preamp",(BP(preamp))) : hgroup("stage1", BP(stage1)) : hgroup("stage2", BP(stage2)) ) with { preamp = *(vslider("Pregain",30,-10,80,0.1):ba.db2linear : smoothi(0.999)); stage1 = tubestage(TB_12AX7_68k,86.0,2700.0,1.581656) : *(gain1) with { gain1 = vslider("gain1", 6, -10.0, 20.0, 0.1) : ba.db2linear : smoothi(0.999); }; stage2 = lowpass1(6531.0) : tubestage(TB_12AX7_250k,132.0,1500.0,1.204285) : *(gain2) with { gain2 = vslider("gain2", 6, -10.0, 20.0, 0.1) : ba.db2linear : smoothi(0.999); }; };
506bbdfedfcf40d0bbbc33f6809e366961015a38cb551d1e260b095f73785b65
brummer10/guitarix
autowah.dsp
declare id "auto"; // ba.selector ve.crybaby / ve.autowah declare name "auto"; //----------------------------------------------- // Auto-Wah //----------------------------------------------- import("stdfaust.lib"); //for ve.crybaby definition import("guitarix.lib"); l = crybaby_ctrl.level; a = crybaby_ctrl.wah; w = crybaby_ctrl.wet_dry; /* a = 20 * vslider(".ve.crybaby.wah[alias]", 0, 0, 1, 0.01); w = vslider(".ve.crybaby.wet_dry[alias]", 100, 0, 100, 0.1):/(100); l = vslider(".ve.crybaby.level[alias]", 0, -1, 1, 0.1); */ d = 1-w; Sum(n,x) = +(x - (x @ n)) ~_ ; Average(n,x) = x * (1<<22) : int : abs : Sum(n) : float : /(1<<22) : /(n); Map(x) = x * a : max(0) : min(1) ; process(x) = x : _<:*(d),(*(w):*(l) :ve.crybaby(x : Average(1000) : Map)):>_ ;
https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/autowah.dsp
faust
ba.selector ve.crybaby / ve.autowah ----------------------------------------------- Auto-Wah ----------------------------------------------- for ve.crybaby definition a = 20 * vslider(".ve.crybaby.wah[alias]", 0, 0, 1, 0.01); w = vslider(".ve.crybaby.wet_dry[alias]", 100, 0, 100, 0.1):/(100); l = vslider(".ve.crybaby.level[alias]", 0, -1, 1, 0.1);
declare name "auto"; import("guitarix.lib"); l = crybaby_ctrl.level; a = crybaby_ctrl.wah; w = crybaby_ctrl.wet_dry; d = 1-w; Sum(n,x) = +(x - (x @ n)) ~_ ; Average(n,x) = x * (1<<22) : int : abs : Sum(n) : float : /(1<<22) : /(n); Map(x) = x * a : max(0) : min(1) ; process(x) = x : _<:*(d),(*(w):*(l) :ve.crybaby(x : Average(1000) : Map)):>_ ;
524f07ac7d4c25b1d2f9d0deee80273dffeea7bb12821d64b93c946d1fe032ac
brummer10/guitarix
ExpFilter.dsp
import("stdfaust.lib"); import("guitarix.lib"); filter = 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 = vslider("Freq",1200,300,3000,5) : *(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("1 Filter",BP(filter : *(ba.db2linear(-10))));
https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/ExpFilter.dsp
faust
b0 = 1; b1 = -1.01; b2 = 0; a1 = -1.84; a2 = 0.846416;
import("stdfaust.lib"); import("guitarix.lib"); filter = 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 = vslider("Freq",1200,300,3000,5) : *(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("1 Filter",BP(filter : *(ba.db2linear(-10))));
e48ae3a72f5df468c2c8f6a2a301134b2da0a48c10f920949174edfa1b473934
brummer10/guitarix
gxamp18.dsp
declare id "6C16"; // in amp tube ba.selector declare name "6C16"; declare samplerate "96000"; import("stdfaust.lib"); import("guitarix.lib"); /**************************************************************** ** Tube Preamp Emulation stage 1 - 2 */ tubeax(preamp,gain1) = hgroup("stage1", stage1) : hgroup("stage2", stage2) with { stage1 = tubestage(TB_6C16_68k,86.0,2700.0,2.921806) : *(preamp): fi.lowpass(1,6531.0) : tubestage(TB_6C16_250k,132.0,1500.0,2.097743) : *(preamp); stage2 = fi.lowpass(1,6531.0) : tubestage(TB_6C16_250k,194.0,820.0,1.378742) : *(gain1); }; 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; };
https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/gxamp18.dsp
faust
in amp tube ba.selector *************************************************************** ** Tube Preamp Emulation stage 1 - 2
declare name "6C16"; declare samplerate "96000"; import("stdfaust.lib"); import("guitarix.lib"); tubeax(preamp,gain1) = hgroup("stage1", stage1) : hgroup("stage2", stage2) with { stage1 = tubestage(TB_6C16_68k,86.0,2700.0,2.921806) : *(preamp): fi.lowpass(1,6531.0) : tubestage(TB_6C16_250k,132.0,1500.0,2.097743) : *(preamp); stage2 = fi.lowpass(1,6531.0) : tubestage(TB_6C16_250k,194.0,820.0,1.378742) : *(gain1); }; 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; };
9aa484f113c29d335ce0b744505c4db7817732558d639dc4f41ee6d00f290dae
brummer10/guitarix
gxamp.dsp
declare id "12ax7"; // in amp tube ba.selector declare name "12ax7"; declare samplerate "96000"; import("stdfaust.lib"); import("guitarix.lib"); /**************************************************************** ** Tube Preamp Emulation stage 1 - 2 */ tubeax(preamp,gain1) = hgroup("stage1", stage1) : hgroup("stage2", stage2) with { stage1 = tubestage(TB_12AX7_68k,86.0,2700.0,1.581656) : *(preamp): fi.lowpass(1,6531.0) : tubestage(TB_12AX7_250k,132.0,1500.0,1.204285) : *(preamp); stage2 = fi.lowpass(1,6531.0) : tubestage(TB_12AX7_250k,194.0,820.0,0.840703) : *(gain1); }; 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; };
https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/gxamp.dsp
faust
in amp tube ba.selector *************************************************************** ** Tube Preamp Emulation stage 1 - 2
declare name "12ax7"; declare samplerate "96000"; import("stdfaust.lib"); import("guitarix.lib"); tubeax(preamp,gain1) = hgroup("stage1", stage1) : hgroup("stage2", stage2) with { stage1 = tubestage(TB_12AX7_68k,86.0,2700.0,1.581656) : *(preamp): fi.lowpass(1,6531.0) : tubestage(TB_12AX7_250k,132.0,1500.0,1.204285) : *(preamp); stage2 = fi.lowpass(1,6531.0) : tubestage(TB_12AX7_250k,194.0,820.0,0.840703) : *(gain1); }; 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; };
001b626c90765b045f7f69b04be8e034fd35bc37d3ea45384d44d7cc04d3a331
brummer10/guitarix
biquad.dsp
declare name "BiQuad Filter"; declare shortname "BiQuadFilter"; declare category "Tone Control"; import("stdfaust.lib"); import("guitarix.lib"); filter = 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 = vslider("Freq[name:Frequency]",1200,300,3000,5) : *(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 = filter : *(ba.db2linear(-10));
https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/biquad.dsp
faust
b0 = 1; b1 = -1.01; b2 = 0; a1 = -1.84; a2 = 0.846416;
declare name "BiQuad Filter"; declare shortname "BiQuadFilter"; declare category "Tone Control"; import("stdfaust.lib"); import("guitarix.lib"); filter = 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 = vslider("Freq[name:Frequency]",1200,300,3000,5) : *(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 = filter : *(ba.db2linear(-10));
fda0607153f8c527ec73acefb730079ad85bc66fb811a4560da85f62f654dc7f
brummer10/guitarix
gxamp18_stereo.dsp
declare id "6C16"; // in amp tube ba.selector declare name "6C16"; import("stdfaust.lib"); import("guitarix.lib"); /**************************************************************** ** Tube Preamp Emulation stage 1 - 2 */ tubeax(preamp,gain1) = hgroup("stage1", stage1) : hgroup("stage2", stage2) with { stage1 = tubestage(TB_6C16_68k,86.0,2700.0,2.921806) : *(preamp): fi.lowpass(1,6531.0) : tubestage(TB_6C16_250k,132.0,1500.0,2.097743) : *(preamp); stage2 = fi.lowpass(1,6531.0) : tubestage(TB_6C16_250k,194.0,820.0,1.378742) : *(gain1); }; 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;
https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/gxamp18_stereo.dsp
faust
in amp tube ba.selector *************************************************************** ** Tube Preamp Emulation stage 1 - 2
declare name "6C16"; import("stdfaust.lib"); import("guitarix.lib"); tubeax(preamp,gain1) = hgroup("stage1", stage1) : hgroup("stage2", stage2) with { stage1 = tubestage(TB_6C16_68k,86.0,2700.0,2.921806) : *(preamp): fi.lowpass(1,6531.0) : tubestage(TB_6C16_250k,132.0,1500.0,2.097743) : *(preamp); stage2 = fi.lowpass(1,6531.0) : tubestage(TB_6C16_250k,194.0,820.0,1.378742) : *(gain1); }; 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;
8a37620afe4a3b99374d719e09c537778f48baba3dd4f6ec84ec21ed4b4ecd2a
brummer10/guitarix
gxamp_stereo.dsp
declare id "12ax7"; // in amp tube ba.selector declare name "12ax7"; import("stdfaust.lib"); import("guitarix.lib"); /**************************************************************** ** Tube Preamp Emulation stage 1 - 2 */ tubeax(preamp,gain1) = hgroup("stage1", stage1) : hgroup("stage2", stage2) with { stage1 = tubestage(TB_12AX7_68k,86.0,2700.0,1.581656) : *(preamp): fi.lowpass(1,6531.0) : tubestage(TB_12AX7_250k,132.0,1500.0,1.204285) : *(preamp); stage2 = fi.lowpass(1,6531.0) : tubestage(TB_12AX7_250k,194.0,820.0,0.840703) : *(gain1); }; 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;
https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/gxamp_stereo.dsp
faust
in amp tube ba.selector *************************************************************** ** Tube Preamp Emulation stage 1 - 2
declare name "12ax7"; import("stdfaust.lib"); import("guitarix.lib"); tubeax(preamp,gain1) = hgroup("stage1", stage1) : hgroup("stage2", stage2) with { stage1 = tubestage(TB_12AX7_68k,86.0,2700.0,1.581656) : *(preamp): fi.lowpass(1,6531.0) : tubestage(TB_12AX7_250k,132.0,1500.0,1.204285) : *(preamp); stage2 = fi.lowpass(1,6531.0) : tubestage(TB_12AX7_250k,194.0,820.0,0.840703) : *(gain1); }; 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;
15b8e72af70c8666388f23d3954ee6b06effa5d1f8f6a351f4b027853e6eb32d
brummer10/guitarix
gxamp18.dsp
declare id "6C16"; // in amp tube ba.selector declare name "6C16"; import("stdfaust.lib"); import("guitarix.lib"); /**************************************************************** ** Tube Preamp Emulation stage 1 - 2 */ tubeax(preamp,gain1) = hgroup("stage1", stage1) : hgroup("stage2", stage2) with { stage1 = tubestage(TB_6C16_68k,86.0,2700.0,2.921806) : *(preamp): fi.lowpass(1,6531.0) : tubestage(TB_6C16_250k,132.0,1500.0,2.097743) : *(preamp); stage2 = fi.lowpass(1,6531.0) : tubestage(TB_6C16_250k,194.0,820.0,1.378742) : *(gain1); }; 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; };
https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/gxamp18.dsp
faust
in amp tube ba.selector *************************************************************** ** Tube Preamp Emulation stage 1 - 2
declare name "6C16"; import("stdfaust.lib"); import("guitarix.lib"); tubeax(preamp,gain1) = hgroup("stage1", stage1) : hgroup("stage2", stage2) with { stage1 = tubestage(TB_6C16_68k,86.0,2700.0,2.921806) : *(preamp): fi.lowpass(1,6531.0) : tubestage(TB_6C16_250k,132.0,1500.0,2.097743) : *(preamp); stage2 = fi.lowpass(1,6531.0) : tubestage(TB_6C16_250k,194.0,820.0,1.378742) : *(gain1); }; 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; };
6f1047a1ff86c56683e916388b26a7bf4f6f4a7179272a0cd8b21dfb4067e632
brummer10/guitarix
stereodelay.dsp
declare name "Stereo Delay"; declare category "Echo / Delay"; import("stdfaust.lib"); import("guitarix.lib"); msec = ma.SR/1000.0; lfol = os.oscrs; // sine for left channel freq = hslider("LFO freq [unit:Hz]", 0.2, 0, 5, 0.01); pingpong = checkbox("invert[enum:linear|pingpong]"); l_gain = vslider("l_gain", 0, -20, 20, 0.1) : ba.db2linear : smoothi(0.999); r_gain = vslider("r_gain", 0, -20, 20, 0.1) : ba.db2linear : smoothi(0.999); d = vslider("l_delay", 0, 0, 5000, 10)*msec; r = vslider("r_delay", 0, 0, 5000, 10)*msec; process = (_ <: _ + l_gain*(1-(lfol(freq)*pingpong)) * de.sdelay(262144, 1024, d) :> _), (_ <: _ + r_gain*(1-((-1*lfol(freq))*pingpong)) * de.sdelay(262144, 1024, r) :> _);
https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/stereodelay.dsp
faust
sine for left channel
declare name "Stereo Delay"; declare category "Echo / Delay"; import("stdfaust.lib"); import("guitarix.lib"); msec = ma.SR/1000.0; freq = hslider("LFO freq [unit:Hz]", 0.2, 0, 5, 0.01); pingpong = checkbox("invert[enum:linear|pingpong]"); l_gain = vslider("l_gain", 0, -20, 20, 0.1) : ba.db2linear : smoothi(0.999); r_gain = vslider("r_gain", 0, -20, 20, 0.1) : ba.db2linear : smoothi(0.999); d = vslider("l_delay", 0, 0, 5000, 10)*msec; r = vslider("r_delay", 0, 0, 5000, 10)*msec; process = (_ <: _ + l_gain*(1-(lfol(freq)*pingpong)) * de.sdelay(262144, 1024, d) :> _), (_ <: _ + r_gain*(1-((-1*lfol(freq))*pingpong)) * de.sdelay(262144, 1024, r) :> _);
c47794eec92ca3c69e00280d15200847f42cfff93c4905304253fc4b1ab3289b
brummer10/guitarix
biquad.dsp
declare name "BiQuad Filter"; declare category "Tone Control"; import("stdfaust.lib"); import("guitarix.lib"); filter = 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 = vslider("Freq",1200,300,3000,5) : *(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 = filter : *(ba.db2linear(-10));
https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/biquad.dsp
faust
b0 = 1; b1 = -1.01; b2 = 0; a1 = -1.84; a2 = 0.846416;
declare name "BiQuad Filter"; declare category "Tone Control"; import("stdfaust.lib"); import("guitarix.lib"); filter = 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 = vslider("Freq",1200,300,3000,5) : *(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 = filter : *(ba.db2linear(-10));
81232ecd1f1b92c7fd8a9ac4ad099e8249d3c19e9ce1d2e9ee6992c88373d45a
brummer10/guitarix
flanger_mono.dsp
declare id "flanger_mono"; declare name "Flanger Mono"; declare category "Modulation"; declare license "BSD"; import("stdfaust.lib"); import("guitarix.lib"); flangermono(curdel) = _<: _, (-:de.fdelay(2048,curdel)) ~ *(0.5) : _, *(-1) : + : *(0.5); flangermonogx = *(level):flangermono(curdel) with { lfol = os.oscrs; dflange = 0.001 * ma.SR * 10.0; odflange = 0.001 * ma.SR * 1.0; freq = hslider("freq [unit:Hz]", 0.2, 0, 5, 0.01); level = hslider("level [unit:dB]", 0, -60, 10, 0.1) : ba.db2linear; curdel = odflange+dflange*(1 + lfol(freq))/2; }; wet = vslider("wet_dry[name:wet/dry][tooltip:percentage of processed signal in output signal]", 100, 0, 100, 1) : /(100); dry = 1 - wet; process = _<:*(dry),(*(wet): flangermonogx ):>_;
https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/flanger_mono.dsp
faust
declare id "flanger_mono"; declare name "Flanger Mono"; declare category "Modulation"; declare license "BSD"; import("stdfaust.lib"); import("guitarix.lib"); flangermono(curdel) = _<: _, (-:de.fdelay(2048,curdel)) ~ *(0.5) : _, *(-1) : + : *(0.5); flangermonogx = *(level):flangermono(curdel) with { lfol = os.oscrs; dflange = 0.001 * ma.SR * 10.0; odflange = 0.001 * ma.SR * 1.0; freq = hslider("freq [unit:Hz]", 0.2, 0, 5, 0.01); level = hslider("level [unit:dB]", 0, -60, 10, 0.1) : ba.db2linear; curdel = odflange+dflange*(1 + lfol(freq))/2; }; wet = vslider("wet_dry[name:wet/dry][tooltip:percentage of processed signal in output signal]", 100, 0, 100, 1) : /(100); dry = 1 - wet; process = _<:*(dry),(*(wet): flangermonogx ):>_;
372a9b4b269563c8fda322e04a0ebade0c892e279025bd4c9658d9d1083e7ce9
brummer10/guitarix
stereoecho.dsp
declare name "Stereo Echo"; declare category "Echo / Delay"; import("stdfaust.lib"); import("guitarix.lib"); msec = ma.SR/1000.0; lfol = os.oscrs; // sine for left channel freq = hslider("LFO freq [unit:Hz]", 0.2, 0, 5, 0.01); pingpong = checkbox("invert[enum:linear|pingpong]"); tl = vslider("time_l", 1, 1, 2000, 1); releasel = vslider("percent_l", 0, 0, 100, 0.1); tr = vslider("time_r", 1, 1, 2000, 1); releaser = vslider("percent_r", 0, 0, 100, 0.1); echo1 = +~(de.sdelay(131072, 1024, int(tl*ba.millisec)-1) * ((releasel/100.0)*(1-(lfol(freq)*pingpong))) ); echo2 = +~(de.sdelay(131072, 1024, int(tr*ba.millisec)-1) * ((releaser/100.0)*(1-((-1*lfol(freq))*pingpong))) ); process = echo1,echo2;
https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/stereoecho.dsp
faust
sine for left channel
declare name "Stereo Echo"; declare category "Echo / Delay"; import("stdfaust.lib"); import("guitarix.lib"); msec = ma.SR/1000.0; freq = hslider("LFO freq [unit:Hz]", 0.2, 0, 5, 0.01); pingpong = checkbox("invert[enum:linear|pingpong]"); tl = vslider("time_l", 1, 1, 2000, 1); releasel = vslider("percent_l", 0, 0, 100, 0.1); tr = vslider("time_r", 1, 1, 2000, 1); releaser = vslider("percent_r", 0, 0, 100, 0.1); echo1 = +~(de.sdelay(131072, 1024, int(tl*ba.millisec)-1) * ((releasel/100.0)*(1-(lfol(freq)*pingpong))) ); echo2 = +~(de.sdelay(131072, 1024, int(tr*ba.millisec)-1) * ((releaser/100.0)*(1-((-1*lfol(freq))*pingpong))) ); process = echo1,echo2;
9f9e036d9ce4e7ba5626cd0ca27220d429a885f12ab9e10199fbbbb9dc4c27ef
brummer10/guitarix
gxamp.dsp
declare id "12ax7"; // in amp tube ba.selector declare name "12ax7"; import("stdfaust.lib"); import("guitarix.lib"); /**************************************************************** ** Tube Preamp Emulation stage 1 - 2 */ tubeax(preamp,gain1) = hgroup("stage1", stage1) : hgroup("stage2", stage2) with { stage1 = tubestage(TB_12AX7_68k,86.0,2700.0,1.581656) : *(preamp): fi.lowpass(1,6531.0) : tubestage(TB_12AX7_250k,132.0,1500.0,1.204285) : *(preamp); stage2 = fi.lowpass(1,6531.0) : tubestage(TB_12AX7_250k,194.0,820.0,0.840703) : *(gain1); }; 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; };
https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/gxamp.dsp
faust
in amp tube ba.selector *************************************************************** ** Tube Preamp Emulation stage 1 - 2
declare name "12ax7"; import("stdfaust.lib"); import("guitarix.lib"); tubeax(preamp,gain1) = hgroup("stage1", stage1) : hgroup("stage2", stage2) with { stage1 = tubestage(TB_12AX7_68k,86.0,2700.0,1.581656) : *(preamp): fi.lowpass(1,6531.0) : tubestage(TB_12AX7_250k,132.0,1500.0,1.204285) : *(preamp); stage2 = fi.lowpass(1,6531.0) : tubestage(TB_12AX7_250k,194.0,820.0,0.840703) : *(gain1); }; 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; };
242884c104f1cc7bfa63b26225acbe86a60a14f623b59caa25a87d36978c0166
brummer10/guitarix
valve.dsp
// dsp algorithm from swh ladspa valve plugin (Steve Harrison) import("stdfaust.lib"); import("guitarix.lib"); vt = valve.vt(dist, q) : ma.neg : valve.vt(dist, q) : ma.neg with { q_p = vslider("q", 0, -1.7, 1.7, 0.01); dist_p = vslider("dist", 0, -2, 2, 0.01); q = q_p*q_p*q_p; dist = pow(10,dist_p); }; vtu = valve.vt(dist, q) with { q_p = vslider("q", 0, -1.7, 1.7, 0.01); dist_p = vslider("dist", 0, -2, 2, 0.01); q = q_p*q_p*q_p; dist = pow(10,dist_p); }; vts(x) = abs(x) : ma.neg : valve.vt(dist, q) : ma.neg : copysign(_,x) with { q_p = vslider("q", 0, -1.7, 1.7, 0.01); dist_p = vslider("dist", 0, -2, 2, 0.01); q = q_p*q_p*q_p; dist = pow(10,dist_p); copysign = ffunction(float copysign(float,float), <math.h>, ""); }; process = vt;
https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/valve.dsp
faust
dsp algorithm from swh ladspa valve plugin (Steve Harrison)
import("stdfaust.lib"); import("guitarix.lib"); vt = valve.vt(dist, q) : ma.neg : valve.vt(dist, q) : ma.neg with { q_p = vslider("q", 0, -1.7, 1.7, 0.01); dist_p = vslider("dist", 0, -2, 2, 0.01); q = q_p*q_p*q_p; dist = pow(10,dist_p); }; vtu = valve.vt(dist, q) with { q_p = vslider("q", 0, -1.7, 1.7, 0.01); dist_p = vslider("dist", 0, -2, 2, 0.01); q = q_p*q_p*q_p; dist = pow(10,dist_p); }; vts(x) = abs(x) : ma.neg : valve.vt(dist, q) : ma.neg : copysign(_,x) with { q_p = vslider("q", 0, -1.7, 1.7, 0.01); dist_p = vslider("dist", 0, -2, 2, 0.01); q = q_p*q_p*q_p; dist = pow(10,dist_p); copysign = ffunction(float copysign(float,float), <math.h>, ""); }; process = vt;
8cd83d3d18cbe4d88963af7f532d4bf4805dcfd2c8997125b236685cd42451c3
brummer10/guitarix
gx_bigchump.dsp
declare name "Redeye Big Chump"; declare category "Amplifier"; import("stdfaust.lib"); import("guitarix.lib"); import("redeye.lib"); trannie = coil1,coil2:>_ with { coil1 = fi.lowpass( 1, ( 8075 ) ):fi.highpass( 1, 84):*(0.98) ; coil2 = fi.lowpass( 1, 8925 ):fi.highpass( 1, 76) ; }; amp = bigChumpPre:bigChumpPre2:bigChumpPower:*(volume) with { // Try this as -12 -> +12 dB volume = vslider("Volume[2][alias][style:knob]",0.5, 0.0, 1.0,0.01) : smoothi(0.999); // This does not work at present may cut it out feedback = *(checkbox("feedback") ):fi.high_shelf( 3, 6531 ):*(-0.5); }; 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_bigchump.dsp
faust
Try this as -12 -> +12 dB This does not work at present may cut it out
declare name "Redeye Big Chump"; declare category "Amplifier"; import("stdfaust.lib"); import("guitarix.lib"); import("redeye.lib"); trannie = coil1,coil2:>_ with { coil1 = fi.lowpass( 1, ( 8075 ) ):fi.highpass( 1, 84):*(0.98) ; coil2 = fi.lowpass( 1, 8925 ):fi.highpass( 1, 76) ; }; amp = bigChumpPre:bigChumpPre2:bigChumpPower:*(volume) with { volume = vslider("Volume[2][alias][style:knob]",0.5, 0.0, 1.0,0.01) : smoothi(0.999); feedback = *(checkbox("feedback") ):fi.high_shelf( 3, 6531 ):*(-0.5); }; freq_split = fi.filterbank(3, (86.0,210.0,1200.0,6531.0)); process = freq_split: ( amp , amp , amp, amp, amp) :>_;
3659781fc5047b352c7fb15659cb4bee0191006cae6fe729e69e41bae6fca3ac
brummer10/MetalTone
metaltone_dist.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"; 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; //-- predefined filterbank freq_split = fi.filterbank(3, (86.0,210.0,1200.0,6531.0)); /**************************************************************************************** * metalzone_p2_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 metalzone_p2_clip = circuit_response(metalzone_p2_table, low, high, step, size) with{ low = 0; high =0.574492; step =142.143; size =200; metalzone_p2_table = waveform { 0.000000000000,0.122079177170,0.184970061698,0.208502406061,0.228411122566, 0.246627947982,0.263694032626,0.279424468753,0.293142395720,0.306227137551, 0.318707890528,0.330612504688,0.341967545900,0.352798355078,0.363129104662, 0.372982852498,0.382381593229,0.391346307322,0.399897007829,0.408052784996, 0.415831848813,0.423251569602,0.430328516735,0.437078495565,0.443516582658, 0.449657159393,0.455513944018,0.461100022233,0.466427876346,0.471509413108, 0.476355990241,0.480978441763,0.485387102128,0.489591829270,0.493602026565, 0.497426663801,0.501074297163,0.504553088312,0.507870822566,0.511034926268, 0.514052483320,0.516930250995,0.519674674974,0.522291903739,0.524787802250, 0.527167965047,0.529437728689,0.531602183681,0.533666185787,0.535634366889, 0.537511145272,0.539300735514,0.541007157837,0.542634247111,0.544185661359, 0.545664889952,0.547075261346,0.548419950540,0.549701986117,0.550924257029, 0.552089518997,0.553200400700,0.554259409585,0.555268937500,0.556231265989, 0.557148571410,0.558022929750,0.558856321294,0.559650634994,0.560407672724, 0.561129153254,0.561816716121,0.562471925242,0.563096272444,0.563691180746, 0.564258007570,0.564798047728,0.565312536351,0.565802651595,0.566269517313, 0.566714205519,0.567137738813,0.567541092627,0.567925197433,0.568290940783, 0.568639169319,0.568970690629,0.569286275083,0.569586657507,0.569872538867, 0.570144587787,0.570403442080,0.570649710131,0.570883972292,0.571106782137, 0.571318667731,0.571520132776,0.571711657762,0.571893701009,0.572066699722, 0.572231070927,0.572387212441,0.572535503720,0.572676306738,0.572809966767, 0.572936813170,0.573057160111,0.573171307281,0.573279540539,0.573382132578, 0.573479343503,0.573571421438,0.573658603054,0.573741114124,0.573819169995, 0.573892976099,0.573962728383,0.574028613770,0.574090810556,0.574149488822, 0.574204810800,0.574256931250,0.574305997788,0.574352151231,0.574395525895, 0.574436249912,0.574474445497,0.574510229237,0.574543712338,0.574575000884, 0.574604196060,0.574631394395,0.574656687956,0.574680164577,0.574701908031, 0.574721998237,0.574740511422,0.574757520306,0.574773094247,0.574787299413, 0.574800198915,0.574811852960,0.574822318972,0.574831651735,0.574839903499, 0.574847124112,0.574853361117,0.574858659872,0.574863063637,0.574866613682, 0.574869349370,0.574871308255,0.574872526152,0.574873037231,0.574872874082, 0.574872067796,0.574870648027,0.574868643065,0.574866079892,0.574862984251, 0.574859380691,0.574855292637,0.574850742426,0.574845751373,0.574840339802, 0.574834527108,0.574828331785,0.574821771479,0.574814863019,0.574807622461, 0.574800065118,0.574792205599,0.574784057838,0.574775635128,0.574766950147, 0.574758014992,0.574748841197,0.574739439769,0.574729821204,0.574719995518, 0.574709972260,0.574699760544,0.574689369060,0.574678806100,0.574668079569, 0.574657197015,0.574646165631,0.574634992283,0.574623683517,0.574612245580, 0.574600684428,0.574589005747,0.574577214955,0.574565317225,0.574553317489, 0.574541220453,0.574529030603,0.574516752223,0.574504389396,0.574491946017 }; }; metalzone_clip = ffunction(float metalzone_p2clip(float), "metalzone_p2_table.h", ""); anti_denormal = pow(10,-20); anti_denormal_ac = 1 - 1' : *(anti_denormal) : + ~ *(-1); process = +(anti_denormal_ac) : metalzone_clip;
https://raw.githubusercontent.com/brummer10/MetalTone/610736038723c8470962a4d862943e9a8c8aecab/MetalTone/metaltone_dist.dsp
faust
****************************************************************************** **************************** File generated by ********************************* ******************************************************************************** ./build-plug.py -i MetalZone.sch -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. -- Linear interpolation for value x in rdtable -- Calculate linear table index for value x -- predefined filterbank *************************************************************************************** * metalzone_p2_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
declare id "metalzone"; declare name "metalzone"; declare category "Extern"; declare shortname "metalzone"; declare description "metalzone"; 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; freq_split = fi.filterbank(3, (86.0,210.0,1200.0,6531.0)); metalzone_p2_clip = circuit_response(metalzone_p2_table, low, high, step, size) with{ low = 0; high =0.574492; step =142.143; size =200; metalzone_p2_table = waveform { 0.000000000000,0.122079177170,0.184970061698,0.208502406061,0.228411122566, 0.246627947982,0.263694032626,0.279424468753,0.293142395720,0.306227137551, 0.318707890528,0.330612504688,0.341967545900,0.352798355078,0.363129104662, 0.372982852498,0.382381593229,0.391346307322,0.399897007829,0.408052784996, 0.415831848813,0.423251569602,0.430328516735,0.437078495565,0.443516582658, 0.449657159393,0.455513944018,0.461100022233,0.466427876346,0.471509413108, 0.476355990241,0.480978441763,0.485387102128,0.489591829270,0.493602026565, 0.497426663801,0.501074297163,0.504553088312,0.507870822566,0.511034926268, 0.514052483320,0.516930250995,0.519674674974,0.522291903739,0.524787802250, 0.527167965047,0.529437728689,0.531602183681,0.533666185787,0.535634366889, 0.537511145272,0.539300735514,0.541007157837,0.542634247111,0.544185661359, 0.545664889952,0.547075261346,0.548419950540,0.549701986117,0.550924257029, 0.552089518997,0.553200400700,0.554259409585,0.555268937500,0.556231265989, 0.557148571410,0.558022929750,0.558856321294,0.559650634994,0.560407672724, 0.561129153254,0.561816716121,0.562471925242,0.563096272444,0.563691180746, 0.564258007570,0.564798047728,0.565312536351,0.565802651595,0.566269517313, 0.566714205519,0.567137738813,0.567541092627,0.567925197433,0.568290940783, 0.568639169319,0.568970690629,0.569286275083,0.569586657507,0.569872538867, 0.570144587787,0.570403442080,0.570649710131,0.570883972292,0.571106782137, 0.571318667731,0.571520132776,0.571711657762,0.571893701009,0.572066699722, 0.572231070927,0.572387212441,0.572535503720,0.572676306738,0.572809966767, 0.572936813170,0.573057160111,0.573171307281,0.573279540539,0.573382132578, 0.573479343503,0.573571421438,0.573658603054,0.573741114124,0.573819169995, 0.573892976099,0.573962728383,0.574028613770,0.574090810556,0.574149488822, 0.574204810800,0.574256931250,0.574305997788,0.574352151231,0.574395525895, 0.574436249912,0.574474445497,0.574510229237,0.574543712338,0.574575000884, 0.574604196060,0.574631394395,0.574656687956,0.574680164577,0.574701908031, 0.574721998237,0.574740511422,0.574757520306,0.574773094247,0.574787299413, 0.574800198915,0.574811852960,0.574822318972,0.574831651735,0.574839903499, 0.574847124112,0.574853361117,0.574858659872,0.574863063637,0.574866613682, 0.574869349370,0.574871308255,0.574872526152,0.574873037231,0.574872874082, 0.574872067796,0.574870648027,0.574868643065,0.574866079892,0.574862984251, 0.574859380691,0.574855292637,0.574850742426,0.574845751373,0.574840339802, 0.574834527108,0.574828331785,0.574821771479,0.574814863019,0.574807622461, 0.574800065118,0.574792205599,0.574784057838,0.574775635128,0.574766950147, 0.574758014992,0.574748841197,0.574739439769,0.574729821204,0.574719995518, 0.574709972260,0.574699760544,0.574689369060,0.574678806100,0.574668079569, 0.574657197015,0.574646165631,0.574634992283,0.574623683517,0.574612245580, 0.574600684428,0.574589005747,0.574577214955,0.574565317225,0.574553317489, 0.574541220453,0.574529030603,0.574516752223,0.574504389396,0.574491946017 }; }; metalzone_clip = ffunction(float metalzone_p2clip(float), "metalzone_p2_table.h", ""); anti_denormal = pow(10,-20); anti_denormal_ac = 1 - 1' : *(anti_denormal) : + ~ *(-1); process = +(anti_denormal_ac) : metalzone_clip;
528f4bf6ce61f8be9870fc3020f5f0688efd9d87556149f3b3a68d2742ece4c7
brummer10/guitarix
bmfp.dsp
declare id "bmpf"; declare name "BigMuffFuzzPadel"; declare shortname "FuzzPadel"; declare category "Distortion"; declare description "BigMuffFuzzPadel"; import("guitarix.lib"); import("stdfaust.lib"); bigmuff = _<: filter1,filter2:>_ with { tone = vslider("tone",0.5,0,1,0.01); filter1 = fi.highpass( 1, 1856):*(tone); filter2 = fi.lowpass( 1, 408 ) :*(1-tone); }; process = _<:*(dry),(*(wet):*(gain):bigmuff:fuzz:fuzzy:fiz):>downfilter with { //fuzz(x) = x-0.15*x^2-0.15*x^3; //fuzz(x) = 1.5*x-0.5*x^3; fuzz(x) = (1+drive/101)*x/(1+drive/101*abs(x)); drive = vslider("drive", 1, -3, 100, 1); fuzzy = fuzzy_tube(2,1,0.5,drive); fiz(x) = x+(x^7); downfilter = fi.lowpass(1,5631): fi.highpass(1,80); gain = vslider("AUDIO_IN[name:Input]",0,-24,20,0.1) : ba.db2linear : smoothi(0.999); wet = vslider("Output", 100, 50, 100, 1) : /(100); dry = 1 - wet; };
https://raw.githubusercontent.com/brummer10/guitarix/9734478d71ac7190dc8814ce250e28ce174ebaf1/trunk/src/LV2/faust/bmfp.dsp
faust
fuzz(x) = x-0.15*x^2-0.15*x^3; fuzz(x) = 1.5*x-0.5*x^3;
declare id "bmpf"; declare name "BigMuffFuzzPadel"; declare shortname "FuzzPadel"; declare category "Distortion"; declare description "BigMuffFuzzPadel"; import("guitarix.lib"); import("stdfaust.lib"); bigmuff = _<: filter1,filter2:>_ with { tone = vslider("tone",0.5,0,1,0.01); filter1 = fi.highpass( 1, 1856):*(tone); filter2 = fi.lowpass( 1, 408 ) :*(1-tone); }; process = _<:*(dry),(*(wet):*(gain):bigmuff:fuzz:fuzzy:fiz):>downfilter with { fuzz(x) = (1+drive/101)*x/(1+drive/101*abs(x)); drive = vslider("drive", 1, -3, 100, 1); fuzzy = fuzzy_tube(2,1,0.5,drive); fiz(x) = x+(x^7); downfilter = fi.lowpass(1,5631): fi.highpass(1,80); gain = vslider("AUDIO_IN[name:Input]",0,-24,20,0.1) : ba.db2linear : smoothi(0.999); wet = vslider("Output", 100, 50, 100, 1) : /(100); dry = 1 - wet; };
5dcb3c50517ed22379c513ea0656315517c51be241e3b31865208c72f7e0cdac
brummer10/guitarix
gx_ampout_ladspa.dsp
// Alternate ampout definion for ladspa mono plugin // This plugin is included instead of gx_ampout, and without // the PGN_GUI flag. This means no automatic creation of // the on_off parameter (its always on), so we can define // it here. It will be of type float instead of bool, but // this doesn't matter for data read from preset files. declare groups ".amp"; import("stdfaust.lib"); import("guitarix.lib"); gain = value : ba.db2linear : smoothi(0.999) with { slider1 = vslider(".amp.out_amp[name:Level]", 0, -20, 4, 0.1); on_off = checkbox(".amp.on_off[name:use Level]"); slider2 = vslider(".amp.out_ladspa[name:Ladspa Level]", 0, -20, 20, 0.1); value = select2(on_off, slider2, slider1 + slider2); }; process = *(gain);
https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/gx_ampout_ladspa.dsp
faust
Alternate ampout definion for ladspa mono plugin This plugin is included instead of gx_ampout, and without the PGN_GUI flag. This means no automatic creation of the on_off parameter (its always on), so we can define it here. It will be of type float instead of bool, but this doesn't matter for data read from preset files.
declare groups ".amp"; import("stdfaust.lib"); import("guitarix.lib"); gain = value : ba.db2linear : smoothi(0.999) with { slider1 = vslider(".amp.out_amp[name:Level]", 0, -20, 4, 0.1); on_off = checkbox(".amp.on_off[name:use Level]"); slider2 = vslider(".amp.out_ladspa[name:Ladspa Level]", 0, -20, 20, 0.1); value = select2(on_off, slider2, slider1 + slider2); }; process = *(gain);
4f3a12aa050672099a9bd72d75d2da6c8e8b4b4d923ce9321cd2ea0956debb2d
brummer10/guitarix
drumseq.dsp
declare id "seq"; declare name "DrumSequencer"; declare category "Misc"; declare shortname "Drum"; declare description "Simple Drum Step Sequencer"; //https://github.com/josmithiii/faust-jos/tree/master/percussion import("stdfaust.lib"); hat = (vgroup("hat_closed.dsp",component("hat_closed.dsp"))); // hat_closed.dsp kick = (vgroup("kick.dsp",component("kick.dsp"))); // kick.dsp snare = (vgroup("snare.dsp",component("snare.dsp"))); // snare.dsp tom = (vgroup("tom.dsp",component("tom.dsp"))); // tom.dsp gain = vslider("gain [tooltip: Volume level in decibels]",-20,-60,40,0.1) : si.smooth(0.999) : ba.db2linear; B = checkbox("direct_out[alias][tooltip:bypass the rack for direct output]"); direct_out(x) = _<:select2(B, +(x), _):>_; process(x) = hat+kick+snare+tom : *(gain) : direct_out(x) : _;
https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/drumseq.dsp
faust
https://github.com/josmithiii/faust-jos/tree/master/percussion hat_closed.dsp kick.dsp snare.dsp tom.dsp
declare id "seq"; declare name "DrumSequencer"; declare category "Misc"; declare shortname "Drum"; declare description "Simple Drum Step Sequencer"; import("stdfaust.lib"); gain = vslider("gain [tooltip: Volume level in decibels]",-20,-60,40,0.1) : si.smooth(0.999) : ba.db2linear; B = checkbox("direct_out[alias][tooltip:bypass the rack for direct output]"); direct_out(x) = _<:select2(B, +(x), _):>_; process(x) = hat+kick+snare+tom : *(gain) : direct_out(x) : _;
4de8b0ee90a6a53ae485a3b4fe2bd2c8715ac9f9f00464ca8299538984261322
brummer10/guitarix
clipper.dsp
declare id "clipper"; declare name "Clip"; declare category "Fuzz"; declare samplerate "96000"; import("stdfaust.lib"); asymclip = ffunction(float asymclip(float), "clipping.h", ""); asclip = asymclip(_); asymclip2 = ffunction(float asymclip2(float), "clipping.h", ""); asclip2 = asymclip2(_); asymclip3 = ffunction(float asymclip3(float), "clipping.h", ""); asclip3 = asymclip3(_); asymclip4 = ffunction(float asymclip4(float), "clipping.h", ""); asclip4 = asymclip4(_); asymhardclip = ffunction(float asymhardclip(float), "clipping.h", ""); ashardclip = asymhardclip(_); asymhardclip2 = ffunction(float asymhardclip2(float), "clipping.h", ""); ashardclip2 = asymhardclip2(_); symclip = ffunction(float symclip(float), "clipping.h", ""); sclip = symclip(_); symclip2 = ffunction(float symclip2(float), "clipping.h", ""); sclip2 = symclip2(_); preclip = min(1) : max(-0.6); clip(x) = ba.if ((x > 0), (1 - exp(-x)), (-1 + exp(x))); eclip(x) = ((exp(x*4)-exp(-x*4*1.2))/(exp(x*4)+exp(-x*4)))/4; tclip(x) = ma.tanh((1.0001)*x)/ma.tanh(1.0001); process = asclip4;
https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/clipper.dsp
faust
declare id "clipper"; declare name "Clip"; declare category "Fuzz"; declare samplerate "96000"; import("stdfaust.lib"); asymclip = ffunction(float asymclip(float), "clipping.h", ""); asclip = asymclip(_); asymclip2 = ffunction(float asymclip2(float), "clipping.h", ""); asclip2 = asymclip2(_); asymclip3 = ffunction(float asymclip3(float), "clipping.h", ""); asclip3 = asymclip3(_); asymclip4 = ffunction(float asymclip4(float), "clipping.h", ""); asclip4 = asymclip4(_); asymhardclip = ffunction(float asymhardclip(float), "clipping.h", ""); ashardclip = asymhardclip(_); asymhardclip2 = ffunction(float asymhardclip2(float), "clipping.h", ""); ashardclip2 = asymhardclip2(_); symclip = ffunction(float symclip(float), "clipping.h", ""); sclip = symclip(_); symclip2 = ffunction(float symclip2(float), "clipping.h", ""); sclip2 = symclip2(_); preclip = min(1) : max(-0.6); clip(x) = ba.if ((x > 0), (1 - exp(-x)), (-1 + exp(x))); eclip(x) = ((exp(x*4)-exp(-x*4*1.2))/(exp(x*4)+exp(-x*4)))/4; tclip(x) = ma.tanh((1.0001)*x)/ma.tanh(1.0001); process = asclip4;
d200a24e1e5c8e50ec137dfadab6969c1e275ce06d906951828d0c0720e784ad
brummer10/guitarix
bassboom.dsp
declare id "bboom"; declare name "Bass Boom"; declare shortname "B Boom"; declare category "Distortion"; declare description "Sub Bass Booster"; import("stdfaust.lib"); anti_denormal = pow(10,-20); anti_denormal_ac = 1 - 1' : *(anti_denormal) : + ~ *(-1); geq = fi.filterbank(3, (110)); Drive = hslider("Drive [tooltip: Amount of SubBass Harmonics]", 0.33, 0, 1, 0.01); Gain = vslider("Gain", 0, -40, 4, 0.1) : ba.db2linear : si.smooth(0.999); bassclip(drive) = *(pregain) : preclip : clip : *(postgain) with { pregain = pow(10.0,1.5*drive); preclip = min(1) : max(-1); 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)); }; 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); }; process = _: +(anti_denormal_ac): geq: ( _, dist1s) :> *(Gain) with { dist1s = bassclip(Drive: si.smooth(0.999)) ; };
https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/plugins/bassboom.dsp
faust
declare id "bboom"; declare name "Bass Boom"; declare shortname "B Boom"; declare category "Distortion"; declare description "Sub Bass Booster"; import("stdfaust.lib"); anti_denormal = pow(10,-20); anti_denormal_ac = 1 - 1' : *(anti_denormal) : + ~ *(-1); geq = fi.filterbank(3, (110)); Drive = hslider("Drive [tooltip: Amount of SubBass Harmonics]", 0.33, 0, 1, 0.01); Gain = vslider("Gain", 0, -40, 4, 0.1) : ba.db2linear : si.smooth(0.999); bassclip(drive) = *(pregain) : preclip : clip : *(postgain) with { pregain = pow(10.0,1.5*drive); preclip = min(1) : max(-1); 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)); }; 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); }; process = _: +(anti_denormal_ac): geq: ( _, dist1s) :> *(Gain) with { dist1s = bassclip(Drive: si.smooth(0.999)) ; };
95c2d0ac7fda9fbf093a3ba6560f72bb50206b1401655e2880025fcf97f5247f
brummer10/guitarix
princeton.dsp
// generated automatically // DO NOT MODIFY! declare id "princeton"; declare name "Single ended 6V6"; declare shortname "Princeton"; declare description "Single ended 6V6"; declare samplerate "96000"; import("stdfaust.lib"); import("guitarix.lib"); p1 = pre : fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) : princeton_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 = _; b0 = fs*(2.46383752600217e-9*fs + 1.18536469845222e-7); b1 = -4.92767505200435e-9*pow(fs,2); b2 = fs*(2.46383752600217e-9*fs - 1.18536469845222e-7); a0 = fs*(4.31429171140134e-10*fs + 1.24411557886099e-7) + 1.54349145985544e-5; a1 = -8.62858342280268e-10*pow(fs,2) + 3.08698291971088e-5; a2 = fs*(4.31429171140134e-10*fs - 1.24411557886099e-7) + 1.54349145985544e-5; }; princeton_clip = ffunction(float princetonclip(float), "princeton_table.h", ""); process = *(poweramp_ctrl.ingain) : p1 : *(0.2) : *(poweramp_ctrl.outgain);
https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/princeton.dsp
faust
generated automatically DO NOT MODIFY!
declare id "princeton"; declare name "Single ended 6V6"; declare shortname "Princeton"; declare description "Single ended 6V6"; declare samplerate "96000"; import("stdfaust.lib"); import("guitarix.lib"); p1 = pre : fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) : princeton_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 = _; b0 = fs*(2.46383752600217e-9*fs + 1.18536469845222e-7); b1 = -4.92767505200435e-9*pow(fs,2); b2 = fs*(2.46383752600217e-9*fs - 1.18536469845222e-7); a0 = fs*(4.31429171140134e-10*fs + 1.24411557886099e-7) + 1.54349145985544e-5; a1 = -8.62858342280268e-10*pow(fs,2) + 3.08698291971088e-5; a2 = fs*(4.31429171140134e-10*fs - 1.24411557886099e-7) + 1.54349145985544e-5; }; princeton_clip = ffunction(float princetonclip(float), "princeton_table.h", ""); process = *(poweramp_ctrl.ingain) : p1 : *(0.2) : *(poweramp_ctrl.outgain);
dcfcef8acc4e3ec1d1ce42398116dab1779aa7bd3fd34f313ab97c80696e120e
brummer10/guitarix
autowah.dsp
declare id "auto"; // ba.selector ve.crybaby / ve.autowah declare name "auto"; //----------------------------------------------- // Auto-Wah //----------------------------------------------- import("stdfaust.lib"); //for ve.crybaby definition import("guitarix.lib"); l = crybaby_ctrl.level; a = crybaby_ctrl.wah; w = crybaby_ctrl.wet_dry; /* a = 20 * vslider(".ve.crybaby.wah[alias]", 0, 0, 1, 0.01); w = vslider(".ve.crybaby.wet_dry[alias]", 100, 0, 100, 0.1):/(100); l = vslider(".ve.crybaby.level[alias]", 0, -1, 1, 0.1); */ d = 1-w; Sum(n,x) = +(x - (x @ n)) ~_ ; Average(n,x) = x * (1<<22) : int : abs : Sum(n) : float : /(1<<22) : /(n); Map(x) = x * a : max(0) : min(1) ; //ve.autowah(level,x) = level * ve.crybaby(an.amp_follower(0.1,x),x) + (1.0-level)*x; //an.amp_follower_ud(att,rel) = an.amp_follower(rel) : si.smooth(ba.tau2pole(att)); //process(x) = x : _<:*(d),(*(w):*(l) :ve.crybaby(x : Average(1000) : Map)):>_ ; process(x) = x : _<:*(d),(*(w):*(l) :a * ve.crybaby(x : an.amp_follower_ud(0.01,0.1) : min(1)) + (1.0-a) * x):>_ ;
https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/autowah.dsp
faust
ba.selector ve.crybaby / ve.autowah ----------------------------------------------- Auto-Wah ----------------------------------------------- for ve.crybaby definition a = 20 * vslider(".ve.crybaby.wah[alias]", 0, 0, 1, 0.01); w = vslider(".ve.crybaby.wet_dry[alias]", 100, 0, 100, 0.1):/(100); l = vslider(".ve.crybaby.level[alias]", 0, -1, 1, 0.1); ve.autowah(level,x) = level * ve.crybaby(an.amp_follower(0.1,x),x) + (1.0-level)*x; an.amp_follower_ud(att,rel) = an.amp_follower(rel) : si.smooth(ba.tau2pole(att)); process(x) = x : _<:*(d),(*(w):*(l) :ve.crybaby(x : Average(1000) : Map)):>_ ;
declare name "auto"; import("guitarix.lib"); l = crybaby_ctrl.level; a = crybaby_ctrl.wah; w = crybaby_ctrl.wet_dry; d = 1-w; Sum(n,x) = +(x - (x @ n)) ~_ ; Average(n,x) = x * (1<<22) : int : abs : Sum(n) : float : /(1<<22) : /(n); Map(x) = x * a : max(0) : min(1) ; process(x) = x : _<:*(d),(*(w):*(l) :a * ve.crybaby(x : an.amp_follower_ud(0.01,0.1) : min(1)) + (1.0-a) * x):>_ ;
2ce01a5c83acd7eefa99e1b3a25867765904399f1f5bef1b0330fd1d1ef1b5b1
brummer10/guitarix
gx_ampout_ladspa.dsp
// Alternate ampout definion for ladspa mono plugin // This plugin is included instead of gx_ampout, and without // the PGN_GUI flag. This means no automatic creation of // the on_off parameter (its always on), so we can define // it here. It will be of type float instead of bool, but // this doesn't matter for data read from preset files. declare groups ".amp[Default]"; import("stdfaust.lib"); import("guitarix.lib"); gain = value : ba.db2linear : smoothi(0.999) with { slider1 = vslider(".amp.out_amp[name:Level]", 0, -20, 4, 0.1); on_off = checkbox(".amp.on_off[name:use Level]"); slider2 = vslider(".amp.out_ladspa[name:Ladspa Level]", 0, -20, 20, 0.1); value = select2(on_off, slider2, slider1 + slider2); }; process = *(gain);
https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/gx_ampout_ladspa.dsp
faust
Alternate ampout definion for ladspa mono plugin This plugin is included instead of gx_ampout, and without the PGN_GUI flag. This means no automatic creation of the on_off parameter (its always on), so we can define it here. It will be of type float instead of bool, but this doesn't matter for data read from preset files.
declare groups ".amp[Default]"; import("stdfaust.lib"); import("guitarix.lib"); gain = value : ba.db2linear : smoothi(0.999) with { slider1 = vslider(".amp.out_amp[name:Level]", 0, -20, 4, 0.1); on_off = checkbox(".amp.on_off[name:use Level]"); slider2 = vslider(".amp.out_ladspa[name:Ladspa Level]", 0, -20, 20, 0.1); value = select2(on_off, slider2, slider1 + slider2); }; process = *(gain);
da2914ed52f07ef4b430eb3ac14becba9d497ba3f39d0d6eda3ef89d12bb65a2
brummer10/guitarix
gx_ampmodul.dsp
declare id "ampmodul"; declare name "Postamp"; declare category "Distortion"; declare groups "amp2.stage1[Postamp Tube1], amp2.stage2[Postamp Tube2]"; import("stdfaust.lib"); import("guitarix.lib"); feedback = hslider("feedback", 0, -1, 1, 0.01); fbackw = (- : ma.neg ) ~ (feedback * _''''); feedbac = hslider("feedbac", 0, -1, 1, 0.01); fback = (- : ma.neg ) ~ (feedbac * _''''); preamp = (vslider(".ampmodul.amp2.stage1.tube1",6,-20,20,0.1):ba.db2linear : smoothi(0.999)); gain1 = vslider(".ampmodul.amp2.stage2.tube2", 6, -20.0, 20.0, 0.1) : ba.db2linear : smoothi(0.999); gain = vslider("level", -20, -40, 4, 0.1) : ba.db2linear : smoothi(0.999); wet_dry = vslider("wet_dry", 0, -1, 1, 0.1); balanc(b) = *(1 - max(0, b)), *(1 - max(0, -b)); wet_dry_mx(w, Fx) = _ <: (_:fback), Fx : balanc(w) : +; process = wet_dry_mx(wet_dry, _:(*(gain) : component("gxamp2.dsp").tubec(preamp,gain1):fbackw)), wet_dry_mx(wet_dry, _:(*(gain) : component("gxamp2.dsp").tubec(preamp,gain1):fbackw));
https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/gx_ampmodul.dsp
faust
declare id "ampmodul"; declare name "Postamp"; declare category "Distortion"; declare groups "amp2.stage1[Postamp Tube1], amp2.stage2[Postamp Tube2]"; import("stdfaust.lib"); import("guitarix.lib"); feedback = hslider("feedback", 0, -1, 1, 0.01); fbackw = (- : ma.neg ) ~ (feedback * _''''); feedbac = hslider("feedbac", 0, -1, 1, 0.01); fback = (- : ma.neg ) ~ (feedbac * _''''); preamp = (vslider(".ampmodul.amp2.stage1.tube1",6,-20,20,0.1):ba.db2linear : smoothi(0.999)); gain1 = vslider(".ampmodul.amp2.stage2.tube2", 6, -20.0, 20.0, 0.1) : ba.db2linear : smoothi(0.999); gain = vslider("level", -20, -40, 4, 0.1) : ba.db2linear : smoothi(0.999); wet_dry = vslider("wet_dry", 0, -1, 1, 0.1); balanc(b) = *(1 - max(0, b)), *(1 - max(0, -b)); wet_dry_mx(w, Fx) = _ <: (_:fback), Fx : balanc(w) : +; process = wet_dry_mx(wet_dry, _:(*(gain) : component("gxamp2.dsp").tubec(preamp,gain1):fbackw)), wet_dry_mx(wet_dry, _:(*(gain) : component("gxamp2.dsp").tubec(preamp,gain1):fbackw));
e8df7c2fd022e0b99a6faeafae6a0dfa865402aa91ce27c70cfc1eff7c02bfaf
brummer10/guitarix
flanger.dsp
declare id "flanger"; declare name "Flanger"; declare category "Modulation"; declare license "BSD"; import("stdfaust.lib"); import("guitarix.lib"); flangerstereogx = *(level),*(level) : flangerstereoN(dmax,curdel1,curdel2,depth,fb,invert) // change to pf.flanger_stereo for faust >= 0.9.27 with { lfol = os.oscrs; // sine for left channel lfor = os.oscrc; // cosine for right channel dmax = 2048; dflange = 0.001 * ma.SR * hslider("flange de.delay [unit:ms]", 10, 0, 20, 0.01); odflange = 0.001 * ma.SR * hslider("flange de.delay offset [unit:ms]", 1, 0, 20, 0.01); freq = hslider("LFO freq [unit:Hz]", 0.2, 0, 5, 0.01); depth = hslider("depth", 1, 0, 1, 0.01); fb = hslider("feedback gain", 0, 0, 1, 0.01); invert = checkbox("invert[enum:linear|invert]"); level = hslider("level [unit:dB]", 0, -60, 10, 0.1) : ba.db2linear; curdel1 = odflange+dflange*(1 + lfol(freq))/2; curdel2 = odflange+dflange*(1 + lfor(freq))/2; }; process = flangerstereogx;
https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/flanger.dsp
faust
change to pf.flanger_stereo for faust >= 0.9.27 sine for left channel cosine for right channel
declare id "flanger"; declare name "Flanger"; declare category "Modulation"; declare license "BSD"; import("stdfaust.lib"); import("guitarix.lib"); with { dmax = 2048; dflange = 0.001 * ma.SR * hslider("flange de.delay [unit:ms]", 10, 0, 20, 0.01); odflange = 0.001 * ma.SR * hslider("flange de.delay offset [unit:ms]", 1, 0, 20, 0.01); freq = hslider("LFO freq [unit:Hz]", 0.2, 0, 5, 0.01); depth = hslider("depth", 1, 0, 1, 0.01); fb = hslider("feedback gain", 0, 0, 1, 0.01); invert = checkbox("invert[enum:linear|invert]"); level = hslider("level [unit:dB]", 0, -60, 10, 0.1) : ba.db2linear; curdel1 = odflange+dflange*(1 + lfol(freq))/2; curdel2 = odflange+dflange*(1 + lfor(freq))/2; }; process = flangerstereogx;
881e37248a6d3b6e06fcd30e1f8bb747ee1b42a0173c231fdad84467767a68cb
brummer10/guitarix
crybaby.dsp
declare id "manual"; declare name "manual"; // selector crybaby / ve.autowah import("stdfaust.lib"); import("guitarix.lib"); _crybaby(wah) = *(gs(s)) : fi.tf2(1,-1*0.996,0,a1s(s)*0.996,a2s(s)*0.996) with { s = 0.999; // smoothing parameter (one-fi.pole fi.pole location) Q = pow(2.0,(2.0*(1.0-wah)+1.0)); // Resonance "quality factor" fr = 450.0*pow(2.0,2.3*wah); // Resonance tuning g = 0.1*pow(4.0,wah); // gain (optional) // Biquad fit using z = exp(s T) ~ 1 + sT for low frequencies: frn = fr/ma.SR; // Normalized fi.pole frequency (cycles per sample) R = 1 - ma.PI*frn/Q; // fi.pole radius theta = 2*ma.PI*frn; // fi.pole angle a1 = 0-2.0*R*cos(theta); // biquad coeff a2 = R*R; // biquad coeff // dezippering of slider-driven signals: a1s(s) = a1 : si.smooth(s); a2s(s) = a2 : si.smooth(s); gs(s) = g : si.smooth(s); }; level = crybaby_ctrl.level; wah = crybaby_ctrl.wah; wet_dry = crybaby_ctrl.wet_dry; dry = 1 - wet_dry; process = _<:*(dry),(*(wet_dry): *(level) : _crybaby(wah)):>_;
https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/crybaby.dsp
faust
selector crybaby / ve.autowah smoothing parameter (one-fi.pole fi.pole location) Resonance "quality factor" Resonance tuning gain (optional) Biquad fit using z = exp(s T) ~ 1 + sT for low frequencies: Normalized fi.pole frequency (cycles per sample) fi.pole radius fi.pole angle biquad coeff biquad coeff dezippering of slider-driven signals:
declare id "manual"; import("stdfaust.lib"); import("guitarix.lib"); _crybaby(wah) = *(gs(s)) : fi.tf2(1,-1*0.996,0,a1s(s)*0.996,a2s(s)*0.996) with { a1s(s) = a1 : si.smooth(s); a2s(s) = a2 : si.smooth(s); gs(s) = g : si.smooth(s); }; level = crybaby_ctrl.level; wah = crybaby_ctrl.wah; wet_dry = crybaby_ctrl.wet_dry; dry = 1 - wet_dry; process = _<:*(dry),(*(wet_dry): *(level) : _crybaby(wah)):>_;
f62df10a838c854b475ee19a5cfdb9cdd91bce98b4fcdbc8937abe63c9e267f2
brummer10/guitarix
gxamp3.dsp
declare id "12AU7"; // in amp tube ba.selector declare name "12AU7"; import("stdfaust.lib"); import("guitarix.lib"); /**************************************************************** ** Tube Preamp Emulation stage 1 - 2 */ tubeax(preamp,gain1) = hgroup("stage1", stage1) : hgroup("stage2", stage2) with { stage1 = tubestage(TB_12AU7_68k,86.0,2700.0,3.718962) : *(preamp):*(2.0): fi.lowpass(1,6531.0) : tubestage(TB_12AU7_250k,132.0,1500.0,2.314844) : *(preamp) :*(2.0); stage2 = fi.lowpass(1,6531.0) : tubestage(TB_12AU7_250k,194.0,820.0,1.356567) : *(gain1):*(2.0); } ; 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/gxamp3.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 "12AU7"; import("stdfaust.lib"); import("guitarix.lib"); tubeax(preamp,gain1) = hgroup("stage1", stage1) : hgroup("stage2", stage2) with { stage1 = tubestage(TB_12AU7_68k,86.0,2700.0,3.718962) : *(preamp):*(2.0): fi.lowpass(1,6531.0) : tubestage(TB_12AU7_250k,132.0,1500.0,2.314844) : *(preamp) :*(2.0); stage2 = fi.lowpass(1,6531.0) : tubestage(TB_12AU7_250k,194.0,820.0,1.356567) : *(gain1):*(2.0); } ; 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; };
4344c1f3e5adf05b04d597b049dab001d094e78b1a64dfe4b93142ad529a1615
brummer10/guitarix
gxamp3.dsp
declare id "12AU7"; // in amp tube ba.selector declare name "12AU7"; declare samplerate "96000"; import("stdfaust.lib"); import("guitarix.lib"); /**************************************************************** ** Tube Preamp Emulation stage 1 - 2 */ tubeax(preamp,gain1) = hgroup("stage1", stage1) : hgroup("stage2", stage2) with { stage1 = tubestage(TB_12AU7_68k,86.0,2700.0,3.718962) : *(preamp):*(2.0): fi.lowpass(1,6531.0) : tubestage(TB_12AU7_250k,132.0,1500.0,2.314844) : *(preamp) :*(2.0); stage2 = fi.lowpass(1,6531.0) : tubestage(TB_12AU7_250k,194.0,820.0,1.356567) : *(gain1):*(2.0); } ; 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/gxamp3.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 "12AU7"; declare samplerate "96000"; import("stdfaust.lib"); import("guitarix.lib"); tubeax(preamp,gain1) = hgroup("stage1", stage1) : hgroup("stage2", stage2) with { stage1 = tubestage(TB_12AU7_68k,86.0,2700.0,3.718962) : *(preamp):*(2.0): fi.lowpass(1,6531.0) : tubestage(TB_12AU7_250k,132.0,1500.0,2.314844) : *(preamp) :*(2.0); stage2 = fi.lowpass(1,6531.0) : tubestage(TB_12AU7_250k,194.0,820.0,1.356567) : *(gain1):*(2.0); } ; 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; };
03d9fed08d7733633fa2a238e9dcf281a0f68ad9f2b9824162b5800da8268ee3
brummer10/guitarix
gxamp14.dsp
declare id "12AT7"; // in amp tube ba.selector declare name "12AT7"; import("stdfaust.lib"); import("guitarix.lib"); /**************************************************************** ** Tube Preamp Emulation stage 1 - 2 * 12AT7 */ tubeax(preamp,gain1) = hgroup("stage1", stage1) : hgroup("stage2", stage2) with { stage1 = tubestage(TB_12AT7_68k,86.0,2700.0,2.617753) : *(preamp): fi.lowpass(1,6531.0) : tubestage(TB_12AT7_250k,132.0,1500.0,1.887332) : *(preamp); stage2 = fi.lowpass(1,6531.0) : tubestage(TB_12AT7_250k,194.0,820.0,1.256962) : *(gain1); } ; 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/gxamp14.dsp
faust
in amp tube ba.selector *************************************************************** ** Tube Preamp Emulation stage 1 - 2 * 12AT7 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 "12AT7"; import("stdfaust.lib"); import("guitarix.lib"); tubeax(preamp,gain1) = hgroup("stage1", stage1) : hgroup("stage2", stage2) with { stage1 = tubestage(TB_12AT7_68k,86.0,2700.0,2.617753) : *(preamp): fi.lowpass(1,6531.0) : tubestage(TB_12AT7_250k,132.0,1500.0,1.887332) : *(preamp); stage2 = fi.lowpass(1,6531.0) : tubestage(TB_12AT7_250k,194.0,820.0,1.256962) : *(gain1); } ; 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; };
ab3633fc92e73228f9ceaff80372cb4f7845fee3d5e0481f96c8737b11f65487
brummer10/guitarix
gxtubedelay.dsp
declare name "Tube Delay"; declare category "Echo / Delay"; import("stdfaust.lib"); import("redeye.lib"); LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); level = vslider("level[style:knob]", 0, 0, 1, 0.1):LogPot(1):si.smooth(0.993); feedback = vslider("feedback[style:knob]", 0, 0.0, 0.7, 0.01); dtime = vslider("de.delay[unit:ms][style:knob]", 0.1, 0.1, 2500, 0.1)*ma.SR/1000.0; output = vslider("output[style:knob]", 0.0, -20.0, 20.0, 0.1):ba.db2linear:si.smooth(0.993); interp = 100*ma.SR/1000.0; // for a 2.5 sec de.delay N = int( 2^17 ) ; delayed = de.sdelay(N, interp, dtime) ; // added a de.delay bypass output to get a real tape de.delay, // and a low/fi.highpass filter section in the feedback loop // to avoid self oscillation amp = input12ax7<:((+:_<:_ ,( delayed:*(level)) :>_)~(*(feedback): fi.highpass(2,120.0):fi.lowpass(2,12000.0))):>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/gxtubedelay.dsp
faust
for a 2.5 sec de.delay added a de.delay bypass output to get a real tape de.delay, and a low/fi.highpass filter section in the feedback loop to avoid self oscillation
declare name "Tube Delay"; declare category "Echo / Delay"; import("stdfaust.lib"); import("redeye.lib"); LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); level = vslider("level[style:knob]", 0, 0, 1, 0.1):LogPot(1):si.smooth(0.993); feedback = vslider("feedback[style:knob]", 0, 0.0, 0.7, 0.01); dtime = vslider("de.delay[unit:ms][style:knob]", 0.1, 0.1, 2500, 0.1)*ma.SR/1000.0; output = vslider("output[style:knob]", 0.0, -20.0, 20.0, 0.1):ba.db2linear:si.smooth(0.993); interp = 100*ma.SR/1000.0; N = int( 2^17 ) ; delayed = de.sdelay(N, interp, dtime) ; amp = input12ax7<:((+:_<:_ ,( delayed:*(level)) :>_)~(*(feedback): fi.highpass(2,120.0):fi.lowpass(2,12000.0))):>output12ax7:*(output); freq_split = fi.filterbank(3, (86.0,210.0,1200.0,6531.0)); process = freq_split: ( amp , amp , amp, amp, amp) :>_;
5bfe19628cfbea2119670f2bb0a738d2a2764b744f4ccd9125f986e1dddddc21
brummer10/guitarix
gxamp3_stereo.dsp
declare id "12AU7"; // in amp tube ba.selector declare name "12AU7"; import("stdfaust.lib"); import("guitarix.lib"); /**************************************************************** ** Tube Preamp Emulation stage 1 - 2 */ tubeax(preamp,gain1) = hgroup("stage1", stage1) : hgroup("stage2", stage2) with { stage1 = tubestage(TB_12AU7_68k,86.0,2700.0,3.718962) : *(preamp):*(2.0): fi.lowpass(1,6531.0) : tubestage(TB_12AU7_250k,132.0,1500.0,2.314844) : *(preamp) :*(2.0); stage2 = fi.lowpass(1,6531.0) : tubestage(TB_12AU7_250k,194.0,820.0,1.356567) : *(gain1):*(2.0); } ; 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/gxamp3_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 "12AU7"; import("stdfaust.lib"); import("guitarix.lib"); tubeax(preamp,gain1) = hgroup("stage1", stage1) : hgroup("stage2", stage2) with { stage1 = tubestage(TB_12AU7_68k,86.0,2700.0,3.718962) : *(preamp):*(2.0): fi.lowpass(1,6531.0) : tubestage(TB_12AU7_250k,132.0,1500.0,2.314844) : *(preamp) :*(2.0); stage2 = fi.lowpass(1,6531.0) : tubestage(TB_12AU7_250k,194.0,820.0,1.356567) : *(gain1):*(2.0); } ; 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;
970f7f2d0a3c3433702effdba0fa3246247466c1259201fde36d9ed7b01935a5
brummer10/guitarix
bass_enhancer.dsp
declare id "bassEnhancer"; declare name "Bass Enhancer"; declare shortname "BassEnhancer"; declare category "Misc"; //------------------------------------ //Based at: //"LOW COMPLEXITY VIRTUAL BASS ENHANCEMENT ALGORITHM FOR PORTABLE MULTIMEDIA DEVICE" //MANISH ARORA, HAN-GIL MOON, AND SEONGCHEOL JANG //Audio lab, DM R&D Center, Samsung Electronics co. Ltd, Suwon, South Korea //------------------------------------ import("stdfaust.lib"); //Controls lp_freq = hslider("Frequency",100,60,240,5); harmonics_volume = hslider("HarmonicsdB[name:Harmonics]",0, -16, +32, 0.1): ba.db2linear : si.smooth(0.999); //Can be moved to .lib X = (_,_)<:(!,_,_,!); switch(c,x,y) = sel(c,x,y) with { sel(c,x,y) = (1-c)*x + c*y; }; //NLD and consts harm1 = 0.03; harm2 = 0.015; get_const(a,b,x,y) = (x <= y)*a + (x > y)*b; nld1(a,b) = _<:(_,_,X,_,_:_,X,_,_,_:((get_const(a,b):1-_),_,get_const(a,b),_):(_*_,_*_:(_+_)))~_~_~_; process = _,_<:hp_branch,(_,_:>lp_branch<:_,_),(_,_:>be_branch<:_,_),hp_branch:>_,_ with { hp_branch = fi.dcblockerat(20) : fi.highpass(8, lp_freq); lp_branch = fi.dcblockerat(20) : fi.lowpass(8,lp_freq); be_branch = fi.lowpass(8,lp_freq) : nld1(harm1,harm2) : _*harmonics_volume; };
https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/bass_enhancer.dsp
faust
------------------------------------ Based at: "LOW COMPLEXITY VIRTUAL BASS ENHANCEMENT ALGORITHM FOR PORTABLE MULTIMEDIA DEVICE" MANISH ARORA, HAN-GIL MOON, AND SEONGCHEOL JANG Audio lab, DM R&D Center, Samsung Electronics co. Ltd, Suwon, South Korea ------------------------------------ Controls Can be moved to .lib NLD and consts
declare id "bassEnhancer"; declare name "Bass Enhancer"; declare shortname "BassEnhancer"; declare category "Misc"; import("stdfaust.lib"); lp_freq = hslider("Frequency",100,60,240,5); harmonics_volume = hslider("HarmonicsdB[name:Harmonics]",0, -16, +32, 0.1): ba.db2linear : si.smooth(0.999); X = (_,_)<:(!,_,_,!); switch(c,x,y) = sel(c,x,y) with { sel(c,x,y) = (1-c)*x + c*y; }; harm1 = 0.03; harm2 = 0.015; get_const(a,b,x,y) = (x <= y)*a + (x > y)*b; nld1(a,b) = _<:(_,_,X,_,_:_,X,_,_,_:((get_const(a,b):1-_),_,get_const(a,b),_):(_*_,_*_:(_+_)))~_~_~_; process = _,_<:hp_branch,(_,_:>lp_branch<:_,_),(_,_:>be_branch<:_,_),hp_branch:>_,_ with { hp_branch = fi.dcblockerat(20) : fi.highpass(8, lp_freq); lp_branch = fi.dcblockerat(20) : fi.lowpass(8,lp_freq); be_branch = fi.lowpass(8,lp_freq) : nld1(harm1,harm2) : _*harmonics_volume; };
99162c13c9543db18230ab968b5de7b10624e717b4001429aeda0de61d2918e2
brummer10/guitarix
stereoecho.dsp
declare name "Stereo Echo"; declare category "Echo / Delay"; import("stdfaust.lib"); import("guitarix.lib"); msec = ma.SR/1000.0; lfol = os.oscrs; // sine for left channel //freq = hslider("LFO freq [unit:Hz]", 0.2, 0, 5, 0.01); freq = hslider("lfobpm[name:LFO Freq][tooltip:LFO in Beats per Minute]",24,24,360,1)/60; pingpong = checkbox("invert[enum:linear|pingpong]"); //tl = vslider("time_l", 1, 1, 2000, 1); releasel = vslider("percent_l[name:Release L]", 0, 0, 100, 0.1); //tr = vslider("time_r", 1, 1, 2000, 1); releaser = vslider("percent_r[name:Release R]", 0, 0, 100, 0.1); tl = ba.tempo(hslider("lbpm[name:Time L][tooltip:Echo in Beats per Minute]",120,24,360,1)); tr = ba.tempo(hslider("rbpm[name:Time R][tooltip:Echo in Beats per Minute]",120,24,360,1)); N = int( 2^19); echo1 = +~(de.sdelay(N, 1024, int(tl)-1) * ((releasel/100.0)*(1-(lfol(freq)*pingpong))) ); echo2 = +~(de.sdelay(N, 1024, int(tr)-1) * ((releaser/100.0)*(1-((-1*lfol(freq))*pingpong))) ); process = echo1,echo2;
https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/stereoecho.dsp
faust
sine for left channel freq = hslider("LFO freq [unit:Hz]", 0.2, 0, 5, 0.01); tl = vslider("time_l", 1, 1, 2000, 1); tr = vslider("time_r", 1, 1, 2000, 1);
declare name "Stereo Echo"; declare category "Echo / Delay"; import("stdfaust.lib"); import("guitarix.lib"); msec = ma.SR/1000.0; freq = hslider("lfobpm[name:LFO Freq][tooltip:LFO in Beats per Minute]",24,24,360,1)/60; pingpong = checkbox("invert[enum:linear|pingpong]"); releasel = vslider("percent_l[name:Release L]", 0, 0, 100, 0.1); releaser = vslider("percent_r[name:Release R]", 0, 0, 100, 0.1); tl = ba.tempo(hslider("lbpm[name:Time L][tooltip:Echo in Beats per Minute]",120,24,360,1)); tr = ba.tempo(hslider("rbpm[name:Time R][tooltip:Echo in Beats per Minute]",120,24,360,1)); N = int( 2^19); echo1 = +~(de.sdelay(N, 1024, int(tl)-1) * ((releasel/100.0)*(1-(lfol(freq)*pingpong))) ); echo2 = +~(de.sdelay(N, 1024, int(tr)-1) * ((releaser/100.0)*(1-((-1*lfol(freq))*pingpong))) ); process = echo1,echo2;
6871a5ef8042d6fc12abaa311cfdfdb94bc80e89d45fc80ccc9de930138e6f35
brummer10/guitarix
gxmetal_head.dsp
declare id "metal"; // in amp tube ba.selector declare name "GxMetal_head"; import("stdfaust.lib"); import("guitarix.lib"); /**************************************************************** ** Tube Preamp Emulation stage 1 - 2 */ tubeax(preamp,gain1) = hgroup("stage1", stage1) : hgroup("stage2", stage2) : tone : hgroup("stage3", stage3) with { stage1 = tubestage(TB_12AX7_68k,86.0,2700.0,1.581656) : *(preamp): fi.lowpass(1,6531.0) : tubestage(TB_12AX7_250k,132.0,1500.0,1.204285); stage2 = fi.lowpass(1,6531.0) : tubestage(TB_12AX7_250k,194.0,820.0,0.840703) ; tone = component("bigmuff.dsp").bigmuff ; stage3 = *(gain1) : _<:(tubestageP(TB_6L6CG_68k,450.0,40.0,5000, 256.0,490.0,20.063657), tubestageP(TB_6L6CG_250k,450.0,40.0,5000, 256.0,490.0,20.063657)):> *(gain1) :fi.lowpass(1,6531.0) ; }; //tubestageP(tb,vplus,divider,Rp,fck,Rk,Vk0) //tubestage(tb,fck,Rk,Vk0) process = component("gxdistortion.dsp").distdrive1(drive) : tubeax(preamp,gain1) : div_drive with { drive = ampctrl.drive; div_drive = *((drive*-12):ba.db2linear : smoothi(0.999)); preamp = ampctrl.preamp; gain1 = ampctrl.gain1; };
https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/gxmetal_head.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"); tubeax(preamp,gain1) = hgroup("stage1", stage1) : hgroup("stage2", stage2) : tone : hgroup("stage3", stage3) with { stage1 = tubestage(TB_12AX7_68k,86.0,2700.0,1.581656) : *(preamp): fi.lowpass(1,6531.0) : tubestage(TB_12AX7_250k,132.0,1500.0,1.204285); stage2 = fi.lowpass(1,6531.0) : tubestage(TB_12AX7_250k,194.0,820.0,0.840703) ; tone = component("bigmuff.dsp").bigmuff ; stage3 = *(gain1) : _<:(tubestageP(TB_6L6CG_68k,450.0,40.0,5000, 256.0,490.0,20.063657), tubestageP(TB_6L6CG_250k,450.0,40.0,5000, 256.0,490.0,20.063657)):> *(gain1) :fi.lowpass(1,6531.0) ; }; process = component("gxdistortion.dsp").distdrive1(drive) : tubeax(preamp,gain1) : div_drive with { drive = ampctrl.drive; div_drive = *((drive*-12):ba.db2linear : smoothi(0.999)); preamp = ampctrl.preamp; gain1 = ampctrl.gain1; };
3b6832cb6bde972f9b6750d027d34165846f11468c7d4d386aaadb7eea9b222e
brummer10/guitarix
switched_tremolo.dsp
//------------------------------------ //Inspired by:Line 6 POD-3 //Found this effect somewhere here //------------------------------------ //------------------------------------ //Description: //The modulated signal got using 4 oscillations, //which are switched. // //Parameters description: //steps - number of oscillators in bank //sw_freq - oscillators switching freq //freq0..4 - oscillators freqs //depth - as is //------------------------------------ import("stdfaust.lib"); steps = hslider("Steps", 4, 1, 4, 1); sw_freq = hslider("Switch Freq", 1, 0.25, 5, 0.25); freq0 = hslider("Freq 0", 1, 0.25, 15, 0.5); freq1 = hslider("Freq 1", 1, 0.25, 15, 0.5); freq2 = hslider("Freq 2", 1, 0.25, 15, 0.5); freq3 = hslider("Freq 3", 1, 0.25, 15, 0.5); depth = hslider("Depth", 0.5, 0, 1, 0.05); wet = vslider("wet_dry[name:wet/dry][tooltip:percentage of processed signal in output signal]", 100, 0, 100, 1) : /(100); dry = 1 - wet; in_range(min_val, max_val, x) = x>min_val,x<=max_val:*:_; N = 4; freqs = (freq0, freq1, freq2, freq3); process = _<:*(dry),(*(wet):(par(i,N,os.osc(ba.take(i+1,freqs))), (os.lf_sawpos(sw_freq)<:par(i,N,in_range(i/steps,(i+1)/steps): si.smooth(ba.tau2pole(0.05))))),_: (si.dot(N):_*depth:_+1:_-depth),_:_*_:_):>_;
https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/switched_tremolo.dsp
faust
------------------------------------ Inspired by:Line 6 POD-3 Found this effect somewhere here ------------------------------------ ------------------------------------ Description: The modulated signal got using 4 oscillations, which are switched. Parameters description: steps - number of oscillators in bank sw_freq - oscillators switching freq freq0..4 - oscillators freqs depth - as is ------------------------------------
import("stdfaust.lib"); steps = hslider("Steps", 4, 1, 4, 1); sw_freq = hslider("Switch Freq", 1, 0.25, 5, 0.25); freq0 = hslider("Freq 0", 1, 0.25, 15, 0.5); freq1 = hslider("Freq 1", 1, 0.25, 15, 0.5); freq2 = hslider("Freq 2", 1, 0.25, 15, 0.5); freq3 = hslider("Freq 3", 1, 0.25, 15, 0.5); depth = hslider("Depth", 0.5, 0, 1, 0.05); wet = vslider("wet_dry[name:wet/dry][tooltip:percentage of processed signal in output signal]", 100, 0, 100, 1) : /(100); dry = 1 - wet; in_range(min_val, max_val, x) = x>min_val,x<=max_val:*:_; N = 4; freqs = (freq0, freq1, freq2, freq3); process = _<:*(dry),(*(wet):(par(i,N,os.osc(ba.take(i+1,freqs))), (os.lf_sawpos(sw_freq)<:par(i,N,in_range(i/steps,(i+1)/steps): si.smooth(ba.tau2pole(0.05))))),_: (si.dot(N):_*depth:_+1:_-depth),_:_*_:_):>_;
028751e61659f48228cf4344f5b315d083735a9a20ad7821940865ec8d51d404
brummer10/guitarix
phaser_mono.dsp
declare id "phaser_mono"; declare name "Phaser Mono"; declare category "Modulation"; import("stdfaust.lib"); phaser_monogx = *(level): component("phaser.dsp").phaser_mono(Notches,0,width,frqmin,fratio,frqmax,freq,mdepth,fb,invert) with { Notches = 4; freq = hslider("Speed [unit:Hz] ", 0.5, 0, 10, 0.01); depth = 1 ;//hslider("depth", 1, 0, 1, 0.01); fb = 0.5 ;//hslider("feedback gain", 0, 0, 1, 0.01); width = 1000 ;//hslider("Notch width [unit:Hz]", 1000, 10, 5000, 1); vibr = 1 ;//checkbox("VibratoMode[enum:direct | vibrato]"); frqmin = 100 ;//hslider("MinNotch1Freq [unit:Hz] ", 100, 20, 5000, 1); frqmax = 800: max(frqmin) ;//hslider("MaxNotch1Freq [unit:Hz] ", 800, 20, 10000, 1) : max(frqmin); fratio = 2.0 ;//hslider("NotchFreq", 1.5, 1.1, 4, 0.01); mdepth = 2 ;//select2(vibr,depth,2); invert = 1 ;//checkbox("invert[enum:linear|invert]"); level = hslider("level [unit:dB]", 0, -60, 10, 0.1) : ba.db2linear; }; wet = vslider("wet_dry[name:wet/dry][tooltip:percentage of processed signal in output signal]", 100, 0, 100, 1) : /(100); dry = 1 - wet; process = _<:*(dry),(*(wet): phaser_monogx ):>_;
https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/phaser_mono.dsp
faust
hslider("depth", 1, 0, 1, 0.01); hslider("feedback gain", 0, 0, 1, 0.01); hslider("Notch width [unit:Hz]", 1000, 10, 5000, 1); checkbox("VibratoMode[enum:direct | vibrato]"); hslider("MinNotch1Freq [unit:Hz] ", 100, 20, 5000, 1); hslider("MaxNotch1Freq [unit:Hz] ", 800, 20, 10000, 1) : max(frqmin); hslider("NotchFreq", 1.5, 1.1, 4, 0.01); select2(vibr,depth,2); checkbox("invert[enum:linear|invert]");
declare id "phaser_mono"; declare name "Phaser Mono"; declare category "Modulation"; import("stdfaust.lib"); phaser_monogx = *(level): component("phaser.dsp").phaser_mono(Notches,0,width,frqmin,fratio,frqmax,freq,mdepth,fb,invert) with { Notches = 4; freq = hslider("Speed [unit:Hz] ", 0.5, 0, 10, 0.01); level = hslider("level [unit:dB]", 0, -60, 10, 0.1) : ba.db2linear; }; wet = vslider("wet_dry[name:wet/dry][tooltip:percentage of processed signal in output signal]", 100, 0, 100, 1) : /(100); dry = 1 - wet; process = _<:*(dry),(*(wet): phaser_monogx ):>_;
3500942c1cc0a231ac51796a92b4d29c03e2d214bca150dc5beace2f5f3994ae
brummer10/guitarix
gxamp14.dsp
declare id "12AT7"; // in amp tube ba.selector declare name "12AT7"; declare samplerate "96000"; import("stdfaust.lib"); import("guitarix.lib"); /**************************************************************** ** Tube Preamp Emulation stage 1 - 2 * 12AT7 */ tubeax(preamp,gain1) = hgroup("stage1", stage1) : hgroup("stage2", stage2) with { stage1 = tubestage(TB_12AT7_68k,86.0,2700.0,2.617753) : *(preamp): fi.lowpass(1,6531.0) : tubestage(TB_12AT7_250k,132.0,1500.0,1.887332) : *(preamp); stage2 = fi.lowpass(1,6531.0) : tubestage(TB_12AT7_250k,194.0,820.0,1.256962) : *(gain1); } ; 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/gxamp14.dsp
faust
in amp tube ba.selector *************************************************************** ** Tube Preamp Emulation stage 1 - 2 * 12AT7 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 "12AT7"; declare samplerate "96000"; import("stdfaust.lib"); import("guitarix.lib"); tubeax(preamp,gain1) = hgroup("stage1", stage1) : hgroup("stage2", stage2) with { stage1 = tubestage(TB_12AT7_68k,86.0,2700.0,2.617753) : *(preamp): fi.lowpass(1,6531.0) : tubestage(TB_12AT7_250k,132.0,1500.0,1.887332) : *(preamp); stage2 = fi.lowpass(1,6531.0) : tubestage(TB_12AT7_250k,194.0,820.0,1.256962) : *(gain1); } ; 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; };
ada64b41feacdb6c74e58787b64de5ff3ba5532eff96de0930f21fcf564764bd
brummer10/guitarix
gxamp10.dsp
declare id "6DJ8"; // in amp tube ba.selector declare name "6DJ8"; import("stdfaust.lib"); import("guitarix.lib"); /**************************************************************** ** Tube Preamp Emulation stage 1 - 2 */ tubeax(preamp,gain1) = hgroup("stage1", stage1) : hgroup("stage2", stage2) with { stage1 = tubestage130_20(TB_6DJ8_68k,86.0,2700.0,1.863946) : *(preamp): fi.lowpass(1,6531.0) : tubestage130_20(TB_6DJ8_250k,132.0,1500.0,1.271609) : *(preamp) ; stage2 = fi.lowpass(1,6531.0) <: ( tubestage130_20(TB_6DJ8_68k,194.0,820.0,0.799031), tubestage130_20(TB_6DJ8_250k,194.0,820.0,0.797043)) :> *(gain1); } ; 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/gxamp10.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"; import("stdfaust.lib"); import("guitarix.lib"); tubeax(preamp,gain1) = hgroup("stage1", stage1) : hgroup("stage2", stage2) with { stage1 = tubestage130_20(TB_6DJ8_68k,86.0,2700.0,1.863946) : *(preamp): fi.lowpass(1,6531.0) : tubestage130_20(TB_6DJ8_250k,132.0,1500.0,1.271609) : *(preamp) ; stage2 = fi.lowpass(1,6531.0) <: ( tubestage130_20(TB_6DJ8_68k,194.0,820.0,0.799031), tubestage130_20(TB_6DJ8_250k,194.0,820.0,0.797043)) :> *(gain1); } ; 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; };
f4b3db835c207070a899678ff811e563ad3c7e53be66b39c7f531a5f1f25fe57
brummer10/guitarix
crybaby.dsp
declare id "manual"; declare name "manual"; // ba.selector ve.crybaby / ve.autowah import("stdfaust.lib"); import("guitarix.lib"); _crybaby(wah) = *(gs(s)) : fi.tf2(1,-1*0.996,0,a1s(s)*0.996,a2s(s)*0.996) with { s = 0.999; // smoothing parameter (one-fi.pole fi.pole location) Q = pow(2.0,(2.0*(1.0-wah)+1.0)); // Resonance "quality factor" fr = 450.0*pow(2.0,2.3*wah); // Resonance tuning g = 0.1*pow(4.0,wah); // gain (optional) // Biquad fit using z = exp(s T) ~ 1 + sT for low frequencies: frn = fr/ma.SR; // Normalized fi.pole frequency (cycles per sample) R = 1 - ma.PI*frn/Q; // fi.pole radius theta = 2*ma.PI*frn; // fi.pole angle a1 = 0-2.0*R*cos(theta); // biquad coeff a2 = R*R; // biquad coeff // dezippering of slider-driven signals: a1s(s) = a1 : si.smooth(s); a2s(s) = a2 : si.smooth(s); gs(s) = g : si.smooth(s); }; level = crybaby_ctrl.level; wah = crybaby_ctrl.wah; wet_dry = crybaby_ctrl.wet_dry; dry = 1 - wet_dry; process = _<:*(dry),(*(wet_dry): *(level) : _crybaby(wah)):>_;
https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/crybaby.dsp
faust
ba.selector ve.crybaby / ve.autowah smoothing parameter (one-fi.pole fi.pole location) Resonance "quality factor" Resonance tuning gain (optional) Biquad fit using z = exp(s T) ~ 1 + sT for low frequencies: Normalized fi.pole frequency (cycles per sample) fi.pole radius fi.pole angle biquad coeff biquad coeff dezippering of slider-driven signals:
declare id "manual"; import("stdfaust.lib"); import("guitarix.lib"); _crybaby(wah) = *(gs(s)) : fi.tf2(1,-1*0.996,0,a1s(s)*0.996,a2s(s)*0.996) with { a1s(s) = a1 : si.smooth(s); a2s(s) = a2 : si.smooth(s); gs(s) = g : si.smooth(s); }; level = crybaby_ctrl.level; wah = crybaby_ctrl.wah; wet_dry = crybaby_ctrl.wet_dry; dry = 1 - wet_dry; process = _<:*(dry),(*(wet_dry): *(level) : _crybaby(wah)):>_;
a03e9a6f5ddeff75796739c828b052f7654cbdcf7e01116c43ebe94762a3a69d
brummer10/guitarix
gxamp14_stereo.dsp
declare id "12AT7"; // in amp tube ba.selector declare name "12AT7"; import("stdfaust.lib"); import("guitarix.lib"); /**************************************************************** ** Tube Preamp Emulation stage 1 - 2 * 12AT7 */ tubeax(preamp,gain1) = hgroup("stage1", stage1) : hgroup("stage2", stage2) with { stage1 = tubestage(TB_12AT7_68k,86.0,2700.0,2.617753) : *(preamp): fi.lowpass(1,6531.0) : tubestage(TB_12AT7_250k,132.0,1500.0,1.887332) : *(preamp); stage2 = fi.lowpass(1,6531.0) : tubestage(TB_12AT7_250k,194.0,820.0,1.256962) : *(gain1); } ; 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/gxamp14_stereo.dsp
faust
in amp tube ba.selector *************************************************************** ** Tube Preamp Emulation stage 1 - 2 * 12AT7 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 "12AT7"; import("stdfaust.lib"); import("guitarix.lib"); tubeax(preamp,gain1) = hgroup("stage1", stage1) : hgroup("stage2", stage2) with { stage1 = tubestage(TB_12AT7_68k,86.0,2700.0,2.617753) : *(preamp): fi.lowpass(1,6531.0) : tubestage(TB_12AT7_250k,132.0,1500.0,1.887332) : *(preamp); stage2 = fi.lowpass(1,6531.0) : tubestage(TB_12AT7_250k,194.0,820.0,1.256962) : *(gain1); } ; 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;
a2e3232bc65a78d8c6346526438433c848cbfc97fbefbaab2b284f19e96ea849
brummer10/guitarix
bigmuff.dsp
// Big Muff tone model // import("stdfaust.lib"); // Is basically 2 filters mixed together with a knob. //Top filter is 39K( R1 ) -> 0.01u( C2 ) to ground - 408Hz fi.lowpass // Bottom filter is 3900pF( C1 ) -> 22k( R2 ) to ground - 1855.9Hz // Seems OK but does not create the 1K dip seen on real thing // assume that the tone pot needs better model as must intercat with the // other 2 filters such that at mid point both filters are still working // There shgould be interaction between the pot ( R3 ) and both of thge other RC filters // Also as pot changes so do cutoff frequencies // Reduction moves both frequencies up by roughly 400Hz max // Increase moves both down by around same // So need +-400Hz calculated by current tone position // pot = 0 -> +400 // pot = 1 -> -400 bigmuff = _<: filter1,filter2:>_ with { tone = vslider("tone[style:knob]",0.5,0,1,0.01); filter1 = fi.highpass( 1, 1856):*(tone) ; filter2 = fi.lowpass( 1, 408 ) :*(1-tone ) ; }; process = bigmuff ;
https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/bigmuff.dsp
faust
Big Muff tone model Is basically 2 filters mixed together with a knob. Top filter is 39K( R1 ) -> 0.01u( C2 ) to ground - 408Hz fi.lowpass Bottom filter is 3900pF( C1 ) -> 22k( R2 ) to ground - 1855.9Hz Seems OK but does not create the 1K dip seen on real thing assume that the tone pot needs better model as must intercat with the other 2 filters such that at mid point both filters are still working There shgould be interaction between the pot ( R3 ) and both of thge other RC filters Also as pot changes so do cutoff frequencies Reduction moves both frequencies up by roughly 400Hz max Increase moves both down by around same So need +-400Hz calculated by current tone position pot = 0 -> +400 pot = 1 -> -400
import("stdfaust.lib"); bigmuff = _<: filter1,filter2:>_ with { tone = vslider("tone[style:knob]",0.5,0,1,0.01); filter1 = fi.highpass( 1, 1856):*(tone) ; filter2 = fi.lowpass( 1, 408 ) :*(1-tone ) ; }; process = bigmuff ;
78a6284c056a4b61d09826e84e6a4a6e3c9e67d94c35d04dfca1f81e32379dde
brummer10/guitarix
gxfeed.dsp
import("stdfaust.lib"); import("guitarix.lib"); fb_combii (maxdel,N,b0,aN) = (+ <: de.delay(maxdel,N),_) ~ *(-aN) : !,*(b0); rev1i(maxdel,N,g) = fb_combii (maxdel,N,1,-g); allpass_combi(maxdel,N,aN) = (+ <: de.delay(maxdel,N-1),*(aN)) ~ *(-aN) : mem,_ : + ; rev2i(maxlen,len,g) = allpass_combi(maxlen,len,-g); sat_rev = *(0.2) <: comb_bank :> allpass_chain with { rev1N = rev1i; rev11(len,g) = rev1N(1024,len,g); rev12(len,g) = rev1N(2048,len,g); comb_bank = rev11( 778,.827), rev11( 901,.805), rev11(1011,.783), rev12(1123,.764); rev2N = rev2i; allpass_chain = rev2N(128,125,0.7) : rev2N( 64, 42,0.7) : rev2N( 16, 12,0.7); }; wet_dry = vslider(".amp.wet_dry", 0, -1, 1, 0.01); //wet_dry = vslider(".amp.wet_dry[name:wet/dry]", 100, 0, 100, 1) : /(100); //dry = 1 - wet_dry; switch = checkbox(".amp.feed_on_off[name:reverb_on_of]"); //s_reverb = _ <: select2(switch, _, ( _<:*(dry),(*(wet_dry):sat_rev):>_)); s_reverb = select2(switch, _, (wet_dry_mix(wet_dry,sat_rev))); process = (s_reverb) <: _,_; //process = _ <: _,_;
https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/gxfeed.dsp
faust
wet_dry = vslider(".amp.wet_dry[name:wet/dry]", 100, 0, 100, 1) : /(100); dry = 1 - wet_dry; s_reverb = _ <: select2(switch, _, ( _<:*(dry),(*(wet_dry):sat_rev):>_)); process = _ <: _,_;
import("stdfaust.lib"); import("guitarix.lib"); fb_combii (maxdel,N,b0,aN) = (+ <: de.delay(maxdel,N),_) ~ *(-aN) : !,*(b0); rev1i(maxdel,N,g) = fb_combii (maxdel,N,1,-g); allpass_combi(maxdel,N,aN) = (+ <: de.delay(maxdel,N-1),*(aN)) ~ *(-aN) : mem,_ : + ; rev2i(maxlen,len,g) = allpass_combi(maxlen,len,-g); sat_rev = *(0.2) <: comb_bank :> allpass_chain with { rev1N = rev1i; rev11(len,g) = rev1N(1024,len,g); rev12(len,g) = rev1N(2048,len,g); comb_bank = rev11( 778,.827), rev11( 901,.805), rev11(1011,.783), rev12(1123,.764); rev2N = rev2i; allpass_chain = rev2N(128,125,0.7) : rev2N( 64, 42,0.7) : rev2N( 16, 12,0.7); }; wet_dry = vslider(".amp.wet_dry", 0, -1, 1, 0.01); switch = checkbox(".amp.feed_on_off[name:reverb_on_of]"); s_reverb = select2(switch, _, (wet_dry_mix(wet_dry,sat_rev))); process = (s_reverb) <: _,_;
e7f8b6d6c0b54b61b78577599c1810090b458fbe932d0e233ff3002a0585f3ed
brummer10/guitarix
stereodelay.dsp
declare name "Stereo Delay"; declare category "Echo / Delay"; import("stdfaust.lib"); import("guitarix.lib"); msec = ma.SR/1000.0; lfol = os.oscrs; // sine for left channel //freq = hslider("LFO freq [unit:Hz]", 0.2, 0, 5, 0.01); freq = hslider("lfobpm[name:LFO Freq][tooltip:LFO in Beats per Minute]",24,24,360,1)/60; pingpong = checkbox("invert[enum:linear|pingpong]"); l_gain = vslider("l_gain[name:Gain L]", 0, -20, 20, 0.1) : ba.db2linear : smoothi(0.999); r_gain = vslider("r_gain[name:Gain R]", 0, -20, 20, 0.1) : ba.db2linear : smoothi(0.999); d = ba.tempo(hslider("lbpm[name:Delay L][tooltip:Left Delay in Beats per Minute]",120,24,360,1)); r = ba.tempo(hslider("rbpm[name:Delay R][tooltip:Right Delay in Beats per Minute]",120,24,360,1)); //d = vslider("l_delay", 0, 0, 5000, 10)*msec; //r = vslider("r_delay", 0, 0, 5000, 10)*msec; process = (_ <: _ + l_gain*(1-(pingpong*lfol(freq))) * de.sdelay(262144, 1024, d) :> _), (_ <: _ + r_gain*(1-(pingpong*(-1*lfol(freq)))) * de.sdelay(262144, 1024, r) :> _);
https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/stereodelay.dsp
faust
sine for left channel freq = hslider("LFO freq [unit:Hz]", 0.2, 0, 5, 0.01); d = vslider("l_delay", 0, 0, 5000, 10)*msec; r = vslider("r_delay", 0, 0, 5000, 10)*msec;
declare name "Stereo Delay"; declare category "Echo / Delay"; import("stdfaust.lib"); import("guitarix.lib"); msec = ma.SR/1000.0; freq = hslider("lfobpm[name:LFO Freq][tooltip:LFO in Beats per Minute]",24,24,360,1)/60; pingpong = checkbox("invert[enum:linear|pingpong]"); l_gain = vslider("l_gain[name:Gain L]", 0, -20, 20, 0.1) : ba.db2linear : smoothi(0.999); r_gain = vslider("r_gain[name:Gain R]", 0, -20, 20, 0.1) : ba.db2linear : smoothi(0.999); d = ba.tempo(hslider("lbpm[name:Delay L][tooltip:Left Delay in Beats per Minute]",120,24,360,1)); r = ba.tempo(hslider("rbpm[name:Delay R][tooltip:Right Delay in Beats per Minute]",120,24,360,1)); process = (_ <: _ + l_gain*(1-(pingpong*lfol(freq))) * de.sdelay(262144, 1024, d) :> _), (_ <: _ + r_gain*(1-(pingpong*(-1*lfol(freq)))) * de.sdelay(262144, 1024, r) :> _);
6d99fd5e2ca0aa7ff496a41913ffdaa26cbcfe2205376ab526eaff63fb0ddc92
brummer10/guitarix
gxamp10.dsp
declare id "6DJ8"; // in amp tube ba.selector declare name "6DJ8"; declare samplerate "96000"; import("stdfaust.lib"); import("guitarix.lib"); /**************************************************************** ** Tube Preamp Emulation stage 1 - 2 */ tubeax(preamp,gain1) = hgroup("stage1", stage1) : hgroup("stage2", stage2) with { stage1 = tubestage130_20(TB_6DJ8_68k,86.0,2700.0,1.863946) : *(preamp): fi.lowpass(1,6531.0) : tubestage130_20(TB_6DJ8_250k,132.0,1500.0,1.271609) : *(preamp) ; stage2 = fi.lowpass(1,6531.0) <: ( tubestage130_20(TB_6DJ8_68k,194.0,820.0,0.799031), tubestage130_20(TB_6DJ8_250k,194.0,820.0,0.797043)) :> *(gain1); } ; 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/gxamp10.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"; declare samplerate "96000"; import("stdfaust.lib"); import("guitarix.lib"); tubeax(preamp,gain1) = hgroup("stage1", stage1) : hgroup("stage2", stage2) with { stage1 = tubestage130_20(TB_6DJ8_68k,86.0,2700.0,1.863946) : *(preamp): fi.lowpass(1,6531.0) : tubestage130_20(TB_6DJ8_250k,132.0,1500.0,1.271609) : *(preamp) ; stage2 = fi.lowpass(1,6531.0) <: ( tubestage130_20(TB_6DJ8_68k,194.0,820.0,0.799031), tubestage130_20(TB_6DJ8_250k,194.0,820.0,0.797043)) :> *(gain1); } ; 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; };
d7bf0e1eb561279a7d9e8e21272a66327ba910af3342232a60e8abf88609ccd9
brummer10/guitarix
gxamp10_stereo.dsp
declare id "6DJ8"; // in amp tube ba.selector declare name "6DJ8"; import("stdfaust.lib"); import("guitarix.lib"); /**************************************************************** ** Tube Preamp Emulation stage 1 - 2 */ tubeax(preamp,gain1) = hgroup("stage1", stage1) : hgroup("stage2", stage2) with { stage1 = tubestage130_20(TB_6DJ8_68k,86.0,2700.0,1.863946) : *(preamp): fi.lowpass(1,6531.0) : tubestage130_20(TB_6DJ8_250k,132.0,1500.0,1.271609) : *(preamp) ; stage2 = fi.lowpass(1,6531.0) <: ( tubestage130_20(TB_6DJ8_68k,194.0,820.0,0.799031), tubestage130_20(TB_6DJ8_250k,194.0,820.0,0.797043)) :> *(gain1); } ; 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/gxamp10_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"; import("stdfaust.lib"); import("guitarix.lib"); tubeax(preamp,gain1) = hgroup("stage1", stage1) : hgroup("stage2", stage2) with { stage1 = tubestage130_20(TB_6DJ8_68k,86.0,2700.0,1.863946) : *(preamp): fi.lowpass(1,6531.0) : tubestage130_20(TB_6DJ8_250k,132.0,1500.0,1.271609) : *(preamp) ; stage2 = fi.lowpass(1,6531.0) <: ( tubestage130_20(TB_6DJ8_68k,194.0,820.0,0.799031), tubestage130_20(TB_6DJ8_250k,194.0,820.0,0.797043)) :> *(gain1); } ; 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;
1a1c559946777e10bc4f605317a6d1451d6935cd88b166bfd07bd53212723d24
brummer10/guitarix
hardlim.dsp
declare id "hardlim"; declare name "?limiter"; //declare category "Guitar Effects"; import("stdfaust.lib"); import("guitarix.lib"); rd = library("reducemaps.lib"); compressor_stereo(ratio,thresh,att,rel,x,y) = cgm*x, cgm*y with { cgm = compression_gain_mono(ratio,thresh,att,rel,max(abs(x),abs(y))); }; compression_gain_mono(ratio,thresh,att,rel) = an.amp_follower_ar(att,rel) : ba.linear2db : outminusindb(ratio,thresh) : kneesmooth(att) : ba.db2linear : vmeter1 with { // kneesmooth(att) installs a "knee" in the dynamic-range compression, // where knee smoothness is set equal to half that of the compression-attack. // A general 'knee' parameter could be used instead of tying it to att/2: kneesmooth(att) = si.smooth(ba.tau2pole(att/2.0)); // compression gain in dB: outminusindb(ratio,thresh,level) = max(level-thresh,0.0) * (1.0/float(ratio)-1.0) ; // Note: "float(ratio)" REQUIRED when ratio is an integer > 1! // compression meter indicate when the limiter kicks in vmeter1(x) = attach(x, envelop(1.0-x) : vbargraph("v1[nomidi][tooltip:Rack output Limiter]", 0.0, 1.0)); envelop = abs : max ~ (1.0/ma.SR) : rd.maxn(1024); }; lim = compressor_stereo(100,0,0.0008,0.5); process = lim;
https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/hardlim.dsp
faust
declare category "Guitar Effects"; kneesmooth(att) installs a "knee" in the dynamic-range compression, where knee smoothness is set equal to half that of the compression-attack. A general 'knee' parameter could be used instead of tying it to att/2: compression gain in dB: Note: "float(ratio)" REQUIRED when ratio is an integer > 1! compression meter indicate when the limiter kicks in
declare id "hardlim"; declare name "?limiter"; import("stdfaust.lib"); import("guitarix.lib"); rd = library("reducemaps.lib"); compressor_stereo(ratio,thresh,att,rel,x,y) = cgm*x, cgm*y with { cgm = compression_gain_mono(ratio,thresh,att,rel,max(abs(x),abs(y))); }; compression_gain_mono(ratio,thresh,att,rel) = an.amp_follower_ar(att,rel) : ba.linear2db : outminusindb(ratio,thresh) : kneesmooth(att) : ba.db2linear : vmeter1 with { kneesmooth(att) = si.smooth(ba.tau2pole(att/2.0)); outminusindb(ratio,thresh,level) = max(level-thresh,0.0) * (1.0/float(ratio)-1.0) ; vmeter1(x) = attach(x, envelop(1.0-x) : vbargraph("v1[nomidi][tooltip:Rack output Limiter]", 0.0, 1.0)); envelop = abs : max ~ (1.0/ma.SR) : rd.maxn(1024); }; lim = compressor_stereo(100,0,0.0008,0.5); process = lim;
f99e62567003945fe28a896aaaec6a62ace21f62d73cb3d4feed12ab264843cf
brummer10/guitarix
phaser_mono.dsp
declare id "phaser_mono"; declare name "Phaser Mono"; declare category "Modulation"; import("stdfaust.lib"); phaser_monogx = *(level): component("phaser.dsp").phaser_mono(Notches,0,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 = 1 ;//hslider("depth", 1, 0, 1, 0.01); fb = 0.5 ;//hslider("feedback gain", 0, 0, 1, 0.01); width = 1000 ;//hslider("Notch width [unit:Hz]", 1000, 10, 5000, 1); vibr = 1 ;//checkbox("VibratoMode[enum:direct | vibrato]"); frqmin = 100 ;//hslider("MinNotch1Freq [unit:Hz] ", 100, 20, 5000, 1); frqmax = 800: max(frqmin) ;//hslider("MaxNotch1Freq [unit:Hz] ", 800, 20, 10000, 1) : max(frqmin); fratio = 2.0 ;//hslider("NotchFreq", 1.5, 1.1, 4, 0.01); mdepth = 2 ;//select2(vibr,depth,2); invert = 1 ;//checkbox("invert[enum:linear|invert]"); level = hslider("level [name:Level][unit:dB]", 0, -60, 10, 0.1) : ba.db2linear; }; 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): phaser_monogx ):>_;
https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/phaser_mono.dsp
faust
freq = hslider("Speed [unit:Hz] ", 0.5, 0, 10, 0.01); hslider("depth", 1, 0, 1, 0.01); hslider("feedback gain", 0, 0, 1, 0.01); hslider("Notch width [unit:Hz]", 1000, 10, 5000, 1); checkbox("VibratoMode[enum:direct | vibrato]"); hslider("MinNotch1Freq [unit:Hz] ", 100, 20, 5000, 1); hslider("MaxNotch1Freq [unit:Hz] ", 800, 20, 10000, 1) : max(frqmin); hslider("NotchFreq", 1.5, 1.1, 4, 0.01); select2(vibr,depth,2); checkbox("invert[enum:linear|invert]");
declare id "phaser_mono"; declare name "Phaser Mono"; declare category "Modulation"; import("stdfaust.lib"); phaser_monogx = *(level): component("phaser.dsp").phaser_mono(Notches,0,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; level = hslider("level [name:Level][unit:dB]", 0, -60, 10, 0.1) : ba.db2linear; }; 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): phaser_monogx ):>_;
167aecff5e7925039ce2499c54c584fe6288bc22eb0df6f7d12d1e7dcbde3aa9
brummer10/guitarix
jconv_post.dsp
declare id "jconv"; import("stdfaust.lib"); import("guitarix.lib"); wet = vslider("wet_dry[name:wet/dry][tooltip:percentage of processed signal in output signal]", 100, 0, 100, 1) : /(100); dry = 1 - wet; deltadelay = vslider("diff_delay[name:Delta Delay][tooltip:delay left or right channel by the specified amount (unit: ms)]", 0, -100, 100, 0.01)*ba.millisec : smoothi(0.999); gain = vslider("gain[name:Gain][tooltip:gain trim for processed signal (unit: dB)]", 0, -20, 20, 0.1) : ba.db2linear : smoothi(0.999); jbal = vslider("balance[name:Balance][tooltip:left/right trim for processed signal]", 0, -1, 1, 0.1): smoothi(0.999); bal = balance_ctrl.bal; /* ** We want to move the sound source to the right ** with increasing values of deltadelay; this means ** we have to delay the left channel */ //bug in faust (at least up to version 0.9.27) //rdelay = -deltadelay : max(0); //ldelay = deltadelay : max(0); rdelay = select2(deltadelay > 0, -deltadelay, 0); ldelay = select2(deltadelay < 0, deltadelay, 0); fx = gain * de.fdelay1s(ldelay), gain * de.fdelay1s(rdelay) : balance(jbal); process = *(dry), *(dry), (*(wet),*(wet) : fx) :> balance(bal);
https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/jconv_post.dsp
faust
** We want to move the sound source to the right ** with increasing values of deltadelay; this means ** we have to delay the left channel bug in faust (at least up to version 0.9.27) rdelay = -deltadelay : max(0); ldelay = deltadelay : max(0);
declare id "jconv"; import("stdfaust.lib"); import("guitarix.lib"); wet = vslider("wet_dry[name:wet/dry][tooltip:percentage of processed signal in output signal]", 100, 0, 100, 1) : /(100); dry = 1 - wet; deltadelay = vslider("diff_delay[name:Delta Delay][tooltip:delay left or right channel by the specified amount (unit: ms)]", 0, -100, 100, 0.01)*ba.millisec : smoothi(0.999); gain = vslider("gain[name:Gain][tooltip:gain trim for processed signal (unit: dB)]", 0, -20, 20, 0.1) : ba.db2linear : smoothi(0.999); jbal = vslider("balance[name:Balance][tooltip:left/right trim for processed signal]", 0, -1, 1, 0.1): smoothi(0.999); bal = balance_ctrl.bal; rdelay = select2(deltadelay > 0, -deltadelay, 0); ldelay = select2(deltadelay < 0, deltadelay, 0); fx = gain * de.fdelay1s(ldelay), gain * de.fdelay1s(rdelay) : balance(jbal); process = *(dry), *(dry), (*(wet),*(wet) : fx) :> balance(bal);
77d7626d7c84260f9afa6c33271d12cab27c2bdc18292405f52681d413e45476
brummer10/guitarix
gxamp12.dsp
declare id "pre 6DJ8/ master 6V6"; // in amp tube ba.selector declare name "pre 6DJ8/ master 6V6"; declare samplerate "96000"; import("stdfaust.lib"); import("guitarix.lib"); /**************************************************************** ** Tube Preamp Emulation stage 1 - 2 */ a = 0.75; r(x) = x-sym_clip(a*0.88); soft_clip(x) = x:sym_clip(a*0.75) <:+(r(x)*0.333); hard_clip = sym_clip(0.88); gx_drive(drive) = _ <: _ + nonlin(4,4,0.125) * drive * 10 ; 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_20(TB_6DJ8_68k,86.0,2700.0,1.863946) : fi.lowpass(1,6531.0) : tubestage130_20(TB_6DJ8_250k,132.0,1500.0,1.271609) :tubestage130_20(TB_6DJ8_250k,194.0,820.0,0.797043); 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/gxamp12.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 "pre 6DJ8/ master 6V6"; declare samplerate "96000"; import("stdfaust.lib"); import("guitarix.lib"); a = 0.75; r(x) = x-sym_clip(a*0.88); soft_clip(x) = x:sym_clip(a*0.75) <:+(r(x)*0.333); hard_clip = sym_clip(0.88); gx_drive(drive) = _ <: _ + nonlin(4,4,0.125) * drive * 10 ; 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_20(TB_6DJ8_68k,86.0,2700.0,1.863946) : fi.lowpass(1,6531.0) : tubestage130_20(TB_6DJ8_250k,132.0,1500.0,1.271609) :tubestage130_20(TB_6DJ8_250k,194.0,820.0,0.797043); 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; } ; };
5268098d3f944e535af46f4a396bc1a20e5322077b1644c4c49969f23c42be46
brummer10/guitarix
gxamp15.dsp
declare id "pre 12AT7/ master 6V6"; // in amp tube ba.selector declare name "pre 12AT7/ master 6V6"; declare samplerate "96000"; import("stdfaust.lib"); import("guitarix.lib"); /**************************************************************** ** Tube amp Emulation stage 1 - 2 - 3 * 12AT7 -> master 6V6 */ a = 0.75; r(x) = x-sym_clip(a*0.88); soft_clip(x) = x:sym_clip(a*0.75) <:+(r(x)*0.333); hard_clip = sym_clip(0.88); gx_drive(drive) = _ <: _ + nonlin(4,4,0.125) * drive * 10 ; 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_12AT7_68k,86.0,2700.0,2.617753) : fi.lowpass(1,6531.0) : tubestage(TB_12AT7_250k,132.0,1500.0,1.887332) :tubestage(TB_12AT7_250k,194.0,820.0,1.256962); 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/gxamp15.dsp
faust
in amp tube ba.selector *************************************************************** ** Tube amp Emulation stage 1 - 2 - 3 * 12AT7 -> master 6V6 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 12AT7/ master 6V6"; declare samplerate "96000"; import("stdfaust.lib"); import("guitarix.lib"); a = 0.75; r(x) = x-sym_clip(a*0.88); soft_clip(x) = x:sym_clip(a*0.75) <:+(r(x)*0.333); hard_clip = sym_clip(0.88); gx_drive(drive) = _ <: _ + nonlin(4,4,0.125) * drive * 10 ; 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_12AT7_68k,86.0,2700.0,2.617753) : fi.lowpass(1,6531.0) : tubestage(TB_12AT7_250k,132.0,1500.0,1.887332) :tubestage(TB_12AT7_250k,194.0,820.0,1.256962); 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; } ; };
dcafa4d429cc61c59c11cc7ea7713cbe3dee2c27de82859611d6f9b108284fa0
brummer10/guitarix
gxtubevibrato.dsp
/* Attempt at a true vibrato And it works well! Sounds very sweet with tubes wrapped Need LFO to modulate de.delay - LFO 5 - 14Hz speed and depth */ import("stdfaust.lib"); import("redeye.lib"); /* 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))); }; /* vibrato unit, using os.triangle or sine oscillator as lfo to modulate the de.delay time */ vibrato = ((( lfo + 1 ) *5)+5)*depth 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)); freq = vslider("speed[style:knob]",5,0,14,0.1) ; depth = vslider("depth[style:knob]",0.5,0.0,1.0,0.01) ; }; delayed = de.sdelay(65536, interp, vibrato*ma.SR/1000.0) with{ N = int(2^12); //65536 interp = 100.0 *ma.SR/1000.0; dtime = hslider("delay[unit:ms][style:knob]", 0, 0, 14, 0.1)*ma.SR/1000.0; }; output = vslider("output[style:knob]", 0.0, -20.0, 20.0, 0.1):ba.db2linear:si.smooth(0.993); amp = input12ax7:delayed: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/gxtubevibrato.dsp
faust
Attempt at a true vibrato And it works well! Sounds very sweet with tubes wrapped Need LFO to modulate de.delay - LFO 5 - 14Hz speed and depth os.triangle oscillator (not bandlimited, frequency is approximate) vibrato unit, using os.triangle or sine oscillator as lfo to modulate the de.delay time max(0) because of numerical inaccuracy 65536
import("stdfaust.lib"); import("redeye.lib"); 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))); }; vibrato = ((( lfo + 1 ) *5)+5)*depth with { SINE=checkbox("SINEWAVE[enum:os.triangle|sine]"); lfo = select2(SINE, trianglewave(freq), sine(freq)); freq = vslider("speed[style:knob]",5,0,14,0.1) ; depth = vslider("depth[style:knob]",0.5,0.0,1.0,0.01) ; }; delayed = de.sdelay(65536, interp, vibrato*ma.SR/1000.0) with{ interp = 100.0 *ma.SR/1000.0; dtime = hslider("delay[unit:ms][style:knob]", 0, 0, 14, 0.1)*ma.SR/1000.0; }; output = vslider("output[style:knob]", 0.0, -20.0, 20.0, 0.1):ba.db2linear:si.smooth(0.993); amp = input12ax7:delayed:output12ax7:*(output); freq_split = fi.filterbank(3, (86.0,210.0,1200.0,6531.0)); process = freq_split: ( amp , amp , amp, amp, amp) :>_;
ce21f0ca27b9d3c36b477c0c00b69fed432e14fba46bcff65c3c52b1d29a9261
brummer10/guitarix
gxamp12.dsp
declare id "pre 6DJ8/ master 6V6"; // in amp tube ba.selector declare name "pre 6DJ8/ master 6V6"; import("stdfaust.lib"); import("guitarix.lib"); /**************************************************************** ** Tube Preamp Emulation stage 1 - 2 */ a = 0.75; r(x) = x-sym_clip(a*0.88); soft_clip(x) = x:sym_clip(a*0.75) <:+(r(x)*0.333); hard_clip = sym_clip(0.88); gx_drive(drive) = _ <: _ + nonlin(4,4,0.125) * drive * 10 ; 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_20(TB_6DJ8_68k,86.0,2700.0,1.863946) : fi.lowpass(1,6531.0) : tubestage130_20(TB_6DJ8_250k,132.0,1500.0,1.271609) :tubestage130_20(TB_6DJ8_250k,194.0,820.0,0.797043); 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/gxamp12.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 "pre 6DJ8/ master 6V6"; import("stdfaust.lib"); import("guitarix.lib"); a = 0.75; r(x) = x-sym_clip(a*0.88); soft_clip(x) = x:sym_clip(a*0.75) <:+(r(x)*0.333); hard_clip = sym_clip(0.88); gx_drive(drive) = _ <: _ + nonlin(4,4,0.125) * drive * 10 ; 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_20(TB_6DJ8_68k,86.0,2700.0,1.863946) : fi.lowpass(1,6531.0) : tubestage130_20(TB_6DJ8_250k,132.0,1500.0,1.271609) :tubestage130_20(TB_6DJ8_250k,194.0,820.0,0.797043); 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; } ; };
64c49ba632f6133489cfdca1bdd10590eada88d7ec2f6f693aa0f4d2d1911071
brummer10/guitarix
gxamp12_stereo.dsp
declare id "pre 6DJ8/ master 6V6"; // in amp tube ba.selector declare name "pre 6DJ8/ master 6V6"; import("stdfaust.lib"); import("guitarix.lib"); /**************************************************************** ** Tube Preamp Emulation stage 1 - 2 */ a = 0.75; r(x) = x-sym_clip(a*0.88); soft_clip(x) = x:sym_clip(a*0.75) <:+(r(x)*0.333); hard_clip = sym_clip(0.88); gx_drive(drive) = _ <: _ + nonlin(4,4,0.125) * drive * 10 ; 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_20(TB_6DJ8_68k,86.0,2700.0,1.863946) : fi.lowpass(1,6531.0) : tubestage130_20(TB_6DJ8_250k,132.0,1500.0,1.271609) :tubestage130_20(TB_6DJ8_250k,194.0,820.0,0.797043); 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/gxamp12_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 "pre 6DJ8/ master 6V6"; import("stdfaust.lib"); import("guitarix.lib"); a = 0.75; r(x) = x-sym_clip(a*0.88); soft_clip(x) = x:sym_clip(a*0.75) <:+(r(x)*0.333); hard_clip = sym_clip(0.88); gx_drive(drive) = _ <: _ + nonlin(4,4,0.125) * drive * 10 ; 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_20(TB_6DJ8_68k,86.0,2700.0,1.863946) : fi.lowpass(1,6531.0) : tubestage130_20(TB_6DJ8_250k,132.0,1500.0,1.271609) :tubestage130_20(TB_6DJ8_250k,194.0,820.0,0.797043); 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;
48263c56cac5ef373a555cfc68bb5179037b23bd7e547a10c2df40711bd4c107
brummer10/guitarix
gxamp15_stereo.dsp
declare id "pre 12AT7/ master 6V6"; // in amp tube ba.selector declare name "pre 12AT7/ master 6V6"; import("stdfaust.lib"); import("guitarix.lib"); /**************************************************************** ** Tube amp Emulation stage 1 - 2 - 3 * 12AT7 -> master 6V6 */ a = 0.75; r(x) = x-sym_clip(a*0.88); soft_clip(x) = x:sym_clip(a*0.75) <:+(r(x)*0.333); hard_clip = sym_clip(0.88); gx_drive(drive) = _ <: _ + nonlin(4,4,0.125) * drive * 10 ; 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_12AT7_68k,86.0,2700.0,2.617753) : fi.lowpass(1,6531.0) : tubestage(TB_12AT7_250k,132.0,1500.0,1.887332) :tubestage(TB_12AT7_250k,194.0,820.0,1.256962); 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/gxamp15_stereo.dsp
faust
in amp tube ba.selector *************************************************************** ** Tube amp Emulation stage 1 - 2 - 3 * 12AT7 -> master 6V6 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 12AT7/ master 6V6"; import("stdfaust.lib"); import("guitarix.lib"); a = 0.75; r(x) = x-sym_clip(a*0.88); soft_clip(x) = x:sym_clip(a*0.75) <:+(r(x)*0.333); hard_clip = sym_clip(0.88); gx_drive(drive) = _ <: _ + nonlin(4,4,0.125) * drive * 10 ; 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_12AT7_68k,86.0,2700.0,2.617753) : fi.lowpass(1,6531.0) : tubestage(TB_12AT7_250k,132.0,1500.0,1.887332) :tubestage(TB_12AT7_250k,194.0,820.0,1.256962); 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;
60ea838423df442277cb2e2b92dcec5bfbe76cd01ba55454075c12e9cab4d7cf
brummer10/guitarix
gxamp15.dsp
declare id "pre 12AT7/ master 6V6"; // in amp tube ba.selector declare name "pre 12AT7/ master 6V6"; import("stdfaust.lib"); import("guitarix.lib"); /**************************************************************** ** Tube amp Emulation stage 1 - 2 - 3 * 12AT7 -> master 6V6 */ a = 0.75; r(x) = x-sym_clip(a*0.88); soft_clip(x) = x:sym_clip(a*0.75) <:+(r(x)*0.333); hard_clip = sym_clip(0.88); gx_drive(drive) = _ <: _ + nonlin(4,4,0.125) * drive * 10 ; 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_12AT7_68k,86.0,2700.0,2.617753) : fi.lowpass(1,6531.0) : tubestage(TB_12AT7_250k,132.0,1500.0,1.887332) :tubestage(TB_12AT7_250k,194.0,820.0,1.256962); 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/gxamp15.dsp
faust
in amp tube ba.selector *************************************************************** ** Tube amp Emulation stage 1 - 2 - 3 * 12AT7 -> master 6V6 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 12AT7/ master 6V6"; import("stdfaust.lib"); import("guitarix.lib"); a = 0.75; r(x) = x-sym_clip(a*0.88); soft_clip(x) = x:sym_clip(a*0.75) <:+(r(x)*0.333); hard_clip = sym_clip(0.88); gx_drive(drive) = _ <: _ + nonlin(4,4,0.125) * drive * 10 ; 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_12AT7_68k,86.0,2700.0,2.617753) : fi.lowpass(1,6531.0) : tubestage(TB_12AT7_250k,132.0,1500.0,1.887332) :tubestage(TB_12AT7_250k,194.0,820.0,1.256962); 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; } ; };
191d8df37abf8d0569536eab7836fad8219da31fa93765e127e8ab73be7aab5e
brummer10/guitarix
gxamp16.dsp
declare id "pre 12AT7/ push pull 6V6"; // in amp tube ba.selector declare name "pre 12AT7/ push pull 6V6"; declare samplerate "96000"; import("stdfaust.lib"); import("guitarix.lib"); /**************************************************************** ** Tube amp Emulation stage 1 - 2 - 3 * 12AT7 -> push pull 6V6 */ peak1 = fi.allpassn(4,(-0.2, 0.3, 0.4, 0.5)); gx_drive(drive) = _ <: _ + nonlin(4,4,0.125) * drive * 10 ; process = hgroup("stage1", stage1) : component("gxdistortion.dsp").dist2(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); */ atten = 0.6; stage1 = *(preamp) : (tubestage(TB_12AT7_68k,86.0,2700.0,2.617753) : + ~ (atten*tubestage(TB_12AT7_250k,132.0,1500.0,1.887333))): fi.lowpass(1,6531.0) : (tubestage(TB_12AT7_250k,132.0,1500.0,1.887333) : + ~ (atten*tubestage(TB_12AT7_250k,194.0,820.0,1.256962))) : tubestage(TB_12AT7_250k,194.0,820.0,1.256962); stage2 = fi.lowpass(1,6531.0) : *(gain1) <: ((min(0.7,tubestage(TB_6V6_250k,6531.0,410.0,0.572721))),(max(-0.75,tubestage(TB_6V6_68k,6531.0,410.0,0.581274)))) :> peak1 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/gxamp16.dsp
faust
in amp tube ba.selector *************************************************************** ** Tube amp Emulation stage 1 - 2 - 3 * 12AT7 -> push pull 6V6 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 12AT7/ push pull 6V6"; declare samplerate "96000"; import("stdfaust.lib"); import("guitarix.lib"); peak1 = fi.allpassn(4,(-0.2, 0.3, 0.4, 0.5)); gx_drive(drive) = _ <: _ + nonlin(4,4,0.125) * drive * 10 ; process = hgroup("stage1", stage1) : component("gxdistortion.dsp").dist2(drive,wet_dry) : hgroup("stage2", stage2) with { drive = ampctrl.drive; wet_dry = ampctrl.wet_dry; preamp = ampctrl.preamp; atten = 0.6; stage1 = *(preamp) : (tubestage(TB_12AT7_68k,86.0,2700.0,2.617753) : + ~ (atten*tubestage(TB_12AT7_250k,132.0,1500.0,1.887333))): fi.lowpass(1,6531.0) : (tubestage(TB_12AT7_250k,132.0,1500.0,1.887333) : + ~ (atten*tubestage(TB_12AT7_250k,194.0,820.0,1.256962))) : tubestage(TB_12AT7_250k,194.0,820.0,1.256962); stage2 = fi.lowpass(1,6531.0) : *(gain1) <: ((min(0.7,tubestage(TB_6V6_250k,6531.0,410.0,0.572721))),(max(-0.75,tubestage(TB_6V6_68k,6531.0,410.0,0.581274)))) :> peak1 with { gain1 = ampctrl.gain1; }; };
216fd78d066e70f895bae323adcfa0aaf6f16343cc761753bc9d67a7d89a797c
brummer10/guitarix
gxamp7.dsp
declare id "pre 12ax7/ push-pull 6V6"; // in amp tube ba.selector declare name "pre 12ax7/ push-pull 6V6"; declare samplerate "96000"; import("stdfaust.lib"); import("guitarix.lib"); /**************************************************************** ** Tube Preamp Emulation stage 1 - 2 * 12ax7 -> pusch pull 6V6 */ peak1 = fi.allpassn(4,(-0.2, 0.3, 0.4, 0.5)); gx_drive(drive) = _ <: _ + nonlin(4,4,0.125) * drive * 10 ; process = hgroup("stage1", stage1) : component("gxdistortion.dsp").dist2(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); */ atten = 0.6; stage1 = *(preamp): (tubestage(TB_12AX7_68k,86.0,2700.0,1.581656) : + ~ (atten*tubestage(TB_12AX7_250k,132.0,1500.0,1.204285))) : 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.840703))) : tubestage(TB_12AX7_250k,194.0,820.0,0.840703); stage2 = fi.lowpass(1,6531.0) : *(gain1) <: ((min(0.7,tubestage(TB_6V6_250k,6531.0,410.0,0.572721))),(max(-0.75,tubestage(TB_6V6_68k,6531.0,410.0,0.581274)))) :> peak1 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/gxamp7.dsp
faust
in amp tube ba.selector *************************************************************** ** Tube Preamp Emulation stage 1 - 2 * 12ax7 -> pusch pull 6V6 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/ push-pull 6V6"; declare samplerate "96000"; import("stdfaust.lib"); import("guitarix.lib"); peak1 = fi.allpassn(4,(-0.2, 0.3, 0.4, 0.5)); gx_drive(drive) = _ <: _ + nonlin(4,4,0.125) * drive * 10 ; process = hgroup("stage1", stage1) : component("gxdistortion.dsp").dist2(drive,wet_dry) : hgroup("stage2", stage2) with { drive = ampctrl.drive; wet_dry = ampctrl.wet_dry; preamp = ampctrl.preamp; atten = 0.6; stage1 = *(preamp): (tubestage(TB_12AX7_68k,86.0,2700.0,1.581656) : + ~ (atten*tubestage(TB_12AX7_250k,132.0,1500.0,1.204285))) : 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.840703))) : tubestage(TB_12AX7_250k,194.0,820.0,0.840703); stage2 = fi.lowpass(1,6531.0) : *(gain1) <: ((min(0.7,tubestage(TB_6V6_250k,6531.0,410.0,0.572721))),(max(-0.75,tubestage(TB_6V6_68k,6531.0,410.0,0.581274)))) :> peak1 with { gain1 = ampctrl.gain1; }; };
817dfc7e605b5cccd6e45c06fb271210ef0a55d51e22460c13da765c71a3211a
brummer10/guitarix
gxamp6.dsp
declare id "pre 6DJ8/ push-pull 6V6"; // in amp tube ba.selector declare name "pre 6DJ8/ push-pull 6V6"; declare samplerate "96000"; import("stdfaust.lib"); import("guitarix.lib"); /**************************************************************** ** Tube Preamp Emulation stage 1 - 2 */ peak1 = fi.allpassn(4,(-0.2, 0.3, 0.4, 0.5)); gx_drive(drive) = _ <: _ + nonlin(4,4,0.125) * drive * 10 ; process = hgroup("stage1", stage1) : component("gxdistortion.dsp").dist2(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); */ atten = 0.6; stage1 = *(preamp): (tubestage130_20(TB_6DJ8_68k,86.0,2700.0,1.863946) : + ~ (atten*tubestage130_20(TB_6DJ8_250k,132.0,1500.0,1.271609))): 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))) : tubestage130_20(TB_6DJ8_250k,194.0,820.0,0.797043) ; stage2 = fi.lowpass(1,6531.0) : *(gain1) <: ((min(0.7,tubestage(TB_6V6_250k,6531.0,410.0,0.572721))),(max(-0.75,tubestage(TB_6V6_68k,6531.0,410.0,0.581274)))) :> peak1 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/gxamp6.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 "pre 6DJ8/ push-pull 6V6"; declare samplerate "96000"; import("stdfaust.lib"); import("guitarix.lib"); peak1 = fi.allpassn(4,(-0.2, 0.3, 0.4, 0.5)); gx_drive(drive) = _ <: _ + nonlin(4,4,0.125) * drive * 10 ; process = hgroup("stage1", stage1) : component("gxdistortion.dsp").dist2(drive,wet_dry) : hgroup("stage2", stage2) with { drive = ampctrl.drive; wet_dry = ampctrl.wet_dry; preamp = ampctrl.preamp; atten = 0.6; stage1 = *(preamp): (tubestage130_20(TB_6DJ8_68k,86.0,2700.0,1.863946) : + ~ (atten*tubestage130_20(TB_6DJ8_250k,132.0,1500.0,1.271609))): 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))) : tubestage130_20(TB_6DJ8_250k,194.0,820.0,0.797043) ; stage2 = fi.lowpass(1,6531.0) : *(gain1) <: ((min(0.7,tubestage(TB_6V6_250k,6531.0,410.0,0.572721))),(max(-0.75,tubestage(TB_6V6_68k,6531.0,410.0,0.581274)))) :> peak1 with { gain1 = ampctrl.gain1; }; };
80b6ab399f773d342fda7d79c8ba5585d5ad4ba4c29e3ac37f18bfcbcdcd79c9
brummer10/guitarix
gxamp6.dsp
declare id "pre 6DJ8/ push-pull 6V6"; // in amp tube ba.selector declare name "pre 6DJ8/ push-pull 6V6"; import("stdfaust.lib"); import("guitarix.lib"); /**************************************************************** ** Tube Preamp Emulation stage 1 - 2 */ peak1 = fi.allpassn(4,(-0.2, 0.3, 0.4, 0.5)); gx_drive(drive) = _ <: _ + nonlin(4,4,0.125) * drive * 10 ; process = hgroup("stage1", stage1) : component("gxdistortion.dsp").dist2(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); */ atten = 0.6; stage1 = *(preamp): (tubestage130_20(TB_6DJ8_68k,86.0,2700.0,1.863946) : + ~ (atten*tubestage130_20(TB_6DJ8_250k,132.0,1500.0,1.271609))): 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))) : tubestage130_20(TB_6DJ8_250k,194.0,820.0,0.797043) ; stage2 = fi.lowpass(1,6531.0) : *(gain1) <: ((min(0.7,tubestage(TB_6V6_250k,6531.0,410.0,0.659761))),(max(-0.75,tubestage(TB_6V6_68k,6531.0,410.0,0.664541)))) :> peak1 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/gxamp6.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 "pre 6DJ8/ push-pull 6V6"; import("stdfaust.lib"); import("guitarix.lib"); peak1 = fi.allpassn(4,(-0.2, 0.3, 0.4, 0.5)); gx_drive(drive) = _ <: _ + nonlin(4,4,0.125) * drive * 10 ; process = hgroup("stage1", stage1) : component("gxdistortion.dsp").dist2(drive,wet_dry) : hgroup("stage2", stage2) with { drive = ampctrl.drive; wet_dry = ampctrl.wet_dry; preamp = ampctrl.preamp; atten = 0.6; stage1 = *(preamp): (tubestage130_20(TB_6DJ8_68k,86.0,2700.0,1.863946) : + ~ (atten*tubestage130_20(TB_6DJ8_250k,132.0,1500.0,1.271609))): 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))) : tubestage130_20(TB_6DJ8_250k,194.0,820.0,0.797043) ; stage2 = fi.lowpass(1,6531.0) : *(gain1) <: ((min(0.7,tubestage(TB_6V6_250k,6531.0,410.0,0.659761))),(max(-0.75,tubestage(TB_6V6_68k,6531.0,410.0,0.664541)))) :> peak1 with { gain1 = ampctrl.gain1; }; };
52533e04a2652897b02e21b30a8e96ea59c66bc6bb4b69b4b240c0627631c06d
brummer10/guitarix
gxamp7_stereo.dsp
declare id "pre 12ax7/ push-pull 6V6"; // in amp tube ba.selector declare name "pre 12ax7/ push-pull 6V6"; import("stdfaust.lib"); import("guitarix.lib"); /**************************************************************** ** Tube Preamp Emulation stage 1 - 2 * 12ax7 -> pusch pull 6V6 */ peak1 = fi.allpassn(4,(-0.2, 0.3, 0.4, 0.5)); gx_drive(drive) = _ <: _ + nonlin(4,4,0.125) * drive * 10 ; amp = hgroup("stage1", stage1) : component("gxdistortion.dsp").dist2(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); */ atten = 0.6; stage1 = *(preamp): (tubestage(TB_12AX7_68k,86.0,2700.0,1.581656) : + ~ (atten*tubestage(TB_12AX7_250k,132.0,1500.0,1.204285))) : 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.840703))) : tubestage(TB_12AX7_250k,194.0,820.0,0.840703); stage2 = fi.lowpass(1,6531.0) : *(gain1) <: ((min(0.7,tubestage(TB_6V6_250k,6531.0,410.0,0.659761))),(max(-0.75,tubestage(TB_6V6_68k,6531.0,410.0,0.664541)))) :> peak1 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/gxamp7_stereo.dsp
faust
in amp tube ba.selector *************************************************************** ** Tube Preamp Emulation stage 1 - 2 * 12ax7 -> pusch pull 6V6 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/ push-pull 6V6"; import("stdfaust.lib"); import("guitarix.lib"); peak1 = fi.allpassn(4,(-0.2, 0.3, 0.4, 0.5)); gx_drive(drive) = _ <: _ + nonlin(4,4,0.125) * drive * 10 ; amp = hgroup("stage1", stage1) : component("gxdistortion.dsp").dist2(drive,wet_dry) : hgroup("stage2", stage2) with { drive = ampctrl.drive; wet_dry = ampctrl.wet_dry; preamp = ampctrl.preamp; atten = 0.6; stage1 = *(preamp): (tubestage(TB_12AX7_68k,86.0,2700.0,1.581656) : + ~ (atten*tubestage(TB_12AX7_250k,132.0,1500.0,1.204285))) : 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.840703))) : tubestage(TB_12AX7_250k,194.0,820.0,0.840703); stage2 = fi.lowpass(1,6531.0) : *(gain1) <: ((min(0.7,tubestage(TB_6V6_250k,6531.0,410.0,0.659761))),(max(-0.75,tubestage(TB_6V6_68k,6531.0,410.0,0.664541)))) :> peak1 with { gain1 = ampctrl.gain1; }; }; process = amp,amp;
c2bf518b73e1627f617f25147797aa95eb73d591352509e9cb2d1b4ca2a00e8c
brummer10/guitarix
gxamp8_stereo.dsp
declare id "pre 12AU7/ push-pull 6V6"; // in amp tube ba.selector declare name "pre 12AU7/ push-pull 6V6"; import("stdfaust.lib"); import("guitarix.lib"); /**************************************************************** ** Tube Preamp Emulation stage 1 - 2 * 12AU7 -> pusch pull 6V6 */ peak1 = fi.allpassn(4,(-0.2, 0.3, 0.4, 0.5)); gx_drive(drive) = _ <: _ + nonlin(4,4,0.125) * drive * 10 ; amp = hgroup("stage1", stage1) : component("gxdistortion.dsp").dist2(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); */ atten = 0.6; stage1 = *(preamp):*(2.0): (tubestage130_10(TB_12AU7_68k,86.0,2700.0,1.257240) : + ~ (atten*tubestage130_10(TB_12AU7_250k,132.0,1500.0,0.776162))): fi.lowpass(1,6531.0) : (tubestage130_10(TB_12AU7_250k,132.0,1500.0,0.776162) : + ~ (atten*tubestage130_10(TB_12AU7_250k,194.0,820.0,0.445487))) : tubestage130_10(TB_12AU7_250k,194.0,820.0,0.445487); stage2 = fi.lowpass(1,6531.0) : *(gain1) <: ((min(0.7,tubestage(TB_6V6_250k,6531.0,410.0,0.659761))),(max(-0.75,tubestage(TB_6V6_68k,6531.0,410.0,0.664541)))) :> peak1 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/gxamp8_stereo.dsp
faust
in amp tube ba.selector *************************************************************** ** Tube Preamp Emulation stage 1 - 2 * 12AU7 -> pusch pull 6V6 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/ push-pull 6V6"; import("stdfaust.lib"); import("guitarix.lib"); peak1 = fi.allpassn(4,(-0.2, 0.3, 0.4, 0.5)); gx_drive(drive) = _ <: _ + nonlin(4,4,0.125) * drive * 10 ; amp = hgroup("stage1", stage1) : component("gxdistortion.dsp").dist2(drive,wet_dry) : hgroup("stage2", stage2) with { drive = ampctrl.drive; wet_dry = ampctrl.wet_dry; preamp = ampctrl.preamp; atten = 0.6; stage1 = *(preamp):*(2.0): (tubestage130_10(TB_12AU7_68k,86.0,2700.0,1.257240) : + ~ (atten*tubestage130_10(TB_12AU7_250k,132.0,1500.0,0.776162))): fi.lowpass(1,6531.0) : (tubestage130_10(TB_12AU7_250k,132.0,1500.0,0.776162) : + ~ (atten*tubestage130_10(TB_12AU7_250k,194.0,820.0,0.445487))) : tubestage130_10(TB_12AU7_250k,194.0,820.0,0.445487); stage2 = fi.lowpass(1,6531.0) : *(gain1) <: ((min(0.7,tubestage(TB_6V6_250k,6531.0,410.0,0.659761))),(max(-0.75,tubestage(TB_6V6_68k,6531.0,410.0,0.664541)))) :> peak1 with { gain1 = ampctrl.gain1; }; }; process = amp,amp;
06177f4f0816822a12a61c68dcc3f54a237be2af51ec6e54c524f92c368f09b8
brummer10/guitarix
gxamp7.dsp
declare id "pre 12ax7/ push-pull 6V6"; // in amp tube ba.selector declare name "pre 12ax7/ push-pull 6V6"; import("stdfaust.lib"); import("guitarix.lib"); /**************************************************************** ** Tube Preamp Emulation stage 1 - 2 * 12ax7 -> pusch pull 6V6 */ peak1 = fi.allpassn(4,(-0.2, 0.3, 0.4, 0.5)); gx_drive(drive) = _ <: _ + nonlin(4,4,0.125) * drive * 10 ; process = hgroup("stage1", stage1) : component("gxdistortion.dsp").dist2(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); */ atten = 0.6; stage1 = *(preamp): (tubestage(TB_12AX7_68k,86.0,2700.0,1.581656) : + ~ (atten*tubestage(TB_12AX7_250k,132.0,1500.0,1.204285))) : 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.840703))) : tubestage(TB_12AX7_250k,194.0,820.0,0.840703); stage2 = fi.lowpass(1,6531.0) : *(gain1) <: ((min(0.7,tubestage(TB_6V6_250k,6531.0,410.0,0.659761))),(max(-0.75,tubestage(TB_6V6_68k,6531.0,410.0,0.664541)))) :> peak1 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/gxamp7.dsp
faust
in amp tube ba.selector *************************************************************** ** Tube Preamp Emulation stage 1 - 2 * 12ax7 -> pusch pull 6V6 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/ push-pull 6V6"; import("stdfaust.lib"); import("guitarix.lib"); peak1 = fi.allpassn(4,(-0.2, 0.3, 0.4, 0.5)); gx_drive(drive) = _ <: _ + nonlin(4,4,0.125) * drive * 10 ; process = hgroup("stage1", stage1) : component("gxdistortion.dsp").dist2(drive,wet_dry) : hgroup("stage2", stage2) with { drive = ampctrl.drive; wet_dry = ampctrl.wet_dry; preamp = ampctrl.preamp; atten = 0.6; stage1 = *(preamp): (tubestage(TB_12AX7_68k,86.0,2700.0,1.581656) : + ~ (atten*tubestage(TB_12AX7_250k,132.0,1500.0,1.204285))) : 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.840703))) : tubestage(TB_12AX7_250k,194.0,820.0,0.840703); stage2 = fi.lowpass(1,6531.0) : *(gain1) <: ((min(0.7,tubestage(TB_6V6_250k,6531.0,410.0,0.659761))),(max(-0.75,tubestage(TB_6V6_68k,6531.0,410.0,0.664541)))) :> peak1 with { gain1 = ampctrl.gain1; }; };
fbe941d70478da6782581e8830ea2542f393614d2baee7d24e176877fd1f883f
brummer10/guitarix
gxamp16_stereo.dsp
declare id "pre 12AT7/ push pull 6V6"; // in amp tube ba.selector declare name "pre 12AT7/ push pull 6V6"; import("stdfaust.lib"); import("guitarix.lib"); /**************************************************************** ** Tube amp Emulation stage 1 - 2 - 3 * 12AT7 -> push pull 6V6 */ peak1 = fi.allpassn(4,(-0.2, 0.3, 0.4, 0.5)); gx_drive(drive) = _ <: _ + nonlin(4,4,0.125) * drive * 10 ; amp = hgroup("stage1", stage1) : component("gxdistortion.dsp").dist2(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); */ atten = 0.6; stage1 = *(preamp) : (tubestage(TB_12AT7_68k,86.0,2700.0,2.617753) : + ~ (atten*tubestage(TB_12AT7_250k,132.0,1500.0,1.887333))): fi.lowpass(1,6531.0) : (tubestage(TB_12AT7_250k,132.0,1500.0,1.887333) : + ~ (atten*tubestage(TB_12AT7_250k,194.0,820.0,1.256962))) : tubestage(TB_12AT7_250k,194.0,820.0,1.256962); stage2 = fi.lowpass(1,6531.0) : *(gain1) <: ((min(0.7,tubestage(TB_6V6_250k,6531.0,410.0,0.659761))),(max(-0.75,tubestage(TB_6V6_68k,6531.0,410.0,0.664541)))) :> peak1 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/gxamp16_stereo.dsp
faust
in amp tube ba.selector *************************************************************** ** Tube amp Emulation stage 1 - 2 - 3 * 12AT7 -> push pull 6V6 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 12AT7/ push pull 6V6"; import("stdfaust.lib"); import("guitarix.lib"); peak1 = fi.allpassn(4,(-0.2, 0.3, 0.4, 0.5)); gx_drive(drive) = _ <: _ + nonlin(4,4,0.125) * drive * 10 ; amp = hgroup("stage1", stage1) : component("gxdistortion.dsp").dist2(drive,wet_dry) : hgroup("stage2", stage2) with { drive = ampctrl.drive; wet_dry = ampctrl.wet_dry; preamp = ampctrl.preamp; atten = 0.6; stage1 = *(preamp) : (tubestage(TB_12AT7_68k,86.0,2700.0,2.617753) : + ~ (atten*tubestage(TB_12AT7_250k,132.0,1500.0,1.887333))): fi.lowpass(1,6531.0) : (tubestage(TB_12AT7_250k,132.0,1500.0,1.887333) : + ~ (atten*tubestage(TB_12AT7_250k,194.0,820.0,1.256962))) : tubestage(TB_12AT7_250k,194.0,820.0,1.256962); stage2 = fi.lowpass(1,6531.0) : *(gain1) <: ((min(0.7,tubestage(TB_6V6_250k,6531.0,410.0,0.659761))),(max(-0.75,tubestage(TB_6V6_68k,6531.0,410.0,0.664541)))) :> peak1 with { gain1 = ampctrl.gain1; }; }; process = amp,amp;
5f6a2b1e77d683fcaed66f04ba86ff1edc0308cd83d307f71a8752343f4d0950
brummer10/guitarix
gxamp6_stereo.dsp
declare id "pre 6DJ8/ push-pull 6V6"; // in amp tube ba.selector declare name "pre 6DJ8/ push-pull 6V6"; import("stdfaust.lib"); import("guitarix.lib"); /**************************************************************** ** Tube Preamp Emulation stage 1 - 2 */ peak1 = fi.allpassn(4,(-0.2, 0.3, 0.4, 0.5)); gx_drive(drive) = _ <: _ + nonlin(4,4,0.125) * drive * 10 ; amp = hgroup("stage1", stage1) : component("gxdistortion.dsp").dist2(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); */ atten = 0.6; stage1 = *(preamp): (tubestage130_20(TB_6DJ8_68k,86.0,2700.0,1.863946) : + ~ (atten*tubestage130_20(TB_6DJ8_250k,132.0,1500.0,1.271609))): 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))) : tubestage130_20(TB_6DJ8_250k,194.0,820.0,0.797043) ; stage2 = fi.lowpass(1,6531.0) : *(gain1) <: ((min(0.7,tubestage(TB_6V6_250k,6531.0,410.0,0.659761))),(max(-0.75,tubestage(TB_6V6_68k,6531.0,410.0,0.664541)))) :> peak1 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/gxamp6_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 "pre 6DJ8/ push-pull 6V6"; import("stdfaust.lib"); import("guitarix.lib"); peak1 = fi.allpassn(4,(-0.2, 0.3, 0.4, 0.5)); gx_drive(drive) = _ <: _ + nonlin(4,4,0.125) * drive * 10 ; amp = hgroup("stage1", stage1) : component("gxdistortion.dsp").dist2(drive,wet_dry) : hgroup("stage2", stage2) with { drive = ampctrl.drive; wet_dry = ampctrl.wet_dry; preamp = ampctrl.preamp; atten = 0.6; stage1 = *(preamp): (tubestage130_20(TB_6DJ8_68k,86.0,2700.0,1.863946) : + ~ (atten*tubestage130_20(TB_6DJ8_250k,132.0,1500.0,1.271609))): 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))) : tubestage130_20(TB_6DJ8_250k,194.0,820.0,0.797043) ; stage2 = fi.lowpass(1,6531.0) : *(gain1) <: ((min(0.7,tubestage(TB_6V6_250k,6531.0,410.0,0.659761))),(max(-0.75,tubestage(TB_6V6_68k,6531.0,410.0,0.664541)))) :> peak1 with { gain1 = ampctrl.gain1; }; }; process = amp,amp;
7b4244da451cebe7f1d9c5ce2b920b589d29de3180ea0ab6dce18db7c13843e0
brummer10/guitarix
duck_delay.dsp
declare id "duckDelay"; declare name "Duck Delay"; declare category "Echo / Delay"; //------------------------------------ //Inspired by: //http://www.gvst.co.uk/gduckdly.htm //Axe-FX II Owner's manual:5.6 //------------------------------------ //------------------------------------ //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 controls envelope follower influence). // //Parameters description: //time - de.delay time in milliseconds //feedback - de.delay feedback //attack, release - envelope follower time in seconds controls //amount dB - envelope follower influence //------------------------------------ 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_attack_time = hslider("attack", 0.1, 0.05, 0.5, 0.05); p_release_time = hslider("relese", 0.1, 0.05, 2, 0.05); p_amount = hslider("amount", 0.5, 0,56, 0.05):ba.db2linear; //Consts c_channels_sw_time = 0.1; c_fdelay_max_len = 393216; get_delay_length(x) = x*ma.SR:_*0.001; process = _<: _,(_<:(_+_:de.fdelay(c_fdelay_max_len,get_delay_length(p_time)))~_*p_feedback, (an.amp_follower_ud(p_attack_time,p_release_time):_*p_amount:_>1:(1 - _): si.smooth(ba.tau2pole(c_channels_sw_time)))):_,_*_ :>_;
https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/duck_delay.dsp
faust
------------------------------------ Inspired by: http://www.gvst.co.uk/gduckdly.htm Axe-FX II Owner's manual:5.6 ------------------------------------ ------------------------------------ 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 controls envelope follower influence). Parameters description: time - de.delay time in milliseconds feedback - de.delay feedback attack, release - envelope follower time in seconds controls amount dB - envelope follower influence ------------------------------------ Constrols Consts
declare id "duckDelay"; declare name "Duck Delay"; 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_attack_time = hslider("attack", 0.1, 0.05, 0.5, 0.05); p_release_time = hslider("relese", 0.1, 0.05, 2, 0.05); p_amount = hslider("amount", 0.5, 0,56, 0.05):ba.db2linear; c_channels_sw_time = 0.1; c_fdelay_max_len = 393216; get_delay_length(x) = x*ma.SR:_*0.001; process = _<: _,(_<:(_+_:de.fdelay(c_fdelay_max_len,get_delay_length(p_time)))~_*p_feedback, (an.amp_follower_ud(p_attack_time,p_release_time):_*p_amount:_>1:(1 - _): si.smooth(ba.tau2pole(c_channels_sw_time)))):_,_*_ :>_;
00b0f509ef10991592f0c8cc6d31806e25e6450ae9ae999a1d0e513128d57db2
brummer10/guitarix
gxamp16.dsp
declare id "pre 12AT7/ push pull 6V6"; // in amp tube ba.selector declare name "pre 12AT7/ push pull 6V6"; import("stdfaust.lib"); import("guitarix.lib"); /**************************************************************** ** Tube amp Emulation stage 1 - 2 - 3 * 12AT7 -> push pull 6V6 */ peak1 = fi.allpassn(4,(-0.2, 0.3, 0.4, 0.5)); gx_drive(drive) = _ <: _ + nonlin(4,4,0.125) * drive * 10 ; process = hgroup("stage1", stage1) : component("gxdistortion.dsp").dist2(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); */ atten = 0.6; stage1 = *(preamp) : (tubestage(TB_12AT7_68k,86.0,2700.0,2.617753) : + ~ (atten*tubestage(TB_12AT7_250k,132.0,1500.0,1.887333))): fi.lowpass(1,6531.0) : (tubestage(TB_12AT7_250k,132.0,1500.0,1.887333) : + ~ (atten*tubestage(TB_12AT7_250k,194.0,820.0,1.256962))) : tubestage(TB_12AT7_250k,194.0,820.0,1.256962); stage2 = fi.lowpass(1,6531.0) : *(gain1) <: ((min(0.7,tubestage(TB_6V6_250k,6531.0,410.0,0.659761))),(max(-0.75,tubestage(TB_6V6_68k,6531.0,410.0,0.664541)))) :> peak1 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/gxamp16.dsp
faust
in amp tube ba.selector *************************************************************** ** Tube amp Emulation stage 1 - 2 - 3 * 12AT7 -> push pull 6V6 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 12AT7/ push pull 6V6"; import("stdfaust.lib"); import("guitarix.lib"); peak1 = fi.allpassn(4,(-0.2, 0.3, 0.4, 0.5)); gx_drive(drive) = _ <: _ + nonlin(4,4,0.125) * drive * 10 ; process = hgroup("stage1", stage1) : component("gxdistortion.dsp").dist2(drive,wet_dry) : hgroup("stage2", stage2) with { drive = ampctrl.drive; wet_dry = ampctrl.wet_dry; preamp = ampctrl.preamp; atten = 0.6; stage1 = *(preamp) : (tubestage(TB_12AT7_68k,86.0,2700.0,2.617753) : + ~ (atten*tubestage(TB_12AT7_250k,132.0,1500.0,1.887333))): fi.lowpass(1,6531.0) : (tubestage(TB_12AT7_250k,132.0,1500.0,1.887333) : + ~ (atten*tubestage(TB_12AT7_250k,194.0,820.0,1.256962))) : tubestage(TB_12AT7_250k,194.0,820.0,1.256962); stage2 = fi.lowpass(1,6531.0) : *(gain1) <: ((min(0.7,tubestage(TB_6V6_250k,6531.0,410.0,0.659761))),(max(-0.75,tubestage(TB_6V6_68k,6531.0,410.0,0.664541)))) :> peak1 with { gain1 = ampctrl.gain1; }; };
901d4f51f5cb6fc965e63938ed1885726d4c0e3c0975aecd9c7333c1872fd04c
brummer10/guitarix
duck_delay.dsp
declare id "duckDelay"; declare name "Duck Delay"; declare category "Echo / Delay"; //------------------------------------ //Inspired by: //http://www.gvst.co.uk/gduckdly.htm //Axe-FX II Owner's manual:5.6 //------------------------------------ //------------------------------------ //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 controls envelope follower influence). // //Parameters description: //time - de.delay time in milliseconds //feedback - de.delay feedback //attack, release - envelope follower time in seconds controls //amount dB - envelope follower influence //------------------------------------ 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_attack_time = hslider("attack[name:Attack]", 0.1, 0.05, 0.5, 0.05); p_release_time = hslider("relese[name:Release]", 0.1, 0.05, 2, 0.05); p_amount = hslider("amount[name:Amount]", 0.5, 0,56, 0.05):ba.db2linear; //Consts c_channels_sw_time = 0.1; c_fdelay_max_len = 393216; get_delay_length(x) = x*ma.SR:_*0.001; process = _<: _,(_<:(_+_:de.fdelay(c_fdelay_max_len,get_delay_length(p_time)))~_*p_feedback, (an.amp_follower_ud(p_attack_time,p_release_time):_*p_amount:_>1:(1 - _): si.smooth(ba.tau2pole(c_channels_sw_time)))):_,_*_ :>_;
https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/duck_delay.dsp
faust
------------------------------------ Inspired by: http://www.gvst.co.uk/gduckdly.htm Axe-FX II Owner's manual:5.6 ------------------------------------ ------------------------------------ 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 controls envelope follower influence). Parameters description: time - de.delay time in milliseconds feedback - de.delay feedback attack, release - envelope follower time in seconds controls amount dB - envelope follower influence ------------------------------------ Constrols Consts
declare id "duckDelay"; declare name "Duck Delay"; 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_attack_time = hslider("attack[name:Attack]", 0.1, 0.05, 0.5, 0.05); p_release_time = hslider("relese[name:Release]", 0.1, 0.05, 2, 0.05); p_amount = hslider("amount[name:Amount]", 0.5, 0,56, 0.05):ba.db2linear; c_channels_sw_time = 0.1; c_fdelay_max_len = 393216; get_delay_length(x) = x*ma.SR:_*0.001; process = _<: _,(_<:(_+_:de.fdelay(c_fdelay_max_len,get_delay_length(p_time)))~_*p_feedback, (an.amp_follower_ud(p_attack_time,p_release_time):_*p_amount:_>1:(1 - _): si.smooth(ba.tau2pole(c_channels_sw_time)))):_,_*_ :>_;
336a642324068e2b6139dcda872d9d760d4bd8ebd5f1496beb40cdb5ca67eae2
brummer10/guitarix
gxamp8.dsp
declare id "pre 12AU7/ push-pull 6V6"; // in amp tube ba.selector declare name "pre 12AU7/ push-pull 6V6"; declare samplerate "96000"; import("stdfaust.lib"); import("guitarix.lib"); /**************************************************************** ** Tube Preamp Emulation stage 1 - 2 * 12AU7 -> pusch pull 6V6 */ peak1 = fi.allpassn(4,(-0.2, 0.3, 0.4, 0.5)); gx_drive(drive) = _ <: _ + nonlin(4,4,0.125) * drive * 10 ; process = hgroup("stage1", stage1) : component("gxdistortion.dsp").dist2(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); */ atten = 0.6; stage1 = *(preamp):*(2.0): (tubestage130_10(TB_12AU7_68k,86.0,2700.0,1.257240) : + ~ (atten*tubestage130_10(TB_12AU7_250k,132.0,1500.0,0.776162))): fi.lowpass(1,6531.0) : (tubestage130_10(TB_12AU7_250k,132.0,1500.0,0.776162) : + ~ (atten*tubestage130_10(TB_12AU7_250k,194.0,820.0,0.445487))) : tubestage130_10(TB_12AU7_250k,194.0,820.0,0.445487); stage2 = fi.lowpass(1,6531.0) : *(gain1) <: ((min(0.7,tubestage(TB_6V6_250k,6531.0,410.0,0.572721))),(max(-0.75,tubestage(TB_6V6_68k,6531.0,410.0,0.581274)))) :> peak1 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/gxamp8.dsp
faust
in amp tube ba.selector *************************************************************** ** Tube Preamp Emulation stage 1 - 2 * 12AU7 -> pusch pull 6V6 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/ push-pull 6V6"; declare samplerate "96000"; import("stdfaust.lib"); import("guitarix.lib"); peak1 = fi.allpassn(4,(-0.2, 0.3, 0.4, 0.5)); gx_drive(drive) = _ <: _ + nonlin(4,4,0.125) * drive * 10 ; process = hgroup("stage1", stage1) : component("gxdistortion.dsp").dist2(drive,wet_dry) : hgroup("stage2", stage2) with { drive = ampctrl.drive; wet_dry = ampctrl.wet_dry; preamp = ampctrl.preamp; atten = 0.6; stage1 = *(preamp):*(2.0): (tubestage130_10(TB_12AU7_68k,86.0,2700.0,1.257240) : + ~ (atten*tubestage130_10(TB_12AU7_250k,132.0,1500.0,0.776162))): fi.lowpass(1,6531.0) : (tubestage130_10(TB_12AU7_250k,132.0,1500.0,0.776162) : + ~ (atten*tubestage130_10(TB_12AU7_250k,194.0,820.0,0.445487))) : tubestage130_10(TB_12AU7_250k,194.0,820.0,0.445487); stage2 = fi.lowpass(1,6531.0) : *(gain1) <: ((min(0.7,tubestage(TB_6V6_250k,6531.0,410.0,0.572721))),(max(-0.75,tubestage(TB_6V6_68k,6531.0,410.0,0.581274)))) :> peak1 with { gain1 = ampctrl.gain1; }; };
33d0557b2f383755253d1956ff6378aa31ad62a91c17bb94e838fbf6d442a14a
brummer10/guitarix
gxamp8.dsp
declare id "pre 12AU7/ push-pull 6V6"; // in amp tube ba.selector declare name "pre 12AU7/ push-pull 6V6"; import("stdfaust.lib"); import("guitarix.lib"); /**************************************************************** ** Tube Preamp Emulation stage 1 - 2 * 12AU7 -> pusch pull 6V6 */ peak1 = fi.allpassn(4,(-0.2, 0.3, 0.4, 0.5)); gx_drive(drive) = _ <: _ + nonlin(4,4,0.125) * drive * 10 ; process = hgroup("stage1", stage1) : component("gxdistortion.dsp").dist2(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); */ atten = 0.6; stage1 = *(preamp):*(2.0): (tubestage130_10(TB_12AU7_68k,86.0,2700.0,1.257240) : + ~ (atten*tubestage130_10(TB_12AU7_250k,132.0,1500.0,0.776162))): fi.lowpass(1,6531.0) : (tubestage130_10(TB_12AU7_250k,132.0,1500.0,0.776162) : + ~ (atten*tubestage130_10(TB_12AU7_250k,194.0,820.0,0.445487))) : tubestage130_10(TB_12AU7_250k,194.0,820.0,0.445487); stage2 = fi.lowpass(1,6531.0) : *(gain1) <: ((min(0.7,tubestage(TB_6V6_250k,6531.0,410.0,0.659761))),(max(-0.75,tubestage(TB_6V6_68k,6531.0,410.0,0.664541)))) :> peak1 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/gxamp8.dsp
faust
in amp tube ba.selector *************************************************************** ** Tube Preamp Emulation stage 1 - 2 * 12AU7 -> pusch pull 6V6 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/ push-pull 6V6"; import("stdfaust.lib"); import("guitarix.lib"); peak1 = fi.allpassn(4,(-0.2, 0.3, 0.4, 0.5)); gx_drive(drive) = _ <: _ + nonlin(4,4,0.125) * drive * 10 ; process = hgroup("stage1", stage1) : component("gxdistortion.dsp").dist2(drive,wet_dry) : hgroup("stage2", stage2) with { drive = ampctrl.drive; wet_dry = ampctrl.wet_dry; preamp = ampctrl.preamp; atten = 0.6; stage1 = *(preamp):*(2.0): (tubestage130_10(TB_12AU7_68k,86.0,2700.0,1.257240) : + ~ (atten*tubestage130_10(TB_12AU7_250k,132.0,1500.0,0.776162))): fi.lowpass(1,6531.0) : (tubestage130_10(TB_12AU7_250k,132.0,1500.0,0.776162) : + ~ (atten*tubestage130_10(TB_12AU7_250k,194.0,820.0,0.445487))) : tubestage130_10(TB_12AU7_250k,194.0,820.0,0.445487); stage2 = fi.lowpass(1,6531.0) : *(gain1) <: ((min(0.7,tubestage(TB_6V6_250k,6531.0,410.0,0.659761))),(max(-0.75,tubestage(TB_6V6_68k,6531.0,410.0,0.664541)))) :> peak1 with { gain1 = ampctrl.gain1; }; };
a19675de0186d559d1a0ce49d84057aed1b9993ec351b5dcadd70a32bb6e2e69
brummer10/guitarix
gxamp9_stereo.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); } ; 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/gxamp9_stereo.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); } ; 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;
9596c6d48c6bb0c7e0cff7b5f00a629520559979587938a2d89036e29fb952a4
brummer10/guitarix
tremolo.dsp
declare name "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"); /* 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("SINE[enum:os.triangle|sine]"); lfo = select2(SINE, trianglewave(freq), sine(freq)); }; wet = vslider("wet_dry[name:wet/dry][tooltip:percentage of processed signal in output signal]", 100, 0, 100, 1) : /(100); dry = 1 - wet; process = _<:*(dry),(*(wet): *(tremolo(vslider("freq",5,0.1,50,0.1),vslider("depth",0.5,0,1,0.01)))):>_;
https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/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 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 "Tremolo"; declare category "Modulation"; 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:os.triangle|sine]"); lfo = select2(SINE, trianglewave(freq), sine(freq)); }; wet = vslider("wet_dry[name:wet/dry][tooltip:percentage of processed signal in output signal]", 100, 0, 100, 1) : /(100); dry = 1 - wet; process = _<:*(dry),(*(wet): *(tremolo(vslider("freq",5,0.1,50,0.1),vslider("depth",0.5,0,1,0.01)))):>_;
e2e10dcf6664644427041e1118ba59acc75371a46634ae7f0d647a41fc905f30
brummer10/guitarix
gxamp9.dsp
declare id "12ax7 feedback"; // in amp tube ba.selector declare name "12ax7 feedback"; declare samplerate "96000"; 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/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"; declare samplerate "96000"; 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; };
e53fad50aeaf156910d0cd6d1cc09e1140dc27e099a2caf1e4e5e1d42ac644fa
brummer10/guitarix
gxamp17.dsp
declare id "12AT7 feedback"; // in amp tube ba.selector declare name "12AT7 feedback"; declare samplerate "96000"; import("stdfaust.lib"); import("guitarix.lib"); /**************************************************************** ** Tube Preamp Emulation stage 1 - 2 * 12AT7 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_12AT7_68k,86.0,2700.0,2.617753) : - ~ (atten*tubestage(TB_12AT7_250k,132.0,1500.0,1.887332)) : *(preamp): fi.lowpass(1,6531.0) : tubestage(TB_12AT7_250k,132.0,1500.0,1.887332): + ~ (atten*tubestage(TB_12AT7_250k,194.0,820.0,1.256962)); stage2 = fi.lowpass(1,6531.0) : tubestage(TB_12AT7_250k,194.0,820.0,1.256962) : *(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/faust/gxamp17.dsp
faust
in amp tube ba.selector *************************************************************** ** Tube Preamp Emulation stage 1 - 2 * 12AT7 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 "12AT7 feedback"; declare samplerate "96000"; 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_12AT7_68k,86.0,2700.0,2.617753) : - ~ (atten*tubestage(TB_12AT7_250k,132.0,1500.0,1.887332)) : *(preamp): fi.lowpass(1,6531.0) : tubestage(TB_12AT7_250k,132.0,1500.0,1.887332): + ~ (atten*tubestage(TB_12AT7_250k,194.0,820.0,1.256962)); stage2 = fi.lowpass(1,6531.0) : tubestage(TB_12AT7_250k,194.0,820.0,1.256962) : *(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; };
95dc72bf51e198a44d2efe3df766bf4938ec5da1a52370d999117d71cf917b40
brummer10/guitarix
gxamp13.dsp
declare id "6DJ8 feedback"; // in amp tube ba.selector declare name "6DJ8 feedback"; declare samplerate "96000"; 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/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"; declare samplerate "96000"; 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; };
6edcb5a56ab814c0d9f53ebe6faadedb3da7d3f90979c530393a0a31b24a0c45
brummer10/guitarix
gxamp11.dsp
declare id "12AU7 feedback"; // in amp tube ba.selector declare name "12AU7 feedback"; declare samplerate "96000"; 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/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"; declare samplerate "96000"; 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; } ;
2601a50b9ba753a4a62c2a955ab4d8d61705fae146e6042f8873919cf9800fe5
brummer10/guitarix
gxamp11_stereo.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); } ; 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/gxamp11_stereo.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); } ; 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;
9d6a714afa5696df7334df19477ceec4dc6b5aef5acd525b338d8572e0a019be
brummer10/guitarix
gxamp17_stereo.dsp
declare id "12AT7 feedback"; // in amp tube ba.selector declare name "12AT7 feedback"; import("stdfaust.lib"); import("guitarix.lib"); /**************************************************************** ** Tube Preamp Emulation stage 1 - 2 * 12AT7 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_12AT7_68k,86.0,2700.0,2.617753) : - ~ (atten*tubestage(TB_12AT7_250k,132.0,1500.0,1.887332)) : *(preamp): fi.lowpass(1,6531.0) : tubestage(TB_12AT7_250k,132.0,1500.0,1.887332): + ~ (atten*tubestage(TB_12AT7_250k,194.0,820.0,1.256962)); stage2 = fi.lowpass(1,6531.0) : tubestage(TB_12AT7_250k,194.0,820.0,1.256962) : *(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/gxamp17_stereo.dsp
faust
in amp tube ba.selector *************************************************************** ** Tube Preamp Emulation stage 1 - 2 * 12AT7 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 "12AT7 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_12AT7_68k,86.0,2700.0,2.617753) : - ~ (atten*tubestage(TB_12AT7_250k,132.0,1500.0,1.887332)) : *(preamp): fi.lowpass(1,6531.0) : tubestage(TB_12AT7_250k,132.0,1500.0,1.887332): + ~ (atten*tubestage(TB_12AT7_250k,194.0,820.0,1.256962)); stage2 = fi.lowpass(1,6531.0) : tubestage(TB_12AT7_250k,194.0,820.0,1.256962) : *(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;
bb6842b5f8700e9dd198697b673ce457de58faa9b80468a3ccfba15df242c86a
brummer10/guitarix
gxamp17.dsp
declare id "12AT7 feedback"; // in amp tube ba.selector declare name "12AT7 feedback"; import("stdfaust.lib"); import("guitarix.lib"); /**************************************************************** ** Tube Preamp Emulation stage 1 - 2 * 12AT7 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_12AT7_68k,86.0,2700.0,2.617753) : - ~ (atten*tubestage(TB_12AT7_250k,132.0,1500.0,1.887332)) : *(preamp): fi.lowpass(1,6531.0) : tubestage(TB_12AT7_250k,132.0,1500.0,1.887332): + ~ (atten*tubestage(TB_12AT7_250k,194.0,820.0,1.256962)); stage2 = fi.lowpass(1,6531.0) : tubestage(TB_12AT7_250k,194.0,820.0,1.256962) : *(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/gxamp17.dsp
faust
in amp tube ba.selector *************************************************************** ** Tube Preamp Emulation stage 1 - 2 * 12AT7 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 "12AT7 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_12AT7_68k,86.0,2700.0,2.617753) : - ~ (atten*tubestage(TB_12AT7_250k,132.0,1500.0,1.887332)) : *(preamp): fi.lowpass(1,6531.0) : tubestage(TB_12AT7_250k,132.0,1500.0,1.887332): + ~ (atten*tubestage(TB_12AT7_250k,194.0,820.0,1.256962)); stage2 = fi.lowpass(1,6531.0) : tubestage(TB_12AT7_250k,194.0,820.0,1.256962) : *(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; };