_id
stringlengths 64
64
| repository
stringlengths 7
61
| name
stringlengths 5
45
| content
stringlengths 0
943k
| download_url
stringlengths 94
213
| language
stringclasses 1
value | comments
stringlengths 0
20.9k
| code
stringlengths 0
943k
|
---|---|---|---|---|---|---|---|
6dff309892a4423a81d086657d1cad3c5fb4308cf619509b97d11288b490f5e9 | ntonnaett/guitarix | stereoverb.dsp | declare name "Stereo Verb";
declare category "Reverb";
declare version "0.01";
declare author "brummer";
declare license "BSD";
declare copyright "(c)brummer 2008";
import("math.lib");
import("music.lib");
import("effect.lib");
import("filter.lib");
import("guitarix.lib");
/*-----------------------------------------------
freeverb by "Grame"
-----------------------------------------------*/
// Filter Parameters
combtuningL1 = 1116;
combtuningL2 = 1188;
combtuningL3 = 1277;
combtuningL4 = 1356;
combtuningL5 = 1422;
combtuningL6 = 1491;
combtuningL7 = 1557;
combtuningL8 = 1617;
allpasstuningL1 = 556;
allpasstuningL2 = 441;
allpasstuningL3 = 341;
allpasstuningL4 = 225;
roomsizeSlider = vslider("RoomSize[name:Room Size]", 0.5, 0, 1, 0.025)*0.28 + 0.7;
dampslider = vslider("damp[name:Damp]",0.5, 0, 1, 0.025);
combfeed = roomsizeSlider;
//wetslider = 0.5 + vslider("wet_dry[name:wet/dry]", 0, -0.5, 0.5, 0.1);
wet_dry = vslider("wet_dry[name:Dry/Wet]", 50, 0, 100, 1) : /(100);
dry = 1 - wet_dry;
// Reverb components
monoReverb(fb1, fb2, damp, spread)
= _ <: comb(combtuningL1+spread, fb1, damp),
comb(combtuningL2+spread, fb1, damp),
comb(combtuningL3+spread, fb1, damp),
comb(combtuningL4+spread, fb1, damp),
comb(combtuningL5+spread, fb1, damp),
comb(combtuningL6+spread, fb1, damp),
comb(combtuningL7+spread, fb1, damp),
comb(combtuningL8+spread, fb1, damp)
+>
allpass (allpasstuningL1+spread, fb2)
: allpass (allpasstuningL2+spread, fb2)
: allpass (allpasstuningL3+spread, fb2)
: allpass (allpasstuningL4+spread, fb2)
;
//----------------------------------------------------------------
lfol = component("oscillator.lib").oscrs; // sine for left channel
freq = hslider("LFO freq [name:LFO Freq][unit:Hz]", 0.2, 0, 5, 0.01);
pingpong = checkbox("invert[enum:linear|pingpong]");
fxctrl(g,w,Fx) = _ <: (*(g) <: _ + Fx ), *(1-w) +> _;
freeverb_r = (_<:*(dry),(*(wet_dry):fxctrl(0.015,wet_dry, monoReverb(combfeed, 0.5, dampslider, 23))* (1-(lfol(freq)*pingpong))):>_);
freeverb_l = (_<:*(dry),(*(wet_dry):fxctrl(0.015,wet_dry, monoReverb(combfeed, 0.5, dampslider, 23))* (1-(-1*lfol(freq)*pingpong))):>_);
process = freeverb_r, freeverb_l;
| https://raw.githubusercontent.com/ntonnaett/guitarix/e5ce36c3a693eeada3cb70425ec09f8d6f91e78c/trunk/src/faust/stereoverb.dsp | faust | -----------------------------------------------
freeverb by "Grame"
-----------------------------------------------
Filter Parameters
wetslider = 0.5 + vslider("wet_dry[name:wet/dry]", 0, -0.5, 0.5, 0.1);
Reverb components
----------------------------------------------------------------
sine for left channel | declare name "Stereo Verb";
declare category "Reverb";
declare version "0.01";
declare author "brummer";
declare license "BSD";
declare copyright "(c)brummer 2008";
import("math.lib");
import("music.lib");
import("effect.lib");
import("filter.lib");
import("guitarix.lib");
combtuningL1 = 1116;
combtuningL2 = 1188;
combtuningL3 = 1277;
combtuningL4 = 1356;
combtuningL5 = 1422;
combtuningL6 = 1491;
combtuningL7 = 1557;
combtuningL8 = 1617;
allpasstuningL1 = 556;
allpasstuningL2 = 441;
allpasstuningL3 = 341;
allpasstuningL4 = 225;
roomsizeSlider = vslider("RoomSize[name:Room Size]", 0.5, 0, 1, 0.025)*0.28 + 0.7;
dampslider = vslider("damp[name:Damp]",0.5, 0, 1, 0.025);
combfeed = roomsizeSlider;
wet_dry = vslider("wet_dry[name:Dry/Wet]", 50, 0, 100, 1) : /(100);
dry = 1 - wet_dry;
monoReverb(fb1, fb2, damp, spread)
= _ <: comb(combtuningL1+spread, fb1, damp),
comb(combtuningL2+spread, fb1, damp),
comb(combtuningL3+spread, fb1, damp),
comb(combtuningL4+spread, fb1, damp),
comb(combtuningL5+spread, fb1, damp),
comb(combtuningL6+spread, fb1, damp),
comb(combtuningL7+spread, fb1, damp),
comb(combtuningL8+spread, fb1, damp)
+>
allpass (allpasstuningL1+spread, fb2)
: allpass (allpasstuningL2+spread, fb2)
: allpass (allpasstuningL3+spread, fb2)
: allpass (allpasstuningL4+spread, fb2)
;
freq = hslider("LFO freq [name:LFO Freq][unit:Hz]", 0.2, 0, 5, 0.01);
pingpong = checkbox("invert[enum:linear|pingpong]");
fxctrl(g,w,Fx) = _ <: (*(g) <: _ + Fx ), *(1-w) +> _;
freeverb_r = (_<:*(dry),(*(wet_dry):fxctrl(0.015,wet_dry, monoReverb(combfeed, 0.5, dampslider, 23))* (1-(lfol(freq)*pingpong))):>_);
freeverb_l = (_<:*(dry),(*(wet_dry):fxctrl(0.015,wet_dry, monoReverb(combfeed, 0.5, dampslider, 23))* (1-(-1*lfol(freq)*pingpong))):>_);
process = freeverb_r, freeverb_l;
|
44572634075f1e8d21f8cb81c9fd3b18b5331373cacf6a785bb4832abe1cb9da | ntonnaett/guitarix | impulseresponse.dsp | declare id "IR";
declare name "ImpulseResponse";
declare category "Tone Control";
declare version "0.01";
declare author "brummer";
declare license "BSD";
declare copyright "(c)brummer 2008";
import("math.lib");
import("music.lib");
import("effect.lib");
import("filter.lib");
import("guitarix.lib");
g3 = hslider("peak[tooltip:peak gain]", 1, 0, 10, 0.2);
fr = hslider("freq[tooltip:frequency (Hz)]", 440, 20, 12000, 10);
auto_ir = checkbox("auto_freq[name:auto freq][enum:manual|auto]") : clip(0, 1);
check_auto_ir(v) = select2(auto_ir, v, sym_clip(0.6));
feedbackcontroll(x) = firpart : + ~ feedback
with {
bw = hslider("bandwidth[tooltip:bandwidth (Hz)]", 100, 20, 20000, 10);
R = exp(0-PI*bw/SR); // pole radius [0 required]
A = 2*PI*fr/SR; // pole angle (radians pole = 2)
RR = R*R;
firpart = (x - x'') * g3 * ((1-RR)/2); // radius = 2
// time-domain coefficients ASSUMING ONE PIPELINE DELAY:
feedback(v) = 0 + R*check_auto_ir(2*cos(A),x)*v - RR*v';
};
process(x) = x + feedbackcontroll(x);
| https://raw.githubusercontent.com/ntonnaett/guitarix/e5ce36c3a693eeada3cb70425ec09f8d6f91e78c/trunk/src/LV2/faust/impulseresponse.dsp | faust | pole radius [0 required]
pole angle (radians pole = 2)
radius = 2
time-domain coefficients ASSUMING ONE PIPELINE DELAY: | declare id "IR";
declare name "ImpulseResponse";
declare category "Tone Control";
declare version "0.01";
declare author "brummer";
declare license "BSD";
declare copyright "(c)brummer 2008";
import("math.lib");
import("music.lib");
import("effect.lib");
import("filter.lib");
import("guitarix.lib");
g3 = hslider("peak[tooltip:peak gain]", 1, 0, 10, 0.2);
fr = hslider("freq[tooltip:frequency (Hz)]", 440, 20, 12000, 10);
auto_ir = checkbox("auto_freq[name:auto freq][enum:manual|auto]") : clip(0, 1);
check_auto_ir(v) = select2(auto_ir, v, sym_clip(0.6));
feedbackcontroll(x) = firpart : + ~ feedback
with {
bw = hslider("bandwidth[tooltip:bandwidth (Hz)]", 100, 20, 20000, 10);
RR = R*R;
feedback(v) = 0 + R*check_auto_ir(2*cos(A),x)*v - RR*v';
};
process(x) = x + feedbackcontroll(x);
|
83e850caa35353404155d38201739b7c7269a692d9e68252b2444191e0ed1ab6 | ntonnaett/guitarix | gx_distortion.dsp | declare name "Multi Band Distortion";
declare shortname "Distortion";
declare category "Distortion";
declare groups "resonator[Distortion resonator]";
declare version "0.01";
declare author "brummer";
declare license "BSD";
declare copyright "(c)brummer 2008";
import("math.lib");
import("music.lib");
import("effect.lib");
import("filter.lib");
import("guitarix.lib");
import("maxmsp.lib");
F = nentry("split_low_freq", 250, 20, 600, 10);
F1 = nentry("split_middle_freq", 650, 600, 1250, 10);
F2 = nentry("split_high_freq", 1250, 1250, 12000, 10);
/**********************************************************************
*** this part is included here for backward compatibility from 0.9.27 to
*** 0.9.24
***********************************************************************/
//------------------------------ count and take --------------------------------------
countN ((xs, xxs)) = 1 + countN(xxs);
countN (xx) = 1;
takeN (1, (xs, xxs)) = xs;
takeN (1, xs) = xs;
takeN (nn, (xs, xxs)) = takeN (nn-1, xxs);
//------------------------------ low/high-passfilters --------------------------------------
tf1N(b0,b1,a1) = _ <: *(b0), (mem : *(b1)) :> + ~ *(0-a1);
tf2N(b0,b1,b2,a1,a2) = sub ~ conv2(a1,a2) : conv3(b0,b1,b2)
with {
conv3(k0,k1,k2,x) = k0*x + k1*x' + k2*x'';
conv2(k0,k1,x) = k0*x + k1*x';
sub(x,y) = y-x;
};
tf1sN(b1,b0,a0,w1) = tf1N(b0d,b1d,a1d)
with {
c = 1/tan((w1)*0.5/SR); // bilinear-transform scale-factor
d = a0 + c;
b1d = (b0 - b1*c) / d;
b0d = (b0 + b1*c) / d;
a1d = (a0 - c) / d;
};
tf2sN(b2,b1,b0,a1,a0,w1) = tf2N(b0d,b1d,b2d,a1d,a2d)
with {
c = 1/tan((w1)*0.5/SR); // bilinear-transform scale-factor
csq = c*c;
d = a0 + a1 * c + csq;
b0d = (b0 + b1 * c + b2 * csq)/d;
b1d = 2 * (b0 - b2 * csq)/d;
b2d = (b0 - b1 * c + b2 * csq)/d;
a1d = 2 * (a0 - csq)/d;
a2d = (a0 - a1*c + csq)/d;
};
lowpassN(N,fc) = lowpass0_highpass1N(0,N,fc);
highpassN(N,fc) = lowpass0_highpass1N(1,N,fc);
lowpass0_highpass1N(s,N,fc) = lphpr(s,N,N,fc)
with {
lphpr(s,0,N,fc) = _;
lphpr(s,1,N,fc) = tf1sN(s,1-s,1,2*PI*fc);
lphpr(s,O,N,fc) = lphpr(s,(O-2),N,fc) : tf2sN(s,0,1-s,a1s,1,w1) with {
parity = N % 2;
S = (O-parity)/2; // current section number
a1s = -2*cos(-PI + (1-parity)*PI/(2*N) + (S-1+parity)*PI/N);
w1 = 2*PI*fc;
};
};
//------------------------------ analyzer --------------------------------------
analyzern(O,lfreqs) = _ <: bsplit(nb) with
{
nb = countN(lfreqs);
fc(n) = takeN(n, lfreqs);
lp(n) = lowpassN(O,fc(n));
hp(n) = highpassN(O,fc(n));
bsplit(0) = _;
bsplit(i) = hp(i), (lp(i) <: bsplit(i-1));
};
analyzerN(lfreqs) = analyzern(3,lfreqs);
filterbankn(O,lfreqs) = analyzern(O,lfreqs) : delayeq with
{
nb = count(lfreqs);
fc(n) = take(n, lfreqs);
ap(n) = highpass_plus_lowpass(O,fc(n));
delayeq = par(i,nb-1,apchain(nb-1-i)),_,_;
apchain(0) = _;
apchain(i) = ap(i) : apchain(i-1);
};
filterbankN(lfreqs) = filterbankn(3,lfreqs);
/**********************************************************************
*** end for backward compatibility from 0.9.27 to
*** 0.9.24 , it could removed when switch completly to > 0.9.27
***********************************************************************/
//----------distortion---------
//-distortion
drivelevel = vslider("level", 0.0, 0, 0.5, 0.01);
drivegain1 = vslider("gain", 2, -10, 10, 0.1)-10 : db2linear : smoothi(0.999);
low_gain = vslider("low_gain[name:low]", 10, -10, 20, 0.1)-10 : db2linear : smoothi(0.999);
high_gain = vslider("high_gain[name:high]", 10, -10, 20, 0.1)-10 : db2linear : smoothi(0.999);
middle_gain_l = vslider("middle_l_gain[name:middle l.]", 10, -10, 20, 0.1)-10 : db2linear : smoothi(0.999);
middle_gain_h = vslider("middle_h_gain[name:middle h.]", 10, -10, 20, 0.1)-10 : db2linear : smoothi(0.999);
drive = vslider("drive", 0.64, 0, 1, 0.01);
drive1 = vslider("low_drive[name:low]", 1, 0, 1, 0.01)*drive;
drive2 = vslider("high_drive[name:high]", 1, 0, 1, 0.01)*drive;
drive3 = vslider("middle_l_drive[name:middle l.]", 1, 0, 1, 0.01)*drive;
drive4 = vslider("middle_h_drive[name:middle h.]", 1, 0, 1, 0.01)*drive;
distortion1 = _:cubicnl(drive1,drivelevel): *(low_gain);
distortion2 = _:cubicnl(drive2,drivelevel) : *(high_gain);
distortion3 = _:cubicnl(drive3,drivelevel) : *(middle_gain_l);
distortion4 = _:cubicnl(drive4,drivelevel) : *(middle_gain_h);
distortion = lowpassN(2,15000.0): highpass(1,31.0) : filterbankN((F,(F1,F2))) : distortion2,distortion4 ,distortion3,distortion1 :>lowpass(1,6531.0);
//-resonator
resonator = (+ <: (delay(4096, d-1) + delay(4096, d)) / 2) ~ *(1.0-a)
with {
d = vslider("vibrato", 1, 0, 1, 0.01);
a = vslider("trigger", 0.12, 0, 1, 0.01);
};
switch2 = checkbox("resonator.on_off[name:resonat]");
//reso = hgroup("resonator", bypass(switch2, resonator));
moving_filter(x) = (x+x'+x'')/3;
wet = vslider("wet_dry[name:wet/dry][tooltip:percentage of processed signal in output signal]", 100, 0, 100, 1) : /(100);
dry = 1 - wet;
process_dist = bypass(switch2, resonator) : +(anti_denormal_ac) : distortion : *(drivegain1) ;
process = _<:*(dry),(*(wet): process_dist):>_;
| https://raw.githubusercontent.com/ntonnaett/guitarix/e5ce36c3a693eeada3cb70425ec09f8d6f91e78c/trunk/src/LV2/faust/gx_distortion.dsp | faust | *********************************************************************
*** this part is included here for backward compatibility from 0.9.27 to
*** 0.9.24
**********************************************************************
------------------------------ count and take --------------------------------------
------------------------------ low/high-passfilters --------------------------------------
bilinear-transform scale-factor
bilinear-transform scale-factor
current section number
------------------------------ analyzer --------------------------------------
*********************************************************************
*** end for backward compatibility from 0.9.27 to
*** 0.9.24 , it could removed when switch completly to > 0.9.27
**********************************************************************
----------distortion---------
-distortion
-resonator
reso = hgroup("resonator", bypass(switch2, resonator)); | declare name "Multi Band Distortion";
declare shortname "Distortion";
declare category "Distortion";
declare groups "resonator[Distortion resonator]";
declare version "0.01";
declare author "brummer";
declare license "BSD";
declare copyright "(c)brummer 2008";
import("math.lib");
import("music.lib");
import("effect.lib");
import("filter.lib");
import("guitarix.lib");
import("maxmsp.lib");
F = nentry("split_low_freq", 250, 20, 600, 10);
F1 = nentry("split_middle_freq", 650, 600, 1250, 10);
F2 = nentry("split_high_freq", 1250, 1250, 12000, 10);
countN ((xs, xxs)) = 1 + countN(xxs);
countN (xx) = 1;
takeN (1, (xs, xxs)) = xs;
takeN (1, xs) = xs;
takeN (nn, (xs, xxs)) = takeN (nn-1, xxs);
tf1N(b0,b1,a1) = _ <: *(b0), (mem : *(b1)) :> + ~ *(0-a1);
tf2N(b0,b1,b2,a1,a2) = sub ~ conv2(a1,a2) : conv3(b0,b1,b2)
with {
conv3(k0,k1,k2,x) = k0*x + k1*x' + k2*x'';
conv2(k0,k1,x) = k0*x + k1*x';
sub(x,y) = y-x;
};
tf1sN(b1,b0,a0,w1) = tf1N(b0d,b1d,a1d)
with {
d = a0 + c;
b1d = (b0 - b1*c) / d;
b0d = (b0 + b1*c) / d;
a1d = (a0 - c) / d;
};
tf2sN(b2,b1,b0,a1,a0,w1) = tf2N(b0d,b1d,b2d,a1d,a2d)
with {
csq = c*c;
d = a0 + a1 * c + csq;
b0d = (b0 + b1 * c + b2 * csq)/d;
b1d = 2 * (b0 - b2 * csq)/d;
b2d = (b0 - b1 * c + b2 * csq)/d;
a1d = 2 * (a0 - csq)/d;
a2d = (a0 - a1*c + csq)/d;
};
lowpassN(N,fc) = lowpass0_highpass1N(0,N,fc);
highpassN(N,fc) = lowpass0_highpass1N(1,N,fc);
lowpass0_highpass1N(s,N,fc) = lphpr(s,N,N,fc)
with {
lphpr(s,0,N,fc) = _;
lphpr(s,1,N,fc) = tf1sN(s,1-s,1,2*PI*fc);
lphpr(s,O,N,fc) = lphpr(s,(O-2),N,fc) : tf2sN(s,0,1-s,a1s,1,w1) with {
parity = N % 2;
a1s = -2*cos(-PI + (1-parity)*PI/(2*N) + (S-1+parity)*PI/N);
w1 = 2*PI*fc;
};
};
analyzern(O,lfreqs) = _ <: bsplit(nb) with
{
nb = countN(lfreqs);
fc(n) = takeN(n, lfreqs);
lp(n) = lowpassN(O,fc(n));
hp(n) = highpassN(O,fc(n));
bsplit(0) = _;
bsplit(i) = hp(i), (lp(i) <: bsplit(i-1));
};
analyzerN(lfreqs) = analyzern(3,lfreqs);
filterbankn(O,lfreqs) = analyzern(O,lfreqs) : delayeq with
{
nb = count(lfreqs);
fc(n) = take(n, lfreqs);
ap(n) = highpass_plus_lowpass(O,fc(n));
delayeq = par(i,nb-1,apchain(nb-1-i)),_,_;
apchain(0) = _;
apchain(i) = ap(i) : apchain(i-1);
};
filterbankN(lfreqs) = filterbankn(3,lfreqs);
drivelevel = vslider("level", 0.0, 0, 0.5, 0.01);
drivegain1 = vslider("gain", 2, -10, 10, 0.1)-10 : db2linear : smoothi(0.999);
low_gain = vslider("low_gain[name:low]", 10, -10, 20, 0.1)-10 : db2linear : smoothi(0.999);
high_gain = vslider("high_gain[name:high]", 10, -10, 20, 0.1)-10 : db2linear : smoothi(0.999);
middle_gain_l = vslider("middle_l_gain[name:middle l.]", 10, -10, 20, 0.1)-10 : db2linear : smoothi(0.999);
middle_gain_h = vslider("middle_h_gain[name:middle h.]", 10, -10, 20, 0.1)-10 : db2linear : smoothi(0.999);
drive = vslider("drive", 0.64, 0, 1, 0.01);
drive1 = vslider("low_drive[name:low]", 1, 0, 1, 0.01)*drive;
drive2 = vslider("high_drive[name:high]", 1, 0, 1, 0.01)*drive;
drive3 = vslider("middle_l_drive[name:middle l.]", 1, 0, 1, 0.01)*drive;
drive4 = vslider("middle_h_drive[name:middle h.]", 1, 0, 1, 0.01)*drive;
distortion1 = _:cubicnl(drive1,drivelevel): *(low_gain);
distortion2 = _:cubicnl(drive2,drivelevel) : *(high_gain);
distortion3 = _:cubicnl(drive3,drivelevel) : *(middle_gain_l);
distortion4 = _:cubicnl(drive4,drivelevel) : *(middle_gain_h);
distortion = lowpassN(2,15000.0): highpass(1,31.0) : filterbankN((F,(F1,F2))) : distortion2,distortion4 ,distortion3,distortion1 :>lowpass(1,6531.0);
resonator = (+ <: (delay(4096, d-1) + delay(4096, d)) / 2) ~ *(1.0-a)
with {
d = vslider("vibrato", 1, 0, 1, 0.01);
a = vslider("trigger", 0.12, 0, 1, 0.01);
};
switch2 = checkbox("resonator.on_off[name:resonat]");
moving_filter(x) = (x+x'+x'')/3;
wet = vslider("wet_dry[name:wet/dry][tooltip:percentage of processed signal in output signal]", 100, 0, 100, 1) : /(100);
dry = 1 - wet;
process_dist = bypass(switch2, resonator) : +(anti_denormal_ac) : distortion : *(drivegain1) ;
process = _<:*(dry),(*(wet): process_dist):>_;
|
3dea5fbb69b1a1e75c6a9c3c465e925055394ffc7ac67c55a2dd6091d30b7144 | ntonnaett/guitarix | distortion1.dsp | declare id "distortion1";
declare version "0.01";
declare author "brummer";
declare license "BSD";
declare copyright "(c)brummer 2008";
import("math.lib");
import("music.lib");
import("effect.lib");
import("filter.lib");
import("guitarix.lib");
//----------distortion---------
//-speaker emulation
sbp1 = vslider("low_freq[name:low freq][tooltip:low-freq cutoff Hz]",130,20,1000,10);
sbp2 = vslider("high_freq[name:high freq][tooltip:high-freq cutoff Hz]",5000,1000,12000,10);
switch1 = checkbox("on_off[name:low highcutoff]");
sbp = hgroup("low_highcutoff", bypass(switch1, +(anti_denormal_ac) : speakerbp(sbp1,sbp2)));
//-low and highpass
lowpassfreq = nentry("low_freq[name:low freq]", 5000, 20, 12000, 10);
highpassfreq = nentry("high_freq[name:high freq]", 130, 20, 7040, 10);
switch = checkbox("on_off[name:low highpass]");
passo = +(anti_denormal_ac) : lowpass1(lowpassfreq) : highpass1(highpassfreq );
pass = hgroup("low_highpass", bypass(switch, passo));
//-distortion
drivelevel = vslider("level", 0.01, 0, 0.5, 0.01);
drivegain1 = vslider("gain", 2, -10, 10, 0.1)-10 : db2linear : smoothi(0.999);
drive = vslider("drive", 0.64, 0, 1, 0.01);
distortion = cubicnl(drive,drivelevel);
//-resonator
switch2 = checkbox("resonator.on_off[name:resonat]");
resonator = (+ <: (delay(4096, d-1) + delay(4096, d)) / 2) ~ *(1.0-a)
with {
d = vslider("vibrato", 1, 0, 1, 0.01);
a = vslider("trigger", 0.12, 0, 1, 0.01);
};
process = bypass(switch2, resonator) : +(anti_denormal_ac) : pass : add_dc : sbp : component("HighShelf.dsp").hs : distortion : *(drivegain1) : component("HighShelf.dsp").hs : sbp;
| https://raw.githubusercontent.com/ntonnaett/guitarix/e5ce36c3a693eeada3cb70425ec09f8d6f91e78c/trunk/src/LV2/faust/distortion1.dsp | faust | ----------distortion---------
-speaker emulation
-low and highpass
-distortion
-resonator | declare id "distortion1";
declare version "0.01";
declare author "brummer";
declare license "BSD";
declare copyright "(c)brummer 2008";
import("math.lib");
import("music.lib");
import("effect.lib");
import("filter.lib");
import("guitarix.lib");
sbp1 = vslider("low_freq[name:low freq][tooltip:low-freq cutoff Hz]",130,20,1000,10);
sbp2 = vslider("high_freq[name:high freq][tooltip:high-freq cutoff Hz]",5000,1000,12000,10);
switch1 = checkbox("on_off[name:low highcutoff]");
sbp = hgroup("low_highcutoff", bypass(switch1, +(anti_denormal_ac) : speakerbp(sbp1,sbp2)));
lowpassfreq = nentry("low_freq[name:low freq]", 5000, 20, 12000, 10);
highpassfreq = nentry("high_freq[name:high freq]", 130, 20, 7040, 10);
switch = checkbox("on_off[name:low highpass]");
passo = +(anti_denormal_ac) : lowpass1(lowpassfreq) : highpass1(highpassfreq );
pass = hgroup("low_highpass", bypass(switch, passo));
drivelevel = vslider("level", 0.01, 0, 0.5, 0.01);
drivegain1 = vslider("gain", 2, -10, 10, 0.1)-10 : db2linear : smoothi(0.999);
drive = vslider("drive", 0.64, 0, 1, 0.01);
distortion = cubicnl(drive,drivelevel);
switch2 = checkbox("resonator.on_off[name:resonat]");
resonator = (+ <: (delay(4096, d-1) + delay(4096, d)) / 2) ~ *(1.0-a)
with {
d = vslider("vibrato", 1, 0, 1, 0.01);
a = vslider("trigger", 0.12, 0, 1, 0.01);
};
process = bypass(switch2, resonator) : +(anti_denormal_ac) : pass : add_dc : sbp : component("HighShelf.dsp").hs : distortion : *(drivegain1) : component("HighShelf.dsp").hs : sbp;
|
76f74fb93229574f0d18b3ddda56f09dfa8c7ccd551a8d985b40714c45a8cca4 | brummer10/guitarix | distortion2.dsp | declare name "WaveSharper";
declare category "Distortion";
declare id "distortion2";
declare description "A simple Wavesharper distortion";
import("stdfaust.lib");
import("guitarix.lib");
//----------distortion---------
bread = fi.highpass(2,f) : fi.lowpass(1,6532) with {
f = vslider("Hfreq [log][name:Hi Pass][tooltip: Highpass Frequency]", 30, 20, 2000, 1.08);
};
boost = vslider("gain[name:Gain][tooltip: Volume Level]", 0, -30, 10, 0.1) : ba.db2linear : smoothi(0.999);
dist(x) = (1+k)*(x)/(1+k*abs(x)): +~_''* 0.5 with {
k = 2*a/(1-a);
a = sin(((drive+1)/102)*(ma.PI/2));
drive = vslider("drive[name:Drive][tooltip: Distortion Level]", 50, 0, 100, 1): smoothi(0.999);
};
butter = fi.lowpass(2,fc) with {
fc = vslider("freq [log][name:Lo Pass][tooltip: Lowpass Frequency]", 10000, 1000, 20000, 1.08);
};
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) : bread : *(boost) : dist : butter):>_;
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/distortion2.dsp | faust | ----------distortion--------- | declare name "WaveSharper";
declare category "Distortion";
declare id "distortion2";
declare description "A simple Wavesharper distortion";
import("stdfaust.lib");
import("guitarix.lib");
bread = fi.highpass(2,f) : fi.lowpass(1,6532) with {
f = vslider("Hfreq [log][name:Hi Pass][tooltip: Highpass Frequency]", 30, 20, 2000, 1.08);
};
boost = vslider("gain[name:Gain][tooltip: Volume Level]", 0, -30, 10, 0.1) : ba.db2linear : smoothi(0.999);
dist(x) = (1+k)*(x)/(1+k*abs(x)): +~_''* 0.5 with {
k = 2*a/(1-a);
a = sin(((drive+1)/102)*(ma.PI/2));
drive = vslider("drive[name:Drive][tooltip: Distortion Level]", 50, 0, 100, 1): smoothi(0.999);
};
butter = fi.lowpass(2,fc) with {
fc = vslider("freq [log][name:Lo Pass][tooltip: Lowpass Frequency]", 10000, 1000, 20000, 1.08);
};
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) : bread : *(boost) : dist : butter):>_;
|
02c371f431fb16a06487a433b306ae369b91d7415edc69c9070ba00dd9857b6c | brummer10/guitarix | scream.dsp | // generated automatically
// DO NOT MODIFY!
declare id "scream";
declare name "Screaming Bird";
declare category "Fuzz";
declare shortname "Scream Bird";
declare description "Screaming Bird";
declare samplerate "96000";
import("stdfaust.lib");
process = pre : fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) : clip with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
clip(x) = min(0.4514,max(-0.2514,x));
//asymclip = ffunction(float asymclip(float), "clipping.h", "");
//clip = asymclip(_);
Scream = vslider("Scream[name:Scream]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
b0 = -6.82076449438528e-9*Scream*pow(fs,2) - 6.82076449438528e-10*pow(fs,2);
b1 = 1.36415289887706e-8*Scream*pow(fs,2) + 1.36415289887706e-9*pow(fs,2);
b2 = -6.82076449438528e-9*Scream*pow(fs,2) - 6.82076449438528e-10*pow(fs,2);
a0 = fs*(3.64434266110822e-10*fs + 3.23311541086178e-6) + 0.00515391115930048;
a1 = -7.28868532221644e-10*pow(fs,2) + 0.010307822318601;
a2 = fs*(3.64434266110822e-10*fs - 3.23311541086178e-6) + 0.00515391115930048;
};
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/plugins/scream.dsp | faust | generated automatically
DO NOT MODIFY!
asymclip = ffunction(float asymclip(float), "clipping.h", "");
clip = asymclip(_); | declare id "scream";
declare name "Screaming Bird";
declare category "Fuzz";
declare shortname "Scream Bird";
declare description "Screaming Bird";
declare samplerate "96000";
import("stdfaust.lib");
process = pre : fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) : clip with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
clip(x) = min(0.4514,max(-0.2514,x));
Scream = vslider("Scream[name:Scream]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
b0 = -6.82076449438528e-9*Scream*pow(fs,2) - 6.82076449438528e-10*pow(fs,2);
b1 = 1.36415289887706e-8*Scream*pow(fs,2) + 1.36415289887706e-9*pow(fs,2);
b2 = -6.82076449438528e-9*Scream*pow(fs,2) - 6.82076449438528e-10*pow(fs,2);
a0 = fs*(3.64434266110822e-10*fs + 3.23311541086178e-6) + 0.00515391115930048;
a1 = -7.28868532221644e-10*pow(fs,2) + 0.010307822318601;
a2 = fs*(3.64434266110822e-10*fs - 3.23311541086178e-6) + 0.00515391115930048;
};
|
e8433a69a7bf2ed18437f9dbdbb454a8ea570b3b3bc5129c2b8b78ab2de8967f | 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 delay[name:Delay][unit:ms]", 10, 0, 20, 0.01);
odflange = 0.001 * ma.SR * hslider("flange delay offset[name:Offset][unit:ms]", 1, 0, 20, 0.01);
//freq = hslider("LFO freq [unit:Hz]", 0.2, 0, 5, 0.01);
freq = hslider("lfobpm[name:BPM][unit:bpm][tooltip:LFO in Beats per Minute]",24,24,360,1)/60;
depth = hslider("depth[name:Depth]", 1, 0, 1, 0.01);
fb = hslider("feedback gain[name:Feedback]", 0, 0, 1, 0.01);
invert = checkbox("invert[enum:linear|invert][name:Invert]");
level = hslider("level[name: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/faust/flanger.dsp | faust | change to pf.flanger_stereo for faust >= 0.9.27
sine for left channel
cosine for right channel
freq = hslider("LFO freq [unit:Hz]", 0.2, 0, 5, 0.01); | 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 delay[name:Delay][unit:ms]", 10, 0, 20, 0.01);
odflange = 0.001 * ma.SR * hslider("flange delay offset[name:Offset][unit:ms]", 1, 0, 20, 0.01);
freq = hslider("lfobpm[name:BPM][unit:bpm][tooltip:LFO in Beats per Minute]",24,24,360,1)/60;
depth = hslider("depth[name:Depth]", 1, 0, 1, 0.01);
fb = hslider("feedback gain[name:Feedback]", 0, 0, 1, 0.01);
invert = checkbox("invert[enum:linear|invert][name:Invert]");
level = hslider("level[name: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;
|
6740f4e4a52a6d3cc4903671c2caf88a8806b370fbd395f1506b7a82c0ea62f0 | ntonnaett/guitarix | eldist.dsp | // generated automatically
// DO NOT MODIFY!
declare id "eldist";
declare name "Electra Distortion";
declare category "Distortion";
declare shortname "Electra Dst";
declare description "Electra Distortion";
declare samplerate "96000";
import("filter.lib");
process = pre : iir((b0/a0,b1/a0),(a1/a0)) : clip with {
LogPot(a, x) = if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = if(b, 1 - x, x);
s = 0.993;
fs = float(SR);
pre = _;
//clip(x) = (min(0.4514,max(-0.4514,x)));
asymclip = ffunction(float asymclip(float), "clipping.h", "");
clip = asymclip(_);
Drive = vslider("Drive[name:Drive]", 0.5, 0, 1, 0.01) : Inverted(0) : smooth(s);
b0 = -8.14686408743197e-8*Drive*fs - 0.00018716364572377*fs;
b1 = 8.14686408743197e-8*Drive*fs + 0.00018716364572377*fs;
a0 = Drive*(-3.9949101411109e-5*fs - 8.66687668918243e-5) + 4.07955525542246e-5*fs + 0.000635245647283505;
a1 = Drive*(3.9949101411109e-5*fs - 8.66687668918243e-5) - 4.07955525542246e-5*fs + 0.000635245647283505;
};
| https://raw.githubusercontent.com/ntonnaett/guitarix/e5ce36c3a693eeada3cb70425ec09f8d6f91e78c/trunk/src/plugins/eldist.dsp | faust | generated automatically
DO NOT MODIFY!
clip(x) = (min(0.4514,max(-0.4514,x))); | declare id "eldist";
declare name "Electra Distortion";
declare category "Distortion";
declare shortname "Electra Dst";
declare description "Electra Distortion";
declare samplerate "96000";
import("filter.lib");
process = pre : iir((b0/a0,b1/a0),(a1/a0)) : clip with {
LogPot(a, x) = if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = if(b, 1 - x, x);
s = 0.993;
fs = float(SR);
pre = _;
asymclip = ffunction(float asymclip(float), "clipping.h", "");
clip = asymclip(_);
Drive = vslider("Drive[name:Drive]", 0.5, 0, 1, 0.01) : Inverted(0) : smooth(s);
b0 = -8.14686408743197e-8*Drive*fs - 0.00018716364572377*fs;
b1 = 8.14686408743197e-8*Drive*fs + 0.00018716364572377*fs;
a0 = Drive*(-3.9949101411109e-5*fs - 8.66687668918243e-5) + 4.07955525542246e-5*fs + 0.000635245647283505;
a1 = Drive*(3.9949101411109e-5*fs - 8.66687668918243e-5) - 4.07955525542246e-5*fs + 0.000635245647283505;
};
|
2c7e023ef49df634d12e2beb0199a7342f50c5d8bafbde2b199051aa39b3a153 | rodamaralgeo/guitarix | gx_distortion.dsp | declare name "Multi Band Distortion";
declare shortname "Distortion";
declare category "Distortion";
declare groups "resonator[Distortion resonator]";
declare gladefile "gx_distortion_ui.glade";
declare version "0.01";
declare author "brummer";
declare license "BSD";
declare copyright "(c)brummer 2008";
import("stdfaust.lib");
import("guitarix.lib");
F = nentry("split_low_freq[name:Split Lo]", 250, 20, 600, 10);
F1 = nentry("split_middle_freq[name:Split Mid]", 650, 600, 1250, 10);
F2 = nentry("split_high_freq[name:Split Hi]", 1250, 1250, 12000, 10);
/**********************************************************************
*** this part is included here for backward compatibility from 0.9.27 to
*** 0.9.24
***********************************************************************/
//------------------------------ ba.count and ba.take --------------------------------------
countN ((xs, xxs)) = 1 + countN(xxs);
countN (xx) = 1;
takeN (1, (xs, xxs)) = xs;
takeN (1, xs) = xs;
takeN (nn, (xs, xxs)) = takeN (nn-1, xxs);
//------------------------------ low/high-passfilters --------------------------------------
tf1N(b0,b1,a1) = _ <: *(b0), (mem : *(b1)) :> + ~ *(0-a1);
tf2N(b0,b1,b2,a1,a2) = sub ~ conv2(a1,a2) : conv3(b0,b1,b2)
with {
conv3(k0,k1,k2,x) = k0*x + k1*x' + k2*x'';
conv2(k0,k1,x) = k0*x + k1*x';
sub(x,y) = y-x;
};
tf1sN(b1,b0,a0,w1) = tf1N(b0d,b1d,a1d)
with {
c = 1/tan((w1)*0.5/ma.SR); // bilinear-transform scale-factor
d = a0 + c;
b1d = (b0 - b1*c) / d;
b0d = (b0 + b1*c) / d;
a1d = (a0 - c) / d;
};
tf2sN(b2,b1,b0,a1,a0,w1) = tf2N(b0d,b1d,b2d,a1d,a2d)
with {
c = 1/tan((w1)*0.5/ma.SR); // bilinear-transform scale-factor
csq = c*c;
d = a0 + a1 * c + csq;
b0d = (b0 + b1 * c + b2 * csq)/d;
b1d = 2 * (b0 - b2 * csq)/d;
b2d = (b0 - b1 * c + b2 * csq)/d;
a1d = 2 * (a0 - csq)/d;
a2d = (a0 - a1*c + csq)/d;
};
lowpassN(N,fc) = lowpass0_highpass1N(0,N,fc);
highpassN(N,fc) = lowpass0_highpass1N(1,N,fc);
lowpass0_highpass1N(s,N,fc) = lphpr(s,N,N,fc)
with {
lphpr(s,0,N,fc) = _;
lphpr(s,1,N,fc) = tf1sN(s,1-s,1,2*ma.PI*fc);
lphpr(s,O,N,fc) = lphpr(s,(O-2),N,fc) : tf2sN(s,0,1-s,a1s,1,w1) with {
parity = N % 2;
S = (O-parity)/2; // current section number
a1s = -2*cos(-ma.PI + (1-parity)*ma.PI/(2*N) + (S-1+parity)*ma.PI/N);
w1 = 2*ma.PI*fc;
};
};
//------------------------------ an.analyzer --------------------------------------
analyzern(O,lfreqs) = _ <: bsplit(nb) with
{
nb = countN(lfreqs);
fc(n) = takeN(n, lfreqs);
lp(n) = lowpassN(O,fc(n));
hp(n) = highpassN(O,fc(n));
bsplit(0) = _;
bsplit(i) = hp(i), (lp(i) <: bsplit(i-1));
};
analyzerN(lfreqs) = analyzern(3,lfreqs);
filterbankn(O,lfreqs) = analyzern(O,lfreqs) : delayeq with
{
nb = ba.count(lfreqs);
fc(n) = ba.take(n, lfreqs);
ap(n) = fi.highpass_plus_lowpass(O,fc(n));
delayeq = par(i,nb-1,apchain(nb-1-i)),_,_;
apchain(0) = _;
apchain(i) = ap(i) : apchain(i-1);
};
filterbankN(lfreqs) = fi.filterbank(3,lfreqs);
/**********************************************************************
*** end for backward compatibility from 0.9.27 to
*** 0.9.24 , it could removed when switch completly to > 0.9.27
***********************************************************************/
//----------distortion---------
//-distortion
drivelevel = vslider("level[name:Level]", 0.0, 0, 0.5, 0.01);
drivegain1 = vslider("gain[name:Gain]", 2, -10, 10, 0.1)-10 : ba.db2linear : smoothi(0.999);
low_gain = vslider("low_gain[name:Lo]", 10, -10, 20, 0.1)-10 : ba.db2linear : smoothi(0.999);
high_gain = vslider("high_gain[name:Hi]", 10, -10, 20, 0.1)-10 : ba.db2linear : smoothi(0.999);
middle_gain_l = vslider("middle_l_gain[name:LoMid]", 10, -10, 20, 0.1)-10 : ba.db2linear : smoothi(0.999);
middle_gain_h = vslider("middle_h_gain[name:HiMid]", 10, -10, 20, 0.1)-10 : ba.db2linear : smoothi(0.999);
drive = vslider("drive[name:Drive]", 0.64, 0, 1, 0.01);
drive1 = vslider("low_drive[name:Lo]", 1, 0, 1, 0.01)*drive;
drive2 = vslider("high_drive[name:Hi]", 1, 0, 1, 0.01)*drive;
drive3 = vslider("middle_l_drive[name:LoMid]", 1, 0, 1, 0.01)*drive;
drive4 = vslider("middle_h_drive[name:HiMid]", 1, 0, 1, 0.01)*drive;
distortion1 = _:ef.cubicnl(drive1,drivelevel): *(low_gain);
distortion2 = _:ef.cubicnl(drive2,drivelevel) : *(high_gain);
distortion3 = _:ef.cubicnl(drive3,drivelevel) : *(middle_gain_l);
distortion4 = _:ef.cubicnl(drive4,drivelevel) : *(middle_gain_h);
distortion = fi.lowpass(2,15000.0): fi.highpass(1,31.0) : filterbankN((F,(F1,F2))) : distortion2,distortion4 ,distortion3,distortion1 :>fi.lowpass(1,6531.0);
//-resonator
resonator = (+ <: (de.delay(4096, d-1) + de.delay(4096, d)) / 2) ~ *(1.0-a)
with {
d = vslider("vibrato[name:Vibrato]", 1, 0, 1, 0.01);
a = vslider("trigger[name:Trigger]", 0.12, 0, 1, 0.01);
};
switch2 = checkbox("resonator.on_off[name:resonat]");
//reso = hgroup("resonator", bypass(switch2, resonator));
moving_filter(x) = (x+x'+x'')/3;
wet = vslider("wet_dry[name:Wet/Dry][tooltip:percentage of processed signal in output signal]", 100, 0, 100, 1) : /(100);
dry = 1 - wet;
process_dist = bypass(switch2, resonator) : +(anti_denormal_ac) : distortion : *(drivegain1) ;
process = _<:*(dry),(*(wet): process_dist):>_;
| https://raw.githubusercontent.com/rodamaralgeo/guitarix/09cda116411bee85e2c9077ab99186cdfab6a314/trunk/src/faust/gx_distortion.dsp | faust | *********************************************************************
*** this part is included here for backward compatibility from 0.9.27 to
*** 0.9.24
**********************************************************************
------------------------------ ba.count and ba.take --------------------------------------
------------------------------ low/high-passfilters --------------------------------------
bilinear-transform scale-factor
bilinear-transform scale-factor
current section number
------------------------------ an.analyzer --------------------------------------
*********************************************************************
*** end for backward compatibility from 0.9.27 to
*** 0.9.24 , it could removed when switch completly to > 0.9.27
**********************************************************************
----------distortion---------
-distortion
-resonator
reso = hgroup("resonator", bypass(switch2, resonator)); | declare name "Multi Band Distortion";
declare shortname "Distortion";
declare category "Distortion";
declare groups "resonator[Distortion resonator]";
declare gladefile "gx_distortion_ui.glade";
declare version "0.01";
declare author "brummer";
declare license "BSD";
declare copyright "(c)brummer 2008";
import("stdfaust.lib");
import("guitarix.lib");
F = nentry("split_low_freq[name:Split Lo]", 250, 20, 600, 10);
F1 = nentry("split_middle_freq[name:Split Mid]", 650, 600, 1250, 10);
F2 = nentry("split_high_freq[name:Split Hi]", 1250, 1250, 12000, 10);
countN ((xs, xxs)) = 1 + countN(xxs);
countN (xx) = 1;
takeN (1, (xs, xxs)) = xs;
takeN (1, xs) = xs;
takeN (nn, (xs, xxs)) = takeN (nn-1, xxs);
tf1N(b0,b1,a1) = _ <: *(b0), (mem : *(b1)) :> + ~ *(0-a1);
tf2N(b0,b1,b2,a1,a2) = sub ~ conv2(a1,a2) : conv3(b0,b1,b2)
with {
conv3(k0,k1,k2,x) = k0*x + k1*x' + k2*x'';
conv2(k0,k1,x) = k0*x + k1*x';
sub(x,y) = y-x;
};
tf1sN(b1,b0,a0,w1) = tf1N(b0d,b1d,a1d)
with {
d = a0 + c;
b1d = (b0 - b1*c) / d;
b0d = (b0 + b1*c) / d;
a1d = (a0 - c) / d;
};
tf2sN(b2,b1,b0,a1,a0,w1) = tf2N(b0d,b1d,b2d,a1d,a2d)
with {
csq = c*c;
d = a0 + a1 * c + csq;
b0d = (b0 + b1 * c + b2 * csq)/d;
b1d = 2 * (b0 - b2 * csq)/d;
b2d = (b0 - b1 * c + b2 * csq)/d;
a1d = 2 * (a0 - csq)/d;
a2d = (a0 - a1*c + csq)/d;
};
lowpassN(N,fc) = lowpass0_highpass1N(0,N,fc);
highpassN(N,fc) = lowpass0_highpass1N(1,N,fc);
lowpass0_highpass1N(s,N,fc) = lphpr(s,N,N,fc)
with {
lphpr(s,0,N,fc) = _;
lphpr(s,1,N,fc) = tf1sN(s,1-s,1,2*ma.PI*fc);
lphpr(s,O,N,fc) = lphpr(s,(O-2),N,fc) : tf2sN(s,0,1-s,a1s,1,w1) with {
parity = N % 2;
a1s = -2*cos(-ma.PI + (1-parity)*ma.PI/(2*N) + (S-1+parity)*ma.PI/N);
w1 = 2*ma.PI*fc;
};
};
analyzern(O,lfreqs) = _ <: bsplit(nb) with
{
nb = countN(lfreqs);
fc(n) = takeN(n, lfreqs);
lp(n) = lowpassN(O,fc(n));
hp(n) = highpassN(O,fc(n));
bsplit(0) = _;
bsplit(i) = hp(i), (lp(i) <: bsplit(i-1));
};
analyzerN(lfreqs) = analyzern(3,lfreqs);
filterbankn(O,lfreqs) = analyzern(O,lfreqs) : delayeq with
{
nb = ba.count(lfreqs);
fc(n) = ba.take(n, lfreqs);
ap(n) = fi.highpass_plus_lowpass(O,fc(n));
delayeq = par(i,nb-1,apchain(nb-1-i)),_,_;
apchain(0) = _;
apchain(i) = ap(i) : apchain(i-1);
};
filterbankN(lfreqs) = fi.filterbank(3,lfreqs);
drivelevel = vslider("level[name:Level]", 0.0, 0, 0.5, 0.01);
drivegain1 = vslider("gain[name:Gain]", 2, -10, 10, 0.1)-10 : ba.db2linear : smoothi(0.999);
low_gain = vslider("low_gain[name:Lo]", 10, -10, 20, 0.1)-10 : ba.db2linear : smoothi(0.999);
high_gain = vslider("high_gain[name:Hi]", 10, -10, 20, 0.1)-10 : ba.db2linear : smoothi(0.999);
middle_gain_l = vslider("middle_l_gain[name:LoMid]", 10, -10, 20, 0.1)-10 : ba.db2linear : smoothi(0.999);
middle_gain_h = vslider("middle_h_gain[name:HiMid]", 10, -10, 20, 0.1)-10 : ba.db2linear : smoothi(0.999);
drive = vslider("drive[name:Drive]", 0.64, 0, 1, 0.01);
drive1 = vslider("low_drive[name:Lo]", 1, 0, 1, 0.01)*drive;
drive2 = vslider("high_drive[name:Hi]", 1, 0, 1, 0.01)*drive;
drive3 = vslider("middle_l_drive[name:LoMid]", 1, 0, 1, 0.01)*drive;
drive4 = vslider("middle_h_drive[name:HiMid]", 1, 0, 1, 0.01)*drive;
distortion1 = _:ef.cubicnl(drive1,drivelevel): *(low_gain);
distortion2 = _:ef.cubicnl(drive2,drivelevel) : *(high_gain);
distortion3 = _:ef.cubicnl(drive3,drivelevel) : *(middle_gain_l);
distortion4 = _:ef.cubicnl(drive4,drivelevel) : *(middle_gain_h);
distortion = fi.lowpass(2,15000.0): fi.highpass(1,31.0) : filterbankN((F,(F1,F2))) : distortion2,distortion4 ,distortion3,distortion1 :>fi.lowpass(1,6531.0);
resonator = (+ <: (de.delay(4096, d-1) + de.delay(4096, d)) / 2) ~ *(1.0-a)
with {
d = vslider("vibrato[name:Vibrato]", 1, 0, 1, 0.01);
a = vslider("trigger[name:Trigger]", 0.12, 0, 1, 0.01);
};
switch2 = checkbox("resonator.on_off[name:resonat]");
moving_filter(x) = (x+x'+x'')/3;
wet = vslider("wet_dry[name:Wet/Dry][tooltip:percentage of processed signal in output signal]", 100, 0, 100, 1) : /(100);
dry = 1 - wet;
process_dist = bypass(switch2, resonator) : +(anti_denormal_ac) : distortion : *(drivegain1) ;
process = _<:*(dry),(*(wet): process_dist):>_;
|
697fe5fc7d831c37c12fd0dda286b69379e814f873dace5440b7353a42daa469 | unclechu/guitarix | low_high_pass.dsp | declare id "low_highpass";
declare name "low high pass";
declare shortname "L/H/Filter";
declare category "Tone control";
declare groups ".low_high_pass.lhp[low_highpass], .low_high_pass.lhc[low_highcutoff]";
declare version "0.01";
declare author "brummer";
declare license "BSD";
declare copyright "(c)brummer 2008";
import("effect.lib");
import("guitarix.lib");
import("math.lib");
//-speaker emulation
sbp1 = vslider("low_freq[name:low freq][tooltip:low-freq cutoff Hz]",130,20,1000,10);
sbp2 = vslider("high_freq[name:high freq][tooltip:high-freq cutoff Hz]",5000,1000,12000,10);
switch1 = checkbox("on_off[name:low highcutoff]");
sbp = hgroup(".low_high_pass.lhc", bypass(switch1, +(anti_denormal_ac) : speakerbp(sbp1,sbp2)));
//------------------------------ low/high-passfilters --------------------------------------
tf1N(b0,b1,a1) = _ <: *(b0), (mem : *(b1)) :> + ~ *(0-a1);
tf2N(b0,b1,b2,a1,a2) = sub ~ conv2(a1,a2) : conv3(b0,b1,b2)
with {
conv3(k0,k1,k2,x) = k0*x + k1*x' + k2*x'';
conv2(k0,k1,x) = k0*x + k1*x';
sub(x,y) = y-x;
};
tf1sN(b1,b0,a0,w1) = tf1N(b0d,b1d,a1d)
with {
c = 1/tan((w1)*0.5/SR); // bilinear-transform scale-factor
d = a0 + c;
b1d = (b0 - b1*c) / d;
b0d = (b0 + b1*c) / d;
a1d = (a0 - c) / d;
};
tf2sN(b2,b1,b0,a1,a0,w1) = tf2N(b0d,b1d,b2d,a1d,a2d)
with {
c = 1/tan((w1)*0.5/SR); // bilinear-transform scale-factor
csq = c*c;
d = a0 + a1 * c + csq;
b0d = (b0 + b1 * c + b2 * csq)/d;
b1d = 2 * (b0 - b2 * csq)/d;
b2d = (b0 - b1 * c + b2 * csq)/d;
a1d = 2 * (a0 - csq)/d;
a2d = (a0 - a1*c + csq)/d;
};
lowpassN(N,fc) = lowpass0_highpass1N(0,N,fc);
highpassN(N,fc) = lowpass0_highpass1N(1,N,fc);
lowpass0_highpass1N(s,N,fc) = lphpr(s,N,N,fc)
with {
lphpr(s,0,N,fc) = _;
lphpr(s,1,N,fc) = tf1sN(s,1-s,1,2*PI*fc);
lphpr(s,O,N,fc) = lphpr(s,(O-2),N,fc) : tf2sN(s,0,1-s,a1s,1,w1) with {
parity = N % 2;
S = (O-parity)/2; // current section number
a1s = -2*cos(-PI + (1-parity)*PI/(2*N) + (S-1+parity)*PI/N);
w1 = 2*PI*fc;
};
};
//-low and highpass
lowpassfreq = nentry("low_freq[name:low freq]", 5000, 20, 12000, 10);
highpassfreq = nentry("high_freq[name:high freq]", 130, 20, 7040, 10);
switch = checkbox("on_off[name:low highpass]");
passo = +(anti_denormal_ac) : lowpassN(1,lowpassfreq) : highpassN(1,highpassfreq);
pass = hgroup(".low_high_pass.lhp", bypass(switch, passo));
process = pass : sbp ;
| https://raw.githubusercontent.com/unclechu/guitarix/630e762d480264619919b8b9c69d64f5b6f83da3/trunk/src/LV2/faust/low_high_pass.dsp | faust | -speaker emulation
------------------------------ low/high-passfilters --------------------------------------
bilinear-transform scale-factor
bilinear-transform scale-factor
current section number
-low and highpass | declare id "low_highpass";
declare name "low high pass";
declare shortname "L/H/Filter";
declare category "Tone control";
declare groups ".low_high_pass.lhp[low_highpass], .low_high_pass.lhc[low_highcutoff]";
declare version "0.01";
declare author "brummer";
declare license "BSD";
declare copyright "(c)brummer 2008";
import("effect.lib");
import("guitarix.lib");
import("math.lib");
sbp1 = vslider("low_freq[name:low freq][tooltip:low-freq cutoff Hz]",130,20,1000,10);
sbp2 = vslider("high_freq[name:high freq][tooltip:high-freq cutoff Hz]",5000,1000,12000,10);
switch1 = checkbox("on_off[name:low highcutoff]");
sbp = hgroup(".low_high_pass.lhc", bypass(switch1, +(anti_denormal_ac) : speakerbp(sbp1,sbp2)));
tf1N(b0,b1,a1) = _ <: *(b0), (mem : *(b1)) :> + ~ *(0-a1);
tf2N(b0,b1,b2,a1,a2) = sub ~ conv2(a1,a2) : conv3(b0,b1,b2)
with {
conv3(k0,k1,k2,x) = k0*x + k1*x' + k2*x'';
conv2(k0,k1,x) = k0*x + k1*x';
sub(x,y) = y-x;
};
tf1sN(b1,b0,a0,w1) = tf1N(b0d,b1d,a1d)
with {
d = a0 + c;
b1d = (b0 - b1*c) / d;
b0d = (b0 + b1*c) / d;
a1d = (a0 - c) / d;
};
tf2sN(b2,b1,b0,a1,a0,w1) = tf2N(b0d,b1d,b2d,a1d,a2d)
with {
csq = c*c;
d = a0 + a1 * c + csq;
b0d = (b0 + b1 * c + b2 * csq)/d;
b1d = 2 * (b0 - b2 * csq)/d;
b2d = (b0 - b1 * c + b2 * csq)/d;
a1d = 2 * (a0 - csq)/d;
a2d = (a0 - a1*c + csq)/d;
};
lowpassN(N,fc) = lowpass0_highpass1N(0,N,fc);
highpassN(N,fc) = lowpass0_highpass1N(1,N,fc);
lowpass0_highpass1N(s,N,fc) = lphpr(s,N,N,fc)
with {
lphpr(s,0,N,fc) = _;
lphpr(s,1,N,fc) = tf1sN(s,1-s,1,2*PI*fc);
lphpr(s,O,N,fc) = lphpr(s,(O-2),N,fc) : tf2sN(s,0,1-s,a1s,1,w1) with {
parity = N % 2;
a1s = -2*cos(-PI + (1-parity)*PI/(2*N) + (S-1+parity)*PI/N);
w1 = 2*PI*fc;
};
};
lowpassfreq = nentry("low_freq[name:low freq]", 5000, 20, 12000, 10);
highpassfreq = nentry("high_freq[name:high freq]", 130, 20, 7040, 10);
switch = checkbox("on_off[name:low highpass]");
passo = +(anti_denormal_ac) : lowpassN(1,lowpassfreq) : highpassN(1,highpassfreq);
pass = hgroup(".low_high_pass.lhp", bypass(switch, passo));
process = pass : sbp ;
|
2b2f1b4ac06ec463857fe24a79ffd4bb5f7a2921acaf2b1431aefed7d314fd9d | brummer10/guitarix | mbd.dsp | declare id "mbd";
declare name "MultiBand Distortion";
declare shortname "MB Distortion";
declare category "Distortion";
declare description "MultiBand Distortion";
declare samplerate "96000";
import("stdfaust.lib");
import("reducemaps.lib");
anti_denormal = pow(10,-20);
anti_denormal_ac = 1 - 1' : *(anti_denormal) : + ~ *(-1);
hifr1 =hslider("crossover_b1_b2 [log][name:Crossover B1-B2 (hz)][tooltip: Crossover fi.bandpass frequency]" ,80 , 20, 20000, 1.08);
hifr2 =hslider("crossover_b2_b3 [log][name:Crossover B2-B3 (hz)][tooltip: Crossover fi.bandpass frequency]",210,20,20000,1.08);
hifr3 =hslider("crossover_b3_b4 [log][name:Crossover B3-B4 (hz)][tooltip: Crossover fi.bandpass frequency]",1700,20,20000,1.08);
hifr4 =hslider("crossover_b4_b5 [log][name:Crossover B4-B5 (hz)][tooltip: Crossover fi.bandpass frequency]",5000,20,20000,1.08);
geq = fi.filterbank(3, (hifr1,hifr2,hifr3,hifr4));
drive1 = hslider("Drive1 [tooltip: Amount of distortion]", 0, 0, 1, 0.01);
offset1 = hslider("Offset1 [tooltip: Brings in even harmonics]", 0, 0, 0.5, 0.01);
drive2 = hslider("Drive2 [tooltip: Amount of distortion]", 0, 0, 1, 0.01);
offset2 = hslider("Offset2 [tooltip: Brings in even harmonics]", 0, 0, 0.5, 0.01);
drive3 = hslider("Drive3 [tooltip: Amount of distortion]", 0, 0, 1, 0.01);
offset3 = hslider("Offset3 [tooltip: Brings in even harmonics]", 0, 0, 0.5, 0.01);
drive4 = hslider("Drive4 [tooltip: Amount of distortion]", 0, 0, 1, 0.01);
offset4 = hslider("Offset4 [tooltip: Brings in even harmonics]", 0, 0, 0.5, 0.01);
drive5 = hslider("Drive5 [tooltip: Amount of distortion]", 0, 0, 1, 0.01);
offset5 = hslider("Offset5 [tooltip: Brings in even harmonics]", 0, 0, 0.5, 0.01);
gain1 = vslider("Gain", 0, -40, 4, 0.1) : ba.db2linear : si.smooth(0.999);
vmeter1(x) = attach(x, envelop(x) : vbargraph("v1[log][nomidi]", -70, +5));
vmeter2(x) = attach(x, envelop(x) : vbargraph("v2[log][nomidi]", -70, +5));
vmeter3(x) = attach(x, envelop(x) : vbargraph("v3[log][nomidi]", -70, +5));
vmeter4(x) = attach(x, envelop(x) : vbargraph("v4[log][nomidi]", -70, +5));
vmeter5(x) = attach(x, envelop(x) : vbargraph("v5[log][nomidi]", -70, +5));
envelop = abs : max ~ (1.0/ma.SR) : mean(4096); // : max(ba.db2linear(-70)) : ba.linear2db;
process = _: +(anti_denormal_ac): geq: ( dist5s , dist4s , dist3s, dist2s, dist1s) :> *(gain1) with {
dist1s = ef.cubicnl(drive1,offset1: si.smooth(0.999)) : fi.dcblockerat(1.0) : vmeter1;
dist2s = ef.cubicnl(drive2,offset2: si.smooth(0.999)) : fi.dcblockerat(1.0) : vmeter2;
dist3s = ef.cubicnl(drive3,offset3: si.smooth(0.999)) : fi.dcblockerat(1.0) : vmeter3;
dist4s = ef.cubicnl(drive4,offset4: si.smooth(0.999)) : fi.dcblockerat(1.0) : vmeter4;
dist5s = ef.cubicnl(drive5,offset5: si.smooth(0.999)) : fi.dcblockerat(1.0) : vmeter5;
};
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/plugins/mbd.dsp | faust | : max(ba.db2linear(-70)) : ba.linear2db; | declare id "mbd";
declare name "MultiBand Distortion";
declare shortname "MB Distortion";
declare category "Distortion";
declare description "MultiBand Distortion";
declare samplerate "96000";
import("stdfaust.lib");
import("reducemaps.lib");
anti_denormal = pow(10,-20);
anti_denormal_ac = 1 - 1' : *(anti_denormal) : + ~ *(-1);
hifr1 =hslider("crossover_b1_b2 [log][name:Crossover B1-B2 (hz)][tooltip: Crossover fi.bandpass frequency]" ,80 , 20, 20000, 1.08);
hifr2 =hslider("crossover_b2_b3 [log][name:Crossover B2-B3 (hz)][tooltip: Crossover fi.bandpass frequency]",210,20,20000,1.08);
hifr3 =hslider("crossover_b3_b4 [log][name:Crossover B3-B4 (hz)][tooltip: Crossover fi.bandpass frequency]",1700,20,20000,1.08);
hifr4 =hslider("crossover_b4_b5 [log][name:Crossover B4-B5 (hz)][tooltip: Crossover fi.bandpass frequency]",5000,20,20000,1.08);
geq = fi.filterbank(3, (hifr1,hifr2,hifr3,hifr4));
drive1 = hslider("Drive1 [tooltip: Amount of distortion]", 0, 0, 1, 0.01);
offset1 = hslider("Offset1 [tooltip: Brings in even harmonics]", 0, 0, 0.5, 0.01);
drive2 = hslider("Drive2 [tooltip: Amount of distortion]", 0, 0, 1, 0.01);
offset2 = hslider("Offset2 [tooltip: Brings in even harmonics]", 0, 0, 0.5, 0.01);
drive3 = hslider("Drive3 [tooltip: Amount of distortion]", 0, 0, 1, 0.01);
offset3 = hslider("Offset3 [tooltip: Brings in even harmonics]", 0, 0, 0.5, 0.01);
drive4 = hslider("Drive4 [tooltip: Amount of distortion]", 0, 0, 1, 0.01);
offset4 = hslider("Offset4 [tooltip: Brings in even harmonics]", 0, 0, 0.5, 0.01);
drive5 = hslider("Drive5 [tooltip: Amount of distortion]", 0, 0, 1, 0.01);
offset5 = hslider("Offset5 [tooltip: Brings in even harmonics]", 0, 0, 0.5, 0.01);
gain1 = vslider("Gain", 0, -40, 4, 0.1) : ba.db2linear : si.smooth(0.999);
vmeter1(x) = attach(x, envelop(x) : vbargraph("v1[log][nomidi]", -70, +5));
vmeter2(x) = attach(x, envelop(x) : vbargraph("v2[log][nomidi]", -70, +5));
vmeter3(x) = attach(x, envelop(x) : vbargraph("v3[log][nomidi]", -70, +5));
vmeter4(x) = attach(x, envelop(x) : vbargraph("v4[log][nomidi]", -70, +5));
vmeter5(x) = attach(x, envelop(x) : vbargraph("v5[log][nomidi]", -70, +5));
process = _: +(anti_denormal_ac): geq: ( dist5s , dist4s , dist3s, dist2s, dist1s) :> *(gain1) with {
dist1s = ef.cubicnl(drive1,offset1: si.smooth(0.999)) : fi.dcblockerat(1.0) : vmeter1;
dist2s = ef.cubicnl(drive2,offset2: si.smooth(0.999)) : fi.dcblockerat(1.0) : vmeter2;
dist3s = ef.cubicnl(drive3,offset3: si.smooth(0.999)) : fi.dcblockerat(1.0) : vmeter3;
dist4s = ef.cubicnl(drive4,offset4: si.smooth(0.999)) : fi.dcblockerat(1.0) : vmeter4;
dist5s = ef.cubicnl(drive5,offset5: si.smooth(0.999)) : fi.dcblockerat(1.0) : vmeter5;
};
|
079e427ff5627ce58d0a2e41f260863ac9524c93c9985e2dbd4195b65637c372 | ntonnaett/guitarix | ring_modulator.dsp | declare id "ring_modulator";
declare name "Ring Modulator Mono";
declare shortname "Ring Modulator";
declare category "Modulation";
import("music.lib");
freq = hslider("freq[name:Freq]", 240, 120, 1600, 0.5);
wet_dry = hslider("dry/wet[name:Mix]", 0.5, 0, 1, 0.05);
process = _<:((1 - wet_dry)*_,(_*osc(freq))*wet_dry):>_;
| https://raw.githubusercontent.com/ntonnaett/guitarix/e5ce36c3a693eeada3cb70425ec09f8d6f91e78c/trunk/src/faust/ring_modulator.dsp | faust | declare id "ring_modulator";
declare name "Ring Modulator Mono";
declare shortname "Ring Modulator";
declare category "Modulation";
import("music.lib");
freq = hslider("freq[name:Freq]", 240, 120, 1600, 0.5);
wet_dry = hslider("dry/wet[name:Mix]", 0.5, 0, 1, 0.05);
process = _<:((1 - wet_dry)*_,(_*osc(freq))*wet_dry):>_;
|
|
961254578cabf4a0ef20a1abec9fdb00c359faef72b1705267cb21d70a46bfbd | ntonnaett/guitarix | moog.dsp | declare id "moog";
declare name "Moog Filter";
declare category "Tone Control";
declare license "BSD";
import("effect.lib");
import("guitarix.lib");
Q = hslider("Q[name:Q]", 1, 0, 4, 0.1);
fr = hslider("fr[name:Freq]", 3000, 440, 6000, 10): smoothi(0.999);
process = ( +(anti_denormal_ac): moogvcfN(Q,fr)), (+(anti_denormal_ac): moogvcfN(Q,fr));
| https://raw.githubusercontent.com/ntonnaett/guitarix/e5ce36c3a693eeada3cb70425ec09f8d6f91e78c/trunk/src/faust/moog.dsp | faust | declare id "moog";
declare name "Moog Filter";
declare category "Tone Control";
declare license "BSD";
import("effect.lib");
import("guitarix.lib");
Q = hslider("Q[name:Q]", 1, 0, 4, 0.1);
fr = hslider("fr[name:Freq]", 3000, 440, 6000, 10): smoothi(0.999);
process = ( +(anti_denormal_ac): moogvcfN(Q,fr)), (+(anti_denormal_ac): moogvcfN(Q,fr));
|
|
ff0ba935d0b319df8b71ad6f9b1ae65c3ee37c4b05da90ac62414a0d448dbbb4 | ntonnaett/guitarix | scream.dsp | // generated automatically
// DO NOT MODIFY!
declare id "scream";
declare name "Screaming Bird";
declare category "Fuzz";
declare shortname "Scream Bird";
declare description "Screaming Bird";
declare samplerate "96000";
import("filter.lib");
process = pre : iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) : clip with {
LogPot(a, x) = if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = if(b, 1 - x, x);
s = 0.993;
fs = float(SR);
pre = _;
//clip(x) = min(0.4514,max(-0.2514,x));
asymclip = ffunction(float asymclip(float), "clipping.h", "");
clip = asymclip(_);
Scream = vslider("Scream[name:Scream]", 0.5, 0, 1, 0.01) : Inverted(0) : smooth(s);
b0 = -6.82076449438528e-9*Scream*pow(fs,2) - 6.82076449438528e-10*pow(fs,2);
b1 = 1.36415289887706e-8*Scream*pow(fs,2) + 1.36415289887706e-9*pow(fs,2);
b2 = -6.82076449438528e-9*Scream*pow(fs,2) - 6.82076449438528e-10*pow(fs,2);
a0 = fs*(3.64434266110822e-10*fs + 3.23311541086178e-6) + 0.00515391115930048;
a1 = -7.28868532221644e-10*pow(fs,2) + 0.010307822318601;
a2 = fs*(3.64434266110822e-10*fs - 3.23311541086178e-6) + 0.00515391115930048;
};
| https://raw.githubusercontent.com/ntonnaett/guitarix/e5ce36c3a693eeada3cb70425ec09f8d6f91e78c/trunk/src/plugins/scream.dsp | faust | generated automatically
DO NOT MODIFY!
clip(x) = min(0.4514,max(-0.2514,x)); | declare id "scream";
declare name "Screaming Bird";
declare category "Fuzz";
declare shortname "Scream Bird";
declare description "Screaming Bird";
declare samplerate "96000";
import("filter.lib");
process = pre : iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) : clip with {
LogPot(a, x) = if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = if(b, 1 - x, x);
s = 0.993;
fs = float(SR);
pre = _;
asymclip = ffunction(float asymclip(float), "clipping.h", "");
clip = asymclip(_);
Scream = vslider("Scream[name:Scream]", 0.5, 0, 1, 0.01) : Inverted(0) : smooth(s);
b0 = -6.82076449438528e-9*Scream*pow(fs,2) - 6.82076449438528e-10*pow(fs,2);
b1 = 1.36415289887706e-8*Scream*pow(fs,2) + 1.36415289887706e-9*pow(fs,2);
b2 = -6.82076449438528e-9*Scream*pow(fs,2) - 6.82076449438528e-10*pow(fs,2);
a0 = fs*(3.64434266110822e-10*fs + 3.23311541086178e-6) + 0.00515391115930048;
a1 = -7.28868532221644e-10*pow(fs,2) + 0.010307822318601;
a2 = fs*(3.64434266110822e-10*fs - 3.23311541086178e-6) + 0.00515391115930048;
};
|
178eadd2ff2741edf8e64306471848ad4f3ff54a2bc51893eedcbc5bb3abcf18 | ntonnaett/guitarix | freeverb.dsp | declare name "Freeverb";
declare category "Reverb";
declare version "0.01";
declare author "brummer";
declare license "BSD";
declare copyright "(c)brummer 2008";
import("math.lib");
import("music.lib");
import("effect.lib");
import("filter.lib");
import("guitarix.lib");
/*-----------------------------------------------
freeverb by "Grame"
-----------------------------------------------*/
// Filter Parameters
combtuningL1 = 1116;
combtuningL2 = 1188;
combtuningL3 = 1277;
combtuningL4 = 1356;
combtuningL5 = 1422;
combtuningL6 = 1491;
combtuningL7 = 1557;
combtuningL8 = 1617;
allpasstuningL1 = 556;
allpasstuningL2 = 441;
allpasstuningL3 = 341;
allpasstuningL4 = 225;
roomsizeSlider = vslider("RoomSize", 0.5, 0, 1, 0.025)*0.28 + 0.7;
dampslider = vslider("damp",0.5, 0, 1, 0.025);
combfeed = roomsizeSlider;
//wetslider = 0.5 + vslider("wet_dry[name:wet/dry]", 0, -0.5, 0.5, 0.1);
wet_dry = vslider("wet_dry[name:wet/dry]", 50, 0, 100, 1) : /(100);
dry = 1 - wet_dry;
// Reverb components
monoReverb(fb1, fb2, damp, spread)
= _ <: comb(combtuningL1+spread, fb1, damp),
comb(combtuningL2+spread, fb1, damp),
comb(combtuningL3+spread, fb1, damp),
comb(combtuningL4+spread, fb1, damp),
comb(combtuningL5+spread, fb1, damp),
comb(combtuningL6+spread, fb1, damp),
comb(combtuningL7+spread, fb1, damp),
comb(combtuningL8+spread, fb1, damp)
+>
allpass (allpasstuningL1+spread, fb2)
: allpass (allpasstuningL2+spread, fb2)
: allpass (allpasstuningL3+spread, fb2)
: allpass (allpasstuningL4+spread, fb2)
;
//----------------------------------------------------------------
fxctrl(g,w,Fx) = _ <: (*(g) <: _ + Fx ), *(1-w) +> _;
process = _<:*(dry),(*(wet_dry):fxctrl(0.015,wet_dry, monoReverb(combfeed, 0.5, dampslider, 23))):>_;
| https://raw.githubusercontent.com/ntonnaett/guitarix/e5ce36c3a693eeada3cb70425ec09f8d6f91e78c/trunk/src/LV2/faust/freeverb.dsp | faust | -----------------------------------------------
freeverb by "Grame"
-----------------------------------------------
Filter Parameters
wetslider = 0.5 + vslider("wet_dry[name:wet/dry]", 0, -0.5, 0.5, 0.1);
Reverb components
---------------------------------------------------------------- | declare name "Freeverb";
declare category "Reverb";
declare version "0.01";
declare author "brummer";
declare license "BSD";
declare copyright "(c)brummer 2008";
import("math.lib");
import("music.lib");
import("effect.lib");
import("filter.lib");
import("guitarix.lib");
combtuningL1 = 1116;
combtuningL2 = 1188;
combtuningL3 = 1277;
combtuningL4 = 1356;
combtuningL5 = 1422;
combtuningL6 = 1491;
combtuningL7 = 1557;
combtuningL8 = 1617;
allpasstuningL1 = 556;
allpasstuningL2 = 441;
allpasstuningL3 = 341;
allpasstuningL4 = 225;
roomsizeSlider = vslider("RoomSize", 0.5, 0, 1, 0.025)*0.28 + 0.7;
dampslider = vslider("damp",0.5, 0, 1, 0.025);
combfeed = roomsizeSlider;
wet_dry = vslider("wet_dry[name:wet/dry]", 50, 0, 100, 1) : /(100);
dry = 1 - wet_dry;
monoReverb(fb1, fb2, damp, spread)
= _ <: comb(combtuningL1+spread, fb1, damp),
comb(combtuningL2+spread, fb1, damp),
comb(combtuningL3+spread, fb1, damp),
comb(combtuningL4+spread, fb1, damp),
comb(combtuningL5+spread, fb1, damp),
comb(combtuningL6+spread, fb1, damp),
comb(combtuningL7+spread, fb1, damp),
comb(combtuningL8+spread, fb1, damp)
+>
allpass (allpasstuningL1+spread, fb2)
: allpass (allpasstuningL2+spread, fb2)
: allpass (allpasstuningL3+spread, fb2)
: allpass (allpasstuningL4+spread, fb2)
;
fxctrl(g,w,Fx) = _ <: (*(g) <: _ + Fx ), *(1-w) +> _;
process = _<:*(dry),(*(wet_dry):fxctrl(0.015,wet_dry, monoReverb(combfeed, 0.5, dampslider, 23))):>_;
|
9e5e2201bd625c2341db0cc713321d4cf858ed139af9f360d49ae8b301e67b20 | rodamaralgeo/guitarix | peak_eq.dsp | declare id "eq";
declare name "Peak EQ";
declare category "Tone Control";
declare license "BSD";
declare copyright "(c)GRAME 2006";
import("stdfaust.lib");
import("guitarix.lib");
//------------------------- Process --------------------------------
// USAGE: _ : fi.peak_eq(Lfx,fx,B) : _;
// where
// Lfx = level (dB) at fx
// fx = peak frequency (Hz)
// B = bandwidth (B) of peak in Hz
process = fi.peak_eq(vslider("level1 [name:Sub][tooltip:gain (dB)]", 0, -50, 50, 0.1),vslider("peak1 [tooltip:frequency (hz)]", 110, 20, 22000, 1),vslider("bandwidth1 [name:Q][tooltip:bandwidth (hz)]", 41, 5, 20000, 1))
: fi.peak_eq(vslider("level2 [name:Low][tooltip:gain (dB)]", 0, -50, 50, 0.1),vslider("peak2 [tooltip:frequency (hz)]", 440, 20, 22000, 1),vslider("bandwidth2 [name:Q][tooltip:bandwidth (hz)]", 220, 5, 20000, 1))
: fi.peak_eq(vslider("level3 [name:Mid][tooltip:gain (dB)]", 0, -50, 50, 0.1),vslider("peak3 [tooltip:frequency (hz)]", 1760, 20, 22000, 1),vslider("bandwidth3 [name:Q][tooltip:bandwidth (hz)]", 880, 5, 20000, 1))
: fi.peak_eq(vslider("level4 [name:High][tooltip:gain (dB)]", 0, -50, 50, 0.1),vslider("peak4 [tooltip:frequency (hz)]", 3520, 20, 22000, 1),vslider("bandwidth4 [name:Q][tooltip:bandwidth (hz)]", 1760, 5, 20000, 1))
;
| https://raw.githubusercontent.com/rodamaralgeo/guitarix/09cda116411bee85e2c9077ab99186cdfab6a314/trunk/src/faust/peak_eq.dsp | faust | ------------------------- Process --------------------------------
USAGE: _ : fi.peak_eq(Lfx,fx,B) : _;
where
Lfx = level (dB) at fx
fx = peak frequency (Hz)
B = bandwidth (B) of peak in Hz | declare id "eq";
declare name "Peak EQ";
declare category "Tone Control";
declare license "BSD";
declare copyright "(c)GRAME 2006";
import("stdfaust.lib");
import("guitarix.lib");
process = fi.peak_eq(vslider("level1 [name:Sub][tooltip:gain (dB)]", 0, -50, 50, 0.1),vslider("peak1 [tooltip:frequency (hz)]", 110, 20, 22000, 1),vslider("bandwidth1 [name:Q][tooltip:bandwidth (hz)]", 41, 5, 20000, 1))
: fi.peak_eq(vslider("level2 [name:Low][tooltip:gain (dB)]", 0, -50, 50, 0.1),vslider("peak2 [tooltip:frequency (hz)]", 440, 20, 22000, 1),vslider("bandwidth2 [name:Q][tooltip:bandwidth (hz)]", 220, 5, 20000, 1))
: fi.peak_eq(vslider("level3 [name:Mid][tooltip:gain (dB)]", 0, -50, 50, 0.1),vslider("peak3 [tooltip:frequency (hz)]", 1760, 20, 22000, 1),vslider("bandwidth3 [name:Q][tooltip:bandwidth (hz)]", 880, 5, 20000, 1))
: fi.peak_eq(vslider("level4 [name:High][tooltip:gain (dB)]", 0, -50, 50, 0.1),vslider("peak4 [tooltip:frequency (hz)]", 3520, 20, 22000, 1),vslider("bandwidth4 [name:Q][tooltip:bandwidth (hz)]", 1760, 5, 20000, 1))
;
|
f937e9ec3dd0d388a85ae81d84aebd82f5b82bb33bf14cb39abbe59d49d6531c | ntonnaett/guitarix | chorus_mono.dsp | declare name "Chorus Mono";
declare category "Modulation";
declare author "Albert Graef";
declare version "1.0";
import("music.lib");
import("filter.lib");
level = hslider("level[name:Level]", 0.5, 0, 1, 0.01);
freq = hslider("freq[name:Freq]", 2, 0, 10, 0.01);
dtime = 0.02 ;//hslider("delay", 0.02, 0, 0.2, 0.01): smooth(0.999);
depth = 0.02 ;//hslider("depth", 0.02, 0, 1, 0.01);
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): component("chorus.dsp").chorus(dtime,freq,depth,0)):>_;
| https://raw.githubusercontent.com/ntonnaett/guitarix/e5ce36c3a693eeada3cb70425ec09f8d6f91e78c/trunk/src/faust/chorus_mono.dsp | faust | hslider("delay", 0.02, 0, 0.2, 0.01): smooth(0.999);
hslider("depth", 0.02, 0, 1, 0.01); | declare name "Chorus Mono";
declare category "Modulation";
declare author "Albert Graef";
declare version "1.0";
import("music.lib");
import("filter.lib");
level = hslider("level[name:Level]", 0.5, 0, 1, 0.01);
freq = hslider("freq[name:Freq]", 2, 0, 10, 0.01);
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): component("chorus.dsp").chorus(dtime,freq,depth,0)):>_;
|
4f9305a459f1d82a215aa90442c7a78b106e18e06c04de2ea720709ea30cbff9 | brummer10/guitarix | digital_delay.dsp | declare id "dide";
declare name "Digital Delay";
declare shortname "Digi Delay";
declare category "Echo / Delay";
declare description "Digital Delay";
import("stdfaust.lib");
import("guitarix.lib");
guitarboost = fi.highpass(3,80) : fi.peak_eq(-3,200,50): fi.peak_eq(1.5,375,125) : fi.peak_eq(3,2000,500) : fi.peak_eq(-6, 4000, 1000) : fi.peak_eq(2,8000,1000) : fi.lowpass(3,12000) : *(0.8);
tape = fi.allpassn(4,(-0.6, 0.4, -0.2, 0.1));
tape2 = fi.allpassn(4,(-0.2, -0.3, 0.4, 0.5));
sel(sl) = environment {
a = min(2, max(0,sl));
b = min(2, max(0,sl-1));
c = min(2, max(0,sl-2));
};
selfilter(n) = _<: a <: b <: c :>_ with {
a = select3(sel(n).a,_,guitarboost,_);
b = select3(sel(n).b,_,tape,_);
c = select3(sel(n).c,_,tape2,_);
};
tempo2note = ffunction(float B2N(int,float), "beat.h", "");
dide = _<:*(dry),(delx(B) : *(wet)):>_ with {
B = checkbox("Freeze[name:Freeze][tooltip:Freeze the current delay]");
delx(n) = _<:(*(1.0-B):digd), !:>_;
digd = (+:(delayed:lback(B)))~(fback(B)) with {
fback(n) = _<:select2(n, feed, freeze):>_;
lback(n) = _<:select2(n, *(level), *(1.0)):>_;
feed = *(feedback): fi.highpass(2,hifr1):fi.lowpass(2,lofr1) : selfilter(sl);
freeze = *(1.0);
sl = hslider("mode[name:Mode][enum:plain|presence|tape|tape2]",0,0,3,1);
delayed = de.sdelay(N, interp, min(2^19,(tempo2note(tact,dbpm)))) with {
dtime = hslider("delay[name:Delay][tooltip:Delay Time in ms]", 2500, 0.1, 5000, 0.1)*ma.SR/1000.0;
dbpm = ba.tempo(hslider("bpm[name:BPM][tooltip:Delay in Beats per Minute]",120,24,360,1));
tact = hslider("notes[name:Notes][enum:Dotted 1/2 note|1/2 note|1/2 note triplets|
Dotted 1/4 note|1/4 note|1/4 note triplets|Dotted 1/8 note|1/8 note|1/8 note triplets|
Dotted 1/16 note|1/16 note|1/16 note triplets|Dotted 1/32 note|1/32 note|1/32 note triplets|
Dotted 1/64 note|1/64 note|1/64 note triplets][tooltip:Note setting for bpm]",4,0,17,1);
interp = 100*ma.SR/1000.0;
N = int( 2^19 ) ;
};
level = vslider("level[name:Level][tooltip:Percentage of the de.delay gain level]", 50, 1, 100, 1)/100 ;
feedback = vslider("feedback[name:Feedback][tooltip:Percentage of the feedback level in the de.delay loop]", 50, 1, 100, 1)/100 ;
hifr1 = hslider("highpass[name:Hipass][tooltip: Highpass filter frequency in the feedback loop]" ,120 , 20, 20000, 1);
lofr1 = hslider("howpass [name:Lopass][tooltip: Lowpass filter frequency in the feedback loop]" ,12000 , 20, 20000, 1);
};
wet = vslider("gain[name:Gain][tooltip:Overall gain of the de.delay line in percent]", 100, 0, 120, 1) : /(100);
dry = 1 ;
};
process = dide;
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/digital_delay.dsp | faust | declare id "dide";
declare name "Digital Delay";
declare shortname "Digi Delay";
declare category "Echo / Delay";
declare description "Digital Delay";
import("stdfaust.lib");
import("guitarix.lib");
guitarboost = fi.highpass(3,80) : fi.peak_eq(-3,200,50): fi.peak_eq(1.5,375,125) : fi.peak_eq(3,2000,500) : fi.peak_eq(-6, 4000, 1000) : fi.peak_eq(2,8000,1000) : fi.lowpass(3,12000) : *(0.8);
tape = fi.allpassn(4,(-0.6, 0.4, -0.2, 0.1));
tape2 = fi.allpassn(4,(-0.2, -0.3, 0.4, 0.5));
sel(sl) = environment {
a = min(2, max(0,sl));
b = min(2, max(0,sl-1));
c = min(2, max(0,sl-2));
};
selfilter(n) = _<: a <: b <: c :>_ with {
a = select3(sel(n).a,_,guitarboost,_);
b = select3(sel(n).b,_,tape,_);
c = select3(sel(n).c,_,tape2,_);
};
tempo2note = ffunction(float B2N(int,float), "beat.h", "");
dide = _<:*(dry),(delx(B) : *(wet)):>_ with {
B = checkbox("Freeze[name:Freeze][tooltip:Freeze the current delay]");
delx(n) = _<:(*(1.0-B):digd), !:>_;
digd = (+:(delayed:lback(B)))~(fback(B)) with {
fback(n) = _<:select2(n, feed, freeze):>_;
lback(n) = _<:select2(n, *(level), *(1.0)):>_;
feed = *(feedback): fi.highpass(2,hifr1):fi.lowpass(2,lofr1) : selfilter(sl);
freeze = *(1.0);
sl = hslider("mode[name:Mode][enum:plain|presence|tape|tape2]",0,0,3,1);
delayed = de.sdelay(N, interp, min(2^19,(tempo2note(tact,dbpm)))) with {
dtime = hslider("delay[name:Delay][tooltip:Delay Time in ms]", 2500, 0.1, 5000, 0.1)*ma.SR/1000.0;
dbpm = ba.tempo(hslider("bpm[name:BPM][tooltip:Delay in Beats per Minute]",120,24,360,1));
tact = hslider("notes[name:Notes][enum:Dotted 1/2 note|1/2 note|1/2 note triplets|
Dotted 1/4 note|1/4 note|1/4 note triplets|Dotted 1/8 note|1/8 note|1/8 note triplets|
Dotted 1/16 note|1/16 note|1/16 note triplets|Dotted 1/32 note|1/32 note|1/32 note triplets|
Dotted 1/64 note|1/64 note|1/64 note triplets][tooltip:Note setting for bpm]",4,0,17,1);
interp = 100*ma.SR/1000.0;
N = int( 2^19 ) ;
};
level = vslider("level[name:Level][tooltip:Percentage of the de.delay gain level]", 50, 1, 100, 1)/100 ;
feedback = vslider("feedback[name:Feedback][tooltip:Percentage of the feedback level in the de.delay loop]", 50, 1, 100, 1)/100 ;
hifr1 = hslider("highpass[name:Hipass][tooltip: Highpass filter frequency in the feedback loop]" ,120 , 20, 20000, 1);
lofr1 = hslider("howpass [name:Lopass][tooltip: Lowpass filter frequency in the feedback loop]" ,12000 , 20, 20000, 1);
};
wet = vslider("gain[name:Gain][tooltip:Overall gain of the de.delay line in percent]", 100, 0, 120, 1) : /(100);
dry = 1 ;
};
process = dide;
|
|
1b603224f812c758704efa01507e399b9e0116ed9d007d74fdbd47e2667b102c | Blumealc/43PR3 | spanner9.dsp | declare filename "spanner9.dsp"; declare name "spanner9"; declare compilation_options "-single -scal -I libraries/ -I project/ -lang wasm";
declare library_path0 "/libraries/stdfaust.lib";
declare library_path1 "/libraries/maths.lib";
declare library_path2 "/libraries/signals.lib";
declare library_path3 "/libraries/basics.lib";
declare library_path4 "/libraries/platform.lib";
declare author "THC-SCALAS";
declare basics_lib_name "Faust Basic Element Library";
declare basics_lib_version "0.6";
declare copyright "Cecilia-labs";
declare filename "FaustDSP";
declare license "BSD";
declare maths_lib_author "GRAME";
declare maths_lib_copyright "GRAME";
declare maths_lib_license "LGPL with exception";
declare maths_lib_name "Faust Math Library";
declare maths_lib_version "2.5";
declare name "spanner_1x8";
declare platform_lib_name "Generic Platform Library";
declare platform_lib_version "0.2";
declare signals_lib_name "Faust Signal Routing Library";
declare signals_lib_version "0.1";
declare version "1.0";
process = \(x1).((x1,(10,((((0.5f,(0.0f,(((nentry("Angle[style:knob]", 0.0f, -36000000.0f, 36000000.0f, 0.10000000000000001f) : \(x2).(\(x3).(((1.0f,(0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x2 : *),((0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x3 : *) : +)~_)),3.1415926535897931f : *),180 : /) : - : cos) : *),0.5f : -),(hslider("Separation", 12.0f, 0.0f, 100.0f, 0.01f) : \(x2).(\(x3).(((1.0f,(0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x2 : *),((0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x3 : *) : +)~_)) : *),0.20000000000000001f : *) : pow) : *),(x1,(10,((((0.5f,(0.69813170079773179f,(((nentry("Angle[style:knob]", 0.0f, -36000000.0f, 36000000.0f, 0.10000000000000001f) : \(x2).(\(x3).(((1.0f,(0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x2 : *),((0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x3 : *) : +)~_)),3.1415926535897931f : *),180 : /) : - : cos) : *),0.5f : -),(hslider("Separation", 12.0f, 0.0f, 100.0f, 0.01f) : \(x2).(\(x3).(((1.0f,(0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x2 : *),((0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x3 : *) : +)~_)) : *),0.20000000000000001f : *) : pow) : *),(x1,(10,((((0.5f,(1.3962634015954636f,(((nentry("Angle[style:knob]", 0.0f, -36000000.0f, 36000000.0f, 0.10000000000000001f) : \(x2).(\(x3).(((1.0f,(0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x2 : *),((0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x3 : *) : +)~_)),3.1415926535897931f : *),180 : /) : - : cos) : *),0.5f : -),(hslider("Separation", 12.0f, 0.0f, 100.0f, 0.01f) : \(x2).(\(x3).(((1.0f,(0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x2 : *),((0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x3 : *) : +)~_)) : *),0.20000000000000001f : *) : pow) : *),(x1,(10,((((0.5f,(2.0943951023931953f,(((nentry("Angle[style:knob]", 0.0f, -36000000.0f, 36000000.0f, 0.10000000000000001f) : \(x2).(\(x3).(((1.0f,(0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x2 : *),((0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x3 : *) : +)~_)),3.1415926535897931f : *),180 : /) : - : cos) : *),0.5f : -),(hslider("Separation", 12.0f, 0.0f, 100.0f, 0.01f) : \(x2).(\(x3).(((1.0f,(0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x2 : *),((0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x3 : *) : +)~_)) : *),0.20000000000000001f : *) : pow) : *),(x1,(10,((((0.5f,(2.7925268031909272f,(((nentry("Angle[style:knob]", 0.0f, -36000000.0f, 36000000.0f, 0.10000000000000001f) : \(x2).(\(x3).(((1.0f,(0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x2 : *),((0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x3 : *) : +)~_)),3.1415926535897931f : *),180 : /) : - : cos) : *),0.5f : -),(hslider("Separation", 12.0f, 0.0f, 100.0f, 0.01f) : \(x2).(\(x3).(((1.0f,(0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x2 : *),((0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x3 : *) : +)~_)) : *),0.20000000000000001f : *) : pow) : *),(x1,(10,((((0.5f,(3.4906585039886591f,(((nentry("Angle[style:knob]", 0.0f, -36000000.0f, 36000000.0f, 0.10000000000000001f) : \(x2).(\(x3).(((1.0f,(0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x2 : *),((0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x3 : *) : +)~_)),3.1415926535897931f : *),180 : /) : - : cos) : *),0.5f : -),(hslider("Separation", 12.0f, 0.0f, 100.0f, 0.01f) : \(x2).(\(x3).(((1.0f,(0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x2 : *),((0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x3 : *) : +)~_)) : *),0.20000000000000001f : *) : pow) : *),(x1,(10,((((0.5f,(4.1887902047863905f,(((nentry("Angle[style:knob]", 0.0f, -36000000.0f, 36000000.0f, 0.10000000000000001f) : \(x2).(\(x3).(((1.0f,(0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x2 : *),((0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x3 : *) : +)~_)),3.1415926535897931f : *),180 : /) : - : cos) : *),0.5f : -),(hslider("Separation", 12.0f, 0.0f, 100.0f, 0.01f) : \(x2).(\(x3).(((1.0f,(0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x2 : *),((0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x3 : *) : +)~_)) : *),0.20000000000000001f : *) : pow) : *),(x1,(10,((((0.5f,(4.8869219055841224f,(((nentry("Angle[style:knob]", 0.0f, -36000000.0f, 36000000.0f, 0.10000000000000001f) : \(x2).(\(x3).(((1.0f,(0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x2 : *),((0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x3 : *) : +)~_)),3.1415926535897931f : *),180 : /) : - : cos) : *),0.5f : -),(hslider("Separation", 12.0f, 0.0f, 100.0f, 0.01f) : \(x2).(\(x3).(((1.0f,(0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x2 : *),((0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x3 : *) : +)~_)) : *),0.20000000000000001f : *) : pow) : *),(x1,(10,((((0.5f,(5.5850536063818543f,(((nentry("Angle[style:knob]", 0.0f, -36000000.0f, 36000000.0f, 0.10000000000000001f) : \(x2).(\(x3).(((1.0f,(0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x2 : *),((0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x3 : *) : +)~_)),3.1415926535897931f : *),180 : /) : - : cos) : *),0.5f : -),(hslider("Separation", 12.0f, 0.0f, 100.0f, 0.01f) : \(x2).(\(x3).(((1.0f,(0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x2 : *),((0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x3 : *) : +)~_)) : *),0.20000000000000001f : *) : pow) : *));
| https://raw.githubusercontent.com/Blumealc/43PR3/0bd1e28c690d43d2905a0a06e69a60e55b0b6116/spanner9%7E.mxo/spanner9.dsp | faust | declare filename "spanner9.dsp"; declare name "spanner9"; declare compilation_options "-single -scal -I libraries/ -I project/ -lang wasm";
declare library_path0 "/libraries/stdfaust.lib";
declare library_path1 "/libraries/maths.lib";
declare library_path2 "/libraries/signals.lib";
declare library_path3 "/libraries/basics.lib";
declare library_path4 "/libraries/platform.lib";
declare author "THC-SCALAS";
declare basics_lib_name "Faust Basic Element Library";
declare basics_lib_version "0.6";
declare copyright "Cecilia-labs";
declare filename "FaustDSP";
declare license "BSD";
declare maths_lib_author "GRAME";
declare maths_lib_copyright "GRAME";
declare maths_lib_license "LGPL with exception";
declare maths_lib_name "Faust Math Library";
declare maths_lib_version "2.5";
declare name "spanner_1x8";
declare platform_lib_name "Generic Platform Library";
declare platform_lib_version "0.2";
declare signals_lib_name "Faust Signal Routing Library";
declare signals_lib_version "0.1";
declare version "1.0";
process = \(x1).((x1,(10,((((0.5f,(0.0f,(((nentry("Angle[style:knob]", 0.0f, -36000000.0f, 36000000.0f, 0.10000000000000001f) : \(x2).(\(x3).(((1.0f,(0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x2 : *),((0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x3 : *) : +)~_)),3.1415926535897931f : *),180 : /) : - : cos) : *),0.5f : -),(hslider("Separation", 12.0f, 0.0f, 100.0f, 0.01f) : \(x2).(\(x3).(((1.0f,(0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x2 : *),((0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x3 : *) : +)~_)) : *),0.20000000000000001f : *) : pow) : *),(x1,(10,((((0.5f,(0.69813170079773179f,(((nentry("Angle[style:knob]", 0.0f, -36000000.0f, 36000000.0f, 0.10000000000000001f) : \(x2).(\(x3).(((1.0f,(0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x2 : *),((0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x3 : *) : +)~_)),3.1415926535897931f : *),180 : /) : - : cos) : *),0.5f : -),(hslider("Separation", 12.0f, 0.0f, 100.0f, 0.01f) : \(x2).(\(x3).(((1.0f,(0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x2 : *),((0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x3 : *) : +)~_)) : *),0.20000000000000001f : *) : pow) : *),(x1,(10,((((0.5f,(1.3962634015954636f,(((nentry("Angle[style:knob]", 0.0f, -36000000.0f, 36000000.0f, 0.10000000000000001f) : \(x2).(\(x3).(((1.0f,(0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x2 : *),((0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x3 : *) : +)~_)),3.1415926535897931f : *),180 : /) : - : cos) : *),0.5f : -),(hslider("Separation", 12.0f, 0.0f, 100.0f, 0.01f) : \(x2).(\(x3).(((1.0f,(0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x2 : *),((0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x3 : *) : +)~_)) : *),0.20000000000000001f : *) : pow) : *),(x1,(10,((((0.5f,(2.0943951023931953f,(((nentry("Angle[style:knob]", 0.0f, -36000000.0f, 36000000.0f, 0.10000000000000001f) : \(x2).(\(x3).(((1.0f,(0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x2 : *),((0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x3 : *) : +)~_)),3.1415926535897931f : *),180 : /) : - : cos) : *),0.5f : -),(hslider("Separation", 12.0f, 0.0f, 100.0f, 0.01f) : \(x2).(\(x3).(((1.0f,(0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x2 : *),((0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x3 : *) : +)~_)) : *),0.20000000000000001f : *) : pow) : *),(x1,(10,((((0.5f,(2.7925268031909272f,(((nentry("Angle[style:knob]", 0.0f, -36000000.0f, 36000000.0f, 0.10000000000000001f) : \(x2).(\(x3).(((1.0f,(0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x2 : *),((0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x3 : *) : +)~_)),3.1415926535897931f : *),180 : /) : - : cos) : *),0.5f : -),(hslider("Separation", 12.0f, 0.0f, 100.0f, 0.01f) : \(x2).(\(x3).(((1.0f,(0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x2 : *),((0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x3 : *) : +)~_)) : *),0.20000000000000001f : *) : pow) : *),(x1,(10,((((0.5f,(3.4906585039886591f,(((nentry("Angle[style:knob]", 0.0f, -36000000.0f, 36000000.0f, 0.10000000000000001f) : \(x2).(\(x3).(((1.0f,(0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x2 : *),((0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x3 : *) : +)~_)),3.1415926535897931f : *),180 : /) : - : cos) : *),0.5f : -),(hslider("Separation", 12.0f, 0.0f, 100.0f, 0.01f) : \(x2).(\(x3).(((1.0f,(0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x2 : *),((0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x3 : *) : +)~_)) : *),0.20000000000000001f : *) : pow) : *),(x1,(10,((((0.5f,(4.1887902047863905f,(((nentry("Angle[style:knob]", 0.0f, -36000000.0f, 36000000.0f, 0.10000000000000001f) : \(x2).(\(x3).(((1.0f,(0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x2 : *),((0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x3 : *) : +)~_)),3.1415926535897931f : *),180 : /) : - : cos) : *),0.5f : -),(hslider("Separation", 12.0f, 0.0f, 100.0f, 0.01f) : \(x2).(\(x3).(((1.0f,(0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x2 : *),((0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x3 : *) : +)~_)) : *),0.20000000000000001f : *) : pow) : *),(x1,(10,((((0.5f,(4.8869219055841224f,(((nentry("Angle[style:knob]", 0.0f, -36000000.0f, 36000000.0f, 0.10000000000000001f) : \(x2).(\(x3).(((1.0f,(0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x2 : *),((0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x3 : *) : +)~_)),3.1415926535897931f : *),180 : /) : - : cos) : *),0.5f : -),(hslider("Separation", 12.0f, 0.0f, 100.0f, 0.01f) : \(x2).(\(x3).(((1.0f,(0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x2 : *),((0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x3 : *) : +)~_)) : *),0.20000000000000001f : *) : pow) : *),(x1,(10,((((0.5f,(5.5850536063818543f,(((nentry("Angle[style:knob]", 0.0f, -36000000.0f, 36000000.0f, 0.10000000000000001f) : \(x2).(\(x3).(((1.0f,(0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x2 : *),((0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x3 : *) : +)~_)),3.1415926535897931f : *),180 : /) : - : cos) : *),0.5f : -),(hslider("Separation", 12.0f, 0.0f, 100.0f, 0.01f) : \(x2).(\(x3).(((1.0f,(0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x2 : *),((0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x3 : *) : +)~_)) : *),0.20000000000000001f : *) : pow) : *));
|
|
c5f4f587c58469025868cf825b98fbfaab89d424be0bc5df1c431b249fbe6374 | brummer10/guitarix | tonecontroll.dsp | declare id "tonemodul";
declare name "3 Band EQ";
declare category "Tone Control";
declare version "0.01";
declare author "brummer";
declare license "BSD";
declare copyright "(c)brummer 2008";
import("stdfaust.lib");
import("guitarix.lib");
F = 600; //nentry("split_low_freq", 250, 20, 600, 10);
F1 = 1200; //nentry("split_middle_freq", 650, 600, 1250, 10);
F2 = 2400; //nentry("split_high_freq", 1250, 1250, 12000, 10);
/**********************************************************************
*** this part is included here for backward compatibility from 0.9.27 to
*** 0.9.24
***********************************************************************/
//------------------------------ ba.count and ba.take --------------------------------------
countN ((xs, xxs)) = 1 + countN(xxs);
countN (xx) = 1;
takeN (1, (xs, xxs)) = xs;
takeN (1, xs) = xs;
takeN (nn, (xs, xxs)) = takeN (nn-1, xxs);
//------------------------------ low/high-passfilters --------------------------------------
tf1N(b0,b1,a1) = _ <: *(b0), (mem : *(b1)) :> + ~ *(0-a1);
tf2N(b0,b1,b2,a1,a2) = sub ~ conv2(a1,a2) : conv3(b0,b1,b2)
with {
conv3(k0,k1,k2,x) = k0*x + k1*x' + k2*x'';
conv2(k0,k1,x) = k0*x + k1*x';
sub(x,y) = y-x;
};
tf1sN(b1,b0,a0,w1) = tf1N(b0d,b1d,a1d)
with {
c = 1/tan((w1)*0.5/ma.SR); // bilinear-transform scale-factor
d = a0 + c;
b1d = (b0 - b1*c) / d;
b0d = (b0 + b1*c) / d;
a1d = (a0 - c) / d;
};
tf2sN(b2,b1,b0,a1,a0,w1) = tf2N(b0d,b1d,b2d,a1d,a2d)
with {
c = 1/tan((w1)*0.5/ma.SR); // bilinear-transform scale-factor
csq = c*c;
d = a0 + a1 * c + csq;
b0d = (b0 + b1 * c + b2 * csq)/d;
b1d = 2 * (b0 - b2 * csq)/d;
b2d = (b0 - b1 * c + b2 * csq)/d;
a1d = 2 * (a0 - csq)/d;
a2d = (a0 - a1*c + csq)/d;
};
lowpassN(N,fc) = lowpass0_highpass1N(0,N,fc);
highpassN(N,fc) = lowpass0_highpass1N(1,N,fc);
lowpass0_highpass1N(s,N,fc) = lphpr(s,N,N,fc)
with {
lphpr(s,0,N,fc) = _;
lphpr(s,1,N,fc) = tf1sN(s,1-s,1,2*ma.PI*fc);
lphpr(s,O,N,fc) = lphpr(s,(O-2),N,fc) : tf2sN(s,0,1-s,a1s,1,w1) with {
parity = N % 2;
S = (O-parity)/2; // current section number
a1s = -2*cos(-ma.PI + (1-parity)*ma.PI/(2*N) + (S-1+parity)*ma.PI/N);
w1 = 2*ma.PI*fc;
};
};
//------------------------------ an.analyzer --------------------------------------
analyzern(O,lfreqs) = _ <: bsplit(nb) with
{
nb = countN(lfreqs);
fc(n) = takeN(n, lfreqs);
lp(n) = lowpassN(O,fc(n));
hp(n) = highpassN(O,fc(n));
bsplit(0) = _;
bsplit(i) = hp(i), (lp(i) <: bsplit(i-1));
};
analyzerN(lfreqs) = analyzern(3,lfreqs);
filterbankn(O,lfreqs) = analyzern(O,lfreqs) : delayeq with
{
nb = ba.count(lfreqs);
fc(n) = ba.take(n, lfreqs);
ap(n) = fi.highpass_plus_lowpass(O,fc(n));
delayeq = par(i,nb-1,apchain(nb-1-i)),_,_;
apchain(0) = _;
apchain(i) = ap(i) : apchain(i-1);
};
filterbankN(lfreqs) = fi.filterbank(3,lfreqs);
/**********************************************************************
*** end for backward compatibility from 0.9.27 to
*** 0.9.24 , it could removed when switch completely to > 0.9.27
***********************************************************************/
//----------tone_controll---------
t = vslider("Treble[name:Treble", 0., -5., 5, 0.01): ba.db2linear : smoothi(0.999);
m = vslider("Middle[name:Middle", 0., -5., 5, 0.01): ba.db2linear : smoothi(0.999);
l = vslider("Bass[name:Bass", 0., -5., 5, 0.01): ba.db2linear : smoothi(0.999) ;
//tstack = component("tonestack.dsp");
sharp = vslider("sharper[name:Sharp]", -2, -2.5, 5, 0.1);
press = -5. * sharp;
attack = 0.005;
release = 5.0;
knee = 10.5;
ratio = 3.0;
env = abs : max(1);
compress(env) = level * (1-r)/r
with {
level = env : h ~ _ : ba.linear2db : (_ - press ) : max(0)
with {
h(x,y) = f*x+(1-f)*y with { f = (x<y)*ga+(x>=y)*gr; };
ga = exp(-1/(ma.SR*attack));
gr = exp(-1/(ma.SR*release));
};
p = level/(knee+eps) : max(0) : min(1) with { eps = 0.001; };
r = 1 - p + p * ratio;
};
comp1(x) = g(x) * x
with {
g = env : compress + sharp : ba.db2linear;
};
comp = BP( comp1);
tone_controll = _ : filterbankN((F,F2)): *(t),*(m),*(l):>_;
process = (tone_controll : comp) ,(tone_controll : comp);
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/tonecontroll.dsp | faust | nentry("split_low_freq", 250, 20, 600, 10);
nentry("split_middle_freq", 650, 600, 1250, 10);
nentry("split_high_freq", 1250, 1250, 12000, 10);
*********************************************************************
*** this part is included here for backward compatibility from 0.9.27 to
*** 0.9.24
**********************************************************************
------------------------------ ba.count and ba.take --------------------------------------
------------------------------ low/high-passfilters --------------------------------------
bilinear-transform scale-factor
bilinear-transform scale-factor
current section number
------------------------------ an.analyzer --------------------------------------
*********************************************************************
*** end for backward compatibility from 0.9.27 to
*** 0.9.24 , it could removed when switch completely to > 0.9.27
**********************************************************************
----------tone_controll---------
tstack = component("tonestack.dsp"); | declare id "tonemodul";
declare name "3 Band EQ";
declare category "Tone Control";
declare version "0.01";
declare author "brummer";
declare license "BSD";
declare copyright "(c)brummer 2008";
import("stdfaust.lib");
import("guitarix.lib");
countN ((xs, xxs)) = 1 + countN(xxs);
countN (xx) = 1;
takeN (1, (xs, xxs)) = xs;
takeN (1, xs) = xs;
takeN (nn, (xs, xxs)) = takeN (nn-1, xxs);
tf1N(b0,b1,a1) = _ <: *(b0), (mem : *(b1)) :> + ~ *(0-a1);
tf2N(b0,b1,b2,a1,a2) = sub ~ conv2(a1,a2) : conv3(b0,b1,b2)
with {
conv3(k0,k1,k2,x) = k0*x + k1*x' + k2*x'';
conv2(k0,k1,x) = k0*x + k1*x';
sub(x,y) = y-x;
};
tf1sN(b1,b0,a0,w1) = tf1N(b0d,b1d,a1d)
with {
d = a0 + c;
b1d = (b0 - b1*c) / d;
b0d = (b0 + b1*c) / d;
a1d = (a0 - c) / d;
};
tf2sN(b2,b1,b0,a1,a0,w1) = tf2N(b0d,b1d,b2d,a1d,a2d)
with {
csq = c*c;
d = a0 + a1 * c + csq;
b0d = (b0 + b1 * c + b2 * csq)/d;
b1d = 2 * (b0 - b2 * csq)/d;
b2d = (b0 - b1 * c + b2 * csq)/d;
a1d = 2 * (a0 - csq)/d;
a2d = (a0 - a1*c + csq)/d;
};
lowpassN(N,fc) = lowpass0_highpass1N(0,N,fc);
highpassN(N,fc) = lowpass0_highpass1N(1,N,fc);
lowpass0_highpass1N(s,N,fc) = lphpr(s,N,N,fc)
with {
lphpr(s,0,N,fc) = _;
lphpr(s,1,N,fc) = tf1sN(s,1-s,1,2*ma.PI*fc);
lphpr(s,O,N,fc) = lphpr(s,(O-2),N,fc) : tf2sN(s,0,1-s,a1s,1,w1) with {
parity = N % 2;
a1s = -2*cos(-ma.PI + (1-parity)*ma.PI/(2*N) + (S-1+parity)*ma.PI/N);
w1 = 2*ma.PI*fc;
};
};
analyzern(O,lfreqs) = _ <: bsplit(nb) with
{
nb = countN(lfreqs);
fc(n) = takeN(n, lfreqs);
lp(n) = lowpassN(O,fc(n));
hp(n) = highpassN(O,fc(n));
bsplit(0) = _;
bsplit(i) = hp(i), (lp(i) <: bsplit(i-1));
};
analyzerN(lfreqs) = analyzern(3,lfreqs);
filterbankn(O,lfreqs) = analyzern(O,lfreqs) : delayeq with
{
nb = ba.count(lfreqs);
fc(n) = ba.take(n, lfreqs);
ap(n) = fi.highpass_plus_lowpass(O,fc(n));
delayeq = par(i,nb-1,apchain(nb-1-i)),_,_;
apchain(0) = _;
apchain(i) = ap(i) : apchain(i-1);
};
filterbankN(lfreqs) = fi.filterbank(3,lfreqs);
t = vslider("Treble[name:Treble", 0., -5., 5, 0.01): ba.db2linear : smoothi(0.999);
m = vslider("Middle[name:Middle", 0., -5., 5, 0.01): ba.db2linear : smoothi(0.999);
l = vslider("Bass[name:Bass", 0., -5., 5, 0.01): ba.db2linear : smoothi(0.999) ;
sharp = vslider("sharper[name:Sharp]", -2, -2.5, 5, 0.1);
press = -5. * sharp;
attack = 0.005;
release = 5.0;
knee = 10.5;
ratio = 3.0;
env = abs : max(1);
compress(env) = level * (1-r)/r
with {
level = env : h ~ _ : ba.linear2db : (_ - press ) : max(0)
with {
h(x,y) = f*x+(1-f)*y with { f = (x<y)*ga+(x>=y)*gr; };
ga = exp(-1/(ma.SR*attack));
gr = exp(-1/(ma.SR*release));
};
p = level/(knee+eps) : max(0) : min(1) with { eps = 0.001; };
r = 1 - p + p * ratio;
};
comp1(x) = g(x) * x
with {
g = env : compress + sharp : ba.db2linear;
};
comp = BP( comp1);
tone_controll = _ : filterbankN((F,F2)): *(t),*(m),*(l):>_;
process = (tone_controll : comp) ,(tone_controll : comp);
|
fc1e20ae5ec9e77b6d53df3bcea097d0880c7d3fcb8505c9974b510979e5cfeb | ntonnaett/guitarix | flanger.dsp | declare id "flanger";
declare name "Flanger";
declare category "Modulation";
declare license "BSD";
import("effect.lib");
import("guitarix.lib");
import("oscillator.lib");
flangerstereogx = *(level),*(level) : flangerstereoN(dmax,curdel1,curdel2,depth,fb,invert) // change to flanger_stereo for faust >= 0.9.27
with {
lfol = component("oscillator.lib").oscrs; // sine for left channel
lfor = component("oscillator.lib").oscrc; // cosine for right channel
dmax = 2048;
dflange = 0.001 * SR * hslider("flange delay[name:Delay][unit:ms]", 10, 0, 20, 0.01);
odflange = 0.001 * SR * hslider("flange delay offset[name:Offset][unit:ms]", 1, 0, 20, 0.01);
//freq = hslider("LFO freq [unit:Hz]", 0.2, 0, 5, 0.01);
freq = hslider("lfobpm[name:BPM][unit:bpm][tooltip:LFO in Beats per Minute]",24,24,360,1)/60;
depth = hslider("depth[name:Depth]", 1, 0, 1, 0.01);
fb = hslider("feedback gain[name:Feedback]", 0, 0, 1, 0.01);
invert = checkbox("invert[enum:linear|invert][name:Invert]");
level = hslider("level[name:Level][unit:dB]", 0, -60, 10, 0.1) : db2linear;
curdel1 = odflange+dflange*(1 + lfol(freq))/2;
curdel2 = odflange+dflange*(1 + lfor(freq))/2;
};
process = flangerstereogx;
| https://raw.githubusercontent.com/ntonnaett/guitarix/e5ce36c3a693eeada3cb70425ec09f8d6f91e78c/trunk/src/faust/flanger.dsp | faust | change to flanger_stereo for faust >= 0.9.27
sine for left channel
cosine for right channel
freq = hslider("LFO freq [unit:Hz]", 0.2, 0, 5, 0.01); | declare id "flanger";
declare name "Flanger";
declare category "Modulation";
declare license "BSD";
import("effect.lib");
import("guitarix.lib");
import("oscillator.lib");
with {
dmax = 2048;
dflange = 0.001 * SR * hslider("flange delay[name:Delay][unit:ms]", 10, 0, 20, 0.01);
odflange = 0.001 * SR * hslider("flange delay offset[name:Offset][unit:ms]", 1, 0, 20, 0.01);
freq = hslider("lfobpm[name:BPM][unit:bpm][tooltip:LFO in Beats per Minute]",24,24,360,1)/60;
depth = hslider("depth[name:Depth]", 1, 0, 1, 0.01);
fb = hslider("feedback gain[name:Feedback]", 0, 0, 1, 0.01);
invert = checkbox("invert[enum:linear|invert][name:Invert]");
level = hslider("level[name:Level][unit:dB]", 0, -60, 10, 0.1) : db2linear;
curdel1 = odflange+dflange*(1 + lfol(freq))/2;
curdel2 = odflange+dflange*(1 + lfor(freq))/2;
};
process = flangerstereogx;
|
0c91fe7bb3b21bbcb3f82211b8aac926cde486d242622fd450e53509b3dde4dc | brummer10/guitarix | gain.dsp | declare id "gain";
declare name "Volume";
declare category "Tone Control";
declare description "simple volume control";
import("stdfaust.lib");
import("guitarix.lib");
gain = vslider("gain[name:Gain][tooltip:gain (dB)]", 0, -40, 40, 0.1) : ba.db2linear : smoothi(0.999);
process = *(gain);
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/gain.dsp | faust | declare id "gain";
declare name "Volume";
declare category "Tone Control";
declare description "simple volume control";
import("stdfaust.lib");
import("guitarix.lib");
gain = vslider("gain[name:Gain][tooltip:gain (dB)]", 0, -40, 40, 0.1) : ba.db2linear : smoothi(0.999);
process = *(gain);
|
|
47ab9407046e747d8135052b49d729098139e87124ef534d64b7aeb31a5f0d23 | tonal-glyph/faustus | noisemetadata.dsp | <mdoc>
\title{<metadata>name</metadata>}
\author{<metadata>author</metadata>}
\date{\today}
\maketitle
\begin{tabular}{ll}
\hline
\textbf{name} & <metadata>name</metadata> \\
\textbf{version} & <metadata>version</metadata> \\
\textbf{author} & <metadata>author</metadata> \\
\textbf{license} & <metadata>license</metadata> \\
\textbf{copyright} & <metadata>copyright</metadata> \\
\hline
\end{tabular}
\bigskip
</mdoc>
//-----------------------------------------------------------------
// Noise generator and demo file for the Faust math documentation
//-----------------------------------------------------------------
declare name "NoiseMD"; // avoid same name as in noise.dsp
declare version "1.1";
declare author "Grame";
declare author "Yghe";
declare license "BSD";
declare copyright "(c)GRAME 2009";
<mdoc>
\section{Presentation of the "noise.dsp" Faust program}
This program describes a white noise generator with an interactive volume, using a random function.
\subsection{The random function}
</mdoc>
random = +(12345)~*(1103515245);
<mdoc>
The \texttt{random} function describes a generator of random numbers, which equation follows. You should notice hereby the use of an integer arithmetic on 32 bits, relying on integer wrapping for big numbers.
<equation>random</equation>
\subsection{The noise function}
</mdoc>
noise = random/2147483647.0;
<mdoc>
The white noise then corresponds to:
<equation>noise</equation>
\subsection{Just add a user interface element to play volume!}
</mdoc>
process = noise * vslider("Volume[style:knob]", 0.0697, 0, 1, 0.1);
<mdoc>
Endly, the sound level of this program is controlled by a user slider, which gives the following equation:
<equation>process</equation>
\section{Block-diagram schema of process}
This process is illustrated on figure 1.
<diagram>process</diagram>
\section{Notice of this documentation}
You might be careful of certain information and naming conventions used in this documentation:
<notice />
\section{Listing of the input code}
The following listing shows the input Faust code, parsed to compile this mathematical documentation.
<listing mdoctags="false" dependencies="false" distributed="false" />
</mdoc>
| https://raw.githubusercontent.com/tonal-glyph/faustus/cc887b115aceaee202edbdb37ee0e4087bfb5a33/tests/impulse-tests/dsp/noisemetadata.dsp | faust | -----------------------------------------------------------------
Noise generator and demo file for the Faust math documentation
-----------------------------------------------------------------
avoid same name as in noise.dsp | <mdoc>
\title{<metadata>name</metadata>}
\author{<metadata>author</metadata>}
\date{\today}
\maketitle
\begin{tabular}{ll}
\hline
\textbf{name} & <metadata>name</metadata> \\
\textbf{version} & <metadata>version</metadata> \\
\textbf{author} & <metadata>author</metadata> \\
\textbf{license} & <metadata>license</metadata> \\
\textbf{copyright} & <metadata>copyright</metadata> \\
\hline
\end{tabular}
\bigskip
</mdoc>
declare version "1.1";
declare author "Grame";
declare author "Yghe";
declare license "BSD";
declare copyright "(c)GRAME 2009";
<mdoc>
\section{Presentation of the "noise.dsp" Faust program}
This program describes a white noise generator with an interactive volume, using a random function.
\subsection{The random function}
</mdoc>
random = +(12345)~*(1103515245);
<mdoc>
The \texttt{random} function describes a generator of random numbers, which equation follows. You should notice hereby the use of an integer arithmetic on 32 bits, relying on integer wrapping for big numbers.
<equation>random</equation>
\subsection{The noise function}
</mdoc>
noise = random/2147483647.0;
<mdoc>
The white noise then corresponds to:
<equation>noise</equation>
\subsection{Just add a user interface element to play volume!}
</mdoc>
process = noise * vslider("Volume[style:knob]", 0.0697, 0, 1, 0.1);
<mdoc>
Endly, the sound level of this program is controlled by a user slider, which gives the following equation:
<equation>process</equation>
\section{Block-diagram schema of process}
This process is illustrated on figure 1.
<diagram>process</diagram>
\section{Notice of this documentation}
You might be careful of certain information and naming conventions used in this documentation:
<notice />
\section{Listing of the input code}
The following listing shows the input Faust code, parsed to compile this mathematical documentation.
<listing mdoctags="false" dependencies="false" distributed="false" />
</mdoc>
|
736b3dcf09d3a5f95cd53e8eb2c21933a2d2d39dc3e3473a902910a108c8fd3c | guysherman/Faust | prefix.dsp | declare name "prefix";
declare version "1.0";
declare author "Grame";
declare license "BSD";
declare copyright "(c)GRAME 2009";
//-------------------------------------------------
// Simple prefix test for documentator
//-------------------------------------------------
process = prefix (3,*(7));
| https://raw.githubusercontent.com/guysherman/Faust/4cac36e7fc493158e92946b3a840c4f611ac2844/tests/mathdoc/prefix.dsp | faust | -------------------------------------------------
Simple prefix test for documentator
------------------------------------------------- | declare name "prefix";
declare version "1.0";
declare author "Grame";
declare license "BSD";
declare copyright "(c)GRAME 2009";
process = prefix (3,*(7));
|
03c55cdd4999db4326f26314603e7473a7bcbad88e642603f9e7fa782dd33caa | CICM/pd-faustgen | mixer.dsp | declare name "mixer";
declare version "1.0";
declare author "Grame";
declare license "BSD";
declare copyright "(c)GRAME 2006";
process = _;
| https://raw.githubusercontent.com/CICM/pd-faustgen/9e2aaeabe94a7fab6928711050535ac12a1a591a/external/examples/mixer.dsp | faust | declare name "mixer";
declare version "1.0";
declare author "Grame";
declare license "BSD";
declare copyright "(c)GRAME 2006";
process = _;
|
|
82ae5dae862259fd7957ce4c2880eee61e8d896278efc287ed885cf23b0c8d99 | ntonnaett/guitarix | trbuff.dsp | // generated automatically
// DO NOT MODIFY!
declare id "trbuff";
declare name "Transistor Buffer";
declare category "Guitar Effects";
declare shortname "Transistor Buffer";
declare description "Transistor Buffer";
import("filter.lib");
process = pre : _<:*(dry),(*(wet) : iir((b0/a0,b1/a0),(a1/a0))):>_ with {
LogPot(a, x) = if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = if(b, 1 - x, x);
s = 0.993;
fs = float(SR);
pre = _;
wet = vslider("wet_dry[name:wet/dry][tooltip:percentage of processed signal in output signal]", 100, 0, 100, 1) : /(100);
dry = 1 - wet;
b0 = 2.06312564351033e-5*fs;
b1 = -2.06312564351033e-5*fs;
a0 = 2.08132601776102e-5*fs + 0.000963511474709834;
a1 = -2.08132601776102e-5*fs + 0.000963511474709834;
};
| https://raw.githubusercontent.com/ntonnaett/guitarix/e5ce36c3a693eeada3cb70425ec09f8d6f91e78c/trunk/src/faust/trbuff.dsp | faust | generated automatically
DO NOT MODIFY! | declare id "trbuff";
declare name "Transistor Buffer";
declare category "Guitar Effects";
declare shortname "Transistor Buffer";
declare description "Transistor Buffer";
import("filter.lib");
process = pre : _<:*(dry),(*(wet) : iir((b0/a0,b1/a0),(a1/a0))):>_ with {
LogPot(a, x) = if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = if(b, 1 - x, x);
s = 0.993;
fs = float(SR);
pre = _;
wet = vslider("wet_dry[name:wet/dry][tooltip:percentage of processed signal in output signal]", 100, 0, 100, 1) : /(100);
dry = 1 - wet;
b0 = 2.06312564351033e-5*fs;
b1 = -2.06312564351033e-5*fs;
a0 = 2.08132601776102e-5*fs + 0.000963511474709834;
a1 = -2.08132601776102e-5*fs + 0.000963511474709834;
};
|
a5a1dd33f0885e91126b673430f7b059e0e5770466771046581ab286f7542a2a | Pro19/guitarix | stereoverb.dsp | declare name "Stereo Verb";
declare category "Reverb";
declare version "0.01";
declare author "brummer";
declare license "BSD";
declare copyright "(c)brummer 2008";
import("stdfaust.lib");
import("guitarix.lib");
/*-----------------------------------------------
freeverb by "Grame"
-----------------------------------------------*/
// Filter Parameters
combtuningL1 = 1116;
combtuningL2 = 1188;
combtuningL3 = 1277;
combtuningL4 = 1356;
combtuningL5 = 1422;
combtuningL6 = 1491;
combtuningL7 = 1557;
combtuningL8 = 1617;
allpasstuningL1 = 556;
allpasstuningL2 = 441;
allpasstuningL3 = 341;
allpasstuningL4 = 225;
roomsizeSlider = vslider("RoomSize", 0.5, 0, 1, 0.025)*0.28 + 0.7;
dampslider = vslider("damp",0.5, 0, 1, 0.025);
combfeed = roomsizeSlider;
//wetslider = 0.5 + vslider("wet_dry[name:wet/dry]", 0, -0.5, 0.5, 0.1);
wet_dry = vslider("wet_dry[name:wet/dry]", 50, 0, 100, 1) : /(100);
dry = 1 - wet_dry;
// Reverb components
monoReverb(fb1, fb2, damp, spread)
= _ <: comb(combtuningL1+spread, fb1, damp),
comb(combtuningL2+spread, fb1, damp),
comb(combtuningL3+spread, fb1, damp),
comb(combtuningL4+spread, fb1, damp),
comb(combtuningL5+spread, fb1, damp),
comb(combtuningL6+spread, fb1, damp),
comb(combtuningL7+spread, fb1, damp),
comb(combtuningL8+spread, fb1, damp)
+>
allpass (allpasstuningL1+spread, fb2)
: allpass (allpasstuningL2+spread, fb2)
: allpass (allpasstuningL3+spread, fb2)
: allpass (allpasstuningL4+spread, fb2)
;
//----------------------------------------------------------------
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]");
fxctrl(g,w,Fx) = _ <: (*(g) <: _ + Fx ), *(1-w) +> _;
freeverb_r = (_<:*(dry),(*(wet_dry):fxctrl(0.015,wet_dry, monoReverb(combfeed, 0.5, dampslider, 23))* (1-(lfol(freq)*pingpong))):>_);
freeverb_l = (_<:*(dry),(*(wet_dry):fxctrl(0.015,wet_dry, monoReverb(combfeed, 0.5, dampslider, 23))* (1-(-1*lfol(freq)*pingpong))):>_);
process = freeverb_r, freeverb_l;
| https://raw.githubusercontent.com/Pro19/guitarix/b1c686212332d1ea40683262bf95ad2b486b2bb6/trunk/src/LV2/faust/stereoverb.dsp | faust | -----------------------------------------------
freeverb by "Grame"
-----------------------------------------------
Filter Parameters
wetslider = 0.5 + vslider("wet_dry[name:wet/dry]", 0, -0.5, 0.5, 0.1);
Reverb components
----------------------------------------------------------------
sine for left channel | declare name "Stereo Verb";
declare category "Reverb";
declare version "0.01";
declare author "brummer";
declare license "BSD";
declare copyright "(c)brummer 2008";
import("stdfaust.lib");
import("guitarix.lib");
combtuningL1 = 1116;
combtuningL2 = 1188;
combtuningL3 = 1277;
combtuningL4 = 1356;
combtuningL5 = 1422;
combtuningL6 = 1491;
combtuningL7 = 1557;
combtuningL8 = 1617;
allpasstuningL1 = 556;
allpasstuningL2 = 441;
allpasstuningL3 = 341;
allpasstuningL4 = 225;
roomsizeSlider = vslider("RoomSize", 0.5, 0, 1, 0.025)*0.28 + 0.7;
dampslider = vslider("damp",0.5, 0, 1, 0.025);
combfeed = roomsizeSlider;
wet_dry = vslider("wet_dry[name:wet/dry]", 50, 0, 100, 1) : /(100);
dry = 1 - wet_dry;
monoReverb(fb1, fb2, damp, spread)
= _ <: comb(combtuningL1+spread, fb1, damp),
comb(combtuningL2+spread, fb1, damp),
comb(combtuningL3+spread, fb1, damp),
comb(combtuningL4+spread, fb1, damp),
comb(combtuningL5+spread, fb1, damp),
comb(combtuningL6+spread, fb1, damp),
comb(combtuningL7+spread, fb1, damp),
comb(combtuningL8+spread, fb1, damp)
+>
allpass (allpasstuningL1+spread, fb2)
: allpass (allpasstuningL2+spread, fb2)
: allpass (allpasstuningL3+spread, fb2)
: allpass (allpasstuningL4+spread, fb2)
;
freq = hslider("LFO freq [unit:Hz]", 0.2, 0, 5, 0.01);
pingpong = checkbox("invert[enum:linear|pingpong]");
fxctrl(g,w,Fx) = _ <: (*(g) <: _ + Fx ), *(1-w) +> _;
freeverb_r = (_<:*(dry),(*(wet_dry):fxctrl(0.015,wet_dry, monoReverb(combfeed, 0.5, dampslider, 23))* (1-(lfol(freq)*pingpong))):>_);
freeverb_l = (_<:*(dry),(*(wet_dry):fxctrl(0.015,wet_dry, monoReverb(combfeed, 0.5, dampslider, 23))* (1-(-1*lfol(freq)*pingpong))):>_);
process = freeverb_r, freeverb_l;
|
01af3d6de7930a19f2f1c3b1ab7545604725ce39ecfff87d03a5757de9925d38 | ntonnaett/guitarix | mole.dsp | // generated automatically
// DO NOT MODIFY!
declare id "mole";
declare name "The Mole";
declare category "Tone Control";
declare shortname "The Mole";
declare description "EHX Mole";
import("filter.lib");
process = pre : _<:*(dry),(*(wet) : iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0))):>_ with {
LogPot(a, x) = if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = if(b, 1 - x, x);
s = 0.993;
fs = float(SR);
pre = _;
wet = vslider("wet_dry[name:wet/dry][tooltip:percentage of processed signal in output signal]", 100, 0, 100, 1) : /(100);
dry = 1 - wet;
Boost = vslider("Boost[name:Boost]", 0.5, 0, 1, 0.01) : Inverted(0) : smooth(s);
b0 = -9.74268345040146e-11*Boost*pow(fs,2);
b1 = 9.74268345040146e-11*Boost*pow(fs,2);
b2 = 9.74268345040146e-11*Boost*pow(fs,2);
b3 = -9.74268345040146e-11*Boost*pow(fs,2);
a0 = fs*(fs*(8.93878454194095e-15*fs + 4.96556855945694e-12) + 2.64572840995574e-11) + 2.70404912477885e-11;
a1 = fs*(fs*(-2.68163536258229e-14*fs - 4.96556855945694e-12) + 2.64572840995574e-11) + 8.11214737433656e-11;
a2 = fs*(fs*(2.68163536258229e-14*fs - 4.96556855945694e-12) - 2.64572840995574e-11) + 8.11214737433656e-11;
a3 = fs*(fs*(-8.93878454194095e-15*fs + 4.96556855945694e-12) - 2.64572840995574e-11) + 2.70404912477885e-11;
};
| https://raw.githubusercontent.com/ntonnaett/guitarix/e5ce36c3a693eeada3cb70425ec09f8d6f91e78c/trunk/src/plugins/mole.dsp | faust | generated automatically
DO NOT MODIFY! | declare id "mole";
declare name "The Mole";
declare category "Tone Control";
declare shortname "The Mole";
declare description "EHX Mole";
import("filter.lib");
process = pre : _<:*(dry),(*(wet) : iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0))):>_ with {
LogPot(a, x) = if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = if(b, 1 - x, x);
s = 0.993;
fs = float(SR);
pre = _;
wet = vslider("wet_dry[name:wet/dry][tooltip:percentage of processed signal in output signal]", 100, 0, 100, 1) : /(100);
dry = 1 - wet;
Boost = vslider("Boost[name:Boost]", 0.5, 0, 1, 0.01) : Inverted(0) : smooth(s);
b0 = -9.74268345040146e-11*Boost*pow(fs,2);
b1 = 9.74268345040146e-11*Boost*pow(fs,2);
b2 = 9.74268345040146e-11*Boost*pow(fs,2);
b3 = -9.74268345040146e-11*Boost*pow(fs,2);
a0 = fs*(fs*(8.93878454194095e-15*fs + 4.96556855945694e-12) + 2.64572840995574e-11) + 2.70404912477885e-11;
a1 = fs*(fs*(-2.68163536258229e-14*fs - 4.96556855945694e-12) + 2.64572840995574e-11) + 8.11214737433656e-11;
a2 = fs*(fs*(2.68163536258229e-14*fs - 4.96556855945694e-12) - 2.64572840995574e-11) + 8.11214737433656e-11;
a3 = fs*(fs*(-8.93878454194095e-15*fs + 4.96556855945694e-12) - 2.64572840995574e-11) + 2.70404912477885e-11;
};
|
99e60eaa2486e05446fecbeb8105a48d9ca1efcb83c3aef2f8467483287ada44 | brummer10/guitarix | lpbboost.dsp | // generated automatically
// DO NOT MODIFY!
declare id "lpbboost";
declare name "LPB-1 Booster";
declare category "Tone Control";
declare shortname "LPB-1 Boost";
declare description "LPB-1 Linear Power Booster ";
import("stdfaust.lib");
process = pre : fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
Boost = vslider("Boost[name:Boost]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
b0 = -8.68034563926398e-9*Boost*pow(fs,2) - 8.68034563926398e-11*pow(fs,2);
b1 = 1.7360691278528e-8*Boost*pow(fs,2) + 1.7360691278528e-10*pow(fs,2);
b2 = -8.68034563926398e-9*Boost*pow(fs,2) - 8.68034563926398e-11*pow(fs,2);
a0 = fs*(4.33054407650898e-10*fs + 4.66962506103765e-8) + 1.22474303201741e-6;
a1 = -8.66108815301797e-10*pow(fs,2) + 2.44948606403482e-6;
a2 = fs*(4.33054407650898e-10*fs - 4.66962506103765e-8) + 1.22474303201741e-6;
};
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/plugins/lpbboost.dsp | faust | generated automatically
DO NOT MODIFY! | declare id "lpbboost";
declare name "LPB-1 Booster";
declare category "Tone Control";
declare shortname "LPB-1 Boost";
declare description "LPB-1 Linear Power Booster ";
import("stdfaust.lib");
process = pre : fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
Boost = vslider("Boost[name:Boost]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
b0 = -8.68034563926398e-9*Boost*pow(fs,2) - 8.68034563926398e-11*pow(fs,2);
b1 = 1.7360691278528e-8*Boost*pow(fs,2) + 1.7360691278528e-10*pow(fs,2);
b2 = -8.68034563926398e-9*Boost*pow(fs,2) - 8.68034563926398e-11*pow(fs,2);
a0 = fs*(4.33054407650898e-10*fs + 4.66962506103765e-8) + 1.22474303201741e-6;
a1 = -8.66108815301797e-10*pow(fs,2) + 2.44948606403482e-6;
a2 = fs*(4.33054407650898e-10*fs - 4.66962506103765e-8) + 1.22474303201741e-6;
};
|
4204eb0ff52da69f2c3dd75917d29c6c289000d47ebc89e196e9a2704dda4a03 | guysherman/Faust | echo.dsp | declare name "echo";
declare version "1.0";
declare author "Grame";
declare license "BSD";
declare copyright "(c)GRAME 2006";
//-----------------------------------------------
// A Simple Echo
//-----------------------------------------------
import("music.lib");
process = vgroup("echo-simple", echo1s);
| https://raw.githubusercontent.com/guysherman/Faust/4cac36e7fc493158e92946b3a840c4f611ac2844/tools/faust2pd/examples/faust/echo.dsp | faust | -----------------------------------------------
A Simple Echo
----------------------------------------------- | declare name "echo";
declare version "1.0";
declare author "Grame";
declare license "BSD";
declare copyright "(c)GRAME 2006";
import("music.lib");
process = vgroup("echo-simple", echo1s);
|
a4fd1e622dfbe2186c24c775f55e01b04f5fefb1f8d5af0f7f902dfcaabb9257 | guysherman/Faust | noise2.dsp | declare name "noise";
declare version "1.0";
declare author "Grame";
declare license "BSD";
declare copyright "(c)GRAME 2006";
// noise generator
random = +(12345)~*(1103515245);
noise = random/2147483647.0;
process = noise * vslider("vol", 0, 0, 1, 0.1);
| https://raw.githubusercontent.com/guysherman/Faust/4cac36e7fc493158e92946b3a840c4f611ac2844/tools/faust2pd/examples/faust/noise2.dsp | faust | noise generator | declare name "noise";
declare version "1.0";
declare author "Grame";
declare license "BSD";
declare copyright "(c)GRAME 2006";
random = +(12345)~*(1103515245);
noise = random/2147483647.0;
process = noise * vslider("vol", 0, 0, 1, 0.1);
|
cb1e8f866abbe43d0bdf8a3f7738c7d18b0161b6b73a271f52c9bcfbea05ffc4 | brummer10/guitarix | hogsfoot.dsp | // generated automatically
// DO NOT MODIFY!
declare id "hogsfoot";
declare name "Hogs Foot";
declare category "Tone Control";
declare shortname "Hogs Foot";
declare description "Hogs Foot Bass Booster";
import("stdfaust.lib");
process = pre : _<:*(dry),(*(wet) : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0))):>_ with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
wet = vslider("wet_dry[name:Wet/Dry][tooltip:percentage of processed signal in output signal]", 100, 0, 100, 1) : /(100);
dry = 1 - wet;
Volume = vslider("Volume[name:Volume]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
b0 = -9.64632260709932e-11*Volume*pow(fs,2) - 9.64632260709932e-13*pow(fs,2);
b1 = 9.64632260709932e-11*Volume*pow(fs,2) + 9.64632260709932e-13*pow(fs,2);
b2 = 9.64632260709932e-11*Volume*pow(fs,2) + 9.64632260709932e-13*pow(fs,2);
b3 = -9.64632260709932e-11*Volume*pow(fs,2) - 9.64632260709932e-13*pow(fs,2);
a0 = fs*(fs*(8.93887847679127e-15*fs + 4.96106145708971e-12) + 2.63723081667839e-11) + 2.67730449581491e-11;
a1 = fs*(fs*(-2.68166354303738e-14*fs - 4.96106145708971e-12) + 2.63723081667839e-11) + 8.03191348744474e-11;
a2 = fs*(fs*(2.68166354303738e-14*fs - 4.96106145708971e-12) - 2.63723081667839e-11) + 8.03191348744474e-11;
a3 = fs*(fs*(-8.93887847679127e-15*fs + 4.96106145708971e-12) - 2.63723081667839e-11) + 2.67730449581491e-11;
};
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/plugins/hogsfoot.dsp | faust | generated automatically
DO NOT MODIFY! | declare id "hogsfoot";
declare name "Hogs Foot";
declare category "Tone Control";
declare shortname "Hogs Foot";
declare description "Hogs Foot Bass Booster";
import("stdfaust.lib");
process = pre : _<:*(dry),(*(wet) : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0))):>_ with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
wet = vslider("wet_dry[name:Wet/Dry][tooltip:percentage of processed signal in output signal]", 100, 0, 100, 1) : /(100);
dry = 1 - wet;
Volume = vslider("Volume[name:Volume]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
b0 = -9.64632260709932e-11*Volume*pow(fs,2) - 9.64632260709932e-13*pow(fs,2);
b1 = 9.64632260709932e-11*Volume*pow(fs,2) + 9.64632260709932e-13*pow(fs,2);
b2 = 9.64632260709932e-11*Volume*pow(fs,2) + 9.64632260709932e-13*pow(fs,2);
b3 = -9.64632260709932e-11*Volume*pow(fs,2) - 9.64632260709932e-13*pow(fs,2);
a0 = fs*(fs*(8.93887847679127e-15*fs + 4.96106145708971e-12) + 2.63723081667839e-11) + 2.67730449581491e-11;
a1 = fs*(fs*(-2.68166354303738e-14*fs - 4.96106145708971e-12) + 2.63723081667839e-11) + 8.03191348744474e-11;
a2 = fs*(fs*(2.68166354303738e-14*fs - 4.96106145708971e-12) - 2.63723081667839e-11) + 8.03191348744474e-11;
a3 = fs*(fs*(-8.93887847679127e-15*fs + 4.96106145708971e-12) - 2.63723081667839e-11) + 2.67730449581491e-11;
};
|
c04d616b94c7c9d6ee76ed74ef1977e0828fb03f1a0a29f39a88703d66bfecd6 | brummer10/guitarix | hogsfoot.dsp | // generated automatically
// DO NOT MODIFY!
declare id "hogsfoot";
declare name "Hogs Foot";
declare category "Tone Control";
declare shortname "Hogs Foot";
declare description "Hogs Foot Bass Booster";
import("stdfaust.lib");
process = pre : _<:*(dry),(*(wet) : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0))):>_ with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
wet = vslider("wet_dry[name:wet/dry][tooltip:percentage of processed signal in output signal]", 100, 0, 100, 1) : /(100);
dry = 1 - wet;
Volume = vslider("Volume[name:Volume]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
b0 = -9.64632260709932e-11*Volume*pow(fs,2) - 9.64632260709932e-13*pow(fs,2);
b1 = 9.64632260709932e-11*Volume*pow(fs,2) + 9.64632260709932e-13*pow(fs,2);
b2 = 9.64632260709932e-11*Volume*pow(fs,2) + 9.64632260709932e-13*pow(fs,2);
b3 = -9.64632260709932e-11*Volume*pow(fs,2) - 9.64632260709932e-13*pow(fs,2);
a0 = fs*(fs*(8.93887847679127e-15*fs + 4.96106145708971e-12) + 2.63723081667839e-11) + 2.67730449581491e-11;
a1 = fs*(fs*(-2.68166354303738e-14*fs - 4.96106145708971e-12) + 2.63723081667839e-11) + 8.03191348744474e-11;
a2 = fs*(fs*(2.68166354303738e-14*fs - 4.96106145708971e-12) - 2.63723081667839e-11) + 8.03191348744474e-11;
a3 = fs*(fs*(-8.93887847679127e-15*fs + 4.96106145708971e-12) - 2.63723081667839e-11) + 2.67730449581491e-11;
};
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/hogsfoot.dsp | faust | generated automatically
DO NOT MODIFY! | declare id "hogsfoot";
declare name "Hogs Foot";
declare category "Tone Control";
declare shortname "Hogs Foot";
declare description "Hogs Foot Bass Booster";
import("stdfaust.lib");
process = pre : _<:*(dry),(*(wet) : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0))):>_ with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
wet = vslider("wet_dry[name:wet/dry][tooltip:percentage of processed signal in output signal]", 100, 0, 100, 1) : /(100);
dry = 1 - wet;
Volume = vslider("Volume[name:Volume]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
b0 = -9.64632260709932e-11*Volume*pow(fs,2) - 9.64632260709932e-13*pow(fs,2);
b1 = 9.64632260709932e-11*Volume*pow(fs,2) + 9.64632260709932e-13*pow(fs,2);
b2 = 9.64632260709932e-11*Volume*pow(fs,2) + 9.64632260709932e-13*pow(fs,2);
b3 = -9.64632260709932e-11*Volume*pow(fs,2) - 9.64632260709932e-13*pow(fs,2);
a0 = fs*(fs*(8.93887847679127e-15*fs + 4.96106145708971e-12) + 2.63723081667839e-11) + 2.67730449581491e-11;
a1 = fs*(fs*(-2.68166354303738e-14*fs - 4.96106145708971e-12) + 2.63723081667839e-11) + 8.03191348744474e-11;
a2 = fs*(fs*(2.68166354303738e-14*fs - 4.96106145708971e-12) - 2.63723081667839e-11) + 8.03191348744474e-11;
a3 = fs*(fs*(-8.93887847679127e-15*fs + 4.96106145708971e-12) - 2.63723081667839e-11) + 2.67730449581491e-11;
};
|
ab3dc68aca000da01872351ad37b4ccd9410014a3d0477d5bb9df5b1cbc86a84 | smoge/gxplugins | tone.dsp | declare name "amp.tone";
declare version "0.01";
declare author "brummer";
declare license "BSD";
declare copyright "(c)brummer 2008";
import("math.lib");
import("music.lib");
import("effect.lib");
import("filter.lib");
import("guitarix.lib");
/*-----------------------------------------------
The tone control
Low and high shelf filters, from Robert Bristow-Johnson's "Audio
EQ Cookbook", see http://www.musicdsp.org/files/Audio-EQ-Cookbook.txt.
-----------------------------------------------*/
filter(b0,b1,b2,a0,a1,a2) = f : (+ ~ g)
with {
f(x) = (b0/a0)*x+(b1/a0)*x'+(b2/a0)*x'';
g(y) = 0-(a1/a0)*y-(a2/a0)*y';
};
gxlow_shelf(f0,g) = filter(b0,b1,b2,a0,a1,a2)
with {
S = 1;
A = pow(10,g/40);
w0 = 2*PI*f0/SR;
alpha = sin(w0)/2 * sqrt( (A + 1/A)*(1/S - 1) + 2 );
b0 = A*( (A+1) - (A-1)*cos(w0) + 2*sqrt(A)*alpha );
b1 = 2*A*( (A-1) - (A+1)*cos(w0) );
b2 = A*( (A+1) - (A-1)*cos(w0) - 2*sqrt(A)*alpha );
a0 = (A+1) + (A-1)*cos(w0) + 2*sqrt(A)*alpha;
a1 = -2*( (A-1) + (A+1)*cos(w0) );
a2 = (A+1) + (A-1)*cos(w0) - 2*sqrt(A)*alpha;
};
gxhigh_shelf(f0,g) = filter(b0,b1,b2,a0,a1,a2)
with {
S = 1;
A = pow(10,g/40);
w0 = 2*PI*f0/SR;
alpha = sin(w0)/2 * sqrt( (A + 1/A)*(1/S - 1) + 2 );
b0 = A*( (A+1) + (A-1)*cos(w0) + 2*sqrt(A)*alpha );
b1 = -2*A*( (A-1) + (A+1)*cos(w0) );
b2 = A*( (A+1) + (A-1)*cos(w0) - 2*sqrt(A)*alpha );
a0 = (A+1) - (A-1)*cos(w0) + 2*sqrt(A)*alpha;
a1 = 2*( (A-1) - (A+1)*cos(w0) );
a2 = (A+1) - (A-1)*cos(w0) - 2*sqrt(A)*alpha;
};
/* Fixed bass and treble frequencies.*/
bass_freq = 600;
treble_freq = 2400;
bass_gain = vslider("bass[name:bass]", 0, -20, 20, 0.1);
mid_gain = vslider("middle[name:middle]", 0, -20, 20, 0.1)/2;
treble_gain = vslider("treble[name:treble]", 0, -20, 20, 0.1);
tone(b,m,t) = gxlow_shelf(bass_freq,b-m) :
gxlow_shelf(treble_freq,m):
gxhigh_shelf(bass_freq,m) :
gxhigh_shelf(treble_freq,t-m);
process = add_dc :
gxlow_shelf(bass_freq,bass_gain-mid_gain) :
gxlow_shelf(treble_freq,mid_gain):
gxhigh_shelf(bass_freq,mid_gain) :
gxhigh_shelf(treble_freq,treble_gain-mid_gain);
| https://raw.githubusercontent.com/smoge/gxplugins/30a5160ff626975aa521a316cd33f973e3bc5d0c/tone.dsp | faust | -----------------------------------------------
The tone control
Low and high shelf filters, from Robert Bristow-Johnson's "Audio
EQ Cookbook", see http://www.musicdsp.org/files/Audio-EQ-Cookbook.txt.
-----------------------------------------------
Fixed bass and treble frequencies. | declare name "amp.tone";
declare version "0.01";
declare author "brummer";
declare license "BSD";
declare copyright "(c)brummer 2008";
import("math.lib");
import("music.lib");
import("effect.lib");
import("filter.lib");
import("guitarix.lib");
filter(b0,b1,b2,a0,a1,a2) = f : (+ ~ g)
with {
f(x) = (b0/a0)*x+(b1/a0)*x'+(b2/a0)*x'';
g(y) = 0-(a1/a0)*y-(a2/a0)*y';
};
gxlow_shelf(f0,g) = filter(b0,b1,b2,a0,a1,a2)
with {
S = 1;
A = pow(10,g/40);
w0 = 2*PI*f0/SR;
alpha = sin(w0)/2 * sqrt( (A + 1/A)*(1/S - 1) + 2 );
b0 = A*( (A+1) - (A-1)*cos(w0) + 2*sqrt(A)*alpha );
b1 = 2*A*( (A-1) - (A+1)*cos(w0) );
b2 = A*( (A+1) - (A-1)*cos(w0) - 2*sqrt(A)*alpha );
a0 = (A+1) + (A-1)*cos(w0) + 2*sqrt(A)*alpha;
a1 = -2*( (A-1) + (A+1)*cos(w0) );
a2 = (A+1) + (A-1)*cos(w0) - 2*sqrt(A)*alpha;
};
gxhigh_shelf(f0,g) = filter(b0,b1,b2,a0,a1,a2)
with {
S = 1;
A = pow(10,g/40);
w0 = 2*PI*f0/SR;
alpha = sin(w0)/2 * sqrt( (A + 1/A)*(1/S - 1) + 2 );
b0 = A*( (A+1) + (A-1)*cos(w0) + 2*sqrt(A)*alpha );
b1 = -2*A*( (A-1) + (A+1)*cos(w0) );
b2 = A*( (A+1) + (A-1)*cos(w0) - 2*sqrt(A)*alpha );
a0 = (A+1) - (A-1)*cos(w0) + 2*sqrt(A)*alpha;
a1 = 2*( (A-1) - (A+1)*cos(w0) );
a2 = (A+1) - (A-1)*cos(w0) - 2*sqrt(A)*alpha;
};
bass_freq = 600;
treble_freq = 2400;
bass_gain = vslider("bass[name:bass]", 0, -20, 20, 0.1);
mid_gain = vslider("middle[name:middle]", 0, -20, 20, 0.1)/2;
treble_gain = vslider("treble[name:treble]", 0, -20, 20, 0.1);
tone(b,m,t) = gxlow_shelf(bass_freq,b-m) :
gxlow_shelf(treble_freq,m):
gxhigh_shelf(bass_freq,m) :
gxhigh_shelf(treble_freq,t-m);
process = add_dc :
gxlow_shelf(bass_freq,bass_gain-mid_gain) :
gxlow_shelf(treble_freq,mid_gain):
gxhigh_shelf(bass_freq,mid_gain) :
gxhigh_shelf(treble_freq,treble_gain-mid_gain);
|
9395afffb8fb2c4a63ad1f8fb9705c5b6401bde79dba8b31a263a2e21d346436 | guysherman/Faust | stereoecho.dsp | declare name "stereoecho";
declare version "1.0";
declare author "Grame";
declare license "BSD";
declare copyright "(c)GRAME 2007";
//-----------------------------------------------
// A 1 second Stereo Echo
//-----------------------------------------------
import("music.lib");
process = vgroup("stereo echo", (echo1s, echo1s));
| https://raw.githubusercontent.com/guysherman/Faust/4cac36e7fc493158e92946b3a840c4f611ac2844/examples/stereoecho.dsp | faust | -----------------------------------------------
A 1 second Stereo Echo
----------------------------------------------- | declare name "stereoecho";
declare version "1.0";
declare author "Grame";
declare license "BSD";
declare copyright "(c)GRAME 2007";
import("music.lib");
process = vgroup("stereo echo", (echo1s, echo1s));
|
2bb9e7ce4a2cb0a0b49abf1224cb1b6160f59fab2b3f1e6dd67ecee16455b80f | Pro19/guitarix | trbuff.dsp | // generated automatically
// DO NOT MODIFY!
declare id "trbuff";
declare name "Transistor Buffer";
declare category "Guitar Effects";
declare shortname "Transistor Buffer";
declare description "Transistor Buffer";
import("stdfaust.lib");
process = pre : _<:*(dry),(*(wet) : fi.iir((b0/a0,b1/a0),(a1/a0))):>_ with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
wet = vslider("wet_dry[name:wet/dry][tooltip:percentage of processed signal in output signal]", 100, 0, 100, 1) : /(100);
dry = 1 - wet;
b0 = 2.06312564351033e-5*fs;
b1 = -2.06312564351033e-5*fs;
a0 = 2.08132601776102e-5*fs + 0.000963511474709834;
a1 = -2.08132601776102e-5*fs + 0.000963511474709834;
};
| https://raw.githubusercontent.com/Pro19/guitarix/b1c686212332d1ea40683262bf95ad2b486b2bb6/trunk/src/faust/trbuff.dsp | faust | generated automatically
DO NOT MODIFY! | declare id "trbuff";
declare name "Transistor Buffer";
declare category "Guitar Effects";
declare shortname "Transistor Buffer";
declare description "Transistor Buffer";
import("stdfaust.lib");
process = pre : _<:*(dry),(*(wet) : fi.iir((b0/a0,b1/a0),(a1/a0))):>_ with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
wet = vslider("wet_dry[name:wet/dry][tooltip:percentage of processed signal in output signal]", 100, 0, 100, 1) : /(100);
dry = 1 - wet;
b0 = 2.06312564351033e-5*fs;
b1 = -2.06312564351033e-5*fs;
a0 = 2.08132601776102e-5*fs + 0.000963511474709834;
a1 = -2.08132601776102e-5*fs + 0.000963511474709834;
};
|
b6f6d32ab4f2851a00e4062cfd70adcf2729677120f08956d3b4d26ae759d7d8 | guysherman/Faust | panpot.dsp | declare name "panpot";
declare version "1.0";
declare author "Grame";
declare license "BSD";
declare copyright "(c)GRAME 2006";
//-------------------------------------------------
// Stereo panpot
//-------------------------------------------------
panpot(x) = (1-c)*x, c*x
with {
c=(nentry("",0,-8,8,1)-8)/-16;
};
process = vgroup("panpot", panpot);
| https://raw.githubusercontent.com/guysherman/Faust/4cac36e7fc493158e92946b3a840c4f611ac2844/tools/faust2pd/examples/faust/panpot.dsp | faust | -------------------------------------------------
Stereo panpot
------------------------------------------------- | declare name "panpot";
declare version "1.0";
declare author "Grame";
declare license "BSD";
declare copyright "(c)GRAME 2006";
panpot(x) = (1-c)*x, c*x
with {
c=(nentry("",0,-8,8,1)-8)/-16;
};
process = vgroup("panpot", panpot);
|
ae12d26d87d3dc46be4fa0229d9e5a16be1a4a2c927d58d6957b678516e3eb13 | simonvanderveldt/guitarix | scream.dsp | // generated automatically
// DO NOT MODIFY!
declare id "scream";
declare name "Screaming Bird";
declare category "Fuzz";
declare shortname "Scream Bird";
declare description "Screaming Bird";
declare samplerate "96000";
import("stdfaust.lib");
process = pre : fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) : clip with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
//clip(x) = min(0.4514,max(-0.2514,x));
asymclip = ffunction(float asymclip(float), "clipping.h", "");
clip = asymclip(_);
Scream = vslider("Scream[name:Scream]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
b0 = -6.82076449438528e-9*Scream*pow(fs,2) - 6.82076449438528e-10*pow(fs,2);
b1 = 1.36415289887706e-8*Scream*pow(fs,2) + 1.36415289887706e-9*pow(fs,2);
b2 = -6.82076449438528e-9*Scream*pow(fs,2) - 6.82076449438528e-10*pow(fs,2);
a0 = fs*(3.64434266110822e-10*fs + 3.23311541086178e-6) + 0.00515391115930048;
a1 = -7.28868532221644e-10*pow(fs,2) + 0.010307822318601;
a2 = fs*(3.64434266110822e-10*fs - 3.23311541086178e-6) + 0.00515391115930048;
};
| https://raw.githubusercontent.com/simonvanderveldt/guitarix/51ba3d2bba6118a7fbf67a56c30e860faa155d5f/trunk/src/plugins/scream.dsp | faust | generated automatically
DO NOT MODIFY!
clip(x) = min(0.4514,max(-0.2514,x)); | declare id "scream";
declare name "Screaming Bird";
declare category "Fuzz";
declare shortname "Scream Bird";
declare description "Screaming Bird";
declare samplerate "96000";
import("stdfaust.lib");
process = pre : fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) : clip with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
asymclip = ffunction(float asymclip(float), "clipping.h", "");
clip = asymclip(_);
Scream = vslider("Scream[name:Scream]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
b0 = -6.82076449438528e-9*Scream*pow(fs,2) - 6.82076449438528e-10*pow(fs,2);
b1 = 1.36415289887706e-8*Scream*pow(fs,2) + 1.36415289887706e-9*pow(fs,2);
b2 = -6.82076449438528e-9*Scream*pow(fs,2) - 6.82076449438528e-10*pow(fs,2);
a0 = fs*(3.64434266110822e-10*fs + 3.23311541086178e-6) + 0.00515391115930048;
a1 = -7.28868532221644e-10*pow(fs,2) + 0.010307822318601;
a2 = fs*(3.64434266110822e-10*fs - 3.23311541086178e-6) + 0.00515391115930048;
};
|
980cc6d86cd3503a22407887a7d982d0abb7b317f57c33fcae1cd05775354a92 | ntonnaett/guitarix | flanger_mono.dsp | declare id "flanger_mono";
declare name "Flanger Mono";
declare category "Modulation";
declare license "BSD";
import("effect.lib");
import("guitarix.lib");
import("oscillator.lib");
flangermono(curdel)
= _<: _, (-:fdelay(2048,curdel)) ~ *(0.5) : _,
*(-1) : + : *(0.5);
flangermonogx = *(level):flangermono(curdel)
with {
lfol = component("oscillator.lib").oscrs;
dflange = 0.001 * SR * 10.0;
odflange = 0.001 * SR * 1.0;
//freq = hslider("freq [unit:Hz]", 0.2, 0, 5, 0.01);
freq = hslider("lfobpm[name:BPM][unit:bpm][tooltip:LFO in Beats per Minute]",24,24,360,1)/60;
level = hslider("level[name:Level][unit:dB]", 0, -60, 10, 0.1) : 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/ntonnaett/guitarix/e5ce36c3a693eeada3cb70425ec09f8d6f91e78c/trunk/src/faust/flanger_mono.dsp | faust | freq = hslider("freq [unit:Hz]", 0.2, 0, 5, 0.01); | declare id "flanger_mono";
declare name "Flanger Mono";
declare category "Modulation";
declare license "BSD";
import("effect.lib");
import("guitarix.lib");
import("oscillator.lib");
flangermono(curdel)
= _<: _, (-:fdelay(2048,curdel)) ~ *(0.5) : _,
*(-1) : + : *(0.5);
flangermonogx = *(level):flangermono(curdel)
with {
lfol = component("oscillator.lib").oscrs;
dflange = 0.001 * SR * 10.0;
odflange = 0.001 * SR * 1.0;
freq = hslider("lfobpm[name:BPM][unit:bpm][tooltip:LFO in Beats per Minute]",24,24,360,1)/60;
level = hslider("level[name:Level][unit:dB]", 0, -60, 10, 0.1) : 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 ):>_;
|
80f5fc59b9e707daadf829bd6f006bccdaff568e150eabd47e0fef6c45f7ab92 | simonvanderveldt/guitarix | ring_modulator.dsp | declare id "ring_modulator";
declare name "Ring Modulator Mono";
declare shortname "Ring Modulator";
declare category "Modulation";
import("stdfaust.lib");
freq = hslider("freq[name:Freq]", 240, 120, 1600, 0.5);
wet_dry = hslider("dry/wet[name:Mix]", 0.5, 0, 1, 0.05);
process = _<:((1 - wet_dry)*_,(_*os.osc(freq))*wet_dry):>_;
| https://raw.githubusercontent.com/simonvanderveldt/guitarix/51ba3d2bba6118a7fbf67a56c30e860faa155d5f/trunk/src/faust/ring_modulator.dsp | faust | declare id "ring_modulator";
declare name "Ring Modulator Mono";
declare shortname "Ring Modulator";
declare category "Modulation";
import("stdfaust.lib");
freq = hslider("freq[name:Freq]", 240, 120, 1600, 0.5);
wet_dry = hslider("dry/wet[name:Mix]", 0.5, 0, 1, 0.05);
process = _<:((1 - wet_dry)*_,(_*os.osc(freq))*wet_dry):>_;
|
|
3a7fa450ab37dac6027f8f45b52247f49c8a9ae6a0b7095614aedcb7278f34d9 | ntonnaett/guitarix | digital_delay.dsp | declare id "dide";
declare name "Digital Delay";
declare shortname "Digi Delay";
declare category "Echo / Delay";
declare description "Digital Delay";
import("music.lib");
import("guitarix.lib");
import("math.lib");
guitarboost = highpass(3,80) : peak_eq(-3,200,50): peak_eq(1.5,375,125) : peak_eq(3,2000,500) : peak_eq(-6, 4000, 1000) : peak_eq(2,8000,1000) : lowpass(3,12000) : *(0.8);
tape = allpassn(4,(-0.6, 0.4, -0.2, 0.1));
tape2 = allpassn(4,(-0.2, -0.3, 0.4, 0.5));
sel(sl) = environment {
a = min(2, max(0,sl));
b = min(2, max(0,sl-1));
c = min(2, max(0,sl-2));
};
selfilter(n) = _<: a <: b <: c :>_ with {
a = select3(sel(n).a,_,guitarboost,_);
b = select3(sel(n).b,_,tape,_);
c = select3(sel(n).c,_,tape2,_);
};
tempo2note = ffunction(float B2N(int,float), "beat.h", "");
dide = _<:*(dry),(delx(B) : *(wet)):>_ with {
B = hslider("Freeze[tooltip:Freeze the current delay]",0,0,1,1);
delx(n) = _<:(*(1.0-B):digd), !:>_;
digd = (+:(delayed:lback(B)))~(fback(B)) with {
fback(n) = _<:select2(n, feed, freeze):>_;
lback(n) = _<:select2(n, *(level), *(1.0)):>_;
feed = *(feedback): highpass(2,hifr1):lowpass(2,lofr1) : selfilter(sl);
freeze = *(1.0);
sl = hslider("mode[name:Mode][enum:plain|presence|tape|tape2]",0,0,3,1);
delayed = sdelay(N, interp, min(2^19,(tempo2note(tact,dbpm)))) with {
dtime = hslider("delay[name:Delay][tooltip:Delay Time in ms]", 2500, 0.1, 5000, 0.1)*SR/1000.0;
dbpm = tempo(hslider("bpm[name:BPM][tooltip:Delay in Beats per Minute]",120,24,360,1));
tact = hslider("notes[name:Notes][enum:Dotted 1/2 note|1/2 note|1/2 note triplets|
Dotted 1/4 note|1/4 note|1/4 note triplets|Dotted 1/8 note|1/8 note|1/8 note triplets|
Dotted 1/16 note|1/16 note|1/16 note triplets|Dotted 1/32 note|1/32 note|1/32 note triplets|
Dotted 1/64 note|1/64 note|1/64 note triplets][tooltip:Note setting for bpm]",4,0,17,1);
interp = 100*SR/1000.0;
N = int( 2^19 ) ;
};
level = vslider("level[name:Level][tooltip:Percentage of the delay gain level]", 50, 1, 100, 1)/100 ;
feedback = vslider("feedback[name:Feedback][tooltip:Percentage of the feedback level in the delay loop]", 50, 1, 100, 1)/100 ;
hifr1 = hslider("highpass[name:Hipass][tooltip: Highpass filter frequency in the feddback loop]" ,120 , 20, 20000, 1);
lofr1 = hslider("howpass [name:Lopass][tooltip: Lowpass filter frequency in the feddback loop]" ,12000 , 20, 20000, 1);
};
wet = vslider("gain[name:Gain][tooltip:Overall gain of the delay line in percent]", 100, 0, 120, 1) : /(100);
dry = 1 ;
};
process = dide;
| https://raw.githubusercontent.com/ntonnaett/guitarix/e5ce36c3a693eeada3cb70425ec09f8d6f91e78c/trunk/src/faust/digital_delay.dsp | faust | declare id "dide";
declare name "Digital Delay";
declare shortname "Digi Delay";
declare category "Echo / Delay";
declare description "Digital Delay";
import("music.lib");
import("guitarix.lib");
import("math.lib");
guitarboost = highpass(3,80) : peak_eq(-3,200,50): peak_eq(1.5,375,125) : peak_eq(3,2000,500) : peak_eq(-6, 4000, 1000) : peak_eq(2,8000,1000) : lowpass(3,12000) : *(0.8);
tape = allpassn(4,(-0.6, 0.4, -0.2, 0.1));
tape2 = allpassn(4,(-0.2, -0.3, 0.4, 0.5));
sel(sl) = environment {
a = min(2, max(0,sl));
b = min(2, max(0,sl-1));
c = min(2, max(0,sl-2));
};
selfilter(n) = _<: a <: b <: c :>_ with {
a = select3(sel(n).a,_,guitarboost,_);
b = select3(sel(n).b,_,tape,_);
c = select3(sel(n).c,_,tape2,_);
};
tempo2note = ffunction(float B2N(int,float), "beat.h", "");
dide = _<:*(dry),(delx(B) : *(wet)):>_ with {
B = hslider("Freeze[tooltip:Freeze the current delay]",0,0,1,1);
delx(n) = _<:(*(1.0-B):digd), !:>_;
digd = (+:(delayed:lback(B)))~(fback(B)) with {
fback(n) = _<:select2(n, feed, freeze):>_;
lback(n) = _<:select2(n, *(level), *(1.0)):>_;
feed = *(feedback): highpass(2,hifr1):lowpass(2,lofr1) : selfilter(sl);
freeze = *(1.0);
sl = hslider("mode[name:Mode][enum:plain|presence|tape|tape2]",0,0,3,1);
delayed = sdelay(N, interp, min(2^19,(tempo2note(tact,dbpm)))) with {
dtime = hslider("delay[name:Delay][tooltip:Delay Time in ms]", 2500, 0.1, 5000, 0.1)*SR/1000.0;
dbpm = tempo(hslider("bpm[name:BPM][tooltip:Delay in Beats per Minute]",120,24,360,1));
tact = hslider("notes[name:Notes][enum:Dotted 1/2 note|1/2 note|1/2 note triplets|
Dotted 1/4 note|1/4 note|1/4 note triplets|Dotted 1/8 note|1/8 note|1/8 note triplets|
Dotted 1/16 note|1/16 note|1/16 note triplets|Dotted 1/32 note|1/32 note|1/32 note triplets|
Dotted 1/64 note|1/64 note|1/64 note triplets][tooltip:Note setting for bpm]",4,0,17,1);
interp = 100*SR/1000.0;
N = int( 2^19 ) ;
};
level = vslider("level[name:Level][tooltip:Percentage of the delay gain level]", 50, 1, 100, 1)/100 ;
feedback = vslider("feedback[name:Feedback][tooltip:Percentage of the feedback level in the delay loop]", 50, 1, 100, 1)/100 ;
hifr1 = hslider("highpass[name:Hipass][tooltip: Highpass filter frequency in the feddback loop]" ,120 , 20, 20000, 1);
lofr1 = hslider("howpass [name:Lopass][tooltip: Lowpass filter frequency in the feddback loop]" ,12000 , 20, 20000, 1);
};
wet = vslider("gain[name:Gain][tooltip:Overall gain of the delay line in percent]", 100, 0, 120, 1) : /(100);
dry = 1 ;
};
process = dide;
|
|
30409dbc84d455cf8d222b51e6aadc8f86b301279f7528cc5c64da7d4a919944 | tonal-glyph/faustus | noiseMetadata.dsp | // WARNING: This a "legacy example based on a deprecated library". Check noises.lib
// for more accurate examples of noise functions
<mdoc>
\title{<metadata>name</metadata>}
\author{<metadata>author</metadata>}
\date{\today}
\maketitle
\begin{tabular}{ll}
\hline
\textbf{name} & <metadata>name</metadata> \\
\textbf{version} & <metadata>version</metadata> \\
\textbf{author} & <metadata>author</metadata> \\
\textbf{license} & <metadata>license</metadata> \\
\textbf{copyright} & <metadata>copyright</metadata> \\
\hline
\end{tabular}
\bigskip
</mdoc>
//-----------------------------------------------------------------
// Noise generator and demo file for the Faust math documentation
//-----------------------------------------------------------------
declare name "noiseMetadata"; // avoid same name as in noise.dsp
declare version "1.1";
declare author "Grame";
declare author "Yghe";
declare license "BSD";
declare copyright "(c)GRAME 2009";
<mdoc>
\section{Presentation of the "noise.dsp" Faust program}
This program describes a white noise generator with an interactive volume, using a random function.
\subsection{The random function}
</mdoc>
random = +(12345)~*(1103515245);
<mdoc>
The \texttt{random} function describes a generator of random numbers, which equation follows. You should notice hereby the use of an integer arithmetic on 32 bits, relying on integer wrapping for big numbers.
<equation>random</equation>
\subsection{The noise function}
</mdoc>
noise = random/2147483647.0;
<mdoc>
The white noise then corresponds to:
<equation>noise</equation>
\subsection{Just add a user interface element to play volume!}
</mdoc>
process = noise * vslider("Volume[style:knob]", 0, 0, 1, 0.1);
<mdoc>
Endly, the sound level of this program is controlled by a user slider, which gives the following equation:
<equation>process</equation>
\section{Block-diagram schema of process}
This process is illustrated on figure 1.
<diagram>process</diagram>
\section{Notice of this documentation}
You might be careful of certain information and naming conventions used in this documentation:
<notice />
\section{Listing of the input code}
The following listing shows the input Faust code, parsed to compile this mathematical documentation.
<listing mdoctags="false" dependencies="false" distributed="false" />
</mdoc>
| https://raw.githubusercontent.com/tonal-glyph/faustus/cc887b115aceaee202edbdb37ee0e4087bfb5a33/examples/generator/noiseMetadata.dsp | faust | WARNING: This a "legacy example based on a deprecated library". Check noises.lib
for more accurate examples of noise functions
-----------------------------------------------------------------
Noise generator and demo file for the Faust math documentation
-----------------------------------------------------------------
avoid same name as in noise.dsp |
<mdoc>
\title{<metadata>name</metadata>}
\author{<metadata>author</metadata>}
\date{\today}
\maketitle
\begin{tabular}{ll}
\hline
\textbf{name} & <metadata>name</metadata> \\
\textbf{version} & <metadata>version</metadata> \\
\textbf{author} & <metadata>author</metadata> \\
\textbf{license} & <metadata>license</metadata> \\
\textbf{copyright} & <metadata>copyright</metadata> \\
\hline
\end{tabular}
\bigskip
</mdoc>
declare version "1.1";
declare author "Grame";
declare author "Yghe";
declare license "BSD";
declare copyright "(c)GRAME 2009";
<mdoc>
\section{Presentation of the "noise.dsp" Faust program}
This program describes a white noise generator with an interactive volume, using a random function.
\subsection{The random function}
</mdoc>
random = +(12345)~*(1103515245);
<mdoc>
The \texttt{random} function describes a generator of random numbers, which equation follows. You should notice hereby the use of an integer arithmetic on 32 bits, relying on integer wrapping for big numbers.
<equation>random</equation>
\subsection{The noise function}
</mdoc>
noise = random/2147483647.0;
<mdoc>
The white noise then corresponds to:
<equation>noise</equation>
\subsection{Just add a user interface element to play volume!}
</mdoc>
process = noise * vslider("Volume[style:knob]", 0, 0, 1, 0.1);
<mdoc>
Endly, the sound level of this program is controlled by a user slider, which gives the following equation:
<equation>process</equation>
\section{Block-diagram schema of process}
This process is illustrated on figure 1.
<diagram>process</diagram>
\section{Notice of this documentation}
You might be careful of certain information and naming conventions used in this documentation:
<notice />
\section{Listing of the input code}
The following listing shows the input Faust code, parsed to compile this mathematical documentation.
<listing mdoctags="false" dependencies="false" distributed="false" />
</mdoc>
|
b7e46a4d90bd17b00db1bdcd20d98deeb3072a32e2a94482cd9dd77a42fb0387 | brummer10/guitarix | scream.dsp | // generated automatically
// DO NOT MODIFY!
declare id "scream";
declare name "Screaming Bird";
declare category "Distortion";
declare shortname "Scream Bird";
declare description "Screaming Bird";
import("stdfaust.lib");
process = pre : fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) : clip with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
a = 1.2715 - Scream ;
clip(x) = min(0.4514,max(-0.2514,x));
Scream = vslider("Scream[name:Scream]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
b0 = -6.82076449438528e-9*Scream*pow(fs,2) - 6.82076449438528e-10*pow(fs,2);
b1 = 1.36415289887706e-8*Scream*pow(fs,2) + 1.36415289887706e-9*pow(fs,2);
b2 = -6.82076449438528e-9*Scream*pow(fs,2) - 6.82076449438528e-10*pow(fs,2);
a0 = fs*(3.64434266110822e-10*fs + 3.23311541086178e-6) + 0.00515391115930048;
a1 = -7.28868532221644e-10*pow(fs,2) + 0.010307822318601;
a2 = fs*(3.64434266110822e-10*fs - 3.23311541086178e-6) + 0.00515391115930048;
};
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/scream.dsp | faust | generated automatically
DO NOT MODIFY! | declare id "scream";
declare name "Screaming Bird";
declare category "Distortion";
declare shortname "Scream Bird";
declare description "Screaming Bird";
import("stdfaust.lib");
process = pre : fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) : clip with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
a = 1.2715 - Scream ;
clip(x) = min(0.4514,max(-0.2514,x));
Scream = vslider("Scream[name:Scream]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
b0 = -6.82076449438528e-9*Scream*pow(fs,2) - 6.82076449438528e-10*pow(fs,2);
b1 = 1.36415289887706e-8*Scream*pow(fs,2) + 1.36415289887706e-9*pow(fs,2);
b2 = -6.82076449438528e-9*Scream*pow(fs,2) - 6.82076449438528e-10*pow(fs,2);
a0 = fs*(3.64434266110822e-10*fs + 3.23311541086178e-6) + 0.00515391115930048;
a1 = -7.28868532221644e-10*pow(fs,2) + 0.010307822318601;
a2 = fs*(3.64434266110822e-10*fs - 3.23311541086178e-6) + 0.00515391115930048;
};
|
23929cbe7941571e2211d90c5cf4921ad5e906815265dec3b1748860194ed634 | Pro19/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);
freq = hslider("lfobpm[name:BPM][unit:bpm][tooltip:LFO in Beats per Minute]",24,24,360,1)/60;
level = hslider("level[name: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/Pro19/guitarix/b1c686212332d1ea40683262bf95ad2b486b2bb6/trunk/src/faust/flanger_mono.dsp | faust | freq = hslider("freq [unit:Hz]", 0.2, 0, 5, 0.01); | 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("lfobpm[name:BPM][unit:bpm][tooltip:LFO in Beats per Minute]",24,24,360,1)/60;
level = hslider("level[name: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 ):>_;
|
a9ca7a2d3ea8bc12646f65f0ff335611fe17f01437d0c8ea8db8236185e9f929 | simonvanderveldt/guitarix | moog.dsp | declare id "moog";
declare name "Moog Filter";
declare category "Tone Control";
declare license "BSD";
import("stdfaust.lib");
import("guitarix.lib");
Q = hslider("Q[name:Q]", 1, 0, 4, 0.1);
fr = hslider("fr[name:Freq]", 3000, 440, 6000, 10): smoothi(0.999);
process = ( +(anti_denormal_ac): moogvcfN(Q,fr)), (+(anti_denormal_ac): moogvcfN(Q,fr));
| https://raw.githubusercontent.com/simonvanderveldt/guitarix/51ba3d2bba6118a7fbf67a56c30e860faa155d5f/trunk/src/faust/moog.dsp | faust | declare id "moog";
declare name "Moog Filter";
declare category "Tone Control";
declare license "BSD";
import("stdfaust.lib");
import("guitarix.lib");
Q = hslider("Q[name:Q]", 1, 0, 4, 0.1);
fr = hslider("fr[name:Freq]", 3000, 440, 6000, 10): smoothi(0.999);
process = ( +(anti_denormal_ac): moogvcfN(Q,fr)), (+(anti_denormal_ac): moogvcfN(Q,fr));
|
|
2faa72cdc595b2b7d461e9a798d39c688fb0add1705d704ca8711860cfcbc81e | simonvanderveldt/guitarix | chorus_mono.dsp | declare name "Chorus Mono";
declare category "Modulation";
declare author "Albert Graef";
declare version "1.0";
import("stdfaust.lib");
level = hslider("level[name:Level]", 0.5, 0, 1, 0.01);
freq = hslider("freq[name:Freq]", 2, 0, 10, 0.01);
dtime = 0.02 ;//hslider("de.delay", 0.02, 0, 0.2, 0.01): si.smooth(0.999);
depth = 0.02 ;//hslider("depth", 0.02, 0, 1, 0.01);
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): component("chorus.dsp").chorus(dtime,freq,depth,0)):>_;
| https://raw.githubusercontent.com/simonvanderveldt/guitarix/51ba3d2bba6118a7fbf67a56c30e860faa155d5f/trunk/src/faust/chorus_mono.dsp | faust | hslider("de.delay", 0.02, 0, 0.2, 0.01): si.smooth(0.999);
hslider("depth", 0.02, 0, 1, 0.01); | declare name "Chorus Mono";
declare category "Modulation";
declare author "Albert Graef";
declare version "1.0";
import("stdfaust.lib");
level = hslider("level[name:Level]", 0.5, 0, 1, 0.01);
freq = hslider("freq[name:Freq]", 2, 0, 10, 0.01);
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): component("chorus.dsp").chorus(dtime,freq,depth,0)):>_;
|
8d8b4399fa4af358a1fd97b83559c7746a9da713fafaa6568b80b6b19e580b3c | guysherman/Faust | quadecho.dsp | declare name "quadecho";
declare version "1.0";
declare author "Grame";
declare license "BSD";
declare copyright "(c)GRAME 2007";
//-----------------------------------------------
// A 1 second quadriphonic Echo
//-----------------------------------------------
import("music.lib");
process = vgroup("stereo echo", multi(echo1s, 4))
with{
multi(f,1) = f;
multi(f,n) = f,multi(f,n-1);
};
| https://raw.githubusercontent.com/guysherman/Faust/4cac36e7fc493158e92946b3a840c4f611ac2844/examples/quadecho.dsp | faust | -----------------------------------------------
A 1 second quadriphonic Echo
----------------------------------------------- | declare name "quadecho";
declare version "1.0";
declare author "Grame";
declare license "BSD";
declare copyright "(c)GRAME 2007";
import("music.lib");
process = vgroup("stereo echo", multi(echo1s, 4))
with{
multi(f,1) = f;
multi(f,n) = f,multi(f,n-1);
};
|
ceb572ab215ec6c683c54b8e8d5be03bcc5925234e93c854df8fd07b8139f2e6 | guysherman/Faust | volume.dsp | declare name "volume";
declare version "1.0";
declare author "Grame";
declare license "BSD";
declare copyright "(c)GRAME 2006";
//-----------------------------------------------
// Volume control in dB
//-----------------------------------------------
import("music.lib");
smooth(c) = *(1-c) : +~*(c);
gain = vslider("[1]", 0, -70, +4, 0.1) : db2linear : smooth(0.999);
process = *(gain);
| https://raw.githubusercontent.com/guysherman/Faust/4cac36e7fc493158e92946b3a840c4f611ac2844/examples/volume.dsp | faust | -----------------------------------------------
Volume control in dB
----------------------------------------------- | declare name "volume";
declare version "1.0";
declare author "Grame";
declare license "BSD";
declare copyright "(c)GRAME 2006";
import("music.lib");
smooth(c) = *(1-c) : +~*(c);
gain = vslider("[1]", 0, -70, +4, 0.1) : db2linear : smooth(0.999);
process = *(gain);
|
f0a4a2585c204a1188f4ba0e93e6a4ceabf1a9300c0cbc8db914ff06cbd26c73 | guysherman/Faust | panpot.dsp | declare name "panpot";
declare version "1.0";
declare author "Grame";
declare license "BSD";
declare copyright "(c)GRAME 2006";
//-------------------------------------------------
// Stereo panpot
//-------------------------------------------------
panpot(x) = sqrt(c)*x, sqrt(1-c)*x
with {
c=(nentry("[1]pan[style:knob]",0,-90,90,1)-90.0)/-180.0;
};
process = panpot;
| https://raw.githubusercontent.com/guysherman/Faust/4cac36e7fc493158e92946b3a840c4f611ac2844/examples/panpot.dsp | faust | -------------------------------------------------
Stereo panpot
------------------------------------------------- | declare name "panpot";
declare version "1.0";
declare author "Grame";
declare license "BSD";
declare copyright "(c)GRAME 2006";
panpot(x) = sqrt(c)*x, sqrt(1-c)*x
with {
c=(nentry("[1]pan[style:knob]",0,-90,90,1)-90.0)/-180.0;
};
process = panpot;
|
59eda93713a0a11b115d3c4eb4d1b6c28beea4677ec24ab8558049220a1c82a8 | guysherman/Faust | multibandfilter.dsp | declare name "multibandfilter";
declare version "1.0";
declare author "Grame";
declare license "BSD";
declare copyright "(c)GRAME 2006";
//---------------------------Multi Band Filter-----------------------------
//
//-------------------------------------------------------------------------
process = hgroup("Multi Band Filter",
seq( i, 10, vgroup("peak %i", component("bandfilter.dsp").bandfilter(1000*(1+i))) )
);
| https://raw.githubusercontent.com/guysherman/Faust/4cac36e7fc493158e92946b3a840c4f611ac2844/examples/multibandfilter.dsp | faust | ---------------------------Multi Band Filter-----------------------------
------------------------------------------------------------------------- | declare name "multibandfilter";
declare version "1.0";
declare author "Grame";
declare license "BSD";
declare copyright "(c)GRAME 2006";
process = hgroup("Multi Band Filter",
seq( i, 10, vgroup("peak %i", component("bandfilter.dsp").bandfilter(1000*(1+i))) )
);
|
ac4e0a12f61247c7db65ac770da7edca85b9783a4cfe8d13bda099519dbf4a89 | ntonnaett/guitarix | ts9sim.dsp | declare id "ts9sim";
declare name "Tube Screamer";
declare category "Distortion";
declare samplerate "96000";
/*
** based on a circuit diagram of the Ibanez TS-9 and
** a mathematical analysis published by Tamás Kenéz
*/
smoothi(c) = *(1-c) : +~*(c);
process = ts9 : lowpass : *(gain) with {
SR = component("math.lib").SR;
R1 = 4700;
R2 = 51000 + 500000 * hslider("drive[name:Drive]", 0.5, 0, 1, 0.01);
C = 0.047 * 1e-6;
a1 = (R1 + R2) * C * 2 * SR;
a2 = R1 * C * 2 * SR;
B0 = (1 + a1) / (1 + a2);
B1 = (1 - a1) / (1 + a2);
A1 = (1 - a2) / (1 + a2);
X2 = component("filter.lib").tf1(B0, B1, A1);
ts9nonlin = ffunction(float ts9nonlin(float), "ts9nonlin.h", "");
ts9 = _ <: _ - ts9nonlin(X2-_) :> _;
fc = hslider("tone[log][name:Tone]", 400, 100, 1000, 1.03);
lowpass = component("filter.lib").lowpass(1,fc);
gain = hslider("level[name:Level]", -16, -20, 4, 0.1) : component("music.lib").db2linear : smoothi(0.999);
};
| https://raw.githubusercontent.com/ntonnaett/guitarix/e5ce36c3a693eeada3cb70425ec09f8d6f91e78c/trunk/src/plugins/ts9sim.dsp | faust |
** based on a circuit diagram of the Ibanez TS-9 and
** a mathematical analysis published by Tamás Kenéz
| declare id "ts9sim";
declare name "Tube Screamer";
declare category "Distortion";
declare samplerate "96000";
smoothi(c) = *(1-c) : +~*(c);
process = ts9 : lowpass : *(gain) with {
SR = component("math.lib").SR;
R1 = 4700;
R2 = 51000 + 500000 * hslider("drive[name:Drive]", 0.5, 0, 1, 0.01);
C = 0.047 * 1e-6;
a1 = (R1 + R2) * C * 2 * SR;
a2 = R1 * C * 2 * SR;
B0 = (1 + a1) / (1 + a2);
B1 = (1 - a1) / (1 + a2);
A1 = (1 - a2) / (1 + a2);
X2 = component("filter.lib").tf1(B0, B1, A1);
ts9nonlin = ffunction(float ts9nonlin(float), "ts9nonlin.h", "");
ts9 = _ <: _ - ts9nonlin(X2-_) :> _;
fc = hslider("tone[log][name:Tone]", 400, 100, 1000, 1.03);
lowpass = component("filter.lib").lowpass(1,fc);
gain = hslider("level[name:Level]", -16, -20, 4, 0.1) : component("music.lib").db2linear : smoothi(0.999);
};
|
afdca84a342deb138a4b56c7cd1761e5f41390f7872654d5831bc06d3a3869f7 | Pro19/guitarix | hfb.dsp | // generated automatically
// DO NOT MODIFY!
declare id "hfb";
declare name "HF Brightener";
declare category "Tone Control";
declare shortname "HF Brighten";
declare description "High Frequency Brightener";
import("stdfaust.lib");
process = pre : fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
Volume = vslider("Volume[name:Volume]", 0.5, 0, 1, 0.01) : Inverted(1) : si.smooth(s);
Intensity = vslider("Intensity[name:Intensity]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
b0 = Intensity*(5.12666523663255e-23*Intensity*pow(fs,2) - 1.59041010538546e-9*pow(fs,2)) - 3.18082021077091e-10*Volume*pow(fs,2) - 1.06027340359031e-6*fs;
b1 = Intensity*(-1.02533304732651e-22*Intensity*pow(fs,2) + 3.18082021077092e-9*pow(fs,2)) + 6.36164042154183e-10*Volume*pow(fs,2);
b2 = Intensity*(5.12666523663255e-23*Intensity*pow(fs,2) - 1.59041010538546e-9*pow(fs,2)) - 3.18082021077091e-10*Volume*pow(fs,2) + 1.06027340359031e-6*fs;
a0 = Intensity*(Intensity*fs*(-1.17023754306854e-9*fs - 6.50608604711861e-8) + fs*(1.18275520407517e-9*fs + 6.61287722583147e-8)) + Volume*fs*(2.36551040815034e-10*fs + 1.32257544516629e-8) + 7.88503469383447e-7*fs + 4.40858481722098e-5;
a1 = Intensity*(2.34047508613708e-9*Intensity*pow(fs,2) - 2.36551040815034e-9*pow(fs,2)) - 4.73102081630068e-10*Volume*pow(fs,2) + 8.81716963444196e-5;
a2 = Intensity*(Intensity*fs*(-1.17023754306854e-9*fs + 6.50608604711861e-8) + fs*(1.18275520407517e-9*fs - 6.61287722583147e-8)) + Volume*fs*(2.36551040815034e-10*fs - 1.32257544516629e-8) - 7.88503469383447e-7*fs + 4.40858481722098e-5;
};
| https://raw.githubusercontent.com/Pro19/guitarix/b1c686212332d1ea40683262bf95ad2b486b2bb6/trunk/src/plugins/hfb.dsp | faust | generated automatically
DO NOT MODIFY! | declare id "hfb";
declare name "HF Brightener";
declare category "Tone Control";
declare shortname "HF Brighten";
declare description "High Frequency Brightener";
import("stdfaust.lib");
process = pre : fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
Volume = vslider("Volume[name:Volume]", 0.5, 0, 1, 0.01) : Inverted(1) : si.smooth(s);
Intensity = vslider("Intensity[name:Intensity]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
b0 = Intensity*(5.12666523663255e-23*Intensity*pow(fs,2) - 1.59041010538546e-9*pow(fs,2)) - 3.18082021077091e-10*Volume*pow(fs,2) - 1.06027340359031e-6*fs;
b1 = Intensity*(-1.02533304732651e-22*Intensity*pow(fs,2) + 3.18082021077092e-9*pow(fs,2)) + 6.36164042154183e-10*Volume*pow(fs,2);
b2 = Intensity*(5.12666523663255e-23*Intensity*pow(fs,2) - 1.59041010538546e-9*pow(fs,2)) - 3.18082021077091e-10*Volume*pow(fs,2) + 1.06027340359031e-6*fs;
a0 = Intensity*(Intensity*fs*(-1.17023754306854e-9*fs - 6.50608604711861e-8) + fs*(1.18275520407517e-9*fs + 6.61287722583147e-8)) + Volume*fs*(2.36551040815034e-10*fs + 1.32257544516629e-8) + 7.88503469383447e-7*fs + 4.40858481722098e-5;
a1 = Intensity*(2.34047508613708e-9*Intensity*pow(fs,2) - 2.36551040815034e-9*pow(fs,2)) - 4.73102081630068e-10*Volume*pow(fs,2) + 8.81716963444196e-5;
a2 = Intensity*(Intensity*fs*(-1.17023754306854e-9*fs + 6.50608604711861e-8) + fs*(1.18275520407517e-9*fs - 6.61287722583147e-8)) + Volume*fs*(2.36551040815034e-10*fs - 1.32257544516629e-8) - 7.88503469383447e-7*fs + 4.40858481722098e-5;
};
|
56b9875ca038113d64c1ac68bcf223c045baa558ac0bc0902d482542f9be9167 | Pro19/guitarix | hfb.dsp | // generated automatically
// DO NOT MODIFY!
declare id "hfb";
declare name "HF Brightener";
declare category "Tone Control";
declare shortname "HF Brightener";
declare description "High Frequency Brightener";
import("stdfaust.lib");
process = pre : fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
Volume = vslider("Volume[name:Volume]", 0.5, 0, 1, 0.01) : Inverted(1) : si.smooth(s);
Intensity = vslider("Intensity[name:Intensity]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
b0 = Intensity*(5.12666523663255e-23*Intensity*pow(fs,2) - 1.59041010538546e-9*pow(fs,2)) - 3.18082021077091e-10*Volume*pow(fs,2) - 1.06027340359031e-6*fs;
b1 = Intensity*(-1.02533304732651e-22*Intensity*pow(fs,2) + 3.18082021077092e-9*pow(fs,2)) + 6.36164042154183e-10*Volume*pow(fs,2);
b2 = Intensity*(5.12666523663255e-23*Intensity*pow(fs,2) - 1.59041010538546e-9*pow(fs,2)) - 3.18082021077091e-10*Volume*pow(fs,2) + 1.06027340359031e-6*fs;
a0 = Intensity*(Intensity*fs*(-1.17023754306854e-9*fs - 6.50608604711861e-8) + fs*(1.18275520407517e-9*fs + 6.61287722583147e-8)) + Volume*fs*(2.36551040815034e-10*fs + 1.32257544516629e-8) + 7.88503469383447e-7*fs + 4.40858481722098e-5;
a1 = Intensity*(2.34047508613708e-9*Intensity*pow(fs,2) - 2.36551040815034e-9*pow(fs,2)) - 4.73102081630068e-10*Volume*pow(fs,2) + 8.81716963444196e-5;
a2 = Intensity*(Intensity*fs*(-1.17023754306854e-9*fs + 6.50608604711861e-8) + fs*(1.18275520407517e-9*fs - 6.61287722583147e-8)) + Volume*fs*(2.36551040815034e-10*fs - 1.32257544516629e-8) - 7.88503469383447e-7*fs + 4.40858481722098e-5;
};
| https://raw.githubusercontent.com/Pro19/guitarix/b1c686212332d1ea40683262bf95ad2b486b2bb6/trunk/src/LV2/faust/hfb.dsp | faust | generated automatically
DO NOT MODIFY! | declare id "hfb";
declare name "HF Brightener";
declare category "Tone Control";
declare shortname "HF Brightener";
declare description "High Frequency Brightener";
import("stdfaust.lib");
process = pre : fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
Volume = vslider("Volume[name:Volume]", 0.5, 0, 1, 0.01) : Inverted(1) : si.smooth(s);
Intensity = vslider("Intensity[name:Intensity]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
b0 = Intensity*(5.12666523663255e-23*Intensity*pow(fs,2) - 1.59041010538546e-9*pow(fs,2)) - 3.18082021077091e-10*Volume*pow(fs,2) - 1.06027340359031e-6*fs;
b1 = Intensity*(-1.02533304732651e-22*Intensity*pow(fs,2) + 3.18082021077092e-9*pow(fs,2)) + 6.36164042154183e-10*Volume*pow(fs,2);
b2 = Intensity*(5.12666523663255e-23*Intensity*pow(fs,2) - 1.59041010538546e-9*pow(fs,2)) - 3.18082021077091e-10*Volume*pow(fs,2) + 1.06027340359031e-6*fs;
a0 = Intensity*(Intensity*fs*(-1.17023754306854e-9*fs - 6.50608604711861e-8) + fs*(1.18275520407517e-9*fs + 6.61287722583147e-8)) + Volume*fs*(2.36551040815034e-10*fs + 1.32257544516629e-8) + 7.88503469383447e-7*fs + 4.40858481722098e-5;
a1 = Intensity*(2.34047508613708e-9*Intensity*pow(fs,2) - 2.36551040815034e-9*pow(fs,2)) - 4.73102081630068e-10*Volume*pow(fs,2) + 8.81716963444196e-5;
a2 = Intensity*(Intensity*fs*(-1.17023754306854e-9*fs + 6.50608604711861e-8) + fs*(1.18275520407517e-9*fs - 6.61287722583147e-8)) + Volume*fs*(2.36551040815034e-10*fs - 1.32257544516629e-8) - 7.88503469383447e-7*fs + 4.40858481722098e-5;
};
|
858d7d5284640c3dff9d1fa83e12403bfdae7e6348a15439919ff2ac17b03bf4 | Pro19/guitarix | mole.dsp | // generated automatically
// DO NOT MODIFY!
declare id "mole";
declare name "The Mole";
declare category "Tone Control";
declare shortname "The Mole";
declare description "EHX Mole";
import("stdfaust.lib");
process = pre : _<:*(dry),(*(wet) : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0))):>_ with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
wet = vslider("wet_dry[name:wet/dry][tooltip:percentage of processed signal in output signal]", 100, 0, 100, 1) : /(100);
dry = 1 - wet;
Boost = vslider("Boost[name:Boost]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
b0 = -9.74268345040146e-11*Boost*pow(fs,2);
b1 = 9.74268345040146e-11*Boost*pow(fs,2);
b2 = 9.74268345040146e-11*Boost*pow(fs,2);
b3 = -9.74268345040146e-11*Boost*pow(fs,2);
a0 = fs*(fs*(8.93878454194095e-15*fs + 4.96556855945694e-12) + 2.64572840995574e-11) + 2.70404912477885e-11;
a1 = fs*(fs*(-2.68163536258229e-14*fs - 4.96556855945694e-12) + 2.64572840995574e-11) + 8.11214737433656e-11;
a2 = fs*(fs*(2.68163536258229e-14*fs - 4.96556855945694e-12) - 2.64572840995574e-11) + 8.11214737433656e-11;
a3 = fs*(fs*(-8.93878454194095e-15*fs + 4.96556855945694e-12) - 2.64572840995574e-11) + 2.70404912477885e-11;
};
| https://raw.githubusercontent.com/Pro19/guitarix/b1c686212332d1ea40683262bf95ad2b486b2bb6/trunk/src/LV2/faust/mole.dsp | faust | generated automatically
DO NOT MODIFY! | declare id "mole";
declare name "The Mole";
declare category "Tone Control";
declare shortname "The Mole";
declare description "EHX Mole";
import("stdfaust.lib");
process = pre : _<:*(dry),(*(wet) : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0))):>_ with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
wet = vslider("wet_dry[name:wet/dry][tooltip:percentage of processed signal in output signal]", 100, 0, 100, 1) : /(100);
dry = 1 - wet;
Boost = vslider("Boost[name:Boost]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
b0 = -9.74268345040146e-11*Boost*pow(fs,2);
b1 = 9.74268345040146e-11*Boost*pow(fs,2);
b2 = 9.74268345040146e-11*Boost*pow(fs,2);
b3 = -9.74268345040146e-11*Boost*pow(fs,2);
a0 = fs*(fs*(8.93878454194095e-15*fs + 4.96556855945694e-12) + 2.64572840995574e-11) + 2.70404912477885e-11;
a1 = fs*(fs*(-2.68163536258229e-14*fs - 4.96556855945694e-12) + 2.64572840995574e-11) + 8.11214737433656e-11;
a2 = fs*(fs*(2.68163536258229e-14*fs - 4.96556855945694e-12) - 2.64572840995574e-11) + 8.11214737433656e-11;
a3 = fs*(fs*(-8.93878454194095e-15*fs + 4.96556855945694e-12) - 2.64572840995574e-11) + 2.70404912477885e-11;
};
|
d08378a8107f6f265502d506995342c4cb29acf44d80809e92e2c80943808833 | guysherman/Faust | volume.dsp | declare name "volume";
declare version "1.0";
declare author "Grame";
declare license "BSD";
declare copyright "(c)GRAME 2006";
//-----------------------------------------------
// Volume control in dB
//-----------------------------------------------
import("music.lib");
smooth(c) = *(1-c) : +~*(c);
gain = vslider(" dB ", 0, -96, 4, 0.1) : db2linear : smooth(0.999);
process = vgroup("fader", *(gain));
| https://raw.githubusercontent.com/guysherman/Faust/4cac36e7fc493158e92946b3a840c4f611ac2844/tools/faust2pd/examples/faust/volume.dsp | faust | -----------------------------------------------
Volume control in dB
----------------------------------------------- | declare name "volume";
declare version "1.0";
declare author "Grame";
declare license "BSD";
declare copyright "(c)GRAME 2006";
import("music.lib");
smooth(c) = *(1-c) : +~*(c);
gain = vslider(" dB ", 0, -96, 4, 0.1) : db2linear : smooth(0.999);
process = vgroup("fader", *(gain));
|
06ddd5ec8d169641fc4adcd14861ad43e725289455af3764c99bd34afd290b32 | ntonnaett/guitarix | stereoverb.dsp | declare name "Stereo Verb";
declare category "Reverb";
declare version "0.01";
declare author "brummer";
declare license "BSD";
declare copyright "(c)brummer 2008";
import("math.lib");
import("music.lib");
import("effect.lib");
import("filter.lib");
import("guitarix.lib");
/*-----------------------------------------------
freeverb by "Grame"
-----------------------------------------------*/
// Filter Parameters
combtuningL1 = 1116;
combtuningL2 = 1188;
combtuningL3 = 1277;
combtuningL4 = 1356;
combtuningL5 = 1422;
combtuningL6 = 1491;
combtuningL7 = 1557;
combtuningL8 = 1617;
allpasstuningL1 = 556;
allpasstuningL2 = 441;
allpasstuningL3 = 341;
allpasstuningL4 = 225;
roomsizeSlider = vslider("RoomSize", 0.5, 0, 1, 0.025)*0.28 + 0.7;
dampslider = vslider("damp",0.5, 0, 1, 0.025);
combfeed = roomsizeSlider;
//wetslider = 0.5 + vslider("wet_dry[name:wet/dry]", 0, -0.5, 0.5, 0.1);
wet_dry = vslider("wet_dry[name:wet/dry]", 50, 0, 100, 1) : /(100);
dry = 1 - wet_dry;
// Reverb components
monoReverb(fb1, fb2, damp, spread)
= _ <: comb(combtuningL1+spread, fb1, damp),
comb(combtuningL2+spread, fb1, damp),
comb(combtuningL3+spread, fb1, damp),
comb(combtuningL4+spread, fb1, damp),
comb(combtuningL5+spread, fb1, damp),
comb(combtuningL6+spread, fb1, damp),
comb(combtuningL7+spread, fb1, damp),
comb(combtuningL8+spread, fb1, damp)
+>
allpass (allpasstuningL1+spread, fb2)
: allpass (allpasstuningL2+spread, fb2)
: allpass (allpasstuningL3+spread, fb2)
: allpass (allpasstuningL4+spread, fb2)
;
//----------------------------------------------------------------
lfol = component("oscillator.lib").oscrs; // sine for left channel
freq = hslider("LFO freq [unit:Hz]", 0.2, 0, 5, 0.01);
pingpong = checkbox("invert[enum:linear|pingpong]");
fxctrl(g,w,Fx) = _ <: (*(g) <: _ + Fx ), *(1-w) +> _;
freeverb_r = (_<:*(dry),(*(wet_dry):fxctrl(0.015,wet_dry, monoReverb(combfeed, 0.5, dampslider, 23))* (1-(lfol(freq)*pingpong))):>_);
freeverb_l = (_<:*(dry),(*(wet_dry):fxctrl(0.015,wet_dry, monoReverb(combfeed, 0.5, dampslider, 23))* (1-(-1*lfol(freq)*pingpong))):>_);
process = freeverb_r, freeverb_l;
| https://raw.githubusercontent.com/ntonnaett/guitarix/e5ce36c3a693eeada3cb70425ec09f8d6f91e78c/trunk/src/LV2/faust/stereoverb.dsp | faust | -----------------------------------------------
freeverb by "Grame"
-----------------------------------------------
Filter Parameters
wetslider = 0.5 + vslider("wet_dry[name:wet/dry]", 0, -0.5, 0.5, 0.1);
Reverb components
----------------------------------------------------------------
sine for left channel | declare name "Stereo Verb";
declare category "Reverb";
declare version "0.01";
declare author "brummer";
declare license "BSD";
declare copyright "(c)brummer 2008";
import("math.lib");
import("music.lib");
import("effect.lib");
import("filter.lib");
import("guitarix.lib");
combtuningL1 = 1116;
combtuningL2 = 1188;
combtuningL3 = 1277;
combtuningL4 = 1356;
combtuningL5 = 1422;
combtuningL6 = 1491;
combtuningL7 = 1557;
combtuningL8 = 1617;
allpasstuningL1 = 556;
allpasstuningL2 = 441;
allpasstuningL3 = 341;
allpasstuningL4 = 225;
roomsizeSlider = vslider("RoomSize", 0.5, 0, 1, 0.025)*0.28 + 0.7;
dampslider = vslider("damp",0.5, 0, 1, 0.025);
combfeed = roomsizeSlider;
wet_dry = vslider("wet_dry[name:wet/dry]", 50, 0, 100, 1) : /(100);
dry = 1 - wet_dry;
monoReverb(fb1, fb2, damp, spread)
= _ <: comb(combtuningL1+spread, fb1, damp),
comb(combtuningL2+spread, fb1, damp),
comb(combtuningL3+spread, fb1, damp),
comb(combtuningL4+spread, fb1, damp),
comb(combtuningL5+spread, fb1, damp),
comb(combtuningL6+spread, fb1, damp),
comb(combtuningL7+spread, fb1, damp),
comb(combtuningL8+spread, fb1, damp)
+>
allpass (allpasstuningL1+spread, fb2)
: allpass (allpasstuningL2+spread, fb2)
: allpass (allpasstuningL3+spread, fb2)
: allpass (allpasstuningL4+spread, fb2)
;
freq = hslider("LFO freq [unit:Hz]", 0.2, 0, 5, 0.01);
pingpong = checkbox("invert[enum:linear|pingpong]");
fxctrl(g,w,Fx) = _ <: (*(g) <: _ + Fx ), *(1-w) +> _;
freeverb_r = (_<:*(dry),(*(wet_dry):fxctrl(0.015,wet_dry, monoReverb(combfeed, 0.5, dampslider, 23))* (1-(lfol(freq)*pingpong))):>_);
freeverb_l = (_<:*(dry),(*(wet_dry):fxctrl(0.015,wet_dry, monoReverb(combfeed, 0.5, dampslider, 23))* (1-(-1*lfol(freq)*pingpong))):>_);
process = freeverb_r, freeverb_l;
|
6682ba93bf86d7e4490b7323b11048b9abe885353b399b0f881a3d437a36a2c2 | ntonnaett/guitarix | hfb.dsp | // generated automatically
// DO NOT MODIFY!
declare id "hfb";
declare name "HF Brightener";
declare category "Tone Control";
declare shortname "HF Brighten";
declare description "High Frequency Brightener";
import("filter.lib");
process = pre : iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
LogPot(a, x) = if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = if(b, 1 - x, x);
s = 0.993;
fs = float(SR);
pre = _;
Volume = vslider("Volume[name:Volume]", 0.5, 0, 1, 0.01) : Inverted(1) : smooth(s);
Intensity = vslider("Intensity[name:Intensity]", 0.5, 0, 1, 0.01) : Inverted(0) : smooth(s);
b0 = Intensity*(5.12666523663255e-23*Intensity*pow(fs,2) - 1.59041010538546e-9*pow(fs,2)) - 3.18082021077091e-10*Volume*pow(fs,2) - 1.06027340359031e-6*fs;
b1 = Intensity*(-1.02533304732651e-22*Intensity*pow(fs,2) + 3.18082021077092e-9*pow(fs,2)) + 6.36164042154183e-10*Volume*pow(fs,2);
b2 = Intensity*(5.12666523663255e-23*Intensity*pow(fs,2) - 1.59041010538546e-9*pow(fs,2)) - 3.18082021077091e-10*Volume*pow(fs,2) + 1.06027340359031e-6*fs;
a0 = Intensity*(Intensity*fs*(-1.17023754306854e-9*fs - 6.50608604711861e-8) + fs*(1.18275520407517e-9*fs + 6.61287722583147e-8)) + Volume*fs*(2.36551040815034e-10*fs + 1.32257544516629e-8) + 7.88503469383447e-7*fs + 4.40858481722098e-5;
a1 = Intensity*(2.34047508613708e-9*Intensity*pow(fs,2) - 2.36551040815034e-9*pow(fs,2)) - 4.73102081630068e-10*Volume*pow(fs,2) + 8.81716963444196e-5;
a2 = Intensity*(Intensity*fs*(-1.17023754306854e-9*fs + 6.50608604711861e-8) + fs*(1.18275520407517e-9*fs - 6.61287722583147e-8)) + Volume*fs*(2.36551040815034e-10*fs - 1.32257544516629e-8) - 7.88503469383447e-7*fs + 4.40858481722098e-5;
};
| https://raw.githubusercontent.com/ntonnaett/guitarix/e5ce36c3a693eeada3cb70425ec09f8d6f91e78c/trunk/src/plugins/hfb.dsp | faust | generated automatically
DO NOT MODIFY! | declare id "hfb";
declare name "HF Brightener";
declare category "Tone Control";
declare shortname "HF Brighten";
declare description "High Frequency Brightener";
import("filter.lib");
process = pre : iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
LogPot(a, x) = if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = if(b, 1 - x, x);
s = 0.993;
fs = float(SR);
pre = _;
Volume = vslider("Volume[name:Volume]", 0.5, 0, 1, 0.01) : Inverted(1) : smooth(s);
Intensity = vslider("Intensity[name:Intensity]", 0.5, 0, 1, 0.01) : Inverted(0) : smooth(s);
b0 = Intensity*(5.12666523663255e-23*Intensity*pow(fs,2) - 1.59041010538546e-9*pow(fs,2)) - 3.18082021077091e-10*Volume*pow(fs,2) - 1.06027340359031e-6*fs;
b1 = Intensity*(-1.02533304732651e-22*Intensity*pow(fs,2) + 3.18082021077092e-9*pow(fs,2)) + 6.36164042154183e-10*Volume*pow(fs,2);
b2 = Intensity*(5.12666523663255e-23*Intensity*pow(fs,2) - 1.59041010538546e-9*pow(fs,2)) - 3.18082021077091e-10*Volume*pow(fs,2) + 1.06027340359031e-6*fs;
a0 = Intensity*(Intensity*fs*(-1.17023754306854e-9*fs - 6.50608604711861e-8) + fs*(1.18275520407517e-9*fs + 6.61287722583147e-8)) + Volume*fs*(2.36551040815034e-10*fs + 1.32257544516629e-8) + 7.88503469383447e-7*fs + 4.40858481722098e-5;
a1 = Intensity*(2.34047508613708e-9*Intensity*pow(fs,2) - 2.36551040815034e-9*pow(fs,2)) - 4.73102081630068e-10*Volume*pow(fs,2) + 8.81716963444196e-5;
a2 = Intensity*(Intensity*fs*(-1.17023754306854e-9*fs + 6.50608604711861e-8) + fs*(1.18275520407517e-9*fs - 6.61287722583147e-8)) + Volume*fs*(2.36551040815034e-10*fs - 1.32257544516629e-8) - 7.88503469383447e-7*fs + 4.40858481722098e-5;
};
|
1fe99eaad9a3fc70b06b71c2c03661787addbeec1f13e146d87139b9fe7fa4f7 | ntonnaett/guitarix | hogsfoot.dsp | // generated automatically
// DO NOT MODIFY!
declare id "hogsfoot";
declare name "Hogs Foot";
declare category "Tone Control";
declare shortname "Hogs Foot";
declare description "Hogs Foot Bass Booster";
import("filter.lib");
process = pre : _<:*(dry),(*(wet) : iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0))):>_ with {
LogPot(a, x) = if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = if(b, 1 - x, x);
s = 0.993;
fs = float(SR);
pre = _;
wet = vslider("wet_dry[name:Wet/Dry][tooltip:percentage of processed signal in output signal]", 100, 0, 100, 1) : /(100);
dry = 1 - wet;
Volume = vslider("Volume[name:Volume]", 0.5, 0, 1, 0.01) : Inverted(0) : smooth(s);
b0 = -9.64632260709932e-11*Volume*pow(fs,2) - 9.64632260709932e-13*pow(fs,2);
b1 = 9.64632260709932e-11*Volume*pow(fs,2) + 9.64632260709932e-13*pow(fs,2);
b2 = 9.64632260709932e-11*Volume*pow(fs,2) + 9.64632260709932e-13*pow(fs,2);
b3 = -9.64632260709932e-11*Volume*pow(fs,2) - 9.64632260709932e-13*pow(fs,2);
a0 = fs*(fs*(8.93887847679127e-15*fs + 4.96106145708971e-12) + 2.63723081667839e-11) + 2.67730449581491e-11;
a1 = fs*(fs*(-2.68166354303738e-14*fs - 4.96106145708971e-12) + 2.63723081667839e-11) + 8.03191348744474e-11;
a2 = fs*(fs*(2.68166354303738e-14*fs - 4.96106145708971e-12) - 2.63723081667839e-11) + 8.03191348744474e-11;
a3 = fs*(fs*(-8.93887847679127e-15*fs + 4.96106145708971e-12) - 2.63723081667839e-11) + 2.67730449581491e-11;
};
| https://raw.githubusercontent.com/ntonnaett/guitarix/e5ce36c3a693eeada3cb70425ec09f8d6f91e78c/trunk/src/plugins/hogsfoot.dsp | faust | generated automatically
DO NOT MODIFY! | declare id "hogsfoot";
declare name "Hogs Foot";
declare category "Tone Control";
declare shortname "Hogs Foot";
declare description "Hogs Foot Bass Booster";
import("filter.lib");
process = pre : _<:*(dry),(*(wet) : iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0))):>_ with {
LogPot(a, x) = if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = if(b, 1 - x, x);
s = 0.993;
fs = float(SR);
pre = _;
wet = vslider("wet_dry[name:Wet/Dry][tooltip:percentage of processed signal in output signal]", 100, 0, 100, 1) : /(100);
dry = 1 - wet;
Volume = vslider("Volume[name:Volume]", 0.5, 0, 1, 0.01) : Inverted(0) : smooth(s);
b0 = -9.64632260709932e-11*Volume*pow(fs,2) - 9.64632260709932e-13*pow(fs,2);
b1 = 9.64632260709932e-11*Volume*pow(fs,2) + 9.64632260709932e-13*pow(fs,2);
b2 = 9.64632260709932e-11*Volume*pow(fs,2) + 9.64632260709932e-13*pow(fs,2);
b3 = -9.64632260709932e-11*Volume*pow(fs,2) - 9.64632260709932e-13*pow(fs,2);
a0 = fs*(fs*(8.93887847679127e-15*fs + 4.96106145708971e-12) + 2.63723081667839e-11) + 2.67730449581491e-11;
a1 = fs*(fs*(-2.68166354303738e-14*fs - 4.96106145708971e-12) + 2.63723081667839e-11) + 8.03191348744474e-11;
a2 = fs*(fs*(2.68166354303738e-14*fs - 4.96106145708971e-12) - 2.63723081667839e-11) + 8.03191348744474e-11;
a3 = fs*(fs*(-8.93887847679127e-15*fs + 4.96106145708971e-12) - 2.63723081667839e-11) + 2.67730449581491e-11;
};
|
4aa13015f1666f152d918af85217da0cbc875c9a383f7c8f51b5fee1ff55f4c6 | ntonnaett/guitarix | buzz.dsp | // generated automatically
// DO NOT MODIFY!
declare id "buzz";
declare name "Buzz Box";
declare category "Fuzz";
declare shortname "Buzz Box";
declare description "Buzz Box";
import("filter.lib");
import("trany.lib");
process = pre : _<:*(dry),(*(wet) : iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0)) : clip):>_ with {
LogPot(a, x) = if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = if(b, 1 - x, x);
s = 0.993;
fs = float(SR);
pre = _;
wet = vslider("wet_dry[name:Wet/Dry][tooltip:percentage of processed signal in output signal]", 100, 0, 100, 1) : /(100);
dry = 1 - wet;
clip = tranystageb(TB_7199P_68k,86.0,2700.0,5.571981) : tranystageb(TB_7199P_68k,86.0,2700.0,5.571981) ;
Level = vslider("Level[name:Level]", 0.5, 0, 1, 0.01) : Inverted(0) : smooth(s);
b0 = 3.81347663375185e-13*Level*pow(fs,3);
b1 = -1.14404299012556e-12*Level*pow(fs,3);
b2 = 1.14404299012556e-12*Level*pow(fs,3);
b3 = -3.81347663375185e-13*Level*pow(fs,3);
a0 = fs*(fs*(9.04201686922855e-15*fs + 1.0967885210812e-14) + 8.14058347559848e-15) + 2.46256378077601e-15;
a1 = fs*(fs*(-2.71260506076857e-14*fs - 1.0967885210812e-14) + 8.14058347559848e-15) + 7.38769134232804e-15;
a2 = fs*(fs*(2.71260506076857e-14*fs - 1.0967885210812e-14) - 8.14058347559848e-15) + 7.38769134232804e-15;
a3 = fs*(fs*(-9.04201686922855e-15*fs + 1.0967885210812e-14) - 8.14058347559848e-15) + 2.46256378077601e-15;
};
| https://raw.githubusercontent.com/ntonnaett/guitarix/e5ce36c3a693eeada3cb70425ec09f8d6f91e78c/trunk/src/plugins/buzz.dsp | faust | generated automatically
DO NOT MODIFY! | declare id "buzz";
declare name "Buzz Box";
declare category "Fuzz";
declare shortname "Buzz Box";
declare description "Buzz Box";
import("filter.lib");
import("trany.lib");
process = pre : _<:*(dry),(*(wet) : iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0)) : clip):>_ with {
LogPot(a, x) = if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = if(b, 1 - x, x);
s = 0.993;
fs = float(SR);
pre = _;
wet = vslider("wet_dry[name:Wet/Dry][tooltip:percentage of processed signal in output signal]", 100, 0, 100, 1) : /(100);
dry = 1 - wet;
clip = tranystageb(TB_7199P_68k,86.0,2700.0,5.571981) : tranystageb(TB_7199P_68k,86.0,2700.0,5.571981) ;
Level = vslider("Level[name:Level]", 0.5, 0, 1, 0.01) : Inverted(0) : smooth(s);
b0 = 3.81347663375185e-13*Level*pow(fs,3);
b1 = -1.14404299012556e-12*Level*pow(fs,3);
b2 = 1.14404299012556e-12*Level*pow(fs,3);
b3 = -3.81347663375185e-13*Level*pow(fs,3);
a0 = fs*(fs*(9.04201686922855e-15*fs + 1.0967885210812e-14) + 8.14058347559848e-15) + 2.46256378077601e-15;
a1 = fs*(fs*(-2.71260506076857e-14*fs - 1.0967885210812e-14) + 8.14058347559848e-15) + 7.38769134232804e-15;
a2 = fs*(fs*(2.71260506076857e-14*fs - 1.0967885210812e-14) - 8.14058347559848e-15) + 7.38769134232804e-15;
a3 = fs*(fs*(-9.04201686922855e-15*fs + 1.0967885210812e-14) - 8.14058347559848e-15) + 2.46256378077601e-15;
};
|
e5a44c89304210784b95402751c60a46942fbdfc44cf9fe0b7be8f36eba897b4 | ntonnaett/guitarix | hogsfoot.dsp | // generated automatically
// DO NOT MODIFY!
declare id "hogsfoot";
declare name "Hogs Foot";
declare category "Tone Control";
declare shortname "Hogs Foot";
declare description "Hogs Foot Bass Booster";
import("filter.lib");
process = pre : _<:*(dry),(*(wet) : iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0))):>_ with {
LogPot(a, x) = if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = if(b, 1 - x, x);
s = 0.993;
fs = float(SR);
pre = _;
wet = vslider("wet_dry[name:wet/dry][tooltip:percentage of processed signal in output signal]", 100, 0, 100, 1) : /(100);
dry = 1 - wet;
Volume = vslider("Volume[name:Volume]", 0.5, 0, 1, 0.01) : Inverted(0) : smooth(s);
b0 = -9.64632260709932e-11*Volume*pow(fs,2) - 9.64632260709932e-13*pow(fs,2);
b1 = 9.64632260709932e-11*Volume*pow(fs,2) + 9.64632260709932e-13*pow(fs,2);
b2 = 9.64632260709932e-11*Volume*pow(fs,2) + 9.64632260709932e-13*pow(fs,2);
b3 = -9.64632260709932e-11*Volume*pow(fs,2) - 9.64632260709932e-13*pow(fs,2);
a0 = fs*(fs*(8.93887847679127e-15*fs + 4.96106145708971e-12) + 2.63723081667839e-11) + 2.67730449581491e-11;
a1 = fs*(fs*(-2.68166354303738e-14*fs - 4.96106145708971e-12) + 2.63723081667839e-11) + 8.03191348744474e-11;
a2 = fs*(fs*(2.68166354303738e-14*fs - 4.96106145708971e-12) - 2.63723081667839e-11) + 8.03191348744474e-11;
a3 = fs*(fs*(-8.93887847679127e-15*fs + 4.96106145708971e-12) - 2.63723081667839e-11) + 2.67730449581491e-11;
};
| https://raw.githubusercontent.com/ntonnaett/guitarix/e5ce36c3a693eeada3cb70425ec09f8d6f91e78c/trunk/src/LV2/faust/hogsfoot.dsp | faust | generated automatically
DO NOT MODIFY! | declare id "hogsfoot";
declare name "Hogs Foot";
declare category "Tone Control";
declare shortname "Hogs Foot";
declare description "Hogs Foot Bass Booster";
import("filter.lib");
process = pre : _<:*(dry),(*(wet) : iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0))):>_ with {
LogPot(a, x) = if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = if(b, 1 - x, x);
s = 0.993;
fs = float(SR);
pre = _;
wet = vslider("wet_dry[name:wet/dry][tooltip:percentage of processed signal in output signal]", 100, 0, 100, 1) : /(100);
dry = 1 - wet;
Volume = vslider("Volume[name:Volume]", 0.5, 0, 1, 0.01) : Inverted(0) : smooth(s);
b0 = -9.64632260709932e-11*Volume*pow(fs,2) - 9.64632260709932e-13*pow(fs,2);
b1 = 9.64632260709932e-11*Volume*pow(fs,2) + 9.64632260709932e-13*pow(fs,2);
b2 = 9.64632260709932e-11*Volume*pow(fs,2) + 9.64632260709932e-13*pow(fs,2);
b3 = -9.64632260709932e-11*Volume*pow(fs,2) - 9.64632260709932e-13*pow(fs,2);
a0 = fs*(fs*(8.93887847679127e-15*fs + 4.96106145708971e-12) + 2.63723081667839e-11) + 2.67730449581491e-11;
a1 = fs*(fs*(-2.68166354303738e-14*fs - 4.96106145708971e-12) + 2.63723081667839e-11) + 8.03191348744474e-11;
a2 = fs*(fs*(2.68166354303738e-14*fs - 4.96106145708971e-12) - 2.63723081667839e-11) + 8.03191348744474e-11;
a3 = fs*(fs*(-8.93887847679127e-15*fs + 4.96106145708971e-12) - 2.63723081667839e-11) + 2.67730449581491e-11;
};
|
cc70440b6cb94d2b663809d2b5fc7c2974ce0ba50c5bbce33e8ba0fd99670f97 | ntonnaett/guitarix | hfb.dsp | // generated automatically
// DO NOT MODIFY!
declare id "hfb";
declare name "HF Brightener";
declare category "Tone Control";
declare shortname "HF Brightener";
declare description "High Frequency Brightener";
import("filter.lib");
process = pre : iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
LogPot(a, x) = if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = if(b, 1 - x, x);
s = 0.993;
fs = float(SR);
pre = _;
Volume = vslider("Volume[name:Volume]", 0.5, 0, 1, 0.01) : Inverted(1) : smooth(s);
Intensity = vslider("Intensity[name:Intensity]", 0.5, 0, 1, 0.01) : Inverted(0) : smooth(s);
b0 = Intensity*(5.12666523663255e-23*Intensity*pow(fs,2) - 1.59041010538546e-9*pow(fs,2)) - 3.18082021077091e-10*Volume*pow(fs,2) - 1.06027340359031e-6*fs;
b1 = Intensity*(-1.02533304732651e-22*Intensity*pow(fs,2) + 3.18082021077092e-9*pow(fs,2)) + 6.36164042154183e-10*Volume*pow(fs,2);
b2 = Intensity*(5.12666523663255e-23*Intensity*pow(fs,2) - 1.59041010538546e-9*pow(fs,2)) - 3.18082021077091e-10*Volume*pow(fs,2) + 1.06027340359031e-6*fs;
a0 = Intensity*(Intensity*fs*(-1.17023754306854e-9*fs - 6.50608604711861e-8) + fs*(1.18275520407517e-9*fs + 6.61287722583147e-8)) + Volume*fs*(2.36551040815034e-10*fs + 1.32257544516629e-8) + 7.88503469383447e-7*fs + 4.40858481722098e-5;
a1 = Intensity*(2.34047508613708e-9*Intensity*pow(fs,2) - 2.36551040815034e-9*pow(fs,2)) - 4.73102081630068e-10*Volume*pow(fs,2) + 8.81716963444196e-5;
a2 = Intensity*(Intensity*fs*(-1.17023754306854e-9*fs + 6.50608604711861e-8) + fs*(1.18275520407517e-9*fs - 6.61287722583147e-8)) + Volume*fs*(2.36551040815034e-10*fs - 1.32257544516629e-8) - 7.88503469383447e-7*fs + 4.40858481722098e-5;
};
| https://raw.githubusercontent.com/ntonnaett/guitarix/e5ce36c3a693eeada3cb70425ec09f8d6f91e78c/trunk/src/LV2/faust/hfb.dsp | faust | generated automatically
DO NOT MODIFY! | declare id "hfb";
declare name "HF Brightener";
declare category "Tone Control";
declare shortname "HF Brightener";
declare description "High Frequency Brightener";
import("filter.lib");
process = pre : iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
LogPot(a, x) = if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = if(b, 1 - x, x);
s = 0.993;
fs = float(SR);
pre = _;
Volume = vslider("Volume[name:Volume]", 0.5, 0, 1, 0.01) : Inverted(1) : smooth(s);
Intensity = vslider("Intensity[name:Intensity]", 0.5, 0, 1, 0.01) : Inverted(0) : smooth(s);
b0 = Intensity*(5.12666523663255e-23*Intensity*pow(fs,2) - 1.59041010538546e-9*pow(fs,2)) - 3.18082021077091e-10*Volume*pow(fs,2) - 1.06027340359031e-6*fs;
b1 = Intensity*(-1.02533304732651e-22*Intensity*pow(fs,2) + 3.18082021077092e-9*pow(fs,2)) + 6.36164042154183e-10*Volume*pow(fs,2);
b2 = Intensity*(5.12666523663255e-23*Intensity*pow(fs,2) - 1.59041010538546e-9*pow(fs,2)) - 3.18082021077091e-10*Volume*pow(fs,2) + 1.06027340359031e-6*fs;
a0 = Intensity*(Intensity*fs*(-1.17023754306854e-9*fs - 6.50608604711861e-8) + fs*(1.18275520407517e-9*fs + 6.61287722583147e-8)) + Volume*fs*(2.36551040815034e-10*fs + 1.32257544516629e-8) + 7.88503469383447e-7*fs + 4.40858481722098e-5;
a1 = Intensity*(2.34047508613708e-9*Intensity*pow(fs,2) - 2.36551040815034e-9*pow(fs,2)) - 4.73102081630068e-10*Volume*pow(fs,2) + 8.81716963444196e-5;
a2 = Intensity*(Intensity*fs*(-1.17023754306854e-9*fs + 6.50608604711861e-8) + fs*(1.18275520407517e-9*fs - 6.61287722583147e-8)) + Volume*fs*(2.36551040815034e-10*fs - 1.32257544516629e-8) - 7.88503469383447e-7*fs + 4.40858481722098e-5;
};
|
19dc43fde26b7609894e68d7dd3de53a65a79d8aa7b7023e130341f70cff69fc | ntonnaett/guitarix | tonecontroll.dsp | declare id "tonemodul";
declare name "3 Band EQ";
declare category "Tone Control";
declare version "0.01";
declare author "brummer";
declare license "BSD";
declare copyright "(c)brummer 2008";
import("math.lib");
import("music.lib");
import("effect.lib");
import("filter.lib");
import("guitarix.lib");
import("maxmsp.lib");
F = 600; //nentry("split_low_freq", 250, 20, 600, 10);
F1 = 1200; //nentry("split_middle_freq", 650, 600, 1250, 10);
F2 = 2400; //nentry("split_high_freq", 1250, 1250, 12000, 10);
/**********************************************************************
*** this part is included here for backward compatibility from 0.9.27 to
*** 0.9.24
***********************************************************************/
//------------------------------ count and take --------------------------------------
countN ((xs, xxs)) = 1 + countN(xxs);
countN (xx) = 1;
takeN (1, (xs, xxs)) = xs;
takeN (1, xs) = xs;
takeN (nn, (xs, xxs)) = takeN (nn-1, xxs);
//------------------------------ low/high-passfilters --------------------------------------
tf1N(b0,b1,a1) = _ <: *(b0), (mem : *(b1)) :> + ~ *(0-a1);
tf2N(b0,b1,b2,a1,a2) = sub ~ conv2(a1,a2) : conv3(b0,b1,b2)
with {
conv3(k0,k1,k2,x) = k0*x + k1*x' + k2*x'';
conv2(k0,k1,x) = k0*x + k1*x';
sub(x,y) = y-x;
};
tf1sN(b1,b0,a0,w1) = tf1N(b0d,b1d,a1d)
with {
c = 1/tan((w1)*0.5/SR); // bilinear-transform scale-factor
d = a0 + c;
b1d = (b0 - b1*c) / d;
b0d = (b0 + b1*c) / d;
a1d = (a0 - c) / d;
};
tf2sN(b2,b1,b0,a1,a0,w1) = tf2N(b0d,b1d,b2d,a1d,a2d)
with {
c = 1/tan((w1)*0.5/SR); // bilinear-transform scale-factor
csq = c*c;
d = a0 + a1 * c + csq;
b0d = (b0 + b1 * c + b2 * csq)/d;
b1d = 2 * (b0 - b2 * csq)/d;
b2d = (b0 - b1 * c + b2 * csq)/d;
a1d = 2 * (a0 - csq)/d;
a2d = (a0 - a1*c + csq)/d;
};
lowpassN(N,fc) = lowpass0_highpass1N(0,N,fc);
highpassN(N,fc) = lowpass0_highpass1N(1,N,fc);
lowpass0_highpass1N(s,N,fc) = lphpr(s,N,N,fc)
with {
lphpr(s,0,N,fc) = _;
lphpr(s,1,N,fc) = tf1sN(s,1-s,1,2*PI*fc);
lphpr(s,O,N,fc) = lphpr(s,(O-2),N,fc) : tf2sN(s,0,1-s,a1s,1,w1) with {
parity = N % 2;
S = (O-parity)/2; // current section number
a1s = -2*cos(-PI + (1-parity)*PI/(2*N) + (S-1+parity)*PI/N);
w1 = 2*PI*fc;
};
};
//------------------------------ analyzer --------------------------------------
analyzern(O,lfreqs) = _ <: bsplit(nb) with
{
nb = countN(lfreqs);
fc(n) = takeN(n, lfreqs);
lp(n) = lowpassN(O,fc(n));
hp(n) = highpassN(O,fc(n));
bsplit(0) = _;
bsplit(i) = hp(i), (lp(i) <: bsplit(i-1));
};
analyzerN(lfreqs) = analyzern(3,lfreqs);
filterbankn(O,lfreqs) = analyzern(O,lfreqs) : delayeq with
{
nb = count(lfreqs);
fc(n) = take(n, lfreqs);
ap(n) = highpass_plus_lowpass(O,fc(n));
delayeq = par(i,nb-1,apchain(nb-1-i)),_,_;
apchain(0) = _;
apchain(i) = ap(i) : apchain(i-1);
};
filterbankN(lfreqs) = filterbank(3,lfreqs);
/**********************************************************************
*** end for backward compatibility from 0.9.27 to
*** 0.9.24 , it could removed when switch completly to > 0.9.27
***********************************************************************/
//----------tone_controll---------
t = vslider("Treble[name:Treble", 0., -5., 5, 0.01): db2linear : smoothi(0.999);
m = vslider("Middle[name:Middle", 0., -5., 5, 0.01): db2linear : smoothi(0.999);
l = vslider("Bass[name:Bass", 0., -5., 5, 0.01): db2linear : smoothi(0.999) ;
//tstack = component("tonestack.dsp");
sharp = vslider("sharper[name:Sharp]", -2, -2.5, 5, 0.1);
press = -5. * sharp;
attack = 0.005;
release = 5.0;
knee = 10.5;
ratio = 3.0;
env = abs : max(1);
compress(env) = level * (1-r)/r
with {
level = env : h ~ _ : linear2db : (_ - press ) : max(0)
with {
h(x,y) = f*x+(1-f)*y with { f = (x<y)*ga+(x>=y)*gr; };
ga = exp(-1/(SR*attack));
gr = exp(-1/(SR*release));
};
p = level/(knee+eps) : max(0) : min(1) with { eps = 0.001; };
r = 1 - p + p * ratio;
};
comp1(x) = g(x) * x
with {
g = env : compress + sharp : db2linear;
};
comp = BP( comp1);
tone_controll = _ : filterbankN((F,F2)): *(t),*(m),*(l):>_;
process = (tone_controll : comp) ,(tone_controll : comp);
| https://raw.githubusercontent.com/ntonnaett/guitarix/e5ce36c3a693eeada3cb70425ec09f8d6f91e78c/trunk/src/faust/tonecontroll.dsp | faust | nentry("split_low_freq", 250, 20, 600, 10);
nentry("split_middle_freq", 650, 600, 1250, 10);
nentry("split_high_freq", 1250, 1250, 12000, 10);
*********************************************************************
*** this part is included here for backward compatibility from 0.9.27 to
*** 0.9.24
**********************************************************************
------------------------------ count and take --------------------------------------
------------------------------ low/high-passfilters --------------------------------------
bilinear-transform scale-factor
bilinear-transform scale-factor
current section number
------------------------------ analyzer --------------------------------------
*********************************************************************
*** end for backward compatibility from 0.9.27 to
*** 0.9.24 , it could removed when switch completly to > 0.9.27
**********************************************************************
----------tone_controll---------
tstack = component("tonestack.dsp"); | declare id "tonemodul";
declare name "3 Band EQ";
declare category "Tone Control";
declare version "0.01";
declare author "brummer";
declare license "BSD";
declare copyright "(c)brummer 2008";
import("math.lib");
import("music.lib");
import("effect.lib");
import("filter.lib");
import("guitarix.lib");
import("maxmsp.lib");
countN ((xs, xxs)) = 1 + countN(xxs);
countN (xx) = 1;
takeN (1, (xs, xxs)) = xs;
takeN (1, xs) = xs;
takeN (nn, (xs, xxs)) = takeN (nn-1, xxs);
tf1N(b0,b1,a1) = _ <: *(b0), (mem : *(b1)) :> + ~ *(0-a1);
tf2N(b0,b1,b2,a1,a2) = sub ~ conv2(a1,a2) : conv3(b0,b1,b2)
with {
conv3(k0,k1,k2,x) = k0*x + k1*x' + k2*x'';
conv2(k0,k1,x) = k0*x + k1*x';
sub(x,y) = y-x;
};
tf1sN(b1,b0,a0,w1) = tf1N(b0d,b1d,a1d)
with {
d = a0 + c;
b1d = (b0 - b1*c) / d;
b0d = (b0 + b1*c) / d;
a1d = (a0 - c) / d;
};
tf2sN(b2,b1,b0,a1,a0,w1) = tf2N(b0d,b1d,b2d,a1d,a2d)
with {
csq = c*c;
d = a0 + a1 * c + csq;
b0d = (b0 + b1 * c + b2 * csq)/d;
b1d = 2 * (b0 - b2 * csq)/d;
b2d = (b0 - b1 * c + b2 * csq)/d;
a1d = 2 * (a0 - csq)/d;
a2d = (a0 - a1*c + csq)/d;
};
lowpassN(N,fc) = lowpass0_highpass1N(0,N,fc);
highpassN(N,fc) = lowpass0_highpass1N(1,N,fc);
lowpass0_highpass1N(s,N,fc) = lphpr(s,N,N,fc)
with {
lphpr(s,0,N,fc) = _;
lphpr(s,1,N,fc) = tf1sN(s,1-s,1,2*PI*fc);
lphpr(s,O,N,fc) = lphpr(s,(O-2),N,fc) : tf2sN(s,0,1-s,a1s,1,w1) with {
parity = N % 2;
a1s = -2*cos(-PI + (1-parity)*PI/(2*N) + (S-1+parity)*PI/N);
w1 = 2*PI*fc;
};
};
analyzern(O,lfreqs) = _ <: bsplit(nb) with
{
nb = countN(lfreqs);
fc(n) = takeN(n, lfreqs);
lp(n) = lowpassN(O,fc(n));
hp(n) = highpassN(O,fc(n));
bsplit(0) = _;
bsplit(i) = hp(i), (lp(i) <: bsplit(i-1));
};
analyzerN(lfreqs) = analyzern(3,lfreqs);
filterbankn(O,lfreqs) = analyzern(O,lfreqs) : delayeq with
{
nb = count(lfreqs);
fc(n) = take(n, lfreqs);
ap(n) = highpass_plus_lowpass(O,fc(n));
delayeq = par(i,nb-1,apchain(nb-1-i)),_,_;
apchain(0) = _;
apchain(i) = ap(i) : apchain(i-1);
};
filterbankN(lfreqs) = filterbank(3,lfreqs);
t = vslider("Treble[name:Treble", 0., -5., 5, 0.01): db2linear : smoothi(0.999);
m = vslider("Middle[name:Middle", 0., -5., 5, 0.01): db2linear : smoothi(0.999);
l = vslider("Bass[name:Bass", 0., -5., 5, 0.01): db2linear : smoothi(0.999) ;
sharp = vslider("sharper[name:Sharp]", -2, -2.5, 5, 0.1);
press = -5. * sharp;
attack = 0.005;
release = 5.0;
knee = 10.5;
ratio = 3.0;
env = abs : max(1);
compress(env) = level * (1-r)/r
with {
level = env : h ~ _ : linear2db : (_ - press ) : max(0)
with {
h(x,y) = f*x+(1-f)*y with { f = (x<y)*ga+(x>=y)*gr; };
ga = exp(-1/(SR*attack));
gr = exp(-1/(SR*release));
};
p = level/(knee+eps) : max(0) : min(1) with { eps = 0.001; };
r = 1 - p + p * ratio;
};
comp1(x) = g(x) * x
with {
g = env : compress + sharp : db2linear;
};
comp = BP( comp1);
tone_controll = _ : filterbankN((F,F2)): *(t),*(m),*(l):>_;
process = (tone_controll : comp) ,(tone_controll : comp);
|
fe61f8beb12cf13ef7ccbe9c042ba09e8843433250dd150e67e93786cba16e18 | Pro19/guitarix | ts9sim.dsp | declare id "ts9sim";
declare name "Tube Screamer";
declare category "Distortion";
declare samplerate "96000";
import("stdfaust.lib");
/*
** based on a circuit diagram of the Ibanez TS-9 and
** a mathematical analysis published by Tamás Kenéz
*/
smoothi(c) = *(1-c) : +~*(c);
process = ts9 : lowpass : *(gain) with {
// ma.SR = component("math.lib").ma.SR;
R1 = 4700;
R2 = 51000 + 500000 * hslider("drive[name:Drive]", 0.5, 0, 1, 0.01);
C = 0.047 * 1e-6;
a1 = (R1 + R2) * C * 2 * ma.SR;
a2 = R1 * C * 2 * ma.SR;
B0 = (1 + a1) / (1 + a2);
B1 = (1 - a1) / (1 + a2);
A1 = (1 - a2) / (1 + a2);
X2 = fi.tf1(B0, B1, A1);
ts9nonlin = ffunction(float ts9nonlin(float), "ts9nonlin.h", "");
ts9 = _ <: _ - ts9nonlin(X2-_) :> _;
fc = hslider("tone[log][name:Tone]", 400, 100, 1000, 1.03);
lowpass = fi.lowpass(1,fc);
gain = hslider("level[name:Level]", -16, -20, 4, 0.1) : ba.db2linear : smoothi(0.999);
};
| https://raw.githubusercontent.com/Pro19/guitarix/b1c686212332d1ea40683262bf95ad2b486b2bb6/trunk/src/plugins/ts9sim.dsp | faust |
** based on a circuit diagram of the Ibanez TS-9 and
** a mathematical analysis published by Tamás Kenéz
ma.SR = component("math.lib").ma.SR; | declare id "ts9sim";
declare name "Tube Screamer";
declare category "Distortion";
declare samplerate "96000";
import("stdfaust.lib");
smoothi(c) = *(1-c) : +~*(c);
process = ts9 : lowpass : *(gain) with {
R1 = 4700;
R2 = 51000 + 500000 * hslider("drive[name:Drive]", 0.5, 0, 1, 0.01);
C = 0.047 * 1e-6;
a1 = (R1 + R2) * C * 2 * ma.SR;
a2 = R1 * C * 2 * ma.SR;
B0 = (1 + a1) / (1 + a2);
B1 = (1 - a1) / (1 + a2);
A1 = (1 - a2) / (1 + a2);
X2 = fi.tf1(B0, B1, A1);
ts9nonlin = ffunction(float ts9nonlin(float), "ts9nonlin.h", "");
ts9 = _ <: _ - ts9nonlin(X2-_) :> _;
fc = hslider("tone[log][name:Tone]", 400, 100, 1000, 1.03);
lowpass = fi.lowpass(1,fc);
gain = hslider("level[name:Level]", -16, -20, 4, 0.1) : ba.db2linear : smoothi(0.999);
};
|
a3de4b0466bbb50b465651c324aa06f135382ab608a3143206de7a4b82292409 | brummer10/guitarix | mxrdist.dsp | declare id "mxrdis";
declare name "MXR Distortion Plus";
declare shortname "MXR+";
declare category "Distortion";
declare samplerate "96000";
import("stdfaust.lib");
s = 0.993;
fs = float(ma.SR);
drive = 0.75 + hslider("drive[name:Drive]", 0.5, 0, 1, 0.01) * 0.25 : si.smooth(s);
mxr_in = fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
b0 = fs*(4.29274359816386e-10*fs + 6.43911539724579e-10);
b1 = -8.58548719632772e-10*pow(fs,2);
b2 = fs*(4.29274359816386e-10*fs - 6.43911539724579e-10);
a0 = fs*(4.3356710341455e-10*fs + 2.2111922274142e-8) + 2.14637179908193e-8;
a1 = -8.671342068291e-10*pow(fs,2) + 4.29274359816386e-8;
a2 = fs*(4.3356710341455e-10*fs - 2.2111922274142e-8) + 2.14637179908193e-8;
};
mxr_out = fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
Volume = vslider("Volume[name:Volume]", 0.5, 0, 1, 0.01) : si.smooth(s);
b0 = 7.03343695930453e-6*Volume*fs;
b1 = 0;
b2 = -7.03343695930453e-6*Volume*fs;
a0 = fs*(1.40668739186091e-10*fs + 1.40739073555684e-5) + 0.000351671847965227;
a1 = -2.81337478372181e-10*pow(fs,2) + 0.000703343695930453;
a2 = fs*(1.40668739186091e-10*fs - 1.40739073555684e-5) + 0.000351671847965227;
};
process = mxr_in : X3 : mxr_out with {
R1 = 4700 + (1000000 * (1.0 -drive));
R2 = 1000000 ;
C = 0.047 * 1e-6;
a1 = (R1 + R2) * C * 2 * ma.SR;
a2 = R1 * C * 2 * ma.SR;
B0 = (1 + a1) / (1 + a2);
B1 = (1 - a1) / (1 + a2);
A1 = (1 - a2) / (1 + a2);
X2 = fi.tf1(B0, B1, A1);
opamp1 = ffunction(float opamp2(float), "clipping.h", "");
X3 = _ <: _ - opamp1(X2-_) :> _ ;
asymclip = ffunction(float asymhardclip2(float), "clipping.h", "");
clip = asymclip(_);
};
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/plugins/mxrdist.dsp | faust | declare id "mxrdis";
declare name "MXR Distortion Plus";
declare shortname "MXR+";
declare category "Distortion";
declare samplerate "96000";
import("stdfaust.lib");
s = 0.993;
fs = float(ma.SR);
drive = 0.75 + hslider("drive[name:Drive]", 0.5, 0, 1, 0.01) * 0.25 : si.smooth(s);
mxr_in = fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
b0 = fs*(4.29274359816386e-10*fs + 6.43911539724579e-10);
b1 = -8.58548719632772e-10*pow(fs,2);
b2 = fs*(4.29274359816386e-10*fs - 6.43911539724579e-10);
a0 = fs*(4.3356710341455e-10*fs + 2.2111922274142e-8) + 2.14637179908193e-8;
a1 = -8.671342068291e-10*pow(fs,2) + 4.29274359816386e-8;
a2 = fs*(4.3356710341455e-10*fs - 2.2111922274142e-8) + 2.14637179908193e-8;
};
mxr_out = fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
Volume = vslider("Volume[name:Volume]", 0.5, 0, 1, 0.01) : si.smooth(s);
b0 = 7.03343695930453e-6*Volume*fs;
b1 = 0;
b2 = -7.03343695930453e-6*Volume*fs;
a0 = fs*(1.40668739186091e-10*fs + 1.40739073555684e-5) + 0.000351671847965227;
a1 = -2.81337478372181e-10*pow(fs,2) + 0.000703343695930453;
a2 = fs*(1.40668739186091e-10*fs - 1.40739073555684e-5) + 0.000351671847965227;
};
process = mxr_in : X3 : mxr_out with {
R1 = 4700 + (1000000 * (1.0 -drive));
R2 = 1000000 ;
C = 0.047 * 1e-6;
a1 = (R1 + R2) * C * 2 * ma.SR;
a2 = R1 * C * 2 * ma.SR;
B0 = (1 + a1) / (1 + a2);
B1 = (1 - a1) / (1 + a2);
A1 = (1 - a2) / (1 + a2);
X2 = fi.tf1(B0, B1, A1);
opamp1 = ffunction(float opamp2(float), "clipping.h", "");
X3 = _ <: _ - opamp1(X2-_) :> _ ;
asymclip = ffunction(float asymhardclip2(float), "clipping.h", "");
clip = asymclip(_);
};
|
|
03734c104d71e2acf8ee661347fe1f1ffcad774ca01259e10f2faee79e2de969 | brummer10/guitarix | chorus.dsp | declare name "Chorus";
declare category "Modulation";
/* Stereo chorus. */
// declare name "chorus -- stereo chorus effect";
declare author "Albert Graef";
declare version "1.0";
import("stdfaust.lib");
level = hslider("level", 0.5, 0, 1, 0.01) : si.smooth(0.993);
freq = hslider("freq", 3, 0, 10, 0.01) : si.smooth(0.993);
dtime = hslider("de.delay", 0.02, 0, 0.2, 0.01) : si.smooth(0.993);
depth = hslider("depth", 0.02, 0, 1, 0.01) : si.smooth(0.993);
tblosc(n,f,freq,mod) = (1-d)*rdtable(n,wform,i&(n-1)) +
d*rdtable(n,wform,(i+1)&(n-1))
with {
wform = ba.time*(2.0*ma.PI)/n : f;
phase = freq/ma.SR : (+ : ma.decimal) ~ _;
modphase = ma.decimal(phase+mod/(2*ma.PI))*n;
i = int(floor(modphase));
d = ma.decimal(modphase);
};
interp = ma.SR/1000.0;
chorus(dtime,freq,depth,phase,x)
= x+level*de.sdelay(1<<16, interp, t, x)
with {
t = ma.SR*dtime/2*(1+depth*tblosc(1<<16, sin, freq, phase));
};
process = vgroup("chorus", (left, right))
with {
left = chorus(dtime,freq,depth,0);
right = chorus(dtime,freq,depth,ma.PI/2);
};
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/chorus.dsp | faust | Stereo chorus.
declare name "chorus -- stereo chorus effect"; | declare name "Chorus";
declare category "Modulation";
declare author "Albert Graef";
declare version "1.0";
import("stdfaust.lib");
level = hslider("level", 0.5, 0, 1, 0.01) : si.smooth(0.993);
freq = hslider("freq", 3, 0, 10, 0.01) : si.smooth(0.993);
dtime = hslider("de.delay", 0.02, 0, 0.2, 0.01) : si.smooth(0.993);
depth = hslider("depth", 0.02, 0, 1, 0.01) : si.smooth(0.993);
tblosc(n,f,freq,mod) = (1-d)*rdtable(n,wform,i&(n-1)) +
d*rdtable(n,wform,(i+1)&(n-1))
with {
wform = ba.time*(2.0*ma.PI)/n : f;
phase = freq/ma.SR : (+ : ma.decimal) ~ _;
modphase = ma.decimal(phase+mod/(2*ma.PI))*n;
i = int(floor(modphase));
d = ma.decimal(modphase);
};
interp = ma.SR/1000.0;
chorus(dtime,freq,depth,phase,x)
= x+level*de.sdelay(1<<16, interp, t, x)
with {
t = ma.SR*dtime/2*(1+depth*tblosc(1<<16, sin, freq, phase));
};
process = vgroup("chorus", (left, right))
with {
left = chorus(dtime,freq,depth,0);
right = chorus(dtime,freq,depth,ma.PI/2);
};
|
587c1851ac723bd3bf77ea57fdf4a779d9b20f935fe77dab4bac897d65f33143 | ntonnaett/guitarix | chorus.dsp | declare name "Chorus";
declare category "Modulation";
/* Stereo chorus. */
// declare name "chorus -- stereo chorus effect";
declare author "Albert Graef";
declare version "1.0";
import("music.lib");
level = hslider("level", 0.5, 0, 1, 0.01);
freq = hslider("freq", 3, 0, 10, 0.01);
dtime = hslider("delay", 0.02, 0, 0.2, 0.01);
depth = hslider("depth", 0.02, 0, 1, 0.01);
tblosc(n,f,freq,mod) = (1-d)*rdtable(n,wform,i&(n-1)) +
d*rdtable(n,wform,(i+1)&(n-1))
with {
wform = time*(2.0*PI)/n : f;
phase = freq/SR : (+ : decimal) ~ _;
modphase = decimal(phase+mod/(2*PI))*n;
i = int(floor(modphase));
d = decimal(modphase);
};
chorus(dtime,freq,depth,phase,x)
= x+level*fdelay(1<<16, t, x)
with {
t = SR*dtime/2*(1+depth*tblosc(1<<16, sin, freq, phase));
};
process = vgroup("chorus", (left, right))
with {
left = chorus(dtime,freq,depth,0);
right = chorus(dtime,freq,depth,PI/2);
};
| https://raw.githubusercontent.com/ntonnaett/guitarix/e5ce36c3a693eeada3cb70425ec09f8d6f91e78c/trunk/src/LV2/faust/chorus.dsp | faust | Stereo chorus.
declare name "chorus -- stereo chorus effect"; | declare name "Chorus";
declare category "Modulation";
declare author "Albert Graef";
declare version "1.0";
import("music.lib");
level = hslider("level", 0.5, 0, 1, 0.01);
freq = hslider("freq", 3, 0, 10, 0.01);
dtime = hslider("delay", 0.02, 0, 0.2, 0.01);
depth = hslider("depth", 0.02, 0, 1, 0.01);
tblosc(n,f,freq,mod) = (1-d)*rdtable(n,wform,i&(n-1)) +
d*rdtable(n,wform,(i+1)&(n-1))
with {
wform = time*(2.0*PI)/n : f;
phase = freq/SR : (+ : decimal) ~ _;
modphase = decimal(phase+mod/(2*PI))*n;
i = int(floor(modphase));
d = decimal(modphase);
};
chorus(dtime,freq,depth,phase,x)
= x+level*fdelay(1<<16, t, x)
with {
t = SR*dtime/2*(1+depth*tblosc(1<<16, sin, freq, phase));
};
process = vgroup("chorus", (left, right))
with {
left = chorus(dtime,freq,depth,0);
right = chorus(dtime,freq,depth,PI/2);
};
|
90d0f1536e99ef931e17fd6888f16810819631a2a490395896517156f2d65e39 | guysherman/Faust | osc2.dsp | declare name "osc";
declare version "1.0";
declare author "Grame";
declare license "BSD";
declare copyright "(c)GRAME 2006";
//-----------------------------------------------
// Sinusoidal Oscillator
//-----------------------------------------------
import("music.lib");
smooth(c) = *(1-c) : +~*(c);
vol = hslider("volume (db)", 0, -96, 0, 0.1) : db2linear : smooth(0.999) ;
freq = hslider("freq", 1000, 0, 24000, 0.1);
process = vgroup("Oscillator", osc(freq) * vol);
| https://raw.githubusercontent.com/guysherman/Faust/4cac36e7fc493158e92946b3a840c4f611ac2844/tools/faust2pd/examples/faust/osc2.dsp | faust | -----------------------------------------------
Sinusoidal Oscillator
----------------------------------------------- | declare name "osc";
declare version "1.0";
declare author "Grame";
declare license "BSD";
declare copyright "(c)GRAME 2006";
import("music.lib");
smooth(c) = *(1-c) : +~*(c);
vol = hslider("volume (db)", 0, -96, 0, 0.1) : db2linear : smooth(0.999) ;
freq = hslider("freq", 1000, 0, 24000, 0.1);
process = vgroup("Oscillator", osc(freq) * vol);
|
9c800abefa380e0b6eea556de2d4ab0051e23ec93709fdad2ccd5becce1f4766 | guysherman/Faust | select2.dsp | declare name "select2";
declare version "0.1";
declare author "Grame";
declare license "BSD";
declare copyright "(c)GRAME 2009";
//-----------------------------------------------
// Two noises compared
//-----------------------------------------------
RANDMAX = 2147483647;
random1 = ffunction(int random (), <stdlib.h>, "");
noise1 = (random1 << 1) * (1.0/RANDMAX);
random2 = (*(1103515245)+12345) ~ _ ;
noise2 = random2 * (1.0/RANDMAX);
process = select2(button("Switch"), noise1, noise2) * hslider("Volume", 0, 0, 1, 0.01) <: _,_ ;
| https://raw.githubusercontent.com/guysherman/Faust/4cac36e7fc493158e92946b3a840c4f611ac2844/tests/mathdoc/select2.dsp | faust | -----------------------------------------------
Two noises compared
----------------------------------------------- | declare name "select2";
declare version "0.1";
declare author "Grame";
declare license "BSD";
declare copyright "(c)GRAME 2009";
RANDMAX = 2147483647;
random1 = ffunction(int random (), <stdlib.h>, "");
noise1 = (random1 << 1) * (1.0/RANDMAX);
random2 = (*(1103515245)+12345) ~ _ ;
noise2 = random2 * (1.0/RANDMAX);
process = select2(button("Switch"), noise1, noise2) * hslider("Volume", 0, 0, 1, 0.01) <: _,_ ;
|
4125a62f85ea92dc3b455ca0bc54eb896210fcab162fac91154058dd42915098 | brummer10/guitarix | ruin.dsp | // generated automatically
// DO NOT MODIFY!
declare id "ruin";
declare name "Ruiner";
declare category "Fuzz";
declare shortname "Ruiner";
declare description "Devi Ever Dark Boost";
declare drywetbox "true";
declare samplerate "96000";
import("stdfaust.lib");
import("trany.lib");
ruinerp1 = pre : fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
Intensity = vslider("Intensity[name:Intensity]", 0.5, 0, 1, 0.01) : Inverted(1) : si.smooth(s);
b0 = -3.68740376472719e-5*fs;
b1 = 0;
b2 = 3.68740376472719e-5*fs;
a0 = Intensity*fs*(3.23341143501596e-10*fs + 1.83849805831657e-6) + fs*(2.50211258533327e-10*fs + 1.41841348392955e-7) + 9.19249029158284e-5;
a1 = -6.46682287003193e-10*Intensity*pow(fs,2) - 5.00422517066654e-10*pow(fs,2) + 0.000183849805831657;
a2 = Intensity*fs*(3.23341143501596e-10*fs - 1.83849805831657e-6) + fs*(2.50211258533327e-10*fs - 1.41841348392955e-7) + 9.19249029158284e-5;
};
ruinerp2 = pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0)) with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
Level = vslider("Level[name:Level]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
b0 = -1.11891193819806e-10*Level*pow(fs,2) - 1.11891193819806e-12*pow(fs,2);
b1 = 1.11891193819806e-10*Level*pow(fs,2) + 1.11891193819806e-12*pow(fs,2);
b2 = 1.11891193819806e-10*Level*pow(fs,2) + 1.11891193819806e-12*pow(fs,2);
b3 = -1.11891193819806e-10*Level*pow(fs,2) - 1.11891193819806e-12*pow(fs,2);
a0 = Level*(Level*fs*(fs*(-8.62067474057856e-16*fs - 4.46379387426086e-13) - 5.75832602737396e-11) + fs*(fs*(8.53446799317278e-16*fs + 5.28122340957611e-13) + 7.99957173492034e-11) + 2.87916301368698e-9) + fs*(fs*(8.71550216272493e-15*fs + 5.37582514840965e-12) + 8.12279541046302e-10) + 2.88204217670067e-8;
a1 = Level*(Level*fs*(fs*(2.58620242217357e-15*fs + 4.46379387426086e-13) - 5.75832602737396e-11) + fs*(fs*(-2.56034039795183e-15*fs - 5.28122340957611e-13) + 7.99957173492034e-11) + 8.63748904106094e-9) + fs*(fs*(-2.61465064881748e-14*fs - 5.37582514840965e-12) + 8.12279541046302e-10) + 8.646126530102e-8;
a2 = Level*(Level*fs*(fs*(-2.58620242217357e-15*fs + 4.46379387426086e-13) + 5.75832602737396e-11) + fs*(fs*(2.56034039795183e-15*fs - 5.28122340957611e-13) - 7.99957173492034e-11) + 8.63748904106094e-9) + fs*(fs*(2.61465064881748e-14*fs - 5.37582514840965e-12) - 8.12279541046302e-10) + 8.646126530102e-8;
a3 = Level*(Level*fs*(fs*(8.62067474057856e-16*fs - 4.46379387426086e-13) + 5.75832602737396e-11) + fs*(fs*(-8.53446799317278e-16*fs + 5.28122340957611e-13) - 7.99957173492034e-11) + 2.87916301368698e-9) + fs*(fs*(-8.71550216272493e-15*fs + 5.37582514840965e-12) - 8.12279541046302e-10) + 2.88204217670067e-8;
};
preclip = min(1) : max(-1);
//clip(x) = ((exp(x*4)-exp(-x*4*1.2))/(exp(x*4)+exp(-x*4)))/4;
clip = ffunction(float symclip(float), "clipping.h", "");
aclip(x) = atan(x)/ma.PI;
//tclip = tranystageb(TB_SVEL34_68k,86.0,2700.0,25.922163) : tranystageb(TB_SVEL34_68k,86.0,2700.0,25.922163) ;
tclip = tranystageb(TB_7199P_68k,86.0,2700.0,5.571981) : tranystageb(TB_7199P_68k,86.0,2700.0,5.571981) ;
process = ruinerp1 : clip : ruinerp2 ;
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/plugins/ruin.dsp | faust | generated automatically
DO NOT MODIFY!
clip(x) = ((exp(x*4)-exp(-x*4*1.2))/(exp(x*4)+exp(-x*4)))/4;
tclip = tranystageb(TB_SVEL34_68k,86.0,2700.0,25.922163) : tranystageb(TB_SVEL34_68k,86.0,2700.0,25.922163) ; | declare id "ruin";
declare name "Ruiner";
declare category "Fuzz";
declare shortname "Ruiner";
declare description "Devi Ever Dark Boost";
declare drywetbox "true";
declare samplerate "96000";
import("stdfaust.lib");
import("trany.lib");
ruinerp1 = pre : fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
Intensity = vslider("Intensity[name:Intensity]", 0.5, 0, 1, 0.01) : Inverted(1) : si.smooth(s);
b0 = -3.68740376472719e-5*fs;
b1 = 0;
b2 = 3.68740376472719e-5*fs;
a0 = Intensity*fs*(3.23341143501596e-10*fs + 1.83849805831657e-6) + fs*(2.50211258533327e-10*fs + 1.41841348392955e-7) + 9.19249029158284e-5;
a1 = -6.46682287003193e-10*Intensity*pow(fs,2) - 5.00422517066654e-10*pow(fs,2) + 0.000183849805831657;
a2 = Intensity*fs*(3.23341143501596e-10*fs - 1.83849805831657e-6) + fs*(2.50211258533327e-10*fs - 1.41841348392955e-7) + 9.19249029158284e-5;
};
ruinerp2 = pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0)) with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
Level = vslider("Level[name:Level]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
b0 = -1.11891193819806e-10*Level*pow(fs,2) - 1.11891193819806e-12*pow(fs,2);
b1 = 1.11891193819806e-10*Level*pow(fs,2) + 1.11891193819806e-12*pow(fs,2);
b2 = 1.11891193819806e-10*Level*pow(fs,2) + 1.11891193819806e-12*pow(fs,2);
b3 = -1.11891193819806e-10*Level*pow(fs,2) - 1.11891193819806e-12*pow(fs,2);
a0 = Level*(Level*fs*(fs*(-8.62067474057856e-16*fs - 4.46379387426086e-13) - 5.75832602737396e-11) + fs*(fs*(8.53446799317278e-16*fs + 5.28122340957611e-13) + 7.99957173492034e-11) + 2.87916301368698e-9) + fs*(fs*(8.71550216272493e-15*fs + 5.37582514840965e-12) + 8.12279541046302e-10) + 2.88204217670067e-8;
a1 = Level*(Level*fs*(fs*(2.58620242217357e-15*fs + 4.46379387426086e-13) - 5.75832602737396e-11) + fs*(fs*(-2.56034039795183e-15*fs - 5.28122340957611e-13) + 7.99957173492034e-11) + 8.63748904106094e-9) + fs*(fs*(-2.61465064881748e-14*fs - 5.37582514840965e-12) + 8.12279541046302e-10) + 8.646126530102e-8;
a2 = Level*(Level*fs*(fs*(-2.58620242217357e-15*fs + 4.46379387426086e-13) + 5.75832602737396e-11) + fs*(fs*(2.56034039795183e-15*fs - 5.28122340957611e-13) - 7.99957173492034e-11) + 8.63748904106094e-9) + fs*(fs*(2.61465064881748e-14*fs - 5.37582514840965e-12) - 8.12279541046302e-10) + 8.646126530102e-8;
a3 = Level*(Level*fs*(fs*(8.62067474057856e-16*fs - 4.46379387426086e-13) + 5.75832602737396e-11) + fs*(fs*(-8.53446799317278e-16*fs + 5.28122340957611e-13) - 7.99957173492034e-11) + 2.87916301368698e-9) + fs*(fs*(-8.71550216272493e-15*fs + 5.37582514840965e-12) - 8.12279541046302e-10) + 2.88204217670067e-8;
};
preclip = min(1) : max(-1);
clip = ffunction(float symclip(float), "clipping.h", "");
aclip(x) = atan(x)/ma.PI;
tclip = tranystageb(TB_7199P_68k,86.0,2700.0,5.571981) : tranystageb(TB_7199P_68k,86.0,2700.0,5.571981) ;
process = ruinerp1 : clip : ruinerp2 ;
|
6b5a499e7d6f1a901187575d4dcef293be7405f3826e65e3e41d77b066c9be1f | steveb/gula-plugins | fades.dsp | declare name "The Fades";
declare author "Gula Plugins";
declare copyright "Steve Baker (2020)";
declare license "GPLv3";
declare description "An LV2 plugin which crossfades up to 4 inputs to one output";
import("gula.lib");
si = library("signals.lib");
raw_split = hslider("fade [name: Fade Proportion]", 1.0, 1.0, 4.0 ,0.001);
raw_spread = hslider("spread [name: Spread Overlap]", 1.0, 0.0, 3.0 ,0.001);
split = raw_split - 1.0 : si.smooth(0.9995);
spread = raw_spread : si.smooth(0.999);
process = _,_,_,_ :
*(gula_fade_gain(split, spread, 0.0)),
*(gula_fade_gain(split, spread, 1.0)),
*(gula_fade_gain(split, spread, 2.0)),
*(gula_fade_gain(split, spread, 3.0)) :> _; | https://raw.githubusercontent.com/steveb/gula-plugins/6f19a85143af95d0d617197494418a3330f5579d/src/fades.dsp | faust | declare name "The Fades";
declare author "Gula Plugins";
declare copyright "Steve Baker (2020)";
declare license "GPLv3";
declare description "An LV2 plugin which crossfades up to 4 inputs to one output";
import("gula.lib");
si = library("signals.lib");
raw_split = hslider("fade [name: Fade Proportion]", 1.0, 1.0, 4.0 ,0.001);
raw_spread = hslider("spread [name: Spread Overlap]", 1.0, 0.0, 3.0 ,0.001);
split = raw_split - 1.0 : si.smooth(0.9995);
spread = raw_spread : si.smooth(0.999);
process = _,_,_,_ :
*(gula_fade_gain(split, spread, 0.0)),
*(gula_fade_gain(split, spread, 1.0)),
*(gula_fade_gain(split, spread, 2.0)),
*(gula_fade_gain(split, spread, 3.0)) :> _; |
|
cad5a39eb00b61f15e874a1b331265b1e1a25ea983c5fed76199a9beeae30915 | steveb/gula-plugins | splits.dsp | declare name "The Splits";
declare author "Gula Plugins";
declare copyright "Steve Baker (2020)";
declare license "GPLv3";
declare description "An LV2 plugin which sends a controllable proportion of the input to each output";
import("gula.lib");
si = library("signals.lib");
raw_split = hslider("split [name: Split Proportion]", 1.0, 1.0, 4.0 ,0.001);
raw_spread = hslider("spread [name: Spread Overlap]", 1.0, 0.0, 3.0 ,0.001);
split = raw_split - 1.0 : si.smooth(0.9995);
spread = raw_spread : si.smooth(0.999);
process = _ <:
*(gula_fade_gain(split, spread, 0.0)),
*(gula_fade_gain(split, spread, 1.0)),
*(gula_fade_gain(split, spread, 2.0)),
*(gula_fade_gain(split, spread, 3.0)); | https://raw.githubusercontent.com/steveb/gula-plugins/6f19a85143af95d0d617197494418a3330f5579d/src/splits.dsp | faust | declare name "The Splits";
declare author "Gula Plugins";
declare copyright "Steve Baker (2020)";
declare license "GPLv3";
declare description "An LV2 plugin which sends a controllable proportion of the input to each output";
import("gula.lib");
si = library("signals.lib");
raw_split = hslider("split [name: Split Proportion]", 1.0, 1.0, 4.0 ,0.001);
raw_spread = hslider("spread [name: Spread Overlap]", 1.0, 0.0, 3.0 ,0.001);
split = raw_split - 1.0 : si.smooth(0.9995);
spread = raw_spread : si.smooth(0.999);
process = _ <:
*(gula_fade_gain(split, spread, 0.0)),
*(gula_fade_gain(split, spread, 1.0)),
*(gula_fade_gain(split, spread, 2.0)),
*(gula_fade_gain(split, spread, 3.0)); |
|
e5a8acd7dfab0761fb53355fc1f52c3183f9e7428d4f705ad7c4b57c1a9d8b9b | brummer10/guitarix | chorus_mono.dsp | declare name "Chorus Mono";
declare category "Modulation";
declare author "Albert Graef";
declare version "1.0";
import("stdfaust.lib");
level = hslider("level", 0.5, 0, 1, 0.01);
freq = hslider("freq", 2, 0, 10, 0.01);
dtime = 0.02 ;//hslider("de.delay", 0.02, 0, 0.2, 0.01);
depth = 0.02 ;//hslider("depth", 0.02, 0, 1, 0.01);
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): component("chorus.dsp").chorus(dtime,freq,depth,0)):>_;
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/chorus_mono.dsp | faust | hslider("de.delay", 0.02, 0, 0.2, 0.01);
hslider("depth", 0.02, 0, 1, 0.01); | declare name "Chorus Mono";
declare category "Modulation";
declare author "Albert Graef";
declare version "1.0";
import("stdfaust.lib");
level = hslider("level", 0.5, 0, 1, 0.01);
freq = hslider("freq", 2, 0, 10, 0.01);
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): component("chorus.dsp").chorus(dtime,freq,depth,0)):>_;
|
58132cc61da8b3193ed5855e02fc0b1ef9022c2814e9455d5ea43af053617523 | guysherman/Faust | osci.dsp | declare name "osci";
declare version "1.0";
declare author "Grame";
declare license "BSD";
declare copyright "(c)GRAME 2006";
//-----------------------------------------------
// Sinusoidal Oscillator
// (with linear interpolation)
//-----------------------------------------------
import("music.lib");
smooth(c) = *(1-c) : +~*(c);
vol = hslider("volume (db)", 0, -96, 0, 0.1) : db2linear : smooth(0.999) ;
freq = hslider("freq", 1000, 0, 24000, 0.1);
process = vgroup("Oscillator", osci(freq) * vol);
| https://raw.githubusercontent.com/guysherman/Faust/4cac36e7fc493158e92946b3a840c4f611ac2844/tools/faust2pd/examples/faust/osci.dsp | faust | -----------------------------------------------
Sinusoidal Oscillator
(with linear interpolation)
----------------------------------------------- | declare name "osci";
declare version "1.0";
declare author "Grame";
declare license "BSD";
declare copyright "(c)GRAME 2006";
import("music.lib");
smooth(c) = *(1-c) : +~*(c);
vol = hslider("volume (db)", 0, -96, 0, 0.1) : db2linear : smooth(0.999) ;
freq = hslider("freq", 1000, 0, 24000, 0.1);
process = vgroup("Oscillator", osci(freq) * vol);
|
dc15ebe48cadd0787ccd0c05c82c64d36efb9eb6366d2cbdb742a6d463798777 | guysherman/Faust | osc.dsp | declare name "osc";
declare version "1.0";
declare author "Grame";
declare license "BSD";
declare copyright "(c)GRAME 2009";
//-----------------------------------------------
// Sinusoidal Oscillator
//-----------------------------------------------
import("music.lib");
smooth(c) = *(1-c) : +~*(c);
vol = hslider("volume [unit:dB]", 0, -96, 0, 0.1) : db2linear : smooth(0.999) ;
freq = hslider("freq [unit:Hz]", 1000, 20, 24000, 1);
process = vgroup("Oscillator", osc(freq) * vol);
| https://raw.githubusercontent.com/guysherman/Faust/4cac36e7fc493158e92946b3a840c4f611ac2844/examples/osc.dsp | faust | -----------------------------------------------
Sinusoidal Oscillator
----------------------------------------------- | declare name "osc";
declare version "1.0";
declare author "Grame";
declare license "BSD";
declare copyright "(c)GRAME 2009";
import("music.lib");
smooth(c) = *(1-c) : +~*(c);
vol = hslider("volume [unit:dB]", 0, -96, 0, 0.1) : db2linear : smooth(0.999) ;
freq = hslider("freq [unit:Hz]", 1000, 20, 24000, 1);
process = vgroup("Oscillator", osc(freq) * vol);
|
958f724701b7058edb17d3bc46b6b91b8706eea4c02f45c632858e73bff7e40f | guysherman/Faust | select3.dsp | declare name "select3";
declare version "0.1";
declare author "Grame";
declare license "BSD";
declare copyright "(c)GRAME 2009";
//-----------------------------------------------
// Three noises compared
//-----------------------------------------------
RANDMAX = 2147483647;
random1 = ffunction(int random (), <stdlib.h>, "");
noise1 = (random1 << 1) * (1.0/RANDMAX);
random2 = (*(1103515245)+12345) ~ _ ;
noise2 = random2 * (1.0/RANDMAX);
noise3 = 0;
process = select3(button("Switch"), noise1, noise2, noise3) * hslider("volume", 0, 0, 1, 0.01) <: _,_ ;
| https://raw.githubusercontent.com/guysherman/Faust/4cac36e7fc493158e92946b3a840c4f611ac2844/tests/mathdoc/select3.dsp | faust | -----------------------------------------------
Three noises compared
----------------------------------------------- | declare name "select3";
declare version "0.1";
declare author "Grame";
declare license "BSD";
declare copyright "(c)GRAME 2009";
RANDMAX = 2147483647;
random1 = ffunction(int random (), <stdlib.h>, "");
noise1 = (random1 << 1) * (1.0/RANDMAX);
random2 = (*(1103515245)+12345) ~ _ ;
noise2 = random2 * (1.0/RANDMAX);
noise3 = 0;
process = select3(button("Switch"), noise1, noise2, noise3) * hslider("volume", 0, 0, 1, 0.01) <: _,_ ;
|
bce22dbcbe05d1e575b78ac6f52a0813521ecb8648e31aa5380f8a229049398a | guysherman/Faust | vumeter.dsp | declare name "vumeter";
declare version "1.0";
declare author "Grame";
declare license "BSD";
declare copyright "(c)GRAME 2006";
//-------------------------------------------------
// Simple vumeter
//-------------------------------------------------
import("math.lib");
import("music.lib");
vmeter(x) = attach(x, envelop(x) : vbargraph("[2][unit:dB]", -70, +5));
hmeter(x) = attach(x, envelop(x) : hbargraph("[2][unit:dB]", -70, +5));
envelop = abs : max ~ -(1.0/SR) : max(db2linear(-70)) : linear2db;
process = vmeter;
| https://raw.githubusercontent.com/guysherman/Faust/4cac36e7fc493158e92946b3a840c4f611ac2844/examples/vumeter.dsp | faust | -------------------------------------------------
Simple vumeter
------------------------------------------------- | declare name "vumeter";
declare version "1.0";
declare author "Grame";
declare license "BSD";
declare copyright "(c)GRAME 2006";
import("math.lib");
import("music.lib");
vmeter(x) = attach(x, envelop(x) : vbargraph("[2][unit:dB]", -70, +5));
hmeter(x) = attach(x, envelop(x) : hbargraph("[2][unit:dB]", -70, +5));
envelop = abs : max ~ -(1.0/SR) : max(db2linear(-70)) : linear2db;
process = vmeter;
|
187bfdc8ee16f8d5993f7adb919dd03474dc1c82a4c3ef435f99493874eb2b3a | s-e-a-m/faust-libraries | miditester.dsp | declare name "MICHAEL GERZON LCR PANNING";
declare version "001";
declare author "Giuseppe Silvi";
declare license "GNU-GPL-v3";
declare copyright "(c)SEAM 2019";
declare description "MICHAEL GERZON LCR PANNING";
declare options "[midi:on]";
import("stdfaust.lib");
import("../../seam.lib");
process = miditester;
| https://raw.githubusercontent.com/s-e-a-m/faust-libraries/9120cccb9335f42407062eb4bf149188d8018b07/examples/app/miditester.dsp | faust | declare name "MICHAEL GERZON LCR PANNING";
declare version "001";
declare author "Giuseppe Silvi";
declare license "GNU-GPL-v3";
declare copyright "(c)SEAM 2019";
declare description "MICHAEL GERZON LCR PANNING";
declare options "[midi:on]";
import("stdfaust.lib");
import("../../seam.lib");
process = miditester;
|
|
0744857f344c8be4c05f07f9ea5e120a6befa63cc3c5c55bffae79c276fd10d5 | ntonnaett/guitarix | gain.dsp | declare id "gain";
declare name "Volume";
declare category "Tone Control";
declare description "simple volume control";
import("music.lib");
import("guitarix.lib");
gain = vslider("gain[name:Gain][tooltip:gain (dB)]", 0, -40, 40, 0.1) : db2linear : smoothi(0.999);
process = *(gain);
| https://raw.githubusercontent.com/ntonnaett/guitarix/e5ce36c3a693eeada3cb70425ec09f8d6f91e78c/trunk/src/faust/gain.dsp | faust | declare id "gain";
declare name "Volume";
declare category "Tone Control";
declare description "simple volume control";
import("music.lib");
import("guitarix.lib");
gain = vslider("gain[name:Gain][tooltip:gain (dB)]", 0, -40, 40, 0.1) : db2linear : smoothi(0.999);
process = *(gain);
|
|
89d66c50db0cce2726f612a067afc0a82653729f378abd8e10f9f02ca41130e2 | guysherman/Faust | osci.dsp | declare name "osci";
declare version "1.0";
declare author "Grame";
declare license "BSD";
declare copyright "(c)GRAME 2009";
//-----------------------------------------------
// Sinusoidal Oscillator
// (with linear interpolation)
//-----------------------------------------------
import("music.lib");
smooth(c) = *(1-c) : +~*(c);
vol = hslider("volume [unit:dB]", 0, -96, 0, 0.1) : db2linear : smooth(0.999) ;
freq = hslider("freq [unit:Hz]", 1000, 20, 24000, 1);
process = vgroup("Oscillator", osci(freq) * vol);
| https://raw.githubusercontent.com/guysherman/Faust/4cac36e7fc493158e92946b3a840c4f611ac2844/examples/osci.dsp | faust | -----------------------------------------------
Sinusoidal Oscillator
(with linear interpolation)
----------------------------------------------- | declare name "osci";
declare version "1.0";
declare author "Grame";
declare license "BSD";
declare copyright "(c)GRAME 2009";
import("music.lib");
smooth(c) = *(1-c) : +~*(c);
vol = hslider("volume [unit:dB]", 0, -96, 0, 0.1) : db2linear : smooth(0.999) ;
freq = hslider("freq [unit:Hz]", 1000, 20, 24000, 1);
process = vgroup("Oscillator", osci(freq) * vol);
|
b738965546d8f3173e5c7f6832d4bbfc72da42c057e26dbfbf0f74c2a6cb72d9 | brummer10/guitarix | echo.dsp | declare name "Echo";
declare category "Echo / Delay";
declare version "0.01";
declare author "brummer";
declare license "BSD";
declare copyright "(c)brummer 2008";
import("stdfaust.lib");
t = vslider("time", 1, 1, 2000, 1);
release = vslider("percent", 0, 0, 100, 0.1);
echo1 = +~(de.delay(131072, int(t*ba.millisec)-1) * (release/100.0));
process = echo1;
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/echo.dsp | faust | declare name "Echo";
declare category "Echo / Delay";
declare version "0.01";
declare author "brummer";
declare license "BSD";
declare copyright "(c)brummer 2008";
import("stdfaust.lib");
t = vslider("time", 1, 1, 2000, 1);
release = vslider("percent", 0, 0, 100, 0.1);
echo1 = +~(de.delay(131072, int(t*ba.millisec)-1) * (release/100.0));
process = echo1;
|
|
85920c5d9e7c4430cf3ea4f1d43e32bc7fa236feceee28bdfc4b7e739bf27eea | ntonnaett/guitarix | lpbboost.dsp | // generated automatically
// DO NOT MODIFY!
declare id "lpbboost";
declare name "LPB-1 Booster";
declare category "Tone Control";
declare shortname "LPB-1 Boost";
declare description "LPB-1 Linear Power Booster ";
import("filter.lib");
process = pre : iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
LogPot(a, x) = if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = if(b, 1 - x, x);
s = 0.993;
fs = float(SR);
pre = _;
Boost = vslider("Boost[name:Boost]", 0.5, 0, 1, 0.01) : Inverted(0) : smooth(s);
b0 = -8.68034563926398e-9*Boost*pow(fs,2) - 8.68034563926398e-11*pow(fs,2);
b1 = 1.7360691278528e-8*Boost*pow(fs,2) + 1.7360691278528e-10*pow(fs,2);
b2 = -8.68034563926398e-9*Boost*pow(fs,2) - 8.68034563926398e-11*pow(fs,2);
a0 = fs*(4.33054407650898e-10*fs + 4.66962506103765e-8) + 1.22474303201741e-6;
a1 = -8.66108815301797e-10*pow(fs,2) + 2.44948606403482e-6;
a2 = fs*(4.33054407650898e-10*fs - 4.66962506103765e-8) + 1.22474303201741e-6;
};
| https://raw.githubusercontent.com/ntonnaett/guitarix/e5ce36c3a693eeada3cb70425ec09f8d6f91e78c/trunk/src/plugins/lpbboost.dsp | faust | generated automatically
DO NOT MODIFY! | declare id "lpbboost";
declare name "LPB-1 Booster";
declare category "Tone Control";
declare shortname "LPB-1 Boost";
declare description "LPB-1 Linear Power Booster ";
import("filter.lib");
process = pre : iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
LogPot(a, x) = if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = if(b, 1 - x, x);
s = 0.993;
fs = float(SR);
pre = _;
Boost = vslider("Boost[name:Boost]", 0.5, 0, 1, 0.01) : Inverted(0) : smooth(s);
b0 = -8.68034563926398e-9*Boost*pow(fs,2) - 8.68034563926398e-11*pow(fs,2);
b1 = 1.7360691278528e-8*Boost*pow(fs,2) + 1.7360691278528e-10*pow(fs,2);
b2 = -8.68034563926398e-9*Boost*pow(fs,2) - 8.68034563926398e-11*pow(fs,2);
a0 = fs*(4.33054407650898e-10*fs + 4.66962506103765e-8) + 1.22474303201741e-6;
a1 = -8.66108815301797e-10*pow(fs,2) + 2.44948606403482e-6;
a2 = fs*(4.33054407650898e-10*fs - 4.66962506103765e-8) + 1.22474303201741e-6;
};
|
66fbe62ccd0e2413c0a066d00d89b17af0f35588c663fd5cdf59beda892675d6 | ntonnaett/guitarix | scream.dsp | // generated automatically
// DO NOT MODIFY!
declare id "scream";
declare name "Screaming Bird";
declare category "Distortion";
declare shortname "Scream Bird";
declare description "Screaming Bird";
import("filter.lib");
process = pre : iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) : clip with {
LogPot(a, x) = if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = if(b, 1 - x, x);
s = 0.993;
fs = float(SR);
pre = _;
a = 1.2715 - Scream ;
clip(x) = min(0.4514,max(-0.2514,x));
Scream = vslider("Scream[name:Scream]", 0.5, 0, 1, 0.01) : Inverted(0) : smooth(s);
b0 = -6.82076449438528e-9*Scream*pow(fs,2) - 6.82076449438528e-10*pow(fs,2);
b1 = 1.36415289887706e-8*Scream*pow(fs,2) + 1.36415289887706e-9*pow(fs,2);
b2 = -6.82076449438528e-9*Scream*pow(fs,2) - 6.82076449438528e-10*pow(fs,2);
a0 = fs*(3.64434266110822e-10*fs + 3.23311541086178e-6) + 0.00515391115930048;
a1 = -7.28868532221644e-10*pow(fs,2) + 0.010307822318601;
a2 = fs*(3.64434266110822e-10*fs - 3.23311541086178e-6) + 0.00515391115930048;
};
| https://raw.githubusercontent.com/ntonnaett/guitarix/e5ce36c3a693eeada3cb70425ec09f8d6f91e78c/trunk/src/LV2/faust/scream.dsp | faust | generated automatically
DO NOT MODIFY! | declare id "scream";
declare name "Screaming Bird";
declare category "Distortion";
declare shortname "Scream Bird";
declare description "Screaming Bird";
import("filter.lib");
process = pre : iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) : clip with {
LogPot(a, x) = if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = if(b, 1 - x, x);
s = 0.993;
fs = float(SR);
pre = _;
a = 1.2715 - Scream ;
clip(x) = min(0.4514,max(-0.2514,x));
Scream = vslider("Scream[name:Scream]", 0.5, 0, 1, 0.01) : Inverted(0) : smooth(s);
b0 = -6.82076449438528e-9*Scream*pow(fs,2) - 6.82076449438528e-10*pow(fs,2);
b1 = 1.36415289887706e-8*Scream*pow(fs,2) + 1.36415289887706e-9*pow(fs,2);
b2 = -6.82076449438528e-9*Scream*pow(fs,2) - 6.82076449438528e-10*pow(fs,2);
a0 = fs*(3.64434266110822e-10*fs + 3.23311541086178e-6) + 0.00515391115930048;
a1 = -7.28868532221644e-10*pow(fs,2) + 0.010307822318601;
a2 = fs*(3.64434266110822e-10*fs - 3.23311541086178e-6) + 0.00515391115930048;
};
|
624969546004acfd3606e45d87917e21af6e9497cbabf94ae894cb9bb9b65e3e | ntonnaett/guitarix | ruin.dsp | // generated automatically
// DO NOT MODIFY!
declare id "ruin";
declare name "Ruiner";
declare category "Fuzz";
declare shortname "Ruiner";
declare description "Devi Ever Dark Boost";
declare drywetbox "true";
declare samplerate "96000";
import("filter.lib");
import("trany.lib");
ruinerp1 = pre : iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
LogPot(a, x) = if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = if(b, 1 - x, x);
s = 0.993;
fs = float(SR);
pre = _;
Intensity = vslider("Intensity[name:Intensity]", 0.5, 0, 1, 0.01) : Inverted(1) : smooth(s);
b0 = -3.68740376472719e-5*fs;
b1 = 0;
b2 = 3.68740376472719e-5*fs;
a0 = Intensity*fs*(3.23341143501596e-10*fs + 1.83849805831657e-6) + fs*(2.50211258533327e-10*fs + 1.41841348392955e-7) + 9.19249029158284e-5;
a1 = -6.46682287003193e-10*Intensity*pow(fs,2) - 5.00422517066654e-10*pow(fs,2) + 0.000183849805831657;
a2 = Intensity*fs*(3.23341143501596e-10*fs - 1.83849805831657e-6) + fs*(2.50211258533327e-10*fs - 1.41841348392955e-7) + 9.19249029158284e-5;
};
ruinerp2 = pre : iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0)) with {
LogPot(a, x) = if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = if(b, 1 - x, x);
s = 0.993;
fs = float(SR);
pre = _;
Level = vslider("Level[name:Level]", 0.5, 0, 1, 0.01) : Inverted(0) : smooth(s);
b0 = -1.11891193819806e-10*Level*pow(fs,2) - 1.11891193819806e-12*pow(fs,2);
b1 = 1.11891193819806e-10*Level*pow(fs,2) + 1.11891193819806e-12*pow(fs,2);
b2 = 1.11891193819806e-10*Level*pow(fs,2) + 1.11891193819806e-12*pow(fs,2);
b3 = -1.11891193819806e-10*Level*pow(fs,2) - 1.11891193819806e-12*pow(fs,2);
a0 = Level*(Level*fs*(fs*(-8.62067474057856e-16*fs - 4.46379387426086e-13) - 5.75832602737396e-11) + fs*(fs*(8.53446799317278e-16*fs + 5.28122340957611e-13) + 7.99957173492034e-11) + 2.87916301368698e-9) + fs*(fs*(8.71550216272493e-15*fs + 5.37582514840965e-12) + 8.12279541046302e-10) + 2.88204217670067e-8;
a1 = Level*(Level*fs*(fs*(2.58620242217357e-15*fs + 4.46379387426086e-13) - 5.75832602737396e-11) + fs*(fs*(-2.56034039795183e-15*fs - 5.28122340957611e-13) + 7.99957173492034e-11) + 8.63748904106094e-9) + fs*(fs*(-2.61465064881748e-14*fs - 5.37582514840965e-12) + 8.12279541046302e-10) + 8.646126530102e-8;
a2 = Level*(Level*fs*(fs*(-2.58620242217357e-15*fs + 4.46379387426086e-13) + 5.75832602737396e-11) + fs*(fs*(2.56034039795183e-15*fs - 5.28122340957611e-13) - 7.99957173492034e-11) + 8.63748904106094e-9) + fs*(fs*(2.61465064881748e-14*fs - 5.37582514840965e-12) - 8.12279541046302e-10) + 8.646126530102e-8;
a3 = Level*(Level*fs*(fs*(8.62067474057856e-16*fs - 4.46379387426086e-13) + 5.75832602737396e-11) + fs*(fs*(-8.53446799317278e-16*fs + 5.28122340957611e-13) - 7.99957173492034e-11) + 2.87916301368698e-9) + fs*(fs*(-8.71550216272493e-15*fs + 5.37582514840965e-12) - 8.12279541046302e-10) + 2.88204217670067e-8;
};
preclip = min(1) : max(-1);
//clip(x) = ((exp(x*4)-exp(-x*4*1.2))/(exp(x*4)+exp(-x*4)))/4;
clip = ffunction(float symclip(float), "clipping.h", "");
aclip(x) = atan(x)/PI;
tclip = tranystageb(TB_SVEL34_68k,86.0,2700.0,25.922163) : tranystageb(TB_SVEL34_68k,86.0,2700.0,25.922163) ;
process = ruinerp1 : tclip : ruinerp2 ;
| https://raw.githubusercontent.com/ntonnaett/guitarix/e5ce36c3a693eeada3cb70425ec09f8d6f91e78c/trunk/src/plugins/ruin.dsp | faust | generated automatically
DO NOT MODIFY!
clip(x) = ((exp(x*4)-exp(-x*4*1.2))/(exp(x*4)+exp(-x*4)))/4; | declare id "ruin";
declare name "Ruiner";
declare category "Fuzz";
declare shortname "Ruiner";
declare description "Devi Ever Dark Boost";
declare drywetbox "true";
declare samplerate "96000";
import("filter.lib");
import("trany.lib");
ruinerp1 = pre : iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
LogPot(a, x) = if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = if(b, 1 - x, x);
s = 0.993;
fs = float(SR);
pre = _;
Intensity = vslider("Intensity[name:Intensity]", 0.5, 0, 1, 0.01) : Inverted(1) : smooth(s);
b0 = -3.68740376472719e-5*fs;
b1 = 0;
b2 = 3.68740376472719e-5*fs;
a0 = Intensity*fs*(3.23341143501596e-10*fs + 1.83849805831657e-6) + fs*(2.50211258533327e-10*fs + 1.41841348392955e-7) + 9.19249029158284e-5;
a1 = -6.46682287003193e-10*Intensity*pow(fs,2) - 5.00422517066654e-10*pow(fs,2) + 0.000183849805831657;
a2 = Intensity*fs*(3.23341143501596e-10*fs - 1.83849805831657e-6) + fs*(2.50211258533327e-10*fs - 1.41841348392955e-7) + 9.19249029158284e-5;
};
ruinerp2 = pre : iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0)) with {
LogPot(a, x) = if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = if(b, 1 - x, x);
s = 0.993;
fs = float(SR);
pre = _;
Level = vslider("Level[name:Level]", 0.5, 0, 1, 0.01) : Inverted(0) : smooth(s);
b0 = -1.11891193819806e-10*Level*pow(fs,2) - 1.11891193819806e-12*pow(fs,2);
b1 = 1.11891193819806e-10*Level*pow(fs,2) + 1.11891193819806e-12*pow(fs,2);
b2 = 1.11891193819806e-10*Level*pow(fs,2) + 1.11891193819806e-12*pow(fs,2);
b3 = -1.11891193819806e-10*Level*pow(fs,2) - 1.11891193819806e-12*pow(fs,2);
a0 = Level*(Level*fs*(fs*(-8.62067474057856e-16*fs - 4.46379387426086e-13) - 5.75832602737396e-11) + fs*(fs*(8.53446799317278e-16*fs + 5.28122340957611e-13) + 7.99957173492034e-11) + 2.87916301368698e-9) + fs*(fs*(8.71550216272493e-15*fs + 5.37582514840965e-12) + 8.12279541046302e-10) + 2.88204217670067e-8;
a1 = Level*(Level*fs*(fs*(2.58620242217357e-15*fs + 4.46379387426086e-13) - 5.75832602737396e-11) + fs*(fs*(-2.56034039795183e-15*fs - 5.28122340957611e-13) + 7.99957173492034e-11) + 8.63748904106094e-9) + fs*(fs*(-2.61465064881748e-14*fs - 5.37582514840965e-12) + 8.12279541046302e-10) + 8.646126530102e-8;
a2 = Level*(Level*fs*(fs*(-2.58620242217357e-15*fs + 4.46379387426086e-13) + 5.75832602737396e-11) + fs*(fs*(2.56034039795183e-15*fs - 5.28122340957611e-13) - 7.99957173492034e-11) + 8.63748904106094e-9) + fs*(fs*(2.61465064881748e-14*fs - 5.37582514840965e-12) - 8.12279541046302e-10) + 8.646126530102e-8;
a3 = Level*(Level*fs*(fs*(8.62067474057856e-16*fs - 4.46379387426086e-13) + 5.75832602737396e-11) + fs*(fs*(-8.53446799317278e-16*fs + 5.28122340957611e-13) - 7.99957173492034e-11) + 2.87916301368698e-9) + fs*(fs*(-8.71550216272493e-15*fs + 5.37582514840965e-12) - 8.12279541046302e-10) + 2.88204217670067e-8;
};
preclip = min(1) : max(-1);
clip = ffunction(float symclip(float), "clipping.h", "");
aclip(x) = atan(x)/PI;
tclip = tranystageb(TB_SVEL34_68k,86.0,2700.0,25.922163) : tranystageb(TB_SVEL34_68k,86.0,2700.0,25.922163) ;
process = ruinerp1 : tclip : ruinerp2 ;
|
d2baabb6c16623e44a2180b1850d3fcdf32a1856e75902452073f67b002766cd | guysherman/Faust | dbmeter.dsp | declare name "dbmeter";
declare version "1.0";
declare author "Grame";
declare license "BSD";
declare copyright "(c)GRAME 2006";
//-------------------------------------------------
// A dB Vumeter
//-------------------------------------------------
import("math.lib");
import("music.lib");
vmeter(x) = attach(x, envelop(x) : vbargraph("dB", -96, 10));
hmeter(x) = attach(x, envelop(x) : hbargraph("dB", -96, 10));
envelop = abs : max(db2linear(-96)) : linear2db : min(10) : max ~ -(96.0/SR);
process = vmeter; | https://raw.githubusercontent.com/guysherman/Faust/4cac36e7fc493158e92946b3a840c4f611ac2844/tools/faust2pd/examples/faust/dbmeter.dsp | faust | -------------------------------------------------
A dB Vumeter
------------------------------------------------- | declare name "dbmeter";
declare version "1.0";
declare author "Grame";
declare license "BSD";
declare copyright "(c)GRAME 2006";
import("math.lib");
import("music.lib");
vmeter(x) = attach(x, envelop(x) : vbargraph("dB", -96, 10));
hmeter(x) = attach(x, envelop(x) : hbargraph("dB", -96, 10));
envelop = abs : max(db2linear(-96)) : linear2db : min(10) : max ~ -(96.0/SR);
process = vmeter; |
3caf988c5b653c6d3e7add1e8d03973d62b5c276f567f0ade20962ccd6dd5d14 | guysherman/Faust | matrix.dsp | declare name "matrix";
declare version "1.0";
declare author "Grame";
declare license "BSD";
declare copyright "(c)GRAME 2006";
//-----------------------------------------------
// Audio Matrix : N inputs x M outputs
//-----------------------------------------------
import("music.lib");
Fader(in) = db2linear(vslider("Input %in", -10, -96, 4, 0.1));
Mixer(N,out) = hgroup("Output %out", par(in, N, *(Fader(in)) ) :> _ );
Matrix(N,M) = tgroup ("Matrix %N x %M", par(in, N, _) <: par(out, M, Mixer(N, out)));
process = Matrix(8, 8);
| https://raw.githubusercontent.com/guysherman/Faust/4cac36e7fc493158e92946b3a840c4f611ac2844/tools/faust2pd/examples/faust/matrix.dsp | faust | -----------------------------------------------
Audio Matrix : N inputs x M outputs
----------------------------------------------- | declare name "matrix";
declare version "1.0";
declare author "Grame";
declare license "BSD";
declare copyright "(c)GRAME 2006";
import("music.lib");
Fader(in) = db2linear(vslider("Input %in", -10, -96, 4, 0.1));
Mixer(N,out) = hgroup("Output %out", par(in, N, *(Fader(in)) ) :> _ );
Matrix(N,M) = tgroup ("Matrix %N x %M", par(in, N, _) <: par(out, M, Mixer(N, out)));
process = Matrix(8, 8);
|
03b6c68021bba8424e30e3b04039381f8f0189bc08dd622af6e4784fb9e4c9c6 | guysherman/Faust | switcher.dsp | declare name "switch";
declare version "1.0";
declare author "Grame";
declare license "BSD";
declare copyright "(c)GRAME 2007";
//-----------------------------------------------
// Switch between two stereo sources.
// Useful to compare these two sources
// The parameter c\in{0,1} indicates the
// channels to select
//-----------------------------------------------
switch(c,x0,x1,y0,y1) = sel(c,x0,y0), sel(c,x1,y1)
with {
sel(c,x,y) = (1-c)*x + c*y;
};
process = switch(hslider("source 0 <-> source 1",0,0,1,1));
| https://raw.githubusercontent.com/guysherman/Faust/4cac36e7fc493158e92946b3a840c4f611ac2844/examples/switcher.dsp | faust | -----------------------------------------------
Switch between two stereo sources.
Useful to compare these two sources
The parameter c\in{0,1} indicates the
channels to select
----------------------------------------------- | declare name "switch";
declare version "1.0";
declare author "Grame";
declare license "BSD";
declare copyright "(c)GRAME 2007";
switch(c,x0,x1,y0,y1) = sel(c,x0,y0), sel(c,x1,y1)
with {
sel(c,x,y) = (1-c)*x + c*y;
};
process = switch(hslider("source 0 <-> source 1",0,0,1,1));
|
7330a4b389c4d44fb7f2811947954d2f2aec4aa3b0a1fb4ea9b5603852f59b88 | DerouineauNicolas/Guitarix | distortion2.dsp | declare name "WaveSharper";
declare category "Distortion";
declare id "distortion2";
declare description "A simple Wavesharper distortion";
import("math.lib");
import("music.lib");
import("effect.lib");
import("filter.lib");
import("guitarix.lib");
//----------distortion---------
bread = highpass(2,f) : lowpass(1,6532) with {
f = vslider("Hfreq [log][name:Hi Pass][tooltip: Highpass Frequency]", 30, 20, 2000, 1.08);
};
boost = vslider("gain[name:Gain][tooltip: Volume Level]", 0, -30, 10, 0.1) : db2linear : smoothi(0.999);
dist(x) = (1+k)*(x)/(1+k*abs(x)): +~_''* 0.5 with {
k = 2*a/(1-a);
a = sin(((drive+1)/102)*(PI/2));
drive = vslider("drive[name:Drive][tooltip: Distortion Level]", 50, 0, 100, 1): smoothi(0.999);
};
butter = lowpass(2,fc) with {
fc = vslider("freq [log][name:Lo Pass][tooltip: Lowpass Frequency]", 10000, 1000, 20000, 1.08);
};
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) : bread : *(boost) : dist : butter):>_;
| https://raw.githubusercontent.com/DerouineauNicolas/Guitarix/59ae60efd2118b0c86ac985f3d655ed2620510c6/trunk/src/faust/distortion2.dsp | faust | ----------distortion--------- | declare name "WaveSharper";
declare category "Distortion";
declare id "distortion2";
declare description "A simple Wavesharper distortion";
import("math.lib");
import("music.lib");
import("effect.lib");
import("filter.lib");
import("guitarix.lib");
bread = highpass(2,f) : lowpass(1,6532) with {
f = vslider("Hfreq [log][name:Hi Pass][tooltip: Highpass Frequency]", 30, 20, 2000, 1.08);
};
boost = vslider("gain[name:Gain][tooltip: Volume Level]", 0, -30, 10, 0.1) : db2linear : smoothi(0.999);
dist(x) = (1+k)*(x)/(1+k*abs(x)): +~_''* 0.5 with {
k = 2*a/(1-a);
a = sin(((drive+1)/102)*(PI/2));
drive = vslider("drive[name:Drive][tooltip: Distortion Level]", 50, 0, 100, 1): smoothi(0.999);
};
butter = lowpass(2,fc) with {
fc = vslider("freq [log][name:Lo Pass][tooltip: Lowpass Frequency]", 10000, 1000, 20000, 1.08);
};
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) : bread : *(boost) : dist : butter):>_;
|
4607d591bc99f03a8396766b09b1481bf700dababfd9c02b781e6a678da64b43 | guysherman/Faust | mixer.dsp | declare name "mixer";
declare version "1.0";
declare author "Grame";
declare license "BSD";
declare copyright "(c)GRAME 2006";
//-------------------------------------------------
// Simple 8x2 mixer
//-------------------------------------------------
vol = component("volume.dsp");
pan = component("panpot.dsp");
vumeter = component("vumeter.dsp").vmeter;
mute = *(1 - checkbox("mute"));
voice(v) = vgroup("voice %v", mute : hgroup("", vol : vumeter) : pan);
stereo = hgroup("stereo out", vol, vol);
process = hgroup("mixer", par(i, 8, voice(i)) :> stereo);
| https://raw.githubusercontent.com/guysherman/Faust/4cac36e7fc493158e92946b3a840c4f611ac2844/tools/faust2pd/examples/faust/mixer.dsp | faust | -------------------------------------------------
Simple 8x2 mixer
------------------------------------------------- | declare name "mixer";
declare version "1.0";
declare author "Grame";
declare license "BSD";
declare copyright "(c)GRAME 2006";
vol = component("volume.dsp");
pan = component("panpot.dsp");
vumeter = component("vumeter.dsp").vmeter;
mute = *(1 - checkbox("mute"));
voice(v) = vgroup("voice %v", mute : hgroup("", vol : vumeter) : pan);
stereo = hgroup("stereo out", vol, vol);
process = hgroup("mixer", par(i, 8, voice(i)) :> stereo);
|
dc3481b819045541e1c544b5ad9187b7c7bd4f80457cd2fa261fc52259888661 | guysherman/Faust | OneSourceToStereo.dsp | declare name "OneSourceToStereo";
declare version "1.0";
declare author "CICM";
declare license "BSD";
declare copyright "(c)CICM 2013";
import("hoa.lib") ;
import("filter.lib") ;
import("oscillator.lib");
r1 = hslider("Radius", 1.0, 0, 5, 0.001) : smooth(tau2pole(0.02));
a1 = hslider("Angle", 62831, -6.28318530717959, 6.28318530717959, 0.001) : smooth(tau2pole(0.02));
process(sig) = map(7, sig, r1, a1) : optimInPhase(7) : decoderStereo(7);
| https://raw.githubusercontent.com/guysherman/Faust/4cac36e7fc493158e92946b3a840c4f611ac2844/examples/OneSourceToStereo.dsp | faust | declare name "OneSourceToStereo";
declare version "1.0";
declare author "CICM";
declare license "BSD";
declare copyright "(c)CICM 2013";
import("hoa.lib") ;
import("filter.lib") ;
import("oscillator.lib");
r1 = hslider("Radius", 1.0, 0, 5, 0.001) : smooth(tau2pole(0.02));
a1 = hslider("Angle", 62831, -6.28318530717959, 6.28318530717959, 0.001) : smooth(tau2pole(0.02));
process(sig) = map(7, sig, r1, a1) : optimInPhase(7) : decoderStereo(7);
|
|
72d159f380130dc84302920c739830a126119e00067264c94215a0ab09bd3602 | unclechu/guitarix | gx_distortion.dsp | declare name "Multi Band Distortion";
declare shortname "Distortion";
declare category "Distortion";
declare groups "resonator[Distortion resonator]";
declare gladefile "gx_distortion_ui.glade";
declare version "0.01";
declare author "brummer";
declare license "BSD";
declare copyright "(c)brummer 2008";
import("math.lib");
import("music.lib");
import("effect.lib");
import("filter.lib");
import("guitarix.lib");
import("maxmsp.lib");
F = nentry("split_low_freq", 250, 20, 600, 10);
F1 = nentry("split_middle_freq", 650, 600, 1250, 10);
F2 = nentry("split_high_freq", 1250, 1250, 12000, 10);
/**********************************************************************
*** this part is included here for backward compatibility from 0.9.27 to
*** 0.9.24
***********************************************************************/
//------------------------------ count and take --------------------------------------
countN ((xs, xxs)) = 1 + countN(xxs);
countN (xx) = 1;
takeN (1, (xs, xxs)) = xs;
takeN (1, xs) = xs;
takeN (nn, (xs, xxs)) = takeN (nn-1, xxs);
//------------------------------ low/high-passfilters --------------------------------------
tf1N(b0,b1,a1) = _ <: *(b0), (mem : *(b1)) :> + ~ *(0-a1);
tf2N(b0,b1,b2,a1,a2) = sub ~ conv2(a1,a2) : conv3(b0,b1,b2)
with {
conv3(k0,k1,k2,x) = k0*x + k1*x' + k2*x'';
conv2(k0,k1,x) = k0*x + k1*x';
sub(x,y) = y-x;
};
tf1sN(b1,b0,a0,w1) = tf1N(b0d,b1d,a1d)
with {
c = 1/tan((w1)*0.5/SR); // bilinear-transform scale-factor
d = a0 + c;
b1d = (b0 - b1*c) / d;
b0d = (b0 + b1*c) / d;
a1d = (a0 - c) / d;
};
tf2sN(b2,b1,b0,a1,a0,w1) = tf2N(b0d,b1d,b2d,a1d,a2d)
with {
c = 1/tan((w1)*0.5/SR); // bilinear-transform scale-factor
csq = c*c;
d = a0 + a1 * c + csq;
b0d = (b0 + b1 * c + b2 * csq)/d;
b1d = 2 * (b0 - b2 * csq)/d;
b2d = (b0 - b1 * c + b2 * csq)/d;
a1d = 2 * (a0 - csq)/d;
a2d = (a0 - a1*c + csq)/d;
};
lowpassN(N,fc) = lowpass0_highpass1N(0,N,fc);
highpassN(N,fc) = lowpass0_highpass1N(1,N,fc);
lowpass0_highpass1N(s,N,fc) = lphpr(s,N,N,fc)
with {
lphpr(s,0,N,fc) = _;
lphpr(s,1,N,fc) = tf1sN(s,1-s,1,2*PI*fc);
lphpr(s,O,N,fc) = lphpr(s,(O-2),N,fc) : tf2sN(s,0,1-s,a1s,1,w1) with {
parity = N % 2;
S = (O-parity)/2; // current section number
a1s = -2*cos(-PI + (1-parity)*PI/(2*N) + (S-1+parity)*PI/N);
w1 = 2*PI*fc;
};
};
//------------------------------ analyzer --------------------------------------
analyzern(O,lfreqs) = _ <: bsplit(nb) with
{
nb = countN(lfreqs);
fc(n) = takeN(n, lfreqs);
lp(n) = lowpassN(O,fc(n));
hp(n) = highpassN(O,fc(n));
bsplit(0) = _;
bsplit(i) = hp(i), (lp(i) <: bsplit(i-1));
};
analyzerN(lfreqs) = analyzern(3,lfreqs);
filterbankn(O,lfreqs) = analyzern(O,lfreqs) : delayeq with
{
nb = count(lfreqs);
fc(n) = take(n, lfreqs);
ap(n) = highpass_plus_lowpass(O,fc(n));
delayeq = par(i,nb-1,apchain(nb-1-i)),_,_;
apchain(0) = _;
apchain(i) = ap(i) : apchain(i-1);
};
filterbankN(lfreqs) = filterbankn(3,lfreqs);
/**********************************************************************
*** end for backward compatibility from 0.9.27 to
*** 0.9.24 , it could removed when switch completly to > 0.9.27
***********************************************************************/
//----------distortion---------
//-distortion
drivelevel = vslider("level", 0.0, 0, 0.5, 0.01);
drivegain1 = vslider("gain", 2, -10, 10, 0.1)-10 : db2linear : smoothi(0.999);
low_gain = vslider("low_gain[name:low]", 10, -10, 20, 0.1)-10 : db2linear : smoothi(0.999);
high_gain = vslider("high_gain[name:high]", 10, -10, 20, 0.1)-10 : db2linear : smoothi(0.999);
middle_gain_l = vslider("middle_l_gain[name:middle l.]", 10, -10, 20, 0.1)-10 : db2linear : smoothi(0.999);
middle_gain_h = vslider("middle_h_gain[name:middle h.]", 10, -10, 20, 0.1)-10 : db2linear : smoothi(0.999);
drive = vslider("drive", 0.64, 0, 1, 0.01);
drive1 = vslider("low_drive[name:low]", 1, 0, 1, 0.01)*drive;
drive2 = vslider("high_drive[name:high]", 1, 0, 1, 0.01)*drive;
drive3 = vslider("middle_l_drive[name:middle l.]", 1, 0, 1, 0.01)*drive;
drive4 = vslider("middle_h_drive[name:middle h.]", 1, 0, 1, 0.01)*drive;
distortion1 = _:cubicnl(drive1,drivelevel): *(low_gain);
distortion2 = _:cubicnl(drive2,drivelevel) : *(high_gain);
distortion3 = _:cubicnl(drive3,drivelevel) : *(middle_gain_l);
distortion4 = _:cubicnl(drive4,drivelevel) : *(middle_gain_h);
distortion = lowpassN(2,15000.0): highpass(1,31.0) : filterbankN((F,(F1,F2))) : distortion2,distortion4 ,distortion3,distortion1 :>lowpass(1,6531.0);
//-resonator
resonator = (+ <: (delay(4096, d-1) + delay(4096, d)) / 2) ~ *(1.0-a)
with {
d = vslider("vibrato", 1, 0, 1, 0.01);
a = vslider("trigger", 0.12, 0, 1, 0.01);
};
switch2 = checkbox("resonator.on_off[name:resonat]");
//reso = hgroup("resonator", bypass(switch2, resonator));
moving_filter(x) = (x+x'+x'')/3;
wet = vslider("wet_dry[name:wet/dry][tooltip:percentage of processed signal in output signal]", 100, 0, 100, 1) : /(100);
dry = 1 - wet;
process_dist = bypass(switch2, resonator) : +(anti_denormal_ac) : distortion : *(drivegain1) ;
process = _<:*(dry),(*(wet): process_dist):>_;
| https://raw.githubusercontent.com/unclechu/guitarix/630e762d480264619919b8b9c69d64f5b6f83da3/trunk/src/faust/gx_distortion.dsp | faust | *********************************************************************
*** this part is included here for backward compatibility from 0.9.27 to
*** 0.9.24
**********************************************************************
------------------------------ count and take --------------------------------------
------------------------------ low/high-passfilters --------------------------------------
bilinear-transform scale-factor
bilinear-transform scale-factor
current section number
------------------------------ analyzer --------------------------------------
*********************************************************************
*** end for backward compatibility from 0.9.27 to
*** 0.9.24 , it could removed when switch completly to > 0.9.27
**********************************************************************
----------distortion---------
-distortion
-resonator
reso = hgroup("resonator", bypass(switch2, resonator)); | declare name "Multi Band Distortion";
declare shortname "Distortion";
declare category "Distortion";
declare groups "resonator[Distortion resonator]";
declare gladefile "gx_distortion_ui.glade";
declare version "0.01";
declare author "brummer";
declare license "BSD";
declare copyright "(c)brummer 2008";
import("math.lib");
import("music.lib");
import("effect.lib");
import("filter.lib");
import("guitarix.lib");
import("maxmsp.lib");
F = nentry("split_low_freq", 250, 20, 600, 10);
F1 = nentry("split_middle_freq", 650, 600, 1250, 10);
F2 = nentry("split_high_freq", 1250, 1250, 12000, 10);
countN ((xs, xxs)) = 1 + countN(xxs);
countN (xx) = 1;
takeN (1, (xs, xxs)) = xs;
takeN (1, xs) = xs;
takeN (nn, (xs, xxs)) = takeN (nn-1, xxs);
tf1N(b0,b1,a1) = _ <: *(b0), (mem : *(b1)) :> + ~ *(0-a1);
tf2N(b0,b1,b2,a1,a2) = sub ~ conv2(a1,a2) : conv3(b0,b1,b2)
with {
conv3(k0,k1,k2,x) = k0*x + k1*x' + k2*x'';
conv2(k0,k1,x) = k0*x + k1*x';
sub(x,y) = y-x;
};
tf1sN(b1,b0,a0,w1) = tf1N(b0d,b1d,a1d)
with {
d = a0 + c;
b1d = (b0 - b1*c) / d;
b0d = (b0 + b1*c) / d;
a1d = (a0 - c) / d;
};
tf2sN(b2,b1,b0,a1,a0,w1) = tf2N(b0d,b1d,b2d,a1d,a2d)
with {
csq = c*c;
d = a0 + a1 * c + csq;
b0d = (b0 + b1 * c + b2 * csq)/d;
b1d = 2 * (b0 - b2 * csq)/d;
b2d = (b0 - b1 * c + b2 * csq)/d;
a1d = 2 * (a0 - csq)/d;
a2d = (a0 - a1*c + csq)/d;
};
lowpassN(N,fc) = lowpass0_highpass1N(0,N,fc);
highpassN(N,fc) = lowpass0_highpass1N(1,N,fc);
lowpass0_highpass1N(s,N,fc) = lphpr(s,N,N,fc)
with {
lphpr(s,0,N,fc) = _;
lphpr(s,1,N,fc) = tf1sN(s,1-s,1,2*PI*fc);
lphpr(s,O,N,fc) = lphpr(s,(O-2),N,fc) : tf2sN(s,0,1-s,a1s,1,w1) with {
parity = N % 2;
a1s = -2*cos(-PI + (1-parity)*PI/(2*N) + (S-1+parity)*PI/N);
w1 = 2*PI*fc;
};
};
analyzern(O,lfreqs) = _ <: bsplit(nb) with
{
nb = countN(lfreqs);
fc(n) = takeN(n, lfreqs);
lp(n) = lowpassN(O,fc(n));
hp(n) = highpassN(O,fc(n));
bsplit(0) = _;
bsplit(i) = hp(i), (lp(i) <: bsplit(i-1));
};
analyzerN(lfreqs) = analyzern(3,lfreqs);
filterbankn(O,lfreqs) = analyzern(O,lfreqs) : delayeq with
{
nb = count(lfreqs);
fc(n) = take(n, lfreqs);
ap(n) = highpass_plus_lowpass(O,fc(n));
delayeq = par(i,nb-1,apchain(nb-1-i)),_,_;
apchain(0) = _;
apchain(i) = ap(i) : apchain(i-1);
};
filterbankN(lfreqs) = filterbankn(3,lfreqs);
drivelevel = vslider("level", 0.0, 0, 0.5, 0.01);
drivegain1 = vslider("gain", 2, -10, 10, 0.1)-10 : db2linear : smoothi(0.999);
low_gain = vslider("low_gain[name:low]", 10, -10, 20, 0.1)-10 : db2linear : smoothi(0.999);
high_gain = vslider("high_gain[name:high]", 10, -10, 20, 0.1)-10 : db2linear : smoothi(0.999);
middle_gain_l = vslider("middle_l_gain[name:middle l.]", 10, -10, 20, 0.1)-10 : db2linear : smoothi(0.999);
middle_gain_h = vslider("middle_h_gain[name:middle h.]", 10, -10, 20, 0.1)-10 : db2linear : smoothi(0.999);
drive = vslider("drive", 0.64, 0, 1, 0.01);
drive1 = vslider("low_drive[name:low]", 1, 0, 1, 0.01)*drive;
drive2 = vslider("high_drive[name:high]", 1, 0, 1, 0.01)*drive;
drive3 = vslider("middle_l_drive[name:middle l.]", 1, 0, 1, 0.01)*drive;
drive4 = vslider("middle_h_drive[name:middle h.]", 1, 0, 1, 0.01)*drive;
distortion1 = _:cubicnl(drive1,drivelevel): *(low_gain);
distortion2 = _:cubicnl(drive2,drivelevel) : *(high_gain);
distortion3 = _:cubicnl(drive3,drivelevel) : *(middle_gain_l);
distortion4 = _:cubicnl(drive4,drivelevel) : *(middle_gain_h);
distortion = lowpassN(2,15000.0): highpass(1,31.0) : filterbankN((F,(F1,F2))) : distortion2,distortion4 ,distortion3,distortion1 :>lowpass(1,6531.0);
resonator = (+ <: (delay(4096, d-1) + delay(4096, d)) / 2) ~ *(1.0-a)
with {
d = vslider("vibrato", 1, 0, 1, 0.01);
a = vslider("trigger", 0.12, 0, 1, 0.01);
};
switch2 = checkbox("resonator.on_off[name:resonat]");
moving_filter(x) = (x+x'+x'')/3;
wet = vslider("wet_dry[name:wet/dry][tooltip:percentage of processed signal in output signal]", 100, 0, 100, 1) : /(100);
dry = 1 - wet;
process_dist = bypass(switch2, resonator) : +(anti_denormal_ac) : distortion : *(drivegain1) ;
process = _<:*(dry),(*(wet): process_dist):>_;
|
13334be768a67802ad344e73d594e2accd437273b8d22a4d10a3b2e6e6db58ea | maximalexanian/guitarix-vst | digital_delay.dsp | declare id "dide";
declare name "Digital Delay";
declare shortname "Digi Delay";
declare category "Echo / Delay";
declare description "Digital Delay";
import("stdfaust.lib");
import("guitarix.lib");
guitarboost = fi.highpass(3,80) : fi.peak_eq(-3,200,50): fi.peak_eq(1.5,375,125) : fi.peak_eq(3,2000,500) : fi.peak_eq(-6, 4000, 1000) : fi.peak_eq(2,8000,1000) : fi.lowpass(3,12000) : *(0.8);
tape = fi.allpassn(4,(-0.6, 0.4, -0.2, 0.1));
tape2 = fi.allpassn(4,(-0.2, -0.3, 0.4, 0.5));
sel(sl) = environment {
a = min(2, max(0,sl));
b = min(2, max(0,sl-1));
c = min(2, max(0,sl-2));
};
selfilter(n) = _<: a <: b <: c :>_ with {
a = select3(sel(n).a,_,guitarboost,_);
b = select3(sel(n).b,_,tape,_);
c = select3(sel(n).c,_,tape2,_);
};
tempo2note = ffunction(float B2N(int,float), "beat.h", "");
dide = _<:*(dry),(delx(B) : *(wet)):>_ with {
B = hslider("Freeze[tooltip:Freeze the current delay]",0,0,1,1);
delx(n) = _<:(*(1.0-B):digd), !:>_;
digd = (+:(delayed:lback(B)))~(fback(B)) with {
fback(n) = _<:select2(n, feed, freeze):>_;
lback(n) = _<:select2(n, *(level), *(1.0)):>_;
feed = *(feedback): fi.highpass(2,hifr1):fi.lowpass(2,lofr1) : selfilter(sl);
freeze = *(1.0);
sl = hslider("mode[name:Mode][enum:plain|presence|tape|tape2]",0,0,3,1);
delayed = de.sdelay(N, interp, min(2^19,(tempo2note(tact,dbpm)))) with {
dtime = hslider("delay[name:Delay][tooltip:Delay Time in ms]", 2500, 0.1, 5000, 0.1)*ma.SR/1000.0;
dbpm = ba.tempo(hslider("bpm[name:BPM][tooltip:Delay in Beats per Minute]",120,24,360,1));
tact = hslider("notes[name:Notes][enum:Dotted 1/2 note|1/2 note|1/2 note triplets|
Dotted 1/4 note|1/4 note|1/4 note triplets|Dotted 1/8 note|1/8 note|1/8 note triplets|
Dotted 1/16 note|1/16 note|1/16 note triplets|Dotted 1/32 note|1/32 note|1/32 note triplets|
Dotted 1/64 note|1/64 note|1/64 note triplets][tooltip:Note setting for bpm]",4,0,17,1);
interp = 100*ma.SR/1000.0;
N = int( 2^19 ) ;
};
level = vslider("level[name:Level][tooltip:Percentage of the de.delay gain level]", 50, 1, 100, 1)/100 ;
feedback = vslider("feedback[name:Feedback][tooltip:Percentage of the feedback level in the de.delay loop]", 50, 1, 100, 1)/100 ;
hifr1 = hslider("highpass[name:Hipass][tooltip: Highpass filter frequency in the feddback loop]" ,120 , 20, 20000, 1);
lofr1 = hslider("howpass [name:Lopass][tooltip: Lowpass filter frequency in the feddback loop]" ,12000 , 20, 20000, 1);
};
wet = vslider("gain[name:Gain][tooltip:Overall gain of the de.delay line in percent]", 100, 0, 120, 1) : /(100);
dry = 1 ;
};
process = dide;
| https://raw.githubusercontent.com/maximalexanian/guitarix-vst/83fd0cbec9588fb2ef47d80f7c6cb0775bfb9f89/guitarix/src/faust/digital_delay.dsp | faust | declare id "dide";
declare name "Digital Delay";
declare shortname "Digi Delay";
declare category "Echo / Delay";
declare description "Digital Delay";
import("stdfaust.lib");
import("guitarix.lib");
guitarboost = fi.highpass(3,80) : fi.peak_eq(-3,200,50): fi.peak_eq(1.5,375,125) : fi.peak_eq(3,2000,500) : fi.peak_eq(-6, 4000, 1000) : fi.peak_eq(2,8000,1000) : fi.lowpass(3,12000) : *(0.8);
tape = fi.allpassn(4,(-0.6, 0.4, -0.2, 0.1));
tape2 = fi.allpassn(4,(-0.2, -0.3, 0.4, 0.5));
sel(sl) = environment {
a = min(2, max(0,sl));
b = min(2, max(0,sl-1));
c = min(2, max(0,sl-2));
};
selfilter(n) = _<: a <: b <: c :>_ with {
a = select3(sel(n).a,_,guitarboost,_);
b = select3(sel(n).b,_,tape,_);
c = select3(sel(n).c,_,tape2,_);
};
tempo2note = ffunction(float B2N(int,float), "beat.h", "");
dide = _<:*(dry),(delx(B) : *(wet)):>_ with {
B = hslider("Freeze[tooltip:Freeze the current delay]",0,0,1,1);
delx(n) = _<:(*(1.0-B):digd), !:>_;
digd = (+:(delayed:lback(B)))~(fback(B)) with {
fback(n) = _<:select2(n, feed, freeze):>_;
lback(n) = _<:select2(n, *(level), *(1.0)):>_;
feed = *(feedback): fi.highpass(2,hifr1):fi.lowpass(2,lofr1) : selfilter(sl);
freeze = *(1.0);
sl = hslider("mode[name:Mode][enum:plain|presence|tape|tape2]",0,0,3,1);
delayed = de.sdelay(N, interp, min(2^19,(tempo2note(tact,dbpm)))) with {
dtime = hslider("delay[name:Delay][tooltip:Delay Time in ms]", 2500, 0.1, 5000, 0.1)*ma.SR/1000.0;
dbpm = ba.tempo(hslider("bpm[name:BPM][tooltip:Delay in Beats per Minute]",120,24,360,1));
tact = hslider("notes[name:Notes][enum:Dotted 1/2 note|1/2 note|1/2 note triplets|
Dotted 1/4 note|1/4 note|1/4 note triplets|Dotted 1/8 note|1/8 note|1/8 note triplets|
Dotted 1/16 note|1/16 note|1/16 note triplets|Dotted 1/32 note|1/32 note|1/32 note triplets|
Dotted 1/64 note|1/64 note|1/64 note triplets][tooltip:Note setting for bpm]",4,0,17,1);
interp = 100*ma.SR/1000.0;
N = int( 2^19 ) ;
};
level = vslider("level[name:Level][tooltip:Percentage of the de.delay gain level]", 50, 1, 100, 1)/100 ;
feedback = vslider("feedback[name:Feedback][tooltip:Percentage of the feedback level in the de.delay loop]", 50, 1, 100, 1)/100 ;
hifr1 = hslider("highpass[name:Hipass][tooltip: Highpass filter frequency in the feddback loop]" ,120 , 20, 20000, 1);
lofr1 = hslider("howpass [name:Lopass][tooltip: Lowpass filter frequency in the feddback loop]" ,12000 , 20, 20000, 1);
};
wet = vslider("gain[name:Gain][tooltip:Overall gain of the de.delay line in percent]", 100, 0, 120, 1) : /(100);
dry = 1 ;
};
process = dide;
|
|
d3095d395e4068bc953f0aa10cb7906a8176dbe7457455d8d8ed8d103b70f1be | ntonnaett/guitarix | mxrdist.dsp | declare id "mxrdis";
declare name "MXR Distortion Plus";
declare shortname "MXR+";
declare category "Distortion";
declare samplerate "96000";
SR = component("math.lib").SR;
s = 0.993;
fs = float(SR);
drive = 0.75 + hslider("drive[name:Drive]", 0.5, 0, 1, 0.01) * 0.25 : component("filter.lib").smooth(s);
mxr_in = component("filter.lib").iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
b0 = fs*(4.29274359816386e-10*fs + 6.43911539724579e-10);
b1 = -8.58548719632772e-10*pow(fs,2);
b2 = fs*(4.29274359816386e-10*fs - 6.43911539724579e-10);
a0 = fs*(4.3356710341455e-10*fs + 2.2111922274142e-8) + 2.14637179908193e-8;
a1 = -8.671342068291e-10*pow(fs,2) + 4.29274359816386e-8;
a2 = fs*(4.3356710341455e-10*fs - 2.2111922274142e-8) + 2.14637179908193e-8;
};
mxr_out = component("filter.lib").iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
Volume = vslider("Volume[name:Volume]", 0.5, 0, 1, 0.01) : component("filter.lib").smooth(s);
b0 = 7.03343695930453e-6*Volume*fs;
b1 = 0;
b2 = -7.03343695930453e-6*Volume*fs;
a0 = fs*(1.40668739186091e-10*fs + 1.40739073555684e-5) + 0.000351671847965227;
a1 = -2.81337478372181e-10*pow(fs,2) + 0.000703343695930453;
a2 = fs*(1.40668739186091e-10*fs - 1.40739073555684e-5) + 0.000351671847965227;
};
process = mxr_in : X3 : mxr_out with {
R1 = 4700 + (1000000 * (1.0 -drive));
R2 = 1000000 ;
C = 0.047 * 1e-6;
a1 = (R1 + R2) * C * 2 * SR;
a2 = R1 * C * 2 * SR;
B0 = (1 + a1) / (1 + a2);
B1 = (1 - a1) / (1 + a2);
A1 = (1 - a2) / (1 + a2);
X2 = component("filter.lib").tf1(B0, B1, A1);
opamp1 = ffunction(float opamp2(float), "clipping.h", "");
X3 = _ <: _ - opamp1(X2-_) :> _ ;
asymclip = ffunction(float asymhardclip2(float), "clipping.h", "");
clip = asymclip(_);
};
| https://raw.githubusercontent.com/ntonnaett/guitarix/e5ce36c3a693eeada3cb70425ec09f8d6f91e78c/trunk/src/plugins/mxrdist.dsp | faust | declare id "mxrdis";
declare name "MXR Distortion Plus";
declare shortname "MXR+";
declare category "Distortion";
declare samplerate "96000";
SR = component("math.lib").SR;
s = 0.993;
fs = float(SR);
drive = 0.75 + hslider("drive[name:Drive]", 0.5, 0, 1, 0.01) * 0.25 : component("filter.lib").smooth(s);
mxr_in = component("filter.lib").iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
b0 = fs*(4.29274359816386e-10*fs + 6.43911539724579e-10);
b1 = -8.58548719632772e-10*pow(fs,2);
b2 = fs*(4.29274359816386e-10*fs - 6.43911539724579e-10);
a0 = fs*(4.3356710341455e-10*fs + 2.2111922274142e-8) + 2.14637179908193e-8;
a1 = -8.671342068291e-10*pow(fs,2) + 4.29274359816386e-8;
a2 = fs*(4.3356710341455e-10*fs - 2.2111922274142e-8) + 2.14637179908193e-8;
};
mxr_out = component("filter.lib").iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) with {
Volume = vslider("Volume[name:Volume]", 0.5, 0, 1, 0.01) : component("filter.lib").smooth(s);
b0 = 7.03343695930453e-6*Volume*fs;
b1 = 0;
b2 = -7.03343695930453e-6*Volume*fs;
a0 = fs*(1.40668739186091e-10*fs + 1.40739073555684e-5) + 0.000351671847965227;
a1 = -2.81337478372181e-10*pow(fs,2) + 0.000703343695930453;
a2 = fs*(1.40668739186091e-10*fs - 1.40739073555684e-5) + 0.000351671847965227;
};
process = mxr_in : X3 : mxr_out with {
R1 = 4700 + (1000000 * (1.0 -drive));
R2 = 1000000 ;
C = 0.047 * 1e-6;
a1 = (R1 + R2) * C * 2 * SR;
a2 = R1 * C * 2 * SR;
B0 = (1 + a1) / (1 + a2);
B1 = (1 - a1) / (1 + a2);
A1 = (1 - a2) / (1 + a2);
X2 = component("filter.lib").tf1(B0, B1, A1);
opamp1 = ffunction(float opamp2(float), "clipping.h", "");
X3 = _ <: _ - opamp1(X2-_) :> _ ;
asymclip = ffunction(float asymhardclip2(float), "clipping.h", "");
clip = asymclip(_);
};
|
|
23d37e5fab44e5614e72553a4aa4cac946cea6336ae3adf44902740b8fb35db2 | guysherman/Faust | pitch_shifter.dsp | declare name "pitch-shifter";
declare version "1.0";
declare author "Grame";
declare license "BSD";
declare copyright "(c)GRAME 2006";
//----------------------------
// very simple real time pitch shifter
//----------------------------
import("music.lib");
transpose (w, x, s, sig) =
fdelay1s(d,sig)*fmin(d/x,1) + fdelay1s(d+w,sig)*(1-fmin(d/x,1))
with {
i = 1 - pow(2, s/12);
d = i : (+ : +(w) : fmod(_,w)) ~ _;
};
pitchshifter = vgroup("Pitch Shifter", transpose(
hslider("window (samples)", 1000, 50, 10000, 1),
hslider("xfade (samples)", 10, 1, 10000, 1),
hslider("shift (semitones) ", 0, -12, +12, 0.1)
)
);
process = pitchshifter;
| https://raw.githubusercontent.com/guysherman/Faust/4cac36e7fc493158e92946b3a840c4f611ac2844/examples/pitch_shifter.dsp | faust | ----------------------------
very simple real time pitch shifter
---------------------------- | declare name "pitch-shifter";
declare version "1.0";
declare author "Grame";
declare license "BSD";
declare copyright "(c)GRAME 2006";
import("music.lib");
transpose (w, x, s, sig) =
fdelay1s(d,sig)*fmin(d/x,1) + fdelay1s(d+w,sig)*(1-fmin(d/x,1))
with {
i = 1 - pow(2, s/12);
d = i : (+ : +(w) : fmod(_,w)) ~ _;
};
pitchshifter = vgroup("Pitch Shifter", transpose(
hslider("window (samples)", 1000, 50, 10000, 1),
hslider("xfade (samples)", 10, 1, 10000, 1),
hslider("shift (semitones) ", 0, -12, +12, 0.1)
)
);
process = pitchshifter;
|
22876a496a81e58c7fb15866a5c90cdf3d65d005a1f1daa42a62fd0850975ac4 | guysherman/Faust | mixer.dsp | declare name "mixer";
declare version "1.0";
declare author "Grame";
declare license "BSD";
declare copyright "(c)GRAME 2006";
//-------------------------------------------------
// Simple 8x2 mixer
//-------------------------------------------------
vol = component("volume.dsp");
pan = component("panpot.dsp");
vumeter = component("vumeter.dsp").vmeter;
mute = *(1 - checkbox("mute"));
voice(v) = vgroup("Ch %v", mute : hgroup("[2]", vol : vumeter) : pan);
stereo = hgroup("stereo out", (vol, vol : vgroup("L", vumeter), vgroup("R", vumeter)));
process = hgroup("mixer", par(i, 8, voice(i)) :> stereo );
| https://raw.githubusercontent.com/guysherman/Faust/4cac36e7fc493158e92946b3a840c4f611ac2844/examples/mixer.dsp | faust | -------------------------------------------------
Simple 8x2 mixer
------------------------------------------------- | declare name "mixer";
declare version "1.0";
declare author "Grame";
declare license "BSD";
declare copyright "(c)GRAME 2006";
vol = component("volume.dsp");
pan = component("panpot.dsp");
vumeter = component("vumeter.dsp").vmeter;
mute = *(1 - checkbox("mute"));
voice(v) = vgroup("Ch %v", mute : hgroup("[2]", vol : vumeter) : pan);
stereo = hgroup("stereo out", (vol, vol : vgroup("L", vumeter), vgroup("R", vumeter)));
process = hgroup("mixer", par(i, 8, voice(i)) :> stereo );
|
abc3ea7ecf7ec8460bdfd494c3e206fd297e8c3266c0ef7fc0c9cd99e76457b6 | EnvelopSound/EnvelopForLive | bformat2ambix3.dsp | //declare name "ADT_Adapter_Matrix"; // done below
declare version "1.0";
declare author "AmbisonicDecoderToolkit";
declare license "BSD 3-Clause License";
declare copyright "(c) Aaron J. Heller 2014";
/*
Copyright (c) 2014, Aaron J. Heller
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
// bus with gains
gain(c) = R(c) with {
R((c,cl)) = R(c),R(cl);
R(1) = _;
//R(0) = !;
R(0) = !:0; // if you need to preserve the number of outputs
R(float(0)) = R(0);
R(float(1)) = R(1);
R(c) = *(c);
};
// n = number of inputs
// m = number of output
matrix(n,m) = par(i,n,_) <: par(i,m,gain(A(i)):>_);
order_in(1) = (_,_,_,_,0,0,0,0,0,0,0,0,0,0,0,0);
order_in(2) = (_,_,_,_,_,_,_,_,_,0,0,0,0,0,0,0);
order_in(3) = (_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_);
order_out(1) = (_,_,_,_,!,!,!,!,!,!,!,!,!,!,!,!);
order_out(2) = (_,_,_,_,_,_,_,_,_,!,!,!,!,!,!,!);
order_out(3) = (_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_);
process = matrix(n_inputs, n_outputs);
// ==== no user servicible parts above here =====
declare name "bformat2ambix3";
n_inputs = 9;
n_outputs = 16;
// matrix follows
A(00) = (1.414213562, 0, 0, 0, 0, 0, 0, 0, 0);
A(01) = (0, 0, 1, 0, 0, 0, 0, 0, 0);
A(02) = (0, 0, 0, 1, 0, 0, 0, 0, 0);
A(03) = (0, 1, 0, 0, 0, 0, 0, 0, 0);
A(04) = (0, 0, 0, 0, 0, 0, 0, 0, 0.8660254038);
A(05) = (0, 0, 0, 0, 0, 0, 0.8660254038, 0, 0);
A(06) = (0, 0, 0, 0, 1, 0, 0, 0, 0);
A(07) = (0, 0, 0, 0, 0, 0.8660254038, 0, 0, 0);
A(08) = (0, 0, 0, 0, 0, 0, 0, 0.8660254038, 0);
A(09) = (0, 0, 0, 0, 0, 0, 0, 0, 0);
A(10) = (0, 0, 0, 0, 0, 0, 0, 0, 0);
A(11) = (0, 0, 0, 0, 0, 0, 0, 0, 0);
A(12) = (0, 0, 0, 0, 0, 0, 0, 0, 0);
A(13) = (0, 0, 0, 0, 0, 0, 0, 0, 0);
A(14) = (0, 0, 0, 0, 0, 0, 0, 0, 0);
A(15) = (0, 0, 0, 0, 0, 0, 0, 0, 0);
| https://raw.githubusercontent.com/EnvelopSound/EnvelopForLive/c52831a8835b55105f52783fa371ab27a0fe4b4e/patchers/remote/bformat2ambix3%7E.mxo/bformat2ambix3.dsp | faust | declare name "ADT_Adapter_Matrix"; // done below
Copyright (c) 2014, Aaron J. Heller
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
bus with gains
R(0) = !;
if you need to preserve the number of outputs
n = number of inputs
m = number of output
==== no user servicible parts above here =====
matrix follows | declare version "1.0";
declare author "AmbisonicDecoderToolkit";
declare license "BSD 3-Clause License";
declare copyright "(c) Aaron J. Heller 2014";
gain(c) = R(c) with {
R((c,cl)) = R(c),R(cl);
R(1) = _;
R(float(0)) = R(0);
R(float(1)) = R(1);
R(c) = *(c);
};
matrix(n,m) = par(i,n,_) <: par(i,m,gain(A(i)):>_);
order_in(1) = (_,_,_,_,0,0,0,0,0,0,0,0,0,0,0,0);
order_in(2) = (_,_,_,_,_,_,_,_,_,0,0,0,0,0,0,0);
order_in(3) = (_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_);
order_out(1) = (_,_,_,_,!,!,!,!,!,!,!,!,!,!,!,!);
order_out(2) = (_,_,_,_,_,_,_,_,_,!,!,!,!,!,!,!);
order_out(3) = (_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_);
process = matrix(n_inputs, n_outputs);
declare name "bformat2ambix3";
n_inputs = 9;
n_outputs = 16;
A(00) = (1.414213562, 0, 0, 0, 0, 0, 0, 0, 0);
A(01) = (0, 0, 1, 0, 0, 0, 0, 0, 0);
A(02) = (0, 0, 0, 1, 0, 0, 0, 0, 0);
A(03) = (0, 1, 0, 0, 0, 0, 0, 0, 0);
A(04) = (0, 0, 0, 0, 0, 0, 0, 0, 0.8660254038);
A(05) = (0, 0, 0, 0, 0, 0, 0.8660254038, 0, 0);
A(06) = (0, 0, 0, 0, 1, 0, 0, 0, 0);
A(07) = (0, 0, 0, 0, 0, 0.8660254038, 0, 0, 0);
A(08) = (0, 0, 0, 0, 0, 0, 0, 0.8660254038, 0);
A(09) = (0, 0, 0, 0, 0, 0, 0, 0, 0);
A(10) = (0, 0, 0, 0, 0, 0, 0, 0, 0);
A(11) = (0, 0, 0, 0, 0, 0, 0, 0, 0);
A(12) = (0, 0, 0, 0, 0, 0, 0, 0, 0);
A(13) = (0, 0, 0, 0, 0, 0, 0, 0, 0);
A(14) = (0, 0, 0, 0, 0, 0, 0, 0, 0);
A(15) = (0, 0, 0, 0, 0, 0, 0, 0, 0);
|
d0ece81f539f786d599104fc63fa46c7caad5ac288ecf19ea404ed770525c50f | EnvelopSound/EnvelopForLive | fuma2ambix3.dsp | //declare name "ADT_Adapter_Matrix"; // done below
declare version "1.0";
declare author "AmbisonicDecoderToolkit";
declare license "BSD 3-Clause License";
declare copyright "(c) Aaron J. Heller 2014";
/*
Copyright (c) 2014, Aaron J. Heller
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
// bus with gains
gain(c) = R(c) with {
R((c,cl)) = R(c),R(cl);
R(1) = _;
R(0) = !;
//R(0) = !:0; // if you need to preserve the number of outputs
R(float(0)) = R(0);
R(float(1)) = R(1);
R(c) = *(c);
};
// n = number of inputs
// m = number of output
matrix(n,m) = par(i,n,_) <: par(i,m,gain(A(i)):>_);
order_in(1) = (_,_,_,_,0,0,0,0,0,0,0,0,0,0,0,0);
order_in(2) = (_,_,_,_,_,_,_,_,_,0,0,0,0,0,0,0);
order_in(3) = (_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_);
order_out(1) = (_,_,_,_,!,!,!,!,!,!,!,!,!,!,!,!);
order_out(2) = (_,_,_,_,_,_,_,_,_,!,!,!,!,!,!,!);
order_out(3) = (_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_);
process = matrix(n_inputs, n_outputs);
// ==== no user servicible parts above here =====
declare name "fuma2ambix3";
n_inputs = 16;
n_outputs = 16;
// matrix follows
A(00) = (1.414213562, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
A(01) = (0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
A(02) = (0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
A(03) = (0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
A(04) = (0, 0, 0, 0, 0, 0, 0, 0, 0.8660254038, 0, 0, 0, 0, 0, 0, 0);
A(05) = (0, 0, 0, 0, 0, 0, 0.8660254038, 0, 0, 0, 0, 0, 0, 0, 0, 0);
A(06) = (0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
A(07) = (0, 0, 0, 0, 0, 0.8660254038, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
A(08) = (0, 0, 0, 0, 0, 0, 0, 0.8660254038, 0, 0, 0, 0, 0, 0, 0, 0);
A(09) = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.790569415);
A(10) = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.7453559925, 0, 0);
A(11) = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.8432740427, 0, 0, 0, 0);
A(12) = (0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0);
A(13) = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.8432740427, 0, 0, 0, 0, 0);
A(14) = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.7453559925, 0, 0, 0);
A(15) = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.790569415, 0);
| https://raw.githubusercontent.com/EnvelopSound/EnvelopForLive/c52831a8835b55105f52783fa371ab27a0fe4b4e/patchers/remote/fuma2ambix3%7E.mxo/fuma2ambix3.dsp | faust | declare name "ADT_Adapter_Matrix"; // done below
Copyright (c) 2014, Aaron J. Heller
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
bus with gains
R(0) = !:0; // if you need to preserve the number of outputs
n = number of inputs
m = number of output
==== no user servicible parts above here =====
matrix follows | declare version "1.0";
declare author "AmbisonicDecoderToolkit";
declare license "BSD 3-Clause License";
declare copyright "(c) Aaron J. Heller 2014";
gain(c) = R(c) with {
R((c,cl)) = R(c),R(cl);
R(1) = _;
R(0) = !;
R(float(0)) = R(0);
R(float(1)) = R(1);
R(c) = *(c);
};
matrix(n,m) = par(i,n,_) <: par(i,m,gain(A(i)):>_);
order_in(1) = (_,_,_,_,0,0,0,0,0,0,0,0,0,0,0,0);
order_in(2) = (_,_,_,_,_,_,_,_,_,0,0,0,0,0,0,0);
order_in(3) = (_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_);
order_out(1) = (_,_,_,_,!,!,!,!,!,!,!,!,!,!,!,!);
order_out(2) = (_,_,_,_,_,_,_,_,_,!,!,!,!,!,!,!);
order_out(3) = (_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_);
process = matrix(n_inputs, n_outputs);
declare name "fuma2ambix3";
n_inputs = 16;
n_outputs = 16;
A(00) = (1.414213562, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
A(01) = (0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
A(02) = (0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
A(03) = (0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
A(04) = (0, 0, 0, 0, 0, 0, 0, 0, 0.8660254038, 0, 0, 0, 0, 0, 0, 0);
A(05) = (0, 0, 0, 0, 0, 0, 0.8660254038, 0, 0, 0, 0, 0, 0, 0, 0, 0);
A(06) = (0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
A(07) = (0, 0, 0, 0, 0, 0.8660254038, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
A(08) = (0, 0, 0, 0, 0, 0, 0, 0.8660254038, 0, 0, 0, 0, 0, 0, 0, 0);
A(09) = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.790569415);
A(10) = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.7453559925, 0, 0);
A(11) = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.8432740427, 0, 0, 0, 0);
A(12) = (0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0);
A(13) = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.8432740427, 0, 0, 0, 0, 0);
A(14) = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.7453559925, 0, 0, 0);
A(15) = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.790569415, 0);
|
7c5780caeb55e75b6197b4b04dabff31fd69eb693e8e80dd4ebbd793c7651bcc | smoge/gxplugins | echo.dsp | //declare name "emptty";
declare version "0.01";
declare author "brummer";
declare license "BSD";
declare copyright "(c)brummer 2008";
import("math.lib");
import("music.lib");
import("effect.lib");
import("filter.lib");
t = vslider("time", 1, 1, 2000, 1);
release = vslider("percent", 0, 0, 100, 0.1);
echo1 = +~(delay(131072, int(t*millisec)-1) * (release/100.0));
process = echo1;
| https://raw.githubusercontent.com/smoge/gxplugins/30a5160ff626975aa521a316cd33f973e3bc5d0c/echo.dsp | faust | declare name "emptty"; | declare version "0.01";
declare author "brummer";
declare license "BSD";
declare copyright "(c)brummer 2008";
import("math.lib");
import("music.lib");
import("effect.lib");
import("filter.lib");
t = vslider("time", 1, 1, 2000, 1);
release = vslider("percent", 0, 0, 100, 0.1);
echo1 = +~(delay(131072, int(t*millisec)-1) * (release/100.0));
process = echo1;
|
18f2db9857b5ccdc7da9a0cf3ff497bdd7dd8e849e36cb1db41e40cffd440e11 | brummer10/guitarix | mbdel.dsp | declare id "mbdel";
declare name "MultiBand Delay";
declare shortname "MB Delay";
declare category "Echo / Delay";
declare description "Multi Band Delay";
import("stdfaust.lib");
import("reducemaps.lib");
hifr1 =hslider("crossover_b1_b2 [log][name:Crossover B1-B2 (hz)][tooltip: Crossover fi.bandpass frequency]" ,80 , 20, 20000, 1.08);
hifr2 =hslider("crossover_b2_b3 [log][name:Crossover B2-B3 (hz)][tooltip: Crossover fi.bandpass frequency]",210,20,20000,1.08);
hifr3 =hslider("crossover_b3_b4 [log][name:Crossover B3-B4 (hz)][tooltip: Crossover fi.bandpass frequency]",1700,20,20000,1.08);
hifr4 =hslider("crossover_b4_b5 [log][name:Crossover B4-B5 (hz)][tooltip: Crossover fi.bandpass frequency]",5000,20,20000,1.08);
geq = fi.filterbank(3, (hifr1,hifr2,hifr3,hifr4));
interp = 100*ma.SR/1000.0;
N = int( 2^18);
g1 = vslider("gain1", -10, -20, 20, 0.1) : ba.db2linear : si.smooth(0.999);
d1 = ba.tempo(hslider("delay1[tooltip:Delay in Beats per Minute]",30,24,360,1));
g2 = vslider("gain2", -5, -20, 20, 0.1) : ba.db2linear : si.smooth(0.999);
d2 = ba.tempo(hslider("delay2[tooltip:Delay in Beats per Minute]",60,24,360,1));
g3 = vslider("gain3", -2, -20, 20, 0.1) : ba.db2linear : si.smooth(0.999);
d3 = ba.tempo(hslider("delay3[tooltip:Delay in Beats per Minute]",90,24,360,1));
g4 = vslider("gain4", 0, -20, 20, 0.1) : ba.db2linear : si.smooth(0.999);
d4 = ba.tempo(hslider("delay4[tooltip:Delay in Beats per Minute]",120,24,360,1));
g5 = vslider("gain5", -10, -20, 20, 0.1) : ba.db2linear : si.smooth(0.999);
d5 = ba.tempo(hslider("delay5[tooltip:Delay in Beats per Minute]",150,24,360,1));
del(g,d) = *(g) : de.sdelay(N, interp,d) ;
vmeter1(x) = attach(x, envelop(x) : vbargraph("v1[nomidi][log]", -70, +5));
vmeter2(x) = attach(x, envelop(x) : vbargraph("v2[nomidi][log]", -70, +5));
vmeter3(x) = attach(x, envelop(x) : vbargraph("v3[nomidi][log]", -70, +5));
vmeter4(x) = attach(x, envelop(x) : vbargraph("v4[nomidi][log]", -70, +5));
vmeter5(x) = attach(x, envelop(x) : vbargraph("v5[nomidi][log]", -70, +5));
envelop = abs : max ~ (1.0/ma.SR) : mean(4096) ; // : max(ba.db2linear(-70)) : ba.linear2db;
process = _<:(geq: ( dist5s , dist4s , dist3s, dist2s, dist1s)),_:>_ with {
dist1s = del(g1,d1) : vmeter1;
dist2s = del(g2,d2) : vmeter2;
dist3s = del(g3,d3) : vmeter3;
dist4s = del(g4,d4) : vmeter4;
dist5s = del(g5,d5) : vmeter5;
};
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/plugins/mbdel.dsp | faust | : max(ba.db2linear(-70)) : ba.linear2db; | declare id "mbdel";
declare name "MultiBand Delay";
declare shortname "MB Delay";
declare category "Echo / Delay";
declare description "Multi Band Delay";
import("stdfaust.lib");
import("reducemaps.lib");
hifr1 =hslider("crossover_b1_b2 [log][name:Crossover B1-B2 (hz)][tooltip: Crossover fi.bandpass frequency]" ,80 , 20, 20000, 1.08);
hifr2 =hslider("crossover_b2_b3 [log][name:Crossover B2-B3 (hz)][tooltip: Crossover fi.bandpass frequency]",210,20,20000,1.08);
hifr3 =hslider("crossover_b3_b4 [log][name:Crossover B3-B4 (hz)][tooltip: Crossover fi.bandpass frequency]",1700,20,20000,1.08);
hifr4 =hslider("crossover_b4_b5 [log][name:Crossover B4-B5 (hz)][tooltip: Crossover fi.bandpass frequency]",5000,20,20000,1.08);
geq = fi.filterbank(3, (hifr1,hifr2,hifr3,hifr4));
interp = 100*ma.SR/1000.0;
N = int( 2^18);
g1 = vslider("gain1", -10, -20, 20, 0.1) : ba.db2linear : si.smooth(0.999);
d1 = ba.tempo(hslider("delay1[tooltip:Delay in Beats per Minute]",30,24,360,1));
g2 = vslider("gain2", -5, -20, 20, 0.1) : ba.db2linear : si.smooth(0.999);
d2 = ba.tempo(hslider("delay2[tooltip:Delay in Beats per Minute]",60,24,360,1));
g3 = vslider("gain3", -2, -20, 20, 0.1) : ba.db2linear : si.smooth(0.999);
d3 = ba.tempo(hslider("delay3[tooltip:Delay in Beats per Minute]",90,24,360,1));
g4 = vslider("gain4", 0, -20, 20, 0.1) : ba.db2linear : si.smooth(0.999);
d4 = ba.tempo(hslider("delay4[tooltip:Delay in Beats per Minute]",120,24,360,1));
g5 = vslider("gain5", -10, -20, 20, 0.1) : ba.db2linear : si.smooth(0.999);
d5 = ba.tempo(hslider("delay5[tooltip:Delay in Beats per Minute]",150,24,360,1));
del(g,d) = *(g) : de.sdelay(N, interp,d) ;
vmeter1(x) = attach(x, envelop(x) : vbargraph("v1[nomidi][log]", -70, +5));
vmeter2(x) = attach(x, envelop(x) : vbargraph("v2[nomidi][log]", -70, +5));
vmeter3(x) = attach(x, envelop(x) : vbargraph("v3[nomidi][log]", -70, +5));
vmeter4(x) = attach(x, envelop(x) : vbargraph("v4[nomidi][log]", -70, +5));
vmeter5(x) = attach(x, envelop(x) : vbargraph("v5[nomidi][log]", -70, +5));
process = _<:(geq: ( dist5s , dist4s , dist3s, dist2s, dist1s)),_:>_ with {
dist1s = del(g1,d1) : vmeter1;
dist2s = del(g2,d2) : vmeter2;
dist3s = del(g3,d3) : vmeter3;
dist4s = del(g4,d4) : vmeter4;
dist5s = del(g5,d5) : vmeter5;
};
|
991378a2914bde27d591971ef82621a304d97b3ce50eb8599dddf59f5bd25b08 | brummer10/guitarix | mbe.dsp | declare id "mbe";
declare name "MultiBand Echo";
declare shortname "MB Echo";
declare category "Echo / Delay";
declare description "Multi Band Echo";
import("stdfaust.lib");
import("reducemaps.lib");
hifr1 =hslider("crossover_b1_b2 [log][name:Crossover B1-B2 (hz)][tooltip: Crossover fi.bandpass frequency]" ,80 , 20, 20000, 1.08);
hifr2 =hslider("crossover_b2_b3 [log][name:Crossover B2-B3 (hz)][tooltip: Crossover fi.bandpass frequency]",210,20,20000,1.08);
hifr3 =hslider("crossover_b3_b4 [log][name:Crossover B3-B4 (hz)][tooltip: Crossover fi.bandpass frequency]",1700,20,20000,1.08);
hifr4 =hslider("crossover_b4_b5 [log][name:Crossover B4-B5 (hz)][tooltip: Crossover fi.bandpass frequency]",5000,20,20000,1.08);
geq = fi.filterbank(3, (hifr1,hifr2,hifr3,hifr4));
t1 = ba.tempo(hslider("time1[tooltip:Echo in Beats per Minute]",30,24,360,1));
r1 = hslider("percent1", 10, 0, 100, 0.1)/100.0 : si.smooth(0.999);
t2 = ba.tempo(hslider("time2[tooltip:Echo in Beats per Minute]",60,24,360,1));
r2 = hslider("percent2", 30, 0, 100, 0.1)/100.0 : si.smooth(0.999);
t3 = ba.tempo(hslider("time3[tooltip:Echo in Beats per Minute]",120,24,360,1));
r3 = hslider("percent3", 45, 0, 100, 0.1)/100.0 : si.smooth(0.999);
t4 = ba.tempo(hslider("time4[tooltip:Echo in Beats per Minute]",150,24,360,1));
r4 = hslider("percent4", 20, 0, 100, 0.1)/100.0 : si.smooth(0.999);
t5 = ba.tempo(hslider("time5[tooltip:Echo in Beats per Minute]",240,24,360,1));
r5 = hslider("percent5", 0, 0, 100, 0.1)/100.0 : si.smooth(0.999);
vmeter1(x) = attach(x, envelop(x) : vbargraph("v1[nomidi][log]", -70, +5));
vmeter2(x) = attach(x, envelop(x) : vbargraph("v2[nomidi][log]", -70, +5));
vmeter3(x) = attach(x, envelop(x) : vbargraph("v3[nomidi][log]", -70, +5));
vmeter4(x) = attach(x, envelop(x) : vbargraph("v4[nomidi][log]", -70, +5));
vmeter5(x) = attach(x, envelop(x) : vbargraph("v5[nomidi][log]", -70, +5));
envelop = abs : max ~ (1.0/ma.SR) : mean(4096) ; // : max(ba.db2linear(-70)) : ba.linear2db;
echo1(t,r) = +~(de.sdelay(int(2^18), 100*ma.SR/1000.0, t) * (r));
process = geq: ( dist5s , dist4s , dist3s, dist2s, dist1s) :>_ with {
dist1s = echo1(t1,r1) : vmeter1 ;
dist2s = echo1(t2,r2) : vmeter2;
dist3s = echo1(t3,r3) : vmeter3;
dist4s = echo1(t4,r4) : vmeter4;
dist5s = echo1(t5,r5) : vmeter5;
};
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/plugins/mbe.dsp | faust | : max(ba.db2linear(-70)) : ba.linear2db; | declare id "mbe";
declare name "MultiBand Echo";
declare shortname "MB Echo";
declare category "Echo / Delay";
declare description "Multi Band Echo";
import("stdfaust.lib");
import("reducemaps.lib");
hifr1 =hslider("crossover_b1_b2 [log][name:Crossover B1-B2 (hz)][tooltip: Crossover fi.bandpass frequency]" ,80 , 20, 20000, 1.08);
hifr2 =hslider("crossover_b2_b3 [log][name:Crossover B2-B3 (hz)][tooltip: Crossover fi.bandpass frequency]",210,20,20000,1.08);
hifr3 =hslider("crossover_b3_b4 [log][name:Crossover B3-B4 (hz)][tooltip: Crossover fi.bandpass frequency]",1700,20,20000,1.08);
hifr4 =hslider("crossover_b4_b5 [log][name:Crossover B4-B5 (hz)][tooltip: Crossover fi.bandpass frequency]",5000,20,20000,1.08);
geq = fi.filterbank(3, (hifr1,hifr2,hifr3,hifr4));
t1 = ba.tempo(hslider("time1[tooltip:Echo in Beats per Minute]",30,24,360,1));
r1 = hslider("percent1", 10, 0, 100, 0.1)/100.0 : si.smooth(0.999);
t2 = ba.tempo(hslider("time2[tooltip:Echo in Beats per Minute]",60,24,360,1));
r2 = hslider("percent2", 30, 0, 100, 0.1)/100.0 : si.smooth(0.999);
t3 = ba.tempo(hslider("time3[tooltip:Echo in Beats per Minute]",120,24,360,1));
r3 = hslider("percent3", 45, 0, 100, 0.1)/100.0 : si.smooth(0.999);
t4 = ba.tempo(hslider("time4[tooltip:Echo in Beats per Minute]",150,24,360,1));
r4 = hslider("percent4", 20, 0, 100, 0.1)/100.0 : si.smooth(0.999);
t5 = ba.tempo(hslider("time5[tooltip:Echo in Beats per Minute]",240,24,360,1));
r5 = hslider("percent5", 0, 0, 100, 0.1)/100.0 : si.smooth(0.999);
vmeter1(x) = attach(x, envelop(x) : vbargraph("v1[nomidi][log]", -70, +5));
vmeter2(x) = attach(x, envelop(x) : vbargraph("v2[nomidi][log]", -70, +5));
vmeter3(x) = attach(x, envelop(x) : vbargraph("v3[nomidi][log]", -70, +5));
vmeter4(x) = attach(x, envelop(x) : vbargraph("v4[nomidi][log]", -70, +5));
vmeter5(x) = attach(x, envelop(x) : vbargraph("v5[nomidi][log]", -70, +5));
echo1(t,r) = +~(de.sdelay(int(2^18), 100*ma.SR/1000.0, t) * (r));
process = geq: ( dist5s , dist4s , dist3s, dist2s, dist1s) :>_ with {
dist1s = echo1(t1,r1) : vmeter1 ;
dist2s = echo1(t2,r2) : vmeter2;
dist3s = echo1(t3,r3) : vmeter3;
dist4s = echo1(t4,r4) : vmeter4;
dist5s = echo1(t5,r5) : vmeter5;
};
|
4df5f38af2bc9f669ab0917b7dd531b783f732ee458f9b1b147bde1d529ccfd8 | brummer10/guitarix | mbe.dsp | declare id "mbe";
declare name "MultiBand Echo";
declare shortname "MB Echo";
declare category "Echo / Delay";
declare description "Multi Band Echo";
import("stdfaust.lib");
rd = library("reducemaps.lib");
hifr1 =hslider("crossover_b1_b2 [log][name:Crossover B1-B2 (hz)][tooltip: Crossover fi.bandpass frequency]" ,80 , 20, 20000, 1.08);
hifr2 =hslider("crossover_b2_b3 [log][name:Crossover B2-B3 (hz)][tooltip: Crossover fi.bandpass frequency]",210,20,20000,1.08);
hifr3 =hslider("crossover_b3_b4 [log][name:Crossover B3-B4 (hz)][tooltip: Crossover fi.bandpass frequency]",1700,20,20000,1.08);
hifr4 =hslider("crossover_b4_b5 [log][name:Crossover B4-B5 (hz)][tooltip: Crossover fi.bandpass frequency]",5000,20,20000,1.08);
geq = fi.filterbank(3, (hifr1,hifr2,hifr3,hifr4));
t1 = ba.tempo(hslider("time1[tooltip:Echo in Beats per Minute]",30,24,360,1));
r1 = hslider("percent1", 10, 0, 100, 0.1)/100.0 : si.smooth(0.999);
t2 = ba.tempo(hslider("time2[tooltip:Echo in Beats per Minute]",60,24,360,1));
r2 = hslider("percent2", 30, 0, 100, 0.1)/100.0 : si.smooth(0.999);
t3 = ba.tempo(hslider("time3[tooltip:Echo in Beats per Minute]",120,24,360,1));
r3 = hslider("percent3", 45, 0, 100, 0.1)/100.0 : si.smooth(0.999);
t4 = ba.tempo(hslider("time4[tooltip:Echo in Beats per Minute]",150,24,360,1));
r4 = hslider("percent4", 20, 0, 100, 0.1)/100.0 : si.smooth(0.999);
t5 = ba.tempo(hslider("time5[tooltip:Echo in Beats per Minute]",240,24,360,1));
r5 = hslider("percent5", 0, 0, 100, 0.1)/100.0 : si.smooth(0.999);
vmeter1(x) = attach(x, envelop(x) : vbargraph("v1[nomidi:no]", -70, +5));
vmeter2(x) = attach(x, envelop(x) : vbargraph("v2[nomidi:no]", -70, +5));
vmeter3(x) = attach(x, envelop(x) : vbargraph("v3[nomidi:no]", -70, +5));
vmeter4(x) = attach(x, envelop(x) : vbargraph("v4[nomidi:no]", -70, +5));
vmeter5(x) = attach(x, envelop(x) : vbargraph("v5[nomidi:no]", -70, +5));
envelop = abs : max ~ (1.0/ma.SR) : rd.maxn(4096) ;
//envelop = abs : max ~ (1.0/ma.SR) : mean(4096) ; // : max(ba.db2linear(-70)) : ba.linear2db;
echo1(t,r) = +~(de.sdelay(int(2^18), 100*ma.SR/1000.0, t) * (r));
process = geq: ( dist5s , dist4s , dist3s, dist2s, dist1s) :>_ with {
dist1s = echo1(t1,r1) : vmeter1 ;
dist2s = echo1(t2,r2) : vmeter2;
dist3s = echo1(t3,r3) : vmeter3;
dist4s = echo1(t4,r4) : vmeter4;
dist5s = echo1(t5,r5) : vmeter5;
};
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/mbe.dsp | faust | envelop = abs : max ~ (1.0/ma.SR) : mean(4096) ; // : max(ba.db2linear(-70)) : ba.linear2db; | declare id "mbe";
declare name "MultiBand Echo";
declare shortname "MB Echo";
declare category "Echo / Delay";
declare description "Multi Band Echo";
import("stdfaust.lib");
rd = library("reducemaps.lib");
hifr1 =hslider("crossover_b1_b2 [log][name:Crossover B1-B2 (hz)][tooltip: Crossover fi.bandpass frequency]" ,80 , 20, 20000, 1.08);
hifr2 =hslider("crossover_b2_b3 [log][name:Crossover B2-B3 (hz)][tooltip: Crossover fi.bandpass frequency]",210,20,20000,1.08);
hifr3 =hslider("crossover_b3_b4 [log][name:Crossover B3-B4 (hz)][tooltip: Crossover fi.bandpass frequency]",1700,20,20000,1.08);
hifr4 =hslider("crossover_b4_b5 [log][name:Crossover B4-B5 (hz)][tooltip: Crossover fi.bandpass frequency]",5000,20,20000,1.08);
geq = fi.filterbank(3, (hifr1,hifr2,hifr3,hifr4));
t1 = ba.tempo(hslider("time1[tooltip:Echo in Beats per Minute]",30,24,360,1));
r1 = hslider("percent1", 10, 0, 100, 0.1)/100.0 : si.smooth(0.999);
t2 = ba.tempo(hslider("time2[tooltip:Echo in Beats per Minute]",60,24,360,1));
r2 = hslider("percent2", 30, 0, 100, 0.1)/100.0 : si.smooth(0.999);
t3 = ba.tempo(hslider("time3[tooltip:Echo in Beats per Minute]",120,24,360,1));
r3 = hslider("percent3", 45, 0, 100, 0.1)/100.0 : si.smooth(0.999);
t4 = ba.tempo(hslider("time4[tooltip:Echo in Beats per Minute]",150,24,360,1));
r4 = hslider("percent4", 20, 0, 100, 0.1)/100.0 : si.smooth(0.999);
t5 = ba.tempo(hslider("time5[tooltip:Echo in Beats per Minute]",240,24,360,1));
r5 = hslider("percent5", 0, 0, 100, 0.1)/100.0 : si.smooth(0.999);
vmeter1(x) = attach(x, envelop(x) : vbargraph("v1[nomidi:no]", -70, +5));
vmeter2(x) = attach(x, envelop(x) : vbargraph("v2[nomidi:no]", -70, +5));
vmeter3(x) = attach(x, envelop(x) : vbargraph("v3[nomidi:no]", -70, +5));
vmeter4(x) = attach(x, envelop(x) : vbargraph("v4[nomidi:no]", -70, +5));
vmeter5(x) = attach(x, envelop(x) : vbargraph("v5[nomidi:no]", -70, +5));
envelop = abs : max ~ (1.0/ma.SR) : rd.maxn(4096) ;
echo1(t,r) = +~(de.sdelay(int(2^18), 100*ma.SR/1000.0, t) * (r));
process = geq: ( dist5s , dist4s , dist3s, dist2s, dist1s) :>_ with {
dist1s = echo1(t1,r1) : vmeter1 ;
dist2s = echo1(t2,r2) : vmeter2;
dist3s = echo1(t3,r3) : vmeter3;
dist4s = echo1(t4,r4) : vmeter4;
dist5s = echo1(t5,r5) : vmeter5;
};
|
Subsets and Splits