_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
|
---|---|---|---|---|---|---|---|
fabe357848e0b8413b9f8e9c647f5c5654bec0fd9226c4e8779b5a21cb68be5e | trummerschlunk/faust_experiments | spectral_ballancer.dsp | declare name "spectral_balancer";
declare author "Klaus Scheuermann";
declare version "0.1";
declare copyright "(C) 2022 Klaus Scheuermann";
import("stdfaust.lib");
O = 5;
M = 2;
ftop = 12000;
B = 8;
BANDS = 4;
process(l,r) = hgroup("spectral balancer",
l,r <: _,_,_,_ : _,_,+ : _,_, envelop : _,_,vbargraph("[0]full",-60,0) : fibank_st,(_<:par(i,B*2,_)) : route1 : par(i,B,bandgain(i)) :> _,_ )
;
route1 = ro.interleave(B*2,2) : par(i,B,route(4,4,1,1,2,3,3,2,4,4) : _,_,_,!) ;
// hgroup("spectral balancer", hgroup("[2]filterbank", fibank_st : par(i,BANDS, bandgain(l,r,i)) : par(i,BANDS, stereogain(i)) :> _,_));
fibank_mono = fi.mth_octave_filterbank(O,M,ftop,B) : ro.cross(B);
fibank_st = par(i,2,fibank_mono : par(i,B,_) ) : ro.interleave(B,2);
// bandgain(l,r,i) = l,r,_,_ : _,_,(_<:_,_),(_<:_,_) : _,_,(route(4,4,1,1,2,3,3,2,4,4)) : (_,_ :> envelop : vbargraph("full %i",-60,0)),(_,_ :> envelop : vbargraph("band %i",-60,0)),_,_ : calcamp(i),_,_ : multiply3;
bandgain(i) = (_<:_,_),(_<:_,_),_ : (route(4,4,1,1,2,3,3,2,4,4)),_ : _,_,+,_ : _,_,envelop,_ : _,_,vbargraph("band %2i",-60,0),_ : _,_,calcamp(i) : multiply3;
//calcamp(i,a,b) = a-b + i -10: si.smoo : ba.db2linear : vbargraph("calc %i",1,10);
calcamp(i) = _,_ : ro.cross(2) : ba.db2linear,ba.db2linear : - : vbargraph("calc %2i",0,1) ;
multiply3(x,y,g) = x*g,y*g;
stereogain(i) = (_ * (vslider("gain %2i",0,-12,+12,0.5) :ba.db2linear)) , (_ * (vslider("gain %2i",0,-12,+12,0.5) :ba.db2linear));
// envelop = abs : max(ba.db2linear(-70)) : ba.linear2db : min(10) : max ~ -(20.0/ma.SR);
envelop = Lk;
// LUFS metering (without channel weighting)
Tg = 3; // 3 second window for 'short-term' measurement
// zi = an.ms_envelope_rect(Tg); // mean square: average power = energy/Tg = integral of squared signal / Tg
//k-filter by Julius Smith
highpass = fi.highpass(2, 40);
boostDB = 4;
boostFreqHz = 1430; // a little too high - they should give us this!
highshelf = fi.high_shelf(boostDB, boostFreqHz); // Looks very close, but 1 kHz gain has to be nailed
kfilter = highshelf : highpass;
//envelope via lp by Dario Sanphilippo
lp1p(cf, x) = fi.pole(b, x * (1 - b)) with {
b = exp(-2 * ma.PI * cf / ma.SR);
};
zi_lp(x) = lp1p(1 / Tg, x * x);
// one channel
Lk = kfilter: zi_lp : 10 * log10(max(ma.EPSILON)) : -(0.691);
// N-channel
LkN = par(i,Nch,kfilter : zi_lp) :> 10 * log10(max(ma.EPSILON)) : -(0.691);
// N-channel by Yann Orlarey
lufs_any(N) = B <: B, (B :> Lk : vbargraph("LUFS S",-60,0)) : si.bus(N-1), attach(_,_)
with {
B = si.bus(N);
};
LUFS_in_meter(x,y) = x,y <: x, attach(y, (LkN : hgroup("MASTER_ME", hgroup("[0]INPUT",vbargraph("LUFS S",-60,0))))) : _,_;
LUFS_out_meter(x,y) = x,y <: x, attach(y, (LkN : hgroup("MASTER_ME", hgroup("[9]OUTPUT",vbargraph("LUFS S",-60,0))))) : _,_;
| https://raw.githubusercontent.com/trummerschlunk/faust_experiments/875cc029a5a3874753c6d55cec9eda7288c6e90b/spectral_ballancer.dsp | faust | hgroup("spectral balancer", hgroup("[2]filterbank", fibank_st : par(i,BANDS, bandgain(l,r,i)) : par(i,BANDS, stereogain(i)) :> _,_));
bandgain(l,r,i) = l,r,_,_ : _,_,(_<:_,_),(_<:_,_) : _,_,(route(4,4,1,1,2,3,3,2,4,4)) : (_,_ :> envelop : vbargraph("full %i",-60,0)),(_,_ :> envelop : vbargraph("band %i",-60,0)),_,_ : calcamp(i),_,_ : multiply3;
calcamp(i,a,b) = a-b + i -10: si.smoo : ba.db2linear : vbargraph("calc %i",1,10);
envelop = abs : max(ba.db2linear(-70)) : ba.linear2db : min(10) : max ~ -(20.0/ma.SR);
LUFS metering (without channel weighting)
3 second window for 'short-term' measurement
zi = an.ms_envelope_rect(Tg); // mean square: average power = energy/Tg = integral of squared signal / Tg
k-filter by Julius Smith
a little too high - they should give us this!
Looks very close, but 1 kHz gain has to be nailed
envelope via lp by Dario Sanphilippo
one channel
N-channel
N-channel by Yann Orlarey | declare name "spectral_balancer";
declare author "Klaus Scheuermann";
declare version "0.1";
declare copyright "(C) 2022 Klaus Scheuermann";
import("stdfaust.lib");
O = 5;
M = 2;
ftop = 12000;
B = 8;
BANDS = 4;
process(l,r) = hgroup("spectral balancer",
l,r <: _,_,_,_ : _,_,+ : _,_, envelop : _,_,vbargraph("[0]full",-60,0) : fibank_st,(_<:par(i,B*2,_)) : route1 : par(i,B,bandgain(i)) :> _,_ )
;
route1 = ro.interleave(B*2,2) : par(i,B,route(4,4,1,1,2,3,3,2,4,4) : _,_,_,!) ;
fibank_mono = fi.mth_octave_filterbank(O,M,ftop,B) : ro.cross(B);
fibank_st = par(i,2,fibank_mono : par(i,B,_) ) : ro.interleave(B,2);
bandgain(i) = (_<:_,_),(_<:_,_),_ : (route(4,4,1,1,2,3,3,2,4,4)),_ : _,_,+,_ : _,_,envelop,_ : _,_,vbargraph("band %2i",-60,0),_ : _,_,calcamp(i) : multiply3;
calcamp(i) = _,_ : ro.cross(2) : ba.db2linear,ba.db2linear : - : vbargraph("calc %2i",0,1) ;
multiply3(x,y,g) = x*g,y*g;
stereogain(i) = (_ * (vslider("gain %2i",0,-12,+12,0.5) :ba.db2linear)) , (_ * (vslider("gain %2i",0,-12,+12,0.5) :ba.db2linear));
envelop = Lk;
highpass = fi.highpass(2, 40);
boostDB = 4;
kfilter = highshelf : highpass;
lp1p(cf, x) = fi.pole(b, x * (1 - b)) with {
b = exp(-2 * ma.PI * cf / ma.SR);
};
zi_lp(x) = lp1p(1 / Tg, x * x);
Lk = kfilter: zi_lp : 10 * log10(max(ma.EPSILON)) : -(0.691);
LkN = par(i,Nch,kfilter : zi_lp) :> 10 * log10(max(ma.EPSILON)) : -(0.691);
lufs_any(N) = B <: B, (B :> Lk : vbargraph("LUFS S",-60,0)) : si.bus(N-1), attach(_,_)
with {
B = si.bus(N);
};
LUFS_in_meter(x,y) = x,y <: x, attach(y, (LkN : hgroup("MASTER_ME", hgroup("[0]INPUT",vbargraph("LUFS S",-60,0))))) : _,_;
LUFS_out_meter(x,y) = x,y <: x, attach(y, (LkN : hgroup("MASTER_ME", hgroup("[9]OUTPUT",vbargraph("LUFS S",-60,0))))) : _,_;
|
5cfe373a9c4ddcbe10089bc39965bbc63fe0002ba5e9f7f4012cef3ea9372545 | SebastianoMurgia/programmazione | lezione1.dsp | //Qesto è un commento
//Un commento è una parte di testo
//Che viene igniorata dal compilatore
//Un compilatore è un programma che legge
//Il codice scritto per ricavarne un oggetto
import("stdfaust.lib")
process=*;
| https://raw.githubusercontent.com/SebastianoMurgia/programmazione/1b6e45f1112de87031b791a06fa3cdbe7aa7d5cc/lezione1.dsp | faust | Qesto è un commento
Un commento è una parte di testo
Che viene igniorata dal compilatore
Un compilatore è un programma che legge
Il codice scritto per ricavarne un oggetto |
import("stdfaust.lib")
process=*;
|
9ba72c6c9259715cd06428f51b5a48e537588dcb6feba5297d7f045b403a1d82 | levinericzimmermann/oT2kb | tremolo.dsp | declare name "tremolo";
declare version "1.0";
declare author "Levin Eric Zimmermann";
declare options "[midi:on][nvoices:16]";
//-----------------------------------------------
// Oscillator based synthesis
//-----------------------------------------------
import("stdfaust.lib");
f = hslider("freq",300,50,2000,0.01);
bend = ba.semi2ratio(hslider("bend[midi:pitchwheel]",0,-2,2,0.01)) : si.polySmooth(gate,0.999,1);
minimalGain = 0.1;
gain = hslider("gain", 0.5, minimalGain, 1, 0.01);
gate = button("gate");
freq = f*bend;
impulseGate = ba.impulsify(gate);
fluteEnvelope = en.adsr(1.12, 0.35, 0.2, 0.5, gate) * gain;
blower = pm.blower(0.8, 0.005, 2000);
echoGainLfo = (os.lf_triangle(0.2) * 0.5) + 1;
bandpassLfo = (os.lf_triangle(0.7) * 0.5) + 1;
blowNoiseAdjustedAdjusted = os.lf_triangle(0.3) + 1.7;
blowNoiseAdjusted = (os.lf_triangle(blowNoiseAdjustedAdjusted) * 0.05) + 0.95;
blowNoise = no.pink_noise : ((fi.bandpass(2, freq * 0.3, freq * 2.3) * 0.15) + 0.9) * blowNoiseAdjusted;
flute = pm.fluteModel(pm.f2l(freq), 0.5, blowNoise) * fluteEnvelope : fi.bandpass(2, freq * 0.9, freq * (1 + (3 * bandpassLfo)));
fluteEcho = flute : ef.echo(1.3, 0.6, 0.1) * echoGainLfo;
combinedFlute = flute + fluteEcho, 0 : select2(freq > 3800 | freq < 300);
squareGainLfoLfo = ((os.lf_triangle(0.04323) + 1) * 0.5 * 0.3) + 0.1;
squareGainLfo = (os.lf_triangle(squareGainLfoLfo) * 0.5) + 1;
squareEnvelope = en.adsr(1.85, 0.24, 0.32, 0.1, gate) * gain;
electroNoise = no.noise : fi.bandpass(4, freq * 0.5, freq * 2) * 0.4;
square = (os.square(freq) + electroNoise) * squareEnvelope * 0.095 : fi.lowpass(8, freq * 3.85) * squareGainLfo;
attackNoiseEnvelope = en.ar(0.0001, 0.1, gate) * gain * 0.07;
attackNoise = no.noise : fi.bandpass(4, 700, 10000);
startAttackEnvelope = en.ar(0.0001, 2.8, gate) * gain * 0.12;
startAttackWave = os.square(freq * 0.5);
startAttack = (startAttackWave * startAttackEnvelope) + (attackNoise * attackNoiseEnvelope);
process = combinedFlute + square + startAttack : fi.lowpass(2, freq * 4) : _ * 0.5 <: _, _;
effect = dm.greyhole_demo;
| https://raw.githubusercontent.com/levinericzimmermann/oT2kb/202685282c585def5e62791ff784196e127e910a/src/tremolo.dsp | faust | -----------------------------------------------
Oscillator based synthesis
----------------------------------------------- | declare name "tremolo";
declare version "1.0";
declare author "Levin Eric Zimmermann";
declare options "[midi:on][nvoices:16]";
import("stdfaust.lib");
f = hslider("freq",300,50,2000,0.01);
bend = ba.semi2ratio(hslider("bend[midi:pitchwheel]",0,-2,2,0.01)) : si.polySmooth(gate,0.999,1);
minimalGain = 0.1;
gain = hslider("gain", 0.5, minimalGain, 1, 0.01);
gate = button("gate");
freq = f*bend;
impulseGate = ba.impulsify(gate);
fluteEnvelope = en.adsr(1.12, 0.35, 0.2, 0.5, gate) * gain;
blower = pm.blower(0.8, 0.005, 2000);
echoGainLfo = (os.lf_triangle(0.2) * 0.5) + 1;
bandpassLfo = (os.lf_triangle(0.7) * 0.5) + 1;
blowNoiseAdjustedAdjusted = os.lf_triangle(0.3) + 1.7;
blowNoiseAdjusted = (os.lf_triangle(blowNoiseAdjustedAdjusted) * 0.05) + 0.95;
blowNoise = no.pink_noise : ((fi.bandpass(2, freq * 0.3, freq * 2.3) * 0.15) + 0.9) * blowNoiseAdjusted;
flute = pm.fluteModel(pm.f2l(freq), 0.5, blowNoise) * fluteEnvelope : fi.bandpass(2, freq * 0.9, freq * (1 + (3 * bandpassLfo)));
fluteEcho = flute : ef.echo(1.3, 0.6, 0.1) * echoGainLfo;
combinedFlute = flute + fluteEcho, 0 : select2(freq > 3800 | freq < 300);
squareGainLfoLfo = ((os.lf_triangle(0.04323) + 1) * 0.5 * 0.3) + 0.1;
squareGainLfo = (os.lf_triangle(squareGainLfoLfo) * 0.5) + 1;
squareEnvelope = en.adsr(1.85, 0.24, 0.32, 0.1, gate) * gain;
electroNoise = no.noise : fi.bandpass(4, freq * 0.5, freq * 2) * 0.4;
square = (os.square(freq) + electroNoise) * squareEnvelope * 0.095 : fi.lowpass(8, freq * 3.85) * squareGainLfo;
attackNoiseEnvelope = en.ar(0.0001, 0.1, gate) * gain * 0.07;
attackNoise = no.noise : fi.bandpass(4, 700, 10000);
startAttackEnvelope = en.ar(0.0001, 2.8, gate) * gain * 0.12;
startAttackWave = os.square(freq * 0.5);
startAttack = (startAttackWave * startAttackEnvelope) + (attackNoise * attackNoiseEnvelope);
process = combinedFlute + square + startAttack : fi.lowpass(2, freq * 4) : _ * 0.5 <: _, _;
effect = dm.greyhole_demo;
|
5b0e7bb62634ed4a6140f28825bd5cc3dd7587132ae36e766ef9cece7e39815c | Sylcantor/wam-web-components | Sweet.dsp | // Wah-wah with lfo modulation
import("stdfaust.lib");
lfo =
os.oscrs(freq) + 1.0 : *(0.5)
// os.lf_rawsaw(freq) + 1.0 : *(0.5)
with {
freq = hslider("Frequency[unit:Hz][OWL:PARAMETER_C][style:knob]", 4, 0, 12, 0.001);
};
// mono wah-wah based on crybaby
wahwah = ve.crybaby(wah) with {
lo = hslider("Low[OWL:PARAMETER_A][style:knob]",0.8,0,1,0.01);
hi = hslider("High[OWL:PARAMETER_B][style:knob]",0.8,0,1,0.01);
wah = lo*lfo + hi*(1.0-lfo);
};
fxctrl(w,Fx) = _ <: (Fx : *(w)), *(1-w) +> _;
sweepwah = fxctrl(wet, wahwah)
with {
wet = hslider("Mix[OWL:PARAMETER_D][style:knob]",0.5,0,1,0.01);
};
process = ba.bypass_fade(ma.SR/10, checkbox("bypass"), sweepwah); | https://raw.githubusercontent.com/Sylcantor/wam-web-components/c54352dae5b80bcf6d8d4c306ea22e2c91a12b08/plugins/sweetWah/Sweet.dsp | faust | Wah-wah with lfo modulation
os.lf_rawsaw(freq) + 1.0 : *(0.5)
mono wah-wah based on crybaby | import("stdfaust.lib");
lfo =
os.oscrs(freq) + 1.0 : *(0.5)
with {
freq = hslider("Frequency[unit:Hz][OWL:PARAMETER_C][style:knob]", 4, 0, 12, 0.001);
};
wahwah = ve.crybaby(wah) with {
lo = hslider("Low[OWL:PARAMETER_A][style:knob]",0.8,0,1,0.01);
hi = hslider("High[OWL:PARAMETER_B][style:knob]",0.8,0,1,0.01);
wah = lo*lfo + hi*(1.0-lfo);
};
fxctrl(w,Fx) = _ <: (Fx : *(w)), *(1-w) +> _;
sweepwah = fxctrl(wet, wahwah)
with {
wet = hslider("Mix[OWL:PARAMETER_D][style:knob]",0.5,0,1,0.01);
};
process = ba.bypass_fade(ma.SR/10, checkbox("bypass"), sweepwah); |
c61fd5f550603c9abf20493bc83bba697384d28e1b1b6fe7a4a286a92d27b93e | JoeWrightMusic/QuickNDirtyFaustSynths | SelfBlockingEnv.dsp | import("stdfaust.lib");
//SELF BLOCKING ENVELOPE USING RECURSION
//once triggered, envelope won't retrigger until done
but = button("trig");
env = (1,_>0:- : _*but:en.ar(0,3)) ~ _;
process = env; | https://raw.githubusercontent.com/JoeWrightMusic/QuickNDirtyFaustSynths/995047809aaaa0083340cdbcb727ceae0fc01a88/Basic/SelfBlockingEnv.dsp | faust | SELF BLOCKING ENVELOPE USING RECURSION
once triggered, envelope won't retrigger until done | import("stdfaust.lib");
but = button("trig");
env = (1,_>0:- : _*but:en.ar(0,3)) ~ _;
process = env; |
d4796a1b453fa9941e0a921bdd039fc956c24174867ccd23d33bf45c0730d60d | ljwall/faust2er301 | reverb.dsp | import("stdfaust.lib");
// Dattorro reverb with difusion parameters as per https://ccrma.stanford.edu/~dattorro/EffectDesignPart1.pdf
reverb(band_width, decay, damping) = re.dattorro_rev(0, band_width, 0.75, 0.625, decay, 0.7, 0.5, damping);
// Contols
//pre_delay_ctrl = hslider("Pre-delay", 30, 0, 200, 0.1);
band_width_ctrl = hslider("Band Width", 0.6, 0, 1, 0.001);
decay_ctrl = hslider("Decay", 0.8, 0, 1, 0.001);
damping_ctr = hslider("Damping", 0.25, 0, 1, 0.001);
dry_wet_ctr = hslider("Dry/Wet", 0.25, 0, 1, 0.001);
dry_wet_mix(mix, dry_l, dry_r, wet_l, wet_r) = (1-mix) * dry_l, (1-mix) * dry_r, mix * wet_l, mix * wet_r :> _,_;
process = _,_ <: _,_,reverb(band_width_ctrl, decay_ctrl, damping_ctr): dry_wet_mix(dry_wet_ctr);
| https://raw.githubusercontent.com/ljwall/faust2er301/4c643c6c9ceeb932c591d935b98442535738da06/example/reverb.dsp | faust | Dattorro reverb with difusion parameters as per https://ccrma.stanford.edu/~dattorro/EffectDesignPart1.pdf
Contols
pre_delay_ctrl = hslider("Pre-delay", 30, 0, 200, 0.1); | import("stdfaust.lib");
reverb(band_width, decay, damping) = re.dattorro_rev(0, band_width, 0.75, 0.625, decay, 0.7, 0.5, damping);
band_width_ctrl = hslider("Band Width", 0.6, 0, 1, 0.001);
decay_ctrl = hslider("Decay", 0.8, 0, 1, 0.001);
damping_ctr = hslider("Damping", 0.25, 0, 1, 0.001);
dry_wet_ctr = hslider("Dry/Wet", 0.25, 0, 1, 0.001);
dry_wet_mix(mix, dry_l, dry_r, wet_l, wet_r) = (1-mix) * dry_l, (1-mix) * dry_r, mix * wet_l, mix * wet_r :> _,_;
process = _,_ <: _,_,reverb(band_width_ctrl, decay_ctrl, damping_ctr): dry_wet_mix(dry_wet_ctr);
|
cf5f895a5868f0b94e317152ad7456c18df9d98d9c0451792fa7b199281f71d0 | jspatcher/package-dsp | rect.dsp | declare defaultInputs "[0, 0.5]";
import("stdfaust.lib");
process = os.pulsetrain;
| https://raw.githubusercontent.com/jspatcher/package-dsp/1889108d74c2ff71bf42ccc237d966de355facc6/src/dsps/rect.dsp | faust | declare defaultInputs "[0, 0.5]";
import("stdfaust.lib");
process = os.pulsetrain;
|
|
a5f36bf430b29e6052119587b6a430fbac58bce24fb82c8fdb888673dd31b61e | cchafe/wfs | ccNylon.dsp | declare name "ccNylon";
declare description "nylon guitar with adjustable hf damp and T60";
declare license "MIT";
declare copyright "(c)Romain Michon, CCRMA (Stanford University), GRAME";
import("stdfaust.lib");
ccNuts(hf, t60) = pm.lTermination(-tmp,pm.basicBlock)
with{
tmp = pm.bridgeFilter(hf,t60) : fi.dcblocker;
};
ccBridge(hf, t60) = pm.rTermination(pm.basicBlock,-tmp) : _,transmittance,_
with{
tmp = pm.bridgeFilter(hf,t60); // can't compile "-pm..."
transmittance = _;
};
ccNylon(length,pluckPosition, hf, t60, excitation) = pm.endChain(egChain)
with{
maxStringLength = maxLength; // meters
lengthTuning = 0.11;
stringL = length-lengthTuning;
egChain = pm.chain(ccNuts(hf, t60) : pm.nylonString(stringL,pluckPosition,excitation) :
ccBridge(hf, t60) : pm.guitarBody : pm.out);
};
ks = ccNylon( (freq : pm.f2l), pos, hf, t60)
with{
freq = hslider("freq",440,50,1000,0.01);
pos = hslider("pos",0.9,0,1,0.01);
hf = hslider("hf",0.4,0,1,0.01);
t60 = hslider("t60",0.5,0,20,0.01);
};
process = _ : ks;
/*
Impulse imp => ccNylonPulse ks => dac;
0.0 => float pos;
while (true)
{
imp.next(1.0);
1::second => now;
ks.pos(pos);
0.1+=>pos;
1.0%=>pos;
}
*/
| https://raw.githubusercontent.com/cchafe/wfs/d5c8b3a502d8f6f83adb351905dc996563fd53cb/dsp/ccNylon.dsp | faust | can't compile "-pm..."
meters
Impulse imp => ccNylonPulse ks => dac;
0.0 => float pos;
while (true)
{
imp.next(1.0);
1::second => now;
ks.pos(pos);
0.1+=>pos;
1.0%=>pos;
}
| declare name "ccNylon";
declare description "nylon guitar with adjustable hf damp and T60";
declare license "MIT";
declare copyright "(c)Romain Michon, CCRMA (Stanford University), GRAME";
import("stdfaust.lib");
ccNuts(hf, t60) = pm.lTermination(-tmp,pm.basicBlock)
with{
tmp = pm.bridgeFilter(hf,t60) : fi.dcblocker;
};
ccBridge(hf, t60) = pm.rTermination(pm.basicBlock,-tmp) : _,transmittance,_
with{
transmittance = _;
};
ccNylon(length,pluckPosition, hf, t60, excitation) = pm.endChain(egChain)
with{
lengthTuning = 0.11;
stringL = length-lengthTuning;
egChain = pm.chain(ccNuts(hf, t60) : pm.nylonString(stringL,pluckPosition,excitation) :
ccBridge(hf, t60) : pm.guitarBody : pm.out);
};
ks = ccNylon( (freq : pm.f2l), pos, hf, t60)
with{
freq = hslider("freq",440,50,1000,0.01);
pos = hslider("pos",0.9,0,1,0.01);
hf = hslider("hf",0.4,0,1,0.01);
t60 = hslider("t60",0.5,0,20,0.01);
};
process = _ : ks;
|
1653e19675748cc1e0df54bb6a83f078be68f5e255cd6581d040c797b0bad4e1 | cchafe/wfs | ccNylonDCbug.dsp | declare name "ccNylon";
declare description "nylon guitar with adjustable hf damp and T60";
declare license "MIT";
declare copyright "(c)Romain Michon, CCRMA (Stanford University), GRAME";
import("stdfaust.lib");
ccNuts(hf, t60) = pm.lTermination(-tmp,pm.basicBlock)
with{
tmp = pm.bridgeFilter(hf,t60); // can't compile "-pm..."
};
ccBridge(hf, t60) = pm.rTermination(pm.basicBlock,-tmp) : _,transmittance,_
with{
tmp = pm.bridgeFilter(hf,t60); // can't compile "-pm..."
transmittance = _;
};
ccNylon(length,pluckPosition, hf, t60, excitation) = pm.endChain(egChain)
with{
maxStringLength = maxLength; // meters
lengthTuning = 0.11;
stringL = length-lengthTuning;
egChain = pm.chain(ccNuts(hf, t60) : pm.nylonString(stringL,pluckPosition,excitation) :
ccBridge(hf, t60) : pm.guitarBody : pm.out);
};
ks = ccNylon( (freq : pm.f2l), pos, hf, t60)
with{
freq = hslider("freq",440,50,1000,0.01);
pos = hslider("pos",0.9,0,1,0.01);
hf = hslider("hf",0.4,0,1,0.01);
t60 = hslider("t60",0.5,0,20,0.01);
};
process = _ : ks <: _,_;
/*
Impulse imp => ccNylonPulse ks => dac;
0.0 => float pos;
while (true)
{
imp.next(1.0);
1::second => now;
ks.pos(pos);
0.1+=>pos;
1.0%=>pos;
}
*/
| https://raw.githubusercontent.com/cchafe/wfs/d5c8b3a502d8f6f83adb351905dc996563fd53cb/dsp/ccNylonDCbug.dsp | faust | can't compile "-pm..."
can't compile "-pm..."
meters
Impulse imp => ccNylonPulse ks => dac;
0.0 => float pos;
while (true)
{
imp.next(1.0);
1::second => now;
ks.pos(pos);
0.1+=>pos;
1.0%=>pos;
}
| declare name "ccNylon";
declare description "nylon guitar with adjustable hf damp and T60";
declare license "MIT";
declare copyright "(c)Romain Michon, CCRMA (Stanford University), GRAME";
import("stdfaust.lib");
ccNuts(hf, t60) = pm.lTermination(-tmp,pm.basicBlock)
with{
};
ccBridge(hf, t60) = pm.rTermination(pm.basicBlock,-tmp) : _,transmittance,_
with{
transmittance = _;
};
ccNylon(length,pluckPosition, hf, t60, excitation) = pm.endChain(egChain)
with{
lengthTuning = 0.11;
stringL = length-lengthTuning;
egChain = pm.chain(ccNuts(hf, t60) : pm.nylonString(stringL,pluckPosition,excitation) :
ccBridge(hf, t60) : pm.guitarBody : pm.out);
};
ks = ccNylon( (freq : pm.f2l), pos, hf, t60)
with{
freq = hslider("freq",440,50,1000,0.01);
pos = hslider("pos",0.9,0,1,0.01);
hf = hslider("hf",0.4,0,1,0.01);
t60 = hslider("t60",0.5,0,20,0.01);
};
process = _ : ks <: _,_;
|
f5939169e5cf93436581e60e416697da4518e7d9d01675ab28f3947c02d497d8 | jspatcher/package-dsp | log.dsp | declare argsOffset "1";
import("stdfaust.lib");
l(a, b) = log(a) / log((b == 0) * ma.E + (b != 0) * b);
process = l;
| https://raw.githubusercontent.com/jspatcher/package-dsp/1889108d74c2ff71bf42ccc237d966de355facc6/src/dsps/log.dsp | faust | declare argsOffset "1";
import("stdfaust.lib");
l(a, b) = log(a) / log((b == 0) * ma.E + (b != 0) * b);
process = l;
|
|
a0bb273ef083c8f0ebfbb3f245f18fd2e3e415b52dbbce66bc62221f91ec0d49 | mrkev/pamba | dattorro.dsp | declare name "dattorro";
declare version "0.1";
declare author "Jakob Zerbian";
declare description "Dattorro demo application.";
import("stdfaust.lib");
process = dm.dattorro_rev_demo;
| https://raw.githubusercontent.com/mrkev/pamba/5acc69f09e170b14a3def8d6962feb754badce28/src/dsp/dattorro.dsp | faust | declare name "dattorro";
declare version "0.1";
declare author "Jakob Zerbian";
declare description "Dattorro demo application.";
import("stdfaust.lib");
process = dm.dattorro_rev_demo;
|
|
478cca75b3797d6f6f3b70df172232cff6ac41a183cc30f19c56af7c4eac1ea3 | JaoRamos/Faust | 12_MedidorNumerico.dsp | /*
Medidor numerico (interfaz grafica)
Ademas de vumetro o led, podemos simplemente mostrar el numero con [style:numerical].
[Se aplican todas las mismas ideas y advertencias que antes]
Poner un audio en la entrada!
|| Juan Ramos 2020 - Universidad Nacional de Quilmes ||
|| [email protected] ||
*/
import("stdfaust.lib");
mostrarNumero = abs : ba.linear2db : vbargraph("Nivel[style:numerical]", -60, 0);
process = _ <: attach(_, mostrarNumero); | https://raw.githubusercontent.com/JaoRamos/Faust/c8895c672104b10729ddc06b42e2169a2943d839/unq/Clase%209/12_MedidorNumerico.dsp | faust |
Medidor numerico (interfaz grafica)
Ademas de vumetro o led, podemos simplemente mostrar el numero con [style:numerical].
[Se aplican todas las mismas ideas y advertencias que antes]
Poner un audio en la entrada!
|| Juan Ramos 2020 - Universidad Nacional de Quilmes ||
|| [email protected] ||
|
import("stdfaust.lib");
mostrarNumero = abs : ba.linear2db : vbargraph("Nivel[style:numerical]", -60, 0);
process = _ <: attach(_, mostrarNumero); |
15bf57abc8cba2f65cc2221d1d9f551164e0acf3869344e328065816ebe571e4 | jujudusud/BPD | bddi-p5.dsp | // generated automatically
// DO NOT MODIFY!
declare id "bddi-p5";
declare name "BDDI part 5";
declare category "External";
import("stdfaust.lib");
process = pre : fi.fir((b0/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 = _;
PR20v = vslider("PR20v[name:PR20v]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
b0 = 0;
a0 = 1.00000000000000;
};
| https://raw.githubusercontent.com/jujudusud/BPD/f6f931ae528147d59bcf3d4e0a59586338671a58/bddi-dsp/bddi-p5.dsp | faust | generated automatically
DO NOT MODIFY! | declare id "bddi-p5";
declare name "BDDI part 5";
declare category "External";
import("stdfaust.lib");
process = pre : fi.fir((b0/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 = _;
PR20v = vslider("PR20v[name:PR20v]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
b0 = 0;
a0 = 1.00000000000000;
};
|
2892ba2107360923e5be46e55c56188166f2b38499cc335feb77dd50d84b303f | webaudiomodules/wam-examples | PingPongDelayFaust.dsp | import("stdfaust.lib");
Main(Rec_14_0, In_1_0, In_28_0) = Rec_14, Out_16, Out_17 with {
Mul_29_0 = *(In_28_0, Max_26_0);
Mul_20_0 = *(de_delay_13_0, Max_25_0);
Sub_23_0 = -(1, HSlider_18_0);
Mul_22_0 = *(Sub_23_0, 2);
Min_27_0 = min(Mul_22_0, 1);
Max_26_0 = max(Min_27_0, 0);
Mul_30_0 = *(In_1_0, Max_26_0);
HSlider_18_0 = hslider("mix[style:knob]", 0.5, 0, 1, 0.01);
Mul_21_0 = *(HSlider_18_0, 2);
Min_24_0 = min(Mul_21_0, 1);
Max_25_0 = max(Min_24_0, 0);
HSlider_4_0 = hslider("feedback[style:knob]", 0.5, 0, 1, 0.01);
de_delay_13_0 = de.delay(ma_SR_7_0, Mul_8_0, de_delay_10_0);
Mul_5_0 = *((In_1_0, Rec_14_0, In_28_0 :> _), HSlider_4_0);
HSlider_9_0 = hslider("time[style:knob]", 0.5, 0.1, 1, 0.01);
Mul_8_0 = *(ma_SR_7_0, HSlider_9_0);
ma_SR_7_0 = ma.SR;
de_delay_10_0 = de.delay(ma_SR_7_0, Mul_8_0, Mul_5_0);
Mul_19_0 = *(de_delay_10_0, Max_25_0);
Rec_14 = de_delay_13_0;
Out_16 = (Mul_19_0, Mul_30_0 :> _);
Out_17 = (Mul_20_0, Mul_29_0 :> _);
};
Rec = _ : _;
pingpongDelay = Main ~ Rec : !, _, _;
process = ba.bypass_fade(ma.SR/10, checkbox("bypass"), pingpongDelay); | https://raw.githubusercontent.com/webaudiomodules/wam-examples/ebf5ed23d7543411901b24f12c48164fac9e78bf/packages/faustPingPongDelay/plugin/PingPongDelayFaust.dsp | faust | import("stdfaust.lib");
Main(Rec_14_0, In_1_0, In_28_0) = Rec_14, Out_16, Out_17 with {
Mul_29_0 = *(In_28_0, Max_26_0);
Mul_20_0 = *(de_delay_13_0, Max_25_0);
Sub_23_0 = -(1, HSlider_18_0);
Mul_22_0 = *(Sub_23_0, 2);
Min_27_0 = min(Mul_22_0, 1);
Max_26_0 = max(Min_27_0, 0);
Mul_30_0 = *(In_1_0, Max_26_0);
HSlider_18_0 = hslider("mix[style:knob]", 0.5, 0, 1, 0.01);
Mul_21_0 = *(HSlider_18_0, 2);
Min_24_0 = min(Mul_21_0, 1);
Max_25_0 = max(Min_24_0, 0);
HSlider_4_0 = hslider("feedback[style:knob]", 0.5, 0, 1, 0.01);
de_delay_13_0 = de.delay(ma_SR_7_0, Mul_8_0, de_delay_10_0);
Mul_5_0 = *((In_1_0, Rec_14_0, In_28_0 :> _), HSlider_4_0);
HSlider_9_0 = hslider("time[style:knob]", 0.5, 0.1, 1, 0.01);
Mul_8_0 = *(ma_SR_7_0, HSlider_9_0);
ma_SR_7_0 = ma.SR;
de_delay_10_0 = de.delay(ma_SR_7_0, Mul_8_0, Mul_5_0);
Mul_19_0 = *(de_delay_10_0, Max_25_0);
Rec_14 = de_delay_13_0;
Out_16 = (Mul_19_0, Mul_30_0 :> _);
Out_17 = (Mul_20_0, Mul_29_0 :> _);
};
Rec = _ : _;
pingpongDelay = Main ~ Rec : !, _, _;
process = ba.bypass_fade(ma.SR/10, checkbox("bypass"), pingpongDelay); |
|
7939c3e2770ec0ead78319ba12f9012856b6a11c0a872a960d3a814107e678b2 | theGuen/unbeatable-zig | multifx1.dsp | //-------------------------------------------------------------
// Multieffect based on various examples
//
// echodelay
// resonant lowpass
// flanger_stereo
// compressor (limiter)
//-------------------------------------------------------------
import("stdfaust.lib");
echo(d,f) = +~de.delay(44100,del)*f
with {
del = d*ma.SR;
};
sw1=nentry("s1",1,0,1,1);
delay = nentry("delay",0.25,0,1,0.01) : si.smoo;
feedback = nentry("feedback",0.5,0,1,0.01) : si.smoo;
sw2=nentry("sw2",1,0,1,1);
Q = nentry("Q",1,1,1000,1) : si.smoo;
fc = nentry("frequency",20000,100,20000,100) : si.smoo;
sw3=nentry("sw3",1,0,1,1);
fl_del = nentry("fl_delay",10,0,1024,10) : si.smoo;
fl_depth = nentry("fl_depth",0,0,1,0.01) : si.smoo;
fl_fb = nentry("fl_fb",0.5,0,1,0.01) : si.smoo;
sw4=nentry("sw4",1,0,1,1);
process =
ba.bypass2(sw1,par(i,2,echo(delay,feedback))):
ba.bypass2(sw2,par(i,2,fi.resonlp(fc,Q,1))):
ba.bypass2(sw3,pf.flanger_stereo(1024,fl_del,fl_del,fl_depth,fl_fb,0)):
ba.bypass2(sw4,co.compressor_stereo(4,-6,0.0008,0.5)); | https://raw.githubusercontent.com/theGuen/unbeatable-zig/b87f3a9105dabcd8ba1e1aef8f55798da36aa024/multifx/multifx1.dsp | faust | -------------------------------------------------------------
Multieffect based on various examples
echodelay
resonant lowpass
flanger_stereo
compressor (limiter)
------------------------------------------------------------- | import("stdfaust.lib");
echo(d,f) = +~de.delay(44100,del)*f
with {
del = d*ma.SR;
};
sw1=nentry("s1",1,0,1,1);
delay = nentry("delay",0.25,0,1,0.01) : si.smoo;
feedback = nentry("feedback",0.5,0,1,0.01) : si.smoo;
sw2=nentry("sw2",1,0,1,1);
Q = nentry("Q",1,1,1000,1) : si.smoo;
fc = nentry("frequency",20000,100,20000,100) : si.smoo;
sw3=nentry("sw3",1,0,1,1);
fl_del = nentry("fl_delay",10,0,1024,10) : si.smoo;
fl_depth = nentry("fl_depth",0,0,1,0.01) : si.smoo;
fl_fb = nentry("fl_fb",0.5,0,1,0.01) : si.smoo;
sw4=nentry("sw4",1,0,1,1);
process =
ba.bypass2(sw1,par(i,2,echo(delay,feedback))):
ba.bypass2(sw2,par(i,2,fi.resonlp(fc,Q,1))):
ba.bypass2(sw3,pf.flanger_stereo(1024,fl_del,fl_del,fl_depth,fl_fb,0)):
ba.bypass2(sw4,co.compressor_stereo(4,-6,0.0008,0.5)); |
c703599475e0664edd462aa42a4de272bc7638572be18492d6f81837d6504be6 | HexHive/datAFLow | organ.dsp | // Simple Organ
declare nvoices "8";
import("stdfaust.lib");
// Midi interface
midigate = button("gate"); // MIDI keyon-keyoff
midifreq = hslider("freq[unit:Hz]", 440, 20, 5000, 1); // MIDI keyon key
midigain = hslider("gain", 0.5, 0, 10, 0.01); // MIDI keyon velocity
process = voice(midigate, midigain, midifreq) * hslider("volume", 0.5, 0, 1, 0.01);
// Implementation
phasor(f) = f/ma.SR : (+,1.0:fmod) ~ _;
osc(f) = phasor(f) * 2 * ma.PI : sin;
timbre(freq) = osc(freq) + 0.5 * osc(2.0*freq) + 0.25 * osc(3.0*freq);
envelop(gate, gain) = gate * gain : smooth(0.9995)
with { smooth(c) = *(1-c) : + ~ *(c); };
voice(gate, gain, freq) = envelop(gate, gain) * timbre(freq);
| https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/organ.dsp | faust | Simple Organ
Midi interface
MIDI keyon-keyoff
MIDI keyon key
MIDI keyon velocity
Implementation | declare nvoices "8";
import("stdfaust.lib");
process = voice(midigate, midigain, midifreq) * hslider("volume", 0.5, 0, 1, 0.01);
phasor(f) = f/ma.SR : (+,1.0:fmod) ~ _;
osc(f) = phasor(f) * 2 * ma.PI : sin;
timbre(freq) = osc(freq) + 0.5 * osc(2.0*freq) + 0.25 * osc(3.0*freq);
envelop(gate, gain) = gate * gain : smooth(0.9995)
with { smooth(c) = *(1-c) : + ~ *(c); };
voice(gate, gain, freq) = envelop(gate, gain) * timbre(freq);
|
6e4ca77bb3872a0100854b598cf956d539d679e9929410ffc52c6462cb10d787 | johannphilippe/grame_cnsmd_2023 | static_table.dsp | import("stdfaust.lib");
freq_table = waveform{100, 120, 430, 567, 926.3};
size = freq_table : _,!;
freq(n) = freq_table, n+1 : rdtable;
amp = hslider("amplitude", 0.1, 0, 1, 0.01) : si.smoo;
process = sum(n, size, os.osc(freq(n))/size) * amp;
| https://raw.githubusercontent.com/johannphilippe/grame_cnsmd_2023/ccfd6e9a5c1537097546520317c8c5beea06006f/additive/static_table.dsp | faust | import("stdfaust.lib");
freq_table = waveform{100, 120, 430, 567, 926.3};
size = freq_table : _,!;
freq(n) = freq_table, n+1 : rdtable;
amp = hslider("amplitude", 0.1, 0, 1, 0.01) : si.smoo;
process = sum(n, size, os.osc(freq(n))/size) * amp;
|
|
ac28a5647c11a4a7a5ce25826bffdb65554112ad24e970e45777d4d6116b379d | micbuffa/WebAudioPlugins | zitaRev.dsp | declare name "zitaRev";
declare version "0.0";
declare author "JOS, Revised by RM";
declare description "Example GUI for zita_rev1_stereo (mostly following the Linux zita-rev1 GUI).";
import("stdfaust.lib");
import("bypass.lib");
// Bypass 'brutal'
//process = bypass_fx(checkbox("bypass"), dm.zita_rev1);
// Bypass avec un fade exprimé en 'samples', ici 1/10 de sec (calculé avec la SR utilisée)
process = bypass_fx_fade(checkbox("bypass"), ma.SR/10, dm.zita_rev1);
| https://raw.githubusercontent.com/micbuffa/WebAudioPlugins/2fab2ee55d131aa5de753dc2dd3b3723fbd5b274/examples/plugins/Faust/ZitaRevV3/Original%20Faust%20Code/zitaRev.dsp | faust | Bypass 'brutal'
process = bypass_fx(checkbox("bypass"), dm.zita_rev1);
Bypass avec un fade exprimé en 'samples', ici 1/10 de sec (calculé avec la SR utilisée) | declare name "zitaRev";
declare version "0.0";
declare author "JOS, Revised by RM";
declare description "Example GUI for zita_rev1_stereo (mostly following the Linux zita-rev1 GUI).";
import("stdfaust.lib");
import("bypass.lib");
process = bypass_fx_fade(checkbox("bypass"), ma.SR/10, dm.zita_rev1);
|
919da656fc0ff8f243885ec46fd6efc35f57774431b5aac647127b8f213c484a | pingdynasty/OwlPatches | SmoothDelay.dsp | declare name "SmoothDelay";
declare author "Yann Orlarey";
declare copyright "Grame";
declare version "1.0";
declare license "STK-4.3";
//--------------------------process----------------------------
//
// A stereo smooth delay with a feedback control
//
// This example shows how to use sdelay, a delay that doesn't
// click and doesn't transpose when the delay time is changed
//-------------------------------------------------------------
import("stdfaust.lib");
smoothdelay = (+ :de.sdelay(N, interp, dtime)) ~ *(fback)
with
{
s = 0.999; // smoothing parameter (one-fi.pole fi.pole location)
N = int(2^17);
dtime = hslider("Delay[unit:ms][style:knob][OWL:PARAMETER_A]", 1, 0.0001, 500, 0.1)*ma.SR/1000.0 : si.smooth(s);
fback = hslider("Feedback[style:knob][OWL:PARAMETER_B]",0,0,100,0.1)/100.0;
interp = hslider("Interpolation[unit:ms][style:knob][OWL:PARAMETER_C]",10,1,100,0.1)*ma.SR/1000.0;
};
dry = 1 - hslider("Dry/Wet[style:knob][OWL:PARAMETER_D]", 0.3333, 0, 1, 0.025);
wet = 1 - dry + hslider("Super Wet[style:knob][OWL:PARAMETER_E]", 0.0, 0, 0.5, 0.025);
process = _<:*(dry),(*(wet) : smoothdelay ) :>_;
| https://raw.githubusercontent.com/pingdynasty/OwlPatches/2be8a65bb257b53ee7ee0b9d4b5a1ad249e16dab/Faust/SmoothDelay.dsp | faust | --------------------------process----------------------------
A stereo smooth delay with a feedback control
This example shows how to use sdelay, a delay that doesn't
click and doesn't transpose when the delay time is changed
-------------------------------------------------------------
smoothing parameter (one-fi.pole fi.pole location) | declare name "SmoothDelay";
declare author "Yann Orlarey";
declare copyright "Grame";
declare version "1.0";
declare license "STK-4.3";
import("stdfaust.lib");
smoothdelay = (+ :de.sdelay(N, interp, dtime)) ~ *(fback)
with
{
N = int(2^17);
dtime = hslider("Delay[unit:ms][style:knob][OWL:PARAMETER_A]", 1, 0.0001, 500, 0.1)*ma.SR/1000.0 : si.smooth(s);
fback = hslider("Feedback[style:knob][OWL:PARAMETER_B]",0,0,100,0.1)/100.0;
interp = hslider("Interpolation[unit:ms][style:knob][OWL:PARAMETER_C]",10,1,100,0.1)*ma.SR/1000.0;
};
dry = 1 - hslider("Dry/Wet[style:knob][OWL:PARAMETER_D]", 0.3333, 0, 1, 0.025);
wet = 1 - dry + hslider("Super Wet[style:knob][OWL:PARAMETER_E]", 0.0, 0, 0.5, 0.025);
process = _<:*(dry),(*(wet) : smoothdelay ) :>_;
|
11879bc14fb7cdc3db912e6204c1ac8478e03f8ad72855863fc0afd42994b9e3 | Bencosterton/Midas-Outboard-Faust | 512.dsp | import("stdfaust.lib");
// filter permamitors
filter(Q,F,G) = fi.TF2( (1 + K/Q + K*K) / D,
2 * (K*K - 1) / D,
(1 - K/Q + K*K) / D,
2 * (K*K - 1) / D,
(1 - V*K/Q + K*K) / D
)
with {
V = ba.db2linear(G);
K = tan(ma.PI*F/ma.SR);
D = 1 + V*K/Q + K*K;
};
// freq bands
treble(F) = filter( nentry("width[style:knob]",0.6,0.1,2,0.1),
nentry("freq[unit:Hz][style:knob]", F, 1000, 20000, 100),
0 - nentry("gain[unit:dB] [style:knob]", 0, -50, 50, 0.1)
);
himid(F) = filter( nentry("width[style:knob]",0.6,0.1,2,0.1),
nentry("freq[unit:Hz][style:knob]", F, 400, 8000, 100),
0 - nentry("gain[unit:dB] [style:knob]", 0, -50, 50, 0.1)
);
lomid(F) = filter( nentry("width[style:knob]",0.6,0.1,2,0.1),
nentry("freq[unit:Hz][style:knob]", F, 100, 2000, 100),
0 - nentry("gain[unit:dB] [style:knob]", 0, -50, 50, 0.1)
);
bass(F) = filter( nentry("width[style:knob]",0.6,0.1,2,0.1),
nentry("freq[unit:Hz][style:knob]", F, 20, 400, 5),
0 - nentry("gain[unit:dB] [style:knob]", 0, -50, 50, 0.1)
);
mute = *(0-checkbox("IN"));
process = mute : hgroup("hi mid", himid(700)) : hgroup("treble", treble(2000)) : hgroup("lo mid", lomid(200)) : hgroup("bass", bass(35));
| https://raw.githubusercontent.com/Bencosterton/Midas-Outboard-Faust/bf4390db48fad8cfefdfa41080d1e6ed7e55429b/512.dsp | faust | filter permamitors
freq bands | import("stdfaust.lib");
filter(Q,F,G) = fi.TF2( (1 + K/Q + K*K) / D,
2 * (K*K - 1) / D,
(1 - K/Q + K*K) / D,
2 * (K*K - 1) / D,
(1 - V*K/Q + K*K) / D
)
with {
V = ba.db2linear(G);
K = tan(ma.PI*F/ma.SR);
D = 1 + V*K/Q + K*K;
};
treble(F) = filter( nentry("width[style:knob]",0.6,0.1,2,0.1),
nentry("freq[unit:Hz][style:knob]", F, 1000, 20000, 100),
0 - nentry("gain[unit:dB] [style:knob]", 0, -50, 50, 0.1)
);
himid(F) = filter( nentry("width[style:knob]",0.6,0.1,2,0.1),
nentry("freq[unit:Hz][style:knob]", F, 400, 8000, 100),
0 - nentry("gain[unit:dB] [style:knob]", 0, -50, 50, 0.1)
);
lomid(F) = filter( nentry("width[style:knob]",0.6,0.1,2,0.1),
nentry("freq[unit:Hz][style:knob]", F, 100, 2000, 100),
0 - nentry("gain[unit:dB] [style:knob]", 0, -50, 50, 0.1)
);
bass(F) = filter( nentry("width[style:knob]",0.6,0.1,2,0.1),
nentry("freq[unit:Hz][style:knob]", F, 20, 400, 5),
0 - nentry("gain[unit:dB] [style:knob]", 0, -50, 50, 0.1)
);
mute = *(0-checkbox("IN"));
process = mute : hgroup("hi mid", himid(700)) : hgroup("treble", treble(2000)) : hgroup("lo mid", lomid(200)) : hgroup("bass", bass(35));
|
dccce3329d84bbe79d85257d1af14bd5033097c1d8cddc0d6af915bc2938a1d0 | hiroaki0923/Faust-Samples | 4op-fm.dsp |
//-----------------------------------------------------
// Simple 4-operator FM synthesizer
//-----------------------------------------------------
declare nvoices "16";
import("stdfaust.lib");
//operator function
operator(freq, index, adsr, amp, phase) = os.oscp(freq * index, phase*ma.PI) * amp * adsr;
// UI elements
freq = hslider("/[2]freq",200,40,2000,0.01);
gain = hslider("/[3]gain",0.5,0,1,0.01);
gate = button("/[1]gate");
feedback = hslider("/[4]op1 feedback", 0, 0, 7, 1);
algorithm = hslider("/[5]algorithm",0,0,7,1);
eg(g) = vgroup("[9]EG", en.adsr(a, d, s, r, g))
with {
a = hslider("[1]attack", 0.1, 0, 10, 0.01);
d = hslider("[2]decay", 0.1, 0, 10, 0.01);
s = hslider("[3]sustain", 0.9, 0, 1, 0.01);
r = hslider("[4]release", 0.5, 0, 10, 0.01);
};
operator_control(ch, phase) = hgroup("[9]Operator #%ch", operator(freq, _index, _eg, _amp, phase))
with {
_eg = eg(gate);
_index = vslider("[1]freq index",1,1,10,1);
_amp = vslider("[0]amp", 0.5,0,1,0.01);
};
//0, PI/16, PI/8, PI/4, PI/2, PI, PI x 2, PI x 4
feedbacktable = waveform{0,0.1963495,0.392699,0.785398,1.570796,3.141592,6.2831,12.566};
fbvalue = feedbacktable,int(feedback):rdtable;
op1 = operator_control(1) ~ * (fbvalue);
op2 = operator_control(2);
op3 = operator_control(3);
op4 = operator_control(4);
alg(0) = op1:op2:op3:op4;
alg(1) = op1,op2:>op3:op4;
alg(2) = op1,(op2:op3):>op4;
alg(3) = (op1:op2),op3:>op4;
alg(4) = (op1:op2),(op3:op4):>_;
alg(5) = op1<:op2,op3,op4:>_;
alg(6) = (op1:op2),op3,op4:>_;
alg(7) = op1,op2,op3,op4:>_;
synths = par(i,8,select2(algorithm == i,0,alg(i))):>_;
process = tgroup("[6]Operator control", synths)*gain;
| https://raw.githubusercontent.com/hiroaki0923/Faust-Samples/db68e95cb855398164f354e870daf5abef4d9ad1/samples/4op-fm.dsp | faust | -----------------------------------------------------
Simple 4-operator FM synthesizer
-----------------------------------------------------
operator function
UI elements
0, PI/16, PI/8, PI/4, PI/2, PI, PI x 2, PI x 4 |
declare nvoices "16";
import("stdfaust.lib");
operator(freq, index, adsr, amp, phase) = os.oscp(freq * index, phase*ma.PI) * amp * adsr;
freq = hslider("/[2]freq",200,40,2000,0.01);
gain = hslider("/[3]gain",0.5,0,1,0.01);
gate = button("/[1]gate");
feedback = hslider("/[4]op1 feedback", 0, 0, 7, 1);
algorithm = hslider("/[5]algorithm",0,0,7,1);
eg(g) = vgroup("[9]EG", en.adsr(a, d, s, r, g))
with {
a = hslider("[1]attack", 0.1, 0, 10, 0.01);
d = hslider("[2]decay", 0.1, 0, 10, 0.01);
s = hslider("[3]sustain", 0.9, 0, 1, 0.01);
r = hslider("[4]release", 0.5, 0, 10, 0.01);
};
operator_control(ch, phase) = hgroup("[9]Operator #%ch", operator(freq, _index, _eg, _amp, phase))
with {
_eg = eg(gate);
_index = vslider("[1]freq index",1,1,10,1);
_amp = vslider("[0]amp", 0.5,0,1,0.01);
};
feedbacktable = waveform{0,0.1963495,0.392699,0.785398,1.570796,3.141592,6.2831,12.566};
fbvalue = feedbacktable,int(feedback):rdtable;
op1 = operator_control(1) ~ * (fbvalue);
op2 = operator_control(2);
op3 = operator_control(3);
op4 = operator_control(4);
alg(0) = op1:op2:op3:op4;
alg(1) = op1,op2:>op3:op4;
alg(2) = op1,(op2:op3):>op4;
alg(3) = (op1:op2),op3:>op4;
alg(4) = (op1:op2),(op3:op4):>_;
alg(5) = op1<:op2,op3,op4:>_;
alg(6) = (op1:op2),op3,op4:>_;
alg(7) = op1,op2,op3,op4:>_;
synths = par(i,8,select2(algorithm == i,0,alg(i))):>_;
process = tgroup("[6]Operator control", synths)*gain;
|
7e01c3ecb4ca63780fdd1d914f447ab13455f1077edaa56cd9116615164bbad9 | madskjeldgaard/mkfaustplugins | CombLPFParallelSplayed.dsp | declare name "CombLPFParallelSplayed";
declare author "Mads Kjeldgaard";
declare copyright "Mads Kjeldgaard";
declare version "1.00";
declare license "GPL";
declare description "Parallel natural comb structure.";
import("stdfaust.lib");
import("../../lib/mkdelay.dsp");
// Static
order = 4;
numDelays = 4;
maxdelay = 1 * ma.SR;
// Controls
delay = vslider("delaytime",0.1,0.001,2.0,0.01) : *(ma.SR) : si.smoo;
fb = vslider("fb",0.1,0.001,2.0,0.01);
lpf = vslider("cutoff",500,20.0,20000.0,1);
spread = vslider("stereospread",0.5,0.0,1.0,0.00001) : si.smoo;
rotate = vslider("rotate",0.0,0.0,1.0,0.00001) : si.smoo;
delayOffset=vslider("delayoffset",0.5,0.0,1.0,0.00001) : si.smoo;
// Process
process = _ <: mkd.parallel_comb_lpf_splayed(numDelays, order, maxdelay, delay, delayOffset, fb, lpf, spread, rotate);
| https://raw.githubusercontent.com/madskjeldgaard/mkfaustplugins/7d7bec0745262e9d9d09d38fa6c2d8684ffa3bda/plugins/CombLPFParallelSplayed/CombLPFParallelSplayed.dsp | faust | Static
Controls
Process | declare name "CombLPFParallelSplayed";
declare author "Mads Kjeldgaard";
declare copyright "Mads Kjeldgaard";
declare version "1.00";
declare license "GPL";
declare description "Parallel natural comb structure.";
import("stdfaust.lib");
import("../../lib/mkdelay.dsp");
order = 4;
numDelays = 4;
maxdelay = 1 * ma.SR;
delay = vslider("delaytime",0.1,0.001,2.0,0.01) : *(ma.SR) : si.smoo;
fb = vslider("fb",0.1,0.001,2.0,0.01);
lpf = vslider("cutoff",500,20.0,20000.0,1);
spread = vslider("stereospread",0.5,0.0,1.0,0.00001) : si.smoo;
rotate = vslider("rotate",0.0,0.0,1.0,0.00001) : si.smoo;
delayOffset=vslider("delayoffset",0.5,0.0,1.0,0.00001) : si.smoo;
process = _ <: mkd.parallel_comb_lpf_splayed(numDelays, order, maxdelay, delay, delayOffset, fb, lpf, spread, rotate);
|
359e30d92b47e0a89c3d499c527a306aaab830b8b2989c14e3f9c9c91475c7aa | jatinchowdhury18/CrossroadsEffects | evolve_struct_FIR_filter.dsp | import("stdfaust.lib");
gain_748411aa = _*0.29876635941400853;
gain_3b4f1a56 = _*0.53194650732673;
unit_delay_f6160843 = @(1);
gain_689ee769 = _*-0.15398358194380563;
split_6fd10691 = _ <: (gain_3b4f1a56), (unit_delay_f6160843 : gain_689ee769) :> _;
unit_delay_40ebdc09 = @(1);
gain_c1e556ec = _*-0.9893130293690344;
gain_2927421e = _*0.7561344529535868;
unit_delay_eecae516 = @(1);
gain_f4768e27 = _*0.09671978613651143;
split_5aa958d8 = _ <: (gain_2927421e), (unit_delay_eecae516 : gain_f4768e27) :> _;
split_8cdd354e = _ <: (gain_748411aa), (split_6fd10691 : unit_delay_40ebdc09 : gain_c1e556ec : split_5aa958d8) :> _;
unit_delay_d61e1cc1 = @(1);
gain_ccbc0dc1 = _*-0.27108882748998064;
unit_delay_0907ff9c = @(1);
gain_071e4516 = _*-1.4731654820527655;
split_f9425cb1 = _ <: (gain_ccbc0dc1), (unit_delay_0907ff9c : gain_071e4516) :> _;
gain_2ffdbf7c = _*0.0028950285670715633;
gain_32604f2f = _*-0.35254022444931177;
unit_delay_0f1e1856 = @(1);
gain_7685a561 = _*0.817003440047692;
split_8bac1771 = _ <: (gain_32604f2f), (unit_delay_0f1e1856 : gain_7685a561) :> _;
unit_delay_274e99cc = @(1);
gain_cc28dd5f = _*0.6233495494040621;
split_28397796 = _ <: (gain_2ffdbf7c), (split_8bac1771 : unit_delay_274e99cc : gain_cc28dd5f) :> _;
split_afc44ee0 = _ <: (split_8cdd354e), (unit_delay_d61e1cc1 : split_f9425cb1 : split_28397796) :> _;
process = _,_ : split_afc44ee0,split_afc44ee0 : _,_;
| https://raw.githubusercontent.com/jatinchowdhury18/CrossroadsEffects/9a4ece57ce439103369f6c36bc1d74bec9043d64/faust_scripts/evolve_struct_FIR_filter.dsp | faust | import("stdfaust.lib");
gain_748411aa = _*0.29876635941400853;
gain_3b4f1a56 = _*0.53194650732673;
unit_delay_f6160843 = @(1);
gain_689ee769 = _*-0.15398358194380563;
split_6fd10691 = _ <: (gain_3b4f1a56), (unit_delay_f6160843 : gain_689ee769) :> _;
unit_delay_40ebdc09 = @(1);
gain_c1e556ec = _*-0.9893130293690344;
gain_2927421e = _*0.7561344529535868;
unit_delay_eecae516 = @(1);
gain_f4768e27 = _*0.09671978613651143;
split_5aa958d8 = _ <: (gain_2927421e), (unit_delay_eecae516 : gain_f4768e27) :> _;
split_8cdd354e = _ <: (gain_748411aa), (split_6fd10691 : unit_delay_40ebdc09 : gain_c1e556ec : split_5aa958d8) :> _;
unit_delay_d61e1cc1 = @(1);
gain_ccbc0dc1 = _*-0.27108882748998064;
unit_delay_0907ff9c = @(1);
gain_071e4516 = _*-1.4731654820527655;
split_f9425cb1 = _ <: (gain_ccbc0dc1), (unit_delay_0907ff9c : gain_071e4516) :> _;
gain_2ffdbf7c = _*0.0028950285670715633;
gain_32604f2f = _*-0.35254022444931177;
unit_delay_0f1e1856 = @(1);
gain_7685a561 = _*0.817003440047692;
split_8bac1771 = _ <: (gain_32604f2f), (unit_delay_0f1e1856 : gain_7685a561) :> _;
unit_delay_274e99cc = @(1);
gain_cc28dd5f = _*0.6233495494040621;
split_28397796 = _ <: (gain_2ffdbf7c), (split_8bac1771 : unit_delay_274e99cc : gain_cc28dd5f) :> _;
split_afc44ee0 = _ <: (split_8cdd354e), (unit_delay_d61e1cc1 : split_f9425cb1 : split_28397796) :> _;
process = _,_ : split_afc44ee0,split_afc44ee0 : _,_;
|
|
673bfbe375fc28ab8b5bd9fdcf0867b8c6347204e38af88c2b5a8da1af960e0d | olilarkin/pMixFaustNodes | DroneBox.dsp | declare name "DroneBox";
declare description "Stereo Sympathetic Resonance Generator";
declare author "Oli Larkin ([email protected])";
declare copyright "Oliver Larkin";
declare version "0.1";
declare licence "GPL";
import("stdfaust.lib");
smooth_time = 0.005; // secs
coarse_pitch = hslider("Coarse Pitch [unit:semitones] [OWL:PARAMETER_A]", 48, 36, 60, 1);
fine_pitch = hslider("Fine Pitch [unit:cents] [OWL:PARAMETER_B]", 0., -1., 1., 0.001);
t60 = hslider("Decay [unit:seconds] [OWL:PARAMETER_C]", 4, 0.1, 120, 0.01) : si.smooth(ba.tau2pole(smooth_time));
mix = hslider("Mix [OWL:PARAMETER_D]", 0.5, 0, 1, 0.01) : si.smooth(ba.tau2pole(smooth_time));
damp = 0.3;
dtmax = 4096;
NStrings = 4;
ratios(0) = 1.;
ratios(1) = 1.5;
ratios(2) = 2.;
ratios(3) = 3.;
f = ba.midikey2hz(coarse_pitch+fine_pitch) : si.smooth(ba.tau2pole(smooth_time));
string(x, s) = (+ : de.fdelay(dtmax, dtsamples)) ~ (*(fbk))
//string(x, s) = (+ : de.fdelay(dtmax, dtsamples)) ~ (dampingfilter : *(fbk))
with {
thisFreq = f * ratios(s);
dtsamples = (ma.SR/thisFreq) - 2;
fbk = pow(0.001,1.0/(thisFreq*t60));
h0 = (1. + damp)/2;
h1 = (1. - damp)/4;
dampingfilter(x) = (h0 * x' + h1*(x+x''));
};
dronebox(l, r) = l, r <: par(s, NStrings, string(l, s), string(r, s)) :> _,_;
process(l, r) = l, r <: *(1-mix), *(1-mix), (dronebox(l, r) : *(mix*0.25), *(mix*0.25)) :> _,_; | https://raw.githubusercontent.com/olilarkin/pMixFaustNodes/20da57783b03841f023a7edd4a3215ab3155218e/DroneBox.dsp | faust | secs
string(x, s) = (+ : de.fdelay(dtmax, dtsamples)) ~ (dampingfilter : *(fbk)) | declare name "DroneBox";
declare description "Stereo Sympathetic Resonance Generator";
declare author "Oli Larkin ([email protected])";
declare copyright "Oliver Larkin";
declare version "0.1";
declare licence "GPL";
import("stdfaust.lib");
coarse_pitch = hslider("Coarse Pitch [unit:semitones] [OWL:PARAMETER_A]", 48, 36, 60, 1);
fine_pitch = hslider("Fine Pitch [unit:cents] [OWL:PARAMETER_B]", 0., -1., 1., 0.001);
t60 = hslider("Decay [unit:seconds] [OWL:PARAMETER_C]", 4, 0.1, 120, 0.01) : si.smooth(ba.tau2pole(smooth_time));
mix = hslider("Mix [OWL:PARAMETER_D]", 0.5, 0, 1, 0.01) : si.smooth(ba.tau2pole(smooth_time));
damp = 0.3;
dtmax = 4096;
NStrings = 4;
ratios(0) = 1.;
ratios(1) = 1.5;
ratios(2) = 2.;
ratios(3) = 3.;
f = ba.midikey2hz(coarse_pitch+fine_pitch) : si.smooth(ba.tau2pole(smooth_time));
string(x, s) = (+ : de.fdelay(dtmax, dtsamples)) ~ (*(fbk))
with {
thisFreq = f * ratios(s);
dtsamples = (ma.SR/thisFreq) - 2;
fbk = pow(0.001,1.0/(thisFreq*t60));
h0 = (1. + damp)/2;
h1 = (1. - damp)/4;
dampingfilter(x) = (h0 * x' + h1*(x+x''));
};
dronebox(l, r) = l, r <: par(s, NStrings, string(l, s), string(r, s)) :> _,_;
process(l, r) = l, r <: *(1-mix), *(1-mix), (dronebox(l, r) : *(mix*0.25), *(mix*0.25)) :> _,_; |
6e56713c82b0d63ff3e27474f3a087aee8ea90cece7871f2c4b0b05079293c92 | jpcima/Hera | DangeloVCF.dsp | // SPDX-License-Identifier: ISC
declare license "ISC";
declare author "Jean Pierre Cimalando";
// Virtual analog Moog VCF, with unity gain compensation
// Based on following sources
// - D'Angelo, Stefano & Välimäki, Vesa. (2013). An improved virtual analog model of the Moog ladder filter. Acoustics, Speech, and Signal Processing, 1988. ICASSP-88., 1988 International Conference on. 729-733. 10.1109/ICASSP.2013.6637744.
// - https://github.com/ddiakopoulos/MoogLadders/blob/master/src/ImprovedModel.h
import("stdfaust.lib");
process(in,fc,res) = in : vcf(fc,res) with {
// fc = hslider("[1] cutoff", 2000.0, 0.0, 5000.0, 1.0) : si.smoo;
// res = hslider("[2] resonance", 1.0, 0.0, 1.0, 0.001) : si.smoo;
};
vcf(fc_,res) = ladder with {
fc = fc_:min(0.49*44100.0);
ladder = ((+:*(v):Sig:ma.neg:s123:s123:s123:s4)~(*(k))):*(kcorr);
gcomp = 0; // set to 1 for unity gain compensation
kcorr = ba.if(gcomp,k+1.0,1.0);
s123 = (+:*(g):integ:*(v):Sig)~ma.neg;
s4(x) = next(z') letrec { 'z = next(z):*(v):Sig; } with { next(z) = g*(x-z):integ; };
integ(x) = (+((x+x')*(0.5/ma.SR)))~_;
//Sig = ma.tanh;
Sig = max(-1.0):min(1.0):cubic with { cubic(x) = x-x*x*x*(1.0/3.0); };
g = fc*(4.0*ma.PI*Vt)*((1.0-x)/(1.0+x)) with { x = fc*(ma.PI/ma.SR); };
k = 2.0*res;
v = 1.0/(2.0*Vt);
Vt = 0.312; //Vt = 26e-3;
//Vt = hslider("[3] thermal voltage", 0.026, 0.01, 0.5, 0.001);
};
| https://raw.githubusercontent.com/jpcima/Hera/eec43c0b5cb5aaa71c647b2e5597fc1ba383dd13/Source/VCF/DangeloVCF.dsp | faust | SPDX-License-Identifier: ISC
Virtual analog Moog VCF, with unity gain compensation
Based on following sources
- D'Angelo, Stefano & Välimäki, Vesa. (2013). An improved virtual analog model of the Moog ladder filter. Acoustics, Speech, and Signal Processing, 1988. ICASSP-88., 1988 International Conference on. 729-733. 10.1109/ICASSP.2013.6637744.
- https://github.com/ddiakopoulos/MoogLadders/blob/master/src/ImprovedModel.h
fc = hslider("[1] cutoff", 2000.0, 0.0, 5000.0, 1.0) : si.smoo;
res = hslider("[2] resonance", 1.0, 0.0, 1.0, 0.001) : si.smoo;
set to 1 for unity gain compensation
Sig = ma.tanh;
Vt = 26e-3;
Vt = hslider("[3] thermal voltage", 0.026, 0.01, 0.5, 0.001); |
declare license "ISC";
declare author "Jean Pierre Cimalando";
import("stdfaust.lib");
process(in,fc,res) = in : vcf(fc,res) with {
};
vcf(fc_,res) = ladder with {
fc = fc_:min(0.49*44100.0);
ladder = ((+:*(v):Sig:ma.neg:s123:s123:s123:s4)~(*(k))):*(kcorr);
kcorr = ba.if(gcomp,k+1.0,1.0);
s123 = (+:*(g):integ:*(v):Sig)~ma.neg;
s4(x) = next(z') letrec { 'z = next(z):*(v):Sig; } with { next(z) = g*(x-z):integ; };
integ(x) = (+((x+x')*(0.5/ma.SR)))~_;
Sig = max(-1.0):min(1.0):cubic with { cubic(x) = x-x*x*x*(1.0/3.0); };
g = fc*(4.0*ma.PI*Vt)*((1.0-x)/(1.0+x)) with { x = fc*(ma.PI/ma.SR); };
k = 2.0*res;
v = 1.0/(2.0*Vt);
};
|
adeb64a5a7b980226891d6fe40a406e69e87a90b040cec2dca91d0a57caeba95 | grame-cncm/smartfaust | sfPlayer.dsp | declare name "sfPlayer";
declare version "1.01";
declare author "Christophe Lebreton";
declare license "BSD";
declare copyright "SmartFaust - GRAME(c)2013-2018";
import("stdfaust.lib");
//-------------------- MAIN -------------------------------
process = component ("sample_player_v0.1a.dsp"):*(0.5)
:component ("sampler_crybaby2_v0.1.dsp")
:component ("sampler_pitch_shifter2_v0.1.dsp"):*(volume)
:component ("sampler_Zverb4_2_v0.2.dsp"):max(-0.99):min(0.99):*(out)
with {
volume = hslider("v:sfPlayer parameter(s)/volume [acc:1 0 -10 10 0 1][color:0 255 0][hidden:1]",1,-0.3,1,0.0001):max(0):min(1): fi.lowpass(1,1);
out = checkbox ("v:sfPlayer/ON/OFF"):si.smooth(0.998);
};
| https://raw.githubusercontent.com/grame-cncm/smartfaust/0a9c93ea7eda9899e1401402901848f221366c99/src/sfPlayer/sfPlayer.dsp | faust | -------------------- MAIN ------------------------------- | declare name "sfPlayer";
declare version "1.01";
declare author "Christophe Lebreton";
declare license "BSD";
declare copyright "SmartFaust - GRAME(c)2013-2018";
import("stdfaust.lib");
process = component ("sample_player_v0.1a.dsp"):*(0.5)
:component ("sampler_crybaby2_v0.1.dsp")
:component ("sampler_pitch_shifter2_v0.1.dsp"):*(volume)
:component ("sampler_Zverb4_2_v0.2.dsp"):max(-0.99):min(0.99):*(out)
with {
volume = hslider("v:sfPlayer parameter(s)/volume [acc:1 0 -10 10 0 1][color:0 255 0][hidden:1]",1,-0.3,1,0.0001):max(0):min(1): fi.lowpass(1,1);
out = checkbox ("v:sfPlayer/ON/OFF"):si.smooth(0.998);
};
|
67d5526247cfc5db3a2fafb09472057524d3c9537c88f1397e67fc4b8759ee6f | jujudusud/BPD | bddi-p9.dsp | // generated automatically
// DO NOT MODIFY!
declare id "bddi-p9";
declare name "BDDI part 9";
declare category "External";
import("stdfaust.lib");
process = pre : fi.fir((b0/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 = _;
PR26v = vslider("PR26v[name:PR26v]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
b0 = -0.999989466876821*PR26v + 0.999989466876821;
a0 = 1.00000000000000;
};
| https://raw.githubusercontent.com/jujudusud/BPD/f6f931ae528147d59bcf3d4e0a59586338671a58/bddi-dsp/bddi-p9.dsp | faust | generated automatically
DO NOT MODIFY! | declare id "bddi-p9";
declare name "BDDI part 9";
declare category "External";
import("stdfaust.lib");
process = pre : fi.fir((b0/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 = _;
PR26v = vslider("PR26v[name:PR26v]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s);
b0 = -0.999989466876821*PR26v + 0.999989466876821;
a0 = 1.00000000000000;
};
|
797602511bf592a894c42ac9df501711e6b77daa670ebf2f435ef6be6a131710 | johannphilippe/grame_cnsmd_2023 | korg_simple.dsp | import("stdfaust.lib");
cutoff = hslider("Cutoff", 0, 0, 1, 0.01) : si.smoo;
// Warning : above 9, the filter becomes unstable (explosion)
res = hslider("Resonance", 0, 0, 1, 0.01) : *(9) : si.smoo;
amp = hslider("amplitude", 0.1, 0, 1, 0.01);
process = os.sawtooth(200) : ve.korg35LPF(cutoff, res) * amp;
| https://raw.githubusercontent.com/johannphilippe/grame_cnsmd_2023/ccfd6e9a5c1537097546520317c8c5beea06006f/soustractive/korg_simple.dsp | faust | Warning : above 9, the filter becomes unstable (explosion) | import("stdfaust.lib");
cutoff = hslider("Cutoff", 0, 0, 1, 0.01) : si.smoo;
res = hslider("Resonance", 0, 0, 1, 0.01) : *(9) : si.smoo;
amp = hslider("amplitude", 0.1, 0, 1, 0.01);
process = os.sawtooth(200) : ve.korg35LPF(cutoff, res) * amp;
|
44a261493eb31cfe5c7c0c0842fe7af37ba6e3c6f9163240a84f1467801ed8d6 | droosenb/faust-on-ESP32 | ODE_Test.dsp | import("stdfaust.lib");
Xi(expr) = si.bus(n) <: par(i,n,ba.selector(i,n)+1) : expr
with {
n = inputs(expr);
};
F1(expr) = si.bus(n) <: par(i,n,ba.selector(i,n)'') : expr <: par(i,n,ba.selector(i,m)*2)
with {
n = inputs(expr);
m = outputs(expr);
};
toto = os.osc(440),os.sawtooth(440), os.triangle(440);
funct = _ - _ <: _, _ ;
process = F1(funct); | https://raw.githubusercontent.com/droosenb/faust-on-ESP32/2060ad6723bed4578d5a75f8eeeacb93a7dc0b60/ODE_Solver/Midpoint(5)/ODE_Test.dsp | faust | import("stdfaust.lib");
Xi(expr) = si.bus(n) <: par(i,n,ba.selector(i,n)+1) : expr
with {
n = inputs(expr);
};
F1(expr) = si.bus(n) <: par(i,n,ba.selector(i,n)'') : expr <: par(i,n,ba.selector(i,m)*2)
with {
n = inputs(expr);
m = outputs(expr);
};
toto = os.osc(440),os.sawtooth(440), os.triangle(440);
funct = _ - _ <: _, _ ;
process = F1(funct); |
|
5bdae4523e257ed545f211ca74f0eab273524ed50332e84661f9769701a5619b | alexmlucas/Instrument_Three | violin.dsp | import ("stdfaust.lib");
import ("physmodels.lib");
violinPluckedModel(stringFreq, pluckGain, pluckTrigger) = pm.endChain(modelChain)
with
{
trigger = pm.pluckString(stringL, 1, 1, 0.75, pluckGain, pluckTrigger);
stringTuning = 0.08;
stringL = pm.f2l(stringFreq) - stringTuning;
modelChain = pm.chain(
violinNuts :
pm.openString(stringL, 0.25, 0.25, trigger) :
violinBridge :
violinBody :
out
);
};
violinBowedModel(stringFreq, bowPressure, bowVelocity, bowPosition) = pm.endChain(modelChain)
with
{
stringTuning = 0.08;
stringL = pm.f2l(stringFreq) - stringTuning;
modelChain = pm.chain(
violinNuts : violinBowedString(stringL, bowPressure, bowVelocity, bowPosition) :
violinBridge :
violinBody :
out
);
};
freq0 = hslider("freq0", 660, 660, 1100, 0.01) : si.smoo;
velocity0 = hslider("velocity0", 0, 0, 0.1, 0.01) : si.smooth(0.999);
freq1 = hslider("freq1", 660, 660, 1100, 0.01) : si.smoo;
velocity1 = hslider("velocity1", 0, 0, 0.1, 0.01) : si.smooth(0.999);
freq2 = hslider("freq2", 660, 660, 1100, 0.01) : si.smoo;
velocity2 = hslider("velocity2", 0, 0, 0.1, 0.01) : si.smooth(0.999);
freq3 = hslider("freq3", 660, 660, 1100, 0.01) : si.smoo;
velocity3 = hslider("velocity3", 0, 0, 0.1, 0.01) : si.smooth(0.999);
pluckGain0 = hslider("pluckGain0", 0.7, 0, 1, 0.01);
pluckTrigger0 = button("pluckTrigger0");
pluckGain1 = hslider("pluckGain1", 0.7, 0, 1, 0.01);
pluckTrigger1 = button("pluckTrigger1");
pluckGain2 = hslider("pluckGain2", 0.7, 0, 1, 0.01);
pluckTrigger2 = button("pluckTrigger2");
pluckGain3 = hslider("pluckGain3", 0.7, 0, 1, 0.01);
pluckTrigger3 = button("pluckTrigger3");
process = ((violinBowedModel(freq0, velocity0, velocity0, 0.75) *(velocity0) *(0.2), violinPluckedModel(freq0, pluckGain0, pluckTrigger0) *(pluckGain0): + ),
(violinBowedModel(freq1, velocity0, velocity1, 0.75) *(velocity1) *(0.2), violinPluckedModel(freq1, pluckGain1, pluckTrigger1) *(pluckGain1): + ) : + ),
((violinBowedModel(freq2, velocity0, velocity2, 0.75) *(velocity2) *(0.2), violinPluckedModel(freq2, pluckGain2, pluckTrigger2) *(pluckGain2): + ),
(violinBowedModel(freq3, velocity0, velocity3, 0.75) *(velocity3) *(0.2), violinPluckedModel(freq3, pluckGain3, pluckTrigger3) *(pluckGain3): + ) : + ) : +; | https://raw.githubusercontent.com/alexmlucas/Instrument_Three/20851cc1a155e939d2e34848d247e3e57a6d69c6/software/violin.dsp | faust | import ("stdfaust.lib");
import ("physmodels.lib");
violinPluckedModel(stringFreq, pluckGain, pluckTrigger) = pm.endChain(modelChain)
with
{
trigger = pm.pluckString(stringL, 1, 1, 0.75, pluckGain, pluckTrigger);
stringTuning = 0.08;
stringL = pm.f2l(stringFreq) - stringTuning;
modelChain = pm.chain(
violinNuts :
pm.openString(stringL, 0.25, 0.25, trigger) :
violinBridge :
violinBody :
out
);
};
violinBowedModel(stringFreq, bowPressure, bowVelocity, bowPosition) = pm.endChain(modelChain)
with
{
stringTuning = 0.08;
stringL = pm.f2l(stringFreq) - stringTuning;
modelChain = pm.chain(
violinNuts : violinBowedString(stringL, bowPressure, bowVelocity, bowPosition) :
violinBridge :
violinBody :
out
);
};
freq0 = hslider("freq0", 660, 660, 1100, 0.01) : si.smoo;
velocity0 = hslider("velocity0", 0, 0, 0.1, 0.01) : si.smooth(0.999);
freq1 = hslider("freq1", 660, 660, 1100, 0.01) : si.smoo;
velocity1 = hslider("velocity1", 0, 0, 0.1, 0.01) : si.smooth(0.999);
freq2 = hslider("freq2", 660, 660, 1100, 0.01) : si.smoo;
velocity2 = hslider("velocity2", 0, 0, 0.1, 0.01) : si.smooth(0.999);
freq3 = hslider("freq3", 660, 660, 1100, 0.01) : si.smoo;
velocity3 = hslider("velocity3", 0, 0, 0.1, 0.01) : si.smooth(0.999);
pluckGain0 = hslider("pluckGain0", 0.7, 0, 1, 0.01);
pluckTrigger0 = button("pluckTrigger0");
pluckGain1 = hslider("pluckGain1", 0.7, 0, 1, 0.01);
pluckTrigger1 = button("pluckTrigger1");
pluckGain2 = hslider("pluckGain2", 0.7, 0, 1, 0.01);
pluckTrigger2 = button("pluckTrigger2");
pluckGain3 = hslider("pluckGain3", 0.7, 0, 1, 0.01);
pluckTrigger3 = button("pluckTrigger3");
process = ((violinBowedModel(freq0, velocity0, velocity0, 0.75) *(velocity0) *(0.2), violinPluckedModel(freq0, pluckGain0, pluckTrigger0) *(pluckGain0): + ),
(violinBowedModel(freq1, velocity0, velocity1, 0.75) *(velocity1) *(0.2), violinPluckedModel(freq1, pluckGain1, pluckTrigger1) *(pluckGain1): + ) : + ),
((violinBowedModel(freq2, velocity0, velocity2, 0.75) *(velocity2) *(0.2), violinPluckedModel(freq2, pluckGain2, pluckTrigger2) *(pluckGain2): + ),
(violinBowedModel(freq3, velocity0, velocity3, 0.75) *(velocity3) *(0.2), violinPluckedModel(freq3, pluckGain3, pluckTrigger3) *(pluckGain3): + ) : + ) : +; |
|
f45ad5e18ca44bc1052f039bc9e5eb8ca639944ff21ef3d83e4184018587fc0b | SuyashRamteke/FAUST---Real-time-Audio-Signal-Processing | Harp.dsp | import("stdfaust.lib");
string(i) = hgroup("String[0]",+~(de.fdelay4(maxDelLength,delLength-1) : dispersionFilter : *(damping)))
with{
index = i+1;
freq = vslider("[0]freq%index",16*9*index ,50,5000,1) : si.smoo;
damping = hslider("[1]Damping[style:knob]",0.99,0,1,0.01);
maxDelLength = 1024;
dispersionFilter = _ <: _,_' :> /(2);
delLength = ma.SR/freq*2;
};
nStrings = 7;
pluck(index, n) = hgroup("[1]Pluck",gate : ba.impulsify*gain)
with{
gain = hslider("gain[style:knob]",1,0,1,0.01);
gate = n == index;
};
// harp = par(i,nStrings,(gate : string)) :> _;
strum = vslider("strum",0,0,nStrings,1) <: par(i, nStrings, (pluck(i,_) : string(i))) :> _;
process = hgroup("Harp", strum); | https://raw.githubusercontent.com/SuyashRamteke/FAUST---Real-time-Audio-Signal-Processing/ca24b8d650b6d77435d8128b0aa8e4d8b6022c30/Harp.dsp | faust | harp = par(i,nStrings,(gate : string)) :> _; | import("stdfaust.lib");
string(i) = hgroup("String[0]",+~(de.fdelay4(maxDelLength,delLength-1) : dispersionFilter : *(damping)))
with{
index = i+1;
freq = vslider("[0]freq%index",16*9*index ,50,5000,1) : si.smoo;
damping = hslider("[1]Damping[style:knob]",0.99,0,1,0.01);
maxDelLength = 1024;
dispersionFilter = _ <: _,_' :> /(2);
delLength = ma.SR/freq*2;
};
nStrings = 7;
pluck(index, n) = hgroup("[1]Pluck",gate : ba.impulsify*gain)
with{
gain = hslider("gain[style:knob]",1,0,1,0.01);
gate = n == index;
};
strum = vslider("strum",0,0,nStrings,1) <: par(i, nStrings, (pluck(i,_) : string(i))) :> _;
process = hgroup("Harp", strum); |
68b6db5803130d12c3c0f47f0317389cdf850f446f954212be456c1a02773c08 | trummerschlunk/master_me_legcy | filterbank_test.dsp | import("stdfaust.lib");
M = 2;
ftop = 20000;
N = 20;
compN = co.RMS_FBFFcompressor_N_chan(strength,thresh,att,rel,knee,prePost,link,FBFF,meter,N) with{
strength = 0.2;
thresh = -30;
att = 0.01;
rel = 0.1;
knee = 1;
prePost = 0;
link = 0;
FBFF = 0.5;
meter = _<:attach( ba.linear2db : hgroup("hurz", vbargraph("[1][unit:db]", -6,0)));
};
process = _ : fi.mth_octave_filterbank(3,M,ftop,N) : compN : par(i,N,_) :> _ <: _,_; | https://raw.githubusercontent.com/trummerschlunk/master_me_legcy/5f62e9c4052267a7a17d49c86626239f01f7e6be/filterbank_test.dsp | faust | import("stdfaust.lib");
M = 2;
ftop = 20000;
N = 20;
compN = co.RMS_FBFFcompressor_N_chan(strength,thresh,att,rel,knee,prePost,link,FBFF,meter,N) with{
strength = 0.2;
thresh = -30;
att = 0.01;
rel = 0.1;
knee = 1;
prePost = 0;
link = 0;
FBFF = 0.5;
meter = _<:attach( ba.linear2db : hgroup("hurz", vbargraph("[1][unit:db]", -6,0)));
};
process = _ : fi.mth_octave_filterbank(3,M,ftop,N) : compN : par(i,N,_) :> _ <: _,_; |
|
d5da3a5ef847d3abc33e88368aff1978abb0e3992cc501d58c340050c3fb8843 | droosenb/faust-on-ESP32 | FaustSaw.dsp | import("stdfaust.lib");
freq = hslider("freq", 440, 20, 2000, .01) : si.smoo;
process = os.sawtooth(freq);
| https://raw.githubusercontent.com/droosenb/faust-on-ESP32/2060ad6723bed4578d5a75f8eeeacb93a7dc0b60/es8388/es8388-implementation-example/main/FaustSaw.dsp | faust | import("stdfaust.lib");
freq = hslider("freq", 440, 20, 2000, .01) : si.smoo;
process = os.sawtooth(freq);
|
|
fdcfea142d04b958f85f4a88cd1cc8b19e793e4cb826bd4bda938685d820e3e3 | DISTRHO/Fadeli | dynamic-gateCompressor.dsp | declare name "gateCompressor";
import("stdfaust.lib");
process =
// ol.sawtooth_demo <:
// el.gate_demo : ef.compressor_demo :> fi.spectral_level_demo <: _,_;
vgroup("[1]", dm.sawtooth_demo) <:
vgroup("[2]", dm.gate_demo) :
vgroup("[3]", dm.compressor_demo) :>
vgroup("[4]", dm.spectral_level_demo) <:
_,_;
| https://raw.githubusercontent.com/DISTRHO/Fadeli/5e8b0f3619eef668ac5772fd39e49b6486509ef3/dsp/dynamic-gateCompressor.dsp | faust | ol.sawtooth_demo <:
el.gate_demo : ef.compressor_demo :> fi.spectral_level_demo <: _,_; | declare name "gateCompressor";
import("stdfaust.lib");
process =
vgroup("[1]", dm.sawtooth_demo) <:
vgroup("[2]", dm.gate_demo) :
vgroup("[3]", dm.compressor_demo) :>
vgroup("[4]", dm.spectral_level_demo) <:
_,_;
|
d32540e7f72d9506b558193c1132cb09c3e15ffe696150ecb3476ee9e2c0e72a | edmondhowser/somethingelse | somethingelse.dsp | /* "Something Else"
This is code designed to work with a light sensor augmentation
mobile prototype I created at the 2017 CCRMA Mobile Augmentation
workshop. It borrows from a Karplus-Strong model from our session.
The light sensors are designed to affect parameters of the model.
I fabricated augmentations using a printer. For now, I'm publishing
openscad files for the top (blue), bottom (red), and insert(blue)
pieces.
We used a laser cutter on acrylic for the clear pieces. The light
sensors run through a Teensy, which is connected as a midi device
to an iphone 6s. I haven't documented this aspect of the project
yet, a todo item for when my summer workshops at CCRMA are over.
The project will be further updated at:
https://github.com/edmondhowser/somethingelse.git
*/
declare interface "SmartKeyboard{
'Number of Keyboards':'1',
'Max Keyboard Polyphony':'1',
'Inter-Keyboard Slide':'1',
'Mono Mode':'1',
'Keyboard 0 - Number of Keys':'10',
'Keyboard 0 - Lowest Key':'77',
'Keyboard 0 - Show Labels':'0',
'Keyboard 0 - Piano Keyboard':'0',
'Rounding Mode':'2'
}";
import("stdfaust.lib");
in_A0 = hslider("A0[midi:ctrl 10]",40,0,127,1) : ba.midikey2hz : si.smoo;
in_A1 = hslider("A1[midi:ctrl 11]",40,0,127,1) : ba.midikey2hz : si.smoo;
in_A2 = hslider("A2[midi:ctrl 12]",40,0,127,1) : ba.midikey2hz : si.smoo;
feedback = hslider("feedback",0.99,0,1,0.01) : si.smoo;
f = in_A0;
b = in_A1 / 127;
gain = in_A2 / 127;
gate = button("gate");
freq = f * b;
// Karplus-Strong
string(freq,fdbk) = +~(de.fdelay4(1024,del)*fdbk : reflexionFilter)
with{
del = ma.SR/freq;
reflexionFilter = _ <: (_'+_)/2;
};
process = gate : ba.impulsify*gain : string(freq,feedback) <: _,_;
| https://raw.githubusercontent.com/edmondhowser/somethingelse/2a059aba667fcd0641046cb6be249b47159c64ed/somethingelse.dsp | faust | "Something Else"
This is code designed to work with a light sensor augmentation
mobile prototype I created at the 2017 CCRMA Mobile Augmentation
workshop. It borrows from a Karplus-Strong model from our session.
The light sensors are designed to affect parameters of the model.
I fabricated augmentations using a printer. For now, I'm publishing
openscad files for the top (blue), bottom (red), and insert(blue)
pieces.
We used a laser cutter on acrylic for the clear pieces. The light
sensors run through a Teensy, which is connected as a midi device
to an iphone 6s. I haven't documented this aspect of the project
yet, a todo item for when my summer workshops at CCRMA are over.
The project will be further updated at:
https://github.com/edmondhowser/somethingelse.git
Karplus-Strong |
declare interface "SmartKeyboard{
'Number of Keyboards':'1',
'Max Keyboard Polyphony':'1',
'Inter-Keyboard Slide':'1',
'Mono Mode':'1',
'Keyboard 0 - Number of Keys':'10',
'Keyboard 0 - Lowest Key':'77',
'Keyboard 0 - Show Labels':'0',
'Keyboard 0 - Piano Keyboard':'0',
'Rounding Mode':'2'
}";
import("stdfaust.lib");
in_A0 = hslider("A0[midi:ctrl 10]",40,0,127,1) : ba.midikey2hz : si.smoo;
in_A1 = hslider("A1[midi:ctrl 11]",40,0,127,1) : ba.midikey2hz : si.smoo;
in_A2 = hslider("A2[midi:ctrl 12]",40,0,127,1) : ba.midikey2hz : si.smoo;
feedback = hslider("feedback",0.99,0,1,0.01) : si.smoo;
f = in_A0;
b = in_A1 / 127;
gain = in_A2 / 127;
gate = button("gate");
freq = f * b;
string(freq,fdbk) = +~(de.fdelay4(1024,del)*fdbk : reflexionFilter)
with{
del = ma.SR/freq;
reflexionFilter = _ <: (_'+_)/2;
};
process = gate : ba.impulsify*gain : string(freq,feedback) <: _,_;
|
125e70811079f3dc8d3b71b133f7d47dbb4e170ff8c89df4509552c62f38df0e | francescoganassin/FaustDSP-synths | ganassynth6.dsp |
declare name “ganassynth6”;
import("stdfaust.lib");
waveGenerator = no.noise/34 + os.triangle(freq)
with{
freq = hslider("freq[style:knob]",60,50,2000,0.1);
};
subtractive = waveGenerator : hgroup("[1]Filter",fi.resonlp(resFreq,q,1))
with{
ctFreq = hslider("[0]Cutoff Frequency[style:knob]",2000,50,10000,0.1);
q = hslider("[1]Q[style:knob]",5,1,30,0.1);
lfoFreq = hslider("[2]LFO Freq[style:knob]",110,0.1,200,0.01);
lfoDepth = hslider("[3]LFO Depth[style:knob]",500,1,10000,1);
resFreq = ctFreq + os.osc(lfoFreq)*lfoDepth : max(30);
};
process = subtractive;
| https://raw.githubusercontent.com/francescoganassin/FaustDSP-synths/ef9eb3da660f4d53e631a12b7e4f63944c57f61c/ganassynth6.dsp | faust |
declare name “ganassynth6”;
import("stdfaust.lib");
waveGenerator = no.noise/34 + os.triangle(freq)
with{
freq = hslider("freq[style:knob]",60,50,2000,0.1);
};
subtractive = waveGenerator : hgroup("[1]Filter",fi.resonlp(resFreq,q,1))
with{
ctFreq = hslider("[0]Cutoff Frequency[style:knob]",2000,50,10000,0.1);
q = hslider("[1]Q[style:knob]",5,1,30,0.1);
lfoFreq = hslider("[2]LFO Freq[style:knob]",110,0.1,200,0.01);
lfoDepth = hslider("[3]LFO Depth[style:knob]",500,1,10000,1);
resFreq = ctFreq + os.osc(lfoFreq)*lfoDepth : max(30);
};
process = subtractive;
|
|
a7fcb8493a898e5000ace042e0a0e8e5b4804a8ace59729dba6518449f1ff71a | madskjeldgaard/mkfaustplugins | CombLPF.dsp | declare name "CombLPF";
declare author "Mads Kjeldgaard";
declare copyright "Mads Kjeldgaard";
declare version "1.00";
declare license "GPL";
import("stdfaust.lib");
import("../../lib/mkdelay.dsp");
order = 4;
maxdelay = 1 * ma.SR;
delay = vslider("delaytime",0.1,0.001,2.0,0.01) : *(ma.SR) : si.smoo;
fb = vslider("fb",0.1,0.001,2.0,0.01);
lpf = vslider("cutoff",500,20.0,20000.0,1);
process = _ : mkd.comblpf(order, maxdelay, delay, fb, lpf);
| https://raw.githubusercontent.com/madskjeldgaard/mkfaustplugins/6b838d0b10832081b85a6cd921c564e89288b13e/plugins/CombLPF/CombLPF.dsp | faust | declare name "CombLPF";
declare author "Mads Kjeldgaard";
declare copyright "Mads Kjeldgaard";
declare version "1.00";
declare license "GPL";
import("stdfaust.lib");
import("../../lib/mkdelay.dsp");
order = 4;
maxdelay = 1 * ma.SR;
delay = vslider("delaytime",0.1,0.001,2.0,0.01) : *(ma.SR) : si.smoo;
fb = vslider("fb",0.1,0.001,2.0,0.01);
lpf = vslider("cutoff",500,20.0,20000.0,1);
process = _ : mkd.comblpf(order, maxdelay, delay, fb, lpf);
|
|
21e2bf19d29e199b3a46422f581c862aa2cf45ca27079dfc7501a66359f51cad | oshibka404/synt | pulse.dsp | import("stdfaust.lib");
cc = library("../midi_controls.dsp");
pulse_level_attack = vgroup("Pulse", hslider("Attack[1]", .001, .001, 1, .001));
pulse_level_decay = vgroup("Pulse", hslider("Decay[2]", .5, 0.1, 1, .001));
pulse_level_sustain = vgroup("Pulse", hslider("Sustain[3]", .3, .001, 1, .001));
pulse_level_release = vgroup("Pulse", hslider("Release[4]", .001, .001, 1, .001));
pulse_level_envelope = en.adsr(
pulse_level_attack,
pulse_level_decay,
pulse_level_sustain,
pulse_level_release,
cc.gate
);
pulse_duty = vgroup("Pulse", hslider("Duty", .5, .01, 1, .01));
pulse_osc = os.pulsetrain(cc.freq, pulse_duty) * pulse_level_envelope;
process = pulse_osc;
| https://raw.githubusercontent.com/oshibka404/synt/37f54d7d26752efb66baab79cbba2d4044a9e295/faust/oscillators/pulse.dsp | faust | import("stdfaust.lib");
cc = library("../midi_controls.dsp");
pulse_level_attack = vgroup("Pulse", hslider("Attack[1]", .001, .001, 1, .001));
pulse_level_decay = vgroup("Pulse", hslider("Decay[2]", .5, 0.1, 1, .001));
pulse_level_sustain = vgroup("Pulse", hslider("Sustain[3]", .3, .001, 1, .001));
pulse_level_release = vgroup("Pulse", hslider("Release[4]", .001, .001, 1, .001));
pulse_level_envelope = en.adsr(
pulse_level_attack,
pulse_level_decay,
pulse_level_sustain,
pulse_level_release,
cc.gate
);
pulse_duty = vgroup("Pulse", hslider("Duty", .5, .01, 1, .01));
pulse_osc = os.pulsetrain(cc.freq, pulse_duty) * pulse_level_envelope;
process = pulse_osc;
|
|
a6a25a230e57b61ffda2e42609e34a0e2f657d73c302fe6e90cfed72e296c2a2 | brummer10/ModularAmpToolKit.lv2 | princeton.dsp | // generated automatically
// DO NOT MODIFY!
declare id "princeton";
declare name "Single ended 6V6";
declare shortname "Princeton";
declare description "Single ended 6V6";
declare samplerate "96000";
import("stdfaust.lib");
p1 = pre : fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) : princeton_clip with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
b0 = fs*(2.46383752600217e-9*fs + 1.18536469845222e-7);
b1 = -4.92767505200435e-9*pow(fs,2);
b2 = fs*(2.46383752600217e-9*fs - 1.18536469845222e-7);
a0 = fs*(4.31429171140134e-10*fs + 1.24411557886099e-7) + 1.54349145985544e-5;
a1 = -8.62858342280268e-10*pow(fs,2) + 3.08698291971088e-5;
a2 = fs*(4.31429171140134e-10*fs - 1.24411557886099e-7) + 1.54349145985544e-5;
};
princeton_clip = ffunction(float princetonclip(float), "princeton_table.h", "");
ingain = vslider("Gain",0,-30,30,0.1) : ba.db2linear : si.smooth(0.999);
outgain = vslider("Volume", 0, -30.0, 30.0, 0.1) : ba.db2linear : si.smooth(0.999);
process = *(ingain) : p1 : *(0.2) : *(outgain);
| https://raw.githubusercontent.com/brummer10/ModularAmpToolKit.lv2/6a27486df4392b32cdf2efb59fe9049f57c399f6/PowerAmps/dsp/princeton.dsp | faust | generated automatically
DO NOT MODIFY! | declare id "princeton";
declare name "Single ended 6V6";
declare shortname "Princeton";
declare description "Single ended 6V6";
declare samplerate "96000";
import("stdfaust.lib");
p1 = pre : fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) : princeton_clip with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
b0 = fs*(2.46383752600217e-9*fs + 1.18536469845222e-7);
b1 = -4.92767505200435e-9*pow(fs,2);
b2 = fs*(2.46383752600217e-9*fs - 1.18536469845222e-7);
a0 = fs*(4.31429171140134e-10*fs + 1.24411557886099e-7) + 1.54349145985544e-5;
a1 = -8.62858342280268e-10*pow(fs,2) + 3.08698291971088e-5;
a2 = fs*(4.31429171140134e-10*fs - 1.24411557886099e-7) + 1.54349145985544e-5;
};
princeton_clip = ffunction(float princetonclip(float), "princeton_table.h", "");
ingain = vslider("Gain",0,-30,30,0.1) : ba.db2linear : si.smooth(0.999);
outgain = vslider("Volume", 0, -30.0, 30.0, 0.1) : ba.db2linear : si.smooth(0.999);
process = *(ingain) : p1 : *(0.2) : *(outgain);
|
f1c74e180b2eafd65d517e63cf2960063e5453603ad3ba5c7a49523199b6c2ff | rmichon/cph-fall22 | peak-eq.dsp | import("stdfaust.lib");
N = 10;
peakEqualizer = seq(i,N,hgroup("main",myPeakEq(i)))
with{
myPeakEq(j) = fi.peak_eq(level,ctFreq,BW)
with{
level = vslider("v:band%j/[2]level",0,-90,20,0.01);
ctFreq = vslider("v:band%j/[0]freq[style:knob]",50+j*1000,50,20000,0.01);
BW = vslider("v:band%j/[1]BW[style:knob]",100,20,1000,0.01);
};
};
process = peakEqualizer;
| https://raw.githubusercontent.com/rmichon/cph-fall22/37a78b9c1ace2d98f62f790d0bde645547bd7663/code/wednesday/peak-eq.dsp | faust | import("stdfaust.lib");
N = 10;
peakEqualizer = seq(i,N,hgroup("main",myPeakEq(i)))
with{
myPeakEq(j) = fi.peak_eq(level,ctFreq,BW)
with{
level = vslider("v:band%j/[2]level",0,-90,20,0.01);
ctFreq = vslider("v:band%j/[0]freq[style:knob]",50+j*1000,50,20000,0.01);
BW = vslider("v:band%j/[1]BW[style:knob]",100,20,1000,0.01);
};
};
process = peakEqualizer;
|
|
8fd18a3d9e85c5476bf907adc44ca9d78987e16b25a9e97755bc9a851e0a2c29 | rmichon/cph-fall22 | subtractive.dsp | import("stdfaust.lib");
f = hslider("h:main/v:[1]midi/freq",200,50,1000,0.01);
g = hslider("h:main/v:[1]midi/gain",1,0,1,0.01);
t = button("h:main/v:[1]midi/gate");
att = hslider("h:main/h:[0]params/att[style:knob]",0.1,0.001,1,0.001);
ct = hslider("h:main/h:[0]params/cuttof[style:knob]",4000,100,10000,0.01);
synth = os.sawtooth(f)*envelope : fi.resonlp(ctf,8,0.5)
with{
envelope = en.adsr(att,0,1,0.1,t)*g;
ctf = envelope*ct + 300;
};
process = synth ;
| https://raw.githubusercontent.com/rmichon/cph-fall22/9a0ec39a536e259faf90639d8fd4bbcc6ef082c3/code/tuesday/subtractive.dsp | faust | import("stdfaust.lib");
f = hslider("h:main/v:[1]midi/freq",200,50,1000,0.01);
g = hslider("h:main/v:[1]midi/gain",1,0,1,0.01);
t = button("h:main/v:[1]midi/gate");
att = hslider("h:main/h:[0]params/att[style:knob]",0.1,0.001,1,0.001);
ct = hslider("h:main/h:[0]params/cuttof[style:knob]",4000,100,10000,0.01);
synth = os.sawtooth(f)*envelope : fi.resonlp(ctf,8,0.5)
with{
envelope = en.adsr(att,0,1,0.1,t)*g;
ctf = envelope*ct + 300;
};
process = synth ;
|
|
e64ba99f21acda8e3ac71cdbd01a6eaf35a582f400063b561d2dd1fd11d8f39a | LSSN/2020-01-25-dsp-4a-andreaniffoi | V3r1f1c4S0ttRATTIVA.dsp | import("stdfaust.lib");
order = 4;
freq = 7650;
process = no.noise : fi.lowpass(order, freq) : fi.highpass(order, freq);
// la sintesi sottrattiva è il processo di sintesi piu datato. In quanto processo di sintesi è volto alla creazione di un suono, al suono finale si arriva estrapolandolo da un suono piu complesso come ad ad esempio un rumore bianco, il quale contiene tutte le frequenze a tutte le ampiezze. Faust elabora un noise grazie al RANDMAX, ovvero un generatore di numeri, esso viene chiamato in base alla frequenza di campionamento.
// il filtro passabasso attenua le frequenze alte ed il filtro passaalto attenua le frequenze alte: Nell'applicare un filtro è necessario stabilire una frequenza di taglio ed un ordine di filtro. Il filtro di primo ordine attenua 6db per ottava, quello di secondo ordine attenua 12db per ottava. Gli altri filtri vengono creati dall'unione di piu filtri di secondo ordine
// ad un ordine maggiore corrisponde una pendenza piu ripida nel suono rappresentato nello spettroscopio
// RANDMAX è il primo generatore di numeri
// RANDMAX è un numero casuale chiamato da faust in base alla frequenza di campionamento
// un suono è rumore quando al suo interno non ci sono le caratteristiche descrittive di un suono
// i numeri che identificano lo slider sono: il valore iniziale, valore minimo, valore massimo e step incrementale
// lo step incrementale determina la precisione dello slider
// il valore iniziale è il valore che deve assumere lo slider quando viene acceso il programma
// noise definisce un rumore che contiene tutte le frequenze
// spettroscopio: contenuto del suono nel dominio della frequenza, frequenza sulle x, ampiezza sulle y
// oscilloscopio: contenuto del suono nel dominio del tempo, tempo sulle x, ampiezza sulle y
// lowpass è un filtro passabasso
// SPETTROGRAMMA: frequenza sulle x, ampiezza sulle y
// OSCILLOSCOPIO: tempo sulle x, ampiezza sulle y
// SONOGRAMMA: frequenza sulle y, tempo sulle y
// dato un punto di taglio il filtro di primo ordine(attenua 6db per 8va)
| https://raw.githubusercontent.com/LSSN/2020-01-25-dsp-4a-andreaniffoi/97009d716167d40820736a834ee5a362360eaaff/V3r1f1c4S0ttRATTIVA.dsp | faust | la sintesi sottrattiva è il processo di sintesi piu datato. In quanto processo di sintesi è volto alla creazione di un suono, al suono finale si arriva estrapolandolo da un suono piu complesso come ad ad esempio un rumore bianco, il quale contiene tutte le frequenze a tutte le ampiezze. Faust elabora un noise grazie al RANDMAX, ovvero un generatore di numeri, esso viene chiamato in base alla frequenza di campionamento.
il filtro passabasso attenua le frequenze alte ed il filtro passaalto attenua le frequenze alte: Nell'applicare un filtro è necessario stabilire una frequenza di taglio ed un ordine di filtro. Il filtro di primo ordine attenua 6db per ottava, quello di secondo ordine attenua 12db per ottava. Gli altri filtri vengono creati dall'unione di piu filtri di secondo ordine
ad un ordine maggiore corrisponde una pendenza piu ripida nel suono rappresentato nello spettroscopio
RANDMAX è il primo generatore di numeri
RANDMAX è un numero casuale chiamato da faust in base alla frequenza di campionamento
un suono è rumore quando al suo interno non ci sono le caratteristiche descrittive di un suono
i numeri che identificano lo slider sono: il valore iniziale, valore minimo, valore massimo e step incrementale
lo step incrementale determina la precisione dello slider
il valore iniziale è il valore che deve assumere lo slider quando viene acceso il programma
noise definisce un rumore che contiene tutte le frequenze
spettroscopio: contenuto del suono nel dominio della frequenza, frequenza sulle x, ampiezza sulle y
oscilloscopio: contenuto del suono nel dominio del tempo, tempo sulle x, ampiezza sulle y
lowpass è un filtro passabasso
SPETTROGRAMMA: frequenza sulle x, ampiezza sulle y
OSCILLOSCOPIO: tempo sulle x, ampiezza sulle y
SONOGRAMMA: frequenza sulle y, tempo sulle y
dato un punto di taglio il filtro di primo ordine(attenua 6db per 8va) | import("stdfaust.lib");
order = 4;
freq = 7650;
process = no.noise : fi.lowpass(order, freq) : fi.highpass(order, freq);
|
8e413c19b233e421473184f0914aa05a57ed8ce9d624b047ca0c751ff3a7ae99 | rmichon/multiKeyboard | elecGuitarEffect.dsp | // a stereo distortion effect connected to a stereo reverb
import("stdfaust.lib");
distDrive = 0.8;
distOffset = 0;
process = par(i,2,ef.cubicnl(distDrive,distOffset)) : dm.zita_rev1; | https://raw.githubusercontent.com/rmichon/multiKeyboard/7d04f591fac974a91e4b322c3cb757b8cbb50443/faust/examples/associatedEffects/elecGuitarEffect.dsp | faust | a stereo distortion effect connected to a stereo reverb |
import("stdfaust.lib");
distDrive = 0.8;
distOffset = 0;
process = par(i,2,ef.cubicnl(distDrive,distOffset)) : dm.zita_rev1; |
3089081f5224926d132b019071c8cad501f794b0ab0065c24c7522f7f0a49749 | olilarkin/pMixFaustNodes | Blipper.dsp | declare name "Blipper";
declare description "Envelope Follower controlling pitch of a triangle oscillator, good with percussive input";
declare author "Oli Larkin ([email protected])";
declare copyright "Oliver Larkin";
declare version "0.3";
declare licence "GPL";
import("stdfaust.lib");
basepitch = hslider("BasePitch [unit:semitones] [OWL:PARAMETER_A]", 60, 24, 96, 0.1) : si.smooth(ba.tau2pole(0.01));
pitchmod = hslider("PitchMod [unit:semitones] [OWL:PARAMETER_B]", 24, -64, 64, 1) : si.smooth(ba.tau2pole(0.005));
//attack = hslider("Attack [unit:ms] [OWL:PARAMETER_C]", 2, 2, 1000, 1) : *(0.001) : max(1.0/float(SR));
release = hslider("Release [unit:ms] [OWL:PARAMETER_C]", 20, 2, 100, 1) : *(0.001) : max(1.0/float(ma.SR));
attack = 0.005;
mix = hslider("Mix[OWL:PARAMETER_D]", 0.5, 0, 1, 0.01) : si.smooth(ba.tau2pole(0.005));
process(l, r) = l, r <: *(1-mix), *(1-mix), mono2stereo :> _,_
with {
mono2stereo = + : pc2 * mix <: _,_;
pc2 = an.amp_follower_ud(attack, release) <: (ba.midikey2hz(basepitch + (pitchmod * _)): os.triangle), _ : *;
}; | https://raw.githubusercontent.com/olilarkin/pMixFaustNodes/20da57783b03841f023a7edd4a3215ab3155218e/Blipper.dsp | faust | attack = hslider("Attack [unit:ms] [OWL:PARAMETER_C]", 2, 2, 1000, 1) : *(0.001) : max(1.0/float(SR)); | declare name "Blipper";
declare description "Envelope Follower controlling pitch of a triangle oscillator, good with percussive input";
declare author "Oli Larkin ([email protected])";
declare copyright "Oliver Larkin";
declare version "0.3";
declare licence "GPL";
import("stdfaust.lib");
basepitch = hslider("BasePitch [unit:semitones] [OWL:PARAMETER_A]", 60, 24, 96, 0.1) : si.smooth(ba.tau2pole(0.01));
pitchmod = hslider("PitchMod [unit:semitones] [OWL:PARAMETER_B]", 24, -64, 64, 1) : si.smooth(ba.tau2pole(0.005));
release = hslider("Release [unit:ms] [OWL:PARAMETER_C]", 20, 2, 100, 1) : *(0.001) : max(1.0/float(ma.SR));
attack = 0.005;
mix = hslider("Mix[OWL:PARAMETER_D]", 0.5, 0, 1, 0.01) : si.smooth(ba.tau2pole(0.005));
process(l, r) = l, r <: *(1-mix), *(1-mix), mono2stereo :> _,_
with {
mono2stereo = + : pc2 * mix <: _,_;
pc2 = an.amp_follower_ud(attack, release) <: (ba.midikey2hz(basepitch + (pitchmod * _)): os.triangle), _ : *;
}; |
22466436b3e79df90801c91c8d34ecf5a490b67cf02ed114d0bf597c5e6725e8 | pingdynasty/OwlPatches | GuitarixBMfp.dsp | declare id "bmpf";
declare name "BigMuffFuzzPedal";
declare shortname "FuzzPedal";
declare category "Distortion";
declare description "BigMuffFuzzPedal";
import("guitarix.lib");
import("stdfaust.lib");
bigmuff = _<: filter1,filter2:>_ with {
tone = vslider("Tone[OWL:C]",0.5,0,1,0.01);
filter1 = fi.highpass( 1, 1856):*(tone);
filter2 = fi.lowpass( 1, 408 ) :*(1-tone);
};
bmfp = _<:*(dry),(*(wet):*(gain):bigmuff:fuzz:fuzzy:fiz):>downfilter with {
//fuzz(x) = x-0.15*x^2-0.15*x^3;
//fuzz(x) = 1.5*x-0.5*x^3;
fuzz(x) = (1+drive/101)*x/(1+drive/101*abs(x));
drive = vslider("Drive[OWL:B]", 1, -3, 100, 1);
fuzzy = fuzzy_tube(2,1,0.5,drive);
fiz(x) = x+(x^7);
downfilter = fi.lowpass(1,5631): fi.highpass(1,80);
gain = vslider("Gain[OWL:A]",0,-36,20,0.1) : ba.db2linear : smoothi(0.999);
wet = vslider("Mix[OWL:D]", 50, 0, 100, 1) : /(100);
dry = 1 - wet;
};
process = bmfp, bmfp;
| https://raw.githubusercontent.com/pingdynasty/OwlPatches/148057fe41e53e48cd39d077d989a767c16c62ac/Guitarix/GuitarixBMfp.dsp | faust | fuzz(x) = x-0.15*x^2-0.15*x^3;
fuzz(x) = 1.5*x-0.5*x^3; | declare id "bmpf";
declare name "BigMuffFuzzPedal";
declare shortname "FuzzPedal";
declare category "Distortion";
declare description "BigMuffFuzzPedal";
import("guitarix.lib");
import("stdfaust.lib");
bigmuff = _<: filter1,filter2:>_ with {
tone = vslider("Tone[OWL:C]",0.5,0,1,0.01);
filter1 = fi.highpass( 1, 1856):*(tone);
filter2 = fi.lowpass( 1, 408 ) :*(1-tone);
};
bmfp = _<:*(dry),(*(wet):*(gain):bigmuff:fuzz:fuzzy:fiz):>downfilter with {
fuzz(x) = (1+drive/101)*x/(1+drive/101*abs(x));
drive = vslider("Drive[OWL:B]", 1, -3, 100, 1);
fuzzy = fuzzy_tube(2,1,0.5,drive);
fiz(x) = x+(x^7);
downfilter = fi.lowpass(1,5631): fi.highpass(1,80);
gain = vslider("Gain[OWL:A]",0,-36,20,0.1) : ba.db2linear : smoothi(0.999);
wet = vslider("Mix[OWL:D]", 50, 0, 100, 1) : /(100);
dry = 1 - wet;
};
process = bmfp, bmfp;
|
58a35fd5fe98af93a99ac88153405e1a9bf6d9faed3dfab8ca7e813ce323453f | pingdynasty/OwlPatches | PitchShifter.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("stdfaust.lib");
transpose (w, x, s, sig) =
fdelay1s(d,sig)*ma.fmin(d/x,1) + fdelay1s(d+w,sig)*(1-ma.fmin(d/x,1))
with {
i = 1 - pow(2, s/12);
d = i : (+ : +(w) : fmod(_,w)) ~ _;
};
pitchshifter = ef.transpose(hslider("Window[style:knob][OWL:PARAMETER_B]", 1000, 50, 10000, 1),
hslider("Crossfade[style:knob][OWL:PARAMETER_C]", 10, 1, 10000, 1),
hslider("Pitch Shift[style:knob][OWL:PARAMETER_A]", 0, -12, +12, 0.1) +
hslider("Super Pitch[style:knob][OWL:PARAMETER_E]", 0, 0, 12, 0.01)
);
// add dry wet control
stereodrywet (monofx) = _,_ <: *(1-dw), *(1-dw), monofx*dw, monofx*dw :> _,_
with {
dw = hslider("Dry/Wet[OWL:PARAMETER_D]",0.5,0,1,0.01);
};
process = stereodrywet(pitchshifter);
| https://raw.githubusercontent.com/pingdynasty/OwlPatches/2be8a65bb257b53ee7ee0b9d4b5a1ad249e16dab/Faust/PitchShifter.dsp | faust | ----------------------------
very simple real time pitch shifter
----------------------------
add dry wet control | declare name "pitch-shifter";
declare version "1.0";
declare author "Grame";
declare license "BSD";
declare copyright "(c)GRAME 2006";
import("stdfaust.lib");
transpose (w, x, s, sig) =
fdelay1s(d,sig)*ma.fmin(d/x,1) + fdelay1s(d+w,sig)*(1-ma.fmin(d/x,1))
with {
i = 1 - pow(2, s/12);
d = i : (+ : +(w) : fmod(_,w)) ~ _;
};
pitchshifter = ef.transpose(hslider("Window[style:knob][OWL:PARAMETER_B]", 1000, 50, 10000, 1),
hslider("Crossfade[style:knob][OWL:PARAMETER_C]", 10, 1, 10000, 1),
hslider("Pitch Shift[style:knob][OWL:PARAMETER_A]", 0, -12, +12, 0.1) +
hslider("Super Pitch[style:knob][OWL:PARAMETER_E]", 0, 0, 12, 0.01)
);
stereodrywet (monofx) = _,_ <: *(1-dw), *(1-dw), monofx*dw, monofx*dw :> _,_
with {
dw = hslider("Dry/Wet[OWL:PARAMETER_D]",0.5,0,1,0.01);
};
process = stereodrywet(pitchshifter);
|
28e0550c5cc2e783568c543081a09ea97c1f29eac91fbbccf443d10d1bb74352 | publicsamples/Xolotls-Weird-Delay | khp.dsp | declare name "korg35HPF";
declare description "Demonstration of the Korg 35 LPF";
declare author "Eric Tarr";
import("stdfaust.lib");
Q = hslider("Q",1,0.5,10,0.01);
normFreq = hslider("freq",0.5,0,1,0.001):si.smoo;
process = ve.korg35HPF(normFreq,Q), ve.korg35HPF(normFreq,Q);
| https://raw.githubusercontent.com/publicsamples/Xolotls-Weird-Delay/dc304161575f8abca9ae4a878efde701126b18be/DspNetworks/CodeLibrary/faust/khp.dsp | faust | declare name "korg35HPF";
declare description "Demonstration of the Korg 35 LPF";
declare author "Eric Tarr";
import("stdfaust.lib");
Q = hslider("Q",1,0.5,10,0.01);
normFreq = hslider("freq",0.5,0,1,0.001):si.smoo;
process = ve.korg35HPF(normFreq,Q), ve.korg35HPF(normFreq,Q);
|
|
253c89f6defbc025d89c90c5f08774b3f96c94bc09d9bcaf6483dc2278a509b1 | publicsamples/Xolotls-Weird-Delay | klp.dsp | declare name "korg35LPF";
declare description "Demonstration of the Korg 35 LPF";
declare author "Eric Tarr";
import("stdfaust.lib");
Q = hslider("Q",1,0.5,10,0.01);
normFreq = hslider("freq",0.5,0,1,0.001):si.smoo;
process = ve.korg35LPF(normFreq,Q), ve.korg35LPF(normFreq,Q);
| https://raw.githubusercontent.com/publicsamples/Xolotls-Weird-Delay/dc304161575f8abca9ae4a878efde701126b18be/DspNetworks/CodeLibrary/faust/klp.dsp | faust | declare name "korg35LPF";
declare description "Demonstration of the Korg 35 LPF";
declare author "Eric Tarr";
import("stdfaust.lib");
Q = hslider("Q",1,0.5,10,0.01);
normFreq = hslider("freq",0.5,0,1,0.001):si.smoo;
process = ve.korg35LPF(normFreq,Q), ve.korg35LPF(normFreq,Q);
|
|
c020373987551403ad5e3746a1e8db51e0f8c455750545dc45960065b7c948cf | jpburstrom/bubblebass | pitchTracker.dsp | declare name "GR Pitch Tracker";
declare description "Mono GR-300 style pitch tracker";
declare author "Johannes Burström ([email protected])";
declare copyright "Johannes Burström";
declare version "0.1";
declare licence "GPL";
import("stdfaust.lib");
freq = hslider("Frequency [unit:hz]", 32.7, 5.0, 20000., 0.001);
pitchTracker(x, freq) = output with {
maxFreq = 640;
rq = 1;
halfbw = 0.1 * freq * 0.5;
fl = freq - halfbw;
fu = freq + halfbw;
//Rectify signal
rectify = (_ * 1e+02) >= 0;
//Inverse triggers - zero when square is 1, -1
triggers = fi.tf21(1, -1, 0, 0, 0) <: _ != -1, _ != 1;
trig2saw = _, 1 : fi.pole;
makeSaws = trig2saw, trig2saw, 1 - _, 1 - _;
//Input: pair of saw waves, output: denominator
denom = route(4, 4, (1, 2), (4, 1), (2, 4), (3, 3)) : ba.latch, ba.latch: + : max(ma.SR / maxFreq, _ - 3);
outputSaw = fi.dcblocker((_/_) * 2);
outputPitch = !, max(ma.SR/_, 0);
output = x : fi.bandpass(1, fl, fu) : rectify <: triggers <: makeSaws <: _, !, !, !, denom <: outputSaw, outputPitch;
};
process(x) = x : pitchTracker(_, freq);
| https://raw.githubusercontent.com/jpburstrom/bubblebass/2e4fa3e49eceeed5a9dff2431d345acea6b29a8e/faust/pitchTracker.dsp | faust | Rectify signal
Inverse triggers - zero when square is 1, -1
Input: pair of saw waves, output: denominator | declare name "GR Pitch Tracker";
declare description "Mono GR-300 style pitch tracker";
declare author "Johannes Burström ([email protected])";
declare copyright "Johannes Burström";
declare version "0.1";
declare licence "GPL";
import("stdfaust.lib");
freq = hslider("Frequency [unit:hz]", 32.7, 5.0, 20000., 0.001);
pitchTracker(x, freq) = output with {
maxFreq = 640;
rq = 1;
halfbw = 0.1 * freq * 0.5;
fl = freq - halfbw;
fu = freq + halfbw;
rectify = (_ * 1e+02) >= 0;
triggers = fi.tf21(1, -1, 0, 0, 0) <: _ != -1, _ != 1;
trig2saw = _, 1 : fi.pole;
makeSaws = trig2saw, trig2saw, 1 - _, 1 - _;
denom = route(4, 4, (1, 2), (4, 1), (2, 4), (3, 3)) : ba.latch, ba.latch: + : max(ma.SR / maxFreq, _ - 3);
outputSaw = fi.dcblocker((_/_) * 2);
outputPitch = !, max(ma.SR/_, 0);
output = x : fi.bandpass(1, fl, fu) : rectify <: triggers <: makeSaws <: _, !, !, !, denom <: outputSaw, outputPitch;
};
process(x) = x : pitchTracker(_, freq);
|
eee085a6762fab64aaea7cf965535d8229bfd65acbc042c7e344ed687056d5ed | madskjeldgaard/mkfaustplugins | CombLPFParallel.dsp | declare name "CombLPFParallel";
declare author "Mads Kjeldgaard";
declare copyright "Mads Kjeldgaard";
declare version "1.00";
declare license "GPL";
import("stdfaust.lib");
import("../../lib/mkdelay.dsp");
// Static
order = 4;
numDelays = 4;
maxdelay = 1 * ma.SR;
// Controls
delay = vslider("delaytime",0.1,0.001,2.0,0.01) : *(ma.SR) : si.smoo;
fb = vslider("fb",0.1,0.001,2.0,0.01);
lpf = vslider("cutoff",500,20.0,20000.0,1);
delayOffset=vslider("delayoffset",0.5,0.0,1.0,0.00001) : si.smoo;
// Process
process = _ <: mkd.parallel_comb_lpf(numDelays, order, maxdelay, delay, delayOffset, fb, lpf);
| https://raw.githubusercontent.com/madskjeldgaard/mkfaustplugins/6b838d0b10832081b85a6cd921c564e89288b13e/plugins/CombLPFParallel/CombLPFParallel.dsp | faust | Static
Controls
Process | declare name "CombLPFParallel";
declare author "Mads Kjeldgaard";
declare copyright "Mads Kjeldgaard";
declare version "1.00";
declare license "GPL";
import("stdfaust.lib");
import("../../lib/mkdelay.dsp");
order = 4;
numDelays = 4;
maxdelay = 1 * ma.SR;
delay = vslider("delaytime",0.1,0.001,2.0,0.01) : *(ma.SR) : si.smoo;
fb = vslider("fb",0.1,0.001,2.0,0.01);
lpf = vslider("cutoff",500,20.0,20000.0,1);
delayOffset=vslider("delayoffset",0.5,0.0,1.0,0.00001) : si.smoo;
process = _ <: mkd.parallel_comb_lpf(numDelays, order, maxdelay, delay, delayOffset, fb, lpf);
|
c00f8eaef8a9cfd81fa5b514d148994cf13fd74e04ccfc13017f077bfadb9d3c | jpburstrom/bubblebass | compLimiter2.dsp | declare name "compLimiter2";
import("stdfaust.lib");
channels = 2;
strength = hslider("strength", 0, 0, 1, 0.001); //write a specific position input signal operation here
thresh = hslider("thresh [unit:dB]", -20, -60, 0, 0.1);
threshLim = hslider("threshLim [unit:dB]", -6, -60, 0, 0.1);
att = hslider("att [unit:ms] [scale:log] [tooltip: Time constant in ms]", 8, 1, 100, 0.1) : *(0.001) : max(1/ma.SR);
rel = hslider("rel [unit:ms] [scale:log] [tooltip: Time constant in ms]", 500, 1, 1000, 0.1) : *(0.001) : max(1/ma.SR);
knee = hslider("knee", 3, 0, 18, 0.1);
makeupgain = hslider("makeupGain [unit:dB]
[tooltip: The compressed-signal output level is increased by this amount
(in dB) to make up for the level lost due to compression]",
0, 0, 24, 0.1) : ba.db2linear;
link = 0;
process = si.bus(channels) : co.RMS_FBcompressor_peak_limiter_N_chan(strength,thresh,threshLim,att,rel,knee,link,_,channels) : par(i, 2, *(makeupgain)) : si.bus(channels);
| https://raw.githubusercontent.com/jpburstrom/bubblebass/2e4fa3e49eceeed5a9dff2431d345acea6b29a8e/faust/compLimiter2.dsp | faust | write a specific position input signal operation here | declare name "compLimiter2";
import("stdfaust.lib");
channels = 2;
thresh = hslider("thresh [unit:dB]", -20, -60, 0, 0.1);
threshLim = hslider("threshLim [unit:dB]", -6, -60, 0, 0.1);
att = hslider("att [unit:ms] [scale:log] [tooltip: Time constant in ms]", 8, 1, 100, 0.1) : *(0.001) : max(1/ma.SR);
rel = hslider("rel [unit:ms] [scale:log] [tooltip: Time constant in ms]", 500, 1, 1000, 0.1) : *(0.001) : max(1/ma.SR);
knee = hslider("knee", 3, 0, 18, 0.1);
makeupgain = hslider("makeupGain [unit:dB]
[tooltip: The compressed-signal output level is increased by this amount
(in dB) to make up for the level lost due to compression]",
0, 0, 24, 0.1) : ba.db2linear;
link = 0;
process = si.bus(channels) : co.RMS_FBcompressor_peak_limiter_N_chan(strength,thresh,threshLim,att,rel,knee,link,_,channels) : par(i, 2, *(makeupgain)) : si.bus(channels);
|
dc27e74755173c67d496f25e0ae9aeda470dc3aa1e56d19f53cbc9265503ae08 | geofholbrook/sequence-collab | filteredSaw.dsp | import("stdfaust.lib");
freq = nentry("freq", 100, 10, 10000, 1);
gain = nentry("gain", 1, 0, 1, .01);
// process = os.triangle(freq) * 0.1 * gain * (button("gate") : (en.ar(0.01, 2) ^ 10));
process = (button("gate") : en.arfe(0.001, 0.5, 0)) * os.sawtooth(freq) : fi.lowpass(2, 500) * gain; | https://raw.githubusercontent.com/geofholbrook/sequence-collab/779c0d085f67dec2f6842b130b8474c7ed367163/src/sound-generation/faust/dsp-files/filteredSaw.dsp | faust | process = os.triangle(freq) * 0.1 * gain * (button("gate") : (en.ar(0.01, 2) ^ 10)); | import("stdfaust.lib");
freq = nentry("freq", 100, 10, 10000, 1);
gain = nentry("gain", 1, 0, 1, .01);
process = (button("gate") : en.arfe(0.001, 0.5, 0)) * os.sawtooth(freq) : fi.lowpass(2, 500) * gain; |
dd3938f0175f39d976e6f02adb9064dcc2d970666db0a1bd1542809e9369eff5 | lsgng/faust-wasm-three-base | DSP.dsp | import("stdfaust.lib");
freqA = hslider("mouseX", 0.0, 0.0, 1.0, 0.0001);
freqB = hslider("mouseY", 0.0, 0.0, 1.0, 0.0001);
process = os.osc(freqA * 1000 + 100) * 0.5, os.osc(freqB * 1000 + 100) * 0.5;
| https://raw.githubusercontent.com/lsgng/faust-wasm-three-base/517a76bb88517fa25d6cddff1005377a9f6ef17a/DSP.dsp | faust | import("stdfaust.lib");
freqA = hslider("mouseX", 0.0, 0.0, 1.0, 0.0001);
freqB = hslider("mouseY", 0.0, 0.0, 1.0, 0.0001);
process = os.osc(freqA * 1000 + 100) * 0.5, os.osc(freqB * 1000 + 100) * 0.5;
|
|
b27b53d9c4c0d851f7fb31530aaac72e73a6faf341d3252f06600147e5c8e5f5 | oshibka404/sound_design | midi_cc.dsp | import("stdfaust.lib");
gate = button("gate") : si.smoo;
gain = hslider("gain", 0.42, 0, 1, 0.01);
baseFreq = hslider("freq", 440, 20, 20000, 1);
bend = hslider("bend[midi:pitchwheel]", 1, 0, 10, 0.01);
freq = baseFreq * bend : si.polySmooth(gate, 0.9, 1);
modulation = hslider("modulation[midi:ctrl 1]", 0, 0, 1, 0.01);
| https://raw.githubusercontent.com/oshibka404/sound_design/8d0505f4f6e76db08f52061b2b5f9a76079147b9/DSP/midi_cc.dsp | faust | import("stdfaust.lib");
gate = button("gate") : si.smoo;
gain = hslider("gain", 0.42, 0, 1, 0.01);
baseFreq = hslider("freq", 440, 20, 20000, 1);
bend = hslider("bend[midi:pitchwheel]", 1, 0, 10, 0.01);
freq = baseFreq * bend : si.polySmooth(gate, 0.9, 1);
modulation = hslider("modulation[midi:ctrl 1]", 0, 0, 1, 0.01);
|
|
6158b2cc13c98fee4ba6726c1f3754cbd2d48d4a31bf3afffe778296795ed27c | LSSN/2020-01-23-2a-dsp-ChiaraCosseddu | verifica.dsp | //la sintesi sottrattiva è formata da filtro passabasso (lowpass), che è un filtro che attenua porzioni di spettro sopra una
//frequenza data, e il filtro passa alto (highpass)
import("stdfaust.lib");
cutoff = vslider ("cut-off[style:knob]",1000,20,20000,1);
process = fi.lowpass (2,cutoff) : fi.highpass (2,cutoff);
| https://raw.githubusercontent.com/LSSN/2020-01-23-2a-dsp-ChiaraCosseddu/96dff1af6c1421f3cab3281c686aac996365a31a/verifica.dsp | faust | la sintesi sottrattiva è formata da filtro passabasso (lowpass), che è un filtro che attenua porzioni di spettro sopra una
frequenza data, e il filtro passa alto (highpass) | import("stdfaust.lib");
cutoff = vslider ("cut-off[style:knob]",1000,20,20000,1);
process = fi.lowpass (2,cutoff) : fi.highpass (2,cutoff);
|
238d9ee2e5a094b33a6843732d96ac3de30e2f5a182571883cb4434145949c36 | biomassa/301dev | msproc.dsp | import("stdfaust.lib");
xytoms (x,y) = (x+y),(x-y);
ctrl (m,s) = (m*hslider("mAmt",1,0,1,0.01)), (s*hslider("sAmt",1,0,1,0.01));
mstoxy (m,s) = (m+s),(m-s);
// Name the ins and outs of the `process` function for use in the er-301 object
declare er301_in1 "InL";
declare er301_in2 "InR";
declare er301_out1 "OutL";
declare er301_out2 "OutR";
// main()
process = xytoms : ctrl : mstoxy; | https://raw.githubusercontent.com/biomassa/301dev/04ac361e16d2ef184d689d51035be68b68e7c896/msproc/dsp/msproc.dsp | faust | Name the ins and outs of the `process` function for use in the er-301 object
main() | import("stdfaust.lib");
xytoms (x,y) = (x+y),(x-y);
ctrl (m,s) = (m*hslider("mAmt",1,0,1,0.01)), (s*hslider("sAmt",1,0,1,0.01));
mstoxy (m,s) = (m+s),(m-s);
declare er301_in1 "InL";
declare er301_in2 "InR";
declare er301_out1 "OutL";
declare er301_out2 "OutR";
process = xytoms : ctrl : mstoxy; |
ceb7ef9f449b381c99bc22f3232764b0123f69de916e3c64007ffb1178003d07 | jpecquais/faustLab | multichannelCorrelMeter.dsp | import("stdfaust.lib");
//process = _,_ <: ( * : fi.lowpass(2,10)) , ((^(2) : fi.lowpass(2,10) , ^(2) : fi.lowpass(2,10)) : * : sqrt) : /;
N = 10;
correlMeterTop = * : fi.lowpass(2,N);
correlMeterBottom = ((^(2) : fi.lowpass(2,N)) , (^(2) : fi.lowpass(2,N))) : * : sqrt;
correlMeter(i) = (correlMeterTop, correlMeterBottom) : / : hbargraph("CorrelMeter %i", -1, 1);
process = par(i,5,correlMeter(i));//no.pink_noise : fi.mth_octave_filterbank5(3,20000,12) : par(i, 12, (_ <: (_, @(1000)) <: correlMeter(i) :> !)) : no.noise;//correlMeter ;
// : par(i,N,_) | https://raw.githubusercontent.com/jpecquais/faustLab/91f3121f6b82bf05962e676e7731fadef45628b8/dsp/Metering/multichannelCorrelMeter.dsp | faust | process = _,_ <: ( * : fi.lowpass(2,10)) , ((^(2) : fi.lowpass(2,10) , ^(2) : fi.lowpass(2,10)) : * : sqrt) : /;
no.pink_noise : fi.mth_octave_filterbank5(3,20000,12) : par(i, 12, (_ <: (_, @(1000)) <: correlMeter(i) :> !)) : no.noise;//correlMeter ;
: par(i,N,_) | import("stdfaust.lib");
N = 10;
correlMeterTop = * : fi.lowpass(2,N);
correlMeterBottom = ((^(2) : fi.lowpass(2,N)) , (^(2) : fi.lowpass(2,N))) : * : sqrt;
correlMeter(i) = (correlMeterTop, correlMeterBottom) : / : hbargraph("CorrelMeter %i", -1, 1); |
3e204415a773f4d9102b87bd73c4287d7bc7409e02a9e5b14ca1bd4594326529 | Tonton-Blax/supasynth | osync.dsp | declare name "osc";
declare version "1.0";
declare author "Grame";
declare license "BSD";
declare copyright "(c)GRAME 2009";
//-----------------------------------------------
// Sinusoidal Oscillator
//-----------------------------------------------
import("stdfaust.lib");
import("oscillators.lib");
sigosc = os.saw2(freqsaw) * checkbox("Saw")
+ os.oscs(freqsync) * checkbox("Sine");
vol = hslider("volume [unit:dB]", -96, -96, 0, 0.1) : ba.db2linear : si.smoo;
freq = hslider("freq [unit:Hz]", 300, 20, 2400, 1);
freqsync = hslider("freq sync [unit:Hz]", 300, 20, 2400, 1);
freqsaw = hslider("freq saw [unit:Hz]", 300, 20, 2400, 1);
osync = vgroup("Oscillator Sync", hs_oscsin(freq, sigosc) * vol); | https://raw.githubusercontent.com/Tonton-Blax/supasynth/1f1053a0fd38a07894ea8b1121f4cfe8618fe688/faust/osync.dsp | faust | -----------------------------------------------
Sinusoidal Oscillator
----------------------------------------------- | declare name "osc";
declare version "1.0";
declare author "Grame";
declare license "BSD";
declare copyright "(c)GRAME 2009";
import("stdfaust.lib");
import("oscillators.lib");
sigosc = os.saw2(freqsaw) * checkbox("Saw")
+ os.oscs(freqsync) * checkbox("Sine");
vol = hslider("volume [unit:dB]", -96, -96, 0, 0.1) : ba.db2linear : si.smoo;
freq = hslider("freq [unit:Hz]", 300, 20, 2400, 1);
freqsync = hslider("freq sync [unit:Hz]", 300, 20, 2400, 1);
freqsaw = hslider("freq saw [unit:Hz]", 300, 20, 2400, 1);
osync = vgroup("Oscillator Sync", hs_oscsin(freq, sigosc) * vol); |
ec51dd9ecc366a3d48eddbf5b10fba599792fbae52ac477fd45fb34810e3f637 | hiroaki0923/Faust-Samples | 2op-fm.dsp |
// Simple 2-operator FM synthesizer
//
// Hiroaki Kimura
declare nvoices "16";
import("stdfaust.lib");
//operator function
operator(freq, index, adsr, amp, phase) = os.oscp(freq * index, phase) * amp * adsr;
// UI elements
freq = hslider("/[2]freq",200,40,2000,0.01);
gain = hslider("/[3]gain",0.5,0,1,0.01);
gate = button("/[1]gate");
feedback = hslider("/[4]op1 feedback", 0, 0, 7, 1);
adsr(g) = vgroup("[9]ADSR", en.adsr(a, d, s, r, g))
with {
a = hslider("[1]attack", 0.1, 0, 10, 0.01);
d = hslider("[2]decay", 0.1, 0, 10, 0.01);
s = hslider("[3]sustain", 0.9, 0, 1, 0.01);
r = hslider("[4]release", 0.5, 0, 10, 0.01);
};
operator_control(ch, phase) = hgroup("[9]Operator #%ch", operator(freq, _index, _adsr, _amp, phase))
with {
_adsr = adsr(gate);
_index = vslider("[1]freq index",1,1,10,1);
_amp = vslider("[0]amp", 1,0,10,0.1);
};
//0, PI/16, PI/8, PI/4, PI/2, PI, PI x 2, PI x 4
feedbacktable = waveform{0,0.1963495,0.392699,0.785398,1.570796,3.141592,6.2831,12.566};
fbvalue = feedbacktable,int(feedback):rdtable;
op1 = operator_control(1) ~ * (fbvalue);
op2 = operator_control(2);
process = tgroup("[5]Operator control", op1:op2)*gain;
| https://raw.githubusercontent.com/hiroaki0923/Faust-Samples/48256e000352cdaa2b98955ee4d230bb40442d15/samples/2op-fm.dsp | faust | Simple 2-operator FM synthesizer
Hiroaki Kimura
operator function
UI elements
0, PI/16, PI/8, PI/4, PI/2, PI, PI x 2, PI x 4 |
declare nvoices "16";
import("stdfaust.lib");
operator(freq, index, adsr, amp, phase) = os.oscp(freq * index, phase) * amp * adsr;
freq = hslider("/[2]freq",200,40,2000,0.01);
gain = hslider("/[3]gain",0.5,0,1,0.01);
gate = button("/[1]gate");
feedback = hslider("/[4]op1 feedback", 0, 0, 7, 1);
adsr(g) = vgroup("[9]ADSR", en.adsr(a, d, s, r, g))
with {
a = hslider("[1]attack", 0.1, 0, 10, 0.01);
d = hslider("[2]decay", 0.1, 0, 10, 0.01);
s = hslider("[3]sustain", 0.9, 0, 1, 0.01);
r = hslider("[4]release", 0.5, 0, 10, 0.01);
};
operator_control(ch, phase) = hgroup("[9]Operator #%ch", operator(freq, _index, _adsr, _amp, phase))
with {
_adsr = adsr(gate);
_index = vslider("[1]freq index",1,1,10,1);
_amp = vslider("[0]amp", 1,0,10,0.1);
};
feedbacktable = waveform{0,0.1963495,0.392699,0.785398,1.570796,3.141592,6.2831,12.566};
fbvalue = feedbacktable,int(feedback):rdtable;
op1 = operator_control(1) ~ * (fbvalue);
op2 = operator_control(2);
process = tgroup("[5]Operator control", op1:op2)*gain;
|
8f822957cf14e1a55cff6baeacaf970cc1cd9fb6c47b5feea060cb77cc8dac6d | olilarkin/pMixFaustNodes | DualPitchShifter.dsp | declare name "Dual Pitch Shifter";
declare description "Dual Channel pitch shifter, based on Faust pitch_shifter.dsp by Grame";
declare author "Oli Larkin ([email protected])";
declare copyright "Oliver Larkin";
declare version "0.1";
declare licence "GPL";
import("stdfaust.lib");
msec = ma.SR/1000.0;
shiftl = hslider("Shift L [unit:semitones] [OWL:PARAMETER_A]", 0, -12, +12, 0.1);
shiftr = hslider("Shift R [unit:semitones] [OWL:PARAMETER_B]", 0, -12, +12, 0.1);
ws = hslider("Window Size [unit:ms] [OWL:PARAMETER_C]", 50, 20, 1000, 1) * msec : si.smooth(ba.tau2pole(0.005));
mix = hslider("Mix[OWL:PARAMETER_D]", 0.5, 0, 1, 0.01) : si.smooth(ba.tau2pole(0.005));
xf = 20 * msec;
process(l,r) = l,r <: *(1-mix), *(1-mix), ef.transpose(ws, xf, shiftl, l)*mix, ef.transpose(ws, xf, shiftr, r)*mix :> _,_;
| https://raw.githubusercontent.com/olilarkin/pMixFaustNodes/20da57783b03841f023a7edd4a3215ab3155218e/DualPitchShifter.dsp | faust | declare name "Dual Pitch Shifter";
declare description "Dual Channel pitch shifter, based on Faust pitch_shifter.dsp by Grame";
declare author "Oli Larkin ([email protected])";
declare copyright "Oliver Larkin";
declare version "0.1";
declare licence "GPL";
import("stdfaust.lib");
msec = ma.SR/1000.0;
shiftl = hslider("Shift L [unit:semitones] [OWL:PARAMETER_A]", 0, -12, +12, 0.1);
shiftr = hslider("Shift R [unit:semitones] [OWL:PARAMETER_B]", 0, -12, +12, 0.1);
ws = hslider("Window Size [unit:ms] [OWL:PARAMETER_C]", 50, 20, 1000, 1) * msec : si.smooth(ba.tau2pole(0.005));
mix = hslider("Mix[OWL:PARAMETER_D]", 0.5, 0, 1, 0.01) : si.smooth(ba.tau2pole(0.005));
xf = 20 * msec;
process(l,r) = l,r <: *(1-mix), *(1-mix), ef.transpose(ws, xf, shiftl, l)*mix, ef.transpose(ws, xf, shiftr, r)*mix :> _,_;
|
|
55c12284242913f6503b670afdedc8d309f06dc7be69fd15f59e365edabb94c3 | pingdynasty/MyPatches | granulator.dsp | // Based on FAUST demo
// Adapted for OWL: stereo, dry/wet mix, OWL parameter controls
//
///////////////////////////////////////////////////////////////////////////////////////////////////
//
// ANALOG IN:
// ANALOG 0 : Grain Size
// ANALOG 1 : Speed
// ANALOG 2 : Probability
// (others analog inputs are not used)
//
///////////////////////////////////////////////////////////////////////////////////////////////////
granulator = vgroup("Granulator", environment {
declare name "Granulator";
declare author "Adapted from sfIter by Christophe Lebreton";
/* =========== DESCRIPTION =============
- The granulator takes very small parts of a sound, called GRAINS, and plays them at a varying speed
- Front = Medium size grains
- Back = short grains
- Left Slow rhythm
- Right = Fast rhythm
- Bottom = Regular occurrences
- Head = Irregular occurrences
*/
import("stdfaust.lib");
process = hgroup("Granulator", *(excitation : ampf));
excitation = noiseburst(gate,P) * (gain);
ampf = an.amp_follower_ud(duree_env,duree_env);
//----------------------- NOISEBURST -------------------------
noiseburst(gate,P) = no.noise : *(gate : trigger(P))
with {
upfront(x) = (x-x') > 0;
decay(n,x) = x - (x>0)/n;
release(n) = + ~ decay(n);
trigger(n) = upfront : release(n) : > (0.0);
};
//-------------------------------------------------------------
P = freq; // fundamental period in samples
freq = hslider("[1]GrainSize[OWL:A]", 200, 5, 2205, 1);
// the frequency gives the white noise band width
Pmax = 4096; // maximum P (for de.delay-line allocation)
// PHASOR_BIN //////////////////////////////
phasor_bin(init) = (+(float(speed)/float(ma.SR)) : fmod(_,1.0)) ~ *(init);
gate = phasor_bin(1) : -(0.001) : pulsar;
gain = 1;
// PULSAR //////////////////////////////
// Pulsar allows to create a more or less random 'pulse'(proba).
pulsar = _ <: ((_<(ratio_env)) : @(100))*(proba>(_,abs(no.noise) : ba.latch));
speed = hslider("[2]Speed[OWL:B]", 10, 1, 20, 0.0001) : fi.lowpass(1,1);
ratio_env = 0.5;
fade = 0.5; // min > 0 to avoid division by 0
proba = hslider("[3]Probability[OWL:C]", 70, 50, 100, 1) * (0.01) : fi.lowpass(1,1);
duree_env = 1/(speed : /(ratio_env*(0.25)*fade));
}.process);
mix = hslider("Mix [OWL:D]", 0.5, 0, 1, 0.001);
process(l,r) = l,r <: *(1-mix), *(1-mix), granulator*mix, granulator*mix :> _,_;
| https://raw.githubusercontent.com/pingdynasty/MyPatches/ee20cdb03af54d42984f734fdfb2898d4aecd7ad/granulator.dsp | faust | Based on FAUST demo
Adapted for OWL: stereo, dry/wet mix, OWL parameter controls
/////////////////////////////////////////////////////////////////////////////////////////////////
ANALOG IN:
ANALOG 0 : Grain Size
ANALOG 1 : Speed
ANALOG 2 : Probability
(others analog inputs are not used)
/////////////////////////////////////////////////////////////////////////////////////////////////
=========== DESCRIPTION =============
- The granulator takes very small parts of a sound, called GRAINS, and plays them at a varying speed
- Front = Medium size grains
- Back = short grains
- Left Slow rhythm
- Right = Fast rhythm
- Bottom = Regular occurrences
- Head = Irregular occurrences
----------------------- NOISEBURST -------------------------
-------------------------------------------------------------
fundamental period in samples
the frequency gives the white noise band width
maximum P (for de.delay-line allocation)
PHASOR_BIN //////////////////////////////
PULSAR //////////////////////////////
Pulsar allows to create a more or less random 'pulse'(proba).
min > 0 to avoid division by 0 |
granulator = vgroup("Granulator", environment {
declare name "Granulator";
declare author "Adapted from sfIter by Christophe Lebreton";
import("stdfaust.lib");
process = hgroup("Granulator", *(excitation : ampf));
excitation = noiseburst(gate,P) * (gain);
ampf = an.amp_follower_ud(duree_env,duree_env);
noiseburst(gate,P) = no.noise : *(gate : trigger(P))
with {
upfront(x) = (x-x') > 0;
decay(n,x) = x - (x>0)/n;
release(n) = + ~ decay(n);
trigger(n) = upfront : release(n) : > (0.0);
};
freq = hslider("[1]GrainSize[OWL:A]", 200, 5, 2205, 1);
phasor_bin(init) = (+(float(speed)/float(ma.SR)) : fmod(_,1.0)) ~ *(init);
gate = phasor_bin(1) : -(0.001) : pulsar;
gain = 1;
pulsar = _ <: ((_<(ratio_env)) : @(100))*(proba>(_,abs(no.noise) : ba.latch));
speed = hslider("[2]Speed[OWL:B]", 10, 1, 20, 0.0001) : fi.lowpass(1,1);
ratio_env = 0.5;
proba = hslider("[3]Probability[OWL:C]", 70, 50, 100, 1) * (0.01) : fi.lowpass(1,1);
duree_env = 1/(speed : /(ratio_env*(0.25)*fade));
}.process);
mix = hslider("Mix [OWL:D]", 0.5, 0, 1, 0.001);
process(l,r) = l,r <: *(1-mix), *(1-mix), granulator*mix, granulator*mix :> _,_;
|
54e99f32d3aa974d07f01a30c1ff35e5c6b578bf8ff99a1abacc7e153edb3d13 | tommitytom/RetroPlug | IPlugFaustDSP.dsp | declare name "FaustExample";
import("stdfaust.lib");
g = vslider("Gain", 0, 0., 1, 0.1);
process = os.osc(440) * g, os.osc(441) * g;
| https://raw.githubusercontent.com/tommitytom/RetroPlug/62032ef1f8d5d7b83f212c92f4a11799c3342aa1/thirdparty/iPlug2/Examples/IPlugFaustDSP/IPlugFaustDSP.dsp | faust | declare name "FaustExample";
import("stdfaust.lib");
g = vslider("Gain", 0, 0., 1, 0.1);
process = os.osc(440) * g, os.osc(441) * g;
|
|
65e29f6650239a47df277393463bd72b800b7206397100fc07be7305d87ac0ee | grammaton/metm | immdt.dsp | import("stdfaust.lib");
// INFERNAL MACHINE MINIMUM DELAY TIME 40 MICROSECOND
// WHEN SAMPLE RATE MAKE SENSE
immdt = (0.04/1000)*ma.SR:int;
process = no.pink_noise*0.25<:_,(@(immdt)+_),(@(immdt)-_);
| https://raw.githubusercontent.com/grammaton/metm/e3ca76fc8b8bbb10a0eb77a7056a6056a5c7feda/CAPITOLI/0500/CODES/immdt.dsp | faust | INFERNAL MACHINE MINIMUM DELAY TIME 40 MICROSECOND
WHEN SAMPLE RATE MAKE SENSE | import("stdfaust.lib");
immdt = (0.04/1000)*ma.SR:int;
process = no.pink_noise*0.25<:_,(@(immdt)+_),(@(immdt)-_);
|
99b0e05e6c8c4c39c3ccf5b50f3207c61923d0f2508417d2bb4fd99c52276ab5 | rottingsounds/bitDSP-faust | Trck.dsp | declare name "Trck";
declare author "Till Bovermann";
declare reference "http://rottingsounds.org";
import("stdfaust.lib");
bit = library("bitDSP.lib");
bit_gen = library("bitDSP_gen.lib");
// plot
// CXXFLAGS="-I ../include" faust2csvplot -I ../lib Trck.dsp
// ./boolOsc0 -n 10
// compile
// CXXFLAGS="-I ../../../include" faust2caqt -I ../lib Trck.dsp
// ./Trck
import("stdfaust.lib");
// bit = library("bitDSP.lib");
c1 = hslider("c1",0,0,1,0.001);
c2 = hslider("c2",0.5,0,1,0.001);
rot = hslider("rot",0.5,0, ma.PI, 0.001) : si.smoo;
lFreq = hslider("lFreq [scale:log]",100,25, 10000, 1) : si.smoo;
hFreq = hslider("hFreq [scale:log]",100,25, 10000, 1) : si.smoo;
vol = hslider("vol", 0, 0, 1, 0.0001) : si.smoo;
rotate2(r, x, y) = xout, yout with {
xout = cos(r) * x + sin(r) * y;
yout = cos(r) * y - sin(r) * x;
};
process = bit_gen.trck(c1, c2)
: par( i, 2, _ * vol)
: par( i, 2, _ * 2 -1 <: fi.svf.lp(lFreq, 20) - fi.svf.lp(hFreq, 50))
: rotate2(rot);
//////////////////
| https://raw.githubusercontent.com/rottingsounds/bitDSP-faust/c436ecad29c57d46d5e3e59110c25e71a3761fc5/synths/Trck.dsp | faust | plot
CXXFLAGS="-I ../include" faust2csvplot -I ../lib Trck.dsp
./boolOsc0 -n 10
compile
CXXFLAGS="-I ../../../include" faust2caqt -I ../lib Trck.dsp
./Trck
bit = library("bitDSP.lib");
//////////////// | declare name "Trck";
declare author "Till Bovermann";
declare reference "http://rottingsounds.org";
import("stdfaust.lib");
bit = library("bitDSP.lib");
bit_gen = library("bitDSP_gen.lib");
import("stdfaust.lib");
c1 = hslider("c1",0,0,1,0.001);
c2 = hslider("c2",0.5,0,1,0.001);
rot = hslider("rot",0.5,0, ma.PI, 0.001) : si.smoo;
lFreq = hslider("lFreq [scale:log]",100,25, 10000, 1) : si.smoo;
hFreq = hslider("hFreq [scale:log]",100,25, 10000, 1) : si.smoo;
vol = hslider("vol", 0, 0, 1, 0.0001) : si.smoo;
rotate2(r, x, y) = xout, yout with {
xout = cos(r) * x + sin(r) * y;
yout = cos(r) * y - sin(r) * x;
};
process = bit_gen.trck(c1, c2)
: par( i, 2, _ * vol)
: par( i, 2, _ * 2 -1 <: fi.svf.lp(lFreq, 20) - fi.svf.lp(hFreq, 50))
: rotate2(rot);
|
889ee7e54e4fa4fbdd7c5cc5575523c9eead23a645b69fb33a678b6b03307fb6 | lupu2022/YangJingRiver | os.osc.dsp | import("stdfaust.lib");
freq = hslider("freq", 440, 25, 11000, 0.1);
process = os.osc(freq);
| https://raw.githubusercontent.com/lupu2022/YangJingRiver/9d73b438902c3f8da5f8906258eb1be7fb51e920/src/faust/dsp/os.osc.dsp | faust | import("stdfaust.lib");
freq = hslider("freq", 440, 25, 11000, 0.1);
process = os.osc(freq);
|
|
98c6c2bef5b73445d2992b908fe264d47d21c28a7a2bf6e40ad94925cfcb561e | matthiasmeissen/sound-generator | engine_03_220311.dsp | import("stdfaust.lib");
freq = hslider("freq",60,20,20000,0.01) : ba.midikey2hz;
attack = hslider("attack", 0.02, 0, 2, 0.01);
release = hslider("release", 0.6, 0, 2, 0.01);
gate = button("gate");
gain = hslider("gain",0.1,0,1,0.01);
env1 = gate : en.adsr(attack, 0, 1, release);
osc1 = os.oscsin(freq) * gain;
osc2 = os.oscsin(freq / 2) * gain;
osc = (osc1 + osc2) * env1;
echo (d, f) = + ~ (@(d) : *(f));
process = osc : echo(ma.SR / 4, 0.8) <: _,_;
| https://raw.githubusercontent.com/matthiasmeissen/sound-generator/ec5a40b9c12471c57f9927760a3852c2ea598fb5/engines/engine_03_220311.dsp | faust | import("stdfaust.lib");
freq = hslider("freq",60,20,20000,0.01) : ba.midikey2hz;
attack = hslider("attack", 0.02, 0, 2, 0.01);
release = hslider("release", 0.6, 0, 2, 0.01);
gate = button("gate");
gain = hslider("gain",0.1,0,1,0.01);
env1 = gate : en.adsr(attack, 0, 1, release);
osc1 = os.oscsin(freq) * gain;
osc2 = os.oscsin(freq / 2) * gain;
osc = (osc1 + osc2) * env1;
echo (d, f) = + ~ (@(d) : *(f));
process = osc : echo(ma.SR / 4, 0.8) <: _,_;
|
|
d358a583976ec44261ffdc16f799e7f16936d788eee10beb7eef1a78c1f2b5a8 | SimplyOnMyWay/harp-model | ARE.dsp | import("stdfaust.lib");
process = gate : envARE with { // * no.noise : fr <: _,_ with {
a_ = 0.005;
len = 8487;
r_ = (len - (a_*ma.SR))/ma.SR;//0.1718;
s_ = 0.1;
f_ = 0.05;
gate = (1-(1@(a_*ma.SR)));// + 0.5*(1@750-(1@1700));
envASRFE = en.asrfe(a_,s_,r_,f_);
envARFE = en.arfe(a_,r_,f_);
envARE = en.are(a_,r_);
fr = fi.iir(b,a) with {
b = 1.0038,-0.16283,0.0062466,-0.10801,-0.24058, 0.029842,-0.121,-0.16796,-0.15775,-0.20561,0.0077204;
a = -1.3267,0.61699,-0.75244,0.5751,-0.2797,0.497,-0.45368,0.3945,-0.22875,0.0441;
};
};
| https://raw.githubusercontent.com/SimplyOnMyWay/harp-model/965ebb736946e300d019d47ef1242c97d0aced13/faust_code/ARE.dsp | faust | * no.noise : fr <: _,_ with {
0.1718;
+ 0.5*(1@750-(1@1700)); | import("stdfaust.lib");
a_ = 0.005;
len = 8487;
s_ = 0.1;
f_ = 0.05;
envASRFE = en.asrfe(a_,s_,r_,f_);
envARFE = en.arfe(a_,r_,f_);
envARE = en.are(a_,r_);
fr = fi.iir(b,a) with {
b = 1.0038,-0.16283,0.0062466,-0.10801,-0.24058, 0.029842,-0.121,-0.16796,-0.15775,-0.20561,0.0077204;
a = -1.3267,0.61699,-0.75244,0.5751,-0.2797,0.497,-0.45368,0.3945,-0.22875,0.0441;
};
};
|
885c0233944c5f2493db52527d33d25031ec098a8244c8935ae6c4e5c2f92a32 | cchafe/wfs | dj.dsp | declare name "dj";
import("stdfaust.lib");
freq = hslider("freq",72,50,128,0.01);
gain = hslider("gain",0.5,0,1,0.01);
pos = hslider("pos",0.3,0,1,0.01);
sharp = hslider("sharp",0.4,0,1,0.01);
process = pm.djembe(freq, pos, sharp, gain);
// process = ba.pulsen(1, 5000) : pm.djembe(72, 0.3, 0.4, 1);
| https://raw.githubusercontent.com/cchafe/wfs/d5c8b3a502d8f6f83adb351905dc996563fd53cb/dsp/dj.dsp | faust | process = ba.pulsen(1, 5000) : pm.djembe(72, 0.3, 0.4, 1); | declare name "dj";
import("stdfaust.lib");
freq = hslider("freq",72,50,128,0.01);
gain = hslider("gain",0.5,0,1,0.01);
pos = hslider("pos",0.3,0,1,0.01);
sharp = hslider("sharp",0.4,0,1,0.01);
process = pm.djembe(freq, pos, sharp, gain);
|
31568ba7580fba27d508dfcc396c5cefac249c844ccb7a8e669d178ef96baedf | cchafe/wfs | djembe.dsp | declare name "Djembe";
import("stdfaust.lib");
freq = hslider("freq",72,50,128,0.01);
gain = hslider("gain",0.5,0,1,0.01);
pos = hslider("pos",0.3,0,1,0.01);
sharp = hslider("sharp",0.4,0,1,0.01);
process = pm.djembe(freq, pos, sharp, gain);
// process = ba.pulsen(1, 5000) : pm.djembe(72, 0.3, 0.4, 1);
| https://raw.githubusercontent.com/cchafe/wfs/d5c8b3a502d8f6f83adb351905dc996563fd53cb/dsp/djembe.dsp | faust | process = ba.pulsen(1, 5000) : pm.djembe(72, 0.3, 0.4, 1); | declare name "Djembe";
import("stdfaust.lib");
freq = hslider("freq",72,50,128,0.01);
gain = hslider("gain",0.5,0,1,0.01);
pos = hslider("pos",0.3,0,1,0.01);
sharp = hslider("sharp",0.4,0,1,0.01);
process = pm.djembe(freq, pos, sharp, gain);
|
e4eca0532cdf979e9c13e2f48eafdbda4d7077a906b49545119e246a0fd9337b | cchafe/wfs | qt.dsp | declare name "qt";
import("stdfaust.lib");
freq = hslider("freq",72,50,128,0.01);
gain = hslider("gain",0.5,0,1,0.01);
pos = hslider("pos",0.3,0,1,0.01);
sharp = hslider("sharp",0.4,0,1,0.01);
process = pm.djembe(freq, pos, sharp, gain);
// process = ba.pulsen(1, 5000) : pm.djembe(72, 0.3, 0.4, 1);
| https://raw.githubusercontent.com/cchafe/wfs/d5c8b3a502d8f6f83adb351905dc996563fd53cb/dsp/qt.dsp | faust | process = ba.pulsen(1, 5000) : pm.djembe(72, 0.3, 0.4, 1); | declare name "qt";
import("stdfaust.lib");
freq = hslider("freq",72,50,128,0.01);
gain = hslider("gain",0.5,0,1,0.01);
pos = hslider("pos",0.3,0,1,0.01);
sharp = hslider("sharp",0.4,0,1,0.01);
process = pm.djembe(freq, pos, sharp, gain);
|
f9cad98f7d529e9dbdd7d591b7aad055d1b603e9c6892121ca48f3979fad1ce3 | cchafe/wfs | ccNylonPulse.dsp | declare name "ccNylonPulse";
declare description "Simple call of the Karplus-Strong model for the Faust physical modeling library";
declare license "MIT";
declare copyright "(c)Romain Michon, CCRMA (Stanford University), GRAME";
import("stdfaust.lib");
ks = pm.nylonGuitarModel( (freq : pm.f2l), pos )
with{
freq = hslider("freq",440,50,1000,0.01);
pos = hslider("pos",0.9,0,1,0.01);
};
process = _ : ks <: _,_;
/*
Impulse imp => ccNylonPulse ks => dac;
0.0 => float pos;
while (true)
{
imp.next(1.0);
1::second => now;
ks.pos(pos);
0.1+=>pos;
1.0%=>pos;
}
*/
| https://raw.githubusercontent.com/cchafe/wfs/d5c8b3a502d8f6f83adb351905dc996563fd53cb/dsp/ccNylonPulse.dsp | faust |
Impulse imp => ccNylonPulse ks => dac;
0.0 => float pos;
while (true)
{
imp.next(1.0);
1::second => now;
ks.pos(pos);
0.1+=>pos;
1.0%=>pos;
}
| declare name "ccNylonPulse";
declare description "Simple call of the Karplus-Strong model for the Faust physical modeling library";
declare license "MIT";
declare copyright "(c)Romain Michon, CCRMA (Stanford University), GRAME";
import("stdfaust.lib");
ks = pm.nylonGuitarModel( (freq : pm.f2l), pos )
with{
freq = hslider("freq",440,50,1000,0.01);
pos = hslider("pos",0.9,0,1,0.01);
};
process = _ : ks <: _,_;
|
bda75d65868b324190337b6ee01e3f8c72acebef2ee98b23461f18d6add1edb0 | kofigumbs/typebeat | echo.dsp | import("stdfaust.lib");
scaled = library("scaled.lib");
gain = nentry("echoGain", 25, 0, 50, 10) : si.smoo;
length = nentry("echoLength", 25, -1, 50, 10) : si.smoo;
feed = nentry("echoFeed", 25, 0, 50, 10);
process = sp.stereoize(ba.selectmulti(1, (echo, reverseEcho), length < 0) : *(gain/10)) with {
echo(s) = s : ef.echo(6, scaled.time(length), feed/51) - s;
reverseEcho = ef.reverseEchoN(1, pow(2, 12 + int(feed/5)));
};
| https://raw.githubusercontent.com/kofigumbs/typebeat/ce39da4b4200b1677f7759e8d6d4ddcad3025311/src/effects/echo.dsp | faust | import("stdfaust.lib");
scaled = library("scaled.lib");
gain = nentry("echoGain", 25, 0, 50, 10) : si.smoo;
length = nentry("echoLength", 25, -1, 50, 10) : si.smoo;
feed = nentry("echoFeed", 25, 0, 50, 10);
process = sp.stereoize(ba.selectmulti(1, (echo, reverseEcho), length < 0) : *(gain/10)) with {
echo(s) = s : ef.echo(6, scaled.time(length), feed/51) - s;
reverseEcho = ef.reverseEchoN(1, pow(2, 12 + int(feed/5)));
};
|
|
792fcbac1c4045e94d4c85db76146ee96b4f7a4c55dc295005c861949bf20734 | steveb/gula-plugins | peak_audio_to_cv.dsp | declare name "Peak audio to CV";
declare author "GULA";
declare copyright "Steve Baker (2022)";
declare version "1.0.0";
declare license "GPLv3";
declare description "CV output value derived from the amplitude of the input, with auto-detection of the peak aplitude";
import("stdfaust.lib");
import("gula.lib");
attack = hslider("[01]attack[unit:s][name: Attack]", 0.01, 0, 0.5, 0.01);
release = hslider("[02]release[unit:s][name: Release]", 0.5, 0, 2, 0.01);
peak_decay = hslider("[03]peak_decay[unit:s][name: Peak Decay]", 5, 0, 30, 0.1);
process = _ : gula_ab_amp(attack, release, peak_decay) * 10 : _ ;
| https://raw.githubusercontent.com/steveb/gula-plugins/3cad8aa6fa7d3c7b03be48af88c645a50581786e/src/peak_audio_to_cv.dsp | faust | declare name "Peak audio to CV";
declare author "GULA";
declare copyright "Steve Baker (2022)";
declare version "1.0.0";
declare license "GPLv3";
declare description "CV output value derived from the amplitude of the input, with auto-detection of the peak aplitude";
import("stdfaust.lib");
import("gula.lib");
attack = hslider("[01]attack[unit:s][name: Attack]", 0.01, 0, 0.5, 0.01);
release = hslider("[02]release[unit:s][name: Release]", 0.5, 0, 2, 0.01);
peak_decay = hslider("[03]peak_decay[unit:s][name: Peak Decay]", 5, 0, 30, 0.1);
process = _ : gula_ab_amp(attack, release, peak_decay) * 10 : _ ;
|
|
985f99878630b981c1e8f598a5f61390a93e49b3908173ce53f68622a88f9744 | romsom/faust-experiments | bass-stereo-widener.dsp | import("stdfaust.lib");
DELAY_MS_MAX = 25;
SR_MAX = 192000.0;
SR_ = min(ma.SR, SR_MAX);
// ipt = hslider("smooth_time", 0.05, 0, 0.1, 0.001); // s
// ip = si.smooth(ba.tau2pole(ipt));
cutoff = hslider("cutoff", 90.0, 0, 300, 0.01) : si.smoo : min(200) : max(1);
spread = hslider("spread", 0.5, 0, 2, 0.01) : si.smoo : +(0.0) : min(2.5) : max(0);
delay_factor = hslider("delay factor", 7.5, 0, 15, 0.01) : si.smoo : min(15) : max(0);
del = delay_factor * spread; // ms
drive = hslider("drive", 0.0, 0, 1, 0.01) : si.smoo;
mix = hslider("mix", 0.5, 0, 1, 0.01) : si.smoo;
output_gain = hslider("output gain", 0.7, 0, 1, 0.01) : si.smoo;
// split signals at cutoff
// merge to mono below
// effects in upper band
// - spread
// - distortion
fixed_fdel(n) = \(x).((1-a) * x@nInt + a * x@(nInt + 1))
with {
nInt = int(n);
a = n - nInt;
};
split(x, y) = (x : fi.lowpass(3, cutoff)), (y : fi.lowpass(3, cutoff)),
(x : fi.highpass(3, cutoff)), (y : fi.highpass(3, cutoff));
proc_lows = + <: _,_;
width(g) = _,_ <: *(1-g), *(g), *(g), *(1-g) :> +, -;
widen(d) = _,_ : _,fixed_fdel(d * SR_ / 1000) <: +, - <: +,-;
mix_widened(g) = \(s1,d1,s2,d2).(s1, d2, s2, d1) : *(g), *(1-g), *(g), *(1-g) : +, +;
proc_highs(g) = ef.cubicnl(drive, 0.2), ef.cubicnl(drive, 0.2)
: widen(del)
//: mix_widened(g)
: ef.stereo_width(g) ;
mix_down(g) = \(x1,x2,x3,x4).(x1, x3, x2, x4) : *(g), *(1-g), *(g), *(1-g) : +, +;
process = split : proc_lows, proc_highs(spread) : mix_down(mix) : *(output_gain), *(output_gain);
| https://raw.githubusercontent.com/romsom/faust-experiments/6f5fa3347fb3d01c0247a8fee8ff1221f79abaeb/effects/bass-stereo-widener.dsp | faust | ipt = hslider("smooth_time", 0.05, 0, 0.1, 0.001); // s
ip = si.smooth(ba.tau2pole(ipt));
ms
split signals at cutoff
merge to mono below
effects in upper band
- spread
- distortion
: mix_widened(g) | import("stdfaust.lib");
DELAY_MS_MAX = 25;
SR_MAX = 192000.0;
SR_ = min(ma.SR, SR_MAX);
cutoff = hslider("cutoff", 90.0, 0, 300, 0.01) : si.smoo : min(200) : max(1);
spread = hslider("spread", 0.5, 0, 2, 0.01) : si.smoo : +(0.0) : min(2.5) : max(0);
delay_factor = hslider("delay factor", 7.5, 0, 15, 0.01) : si.smoo : min(15) : max(0);
drive = hslider("drive", 0.0, 0, 1, 0.01) : si.smoo;
mix = hslider("mix", 0.5, 0, 1, 0.01) : si.smoo;
output_gain = hslider("output gain", 0.7, 0, 1, 0.01) : si.smoo;
fixed_fdel(n) = \(x).((1-a) * x@nInt + a * x@(nInt + 1))
with {
nInt = int(n);
a = n - nInt;
};
split(x, y) = (x : fi.lowpass(3, cutoff)), (y : fi.lowpass(3, cutoff)),
(x : fi.highpass(3, cutoff)), (y : fi.highpass(3, cutoff));
proc_lows = + <: _,_;
width(g) = _,_ <: *(1-g), *(g), *(g), *(1-g) :> +, -;
widen(d) = _,_ : _,fixed_fdel(d * SR_ / 1000) <: +, - <: +,-;
mix_widened(g) = \(s1,d1,s2,d2).(s1, d2, s2, d1) : *(g), *(1-g), *(g), *(1-g) : +, +;
proc_highs(g) = ef.cubicnl(drive, 0.2), ef.cubicnl(drive, 0.2)
: widen(del)
: ef.stereo_width(g) ;
mix_down(g) = \(x1,x2,x3,x4).(x1, x3, x2, x4) : *(g), *(1-g), *(g), *(1-g) : +, +;
process = split : proc_lows, proc_highs(spread) : mix_down(mix) : *(output_gain), *(output_gain);
|
48bd38f6d76b047bcd2d9eb2db66513dbd5c0e8373f17f4ae698cca061d545b5 | CesarChaussinand/souffle | souffle.dsp | import("stdfaust.lib");
import("synreson.lib");
process = bass, kick(normGate2*(1-(block>14))), bell, arp :> fx(Rate,fdbk),fx(-Rate,fdbk);
arp = (_*0.7)+synreson(fr,amp)*0.1, (_*0.7)+synreson(fr,amp)*0.1 : eko with{
eko = ef.echo(60/Tempo,60/Tempo,0.7),ef.echo(60/Tempo,60/Tempo,0.7);
amp = trig:en.ar(0.01,0.2)*arpGate;
arpGate = ((block>1) * (block<6)) + ((block>12) * (block<15));
fr = ba.midikey2hz(sequence(trig));
sequence(t) = ba.selectn(12,ba.counter(t)%12, 88,91,95,88,93,96,88,91,95,87,89,95);
trig = ((bar%2)==0)*(clock!=clock')*ba.selectn(16,clock,list);
list = 1,0,0,1, 0,0,1,0, 0,0,0,0, 0,0,0,0;
};
fx(r,fb) = fi.fb_comb (1024,(os.osc(r)*d)+d+60,1,fb):ef.cubicnl(0,0)*1.2 with{
d=60;
};
Rate = 0.2;
fdbk = sqrt(max(1:en.adsr(5,3,0.5,0.01)-0.2,0));
bass = os.sawtooth(fr) :fi.resonlp(frcut,3,vol):ef.cubicnl(0,0) <:_,_ with {
fr = 28:ba.midikey2hz;
frcut = 150 + env*50;
vol = env*0.9*sequence(trig) + 0.2;
env = (trig*(1-(block>14))):en.ar(0.001,0.2);
trig = (clock!=clock')*ba.selectn(16,clock%16, list);
list = 1,0,1,1, 0,0,1,0, 1,0,1,1, 0,0,1,0 ;
sequence(t) = ba.selectn(8,ba.counter(t)%8, 1,0.1,0.5,0.8, 1,0,0.4,0.7); //t : trigger
};
gate = ba.counter(1-(bar==bar'))>13;
normGate = gate;
normGateInt = normGate' : ba.latch(clock<clock');
normGate2 = normGateInt' : ba.latch(clock<clock');
bell = pre, post :> _,_ with{
pre = (synth(fr,vol)+synth(fr+50,vol))*(1+lfo),
(synth(fr,vol)+synth(fr+50,vol))*(1-lfo) with{
synth(f,v)=os.triangle(f)*v,
os.triangle(f*3/2)*v*0.8,
os.triangle(f*5/2)*v*0.5:>_/5;
fr = 1200+lfo*10;
vol = max(env*0.7-0.1,0);
env = ((normGate*(normGate!=normGate2))+end):en.asr(4.2,1,0.001);
end = (ba.counter(1-(bar==bar'))>56) * (ba.counter(1-(bar==bar'))<60);
lfo = os.osc(lf*20)*0.7*env;
lf = (env)^2;
step = clock:ba.latch(normGate>normGate');
};
post = normGate2:en.ar(0.002,0.002)*no.noise : pm.englishBell(1,2400,0.75,1) <:_,_;
};
kick(amp) = env*os.osc(80*env+30) : ef.cubicnl(0.1,0) * amp <: _,_ with{
env = trig:en.ar(0.001,0.2);
trig = (clock!=clock')*ba.selectn(16,clock,list);
list = 1,0,0,0, 1,0,0,0, 1,0,0,0, 1,0,bar%2==1,0;
};
block = ba.counter(bar<bar') <:attach(_,_+1:hbargraph("boucle",1,32));
bar = ba.counter(clock<clock')%4 <:attach(_,_+1:hbargraph("mesure",1,4));
clock = os.phasor(16,Tempo/(60*4)):int <:attach(_,int(_/4)+1:hbargraph("temps",1,4));
Tempo = 110;
| https://raw.githubusercontent.com/CesarChaussinand/souffle/33cdca76a4fe5759eb0a5d5ed5216041d55896e2/souffle.dsp | faust | t : trigger | import("stdfaust.lib");
import("synreson.lib");
process = bass, kick(normGate2*(1-(block>14))), bell, arp :> fx(Rate,fdbk),fx(-Rate,fdbk);
arp = (_*0.7)+synreson(fr,amp)*0.1, (_*0.7)+synreson(fr,amp)*0.1 : eko with{
eko = ef.echo(60/Tempo,60/Tempo,0.7),ef.echo(60/Tempo,60/Tempo,0.7);
amp = trig:en.ar(0.01,0.2)*arpGate;
arpGate = ((block>1) * (block<6)) + ((block>12) * (block<15));
fr = ba.midikey2hz(sequence(trig));
sequence(t) = ba.selectn(12,ba.counter(t)%12, 88,91,95,88,93,96,88,91,95,87,89,95);
trig = ((bar%2)==0)*(clock!=clock')*ba.selectn(16,clock,list);
list = 1,0,0,1, 0,0,1,0, 0,0,0,0, 0,0,0,0;
};
fx(r,fb) = fi.fb_comb (1024,(os.osc(r)*d)+d+60,1,fb):ef.cubicnl(0,0)*1.2 with{
d=60;
};
Rate = 0.2;
fdbk = sqrt(max(1:en.adsr(5,3,0.5,0.01)-0.2,0));
bass = os.sawtooth(fr) :fi.resonlp(frcut,3,vol):ef.cubicnl(0,0) <:_,_ with {
fr = 28:ba.midikey2hz;
frcut = 150 + env*50;
vol = env*0.9*sequence(trig) + 0.2;
env = (trig*(1-(block>14))):en.ar(0.001,0.2);
trig = (clock!=clock')*ba.selectn(16,clock%16, list);
list = 1,0,1,1, 0,0,1,0, 1,0,1,1, 0,0,1,0 ;
};
gate = ba.counter(1-(bar==bar'))>13;
normGate = gate;
normGateInt = normGate' : ba.latch(clock<clock');
normGate2 = normGateInt' : ba.latch(clock<clock');
bell = pre, post :> _,_ with{
pre = (synth(fr,vol)+synth(fr+50,vol))*(1+lfo),
(synth(fr,vol)+synth(fr+50,vol))*(1-lfo) with{
synth(f,v)=os.triangle(f)*v,
os.triangle(f*3/2)*v*0.8,
os.triangle(f*5/2)*v*0.5:>_/5;
fr = 1200+lfo*10;
vol = max(env*0.7-0.1,0);
env = ((normGate*(normGate!=normGate2))+end):en.asr(4.2,1,0.001);
end = (ba.counter(1-(bar==bar'))>56) * (ba.counter(1-(bar==bar'))<60);
lfo = os.osc(lf*20)*0.7*env;
lf = (env)^2;
step = clock:ba.latch(normGate>normGate');
};
post = normGate2:en.ar(0.002,0.002)*no.noise : pm.englishBell(1,2400,0.75,1) <:_,_;
};
kick(amp) = env*os.osc(80*env+30) : ef.cubicnl(0.1,0) * amp <: _,_ with{
env = trig:en.ar(0.001,0.2);
trig = (clock!=clock')*ba.selectn(16,clock,list);
list = 1,0,0,0, 1,0,0,0, 1,0,0,0, 1,0,bar%2==1,0;
};
block = ba.counter(bar<bar') <:attach(_,_+1:hbargraph("boucle",1,32));
bar = ba.counter(clock<clock')%4 <:attach(_,_+1:hbargraph("mesure",1,4));
clock = os.phasor(16,Tempo/(60*4)):int <:attach(_,int(_/4)+1:hbargraph("temps",1,4));
Tempo = 110;
|
fb66c2a52d64d2fc6fac8f2364a08addcbd255538267e1558dc2cae032f2332a | jpcima/DelayArchitect | GdFilters.dsp | import("stdfaust.lib");
///
declare author "Jean Pierre Cimalando";
declare license "BSD-2-Clause";
///
process = one, one with {
one = (cf, rs, _) <: ((!, !, _), lpReson6dB, hpReson6dB, lpReson12dB, hpReson12dB) : ba.selectn(5, ty);
ty = hslider("[0] type [style:menu{'Off':0;'LP6':1;'HP6':2;'LP12':3;'HP12':4}]", 0, 0, 4, 1);
cf = hslider("[1] cutoff [scale:log]", 500.0, 1.0, 20000.0, 1.0);
rs = hslider("[2] resonance", 0.0, 0.0, 20.0, 0.01) : ba.db2linear;
};
///
entryLP6 = (controls.cf, controls.rs, _) : lpReson6dB;
entryHP6 = (controls.cf, controls.rs, _) : hpReson6dB;
entryLP12 = (controls.cf, controls.rs, _) : lpReson12dB;
entryHP12 = (controls.cf, controls.rs, _) : hpReson12dB;
controls = environment {
cf = hslider("[1] cutoff [scale:log]", 500.0, 1.0, 20000.0, 1.0);
rs = hslider("[2] resonance", 0.0, 0.0, ba.db2linear(24.0), 0.001);
};
///
lpReson6dB(f, q) = lp : peak with {
lp = fi.lowpass(1, f);
peak = fi.tf22t(b0/a0,b1/a0,b2/a0,a1/a0,a2/a0);
w = f*(2*ma.PI/ma.SR);
A = sqrt(q);
S = sin(w); C = cos(w);
b0 = 1+S*A; b1 =-2*C; b2 = 1-S*A;
a0 = 1+S/A; a1 =-2*C; a2 = 1-S/A;
};
hpReson6dB(f, q) = lp : peak with {
lp = fi.highpass(1, f);
peak = fi.tf22t(b0/a0,b1/a0,b2/a0,a1/a0,a2/a0);
w = f*(2*ma.PI/ma.SR);
A = sqrt(q);
S = sin(w); C = cos(w);
b0 = 1+S*A; b1 =-2*C; b2 = 1-S*A;
a0 = 1+S/A; a1 =-2*C; a2 = 1-S/A;
};
///
lpReson12dB(f, q) = fi.tf22t(b0/a0,b1/a0,b2/a0,a1/a0,a2/a0) with {
a = sin(w)/(2*q);
w = f*(2*ma.PI/ma.SR);
b0 = 0.5*(1.0-cos(w)); b1 = 1.0-cos(w); b2 = 0.5*(1.0-cos(w));
a0 = 1.0+a; a1 = -2.0*cos(w); a2 = 1.0-a;
};
hpReson12dB(f, q) = fi.tf22t(b0/a0,b1/a0,b2/a0,a1/a0,a2/a0) with {
a = sin(w)/(2*q);
w = f*(2*ma.PI/ma.SR);
b0 = 0.5*(1.0+cos(w)); b1 = -1.0-cos(w); b2 = 0.5*(1.0+cos(w));
a0 = 1.0+a; a1 = -2.0*cos(w); a2 = 1.0-a;
};
| https://raw.githubusercontent.com/jpcima/DelayArchitect/74c79e91312d1a569284613e3b3473ad2260e9b0/sources/gd/filters/GdFilters.dsp | faust | /
/
/
/
/ | import("stdfaust.lib");
declare author "Jean Pierre Cimalando";
declare license "BSD-2-Clause";
process = one, one with {
one = (cf, rs, _) <: ((!, !, _), lpReson6dB, hpReson6dB, lpReson12dB, hpReson12dB) : ba.selectn(5, ty);
ty = hslider("[0] type [style:menu{'Off':0;'LP6':1;'HP6':2;'LP12':3;'HP12':4}]", 0, 0, 4, 1);
cf = hslider("[1] cutoff [scale:log]", 500.0, 1.0, 20000.0, 1.0);
rs = hslider("[2] resonance", 0.0, 0.0, 20.0, 0.01) : ba.db2linear;
};
entryLP6 = (controls.cf, controls.rs, _) : lpReson6dB;
entryHP6 = (controls.cf, controls.rs, _) : hpReson6dB;
entryLP12 = (controls.cf, controls.rs, _) : lpReson12dB;
entryHP12 = (controls.cf, controls.rs, _) : hpReson12dB;
controls = environment {
cf = hslider("[1] cutoff [scale:log]", 500.0, 1.0, 20000.0, 1.0);
rs = hslider("[2] resonance", 0.0, 0.0, ba.db2linear(24.0), 0.001);
};
lpReson6dB(f, q) = lp : peak with {
lp = fi.lowpass(1, f);
peak = fi.tf22t(b0/a0,b1/a0,b2/a0,a1/a0,a2/a0);
w = f*(2*ma.PI/ma.SR);
A = sqrt(q);
S = sin(w); C = cos(w);
b0 = 1+S*A; b1 =-2*C; b2 = 1-S*A;
a0 = 1+S/A; a1 =-2*C; a2 = 1-S/A;
};
hpReson6dB(f, q) = lp : peak with {
lp = fi.highpass(1, f);
peak = fi.tf22t(b0/a0,b1/a0,b2/a0,a1/a0,a2/a0);
w = f*(2*ma.PI/ma.SR);
A = sqrt(q);
S = sin(w); C = cos(w);
b0 = 1+S*A; b1 =-2*C; b2 = 1-S*A;
a0 = 1+S/A; a1 =-2*C; a2 = 1-S/A;
};
lpReson12dB(f, q) = fi.tf22t(b0/a0,b1/a0,b2/a0,a1/a0,a2/a0) with {
a = sin(w)/(2*q);
w = f*(2*ma.PI/ma.SR);
b0 = 0.5*(1.0-cos(w)); b1 = 1.0-cos(w); b2 = 0.5*(1.0-cos(w));
a0 = 1.0+a; a1 = -2.0*cos(w); a2 = 1.0-a;
};
hpReson12dB(f, q) = fi.tf22t(b0/a0,b1/a0,b2/a0,a1/a0,a2/a0) with {
a = sin(w)/(2*q);
w = f*(2*ma.PI/ma.SR);
b0 = 0.5*(1.0+cos(w)); b1 = -1.0-cos(w); b2 = 0.5*(1.0+cos(w));
a0 = 1.0+a; a1 = -2.0*cos(w); a2 = 1.0-a;
};
|
300b9b8147ced408849816f72e81c8207dbacf63fe187bcf0ca143f0d636577a | JaoRamos/Faust | escalador.dsp | import("stdfaust.lib");
// para detectar MIDI
freq = vgroup("[6]MIDI", nentry("freq", 220, 20, 5000, 0.001));
gain = vgroup("[6]MIDI", nentry("gain", 0.0, 0.0, 1.0, 0.001));
gate = vgroup("[6]MIDI", nentry("gate", 0.0, 0.0, 1.0, 1.0));
escala = waveform{-1, 0, 2, 3, 5, 7, 9, 11, 12};
//nota(s) = ba.midikey2hz(36 + int(ba.hz2midikey(s : an.amp_follower(0.1) * 100)));
nota(f) = escala, int(min(f : an.amp_follower(0.1) * 15, 8)) : rdtable;
oscilador(s) = os.sawtooth(ba.midikey2hz(48 + nota(s))) *0.05;
process(s) = oscilador(s) * an.amp_follower(0.1) <: _, _; | https://raw.githubusercontent.com/JaoRamos/Faust/dffd281724d8941aa1efa7b8abeb09c6b2f7dee0/sueltos/escalador.dsp | faust | para detectar MIDI
nota(s) = ba.midikey2hz(36 + int(ba.hz2midikey(s : an.amp_follower(0.1) * 100))); | import("stdfaust.lib");
freq = vgroup("[6]MIDI", nentry("freq", 220, 20, 5000, 0.001));
gain = vgroup("[6]MIDI", nentry("gain", 0.0, 0.0, 1.0, 0.001));
gate = vgroup("[6]MIDI", nentry("gate", 0.0, 0.0, 1.0, 1.0));
escala = waveform{-1, 0, 2, 3, 5, 7, 9, 11, 12};
nota(f) = escala, int(min(f : an.amp_follower(0.1) * 15, 8)) : rdtable;
oscilador(s) = os.sawtooth(ba.midikey2hz(48 + nota(s))) *0.05;
process(s) = oscilador(s) * an.amp_follower(0.1) <: _, _; |
747d78671e2ebce8ce23de4108c947cd5a36b4d77ee915edfe1ee1a3bcdda88e | friskgit/kmh_114 | KMH114_channel_map_C.dsp | declare name "KMH114_channel_map_C";
declare version " 0.1 ";
declare author " Henrik Frisk " ;
declare license " BSD ";
declare copyright "(c) dinergy 2018 ";
//---------------`Channel mapping plugin` --------------------------
//
// Channel mapping plugin that takes 15 channels of input (center speaker included)
// and maps it to the channel/speaker configuration of the studio 114 according to:
//
// * 1 -> 1
// * 2 -> 3
// * 3 -> 2
// * 4 -> 15
// * 5 -> 8
// * 6 -> 5
// * 7 -> 9
// * 8 -> 4
// * 9 -> 7
// * 10 -> 6
// * 11 -> 10
// * 12 -> 11
// * 13 -> 13
// * 14 -> 14
// * 15 -> 16
//---------------------------------------------------
import("stdfaust.lib");
vmeter(x) = attach(x, envelop(x) : vbargraph("[unit:dB]", -70, +5));
hmeter(x) = attach(x, envelop(x) : hbargraph("[2][unit:dB]", -70, +5));
envelop = abs : max ~ -(1.0/ma.SR) : max(ba.db2linear(-70)) : ba.linear2db;
process(s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11, s12, s13, s14, s15) =
s0, s2, s1, s14, s7, s4, s8, s3, s6, s5, s9, s10, s12, s11, s13, s15;
| https://raw.githubusercontent.com/friskgit/kmh_114/2ebc5bb7d796827856a69b27700ac9cb08689c04/KMH114_utility/bin/max/KMH114_channel_map_C%7E.mxo/KMH114_channel_map_C.dsp | faust | ---------------`Channel mapping plugin` --------------------------
Channel mapping plugin that takes 15 channels of input (center speaker included)
and maps it to the channel/speaker configuration of the studio 114 according to:
* 1 -> 1
* 2 -> 3
* 3 -> 2
* 4 -> 15
* 5 -> 8
* 6 -> 5
* 7 -> 9
* 8 -> 4
* 9 -> 7
* 10 -> 6
* 11 -> 10
* 12 -> 11
* 13 -> 13
* 14 -> 14
* 15 -> 16
--------------------------------------------------- | declare name "KMH114_channel_map_C";
declare version " 0.1 ";
declare author " Henrik Frisk " ;
declare license " BSD ";
declare copyright "(c) dinergy 2018 ";
import("stdfaust.lib");
vmeter(x) = attach(x, envelop(x) : vbargraph("[unit:dB]", -70, +5));
hmeter(x) = attach(x, envelop(x) : hbargraph("[2][unit:dB]", -70, +5));
envelop = abs : max ~ -(1.0/ma.SR) : max(ba.db2linear(-70)) : ba.linear2db;
process(s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11, s12, s13, s14, s15) =
s0, s2, s1, s14, s7, s4, s8, s3, s6, s5, s9, s10, s12, s11, s13, s15;
|
875c632339fee413eb998cbb3deaa64301335df64deac6fec298a90bc6ed7073 | friskgit/kmh_114 | KMH114_channel_map_C.dsp | declare name "KMH114_channel_map_C";
declare version " 0.1 ";
declare author " Henrik Frisk " ;
declare license " BSD ";
declare copyright "(c) dinergy 2018 ";
//---------------`Channel mapping plugin` --------------------------
//
// Channel mapping plugin that takes 15 channels of input (center speaker included)
// and maps it to the channel/speaker configuration of the studio 114 according to:
//
// * 1 -> 1
// * 2 -> 3
// * 3 -> 2
// * 4 -> 15
// * 5 -> 8
// * 6 -> 5
// * 7 -> 9
// * 8 -> 4
// * 9 -> 7
// * 10 -> 6
// * 11 -> 10
// * 12 -> 11
// * 13 -> 13
// * 14 -> 14
// * 15 -> 16
//---------------------------------------------------
import("stdfaust.lib");
vmeter(x) = attach(x, envelop(x) : vbargraph("[unit:dB]", -70, +5));
hmeter(x) = attach(x, envelop(x) : hbargraph("[2][unit:dB]", -70, +5));
envelop = abs : max ~ -(1.0/ma.SR) : max(ba.db2linear(-70)) : ba.linear2db;
process(s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11, s12, s13, s14, s15) =
s0, s2, s1, s14*0, s7, s4, s8, s3, s6, s5, s9, s10, s12, s11, s13, s15*0;
| https://raw.githubusercontent.com/friskgit/kmh_114/2ebc5bb7d796827856a69b27700ac9cb08689c04/KMH114_utility/src/KMH114_channel_map_C.dsp | faust | ---------------`Channel mapping plugin` --------------------------
Channel mapping plugin that takes 15 channels of input (center speaker included)
and maps it to the channel/speaker configuration of the studio 114 according to:
* 1 -> 1
* 2 -> 3
* 3 -> 2
* 4 -> 15
* 5 -> 8
* 6 -> 5
* 7 -> 9
* 8 -> 4
* 9 -> 7
* 10 -> 6
* 11 -> 10
* 12 -> 11
* 13 -> 13
* 14 -> 14
* 15 -> 16
--------------------------------------------------- | declare name "KMH114_channel_map_C";
declare version " 0.1 ";
declare author " Henrik Frisk " ;
declare license " BSD ";
declare copyright "(c) dinergy 2018 ";
import("stdfaust.lib");
vmeter(x) = attach(x, envelop(x) : vbargraph("[unit:dB]", -70, +5));
hmeter(x) = attach(x, envelop(x) : hbargraph("[2][unit:dB]", -70, +5));
envelop = abs : max ~ -(1.0/ma.SR) : max(ba.db2linear(-70)) : ba.linear2db;
process(s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11, s12, s13, s14, s15) =
s0, s2, s1, s14*0, s7, s4, s8, s3, s6, s5, s9, s10, s12, s11, s13, s15*0;
|
b417984b88fc18e508fde8c04fca11ca96fcd760291202005b8f92dd329e565b | jspatcher/package-dsp | cycle.dsp | declare description "A sine wave generator with controllable phase";
declare inputsDescription "[`freq`, `phase`]";
import("stdfaust.lib");
process = os.oscp;
| https://raw.githubusercontent.com/jspatcher/package-dsp/72192de1f6b203349373dcf313b874a41319ca67/src/dsps/cycle.dsp | faust | declare description "A sine wave generator with controllable phase";
declare inputsDescription "[`freq`, `phase`]";
import("stdfaust.lib");
process = os.oscp;
|
|
aee26da44fccf428742b8d3658eb02c06e07758539ad48d9ef45751a34b963f9 | DISTRHO/Fadeli | analysis-dbmeter.dsp | declare name "dbmeter";
declare version "1.0";
declare author "Grame";
declare license "BSD";
declare copyright "(c)GRAME 2006";
//-------------------------------------------------
// A dB Vumeter
//-------------------------------------------------
import("stdfaust.lib");
process = hgroup("8 channels dB meter", par(i,8, vgroup("%i", vmeter(i) : null)))
with {
null(x) = attach(0,x);
envelop = abs : max(ba.db2linear(-70)) : ba.linear2db : min(10) : max ~ -(80.0/ma.SR);
vmeter(i, x) = attach(x, envelop(x) : vbargraph("chan %i[unit:dB]", -70, 10));
hmeter(i, x) = attach(x, envelop(x) : hbargraph("chan %i[unit:dB]", -70, 10));
};
| https://raw.githubusercontent.com/DISTRHO/Fadeli/22352d962714828613a88f008fa41744eecfac6e/dsp/analysis-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("stdfaust.lib");
process = hgroup("8 channels dB meter", par(i,8, vgroup("%i", vmeter(i) : null)))
with {
null(x) = attach(0,x);
envelop = abs : max(ba.db2linear(-70)) : ba.linear2db : min(10) : max ~ -(80.0/ma.SR);
vmeter(i, x) = attach(x, envelop(x) : vbargraph("chan %i[unit:dB]", -70, 10));
hmeter(i, x) = attach(x, envelop(x) : hbargraph("chan %i[unit:dB]", -70, 10));
};
|
8966f18f85843041c70818e99a154e89513d23ea67cc6c04642cb5f95f669f23 | johannphilippe/grame_cnsmd_2023 | additive_simple.dsp | import("stdfaust.lib");
N_VOICES = 10;
// Init = 100, Min = 50, Max = 100, Step = 1
base_frequency = hslider("frequency", 100, 50, 1000, 1);
amp = hslider("amplitude", 0.1, 0, 1, 0.01) : si.smoo;
process = sum(n, N_VOICES, os.osc(base_frequency * (n+1) ) / N_VOICES) * amp;
| https://raw.githubusercontent.com/johannphilippe/grame_cnsmd_2023/ccfd6e9a5c1537097546520317c8c5beea06006f/additive/additive_simple.dsp | faust | Init = 100, Min = 50, Max = 100, Step = 1 | import("stdfaust.lib");
N_VOICES = 10;
base_frequency = hslider("frequency", 100, 50, 1000, 1);
amp = hslider("amplitude", 0.1, 0, 1, 0.01) : si.smoo;
process = sum(n, N_VOICES, os.osc(base_frequency * (n+1) ) / N_VOICES) * amp;
|
ce75e7b390b51fcecd26351c4f88ef7ee05f10a5c372f5a1faf457d7edf0a23f | dxinteractive/mosfez-faust-dsp | mosfez-faust-gate.dsp | // mosfez-faust-gate.dsp
// A gate pedal test with Faust. Wizard: 6% CPU
// - Knob A controls threshold from -90dB - -45dB - 0dB.
// - Knob B controls attack time from 0.01ms - 1ms - 100ms.
// - Knob C controls hold time from 0.01ms - 1ms - 100ms.
// - Knob D controls release time from 0.1s - 1s - 10s.
import("stdfaust.lib");
threshold = hslider("depth[OWL:A]",-60.0,-90.0,0.0,0.001);
attack = 10 ^ hslider("attack[OWL:B]",-4.0,-5.0,-1.0,0.001);
hold = 10 ^ hslider("hold[OWL:C]",-4.0,-5.0,-1.0,0.001);
release = 10 ^ hslider("release[OWL:D]",0.0,-1.0,1.0,0.001);
boost = _ * 3.0;
process = ef.gate_stereo(threshold, attack, hold, release) : boost,boost;
| https://raw.githubusercontent.com/dxinteractive/mosfez-faust-dsp/297deeb54fddc4a4159d51db5df0e55c1b4aa48d/mosfez-faust-gate.dsp | faust | mosfez-faust-gate.dsp
A gate pedal test with Faust. Wizard: 6% CPU
- Knob A controls threshold from -90dB - -45dB - 0dB.
- Knob B controls attack time from 0.01ms - 1ms - 100ms.
- Knob C controls hold time from 0.01ms - 1ms - 100ms.
- Knob D controls release time from 0.1s - 1s - 10s. |
import("stdfaust.lib");
threshold = hslider("depth[OWL:A]",-60.0,-90.0,0.0,0.001);
attack = 10 ^ hslider("attack[OWL:B]",-4.0,-5.0,-1.0,0.001);
hold = 10 ^ hslider("hold[OWL:C]",-4.0,-5.0,-1.0,0.001);
release = 10 ^ hslider("release[OWL:D]",0.0,-1.0,1.0,0.001);
boost = _ * 3.0;
process = ef.gate_stereo(threshold, attack, hold, release) : boost,boost;
|
513748e2c543ba6328c1d53e4f979b4b1599beac3e403e3b309b033927041966 | lbrutti/faust-course | djembe.dsp | import("stdfaust.lib");
process = button("gate") * (ba.pulsen(1, 4410 * 2) + ba.pulsen(1, 2205 * 2)) : pm.djembe(60,0.5,0.5,1) <: dm.freeverb_demo; | https://raw.githubusercontent.com/lbrutti/faust-course/9029f2761d7bdf4658993783367790d779e4431c/session1/midi_poly_with_effects/djembe.dsp | faust | import("stdfaust.lib");
process = button("gate") * (ba.pulsen(1, 4410 * 2) + ba.pulsen(1, 2205 * 2)) : pm.djembe(60,0.5,0.5,1) <: dm.freeverb_demo; |
|
4119127301eb6e8e84a1b221631d47d099b964ba36469999ac8aa575aa45a294 | publicsamples/Quetzalcoatl | verb.dsp | declare name "Dual Pitch Shifter";
declare description "Dual Channel pitch shifter, based on Faust pitch_shifter.dsp by Grame";
declare author "Oli Larkin ([email protected])";
declare copyright "Oliver Larkin";
declare version "0.1";
declare licence "GPL";
import("stdfaust.lib");
msec = ma.SR/1000.0;
shiftl = hslider("Shift L [unit:Hz] [OWL:PARAMETER_A]", 440,50,2000,0.1);
shiftr = hslider("Shift R [unit:Hz] [OWL:PARAMETER_B]", 440,50,2000,0.1);
ws = hslider("Window Size [unit:ms] [OWL:PARAMETER_C]", 50, 20, 1000, 1) * msec : si.smooth(ba.tau2pole(0.005));
mix = hslider("Mix[OWL:PARAMETER_D]", 0.5, 0, 1, 0.01) : si.smooth(ba.tau2pole(0.005));
xf = 20 * msec;
transpose (w, x, s, sig) = de.fdelay(65536, d,sig)*ma.fmin(d/x,1) + de.fdelay(65536,d+w,sig)*(1-ma.fmin(d/x,1))
with {
i = 1 - pow(2, s/12);
d = i : (+ : +(w) : fmod(_,w)) ~ _;
};
process(l,r) = l,r <: *(1-mix), *(1-mix), transpose(ws, xf, shiftl, l)*mix, transpose(ws, xf, shiftr, r)*mix :> _,_;
| https://raw.githubusercontent.com/publicsamples/Quetzalcoatl/547f2585651af68b32072846088cc97f3c80acc0/Quetzalcoatl/DspNetworks/CodeLibrary/faust/verb.dsp | faust | declare name "Dual Pitch Shifter";
declare description "Dual Channel pitch shifter, based on Faust pitch_shifter.dsp by Grame";
declare author "Oli Larkin ([email protected])";
declare copyright "Oliver Larkin";
declare version "0.1";
declare licence "GPL";
import("stdfaust.lib");
msec = ma.SR/1000.0;
shiftl = hslider("Shift L [unit:Hz] [OWL:PARAMETER_A]", 440,50,2000,0.1);
shiftr = hslider("Shift R [unit:Hz] [OWL:PARAMETER_B]", 440,50,2000,0.1);
ws = hslider("Window Size [unit:ms] [OWL:PARAMETER_C]", 50, 20, 1000, 1) * msec : si.smooth(ba.tau2pole(0.005));
mix = hslider("Mix[OWL:PARAMETER_D]", 0.5, 0, 1, 0.01) : si.smooth(ba.tau2pole(0.005));
xf = 20 * msec;
transpose (w, x, s, sig) = de.fdelay(65536, d,sig)*ma.fmin(d/x,1) + de.fdelay(65536,d+w,sig)*(1-ma.fmin(d/x,1))
with {
i = 1 - pow(2, s/12);
d = i : (+ : +(w) : fmod(_,w)) ~ _;
};
process(l,r) = l,r <: *(1-mix), *(1-mix), transpose(ws, xf, shiftl, l)*mix, transpose(ws, xf, shiftr, r)*mix :> _,_;
|
|
9a91571e4b4dd869983451800ed1bcb1a5698e30188d9c17f4bc26047a9248ea | lbrutti/faust-course | amp_follower_ar.dsp | import("stdfaust.lib");
//gain = hslider("gain", 0.5, 0.0, 1.0, 0.01);
gain = an.amp_follower_ar(0.02,0.02);
process = gain , os.sawtooth(440):*; | https://raw.githubusercontent.com/lbrutti/faust-course/9029f2761d7bdf4658993783367790d779e4431c/session1/midi_poly_with_effects/amp_follower_ar.dsp | faust | gain = hslider("gain", 0.5, 0.0, 1.0, 0.01); | import("stdfaust.lib");
gain = an.amp_follower_ar(0.02,0.02);
process = gain , os.sawtooth(440):*; |
4938ee68aec150342c190765ed315a19606205861191f6e8545be9605a886c2a | tomara-x/magi | 440.dsp | import("stdfaust.lib");
process = os.osc(440)*0.1 <: _,_;
| https://raw.githubusercontent.com/tomara-x/magi/5efddcc7f11420c2c65e4ac093394b736e29db48/440.dsp | faust | import("stdfaust.lib");
process = os.osc(440)*0.1 <: _,_;
|
|
6b9dfc5606e45529c9b319e240ced99928fc5461d99e56e4d1a6e797c89e9dae | mzuther/Screamer | mzuther.dsp | /* ----------------------------------------------------------------------------
Screamer
========
Mathematical distortion and signal mangling
Copyright (c) 2003-2020 Martin Zuther (http://www.mzuther.de/)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Thank you for using free software!
---------------------------------------------------------------------------- */
import("stdfaust.lib");
// impulse train: a one followed by an infinite number of zeros
impulse_train = 1.0 - 1.0' : _;
// +---------+
// index ---> | |
// | |
// stream_0 ---> | select2 | ---> output
// | |
// stream_1 ---> | |
// +---------+
//
// If "index" is 0.0, the output is "stream_0", and if "index" is 1.0,
// the output is "stream_1". Otherwise, the output is 0, and an error
// can occur during execution.
//
//
// +---------+
// condition ---> | |
// | |
// stream_0 ---> | if | ---> output
// | |
// stream_1 ---> | |
// +---------+
//
// If "condition" is exactly 0.0, the output is "stream_1". In any
// other case, the output is "stream_0". In contrast to "select2",
// this function prevents you from errors during execution.
if = _ , _ , _ : (_ != 0.0) , ro.cross(2) : select2 : _;
// If the input is below zero, the input is -1.0, otherwise it is 1.0.
get_sign = _ : if(_ < 0.0 , -1.0 , 1.0) : _;
// create a stereo effect
stereo(mono) = par(i , 2 , mono);
// recursion_with_initial_value = _ : +(_) ~ *(0.5) : _;
| https://raw.githubusercontent.com/mzuther/Screamer/46ec0f5d49ecf9af455a791ee2b813c5e9de1a66/modules/mzuther.dsp | faust | ----------------------------------------------------------------------------
Screamer
========
Mathematical distortion and signal mangling
Copyright (c) 2003-2020 Martin Zuther (http://www.mzuther.de/)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Thank you for using free software!
----------------------------------------------------------------------------
impulse train: a one followed by an infinite number of zeros
+---------+
index ---> | |
| |
stream_0 ---> | select2 | ---> output
| |
stream_1 ---> | |
+---------+
If "index" is 0.0, the output is "stream_0", and if "index" is 1.0,
the output is "stream_1". Otherwise, the output is 0, and an error
can occur during execution.
+---------+
condition ---> | |
| |
stream_0 ---> | if | ---> output
| |
stream_1 ---> | |
+---------+
If "condition" is exactly 0.0, the output is "stream_1". In any
other case, the output is "stream_0". In contrast to "select2",
this function prevents you from errors during execution.
If the input is below zero, the input is -1.0, otherwise it is 1.0.
create a stereo effect
recursion_with_initial_value = _ : +(_) ~ *(0.5) : _; |
import("stdfaust.lib");
impulse_train = 1.0 - 1.0' : _;
if = _ , _ , _ : (_ != 0.0) , ro.cross(2) : select2 : _;
get_sign = _ : if(_ < 0.0 , -1.0 , 1.0) : _;
stereo(mono) = par(i , 2 , mono);
|
88f479f428576f081a77f922a9ffe7608592a5517798bfae7615cd86c2951f19 | mzuther/Screamer | clip_distortion.dsp | /* ----------------------------------------------------------------------------
Screamer
========
Mathematical distortion and signal mangling
Copyright (c) 2003-2020 Martin Zuther (http://www.mzuther.de/)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Thank you for using free software!
---------------------------------------------------------------------------- */
import("stdfaust.lib");
mz = component("mzuther.dsp");
distortion(threshold_pre , drive_pre , crucify) = process
with
{
// pre-process parameters
threshold = ba.db2linear(threshold_pre);
drive = drive_pre / 100.0;
makeup_gain = 1.0 / ba.db2linear(threshold_pre / 6.0) : _;
clipper = _ - threshold : _ * (1.0 - drive) : _ + threshold;
clipped_clipper = _ : clipper <: mz.if(abs > 1.0 , mz.get_sign , _) : _;
trigger_crucified = _ <: mz.if(abs >= threshold , clipped_clipper , _) : _;
trigger_clean = _ : abs <: mz.if(_ >= threshold , clipped_clipper , _) : _;
trigger = _ <: mz.if(crucify , trigger_crucified , trigger_clean) : _;
distortion = _ <: mz.get_sign * trigger * makeup_gain : _;
process = ba.bypass1(threshold >= 1.0 , distortion);
};
process = distortion(threshold , drive , crucify)
with
{
threshold = hslider(
"[1] Threshold (0 disables) [style:slider][unit:dB]" ,
0.0 , -40.0 , 0.0 , 1.0);
drive = hslider(
"[2] Drive [style:slider][unit:exp]" ,
10.0 , 0.0 , 100.0 , 1.0);
crucify = checkbox(
"[3] Crucify");
};
| https://raw.githubusercontent.com/mzuther/Screamer/46ec0f5d49ecf9af455a791ee2b813c5e9de1a66/modules/clip_distortion.dsp | faust | ----------------------------------------------------------------------------
Screamer
========
Mathematical distortion and signal mangling
Copyright (c) 2003-2020 Martin Zuther (http://www.mzuther.de/)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Thank you for using free software!
----------------------------------------------------------------------------
pre-process parameters |
import("stdfaust.lib");
mz = component("mzuther.dsp");
distortion(threshold_pre , drive_pre , crucify) = process
with
{
threshold = ba.db2linear(threshold_pre);
drive = drive_pre / 100.0;
makeup_gain = 1.0 / ba.db2linear(threshold_pre / 6.0) : _;
clipper = _ - threshold : _ * (1.0 - drive) : _ + threshold;
clipped_clipper = _ : clipper <: mz.if(abs > 1.0 , mz.get_sign , _) : _;
trigger_crucified = _ <: mz.if(abs >= threshold , clipped_clipper , _) : _;
trigger_clean = _ : abs <: mz.if(_ >= threshold , clipped_clipper , _) : _;
trigger = _ <: mz.if(crucify , trigger_crucified , trigger_clean) : _;
distortion = _ <: mz.get_sign * trigger * makeup_gain : _;
process = ba.bypass1(threshold >= 1.0 , distortion);
};
process = distortion(threshold , drive , crucify)
with
{
threshold = hslider(
"[1] Threshold (0 disables) [style:slider][unit:dB]" ,
0.0 , -40.0 , 0.0 , 1.0);
drive = hslider(
"[2] Drive [style:slider][unit:exp]" ,
10.0 , 0.0 , 100.0 , 1.0);
crucify = checkbox(
"[3] Crucify");
};
|
6e2195c73d656d66516daf9221f5d6e03d00195ad9ef1c18cd7f22e4ef7c466f | mzuther/Screamer | mathematical_overdrive.dsp | /* ----------------------------------------------------------------------------
Screamer
========
Mathematical distortion and signal mangling
Copyright (c) 2003-2020 Martin Zuther (http://www.mzuther.de/)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Thank you for using free software!
---------------------------------------------------------------------------- */
import("stdfaust.lib");
mz = component("mzuther.dsp");
overdrive(threshold_pre , drive_pre , gain_pre) = process
with
{
// pre-process parameters
threshold = ba.db2linear(threshold_pre);
drive = pow(10.0, (drive_pre - 0.01) / -50.0);
gain = ba.db2linear(gain_pre);
makeup_gain = (1.0 - drive) * threshold + drive : _;
output_gain = makeup_gain * gain : _;
temp_1 = 1.01 - threshold : _;
temp_2 = _ : (_ - threshold) / temp_1 : _;
overdriver = _ : pow(temp_2 , drive) * temp_1 + threshold : _;
trigger = _ : abs <: mz.if(_ >= threshold , overdriver , _) : _;
overdrive = _ <: mz.get_sign * trigger * output_gain : _;
process = ba.bypass1(threshold >= 1.0 , overdrive);
};
process = overdrive(threshold , drive , gain)
with
{
threshold = hslider(
"[1] Threshold (0 disables) [style:slider][unit:dB]" ,
0.0 , -40.0 , 0.0 , 1.0);
drive = hslider(
"[2] Drive [style:slider][unit:exp]" ,
10.0 , 1.0 , 100.0 , 1.0);
gain = hslider(
"[3] Output gain [style:slider][unit:dB]" ,
0.0 , -6.0 , 6.0 , 1.0);
};
| https://raw.githubusercontent.com/mzuther/Screamer/46ec0f5d49ecf9af455a791ee2b813c5e9de1a66/modules/mathematical_overdrive.dsp | faust | ----------------------------------------------------------------------------
Screamer
========
Mathematical distortion and signal mangling
Copyright (c) 2003-2020 Martin Zuther (http://www.mzuther.de/)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Thank you for using free software!
----------------------------------------------------------------------------
pre-process parameters |
import("stdfaust.lib");
mz = component("mzuther.dsp");
overdrive(threshold_pre , drive_pre , gain_pre) = process
with
{
threshold = ba.db2linear(threshold_pre);
drive = pow(10.0, (drive_pre - 0.01) / -50.0);
gain = ba.db2linear(gain_pre);
makeup_gain = (1.0 - drive) * threshold + drive : _;
output_gain = makeup_gain * gain : _;
temp_1 = 1.01 - threshold : _;
temp_2 = _ : (_ - threshold) / temp_1 : _;
overdriver = _ : pow(temp_2 , drive) * temp_1 + threshold : _;
trigger = _ : abs <: mz.if(_ >= threshold , overdriver , _) : _;
overdrive = _ <: mz.get_sign * trigger * output_gain : _;
process = ba.bypass1(threshold >= 1.0 , overdrive);
};
process = overdrive(threshold , drive , gain)
with
{
threshold = hslider(
"[1] Threshold (0 disables) [style:slider][unit:dB]" ,
0.0 , -40.0 , 0.0 , 1.0);
drive = hslider(
"[2] Drive [style:slider][unit:exp]" ,
10.0 , 1.0 , 100.0 , 1.0);
gain = hslider(
"[3] Output gain [style:slider][unit:dB]" ,
0.0 , -6.0 , 6.0 , 1.0);
};
|
041a27914f7816cc9dc5aa5589f1b2899e1578709441198132275ff0a1904a09 | Jikstra/faust-plugins | mixer.dsp | import("stdfaust.lib");
channel(i) = vgroup("%i", _*gain,_*gain <: _*volume,_*volume,_*monitor,_*monitor)
with {
volume = vslider("Volume [unit:dB]", 1, 0, 1, 0.1);
gain = vslider("Gain [unit:dB][style:knob]", 0, -10, 10, 0.1): ba.db2linear;
monitor = checkbox("monitor") : si.smoo;
};
process = hgroup("", par(i, 2, channel(i + 1))) :> _,_,_,_;
| https://raw.githubusercontent.com/Jikstra/faust-plugins/3515e771924db980575ce0522e22f38a4f175864/mixer.dsp | faust | import("stdfaust.lib");
channel(i) = vgroup("%i", _*gain,_*gain <: _*volume,_*volume,_*monitor,_*monitor)
with {
volume = vslider("Volume [unit:dB]", 1, 0, 1, 0.1);
gain = vslider("Gain [unit:dB][style:knob]", 0, -10, 10, 0.1): ba.db2linear;
monitor = checkbox("monitor") : si.smoo;
};
process = hgroup("", par(i, 2, channel(i + 1))) :> _,_,_,_;
|
|
b4a8ae47de6fed67840124b967dc5c3f358bab45deb076476661dd0c4bc80533 | jujudusud/BPD | bddi-p3.dsp | // generated automatically
// DO NOT MODIFY!
declare id "bddi-p3";
declare name "BDDI part 3";
declare category "External";
import("stdfaust.lib");
process = pre : fi.iir((b0/a0,b1/a0),(a1/a0)) with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
b0 = 2.07351555136664e-5*fs;
b1 = -2.07351555136664e-5*fs;
a0 = 2.07351555136664e-5*fs + 0.00471253534401508;
a1 = -2.07351555136664e-5*fs + 0.00471253534401508;
};
| https://raw.githubusercontent.com/jujudusud/BPD/f6f931ae528147d59bcf3d4e0a59586338671a58/bddi-dsp/bddi-p3.dsp | faust | generated automatically
DO NOT MODIFY! | declare id "bddi-p3";
declare name "BDDI part 3";
declare category "External";
import("stdfaust.lib");
process = pre : fi.iir((b0/a0,b1/a0),(a1/a0)) with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
b0 = 2.07351555136664e-5*fs;
b1 = -2.07351555136664e-5*fs;
a0 = 2.07351555136664e-5*fs + 0.00471253534401508;
a1 = -2.07351555136664e-5*fs + 0.00471253534401508;
};
|
ad39c5cff678ecbc47553cb544d9c7ce852be4762337e14e34ad7a111a70013b | jujudusud/BPD | bddi-p12.dsp | // generated automatically
// DO NOT MODIFY!
declare id "bddi-p12";
declare name "BDDI part 12";
declare category "External";
import("stdfaust.lib");
process = pre : fi.iir((b0/a0,b1/a0),(a1/a0)) with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
b0 = 2.06260957613373e-5*fs;
b1 = -2.06260957613373e-5*fs;
a0 = 2.08323567189507e-5*fs + 4.68774903666757e-5;
a1 = -2.08323567189507e-5*fs + 4.68774903666757e-5;
};
| https://raw.githubusercontent.com/jujudusud/BPD/f6f931ae528147d59bcf3d4e0a59586338671a58/bddi-dsp/bddi-p12.dsp | faust | generated automatically
DO NOT MODIFY! | declare id "bddi-p12";
declare name "BDDI part 12";
declare category "External";
import("stdfaust.lib");
process = pre : fi.iir((b0/a0,b1/a0),(a1/a0)) with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
b0 = 2.06260957613373e-5*fs;
b1 = -2.06260957613373e-5*fs;
a0 = 2.08323567189507e-5*fs + 4.68774903666757e-5;
a1 = -2.08323567189507e-5*fs + 4.68774903666757e-5;
};
|
ced38c39251b169680e378efbdf59ceb4be90b4ffc857dde0b59ba8027e621be | jujudusud/BPD | bddi-p1.dsp | // generated automatically
// DO NOT MODIFY!
declare id "bddi-p1";
declare name "BDDI part 1";
declare category "External";
import("stdfaust.lib");
process = pre : fi.iir((b0/a0,b1/a0),(a1/a0)) with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
b0 = 2.05209821678814e-5*fs;
b1 = -2.05209821678814e-5*fs;
a0 = 2.07264518776934e-5*fs + 0.00513030987071619;
a1 = -2.07264518776934e-5*fs + 0.00513030987071619;
};
| https://raw.githubusercontent.com/jujudusud/BPD/f6f931ae528147d59bcf3d4e0a59586338671a58/bddi-dsp/bddi-p1.dsp | faust | generated automatically
DO NOT MODIFY! | declare id "bddi-p1";
declare name "BDDI part 1";
declare category "External";
import("stdfaust.lib");
process = pre : fi.iir((b0/a0,b1/a0),(a1/a0)) with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = ba.if(b, 1 - x, x);
s = 0.993;
fs = float(ma.SR);
pre = _;
b0 = 2.05209821678814e-5*fs;
b1 = -2.05209821678814e-5*fs;
a0 = 2.07264518776934e-5*fs + 0.00513030987071619;
a1 = -2.07264518776934e-5*fs + 0.00513030987071619;
};
|
887e6b75990f3e8e331f4aa04b1d1ff39cc2c968de5ff0691706a2ce2754561c | jrkolsby/SoundGarden | moogVCF.dsp | declare name "moogVCF";
declare description "Exercise and compare three Moog VCF implementations";
import("stdfaust.lib");
process = dm.moog_vcf_demo;
| https://raw.githubusercontent.com/jrkolsby/SoundGarden/949835b30b1f7b29c22c20087516667c324130b4/dist/modules/moogVCF.dsp | faust | declare name "moogVCF";
declare description "Exercise and compare three Moog VCF implementations";
import("stdfaust.lib");
process = dm.moog_vcf_demo;
|
|
367d6e0127d2366605bc8f95029d855173503c10c542948da805f67924c2e67e | agraef/pd-remote | organ.dsp |
declare name "organ";
declare description "a simple additive synth";
declare author "Albert Graef";
declare version "2.0";
import("stdfaust.lib");
// master controls (volume and stereo panning)
vol = hslider("/v:[1]/vol [midi:ctrl 2] [osc:/vol]", 0.3, 0, 1, 0.01);
pan = hslider("/v:[1]/pan [midi:ctrl 10] [osc:/pan -1 1]", 0.5, 0, 1, 0.01);
// adsr controls
A = hslider("/v:[2]/[1] attack [osc:/adsr/0]", 0.01, 0, 1, 0.001); // sec
D = hslider("/v:[2]/[2] decay [osc:/adsr/1]", 0.3, 0, 1, 0.001); // sec
S = hslider("/v:[2]/[3] sustain [osc:/adsr/2]", 0.5, 0, 1, 0.01); // 0-1
R = hslider("/v:[2]/[4] release [osc:/adsr/3]", 0.2, 0, 1, 0.001); // sec
// relative amplitudes of the different partials
a(i) = hslider("/v:[3]/amp%i [midi:ctrl %j] [osc:/amp/%k]", 1/i, 0, 3, 0.01) with {j=i+2; k=i-1;};
// pitch bend (2 semitones up and down, in cent increments)
bend = hslider("/v:[4]/bend[midi:pitchbend]", 0, -2, 2, 0.01);
// voice controls
freq(k) = nentry("/freq%k[voice:freq]", 440, 20, 20000, 1); // cps
gain(k) = nentry("/gain%k[voice:gain]", 0.3, 0, 10, 0.01); // 0-10
gate(k) = button("/gate%k[voice:gate]"); // 0/1
// additive synth: 3 sine oscillators with adsr envelop
voice(f) = sum(i, 3, a(i+1)*os.osc((i+1)*f*pow(2,bend/12)));
// number of voices
n = 8;
process = sum(i, n, voice(freq(i))*(gate(i):en.adsr(A,D,S,R))*gain(i))
: (*(vol:si.smooth(0.99)) : sp.panner(pan:si.smooth(0.99)));
| https://raw.githubusercontent.com/agraef/pd-remote/4fede0b70ac5f9544a783dd45ddcf4643a29bc63/examples/dsp/organ.dsp | faust | master controls (volume and stereo panning)
adsr controls
sec
sec
0-1
sec
relative amplitudes of the different partials
pitch bend (2 semitones up and down, in cent increments)
voice controls
cps
0-10
0/1
additive synth: 3 sine oscillators with adsr envelop
number of voices |
declare name "organ";
declare description "a simple additive synth";
declare author "Albert Graef";
declare version "2.0";
import("stdfaust.lib");
vol = hslider("/v:[1]/vol [midi:ctrl 2] [osc:/vol]", 0.3, 0, 1, 0.01);
pan = hslider("/v:[1]/pan [midi:ctrl 10] [osc:/pan -1 1]", 0.5, 0, 1, 0.01);
a(i) = hslider("/v:[3]/amp%i [midi:ctrl %j] [osc:/amp/%k]", 1/i, 0, 3, 0.01) with {j=i+2; k=i-1;};
bend = hslider("/v:[4]/bend[midi:pitchbend]", 0, -2, 2, 0.01);
voice(f) = sum(i, 3, a(i+1)*os.osc((i+1)*f*pow(2,bend/12)));
n = 8;
process = sum(i, n, voice(freq(i))*(gate(i):en.adsr(A,D,S,R))*gain(i))
: (*(vol:si.smooth(0.99)) : sp.panner(pan:si.smooth(0.99)));
|
88f9926931a3d97a42746304de72e95ea8237d47fda26b4a3e3d238555aba47a | chmaha/RCverb | rcverb.dsp | declare name "RCVerb";
declare description "A feedback-delay-network reverb";
declare author "Julius O. Smith III, Christopher Arndt, chmaha";
declare copyright "Copyright (C) 2003-2019 by Julius O. Smith III <[email protected]>";
declare license "GPLv3";
declare version "0.1.0";
import("stdfaust.lib");
zita_rev1 = _,_ <: re.zita_rev1_stereo(rdel,f1,f2,t60dc,t60m,fsmax),_,_ : out_eq,_,_ :
dry_wet : out_level
with{
fsmax = 48000.0; // highest sampling rate that will be used
fdn_group(x) = hgroup(
"[0] Zita_Rev1 [tooltip: ~ ZITA REV1 FEEDBACK DELAY NETWORK (FDN) & SCHROEDER
ALLPASS-COMB REVERBERATOR (8x8). See Faust's reverbs.lib for documentation and
references]", x);
in_group(x) = fdn_group(hgroup("[1] Input", x));
rdel = in_group(vslider("[1] Initial Delay [unit:ms] [style:knob] [tooltip: Delay in ms
before reverberation begins]",40,20,100,1));
freq_group(x) = fdn_group(hgroup("[2] Decay Times in Bands (see tooltips)", x));
f1 = freq_group(vslider("[1] LowFreq X [unit:Hz] [style:knob] [scale:log] [tooltip:
Crossover frequency (Hz) separating low and middle frequencies]", 250, 50, 1000, 1));
t60dc = 1.5*t60m;
t60m = freq_group(vslider("[3] Decay (RT60) [unit:s] [style:knob] [scale:log] [tooltip:
T60 = time (in seconds) to decay 60dB in middle band]",2, 1, 8, 0.1));
f2 = freq_group(vslider("[4] HF Damping [unit:Hz] [style:knob] [scale:log]
[tooltip: Frequency (Hz) at which the high-frequency T60 is half the middle-band's T60]",
3000, 1500, 0.49*fsmax, 1));
out_eq = pareq_stereo(eq1f,eq1l,eq1q) : pareq_stereo(eq2f,eq2l,eq2q);
// Zolzer style peaking eq (not used in zita-rev1) (filters.lib):
// pareq_stereo(eqf,eql,Q) = peak_eq(eql,eqf,eqf/Q), peak_eq(eql,eqf,eqf/Q);
// Regalia-Mitra peaking eq with "Q" hard-wired near sqrt(g)/2 (filters.lib):
pareq_stereo(eqf,eql,Q) = fi.peak_eq_rm(eql,eqf,tpbt), fi.peak_eq_rm(eql,eqf,tpbt)
with {
tpbt = wcT/sqrt(max(0,g)); // tan(PI*B/SR), B bw in Hz (Q^2 ~ g/4)
wcT = 2*ma.PI*eqf/ma.SR; // peak frequency in rad/sample
g = ba.db2linear(eql); // peak gain
};
eq1_group(x) = fdn_group(hgroup("[3] RM Peaking Equalizer 1", x));
eq1f = 315;
eq1l = 0;
eq1q = 3;
eq2_group(x) = fdn_group(hgroup("[4] RM Peaking Equalizer 2", x));
eq2f = 1500;
eq2l = 0;
eq2q = 3;
out_group(x) = fdn_group(hgroup("[5] Output", x));
dry_wet(x,y) = *(wet) + dry*x, *(wet) + dry*y with {
wet = 0.5*(drywet+1.0);
dry = 1.0-wet;
};
drywet = out_group(vslider("[1] Wet/Dry Mix [style:knob] [tooltip: -1 = dry, 1 = wet]",
0, -1.0, 1.0, 0.01)) : si.smoo;
out_level = *(gain),*(gain);
gain = 0 : ba.db2linear : si.smoo;
};
process = _,_ : zita_rev1 : _,_;
| https://raw.githubusercontent.com/chmaha/RCverb/79629101617dee2f887499992e7310cabab3adbd/faust/rcverb.dsp | faust | highest sampling rate that will be used
Zolzer style peaking eq (not used in zita-rev1) (filters.lib):
pareq_stereo(eqf,eql,Q) = peak_eq(eql,eqf,eqf/Q), peak_eq(eql,eqf,eqf/Q);
Regalia-Mitra peaking eq with "Q" hard-wired near sqrt(g)/2 (filters.lib):
tan(PI*B/SR), B bw in Hz (Q^2 ~ g/4)
peak frequency in rad/sample
peak gain | declare name "RCVerb";
declare description "A feedback-delay-network reverb";
declare author "Julius O. Smith III, Christopher Arndt, chmaha";
declare copyright "Copyright (C) 2003-2019 by Julius O. Smith III <[email protected]>";
declare license "GPLv3";
declare version "0.1.0";
import("stdfaust.lib");
zita_rev1 = _,_ <: re.zita_rev1_stereo(rdel,f1,f2,t60dc,t60m,fsmax),_,_ : out_eq,_,_ :
dry_wet : out_level
with{
fdn_group(x) = hgroup(
"[0] Zita_Rev1 [tooltip: ~ ZITA REV1 FEEDBACK DELAY NETWORK (FDN) & SCHROEDER
ALLPASS-COMB REVERBERATOR (8x8). See Faust's reverbs.lib for documentation and
references]", x);
in_group(x) = fdn_group(hgroup("[1] Input", x));
rdel = in_group(vslider("[1] Initial Delay [unit:ms] [style:knob] [tooltip: Delay in ms
before reverberation begins]",40,20,100,1));
freq_group(x) = fdn_group(hgroup("[2] Decay Times in Bands (see tooltips)", x));
f1 = freq_group(vslider("[1] LowFreq X [unit:Hz] [style:knob] [scale:log] [tooltip:
Crossover frequency (Hz) separating low and middle frequencies]", 250, 50, 1000, 1));
t60dc = 1.5*t60m;
t60m = freq_group(vslider("[3] Decay (RT60) [unit:s] [style:knob] [scale:log] [tooltip:
T60 = time (in seconds) to decay 60dB in middle band]",2, 1, 8, 0.1));
f2 = freq_group(vslider("[4] HF Damping [unit:Hz] [style:knob] [scale:log]
[tooltip: Frequency (Hz) at which the high-frequency T60 is half the middle-band's T60]",
3000, 1500, 0.49*fsmax, 1));
out_eq = pareq_stereo(eq1f,eq1l,eq1q) : pareq_stereo(eq2f,eq2l,eq2q);
pareq_stereo(eqf,eql,Q) = fi.peak_eq_rm(eql,eqf,tpbt), fi.peak_eq_rm(eql,eqf,tpbt)
with {
};
eq1_group(x) = fdn_group(hgroup("[3] RM Peaking Equalizer 1", x));
eq1f = 315;
eq1l = 0;
eq1q = 3;
eq2_group(x) = fdn_group(hgroup("[4] RM Peaking Equalizer 2", x));
eq2f = 1500;
eq2l = 0;
eq2q = 3;
out_group(x) = fdn_group(hgroup("[5] Output", x));
dry_wet(x,y) = *(wet) + dry*x, *(wet) + dry*y with {
wet = 0.5*(drywet+1.0);
dry = 1.0-wet;
};
drywet = out_group(vslider("[1] Wet/Dry Mix [style:knob] [tooltip: -1 = dry, 1 = wet]",
0, -1.0, 1.0, 0.01)) : si.smoo;
out_level = *(gain),*(gain);
gain = 0 : ba.db2linear : si.smoo;
};
process = _,_ : zita_rev1 : _,_;
|
52db66a0991ed65ce1deb159a80f3d928ea5bd74c104083d61c3afbe1bd85224 | romsom/faust-experiments | resotron.dsp | import("stdfaust.lib");
// ba = library("basics.lib");
// si = library("signals.lib");
// import("filters.lib");
// import("math.lib");
SR_MAX = 192000.0;
SR_ = min(ma.SR, SR_MAX);
// smoothing filter
ipt = hslider("smooth_time", 0.05, 0, 0.1, 0.001); // s
ip = si.smooth(ba.tau2pole(ipt));
f = hslider("feedback", 0.985, 0.9, 1, 0.001) : ip : min(1) : max(0); // scaling factor
dry = hslider("dry", 0.2, 0, 1, 0.01) : ip : min(1) : max(0); // scaling factor
wet = hslider("wet", 0.1, 0, 1, 0.01) : ip : min(1) : max(0); // scaling factor
transps = hslider("transpose", 0, -24, 24, 1) : ip : min(24) : max(-24);
detune = hslider("detune", 0.066, -1, 1, 0.001) : ip : min(1) : max(-1);
fixed_fdel(n) = \(x).((1-wet) * x@nInt + wet * x@(nInt + 1))
with {
nInt = int(n);
wet = n - nInt;
};
// discard util signal here
d(t) = \(x).(cal(x)) : \(x,y).(x)
with {
cal(x) = (+(x), +(wet* x)) ~ (sd : mux)
with {
// single delay stage, customize
sd(x,y) = y@(t * SR_);
// output signal, feedback signal
mux = _ <: _, f*_;
};
};
resonator(note) = \(x).(dry * x + wet * x : del)
with {
del = d(1 / ba.midikey2hz(note + detune));
};
//d_dorian = (50, 55, 60, 65, 71, 76, 81);
d_dorian(0) = 50;
d_dorian(1) = 55;
d_dorian(2) = 60;
d_dorian(3) = 65;
d_dorian(4) = 71;
d_dorian(5) = 76;
d_dorian(6) = 81;
dorian_resonator(offset_from_d) = par(i, ba.count(d_dorian), resonator(d_dorian(i) + offset_from_d));
//process = dorian_resonator(0), dorian_resonator(4);//process = resonator(50), resonator(65);
process = _ <: resonator(50 + transps), resonator(43 + transps);
//process = _ <: resonator(50 + transps), resonator(52 + transps);
//process = _ <: resonator(52 + transps), resonator(58 + transps);
| https://raw.githubusercontent.com/romsom/faust-experiments/6f5fa3347fb3d01c0247a8fee8ff1221f79abaeb/resotron/resotron.dsp | faust | ba = library("basics.lib");
si = library("signals.lib");
import("filters.lib");
import("math.lib");
smoothing filter
s
scaling factor
scaling factor
scaling factor
discard util signal here
single delay stage, customize
output signal, feedback signal
d_dorian = (50, 55, 60, 65, 71, 76, 81);
process = dorian_resonator(0), dorian_resonator(4);//process = resonator(50), resonator(65);
process = _ <: resonator(50 + transps), resonator(52 + transps);
process = _ <: resonator(52 + transps), resonator(58 + transps); | import("stdfaust.lib");
SR_MAX = 192000.0;
SR_ = min(ma.SR, SR_MAX);
ip = si.smooth(ba.tau2pole(ipt));
transps = hslider("transpose", 0, -24, 24, 1) : ip : min(24) : max(-24);
detune = hslider("detune", 0.066, -1, 1, 0.001) : ip : min(1) : max(-1);
fixed_fdel(n) = \(x).((1-wet) * x@nInt + wet * x@(nInt + 1))
with {
nInt = int(n);
wet = n - nInt;
};
d(t) = \(x).(cal(x)) : \(x,y).(x)
with {
cal(x) = (+(x), +(wet* x)) ~ (sd : mux)
with {
sd(x,y) = y@(t * SR_);
mux = _ <: _, f*_;
};
};
resonator(note) = \(x).(dry * x + wet * x : del)
with {
del = d(1 / ba.midikey2hz(note + detune));
};
d_dorian(0) = 50;
d_dorian(1) = 55;
d_dorian(2) = 60;
d_dorian(3) = 65;
d_dorian(4) = 71;
d_dorian(5) = 76;
d_dorian(6) = 81;
dorian_resonator(offset_from_d) = par(i, ba.count(d_dorian), resonator(d_dorian(i) + offset_from_d));
process = _ <: resonator(50 + transps), resonator(43 + transps);
|
851955f6be3d98dc5fd1e796e67ae8622032f6453021adb981c06745c50c5c58 | biomassa/301dev | wf259.dsp | import("stdfaust.lib");
import("basics.lib");
import("maths.lib");
fold = hslider("fold", 0, 0, 1, 0.001): si.smooth(0.999);
offset = hslider("offset", 0, -1, 1, 0.001): si.smooth (0.999);
LP = hslider("lowpass", 0, 0, 1, 0.001): lin2LogGain: si.smooth (0.999);
scale(x,mn,mx,a,b) = a+(b-a)*(x-mn)/(mx-mn);
R1 = (10., 49.9, 91., 30., 68.);
r2 = 100.;
R3 = (100., 43.2, 56., 68., 33., 240.);
C = (0.-12., 0.-27.777, .0-21.428, 17.647, 36.363);
Vs = 6.;
r1(k) = ba.take(k+1, R1);
r3(k) = ba.take(k+1, R3);
c(k) = ba.take(k+1, C);
term1(k) = Vs*r1(k)/r2;
invClipCond(sig, k) = ma.fabs(sig) > term1(k);
invClipNo(sig, k) = ma.signum(sig) * term1(k);
invClip(sig, k) = ba.if(invClipCond(sig, k), sig, invClipNo(sig, k));
term2(k) = (r2*r3(k)/(r1(k)*r3(k) + r2*r3(k) + r1(k)*r2));
term3(clipped, k) = (clipped - ma.signum(clipped)*term1(k))* c(k);
revClip(sig, k) = (term2(k) * term3(sig, k)):fi.lowpass(5,SR/2.6);
/*fi.bandpass(1,20,16000);*/
folderBranches(sig) = sig <: par(i, 5, revClip(invClip(sig,i), i));
/*folderBranches(sig) = sig <: par(i, 5, invClip(sig,i));*/
wf(sig) = sig <: ( (folderBranches(sig) :> _) + (5.*sig:fi.lowpass(5,SR/2.6)) ):fi.lowpass(1,scale(LP,0,1,1300,SR/2.6));
// Name the ins and outs of the `process` function for use in the er-301 object
declare er301_in1 "InL";
// declare er301_in2 "InR";
declare er301_out1 "OutL";
// declare er301_out2 "OutR";
process = (_*term1(0)*scale(fold,0.,1.,1.,20.) + scale(offset,-1,1,0-term1(2),term1(2))) : wf(_)/6. : ef.cubicnl(0.0,0):fi.dcblockerat(10);
| https://raw.githubusercontent.com/biomassa/301dev/0a14018d69a965a926c7ca83ec288a7eb1d39e48/wf259/dsp/wf259.dsp | faust | fi.bandpass(1,20,16000);
folderBranches(sig) = sig <: par(i, 5, invClip(sig,i));
Name the ins and outs of the `process` function for use in the er-301 object
declare er301_in2 "InR";
declare er301_out2 "OutR"; | import("stdfaust.lib");
import("basics.lib");
import("maths.lib");
fold = hslider("fold", 0, 0, 1, 0.001): si.smooth(0.999);
offset = hslider("offset", 0, -1, 1, 0.001): si.smooth (0.999);
LP = hslider("lowpass", 0, 0, 1, 0.001): lin2LogGain: si.smooth (0.999);
scale(x,mn,mx,a,b) = a+(b-a)*(x-mn)/(mx-mn);
R1 = (10., 49.9, 91., 30., 68.);
r2 = 100.;
R3 = (100., 43.2, 56., 68., 33., 240.);
C = (0.-12., 0.-27.777, .0-21.428, 17.647, 36.363);
Vs = 6.;
r1(k) = ba.take(k+1, R1);
r3(k) = ba.take(k+1, R3);
c(k) = ba.take(k+1, C);
term1(k) = Vs*r1(k)/r2;
invClipCond(sig, k) = ma.fabs(sig) > term1(k);
invClipNo(sig, k) = ma.signum(sig) * term1(k);
invClip(sig, k) = ba.if(invClipCond(sig, k), sig, invClipNo(sig, k));
term2(k) = (r2*r3(k)/(r1(k)*r3(k) + r2*r3(k) + r1(k)*r2));
term3(clipped, k) = (clipped - ma.signum(clipped)*term1(k))* c(k);
revClip(sig, k) = (term2(k) * term3(sig, k)):fi.lowpass(5,SR/2.6);
folderBranches(sig) = sig <: par(i, 5, revClip(invClip(sig,i), i));
wf(sig) = sig <: ( (folderBranches(sig) :> _) + (5.*sig:fi.lowpass(5,SR/2.6)) ):fi.lowpass(1,scale(LP,0,1,1300,SR/2.6));
declare er301_in1 "InL";
declare er301_out1 "OutL";
process = (_*term1(0)*scale(fold,0.,1.,1.,20.) + scale(offset,-1,1,0-term1(2),term1(2))) : wf(_)/6. : ef.cubicnl(0.0,0):fi.dcblockerat(10);
|
c719717aae35d2d6e3f8eb6ace6fd0ceef8559db56c34f19b275fe31908027da | publicsamples/Xolotls-Weird-Delay | g.dsp | import("stdfaust.lib");
transpose (w, x, s, sig) =
fdelay1s(d,sig)*ma.fmin(d/x,1) + fdelay1s(d+w,sig)*(1-ma.fmin(d/x,1))
with {
i = 1 - pow(2, s/12);
d = i : (+ : +(w) : fmod(_,w)) ~ _;
};
pitchshifter = ef.transpose(hslider("Window[style:knob][OWL:PARAMETER_B]", 1000, 50, 1200000, 1),
hslider("Crossfade[style:knob][OWL:PARAMETER_C]", 10, 1, 10000, 1),
hslider("Pitch Shift[style:knob][OWL:PARAMETER_A]", 0, -12, +12, 0.1) +
hslider("Super Pitch[style:knob][OWL:PARAMETER_E]", 0, 0, 12, 0.01)
);
// add dry wet control
stereodrywet (monofx) = _,_ <: *(1-dw), *(1-dw), monofx*dw, monofx*dw :> _,_
with {
dw = hslider("Dry/Wet[OWL:PARAMETER_D]",0.5,0,1,0.01);
};
process = stereodrywet(pitchshifter); | https://raw.githubusercontent.com/publicsamples/Xolotls-Weird-Delay/dc304161575f8abca9ae4a878efde701126b18be/DspNetworks/CodeLibrary/faust/g.dsp | faust | add dry wet control | import("stdfaust.lib");
transpose (w, x, s, sig) =
fdelay1s(d,sig)*ma.fmin(d/x,1) + fdelay1s(d+w,sig)*(1-ma.fmin(d/x,1))
with {
i = 1 - pow(2, s/12);
d = i : (+ : +(w) : fmod(_,w)) ~ _;
};
pitchshifter = ef.transpose(hslider("Window[style:knob][OWL:PARAMETER_B]", 1000, 50, 1200000, 1),
hslider("Crossfade[style:knob][OWL:PARAMETER_C]", 10, 1, 10000, 1),
hslider("Pitch Shift[style:knob][OWL:PARAMETER_A]", 0, -12, +12, 0.1) +
hslider("Super Pitch[style:knob][OWL:PARAMETER_E]", 0, 0, 12, 0.01)
);
stereodrywet (monofx) = _,_ <: *(1-dw), *(1-dw), monofx*dw, monofx*dw :> _,_
with {
dw = hslider("Dry/Wet[OWL:PARAMETER_D]",0.5,0,1,0.01);
};
process = stereodrywet(pitchshifter); |
Subsets and Splits