_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
|
---|---|---|---|---|---|---|---|
27fa8e4c2f588800d908adfe333b248f4cc5ce1e320f7db755e20e7ffa13711e | pingdynasty/OwlPatches | AutoWah.dsp | import("stdfaust.lib");
monowah = ve.autowah(level) with {
level = min(1, hslider("Wah[OWL:PARAMETER_D]",0.6,0,1,0.0001) +
hslider("Super Wah[OWL:PARAMETER_E]",0.0,0,0.8,0.0001));
};
process = monowah*gain with {
gain = hslider("Gain[OWL:PARAMETER_A]",1.0,0,2,0.0001);
};
| https://raw.githubusercontent.com/pingdynasty/OwlPatches/2be8a65bb257b53ee7ee0b9d4b5a1ad249e16dab/Faust/AutoWah.dsp | faust | import("stdfaust.lib");
monowah = ve.autowah(level) with {
level = min(1, hslider("Wah[OWL:PARAMETER_D]",0.6,0,1,0.0001) +
hslider("Super Wah[OWL:PARAMETER_E]",0.0,0,0.8,0.0001));
};
process = monowah*gain with {
gain = hslider("Gain[OWL:PARAMETER_A]",1.0,0,2,0.0001);
};
|
|
4f0a1d2a21f548d86b07d5c4eb443925320845effe64f399d8a63c7a611f5734 | pingdynasty/OwlPatches | Crybaby.dsp | import("stdfaust.lib");
process = ve.crybaby(wah) with {
// wah = hslider("[1] AhAh [OWL:PARAMETER_A]",0.6,0,1,0.01) : ba.automat(360, 10, 0.0); // 4246 ARM cycles
wah = hslider("[1] AhAh [OWL:PARAMETER_A]",0.6,0,1,0.01); // 441 ARM cycles
};
| https://raw.githubusercontent.com/pingdynasty/OwlPatches/2be8a65bb257b53ee7ee0b9d4b5a1ad249e16dab/Faust/Crybaby.dsp | faust | wah = hslider("[1] AhAh [OWL:PARAMETER_A]",0.6,0,1,0.01) : ba.automat(360, 10, 0.0); // 4246 ARM cycles
441 ARM cycles | import("stdfaust.lib");
process = ve.crybaby(wah) with {
};
|
6ec97c4f619c18e69bca1fafd5b6eb5ecb9a77e0276e4e24f7c1186edbd4fcef | TobiasKozel/GuitarD | AutoWah.dsp | import("stdfaust.lib");
level = vslider("Wah",1, 0, 1, 0.001);
process = sp.stereoize(ve.autowah(level)); | https://raw.githubusercontent.com/TobiasKozel/GuitarD/80d5b8e6fa2eab99bbee80e6dacb5f0f482bbb52/src/nodes/autowah/AutoWah.dsp | faust | import("stdfaust.lib");
level = vslider("Wah",1, 0, 1, 0.001);
process = sp.stereoize(ve.autowah(level)); |
|
4eb6db0d6f9e5c783d11d9b3e08f8ea817f55ad8eb1a4e880167185dc248ff72 | Fr0stbyteR/faust2wam | guitar1.dsp | import("stdfaust.lib"); process = pm.guitar_ui_MIDI <: _,_;
effect = *(hslider("Left", 0.1, 0, 1, 0.01)), *(hslider("Right", 0.1, 0, 1, 0.01)); | https://raw.githubusercontent.com/Fr0stbyteR/faust2wam/324029ac35a233cb62b9954917ca138984daddc4/test/guitar1.dsp | faust | import("stdfaust.lib"); process = pm.guitar_ui_MIDI <: _,_;
effect = *(hslider("Left", 0.1, 0, 1, 0.01)), *(hslider("Right", 0.1, 0, 1, 0.01)); |
|
d97c0199fbfe5a2b7e2519df74c95ad01766ff3ad2b2df77f1e4ad2e73ad7160 | friskgit/kmh_108 | KMH108_channel_map.dsp | declare name "KMH108_channel_map";
declare version " 0.1 ";
declare author " Henrik Frisk " ;
declare license " BSD ";
declare copyright "(c) dinergy/kmh 2018 ";
//---------------`Channel mapping plugin` --------------------------
//
// Channel mapping plugin that takes 8 channels of input (center speaker excluded)
// and maps it to the channel/speaker configuration of the studio 108 according to:
//
// * Audio interface ch -> signal output (clock wise starting at left)
// * 1 -> 1 (L)
// * 2 -> 2 (R)
// * 3 -> 8 (LSR)
// * 4 -> 3 (RSR)
// * 5 -> 7 (LSF)
// * 6 -> 4 (RSF)
// * 7 -> 6 (RL)
// * 8 -> 5 (RR)
//
//---------------------------------------------------
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(L, R, RSF, RSR, RR, LR, LSR, LSF) = (L, R, RSF, RSR, RR, LR, LSR, LSF) <:
ba.selector(0, 8), // 1 L
ba.selector(1, 8), // 2 R
ba.selector(7, 8), // 3 LSF
ba.selector(2, 8), // 4 RSF
ba.selector(6, 8), // 5 LSR
ba.selector(3, 8), // 6 RSR
ba.selector(5, 8), // 7 RL
ba.selector(4, 8); // 8 RR
//hgroup("lower ring", par(i, 8, vgroup("%i", vmeter)));
| https://raw.githubusercontent.com/friskgit/kmh_108/5e048b75b1acb59c85432156c599a52ceecc5b93/KMH108_utility/bin/max/KMH108_channel_map%7E.mxo/KMH108_channel_map.dsp | faust | ---------------`Channel mapping plugin` --------------------------
Channel mapping plugin that takes 8 channels of input (center speaker excluded)
and maps it to the channel/speaker configuration of the studio 108 according to:
* Audio interface ch -> signal output (clock wise starting at left)
* 1 -> 1 (L)
* 2 -> 2 (R)
* 3 -> 8 (LSR)
* 4 -> 3 (RSR)
* 5 -> 7 (LSF)
* 6 -> 4 (RSF)
* 7 -> 6 (RL)
* 8 -> 5 (RR)
---------------------------------------------------
1 L
2 R
3 LSF
4 RSF
5 LSR
6 RSR
7 RL
8 RR
hgroup("lower ring", par(i, 8, vgroup("%i", vmeter))); | declare name "KMH108_channel_map";
declare version " 0.1 ";
declare author " Henrik Frisk " ;
declare license " BSD ";
declare copyright "(c) dinergy/kmh 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(L, R, RSF, RSR, RR, LR, LSR, LSF) = (L, R, RSF, RSR, RR, LR, LSR, LSF) <:
|
9ada5c4ecdcf818564be55a4503a386d72efcd587371d768885511760ad3a4e8 | friskgit/kmh_108 | KMH108_channel_map_C.dsp | declare name "KMH108_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 8 channels of input (center speaker included)
// and maps it to the channel/speaker configuration of the studio 108 according to:
//
// * Audio interface ch -> signal output (clock wise starting at left)
// * 1 -> 1 (L)
// * 2 -> 3 (R)
// * 3 -> 9 (LSR)
// * 4 -> 4 (RSR)
// * 5 -> 8 (LSF)
// * 6 -> 5 (RSF)
// * 7 -> 7 (RL)
// * 8 -> 6 (RR)
// * 9 -> 2 (C)
//
//---------------------------------------------------
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(L, C, R, RSF, RSR, RR, RL, LSR, LSF) = (L, C, R, RSF, RSR, RR, RL, LSR, LSF) <:
ba.selector(0, 9), // 1 L
ba.selector(2, 9), // 2 R
ba.selector(8, 9), // 3 LSF
ba.selector(3, 9), // 4 RSF
ba.selector(7, 9), // 5 LSR
ba.selector(4, 9), // 6 RSR
ba.selector(6, 9), // 7 LR
ba.selector(5, 9), // 8 RR
ba.selector(1, 9) : // 9 C
hgroup("lower ring", par(i, 9, vgroup("%i", vmeter)));
| https://raw.githubusercontent.com/friskgit/kmh_108/5e048b75b1acb59c85432156c599a52ceecc5b93/KMH108_utility/bin/max/KMH108_channel_map_C%7E.mxo/KMH108_channel_map_C.dsp | faust | ---------------`Channel mapping plugin` --------------------------
Channel mapping plugin that takes 8 channels of input (center speaker included)
and maps it to the channel/speaker configuration of the studio 108 according to:
* Audio interface ch -> signal output (clock wise starting at left)
* 1 -> 1 (L)
* 2 -> 3 (R)
* 3 -> 9 (LSR)
* 4 -> 4 (RSR)
* 5 -> 8 (LSF)
* 6 -> 5 (RSF)
* 7 -> 7 (RL)
* 8 -> 6 (RR)
* 9 -> 2 (C)
---------------------------------------------------
1 L
2 R
3 LSF
4 RSF
5 LSR
6 RSR
7 LR
8 RR
9 C | declare name "KMH108_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(L, C, R, RSF, RSR, RR, RL, LSR, LSF) = (L, C, R, RSF, RSR, RR, RL, LSR, LSF) <:
hgroup("lower ring", par(i, 9, vgroup("%i", vmeter)));
|
b47a32ff715e023a1388eda12d196ec3441b7057d75ac7a07b7897974df3837c | TobiasKozel/GuitarD | CryBaby.dsp | import("stdfaust.lib");
wah = vslider( "Wah", 0, 0, 1, 0.01);
process = ve.crybaby(wah), ve.crybaby(wah); | https://raw.githubusercontent.com/TobiasKozel/GuitarD/80d5b8e6fa2eab99bbee80e6dacb5f0f482bbb52/src/nodes/crybaby/CryBaby.dsp | faust | import("stdfaust.lib");
wah = vslider( "Wah", 0, 0, 1, 0.01);
process = ve.crybaby(wah), ve.crybaby(wah); |
|
8c669bc23fa7f536ea601c66ec2b995b6b6350e2d613b59b16a2e7b76f26ab05 | SuyashRamteke/FAUST---Real-time-Audio-Signal-Processing | feedforwardfilter.dsp | import ("stdfaust.lib");
OneZero = vgroup("One-Zero filter", _ <: (_' : *(b1)), _ :> _)
with {
b1 = hslider("b1", 0, -1, 1, 0.01);
};
process = no.noise : OneZero; | https://raw.githubusercontent.com/SuyashRamteke/FAUST---Real-time-Audio-Signal-Processing/ca24b8d650b6d77435d8128b0aa8e4d8b6022c30/feedforwardfilter.dsp | faust | import ("stdfaust.lib");
OneZero = vgroup("One-Zero filter", _ <: (_' : *(b1)), _ :> _)
with {
b1 = hslider("b1", 0, -1, 1, 0.01);
};
process = no.noise : OneZero; |
|
b52058274ec319dff5141467e6bf495bf89131b030fa4046effa2338e6cc4d26 | clearly-broken-software/Uprising | SinLFO.dsp | import("stdfaust.lib");
freq = hslider("freq",100,0.01,100,0.01);
process = os.oscsin(freq);
| https://raw.githubusercontent.com/clearly-broken-software/Uprising/89f5b49d90cd47611da7e7dc2009061768716b4c/plugins/uprising/dsp/faust/SinLFO.dsp | faust | import("stdfaust.lib");
freq = hslider("freq",100,0.01,100,0.01);
process = os.oscsin(freq);
|
|
d73f1bf64dd93aac13a86958499ef5c8ac562224d88ac60c61999abcdcfc6041 | clearly-broken-software/Uprising | SineOsc.dsp | import("stdfaust.lib");
process = os.osc(hslider("sine_freq",100,20,20000,1):si.smoo)<:_,_; | https://raw.githubusercontent.com/clearly-broken-software/Uprising/89f5b49d90cd47611da7e7dc2009061768716b4c/plugins/uprising/dsp/faust/SineOsc.dsp | faust | import("stdfaust.lib");
process = os.osc(hslider("sine_freq",100,20,20000,1):si.smoo)<:_,_; |
|
acd16b072635664ae4fbc6c86b19c7117a36b955dafa531cd9d1549c121fb1c8 | publicsamples/Quetzalcoatl | FilteredStereoNoise.dsp | import("stdfaust.lib");
import("owl.lib");
f = hslider("Frequency[OWL:A]",1000,10,3000,0.01);
diff = hslider("Difference[OWL:B]",0.5,0,1,0.01);
q = 5;
gain = 1;
process = no.noise * 0.5 <: fi.resonbp(f * diff, q, gain), fi.resonbp(f * (1-diff), q, gain);
| https://raw.githubusercontent.com/publicsamples/Quetzalcoatl/547f2585651af68b32072846088cc97f3c80acc0/Quetzalcoatl/DspNetworks/CodeLibrary/faust/FilteredStereoNoise.dsp | faust | import("stdfaust.lib");
import("owl.lib");
f = hslider("Frequency[OWL:A]",1000,10,3000,0.01);
diff = hslider("Difference[OWL:B]",0.5,0,1,0.01);
q = 5;
gain = 1;
process = no.noise * 0.5 <: fi.resonbp(f * diff, q, gain), fi.resonbp(f * (1-diff), q, gain);
|
|
b78d4a6b09ebd5011978e3cb3262bc6d8dcbb729ccdc17d5bea375ed08f0e345 | kretopi/pdToFaust | line.dsp | declare name "line";
declare author "Piotr Goj";
import("stdfaust.lib");
bang = button("bang"):ba.impulsify;
start = hslider("start", 200, 0, 1000, 1) : ba.sAndH(bang);
end = hslider("end", 500, 0, 1000, 1) : ba.sAndH(bang);
duration = hslider("duration", 1, 0, 5, 0.01) : ba.sAndH(bang);
process = line(start, end, duration, bang): os.osc <: _, _;
line(start, end, duration,gate) = L
// based on en.ar function
with {
// durations in samples
dur = max(1, duration * ma.SR);
// step per samples
step = (end - start) / dur;
// attack time (starts at gate upfront and raises infinitely)
atime = (raise*reset + upfront) ~ _
with {
upfront = gate > gate';
reset = gate <= gate';
raise(x) = (x + (x > 0));
};
// wait for gate
S = atime > 1;
// line curve
A = start + step * atime;
// case up or down
L = ba.if(end > start, A * S : min(end) * S, A * S : max(end) * S);
};
| https://raw.githubusercontent.com/kretopi/pdToFaust/c8068ae517e23b961c578b333fa5db634088c517/examples/line/line.dsp | faust | based on en.ar function
durations in samples
step per samples
attack time (starts at gate upfront and raises infinitely)
wait for gate
line curve
case up or down | declare name "line";
declare author "Piotr Goj";
import("stdfaust.lib");
bang = button("bang"):ba.impulsify;
start = hslider("start", 200, 0, 1000, 1) : ba.sAndH(bang);
end = hslider("end", 500, 0, 1000, 1) : ba.sAndH(bang);
duration = hslider("duration", 1, 0, 5, 0.01) : ba.sAndH(bang);
process = line(start, end, duration, bang): os.osc <: _, _;
line(start, end, duration,gate) = L
with {
dur = max(1, duration * ma.SR);
step = (end - start) / dur;
atime = (raise*reset + upfront) ~ _
with {
upfront = gate > gate';
reset = gate <= gate';
raise(x) = (x + (x > 0));
};
S = atime > 1;
A = start + step * atime;
L = ba.if(end > start, A * S : min(end) * S, A * S : max(end) * S);
};
|
ac52c2d655fcbceaf8c7c81dd2aae9c065235a33ad0b1a4ce0dfcdb444b92371 | elk-community/faust-plugins | djembe.dsp | declare name "djembe";
declare description "Simple MIDI controllable djembe physical model with built-in UI.";
declare license "MIT";
declare copyright "using modules from FAUST physical modeling library, (c)Romain Michon et al., CCRMA (Stanford University), GRAME";
import("stdfaust.lib");
process = pm.djembe_ui_MIDI <: _,_;
| https://raw.githubusercontent.com/elk-community/faust-plugins/79096404d4b4334dba512a3e3a8104afefb9db8d/physmodels/djembe.dsp | faust | declare name "djembe";
declare description "Simple MIDI controllable djembe physical model with built-in UI.";
declare license "MIT";
declare copyright "using modules from FAUST physical modeling library, (c)Romain Michon et al., CCRMA (Stanford University), GRAME";
import("stdfaust.lib");
process = pm.djembe_ui_MIDI <: _,_;
|
|
02a2e1655656a4e2c7b1d656aec8d1ed5ad03ab245cc3bef7e96a69d0259e3ba | sphiralstudios/256AHW3 | voice.dsp | import("stdfaust.lib");
freq = vslider("freq",440,20,20000,0.01);
gain = vslider("gain",0.5,0,1,0.01) : si.smoo;
attack = vslider("att", 0.1, 0, 2, 0.0001) : si.smoo;
delay = vslider("del", 0.1, 0, 2, 0.0001) : si.smoo;
sustain = vslider("sus", 75, 0, 100, 0.1) : si.smoo;
release = vslider("rel", 0.5, 0, 4, 0.0001) : si.smoo;
trigger = checkbox("trig");
env = en.adsr(attack,delay,sustain,release, trigger):_;
cutoff = vslider("cutoff", 9, 0, 9, 0.001) : si.smoo;
cfreq = 20*(2^cutoff);
reson = vslider("Q", 7, 1, 20, 0.001) : si.smoo;
vibrate = vslider("vibrate", 6, 2, 10, 0.001) : si.smoo;
vibstr = vslider("vibstr", 0.5, 0, 1, 0.001) : si.smoo;
vibMWOn = checkbox("vibMWOn") : si.smoo;
vibPhase = vslider("vibPhase", 0, 0, 1, 0.0001) : si.smoo;
tremrate = vslider("tremrate", 6, 2, 10, 0.001) : si.smoo;
tremstr = vslider("tremstr", 0.5, 0, 1, 0.001) : si.smoo;
tremMWOn = checkbox("tremMWOn") : si.smoo;
tremPhase = vslider("tremPhase", 0, 0, 1, 0.001) :si.smoo;
pBend = vslider("pitchBend", 0, -2, 2, 0.00005) :si.smoo;
modWheel = vslider("modWheel", 0, 0, 127, 1) : si.smoo;
vibOn = checkbox("vibOn") : si.smoo;
tremOn = checkbox("tremOn") : si.smoo;
process = hgroup("voice", os.sawtooth(freq*(2^(pBend/12)) + (os.oscp(vibrate, 2*ma.PI*vibPhase) * vibstr * 10 * (vibOn + (vibMWOn * modWheel)))) * ((((os.oscp(tremrate,2*ma.PI*tremPhase) * 0.5) + 0.5)*tremstr*(tremOn+(tremMWOn*modWheel)))+(1-tremstr*(tremOn + (tremMWOn * modWheel)))) * gain * env : fi.resonlp(cfreq,reson,gain),env );
| https://raw.githubusercontent.com/sphiralstudios/256AHW3/565473207f13c94738119147cf4b63d8bedfd517/Source/voice.dsp | faust | import("stdfaust.lib");
freq = vslider("freq",440,20,20000,0.01);
gain = vslider("gain",0.5,0,1,0.01) : si.smoo;
attack = vslider("att", 0.1, 0, 2, 0.0001) : si.smoo;
delay = vslider("del", 0.1, 0, 2, 0.0001) : si.smoo;
sustain = vslider("sus", 75, 0, 100, 0.1) : si.smoo;
release = vslider("rel", 0.5, 0, 4, 0.0001) : si.smoo;
trigger = checkbox("trig");
env = en.adsr(attack,delay,sustain,release, trigger):_;
cutoff = vslider("cutoff", 9, 0, 9, 0.001) : si.smoo;
cfreq = 20*(2^cutoff);
reson = vslider("Q", 7, 1, 20, 0.001) : si.smoo;
vibrate = vslider("vibrate", 6, 2, 10, 0.001) : si.smoo;
vibstr = vslider("vibstr", 0.5, 0, 1, 0.001) : si.smoo;
vibMWOn = checkbox("vibMWOn") : si.smoo;
vibPhase = vslider("vibPhase", 0, 0, 1, 0.0001) : si.smoo;
tremrate = vslider("tremrate", 6, 2, 10, 0.001) : si.smoo;
tremstr = vslider("tremstr", 0.5, 0, 1, 0.001) : si.smoo;
tremMWOn = checkbox("tremMWOn") : si.smoo;
tremPhase = vslider("tremPhase", 0, 0, 1, 0.001) :si.smoo;
pBend = vslider("pitchBend", 0, -2, 2, 0.00005) :si.smoo;
modWheel = vslider("modWheel", 0, 0, 127, 1) : si.smoo;
vibOn = checkbox("vibOn") : si.smoo;
tremOn = checkbox("tremOn") : si.smoo;
process = hgroup("voice", os.sawtooth(freq*(2^(pBend/12)) + (os.oscp(vibrate, 2*ma.PI*vibPhase) * vibstr * 10 * (vibOn + (vibMWOn * modWheel)))) * ((((os.oscp(tremrate,2*ma.PI*tremPhase) * 0.5) + 0.5)*tremstr*(tremOn+(tremMWOn*modWheel)))+(1-tremstr*(tremOn + (tremMWOn * modWheel)))) * gain * env : fi.resonlp(cfreq,reson,gain),env );
|
|
01c24aea8226647c594aeb1faf5dcbee9fec829a3b5a364aad78b59c55e682f0 | darkoverlordofdata/amp-sim-faust | phaser.dsp | import("stdfaust.lib");
import("layout2.dsp");
process = dm.phaser2_demo;
| https://raw.githubusercontent.com/darkoverlordofdata/amp-sim-faust/91696611bc64e94c5767a43aaa0478f260ca43a3/src/phaser.dsp | faust | import("stdfaust.lib");
import("layout2.dsp");
process = dm.phaser2_demo;
|
|
908e57350363667ef751e210797145f1bf81d3f967a66174f7b0b1fe88308e24 | Fr0stbyteR/faust2wam | osc3.dsp | import("stdfaust.lib");
f = hslider("freq",440,50,2000,0.01);
phasor(freq) = (+(freq/ma.SR) ~ ma.decimal);
process = phasor(f); | https://raw.githubusercontent.com/Fr0stbyteR/faust2wam/324029ac35a233cb62b9954917ca138984daddc4/test/osc3.dsp | faust | import("stdfaust.lib");
f = hslider("freq",440,50,2000,0.01);
phasor(freq) = (+(freq/ma.SR) ~ ma.decimal);
process = phasor(f); |
|
3d267113456cac76f873babd43e0b5ca731601869818047e4605ecf521cf37af | madskjeldgaard/faustquark-example | fq_stereoflanger.dsp | import("stdfaust.lib");
process = flanger_stereo_demo with {
invert = checkbox("[1] Invert Flange Sum");
flanger_stereo_demo(x,y) = x,y : *(level),*(level) : pf.flanger_stereo(dmax,curdel1,curdel2,depth,fb,invert);
lfol = component("oscillator.lib").oscrs; // sine for left channel
lfor = component("oscillator.lib").oscrc; // cosine for right channel
dmax = 2048;
dflange = 0.001 * ma.SR * hslider("[1] Flange Delay [unit:ms] [style:knob]", 10, 0, 20, 0.001);
odflange = 0.001 * ma.SR *
hslider("[2] Delay Offset [unit:ms] [style:knob]", 1, 0, 20, 0.001);
freq = hslider("[1] Speed [unit:Hz] [style:knob]", 0.5, 0, 10, 0.01);
depth = hslider("[2] Depth [style:knob]", 1, 0, 1, 0.001);
fb = hslider("[3] Feedback [style:knob]", 0, -0.999, 0.999, 0.001);
level = hslider("Flanger Output Level [unit:dB]", 0, -60, 10, 0.1) : ba.db2linear;
curdel1 = odflange+dflange*(1 + lfol(freq))/2;
curdel2 = odflange+dflange*(1 + lfor(freq))/2;
};
| https://raw.githubusercontent.com/madskjeldgaard/faustquark-example/7e1f191b7854a20bd4ec7eb12b44712abb79b6d0/faust/fq_stereoflanger.dsp | faust | sine for left channel
cosine for right channel | import("stdfaust.lib");
process = flanger_stereo_demo with {
invert = checkbox("[1] Invert Flange Sum");
flanger_stereo_demo(x,y) = x,y : *(level),*(level) : pf.flanger_stereo(dmax,curdel1,curdel2,depth,fb,invert);
dmax = 2048;
dflange = 0.001 * ma.SR * hslider("[1] Flange Delay [unit:ms] [style:knob]", 10, 0, 20, 0.001);
odflange = 0.001 * ma.SR *
hslider("[2] Delay Offset [unit:ms] [style:knob]", 1, 0, 20, 0.001);
freq = hslider("[1] Speed [unit:Hz] [style:knob]", 0.5, 0, 10, 0.01);
depth = hslider("[2] Depth [style:knob]", 1, 0, 1, 0.001);
fb = hslider("[3] Feedback [style:knob]", 0, -0.999, 0.999, 0.001);
level = hslider("Flanger Output Level [unit:dB]", 0, -60, 10, 0.1) : ba.db2linear;
curdel1 = odflange+dflange*(1 + lfol(freq))/2;
curdel2 = odflange+dflange*(1 + lfor(freq))/2;
};
|
98a089169b204d54f839f28e9eb536dbb3d8340de785d5abed481990f7121f10 | elk-community/faust-plugins | violin.dsp | declare name "violin";
declare description "Ready-to-use MIDI-enabled violin physical model with built-in UI.";
declare license "MIT";
declare copyright "using modules from FAUST physical modeling library, (c)Romain Michon et al., CCRMA (Stanford University), GRAME";
import("stdfaust.lib");
process = pm.violin_ui_MIDI <: _,_;
| https://raw.githubusercontent.com/elk-community/faust-plugins/79096404d4b4334dba512a3e3a8104afefb9db8d/physmodels/violin.dsp | faust | declare name "violin";
declare description "Ready-to-use MIDI-enabled violin physical model with built-in UI.";
declare license "MIT";
declare copyright "using modules from FAUST physical modeling library, (c)Romain Michon et al., CCRMA (Stanford University), GRAME";
import("stdfaust.lib");
process = pm.violin_ui_MIDI <: _,_;
|
|
fa5c672e087732b789144c67eb6279e5f30549299e0bb35f4ea84309e90230b9 | elk-community/faust-plugins | karplus.dsp | declare name "karplus";
declare description "Ready-to-use, MIDI-enabled Karplus-Strong string with buil-in UI.";
declare license "MIT";
declare copyright "using modules from FAUST physical modeling library, (c)Romain Michon et al., CCRMA (Stanford University), GRAME";
import("stdfaust.lib");
process = pm.ks_ui_MIDI <: _,_;
| https://raw.githubusercontent.com/elk-community/faust-plugins/79096404d4b4334dba512a3e3a8104afefb9db8d/physmodels/karplus.dsp | faust | declare name "karplus";
declare description "Ready-to-use, MIDI-enabled Karplus-Strong string with buil-in UI.";
declare license "MIT";
declare copyright "using modules from FAUST physical modeling library, (c)Romain Michon et al., CCRMA (Stanford University), GRAME";
import("stdfaust.lib");
process = pm.ks_ui_MIDI <: _,_;
|
|
203b4a2101f8192d3a049a8cfaf40e0655674255716d67b9ff0f282bbc919d8f | LucaSpanedda/Sintesi_per_modelli_fisici_in_FAUST | 1.01_KarplusStrong_Variable_Window.dsp | // ----------------------------------------
// KARPLUS STRONG VARIABLE WINDOW
// ----------------------------------------
// Importo libreria standard di FAUST
import("stdfaust.lib");
/*
Algoritmo di simulazione della corda
secondo il modello KARPLUS STRONG
con finestra triangolare variabile con
controllo della potenza (POW)
*/
eccitator(frequency,powwindow) = outeccitator
with{
// NOISE GENERATION
random = +(12345)~*(1103515245);
noise = random/2147483647.0;
// TRIANG WINDOW FOR THE NOISE WITH POW
decimale(x)= x-int(x);
phase = (frequency/ma.SR : (+ : decimale) ~ _)-0.5;
phasorscaleneg = (((phase > 0)*phase)*-1);
phasorneg = ((phase < 0)*phase);
phasesum = ((phasorneg+phasorscaleneg)+0.5)*2;
phasepow = phasesum: pow(powwindow);
outeccitator = noise*phasepow;
};
resonator(delfreq,feedback,lowpass) = lfbcf
with{
// LOWPASS FEEDBACK COMB FILTER
lfbcf = (+ : @(ma.SR/(delfreq-1)) :
_*lowpass : +~(_ : *(1-lowpass)))~ *(feedback) : mem;
};
// KARPLUS STRONG FUNCTION WITH WINDOW
kstrongpow(fimp,windimp,freq,fb,lowcut) =
eccitator(fimp,windimp) :
resonator(freq,fb,lowcut) :
fi.dcblocker;
// (impulse-freq,window(0-1000),frequency,feedback(0-1),lowcut(0-1))
process = kstrongpow(0.5,800,261.6/2,0.999,0.4) <:_,_; | https://raw.githubusercontent.com/LucaSpanedda/Sintesi_per_modelli_fisici_in_FAUST/a0d2b5946375ed4596803d26440b790acb1a9cfe/1.01_KarplusStrong_Variable_Window.dsp | faust | ----------------------------------------
KARPLUS STRONG VARIABLE WINDOW
----------------------------------------
Importo libreria standard di FAUST
Algoritmo di simulazione della corda
secondo il modello KARPLUS STRONG
con finestra triangolare variabile con
controllo della potenza (POW)
NOISE GENERATION
TRIANG WINDOW FOR THE NOISE WITH POW
LOWPASS FEEDBACK COMB FILTER
KARPLUS STRONG FUNCTION WITH WINDOW
(impulse-freq,window(0-1000),frequency,feedback(0-1),lowcut(0-1))
|
import("stdfaust.lib");
eccitator(frequency,powwindow) = outeccitator
with{
random = +(12345)~*(1103515245);
noise = random/2147483647.0;
decimale(x)= x-int(x);
phase = (frequency/ma.SR : (+ : decimale) ~ _)-0.5;
phasorscaleneg = (((phase > 0)*phase)*-1);
phasorneg = ((phase < 0)*phase);
phasesum = ((phasorneg+phasorscaleneg)+0.5)*2;
phasepow = phasesum: pow(powwindow);
outeccitator = noise*phasepow;
};
resonator(delfreq,feedback,lowpass) = lfbcf
with{
lfbcf = (+ : @(ma.SR/(delfreq-1)) :
_*lowpass : +~(_ : *(1-lowpass)))~ *(feedback) : mem;
};
kstrongpow(fimp,windimp,freq,fb,lowcut) =
eccitator(fimp,windimp) :
resonator(freq,fb,lowcut) :
fi.dcblocker;
process = kstrongpow(0.5,800,261.6/2,0.999,0.4) <:_,_; |
c7c095b080264486e0137d09d1f474667d3162438d9e04e0c28fea83c685958b | shakfu/soundlab | shax_delay0.dsp | import("stdfaust.lib");
myecho = +~(de.delay(65536,
int((hslider("millisecond", 0, 0, 1000, 0.10): si.smoo) * ba.millisec)-1) *
((hslider("feedback", 0, 0, 100, 0.1): si.smoo)/100.0));
process = vgroup("stereo echo", (myecho, myecho));
| https://raw.githubusercontent.com/shakfu/soundlab/2941e0ee74d7ade8992e5f2e3b90c7765ec1946b/faust/delays/shax_delay0.dsp | faust | import("stdfaust.lib");
myecho = +~(de.delay(65536,
int((hslider("millisecond", 0, 0, 1000, 0.10): si.smoo) * ba.millisec)-1) *
((hslider("feedback", 0, 0, 100, 0.1): si.smoo)/100.0));
process = vgroup("stereo echo", (myecho, myecho));
|
|
bf87bbff6c635bd18c72941041e938b9eacf99316b97d3de9da554063b76ac17 | shakfu/soundlab | osc.dsp | import("stdfaust.lib");
cutfreq = hslider("Freq", 500, 26, 10000, 0.01);
q = hslider("Res", 5, 1, 30, 0.1);
gain = hslider("Gain", 1, 0, 1, 0.01);
process = os.osc(261.63) : fi.resonlp(cutfreq, q, gain) <: dm.zita_light;
| https://raw.githubusercontent.com/shakfu/soundlab/2941e0ee74d7ade8992e5f2e3b90c7765ec1946b/faust/osc_reverb/osc.dsp | faust | import("stdfaust.lib");
cutfreq = hslider("Freq", 500, 26, 10000, 0.01);
q = hslider("Res", 5, 1, 30, 0.1);
gain = hslider("Gain", 1, 0, 1, 0.01);
process = os.osc(261.63) : fi.resonlp(cutfreq, q, gain) <: dm.zita_light;
|
|
733d75c6fcda9eaec788deda7592029d28c606cd23d36484fdc4695e743ca156 | SuyashRamteke/FAUST---Real-time-Audio-Signal-Processing | drywet.dsp | import("stdfaust.lib");
echo(d,f) = + ~ (@(d) : *(f));
drywet(fx) = _ <: _, fx : *(1-w), *(w) :> _
with {
w = vslider("dry-wet[style : knob]", 0.5, 0, 1, 0.01);
};
process = button("Play") : pm.djembe(60, 0.3, 0.4, 1) : drywet(echo(44000/4, 0.75));
| https://raw.githubusercontent.com/SuyashRamteke/FAUST---Real-time-Audio-Signal-Processing/ca24b8d650b6d77435d8128b0aa8e4d8b6022c30/drywet.dsp | faust | import("stdfaust.lib");
echo(d,f) = + ~ (@(d) : *(f));
drywet(fx) = _ <: _, fx : *(1-w), *(w) :> _
with {
w = vslider("dry-wet[style : knob]", 0.5, 0, 1, 0.01);
};
process = button("Play") : pm.djembe(60, 0.3, 0.4, 1) : drywet(echo(44000/4, 0.75));
|
|
7b181430d5ec664c035564dade6c10b81b80e658f1cc702bd0cfee516d0d412e | publicsamples/Quetzalcoatl | 05MIDI.dsp | declare options "[midi:on]";
import("stdfaust.lib");
freq = hslider("freq", 440, 20, 1000, 0.001);
gain = hslider("gain", 0.0, 0.0, 1.0, 0.001);
gate = button("gate");
sustain = hslider("Sustain[OWL:A]", 5.0, 1.0, 10.0, 0.01);
process = sy.combString(freq, gain * sustain, gate);
| https://raw.githubusercontent.com/publicsamples/Quetzalcoatl/547f2585651af68b32072846088cc97f3c80acc0/Quetzalcoatl/DspNetworks/CodeLibrary/faust/05MIDI.dsp | faust | declare options "[midi:on]";
import("stdfaust.lib");
freq = hslider("freq", 440, 20, 1000, 0.001);
gain = hslider("gain", 0.0, 0.0, 1.0, 0.001);
gate = button("gate");
sustain = hslider("Sustain[OWL:A]", 5.0, 1.0, 10.0, 0.01);
process = sy.combString(freq, gain * sustain, gate);
|
|
7e7c6bcbb8d1f83ba670e2edb169ee9320e4636a9e5035130af8af80a950e67d | noonesimg/drty-drums | main.dsp | import("stdfaust.lib");
drm = library("fmdrum.lib");
mx = library("fxblock.lib");
kk_freq = hslider("kk_freq[style:knob]", 60, 40, 10000, 0.001) - 220, 40 : max;
kk_gate = button("[1]kk_gate");
snr_freq = hslider("snr_freq[style:knob]", 60, 40, 10000, 0.001) - 220, 40 : max;
snr_gate = button("[1]snr_gate");
hh_freq = hslider("hh_freq[style:knob]", 1300, 40, 10000, 0.001) - 220, 40 : max;
hh_gate = button("[1]hh_gate");
cwbl_freq = hslider("cwbl_freq[style:knob]", 800, 40, 10000, 0.001) - 220, 40 : max;
cwbl_gate = button("[1]cwbl_gate");
drums = hgroup("drums", vgroup("[0]kick", (kk_freq, kk_gate : drm.kk)),
vgroup("[1]snare", (snr_freq, snr_gate : drm.snr)),
vgroup("[2]hh", (hh_freq, hh_gate : drm.hh)),
vgroup("[3]cwbl", (cwbl_freq, cwbl_gate : drm.cwbl)));
process = drums : mx.soundPipe <: _,_ ; | https://raw.githubusercontent.com/noonesimg/drty-drums/c66ff5c3fa479dd406fa89fac3f59e245493cfda/dsp/main.dsp | faust | import("stdfaust.lib");
drm = library("fmdrum.lib");
mx = library("fxblock.lib");
kk_freq = hslider("kk_freq[style:knob]", 60, 40, 10000, 0.001) - 220, 40 : max;
kk_gate = button("[1]kk_gate");
snr_freq = hslider("snr_freq[style:knob]", 60, 40, 10000, 0.001) - 220, 40 : max;
snr_gate = button("[1]snr_gate");
hh_freq = hslider("hh_freq[style:knob]", 1300, 40, 10000, 0.001) - 220, 40 : max;
hh_gate = button("[1]hh_gate");
cwbl_freq = hslider("cwbl_freq[style:knob]", 800, 40, 10000, 0.001) - 220, 40 : max;
cwbl_gate = button("[1]cwbl_gate");
drums = hgroup("drums", vgroup("[0]kick", (kk_freq, kk_gate : drm.kk)),
vgroup("[1]snare", (snr_freq, snr_gate : drm.snr)),
vgroup("[2]hh", (hh_freq, hh_gate : drm.hh)),
vgroup("[3]cwbl", (cwbl_freq, cwbl_gate : drm.cwbl)));
process = drums : mx.soundPipe <: _,_ ; |
|
d0ef286e143b796f47d489988427c3600420f8b9dcd5cea90f0b0a55590c83eb | elk-community/faust-plugins | modularInterpInstr.dsp | declare name "modularInterpInstr";
declare description "Ready-to-use MIDI-enabled string instrument with a modular body";
declare license "MIT";
declare copyright "using modules from FAUST physical modeling library, (c)Romain Michon et al., CCRMA (Stanford University), GRAME";
import("stdfaust.lib");
process = pm.modularInterpInstr_ui_MIDI <: _,_;
| https://raw.githubusercontent.com/elk-community/faust-plugins/79096404d4b4334dba512a3e3a8104afefb9db8d/physmodels/modularInterpInstr.dsp | faust | declare name "modularInterpInstr";
declare description "Ready-to-use MIDI-enabled string instrument with a modular body";
declare license "MIT";
declare copyright "using modules from FAUST physical modeling library, (c)Romain Michon et al., CCRMA (Stanford University), GRAME";
import("stdfaust.lib");
process = pm.modularInterpInstr_ui_MIDI <: _,_;
|
|
929575d808ca89dea19fd795143d303f2175e47b5b2d47cbc4668d345e1fd689 | shakfu/soundlab | sine.dsp | import("stdfaust.lib");
// input parameters with GUI elements
freq = hslider("frequency",100, 10, 1000, 0.001);
gain = hslider("gain",0, 0, 1, 0.001);
// a sine oscillator with controllable freuency and amplitude:
process = os.osc(freq)*gain;
| https://raw.githubusercontent.com/shakfu/soundlab/2941e0ee74d7ade8992e5f2e3b90c7765ec1946b/faust/sine/build_puredata/sine.dsp | faust | input parameters with GUI elements
a sine oscillator with controllable freuency and amplitude: | import("stdfaust.lib");
freq = hslider("frequency",100, 10, 1000, 0.001);
gain = hslider("gain",0, 0, 1, 0.001);
process = os.osc(freq)*gain;
|
a859ad21e5ede3f272ec2884912e1540056e77fcd1c8164a3d710e478a3b04c8 | PierreKy-org/plugins_server_webaudiomodules | volume.dsp | declare name "volume";
declare version "1.0";
declare author "Grame";
declare license "BSD";
declare copyright "(c)GRAME 2006";
//-----------------------------------------------
// Volume control in dB
//-----------------------------------------------
import("stdfaust.lib");
gain = vslider("[1]", 0, -70, +4, 0.1) : ba.db2linear : si.smoo;
process = *(gain);
| https://raw.githubusercontent.com/PierreKy-org/plugins_server_webaudiomodules/9b1b3b6d814bdb15a5f0cdd41695f8b987dbf600/pluginsWithoutFetch/volume/volume.dsp | faust | -----------------------------------------------
Volume control in dB
----------------------------------------------- | declare name "volume";
declare version "1.0";
declare author "Grame";
declare license "BSD";
declare copyright "(c)GRAME 2006";
import("stdfaust.lib");
gain = vslider("[1]", 0, -70, +4, 0.1) : ba.db2linear : si.smoo;
process = *(gain);
|
fd891a8f2c173e2f7ea33cba38bdc4c314c1c9b09029233108c2c1666a10964b | johannphilippe/paw2022 | seq_swing.dsp | import("stdfaust.lib");
amp = hslider("amp", 0.2, 0, 1, 0.01);
speed = hslider("speed", 1, 0.1, 10, 0.01) : si.smoo;
// Tempo adjusts so each step is equivalent
swing_sequencer(t,tswing, size, freq) = ((res > 0) * (ph != ph')) | swing, res
with {
ph = int(os.phasor(size, freq / size));
sw = tswing, ph : rdtable;
phstep = os.hs_phasor(1, freq, sw != sw');
swing = 0, 1 : select2(cond) : ba.impulsify
with {
cond = (phstep >= sw) & (phstep' <= sw);
};
res = t, ph : rdtable;
};
sequ = waveform{1,0,0,1,0,1};
swing = waveform{0.33, 0,0,0.7,0, 0.66};
bt = swing_sequencer(sequ, swing, 6, 3) : en.are(0,0.3),!;
process = os.sawtooth(100) * amp * bt;
| https://raw.githubusercontent.com/johannphilippe/paw2022/d9b921a44e72bab11e457a13a1b43a4eabca53df/examples/seq_swing.dsp | faust | Tempo adjusts so each step is equivalent | import("stdfaust.lib");
amp = hslider("amp", 0.2, 0, 1, 0.01);
speed = hslider("speed", 1, 0.1, 10, 0.01) : si.smoo;
swing_sequencer(t,tswing, size, freq) = ((res > 0) * (ph != ph')) | swing, res
with {
ph = int(os.phasor(size, freq / size));
sw = tswing, ph : rdtable;
phstep = os.hs_phasor(1, freq, sw != sw');
swing = 0, 1 : select2(cond) : ba.impulsify
with {
cond = (phstep >= sw) & (phstep' <= sw);
};
res = t, ph : rdtable;
};
sequ = waveform{1,0,0,1,0,1};
swing = waveform{0.33, 0,0,0.7,0, 0.66};
bt = swing_sequencer(sequ, swing, 6, 3) : en.are(0,0.3),!;
process = os.sawtooth(100) * amp * bt;
|
d3bd02e899c6560eb8ef155c33d457165c85e87f2aeb2d84b60d6129831bd8d3 | SuyashRamteke/FAUST---Real-time-Audio-Signal-Processing | echo.dsp | import ("stdfaust.lib");
echo = vgroup("Echo", +~(@(delLength-1) : *(feedback)))
with {
duration = hslider("[0]Duration", 500, 1, 1000, 1) * 0.001;
feedback = hslider("[1]Feedback", 0.5, 0, 1, 0.01);
delLength = ma.SR * duration;
};
process = echo; | https://raw.githubusercontent.com/SuyashRamteke/FAUST---Real-time-Audio-Signal-Processing/ca24b8d650b6d77435d8128b0aa8e4d8b6022c30/echo.dsp | faust | import ("stdfaust.lib");
echo = vgroup("Echo", +~(@(delLength-1) : *(feedback)))
with {
duration = hslider("[0]Duration", 500, 1, 1000, 1) * 0.001;
feedback = hslider("[1]Feedback", 0.5, 0, 1, 0.01);
delLength = ma.SR * duration;
};
process = echo; |
|
512db247a86e9c1fdce252b8341e1ed02949670cbeca1747fed4643e12787773 | matthiasmeissen/sound-generator | engine_04_220320.dsp | import("stdfaust.lib");
envelope = en.adsr(attack, decay, sustain, release, gate) * gain
with {
attack = hslider("[1]attack", 50, 0.01, 1000, 1) * 0.001;
decay = hslider("[2]decay", 50, 0.01, 1000, 1) * 0.001;
sustain = hslider("[3]sustain", 0.8, 0, 1, 0.01);
release = hslider("[4]release", 50, 0.01, 1000, 1) * 0.001;
gate = button("gate");
gain = hslider("[5]gain", 0.2, 0, 1, 0.01);
};
freq = hslider("[6]freq",60,20,20000,0.01) : ba.midikey2hz;
osc = os.oscsin(freq), os.square(freq), os.sawtooth(freq), os.triangle(freq) : ba.selectn(4, num)
with {
num = nentry("Oscillator", 0, 0, 3, 1);
};
process = osc * envelope <: _,_;
| https://raw.githubusercontent.com/matthiasmeissen/sound-generator/0e102cd2e986b8bf30f790a4226f62c9a64a78d3/engines/engine_04_220320.dsp | faust | import("stdfaust.lib");
envelope = en.adsr(attack, decay, sustain, release, gate) * gain
with {
attack = hslider("[1]attack", 50, 0.01, 1000, 1) * 0.001;
decay = hslider("[2]decay", 50, 0.01, 1000, 1) * 0.001;
sustain = hslider("[3]sustain", 0.8, 0, 1, 0.01);
release = hslider("[4]release", 50, 0.01, 1000, 1) * 0.001;
gate = button("gate");
gain = hslider("[5]gain", 0.2, 0, 1, 0.01);
};
freq = hslider("[6]freq",60,20,20000,0.01) : ba.midikey2hz;
osc = os.oscsin(freq), os.square(freq), os.sawtooth(freq), os.triangle(freq) : ba.selectn(4, num)
with {
num = nentry("Oscillator", 0, 0, 3, 1);
};
process = osc * envelope <: _,_;
|
|
2be4b6175c632cef799a6c7901539abd3f2d76facf350e1dcc2a096bc8f318f1 | Jacajack/stm32-faust-synth | ppg_test2.dsp | import("stdfaust.lib");
mid2hz( k ) = 440.0 * exp( ( k - 69 ) * log( pow( 2, 1 / 12 ) ) );
lin2exp( mi, ma, x ) = exp( log( ma ) * x + log( mi ) * ( 1 - x ) );
ppg_waveform = ffunction( float faust_read_ppg(int, float, float), "ppg/ppg2.hpp", "" );
gate = button( "gate" );
f = hslider( "f", 55, 20, 220, 0.001 ) : mid2hz;
sel = ( hslider( "sel[analog: d8]", 8, -0.5, 30.5, 1 ) : int );
interp = hslider( "[analog: d7]", 0.5, 0, 1, 0.001 );
filter = ve.moog_vcf_2b( resonance, cutoff )
with
{
fc = hslider( "fc [analog: d3]", 0.5, 0, 1, 0.001 ) : si.smoo : lin2exp( 20, 20000 );
resonance = hslider( "reso [analog: d5]", 0.5, 0, 1, 0.001 ) : si.smoo : lin2exp( 0.0001, 1.0 );
cutoff = fc : min( 20000 ) : max( 20 );
};
envelope = en.adsre( A, D, S, R, gate )
with
{
gate = button( "gate" );
A = hslider( "A [analog: c5]", 0.5, 0, 1, 0.001 ) : lin2exp( 0.01, 4 ) : si.smoo;
D = hslider( "D [analog: c6]", 0.5, 0, 1, 0.001 ) : lin2exp( 0.01, 4 ) : si.smoo;
S = hslider( "S [analog: c3]", 0.5, 0, 1, 0.001 ) : si.smoo;
R = hslider( "R [analog: c4]", 0.5, 0, 1, 0.001 ) : lin2exp( 0.01, 4 ) : si.smoo;
};
process = ppg_waveform( sel, interp, os.phasor( 1, f / 2 ) ) : filter * envelope;
| https://raw.githubusercontent.com/Jacajack/stm32-faust-synth/5987bc2508e94318affbbccaaeaea0fd7f7ad694/faust/ppg_test2.dsp | faust | import("stdfaust.lib");
mid2hz( k ) = 440.0 * exp( ( k - 69 ) * log( pow( 2, 1 / 12 ) ) );
lin2exp( mi, ma, x ) = exp( log( ma ) * x + log( mi ) * ( 1 - x ) );
ppg_waveform = ffunction( float faust_read_ppg(int, float, float), "ppg/ppg2.hpp", "" );
gate = button( "gate" );
f = hslider( "f", 55, 20, 220, 0.001 ) : mid2hz;
sel = ( hslider( "sel[analog: d8]", 8, -0.5, 30.5, 1 ) : int );
interp = hslider( "[analog: d7]", 0.5, 0, 1, 0.001 );
filter = ve.moog_vcf_2b( resonance, cutoff )
with
{
fc = hslider( "fc [analog: d3]", 0.5, 0, 1, 0.001 ) : si.smoo : lin2exp( 20, 20000 );
resonance = hslider( "reso [analog: d5]", 0.5, 0, 1, 0.001 ) : si.smoo : lin2exp( 0.0001, 1.0 );
cutoff = fc : min( 20000 ) : max( 20 );
};
envelope = en.adsre( A, D, S, R, gate )
with
{
gate = button( "gate" );
A = hslider( "A [analog: c5]", 0.5, 0, 1, 0.001 ) : lin2exp( 0.01, 4 ) : si.smoo;
D = hslider( "D [analog: c6]", 0.5, 0, 1, 0.001 ) : lin2exp( 0.01, 4 ) : si.smoo;
S = hslider( "S [analog: c3]", 0.5, 0, 1, 0.001 ) : si.smoo;
R = hslider( "R [analog: c4]", 0.5, 0, 1, 0.001 ) : lin2exp( 0.01, 4 ) : si.smoo;
};
process = ppg_waveform( sel, interp, os.phasor( 1, f / 2 ) ) : filter * envelope;
|
|
33667aca65dff076ca924d2f30f8e16d5181884f8c443099fcfd05196ce44ff9 | njazz/pd-server | lfo_square.dsp | import("stdfaust.lib");
process = os.lf_squarewavepos;
| https://raw.githubusercontent.com/njazz/pd-server/389777974d63012e5eab891818d7ff33c816d826/pure-data-src/ceammc/faust/lfo_square.dsp | faust | import("stdfaust.lib");
process = os.lf_squarewavepos;
|
|
5d6328b3aade28f18f61f82056c78c3988f4a7f4bec142d594ccdb027c607bc3 | njazz/pd-server | lfo_tri.dsp | import("stdfaust.lib");
process = os.lf_trianglepos;
| https://raw.githubusercontent.com/njazz/pd-server/389777974d63012e5eab891818d7ff33c816d826/pure-data-src/ceammc/faust/lfo_tri.dsp | faust | import("stdfaust.lib");
process = os.lf_trianglepos;
|
|
6fa754be357631475d0764a415ef129364c851000b7dc8fb8b795b15c12c1c83 | elk-community/faust-plugins | elecGuitar.dsp | declare name "elecGuitar";
declare description "Ready-to-use MIDI-enabled electric guitar physical model with built-in UI.";
declare license "MIT";
declare copyright "using modules from FAUST physical modeling library, (c)Romain Michon et al., CCRMA (Stanford University), GRAME";
import("stdfaust.lib");
process = pm.elecGuitar_ui_MIDI <: _,_;
| https://raw.githubusercontent.com/elk-community/faust-plugins/79096404d4b4334dba512a3e3a8104afefb9db8d/physmodels/elecGuitar.dsp | faust | declare name "elecGuitar";
declare description "Ready-to-use MIDI-enabled electric guitar physical model with built-in UI.";
declare license "MIT";
declare copyright "using modules from FAUST physical modeling library, (c)Romain Michon et al., CCRMA (Stanford University), GRAME";
import("stdfaust.lib");
process = pm.elecGuitar_ui_MIDI <: _,_;
|
|
7975664d8f4072dd4e7c739d5392fe7eba270a9b677a11a21b079cc7d38dff54 | elk-community/faust-plugins | guitar.dsp | declare name "guitar_midi";
declare description "Ready-to-use MIDI-enabled steel strings acoustic guitar physical model with built-in UI.";
declare license "MIT";
declare copyright "using modules from FAUST physical modeling library, (c)Romain Michon et al., CCRMA (Stanford University), GRAME";
import("stdfaust.lib");
process = pm.guitar_ui_MIDI <: _,_;
| https://raw.githubusercontent.com/elk-community/faust-plugins/79096404d4b4334dba512a3e3a8104afefb9db8d/physmodels/guitar.dsp | faust | declare name "guitar_midi";
declare description "Ready-to-use MIDI-enabled steel strings acoustic guitar physical model with built-in UI.";
declare license "MIT";
declare copyright "using modules from FAUST physical modeling library, (c)Romain Michon et al., CCRMA (Stanford University), GRAME";
import("stdfaust.lib");
process = pm.guitar_ui_MIDI <: _,_;
|
|
98d541891baf5e6cd88a0c71fad675c013615b8f56bef682590f27f41705c570 | TobiasKozel/GuitarD | OverDrive.dsp | import("stdfaust.lib");
drive = vslider("Drive", 1, 1, 10, 0.1) * 10;
f = drive * -0.2 : ba.db2linear;
overdrive(x) = (x*(abs(x) + drive)/(x*x + (drive-1)*abs(x) + 1)) * f;
process = sp.stereoize(overdrive);
| https://raw.githubusercontent.com/TobiasKozel/GuitarD/80d5b8e6fa2eab99bbee80e6dacb5f0f482bbb52/src/nodes/overdrive/OverDrive.dsp | faust | import("stdfaust.lib");
drive = vslider("Drive", 1, 1, 10, 0.1) * 10;
f = drive * -0.2 : ba.db2linear;
overdrive(x) = (x*(abs(x) + drive)/(x*x + (drive-1)*abs(x) + 1)) * f;
process = sp.stereoize(overdrive);
|
|
221b581484a6e92562dbfae65e14b4cbebc80e677f1415e18a52d34842c60ae6 | LucaSpanedda/Sound_reading_and_writing_techniques_in_Faust | 1.06_Weiner_Process_Recorder.dsp | // ---------------------------------------------------------------------------------
declare name "Weiner Process Recorder";
declare version "1.0";
declare author "Luca Spanedda";
/*
rwtable with weiner process read
*/
// import Standard Faust library
// https://github.com/grame-cncm/faustlibraries/
import("stdfaust.lib");
// GUI
freqgui = hslider("[1] Read Frequency",1,0,2,0.001) : si.smoo;
walkfreqgui = hslider("[1] Walk Frequency",1,0,40,0.01) : si.smoo;
walkseedgui = hslider("[1] Walk Seed",1,1,100000,1) : si.smoo;
ampgui = hslider("[2] Amp",1,0,2,0.001) : si.smoo;
buttongui = button("[0] Rec");
// import Standard Faust library
// https://github.com/grame-cncm/faustlibraries/
import("stdfaust.lib");
delayline(buttonx,frw,fwalk,wseed) = delaylineout
with{
constrainedwalk(cwalkfreq,cnoisefreq,cnoiseseed) = crwlkout
with{
randomwalk(walkfreq,noisefreq,noiseseed) = randomwalkout
with{
// NOISE GENERATION - function
noise(seed) = noiseout
with{
noiseout = (+(seed)~*(1103515245))/2147483647.0;
};
// SAMPLE AND HOLD - function
sampleandhold(frequency) = sampleandholdout
with{
// PHASOR
decimal(x)= x-int(x); // reset to 0 when int
phase = frequency/ma.SR : (+ : decimal) ~ _; // phasor with frequency
// PHASOR to 0 and 1
saw = phase-0.5; // phasor : -0.5 to +0.5
ifpos = (saw > 0); // phasor positive =1; phasor negative =0
// PHASOR 1 to Impulse
trainpulse = ( ifpos - ( ifpos:mem ) ) > 0; // impulse and delette all under 0
// SAMPLE AND HOLD
sampleandholdout(a) = (*(1 - trainpulse) + a * trainpulse) ~ _;
};
// SAMPLE AND HOLD THE NOISE: noise ---> sample and hold ---> pos
sahnoise = noise(noiseseed) : sampleandhold(noisefreq);
// BINARY NOISE (-1 and +1)
plusminuscond(a) = (a>0)+(a<0)*-1;
noisebinary = sahnoise : plusminuscond;
// PHASOR GENERATION
randomwalkout = (walkfreq/ma.SR)*noisebinary : + ~ _;
};
// CONSTRAINED - function
wavefolding = constrainedout
with{
intreset(x)= x-int(x);
triconditionpos(x) = (x<0.5)*(x) + ((x>0.5)*((x*-1)+1));
trifunctionpos(x) = (x>0)*(x) : triconditionpos;
triconditionneg(x) = (x>-0.5)*(x) + ((x<-0.5)*((x*-1)-1));
trifunctionneg(x) = (x<0)*(x) : triconditionneg;
constrainedout = intreset <: trifunctionpos,trifunctionneg :> + : _*2;
};
crwlkout = randomwalk(cwalkfreq,cnoisefreq,cnoiseseed) : wavefolding : _+1 : _*0.5;
};
// DELAY TABLE
delaytable(recstart,rwfreq,walkfreq,walkseed) = rwtable(tablesize,0.0,indexwrite,_,indexread)
with{
// READER
record = recstart : int; // record the memory with the int value of 1
tablesize = 192000; // dimension in samples of the buffer
dimension = ma.SR; // dimension in samples for write/read
decimal(x)= x-int(x); // rescale int
fasore = ((ma.SR/dimension)/ma.SR)* rwfreq : (+ : decimal)~ _; // signal from 0 to 1
// write the input signal: fasore*dimension (table)
indexwrite = ((fasore * dimension) * recstart : int);
// read the written signal: randomwalk * dimension (table)
indexread = ((constrainedwalk(rwfreq,walkfreq,walkseed) * dimension) : int);
};
delaylineout = _*buttongui : delaytable(buttonx,frw,fwalk,wseed);
};
process =
delayline(buttongui,freqgui,walkfreqgui,24778912),
delayline(buttongui,freqgui,walkfreqgui,89122212);
// ---------------------------------------------------------------------------------
| https://raw.githubusercontent.com/LucaSpanedda/Sound_reading_and_writing_techniques_in_Faust/bb01eff05a51424c16420a00b383441d8973d85e/0_work-in-progress/1.06_Weiner_Process_Recorder.dsp | faust | ---------------------------------------------------------------------------------
rwtable with weiner process read
import Standard Faust library
https://github.com/grame-cncm/faustlibraries/
GUI
import Standard Faust library
https://github.com/grame-cncm/faustlibraries/
NOISE GENERATION - function
SAMPLE AND HOLD - function
PHASOR
reset to 0 when int
phasor with frequency
PHASOR to 0 and 1
phasor : -0.5 to +0.5
phasor positive =1; phasor negative =0
PHASOR 1 to Impulse
impulse and delette all under 0
SAMPLE AND HOLD
SAMPLE AND HOLD THE NOISE: noise ---> sample and hold ---> pos
BINARY NOISE (-1 and +1)
PHASOR GENERATION
CONSTRAINED - function
DELAY TABLE
READER
record the memory with the int value of 1
dimension in samples of the buffer
dimension in samples for write/read
rescale int
signal from 0 to 1
write the input signal: fasore*dimension (table)
read the written signal: randomwalk * dimension (table)
--------------------------------------------------------------------------------- | declare name "Weiner Process Recorder";
declare version "1.0";
declare author "Luca Spanedda";
import("stdfaust.lib");
freqgui = hslider("[1] Read Frequency",1,0,2,0.001) : si.smoo;
walkfreqgui = hslider("[1] Walk Frequency",1,0,40,0.01) : si.smoo;
walkseedgui = hslider("[1] Walk Seed",1,1,100000,1) : si.smoo;
ampgui = hslider("[2] Amp",1,0,2,0.001) : si.smoo;
buttongui = button("[0] Rec");
import("stdfaust.lib");
delayline(buttonx,frw,fwalk,wseed) = delaylineout
with{
constrainedwalk(cwalkfreq,cnoisefreq,cnoiseseed) = crwlkout
with{
randomwalk(walkfreq,noisefreq,noiseseed) = randomwalkout
with{
noise(seed) = noiseout
with{
noiseout = (+(seed)~*(1103515245))/2147483647.0;
};
sampleandhold(frequency) = sampleandholdout
with{
sampleandholdout(a) = (*(1 - trainpulse) + a * trainpulse) ~ _;
};
sahnoise = noise(noiseseed) : sampleandhold(noisefreq);
plusminuscond(a) = (a>0)+(a<0)*-1;
noisebinary = sahnoise : plusminuscond;
randomwalkout = (walkfreq/ma.SR)*noisebinary : + ~ _;
};
wavefolding = constrainedout
with{
intreset(x)= x-int(x);
triconditionpos(x) = (x<0.5)*(x) + ((x>0.5)*((x*-1)+1));
trifunctionpos(x) = (x>0)*(x) : triconditionpos;
triconditionneg(x) = (x>-0.5)*(x) + ((x<-0.5)*((x*-1)-1));
trifunctionneg(x) = (x<0)*(x) : triconditionneg;
constrainedout = intreset <: trifunctionpos,trifunctionneg :> + : _*2;
};
crwlkout = randomwalk(cwalkfreq,cnoisefreq,cnoiseseed) : wavefolding : _+1 : _*0.5;
};
delaytable(recstart,rwfreq,walkfreq,walkseed) = rwtable(tablesize,0.0,indexwrite,_,indexread)
with{
indexwrite = ((fasore * dimension) * recstart : int);
indexread = ((constrainedwalk(rwfreq,walkfreq,walkseed) * dimension) : int);
};
delaylineout = _*buttongui : delaytable(buttonx,frw,fwalk,wseed);
};
process =
delayline(buttongui,freqgui,walkfreqgui,24778912),
delayline(buttongui,freqgui,walkfreqgui,89122212);
|
f0f0c7db0fac60b889fc1878d20f5441edacf302edceb5fda3501a285f31f59f | funkyfourier/spitback | faustdelay.dsp | import("stdfaust.lib");
maxDelay = 2.0 * ma.SR : int;
delaySamples = hslider("Delay", 100, 0, 1000, 1) : si.smoo * 0.001 * ma.SR : int;
feedbackRatio = hslider("Feedback", 0.7, 0, 0.9, 0.01);
wet = hslider("Wet", 1, 0, 1, 0.01);
feedback = *(feedbackRatio);
delay(samples) = (+ : feedback) ~ de.delay(maxDelay, samples);
delayProcess(samples) = delay(samples)*wet;
delayLineLeft = _<:_,(de.delay(maxDelay, delaySamples) : delayProcess(delaySamples*2));
delayLineRight = _<:(de.delay(maxDelay, delaySamples*2) : delayProcess(delaySamples*2)),_;
process = _,_ : delayLineLeft, delayLineRight : _,_,_,_; | https://raw.githubusercontent.com/funkyfourier/spitback/c3b1831e2bd1ac9272652309d4fb3d2847f0a67b/externals/src/faustdelay/faustdelay.dsp | faust | import("stdfaust.lib");
maxDelay = 2.0 * ma.SR : int;
delaySamples = hslider("Delay", 100, 0, 1000, 1) : si.smoo * 0.001 * ma.SR : int;
feedbackRatio = hslider("Feedback", 0.7, 0, 0.9, 0.01);
wet = hslider("Wet", 1, 0, 1, 0.01);
feedback = *(feedbackRatio);
delay(samples) = (+ : feedback) ~ de.delay(maxDelay, samples);
delayProcess(samples) = delay(samples)*wet;
delayLineLeft = _<:_,(de.delay(maxDelay, delaySamples) : delayProcess(delaySamples*2));
delayLineRight = _<:(de.delay(maxDelay, delaySamples*2) : delayProcess(delaySamples*2)),_;
process = _,_ : delayLineLeft, delayLineRight : _,_,_,_; |
|
7190af2ca928a8f54a0df3f58dd5bbcb524514fb9e305f85a5122338570681dc | jpcima/string-machine | AsymWaveshaper.dsp | import("stdfaust.lib");
asymclip(k, x) = nl(k,x-z)+z with {
cubic(x) = x*x*x/3.;
lm(k) = -1.*sqrt(k*k*k)/(k*k*k); // the local minimum
kubic(k,x) = x-cubic(k*x);
nl(k,x)=ba.if(x>0,x,kubic(k,max(x,lm(k))));
z = 2./3.;
};
process = asymclip(k) : fi.dcblockerat(35.) with {
k = hslider("[1] Clipping amount [symbol:amount]", 1.0, 0.1, 1.0, 0.01);
};
/*
# GNUplot code of the waveshaping function
# asymmetric soft clipping waveshaper
# k: the curve control parameter (0 excl. to 1)
set key right bottom
cubic(x)=(x*x*x/3)
lm(k)=-sqrt(k*k*k)/(k*k*k) # the local minimum
kubic(k,x)=x-cubic(k*x)
max(a,b)=(a>b)?a:b
nl(k,x)=(x>0)?x:kubic(k,max(x,lm(k)))
z=2./3.;
nl2(k,x)=nl(k,x-z)+z
set xrange [-1:+1]
plot nl2(0.1,x) t "0.1", \
nl2(0.2,x) t "0.2", \
nl2(0.3,x) t "0.3", \
nl2(0.4,x) t "0.4", \
nl2(0.5,x) t "0.5", \
nl2(0.6,x) t "0.6", \
nl2(0.7,x) t "0.7", \
nl2(0.8,x) t "0.8", \
nl2(0.9,x) t "0.9", \
nl2(1.0,x) t "1.0"
*/
| https://raw.githubusercontent.com/jpcima/string-machine/188082dd0beb9a3c341035604841c53675fe66c4/sources/dsp/AsymWaveshaper.dsp | faust | the local minimum
# GNUplot code of the waveshaping function
# asymmetric soft clipping waveshaper
# k: the curve control parameter (0 excl. to 1)
set key right bottom
cubic(x)=(x*x*x/3)
lm(k)=-sqrt(k*k*k)/(k*k*k) # the local minimum
kubic(k,x)=x-cubic(k*x)
max(a,b)=(a>b)?a:b
nl(k,x)=(x>0)?x:kubic(k,max(x,lm(k)))
z=2./3.;
nl2(k,x)=nl(k,x-z)+z
set xrange [-1:+1]
plot nl2(0.1,x) t "0.1", \
nl2(0.2,x) t "0.2", \
nl2(0.3,x) t "0.3", \
nl2(0.4,x) t "0.4", \
nl2(0.5,x) t "0.5", \
nl2(0.6,x) t "0.6", \
nl2(0.7,x) t "0.7", \
nl2(0.8,x) t "0.8", \
nl2(0.9,x) t "0.9", \
nl2(1.0,x) t "1.0"
| import("stdfaust.lib");
asymclip(k, x) = nl(k,x-z)+z with {
cubic(x) = x*x*x/3.;
kubic(k,x) = x-cubic(k*x);
nl(k,x)=ba.if(x>0,x,kubic(k,max(x,lm(k))));
z = 2./3.;
};
process = asymclip(k) : fi.dcblockerat(35.) with {
k = hslider("[1] Clipping amount [symbol:amount]", 1.0, 0.1, 1.0, 0.01);
};
|
0fd2cc7b936dad29c501eb5a0b4def5c7dea88b5efef215d1f469827e99a7b67 | njazz/pd-server | lfo_impulse.dsp | import("stdfaust.lib");
process = abs : os.lf_imptrain;
| https://raw.githubusercontent.com/njazz/pd-server/389777974d63012e5eab891818d7ff33c816d826/pure-data-src/ceammc/faust/lfo_impulse.dsp | faust | import("stdfaust.lib");
process = abs : os.lf_imptrain;
|
|
d8af63929f6a11ba683e1d31e5c8c40af0760e553cda042a60057545b9ff6562 | shakfu/soundlab | shax_delay1.dsp | import("stdfaust.lib");
time = int((hslider("time (ms)", 0, 0, 1000, 0.10): si.smoo) * ba.millisec)-1;
fb = (hslider("feedback", 0, 0, 100, 0.1): si.smoo)/100.0;
myecho = +~(de.delay(65536, time) * fb);
process = vgroup("stereo echo", (myecho, myecho));
| https://raw.githubusercontent.com/shakfu/soundlab/2941e0ee74d7ade8992e5f2e3b90c7765ec1946b/faust/delays/shax_delay1.dsp | faust | import("stdfaust.lib");
time = int((hslider("time (ms)", 0, 0, 1000, 0.10): si.smoo) * ba.millisec)-1;
fb = (hslider("feedback", 0, 0, 100, 0.1): si.smoo)/100.0;
myecho = +~(de.delay(65536, time) * fb);
process = vgroup("stereo echo", (myecho, myecho));
|
|
8560897f103dd4616b29d8a7045624a50613dae977cc6524d882fce7ee80399c | oshibka404/synt | filters.dsp | import("stdfaust.lib");
// Filters
lpf = vgroup("Filter[3]", fi.resonlp(
vslider("Cutoff", 3000, 20, 20000, 1),
vslider("Q Factor", .5, 0, 1, .01),
vslider("Filter gain", .5, 0, 1, .01)
));
process = lpf; // hpf : lpf;
| https://raw.githubusercontent.com/oshibka404/synt/37f54d7d26752efb66baab79cbba2d4044a9e295/faust/filters.dsp | faust | Filters
hpf : lpf; | import("stdfaust.lib");
lpf = vgroup("Filter[3]", fi.resonlp(
vslider("Cutoff", 3000, 20, 20000, 1),
vslider("Q Factor", .5, 0, 1, .01),
vslider("Filter gain", .5, 0, 1, .01)
));
|
cba090961f25106a0581972c00f9245f313107464bdd9d7911563bd6db80d2cc | jpburstrom/bubblebass | limiter.dsp | declare name "limiter";
import("stdfaust.lib");
ratio = hslider("ratio", 4, 1, 20, 0.1);
threshold = hslider("threshold", -6, -80, 0, 0.1);
attack = hslider("attack", 0.0008, 0.0001, 1, 0.0001);
release = hslider("release", 0.5, 0.0001, 1, 0.0001);
process = si.bus(4) : co.compressor_mono(ratio, threshold, attack, release) : si.bus(4);
| https://raw.githubusercontent.com/jpburstrom/bubblebass/7e9dc90f5fbcbc9806d4da8169b068acd66fdd81/faust/limiter.dsp | faust | declare name "limiter";
import("stdfaust.lib");
ratio = hslider("ratio", 4, 1, 20, 0.1);
threshold = hslider("threshold", -6, -80, 0, 0.1);
attack = hslider("attack", 0.0008, 0.0001, 1, 0.0001);
release = hslider("release", 0.5, 0.0001, 1, 0.0001);
process = si.bus(4) : co.compressor_mono(ratio, threshold, attack, release) : si.bus(4);
|
|
c32449cb020d8e7b1fc6ad6c073a4590e11e7a52f9801972df01f3ebb12bacc5 | elaforge/karya | test.dsp | declare description "Instrument for tests.";
declare control0_gate "Gate signal.";
declare control1_dyn "Dynamic signal.";
import("stdfaust.lib");
// Just multiplying the inputs makes it easy to see if it got the right values.
process(gate, dyn) = pitch * dyn * gate
with {
pitch = hslider("pitch[unit: nn]", 440, 1, 1000, 0.01);
};
| https://raw.githubusercontent.com/elaforge/karya/471a2131f5a68b3b10b1a138e6f9ed1282980a18/Synth/Faust/dsp/test.dsp | faust | Just multiplying the inputs makes it easy to see if it got the right values. | declare description "Instrument for tests.";
declare control0_gate "Gate signal.";
declare control1_dyn "Dynamic signal.";
import("stdfaust.lib");
process(gate, dyn) = pitch * dyn * gate
with {
pitch = hslider("pitch[unit: nn]", 440, 1, 1000, 0.01);
};
|
84d17d4aaae2c2749daca0456215e8ffa6d9d07b8f82b19c01b35925236c2707 | elk-community/faust-plugins | pitchShifter.dsp | declare name "pitchShifter";
declare version "1.0";
declare author "Grame";
declare license "BSD";
declare copyright "(c)GRAME 2006";
//--------------------------------------
// very simple real time pitch shifter
//--------------------------------------
import("stdfaust.lib");
pitchshifter = vgroup("Pitch Shifter", ef.transpose(
hslider("window (samples)", 1000, 50, 10000, 1),
hslider("xfade (samples)", 10, 1, 10000, 1),
hslider("shift (semitones) ", 0, -12, +12, 0.1)
)
);
process = pitchshifter;
| https://raw.githubusercontent.com/elk-community/faust-plugins/79096404d4b4334dba512a3e3a8104afefb9db8d/fx/pitchShifter.dsp | faust | --------------------------------------
very simple real time pitch shifter
-------------------------------------- | declare name "pitchShifter";
declare version "1.0";
declare author "Grame";
declare license "BSD";
declare copyright "(c)GRAME 2006";
import("stdfaust.lib");
pitchshifter = vgroup("Pitch Shifter", ef.transpose(
hslider("window (samples)", 1000, 50, 10000, 1),
hslider("xfade (samples)", 10, 1, 10000, 1),
hslider("shift (semitones) ", 0, -12, +12, 0.1)
)
);
process = pitchshifter;
|
acc376f53136fa2075b251d74b32afa26b963a767b6f8f6e34ff8d800c031151 | elk-community/faust-plugins | nylonGuitar.dsp | declare name "nylonGuitar";
declare description "Ready-to-use MIDI-enabled nylon strings acoustic guitar physical model with built-in UI.";
declare license "MIT";
declare copyright "using modules from FAUST physical modeling library, (c)Romain Michon et al., CCRMA (Stanford University), GRAME";
import("stdfaust.lib");
process = pm.nylonGuitar_ui_MIDI <: _,_;
| https://raw.githubusercontent.com/elk-community/faust-plugins/79096404d4b4334dba512a3e3a8104afefb9db8d/physmodels/nylonGuitar.dsp | faust | declare name "nylonGuitar";
declare description "Ready-to-use MIDI-enabled nylon strings acoustic guitar physical model with built-in UI.";
declare license "MIT";
declare copyright "using modules from FAUST physical modeling library, (c)Romain Michon et al., CCRMA (Stanford University), GRAME";
import("stdfaust.lib");
process = pm.nylonGuitar_ui_MIDI <: _,_;
|
|
d5d31188fb9cc4fb5806b3e364e970d0453ddf18167e019cbddf67a78029128e | elk-community/faust-plugins | marimba.dsp | declare name "marimba";
declare description "Simple MIDI controllable marimba physical model with built-in UI implementing a single tone bar connected to tube.";
declare license "MIT";
declare copyright "using modules from FAUST physical modeling library, (c)Romain Michon et al., CCRMA (Stanford University), GRAME";
import("stdfaust.lib");
process = pm.marimba_ui_MIDI <: _,_;
| https://raw.githubusercontent.com/elk-community/faust-plugins/79096404d4b4334dba512a3e3a8104afefb9db8d/physmodels/marimba.dsp | faust | declare name "marimba";
declare description "Simple MIDI controllable marimba physical model with built-in UI implementing a single tone bar connected to tube.";
declare license "MIT";
declare copyright "using modules from FAUST physical modeling library, (c)Romain Michon et al., CCRMA (Stanford University), GRAME";
import("stdfaust.lib");
process = pm.marimba_ui_MIDI <: _,_;
|
|
61e7cc617061fe811066b3d3195e89547e448d336415e5b54627b0d4ea5d8365 | SamKouteili/FaustVision | noise.dsp | import("stdfaust.lib");
declare options "[osc:on]";
process(freq, gain) = no.noise*gain;
| https://raw.githubusercontent.com/SamKouteili/FaustVision/05478975a39766447964f1f75bddc5f8d41c1194/examples/noise.dsp | faust | import("stdfaust.lib");
declare options "[osc:on]";
process(freq, gain) = no.noise*gain;
|
|
81908d1d599ed47cd60e7c83eeacc37aebf2b0160c8193e5eae575fd29fa5947 | shakfu/soundlab | shax_delay2.dsp | import("stdfaust.lib");
echo = +~(de.delay(65536, ms) * fb)
with {
ms = int((hslider("time (ms)", 0, 0, 1000, 0.10): si.smoo) * ba.millisec)-1;
fb = (hslider("feedback", 0, 0, 100, 0.1): si.smoo)/100.0;
};
process = vgroup("stereo echo", (echo, echo));
| https://raw.githubusercontent.com/shakfu/soundlab/2941e0ee74d7ade8992e5f2e3b90c7765ec1946b/faust/delays/shax_delay2.dsp | faust | import("stdfaust.lib");
echo = +~(de.delay(65536, ms) * fb)
with {
ms = int((hslider("time (ms)", 0, 0, 1000, 0.10): si.smoo) * ba.millisec)-1;
fb = (hslider("feedback", 0, 0, 100, 0.1): si.smoo)/100.0;
};
process = vgroup("stereo echo", (echo, echo));
|
|
5e268017bd280d70744361b8fcc507caa3cd8374827a4a6b0cbfd68d46629cc4 | JaoRamos/teensy-templates | GuitarraTeensy.dsp | declare name "Simulador de Amp Jao medio bit";
declare version "0.1";
declare author "Jao Corporation";
declare description "Simulador de Amp Jao medio bit";
import("stdfaust.lib");
gain = hslider("Gain", 40, 1, 200, 0.1);
prefiltro = hslider("Pasaaltos pre", 1400, 20, 1500, 10);
agudos = hslider("Parlante (pasabajos)", 3500, 100, 8000, 10);
delaySlider = hslider("Delay", 0.5, 0, 0.9, 0.01);
blend = hslider("Blend Clean", 5, 0, 10, 0.01);
master = hslider("Volumen Master", 0.3, 0, 1, 0.01);
pre = ((fi.highpass(1, prefiltro)) * gain : ma .tanh) / (gain/10 : ma.tanh : *(2));
cleanMezcla = fi.highpass(1, 100) : medios : *(blend);
medios = fi.peak_eq(-6, 1200, 400) : fi.peak_eq(3, 2500, 1000);
delay = @(ma.SR / 4) : *(delaySlider) : fi.lowpass(1, 500);
tono = fi.lowpass(3, agudos);
cadena = _ <: cleanMezcla, (pre : medios) :> tono : + ~ delay : *(master);
process = cadena <: _, _; | https://raw.githubusercontent.com/JaoRamos/teensy-templates/20653adc770b9660c6bebeb28e3f2426c2004957/guitarra_faust/GuitarraTeensy.dsp | faust | declare name "Simulador de Amp Jao medio bit";
declare version "0.1";
declare author "Jao Corporation";
declare description "Simulador de Amp Jao medio bit";
import("stdfaust.lib");
gain = hslider("Gain", 40, 1, 200, 0.1);
prefiltro = hslider("Pasaaltos pre", 1400, 20, 1500, 10);
agudos = hslider("Parlante (pasabajos)", 3500, 100, 8000, 10);
delaySlider = hslider("Delay", 0.5, 0, 0.9, 0.01);
blend = hslider("Blend Clean", 5, 0, 10, 0.01);
master = hslider("Volumen Master", 0.3, 0, 1, 0.01);
pre = ((fi.highpass(1, prefiltro)) * gain : ma .tanh) / (gain/10 : ma.tanh : *(2));
cleanMezcla = fi.highpass(1, 100) : medios : *(blend);
medios = fi.peak_eq(-6, 1200, 400) : fi.peak_eq(3, 2500, 1000);
delay = @(ma.SR / 4) : *(delaySlider) : fi.lowpass(1, 500);
tono = fi.lowpass(3, agudos);
cadena = _ <: cleanMezcla, (pre : medios) :> tono : + ~ delay : *(master);
process = cadena <: _, _; |
|
e46d667875d19c4838b8fd5aa9bf0a784c95ac4f05dec56a122e2edddcbf6690 | publicsamples/Quetzalcoatl | 04Output.dsp | import("stdfaust.lib");
import("owl.lib");
freq = hslider("Frequency[OWL:A]", 60, 60, 440, 1);
lfo_freq = hslider("LFO frequency[OWL:B]", 0.3, 0.01, 1.0, 0.01) : si.smoo;
lfo_out = hbargraph("LFO>[OWL:C]", -1, 1);
process = attach(os.osc(freq), os.osc(lfo_freq) : lfo_out);
| https://raw.githubusercontent.com/publicsamples/Quetzalcoatl/547f2585651af68b32072846088cc97f3c80acc0/Quetzalcoatl/DspNetworks/CodeLibrary/faust/04Output.dsp | faust | import("stdfaust.lib");
import("owl.lib");
freq = hslider("Frequency[OWL:A]", 60, 60, 440, 1);
lfo_freq = hslider("LFO frequency[OWL:B]", 0.3, 0.01, 1.0, 0.01) : si.smoo;
lfo_out = hbargraph("LFO>[OWL:C]", -1, 1);
process = attach(os.osc(freq), os.osc(lfo_freq) : lfo_out);
|
|
c42a1c300c21bae40e3848bc5c35ec8b2a43e7b3f8ddc836cefb1c6b61dd7f43 | SamKouteili/FaustVision | sinosc.dsp | import("stdfaust.lib");
declare options "[osc:on]";
process(freq, gain) = os.oscsin(freq) * gain;
| https://raw.githubusercontent.com/SamKouteili/FaustVision/05478975a39766447964f1f75bddc5f8d41c1194/examples/sinosc.dsp | faust | import("stdfaust.lib");
declare options "[osc:on]";
process(freq, gain) = os.oscsin(freq) * gain;
|
|
5233e34fe65cf1f3d6f814417b06fe792fece4f7c69361ac817089c745037f60 | pingdynasty/OwlPatches | StereoWah.dsp | import("stdfaust.lib");
wahwah = ve.crybaby(wah) with {
wah = min(1.0, vslider("Wah[style:knob][OWL:PARAMETER_A]", 0, 0, 1, 0.01) +
vslider("Aah[style:knob][OWL:PARAMETER_E]", 0, 0, 1, 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(wahwah);
| https://raw.githubusercontent.com/pingdynasty/OwlPatches/2be8a65bb257b53ee7ee0b9d4b5a1ad249e16dab/Faust/StereoWah.dsp | faust | import("stdfaust.lib");
wahwah = ve.crybaby(wah) with {
wah = min(1.0, vslider("Wah[style:knob][OWL:PARAMETER_A]", 0, 0, 1, 0.01) +
vslider("Aah[style:knob][OWL:PARAMETER_E]", 0, 0, 1, 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(wahwah);
|
|
71001a5f29d25da384e56853efaa72db21836cffe0d326a607049c05308ccb93 | adhooge/AutoFX | chorus.dsp | import("stdfaust.lib");
lfo = depth * os.osc(rate);
// GUI
rate = vslider("Rate (Hz)[style:knob]", 20, 1, 100, 0.01);
mix = vslider("Dry/Wet[style:knob]", 0.5, 0, 1, 0.01);
delay = vslider("Centre delay (ms)[style:knob]", 7, 1, 100, 0.1);
depth = vslider("Depth[style:knob]", 0.2, 0.01, 0.99, 0.01);
feedback = vslider("Feedback[style:knob]", 0.2, -1, 1, 0.01);
delay_line = @( ((delay*lfo) + delay)*ma.SR/1000) : *(feedback) ;
chorus = _ <: _, +~delay_line : *(1-mix), *(mix) :+ ;
process = chorus, chorus ; | https://raw.githubusercontent.com/adhooge/AutoFX/8f8666569a405cb1fbbe9606f264820b2615af54/faust/chorus.dsp | faust | GUI | import("stdfaust.lib");
lfo = depth * os.osc(rate);
rate = vslider("Rate (Hz)[style:knob]", 20, 1, 100, 0.01);
mix = vslider("Dry/Wet[style:knob]", 0.5, 0, 1, 0.01);
delay = vslider("Centre delay (ms)[style:knob]", 7, 1, 100, 0.1);
depth = vslider("Depth[style:knob]", 0.2, 0.01, 0.99, 0.01);
feedback = vslider("Feedback[style:knob]", 0.2, -1, 1, 0.01);
delay_line = @( ((delay*lfo) + delay)*ma.SR/1000) : *(feedback) ;
chorus = _ <: _, +~delay_line : *(1-mix), *(mix) :+ ;
process = chorus, chorus ; |
cadaf7daaf54b0b2e8af618e47f3846bdcef8fd2a9951f04a64977c0f90319c3 | matthewjarviswall/automata | automata.dsp | import("stdfaust.lib");
master = nentry("master", 300, 1, 2000, 1) : si.smoo;
filter = nentry("filter", 150, 1, 500, 1) : si.smoo;
series = nentry("series", 50, 50, 500, 50) : si.smoo;
partialRatio = nentry("partialRatio", 2, 2, 8, 0.5) : si.smoo;
t = button("gate");
partial = no.velvet_noise(0.8,master) * 5.0 : fi.resonbp(master/2: qu.quantize(master/2, qu.pentanat),200,1) : fi.resonlp(filter,0.2,1);
interval(C) = no.velvet_noise(0.8,master) * 2.5: fi.resonbp(master + C : qu.quantize(master + C, qu.pentanat),200,1) : fi.resonlp(filter,0.2,1);
sourceHarm(N) = hgroup("harmGroup", par(i, N, interval(i*series)), partial, partial);
process = sourceHarm(8) :> owlgazer_ui : _,_;
owlgazer(mix,decay,hicut,pitchmix) =
_,_ <:
(
_,_ <:
(si.bus(N*2) :> networkline)~(feedbackline)
:> *(mix),*(mix)
),
(*(1-mix),*(1-mix)) :>
_,_
with {
N = 4;
earlyAPNb = 2;
MAXDELAY = 8192;
delays = (2401.0, 3125.0, 6561.0, 14641.0);
delayval(i) = ba.take(i+1,delays);
pitchshifter(delay, pitch, amount) = _ <: de.delay(MAXDELAY, delay)*(1-amount),(ef.transpose(delay,delay,pitch)*amount) :> _;
earlyreflections = seq(i, earlyAPNb,
fi.allpass_comb(2048, delayval(i), -allpassfb)
)
with{
allpassfb = 0.6;
delays = (729.0, 1331.0, 625.0, 343.0);
delayval(j) = ba.take(j+1, delays);
};
latereflections(i) = _ <:
de.fdelay(MAXDELAY, delayval(i))*(i!=3),
pitchshifter(MAXDELAY + delayval(i),12,pitchmix)*(i==3) :>
_;
networkline = par(i,N,
_ :
earlyreflections :
latereflections(i) :
_/sqrt(N)
) : fi.lowpass(1, hicut),fi.highpass(1, 90),fi.lowpass(1, hicut),_;
feedbackline = ro.hadamard(N) : par(i,N,*(decay));
};
owlgazer_ui = owlgazer(mix,decay,hicut,pitchmix)
with {
decay = hslider("DECAY[OWL:A]", 0.7, 0.5, 1.00, 0.01) : *(0.5) : +(0.5);
hicut = hslider("TONE[OWL:B][scale:log]", 7753.83, 900, 8000, 0.01);
pitchmix = hslider("SHIMMER[OWL:C]", 0.3, 0, 0.7, 0.01);
mix = hslider("MIX[OWL:D]", 0.2, 0, 1, 0.01);
};
| https://raw.githubusercontent.com/matthewjarviswall/automata/3219d313cc19610c5b208554918f4552781f5090/resources/automata.dsp | faust | import("stdfaust.lib");
master = nentry("master", 300, 1, 2000, 1) : si.smoo;
filter = nentry("filter", 150, 1, 500, 1) : si.smoo;
series = nentry("series", 50, 50, 500, 50) : si.smoo;
partialRatio = nentry("partialRatio", 2, 2, 8, 0.5) : si.smoo;
t = button("gate");
partial = no.velvet_noise(0.8,master) * 5.0 : fi.resonbp(master/2: qu.quantize(master/2, qu.pentanat),200,1) : fi.resonlp(filter,0.2,1);
interval(C) = no.velvet_noise(0.8,master) * 2.5: fi.resonbp(master + C : qu.quantize(master + C, qu.pentanat),200,1) : fi.resonlp(filter,0.2,1);
sourceHarm(N) = hgroup("harmGroup", par(i, N, interval(i*series)), partial, partial);
process = sourceHarm(8) :> owlgazer_ui : _,_;
owlgazer(mix,decay,hicut,pitchmix) =
_,_ <:
(
_,_ <:
(si.bus(N*2) :> networkline)~(feedbackline)
:> *(mix),*(mix)
),
(*(1-mix),*(1-mix)) :>
_,_
with {
N = 4;
earlyAPNb = 2;
MAXDELAY = 8192;
delays = (2401.0, 3125.0, 6561.0, 14641.0);
delayval(i) = ba.take(i+1,delays);
pitchshifter(delay, pitch, amount) = _ <: de.delay(MAXDELAY, delay)*(1-amount),(ef.transpose(delay,delay,pitch)*amount) :> _;
earlyreflections = seq(i, earlyAPNb,
fi.allpass_comb(2048, delayval(i), -allpassfb)
)
with{
allpassfb = 0.6;
delays = (729.0, 1331.0, 625.0, 343.0);
delayval(j) = ba.take(j+1, delays);
};
latereflections(i) = _ <:
de.fdelay(MAXDELAY, delayval(i))*(i!=3),
pitchshifter(MAXDELAY + delayval(i),12,pitchmix)*(i==3) :>
_;
networkline = par(i,N,
_ :
earlyreflections :
latereflections(i) :
_/sqrt(N)
) : fi.lowpass(1, hicut),fi.highpass(1, 90),fi.lowpass(1, hicut),_;
feedbackline = ro.hadamard(N) : par(i,N,*(decay));
};
owlgazer_ui = owlgazer(mix,decay,hicut,pitchmix)
with {
decay = hslider("DECAY[OWL:A]", 0.7, 0.5, 1.00, 0.01) : *(0.5) : +(0.5);
hicut = hslider("TONE[OWL:B][scale:log]", 7753.83, 900, 8000, 0.01);
pitchmix = hslider("SHIMMER[OWL:C]", 0.3, 0, 0.7, 0.01);
mix = hslider("MIX[OWL:D]", 0.2, 0, 1, 0.01);
};
|
|
c22bce9c08626bbbe685039643a0e3f8268588e1b6e0f0160f6a98417b590fb6 | madskjeldgaard/mkfaustplugins | Korg35LPF.dsp | import("stdfaust.lib");
normFreq = vslider("normFreq", 0.5, 0.0,1.0,0.0001);
Q = vslider("q",0.1,0.0,10.0,0.001);
process = _ : ve.korg35LPF(normFreq,Q) : _;
| https://raw.githubusercontent.com/madskjeldgaard/mkfaustplugins/fd7cf250788174b5efa6ae3294997609830875d1/plugins/Korg35LPF/Korg35LPF.dsp | faust | import("stdfaust.lib");
normFreq = vslider("normFreq", 0.5, 0.0,1.0,0.0001);
Q = vslider("q",0.1,0.0,10.0,0.001);
process = _ : ve.korg35LPF(normFreq,Q) : _;
|
|
72a417fc240fa444ec76d5132d91d237cfb51bb461c0213ed281c626e5abed21 | madskjeldgaard/mkfaustplugins | Korg35HPF.dsp | import("stdfaust.lib");
normFreq = vslider("normFreq", 0.5, 0.0,1.0,0.0001);
Q = vslider("q",0.1,0.0,10.0,0.001);
process = _ : ve.korg35HPF(normFreq,Q) : _;
| https://raw.githubusercontent.com/madskjeldgaard/mkfaustplugins/fd7cf250788174b5efa6ae3294997609830875d1/plugins/Korg35HPF/Korg35HPF.dsp | faust | import("stdfaust.lib");
normFreq = vslider("normFreq", 0.5, 0.0,1.0,0.0001);
Q = vslider("q",0.1,0.0,10.0,0.001);
process = _ : ve.korg35HPF(normFreq,Q) : _;
|
|
8fc9930f89d976fb934e626e92ac51d19a272d90540011a14c75f021a97ab863 | shakfu/soundlab | shax_delay.dsp | import("stdfaust.lib");
time = int((hslider("time (ms)", 0, 0, 1000, 0.10): si.smoo) * ba.millisec)-1;
fb = (hslider("feedback", 0, 0, 100, 0.1): si.smoo)/100.0;
delayline = vgroup("delayline 1000", +~(de.delay(65536, time * fb)));
process = vgroup("stereo echo", (delayline, delayline));
| https://raw.githubusercontent.com/shakfu/soundlab/2941e0ee74d7ade8992e5f2e3b90c7765ec1946b/faust/delays/shax_delay.dsp | faust | import("stdfaust.lib");
time = int((hslider("time (ms)", 0, 0, 1000, 0.10): si.smoo) * ba.millisec)-1;
fb = (hslider("feedback", 0, 0, 100, 0.1): si.smoo)/100.0;
delayline = vgroup("delayline 1000", +~(de.delay(65536, time * fb)));
process = vgroup("stereo echo", (delayline, delayline));
|
|
89f62a979aeb8b626e4e8d89353860bf6cd30ed5148bca75e33d35742677a139 | theyoogle/Faust-DSP | 02 1-Second Delay Example.dsp | import("stdfaust.lib");
process = _ @ 44100; | https://raw.githubusercontent.com/theyoogle/Faust-DSP/54e3514141a66aff7c6e9304f5a37a6617e42962/session%2002/03%20Delays%20and%20Tables/02%201-Second%20Delay%20Example.dsp | faust | import("stdfaust.lib");
process = _ @ 44100; |
|
ae97772ed7dc10776cae49d2bb793c2b4680a40fd88c764d1d952d618edfd045 | Fr0stbyteR/faust2wam | organ.dsp | import("stdfaust.lib");
timbre(f) = os.osc(f)*0.5 + os.osc(f*2)*0.25 + os.osc(f*3)*0.125;
process = timbre(hslider("freq", 440, 20, 10000, 1))
* hslider("gain", 0.0, 0, 1, 0.01)
* (button("gate") : en.adsr(0.1,0.1,0.98,1.5)); | https://raw.githubusercontent.com/Fr0stbyteR/faust2wam/324029ac35a233cb62b9954917ca138984daddc4/test/organ.dsp | faust | import("stdfaust.lib");
timbre(f) = os.osc(f)*0.5 + os.osc(f*2)*0.25 + os.osc(f*3)*0.125;
process = timbre(hslider("freq", 440, 20, 10000, 1))
* hslider("gain", 0.0, 0, 1, 0.01)
* (button("gate") : en.adsr(0.1,0.1,0.98,1.5)); |
|
177aa3d447fd86a93747f6b2a2a683eb16627186be68f5b8d49a5e8ee8151f33 | Fr0stbyteR/faust2wam | osc2.dsp | import("stdfaust.lib");
f = hslider("freq [midi:ctrl 7]",440,50,2000,0.01);
phasor(freq) = (+(freq/ma.SR) ~ ma.decimal);
osc(freq) = sin(phasor(freq)*2*ma.PI);
process = osc(f); | https://raw.githubusercontent.com/Fr0stbyteR/faust2wam/324029ac35a233cb62b9954917ca138984daddc4/test/osc2.dsp | faust | import("stdfaust.lib");
f = hslider("freq [midi:ctrl 7]",440,50,2000,0.01);
phasor(freq) = (+(freq/ma.SR) ~ ma.decimal);
osc(freq) = sin(phasor(freq)*2*ma.PI);
process = osc(f); |
|
802e112ae9ec7c9015cc5e75f81e9b0d39610859bd3484a4c04b287705b444d9 | Fr0stbyteR/faust2wam | mono.dsp | declare name "Oscillator440";
declare version "1.0";
declare author "Fr0stbyteR";
declare license "BSD";
declare copyright "shren2021";
declare description "This is an oscillator";
import("stdfaust.lib");
process = os.osc(440);
| https://raw.githubusercontent.com/Fr0stbyteR/faust2wam/324029ac35a233cb62b9954917ca138984daddc4/test/mono.dsp | faust | declare name "Oscillator440";
declare version "1.0";
declare author "Fr0stbyteR";
declare license "BSD";
declare copyright "shren2021";
declare description "This is an oscillator";
import("stdfaust.lib");
process = os.osc(440);
|
|
c94c5d2ed1ab086a6500a6f69054e8dfca26396968b0509e8b8d5956dbda60b3 | SamKouteili/FaustVision | dub.dsp | import("stdfaust.lib");
declare options "[osc:on]";
process(freq, gain) = sy.dubDub(freq,100,2,1)*gain; | https://raw.githubusercontent.com/SamKouteili/FaustVision/05478975a39766447964f1f75bddc5f8d41c1194/examples/dub.dsp | faust | import("stdfaust.lib");
declare options "[osc:on]";
process(freq, gain) = sy.dubDub(freq,100,2,1)*gain; |
|
003196b330e1d0cfe0fa1acc6341841ab8d9f4c7c3cb1ae3ed9b98f68b6809f9 | Fr0stbyteR/faust2wam | osc.dsp | import("stdfaust.lib");
vol = hslider("volume [unit:dB]", 0, -96, 0, 0.1) : ba.db2linear : si.smoo;
freq = hslider("freq [unit:Hz]", 500, 20, 24000, 1);
process = vgroup("Oscillator", os.osc(freq) * vol); | https://raw.githubusercontent.com/Fr0stbyteR/faust2wam/324029ac35a233cb62b9954917ca138984daddc4/test/osc.dsp | faust | import("stdfaust.lib");
vol = hslider("volume [unit:dB]", 0, -96, 0, 0.1) : ba.db2linear : si.smoo;
freq = hslider("freq [unit:Hz]", 500, 20, 24000, 1);
process = vgroup("Oscillator", os.osc(freq) * vol); |
|
1fb73ca59d0fad0cc6e36317983fde4e6d8cda6f7289bfc01459fd3b22be840a | unicornsasfuel/levelrider | levelrider.dsp | declare name "Level Rider";
declare version "2.0";
declare author "Evermind";
declare license "BSD";
declare copyright "(c) Evermind 2021";
import("stdfaust.lib");
/////////////////////////////
// Parameters
////////////////////////////
//get desired speed
sec_time_window = vslider("v:Level Rider/h:Levels/h:[1]Config/[1][unit:ms]RMS time", 100, 1, 2000, 1) : /(1000);
samp_time_window = sec_time_window : ba.sec2samp;
//get desired level in db and convert to linear
target = vslider("v:Level Rider/h:Levels/h:[1]Config/[0][unit:dB]Target", 0, -40, +4, 0.1) : ba.db2linear : si.smoo;
//get max change
maxchange = vslider("v:Level Rider/h:Levels/h:[1]Config/[2][unit:dB]Max change", 3, 0, 20, 0.01) : ba.db2linear : si.smoo;
//stereo link or don't
is_stereo_linked = checkbox("v:Level Rider/[1]Unlink stereo channels?") : _ != 1;
/////////////////////////
// Helpers
////////////////////////
// Taken from BSD-licensed code (c)2006 GRAME
envelop = abs : max(ba.db2linear(-70)) : ba.linear2db : min(10) : max ~ -(80.0/ma.SR);
//get current level, RMS
current_rms(x) = _ <: attach(_, envelop(_) : vbargraph("v:Level Rider/h:Levels/h:[0]Input/[unit:dB]Channel %x", -70, 10)) : ba.slidingRMS(samp_time_window);
//calculate desired change
desired_change(x) = target / max(current_rms(x), ma.MIN);
//calculate actual change
actual_change(x) = min(maxchange,desired_change(x)) : max(1/maxchange) <: attach(_,ba.linear2db : vbargraph("v:Level Rider/h:Levels/h:[2]Adjustment/[unit:dB]Channel %x",-20,20));
apply_linked_gain(a,b,c,d) = b*((a+c)/2), d*((a+c)/2);
apply_unlinked_gain(a,b,c,d) = (a*b, c*d);
apply_gain(is_stereo_linked, a,b,c,d) = ba.select2stereo(is_stereo_linked, apply_linked_gain(a,b,c,d), apply_unlinked_gain(a,b,c,d));
process = par(x,2, _ <: (actual_change(x)), _) : apply_gain(is_stereo_linked);
| https://raw.githubusercontent.com/unicornsasfuel/levelrider/ef54128a28d77a669a69d8d18bf6dcc4d1e6e316/levelrider.dsp | faust | ///////////////////////////
Parameters
//////////////////////////
get desired speed
get desired level in db and convert to linear
get max change
stereo link or don't
///////////////////////
Helpers
//////////////////////
Taken from BSD-licensed code (c)2006 GRAME
get current level, RMS
calculate desired change
calculate actual change | declare name "Level Rider";
declare version "2.0";
declare author "Evermind";
declare license "BSD";
declare copyright "(c) Evermind 2021";
import("stdfaust.lib");
sec_time_window = vslider("v:Level Rider/h:Levels/h:[1]Config/[1][unit:ms]RMS time", 100, 1, 2000, 1) : /(1000);
samp_time_window = sec_time_window : ba.sec2samp;
target = vslider("v:Level Rider/h:Levels/h:[1]Config/[0][unit:dB]Target", 0, -40, +4, 0.1) : ba.db2linear : si.smoo;
maxchange = vslider("v:Level Rider/h:Levels/h:[1]Config/[2][unit:dB]Max change", 3, 0, 20, 0.01) : ba.db2linear : si.smoo;
is_stereo_linked = checkbox("v:Level Rider/[1]Unlink stereo channels?") : _ != 1;
envelop = abs : max(ba.db2linear(-70)) : ba.linear2db : min(10) : max ~ -(80.0/ma.SR);
current_rms(x) = _ <: attach(_, envelop(_) : vbargraph("v:Level Rider/h:Levels/h:[0]Input/[unit:dB]Channel %x", -70, 10)) : ba.slidingRMS(samp_time_window);
desired_change(x) = target / max(current_rms(x), ma.MIN);
actual_change(x) = min(maxchange,desired_change(x)) : max(1/maxchange) <: attach(_,ba.linear2db : vbargraph("v:Level Rider/h:Levels/h:[2]Adjustment/[unit:dB]Channel %x",-20,20));
apply_linked_gain(a,b,c,d) = b*((a+c)/2), d*((a+c)/2);
apply_unlinked_gain(a,b,c,d) = (a*b, c*d);
apply_gain(is_stereo_linked, a,b,c,d) = ba.select2stereo(is_stereo_linked, apply_linked_gain(a,b,c,d), apply_unlinked_gain(a,b,c,d));
process = par(x,2, _ <: (actual_change(x)), _) : apply_gain(is_stereo_linked);
|
b6a0e3248b7e34b8d007f4a154b24a98e477e3e432fe374911fc4784f7b8b8e0 | elaforge/karya | clarinet.dsp | import("stdfaust.lib");
declare description "Clarinet model.";
declare control0_pitch "Pitch signal.";
declare control1_dyn "Dynamic signal.";
process(pitch, dyn) =
pm.clarinetModel(tubeLength, pressure, reedStiffness, bellOpening)
* outGain
with {
tubeLength = freq : pm.f2l;
freq = ba.midikey2hz(pitch);
pressure = dyn;
reedStiffness = .5; // 0 to 1
bellOpening = .5; // 0 to 1
outGain = .5;
};
| https://raw.githubusercontent.com/elaforge/karya/471a2131f5a68b3b10b1a138e6f9ed1282980a18/Synth/Faust/dsp/clarinet.dsp | faust | 0 to 1
0 to 1 | import("stdfaust.lib");
declare description "Clarinet model.";
declare control0_pitch "Pitch signal.";
declare control1_dyn "Dynamic signal.";
process(pitch, dyn) =
pm.clarinetModel(tubeLength, pressure, reedStiffness, bellOpening)
* outGain
with {
tubeLength = freq : pm.f2l;
freq = ba.midikey2hz(pitch);
pressure = dyn;
outGain = .5;
};
|
6e7c011042f28ca893dd7a2d093a8207dbbfa4575f0fe9ffa345b941be6226ac | sagpant/OTTO | master.dsp | import("stdfaust.lib");
process = co.compressor_stereo(4,-6,0.0008,0.5);
| https://raw.githubusercontent.com/sagpant/OTTO/d736d5fb29f9cfbd32d2cbd3b0ad1492e6c27f9a/src/engines/misc/master/master.dsp | faust | import("stdfaust.lib");
process = co.compressor_stereo(4,-6,0.0008,0.5);
|
|
845497afbcfe2f32a5697a1feefd75f2be8526d0146e94cc004df839b8644412 | danidev/microcosmos | MicrocosmosDsp.dsp | import("stdfaust.lib");
volume = hslider("vol", 0.5, 0, 1, 0.1);
pitch = hslider("note", 30, 0, 127, 1);
freq = ba.midikey2hz(pitch);
gate = button("gate");
snare = button("snare");
hat = button("hat");
random = +(12345)~*(1103515245);
noise = random/2147483647.0;
vsnare = noise * en.ar(0.01, 0.11, snare) : fi.resonlp(1200, 2, .95) * volume;
vhat = noise * en.ar(0.01, 0.05, hat) : fi.resonhp(3000, 4, .75) * volume;
bubble(f0,trig) = os.osc(f) * (exp(-damp*time) : si.smooth(0.99))
with {
damp = 0.23*f0 + 0.0014*f0^(3/2);
f = f0*(1+sigma*time);
sigma = eta * damp;
eta = 0.005;
time = 0 : (select2(trig>trig'):+(1)) ~ _ : ba.samp2sec;
};
kick = bubble(freq, gate) * volume;
process = kick,vsnare,vhat :> _ <: _,_ ;
| https://raw.githubusercontent.com/danidev/microcosmos/033ebbfd2b3cbbaa350587f9b34566186f71f994/dsp/sb21workshop/dsp/MicrocosmosDsp.dsp | faust | import("stdfaust.lib");
volume = hslider("vol", 0.5, 0, 1, 0.1);
pitch = hslider("note", 30, 0, 127, 1);
freq = ba.midikey2hz(pitch);
gate = button("gate");
snare = button("snare");
hat = button("hat");
random = +(12345)~*(1103515245);
noise = random/2147483647.0;
vsnare = noise * en.ar(0.01, 0.11, snare) : fi.resonlp(1200, 2, .95) * volume;
vhat = noise * en.ar(0.01, 0.05, hat) : fi.resonhp(3000, 4, .75) * volume;
bubble(f0,trig) = os.osc(f) * (exp(-damp*time) : si.smooth(0.99))
with {
damp = 0.23*f0 + 0.0014*f0^(3/2);
f = f0*(1+sigma*time);
sigma = eta * damp;
eta = 0.005;
time = 0 : (select2(trig>trig'):+(1)) ~ _ : ba.samp2sec;
};
kick = bubble(freq, gate) * volume;
process = kick,vsnare,vhat :> _ <: _,_ ;
|
|
f4c262d5f4b887d3fe31917199edbd8651b32c7acb0588387e2347fd3246d510 | rmichon/faustwebui | osc.dsp | import("stdfaust.lib");
/*
oscs = hgroup("Oscillators",sum(i,2,vgroup("Osc %i",os.osc(freq)*gain)))
with{
freq = nentry("Frequency",300,100,2000,0.01);
gain = nentry("Gain",0.5,0,1,0.01);
};
*/
sawtooth = vgroup("Sawtooth",os.sawtooth(freq)*gain)
with{
freq = hslider("Frequency[_width: 100][style:knob]",300,100,2000,0.01);
gain = hslider("Gain[_width: 200][style:knob]",0.5,0,1,0.01);
};
sine = hgroup("Sine",os.osc(freq)*gain : visual)
with{
freq = vslider("[0]Frequency",300,100,2000,0.01);
gain = vslider("[1]Gain",0.5,0,1,0.01);
visual = _ <: attach(_,an.amp_follower_ar(0.01,0.01) : vbargraph("[2]Output Gain",0,1));
};
triangle = vgroup("Triangle",os.triangle(freq)*gain)
with{
freq = nentry("Frequency",300,100,2000,0.01);
gain = nentry("Gain",0.5,0,1,0.01);
};
square = vgroup("Square",os.square(freq)*gain)
with{
freq = hslider("Frequency",300,100,2000,0.01);
gain = hslider("Gain",0.5,0,1,0.01);
};
oscillators = hgroup("[0]Oscillators",(sawtooth+sine+triangle+square))*(hgroup("[2]",gate)) <: attach(_,an.amp_follower_ar(0.01,0.01) : hbargraph("[1]Output Gain",0,1))
with{
click = button("Button");
hold = checkbox("Checkbox");
gate = click+hold : min(1);
};
process = oscillators <: _,_;
| https://raw.githubusercontent.com/rmichon/faustwebui/beefaa788c3d67201f30054213b09d516a4fa3dc/faust/osc.dsp | faust |
oscs = hgroup("Oscillators",sum(i,2,vgroup("Osc %i",os.osc(freq)*gain)))
with{
freq = nentry("Frequency",300,100,2000,0.01);
gain = nentry("Gain",0.5,0,1,0.01);
};
| import("stdfaust.lib");
sawtooth = vgroup("Sawtooth",os.sawtooth(freq)*gain)
with{
freq = hslider("Frequency[_width: 100][style:knob]",300,100,2000,0.01);
gain = hslider("Gain[_width: 200][style:knob]",0.5,0,1,0.01);
};
sine = hgroup("Sine",os.osc(freq)*gain : visual)
with{
freq = vslider("[0]Frequency",300,100,2000,0.01);
gain = vslider("[1]Gain",0.5,0,1,0.01);
visual = _ <: attach(_,an.amp_follower_ar(0.01,0.01) : vbargraph("[2]Output Gain",0,1));
};
triangle = vgroup("Triangle",os.triangle(freq)*gain)
with{
freq = nentry("Frequency",300,100,2000,0.01);
gain = nentry("Gain",0.5,0,1,0.01);
};
square = vgroup("Square",os.square(freq)*gain)
with{
freq = hslider("Frequency",300,100,2000,0.01);
gain = hslider("Gain",0.5,0,1,0.01);
};
oscillators = hgroup("[0]Oscillators",(sawtooth+sine+triangle+square))*(hgroup("[2]",gate)) <: attach(_,an.amp_follower_ar(0.01,0.01) : hbargraph("[1]Output Gain",0,1))
with{
click = button("Button");
hold = checkbox("Checkbox");
gate = click+hold : min(1);
};
process = oscillators <: _,_;
|
2489e4998735b6fe22521623ae33ffc6926a8e832f7275317dfeabcf8fbd370c | silentorb/marloth-kotlin | hogAmbient01.dsp | import("stdfaust.lib");
range(low, high, unit) = unit * (high - low) + low;
ctFreq = os.lf_triangle(10) + 1 / 2 * 500;
q = 5;
gain = 1;
//process = no.noise : fi.resonlp(ctFreq,q,gain);
gain2 = os.lf_saw(2) / 2 + 0.5;
process = os.triangle(500 * range(0.5, 1, gain2));
| https://raw.githubusercontent.com/silentorb/marloth-kotlin/03a1e2c082343ee3d64c8d1ffadad156fca6f9e1/storage/assets/audio/faust/sounds/hogAmbient01.dsp | faust | process = no.noise : fi.resonlp(ctFreq,q,gain); | import("stdfaust.lib");
range(low, high, unit) = unit * (high - low) + low;
ctFreq = os.lf_triangle(10) + 1 / 2 * 500;
q = 5;
gain = 1;
gain2 = os.lf_saw(2) / 2 + 0.5;
process = os.triangle(500 * range(0.5, 1, gain2));
|
7b4f11e831866439de79a20370b14d63dbd4c65c1d014496ff06195a85852e47 | friskgit/kmh_108 | KMH108_channel_map.dsp | declare name "KMH108_channel_map";
declare version " 0.1 ";
declare author " Henrik Frisk " ;
declare license " BSD ";
declare copyright "(c) dinergy/kmh 2018 ";
//---------------`Channel mapping plugin` --------------------------
//
// Channel mapping plugin that takes 8 channels of input (center speaker excluded)
// and maps it to the channel/speaker configuration of the studio 108 according to:
//
// * Audio interface ch -> signal output (clock wise starting at left)
// * 1 -> 1 (L)
// * 2 -> 2 (R)
// * 3 -> 8 (LSR)
// * 4 -> 3 (RSR)
// * 5 -> 7 (LSF)
// * 6 -> 4 (RSF)
// * 7 -> 6 (RL)
// * 8 -> 5 (RR)
//
//---------------------------------------------------
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) = s0, s1, s7, s2, s6, s3, s5, s4;
//process(L, R, RSF, RSR, RR, LR, LSR, LSF) = (L, R, RSF, RSR, RR, LR, LSR, LSF) <:
// ba.selector(0, 8), // 1 L
// ba.selector(1, 8), // 2 R
// ba.selector(7, 8), // 3 LSF
// ba.selector(2, 8), // 4 RSF
// ba.selector(6, 8), // 5 LSR
// ba.selector(3, 8), // 6 RSR
// ba.selector(5, 8), // 7 RL
// ba.selector(4, 8); // 8 RR
//hgroup("lower ring", par(i, 8, vgroup("%i", vmeter)));
| https://raw.githubusercontent.com/friskgit/kmh_108/5e048b75b1acb59c85432156c599a52ceecc5b93/KMH108_utility/src/KMH108_channel_map.dsp | faust | ---------------`Channel mapping plugin` --------------------------
Channel mapping plugin that takes 8 channels of input (center speaker excluded)
and maps it to the channel/speaker configuration of the studio 108 according to:
* Audio interface ch -> signal output (clock wise starting at left)
* 1 -> 1 (L)
* 2 -> 2 (R)
* 3 -> 8 (LSR)
* 4 -> 3 (RSR)
* 5 -> 7 (LSF)
* 6 -> 4 (RSF)
* 7 -> 6 (RL)
* 8 -> 5 (RR)
---------------------------------------------------
process(L, R, RSF, RSR, RR, LR, LSR, LSF) = (L, R, RSF, RSR, RR, LR, LSR, LSF) <:
ba.selector(0, 8), // 1 L
ba.selector(1, 8), // 2 R
ba.selector(7, 8), // 3 LSF
ba.selector(2, 8), // 4 RSF
ba.selector(6, 8), // 5 LSR
ba.selector(3, 8), // 6 RSR
ba.selector(5, 8), // 7 RL
ba.selector(4, 8); // 8 RR
hgroup("lower ring", par(i, 8, vgroup("%i", vmeter))); | declare name "KMH108_channel_map";
declare version " 0.1 ";
declare author " Henrik Frisk " ;
declare license " BSD ";
declare copyright "(c) dinergy/kmh 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) = s0, s1, s7, s2, s6, s3, s5, s4;
|
5190b82e52ec00648183ca7355fdacc75d6b57503c8ff9ec08b67f5d8804f2bd | friskgit/kmh_108 | KMH108_channel_map_C.dsp | declare name "KMH108_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 8 channels of input (center speaker included)
// and maps it to the channel/speaker configuration of the studio 108 according to:
//
// * Audio interface ch -> signal output (clock wise starting at left)
// * 1 -> 1 (L)
// * 2 -> 3 (R)
// * 3 -> 9 (LSR)
// * 4 -> 4 (RSR)
// * 5 -> 8 (LSF)
// * 6 -> 5 (RSF)
// * 7 -> 7 (RL)
// * 8 -> 6 (RR)
// * 9 -> 2 (C)
//
//---------------------------------------------------
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) = s0, s1, s7, s2, s6, s3, s5, s4, s8 : hgroup("lower ring", par(i, 9, vgroup("%i", vmeter)));
// process(L, C, R, RSF, RSR, RR, RL, LSR, LSF) = (L, C, R, RSF, RSR, RR, RL, LSR, LSF) <:
// ba.selector(0, 9), // 1 L
// ba.selector(2, 9), // 2 R
// ba.selector(8, 9), // 3 LSF
// ba.selector(3, 9), // 4 RSF
// ba.selector(7, 9), // 5 LSR
// ba.selector(4, 9), // 6 RSR
// ba.selector(6, 9), // 7 LR
// ba.selector(5, 9), // 8 RR
// ba.selector(1, 9) : // 9 C
| https://raw.githubusercontent.com/friskgit/kmh_108/5e048b75b1acb59c85432156c599a52ceecc5b93/KMH108_utility/src/KMH108_channel_map_C.dsp | faust | ---------------`Channel mapping plugin` --------------------------
Channel mapping plugin that takes 8 channels of input (center speaker included)
and maps it to the channel/speaker configuration of the studio 108 according to:
* Audio interface ch -> signal output (clock wise starting at left)
* 1 -> 1 (L)
* 2 -> 3 (R)
* 3 -> 9 (LSR)
* 4 -> 4 (RSR)
* 5 -> 8 (LSF)
* 6 -> 5 (RSF)
* 7 -> 7 (RL)
* 8 -> 6 (RR)
* 9 -> 2 (C)
---------------------------------------------------
process(L, C, R, RSF, RSR, RR, RL, LSR, LSF) = (L, C, R, RSF, RSR, RR, RL, LSR, LSF) <:
ba.selector(0, 9), // 1 L
ba.selector(2, 9), // 2 R
ba.selector(8, 9), // 3 LSF
ba.selector(3, 9), // 4 RSF
ba.selector(7, 9), // 5 LSR
ba.selector(4, 9), // 6 RSR
ba.selector(6, 9), // 7 LR
ba.selector(5, 9), // 8 RR
ba.selector(1, 9) : // 9 C | declare name "KMH108_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) = s0, s1, s7, s2, s6, s3, s5, s4, s8 : hgroup("lower ring", par(i, 9, vgroup("%i", vmeter)));
|
589c2ef55efe27e42fe23a6aede08238169a1b4d44b37572ca6faa763d141f48 | SamKouteili/FaustVision | moog.dsp | import("stdfaust.lib");
declare options "[osc:on]";
process(freq, gain) = os.osc(freq) * gain : ve.moog_vcf(0.1, freq); | https://raw.githubusercontent.com/SamKouteili/FaustVision/05478975a39766447964f1f75bddc5f8d41c1194/examples/moog.dsp | faust | import("stdfaust.lib");
declare options "[osc:on]";
process(freq, gain) = os.osc(freq) * gain : ve.moog_vcf(0.1, freq); |
|
bb5c8e8b88c94316d80c5e08f556dfa4a8f397cdf350bf7e19b69cbde6fa46c6 | jpcima/Hera | HeraHPF.dsp | // SPDX-License-Identifier: GPL-3.0-or-later
declare author "Jean Pierre Cimalando";
declare license "GPL-3.0-or-later";
// Converted from original at pendragon-andyh/junox
import("stdfaust.lib");
import("HeraCommon.dsp");
process(xin) = ba.if(fc>0.0, xin-g*lpf(fc, xin), xin) with {
amount = hslider("[1] Amount", 0.0, 0.0, 1.0, 0.01);
fc = cutoff(amount);
g = (amount*4.0) : min(1.0) : tsmooth(10e-3);
};
lpf(fc, xin) = xin*a0+z1'
letrec {
'z1 = -b1*(xin*a0+z1);
}
with {
b1 = ma.neg(exp(fc*(-2.0*ma.PI/ma.SR))) : tsmooth(10e-3);
a0 = 1.0+b1;
};
cutoff = ffunction(float curveFromHpfSliderToFreq(float), "HeraTables.h", "");
| https://raw.githubusercontent.com/jpcima/Hera/eec43c0b5cb5aaa71c647b2e5597fc1ba383dd13/Source/HeraHPF.dsp | faust | SPDX-License-Identifier: GPL-3.0-or-later
Converted from original at pendragon-andyh/junox |
declare author "Jean Pierre Cimalando";
declare license "GPL-3.0-or-later";
import("stdfaust.lib");
import("HeraCommon.dsp");
process(xin) = ba.if(fc>0.0, xin-g*lpf(fc, xin), xin) with {
amount = hslider("[1] Amount", 0.0, 0.0, 1.0, 0.01);
fc = cutoff(amount);
g = (amount*4.0) : min(1.0) : tsmooth(10e-3);
};
lpf(fc, xin) = xin*a0+z1'
letrec {
'z1 = -b1*(xin*a0+z1);
}
with {
b1 = ma.neg(exp(fc*(-2.0*ma.PI/ma.SR))) : tsmooth(10e-3);
a0 = 1.0+b1;
};
cutoff = ffunction(float curveFromHpfSliderToFreq(float), "HeraTables.h", "");
|
3905a198a5a3ee2651ef4648d2983e8107b14d42b62656ec7cea4a604cf5dc49 | jpecquais/faustLab | guitarToSynth.dsp | declare name "Guitar To Synth";
declare author "Jean-Loup Pecquais";
declare version "1.00";
declare license "GPL3";
// Try guitar signal to control an oscillator.
// First version : direct magnetic pickup, monophonic detection
// Current state :
// Envelope is "ok". There is also a constant return to 0 Hz, producing a glide effect which should be solved : sample&hold should solve this.
import("stdfaust.lib");
favorFundamentalFqc(fqc) = fi.notchw(fqc/2, fqc*2);
pitchToOsc(trig) = fi.lowpass(4, 1500) : fi.highpass(4, 40) : (favorFundamentalFqc <: *(an.amp_follower(0.02)) : an.pitchTracker(2,0.01))~(*(2)) : os.square;
ampToEnv = co.compressor_mono(20, -40, 0.001, 0.05) : *(2) : an.amp_follower(0.01) : *(10);
process = _ <: pitchToOsc(trig), (trig : en.adsr(0.01,0.1,0.7,0.1) : si.smoo ) : si.dot(1)
with {
trig = ampToEnv>0.05;
}; | https://raw.githubusercontent.com/jpecquais/faustLab/91f3121f6b82bf05962e676e7731fadef45628b8/dsp/Synth/guitarToSynth.dsp | faust | Try guitar signal to control an oscillator.
First version : direct magnetic pickup, monophonic detection
Current state :
Envelope is "ok". There is also a constant return to 0 Hz, producing a glide effect which should be solved : sample&hold should solve this. | declare name "Guitar To Synth";
declare author "Jean-Loup Pecquais";
declare version "1.00";
declare license "GPL3";
import("stdfaust.lib");
favorFundamentalFqc(fqc) = fi.notchw(fqc/2, fqc*2);
pitchToOsc(trig) = fi.lowpass(4, 1500) : fi.highpass(4, 40) : (favorFundamentalFqc <: *(an.amp_follower(0.02)) : an.pitchTracker(2,0.01))~(*(2)) : os.square;
ampToEnv = co.compressor_mono(20, -40, 0.001, 0.05) : *(2) : an.amp_follower(0.01) : *(10);
process = _ <: pitchToOsc(trig), (trig : en.adsr(0.01,0.1,0.7,0.1) : si.smoo ) : si.dot(1)
with {
trig = ampToEnv>0.05;
}; |
7a6225c8d85bebfbdae89c126e29e3dc401ec30f92d016b28ff16c5f71e809a4 | sfztools/sfizz | resonant_string.dsp | import("stdfaust.lib");
f = hslider("[1] Resonance frequency [unit:Hz]", 1, 0, 22000, 1);
r = hslider("[2] Resonance feedback", 0, 0, 1, 0.001);
b = hslider("[3] Bandwidth [unit:Hz]", 1, 0, 10, 0.01);
g = hslider("[4] Gain", 0, 0, 1, 0.01);
process = fi.bandpass(1, f-0.5*b, f+0.5*b) : fi.nlf2(f, r) : (_,!) : *(g);
| https://raw.githubusercontent.com/sfztools/sfizz/acd866fd3d247d2fc659593cac96e88e801c29e2/src/sfizz/effects/dsp/resonant_string.dsp | faust | import("stdfaust.lib");
f = hslider("[1] Resonance frequency [unit:Hz]", 1, 0, 22000, 1);
r = hslider("[2] Resonance feedback", 0, 0, 1, 0.001);
b = hslider("[3] Bandwidth [unit:Hz]", 1, 0, 10, 0.01);
g = hslider("[4] Gain", 0, 0, 1, 0.01);
process = fi.bandpass(1, f-0.5*b, f+0.5*b) : fi.nlf2(f, r) : (_,!) : *(g);
|
|
140ef15a5183e77e565f05c19d1c352cd86dd9d21b6ef033efa621d90d1567b8 | ciarandg/comp58 | comp58.dsp | /*
* Comp58 is a vocal effects chain that I use on my SM58 to increase
* line level and add some compression for use in Zoom, Discord, etc
*/
import("stdfaust.lib");
noiseGate = hgroup("Noise Gate",
ef.gate_mono(hslider("Threshold",-60,-60,0,1),
0.002, 0.3, 0.02));
gainMultiplier = hslider("Gain",2,1,25,0.1);
compressor = hgroup("Compressor",
co.compressor_mono(hslider("Ratio",8,1,10,0.1),
hslider("Threshold",-10,-60,0,1),
0.02, 0.02));
effectChain = noiseGate : *(gainMultiplier) : compressor;
inMeter = hgroup("Volume",attach(_,abs : ba.linear2db : hbargraph("Input",-60,0)));
outMeter = hgroup("Volume",attach(_,abs : ba.linear2db : hbargraph("Output",-60,0)));
process = effectChain <: outMeter;
| https://raw.githubusercontent.com/ciarandg/comp58/683dd6eb66784c76f1f64131cc5044660fce051d/comp58.dsp | faust |
* Comp58 is a vocal effects chain that I use on my SM58 to increase
* line level and add some compression for use in Zoom, Discord, etc
|
import("stdfaust.lib");
noiseGate = hgroup("Noise Gate",
ef.gate_mono(hslider("Threshold",-60,-60,0,1),
0.002, 0.3, 0.02));
gainMultiplier = hslider("Gain",2,1,25,0.1);
compressor = hgroup("Compressor",
co.compressor_mono(hslider("Ratio",8,1,10,0.1),
hslider("Threshold",-10,-60,0,1),
0.02, 0.02));
effectChain = noiseGate : *(gainMultiplier) : compressor;
inMeter = hgroup("Volume",attach(_,abs : ba.linear2db : hbargraph("Input",-60,0)));
outMeter = hgroup("Volume",attach(_,abs : ba.linear2db : hbargraph("Output",-60,0)));
process = effectChain <: outMeter;
|
3b8433e937c6f19dc2da3eb21224117d2058e4c90003482efe04877f4c50017d | TobiasKozel/VAE | reverb.dsp | import("stdfaust.lib");
// params are alphabetically sorted in the generated dsp
mix = vslider( "mix", 1.0, 0, 1, 0.01) : si.smooth(0.999) : si.smooth(0.999), 0 : max, 1 : min;
fb1 = vslider( "fb1", 0.5, 0, 1, 0.01) : si.smooth(0.999) : si.smooth(0.999), 0.02 : max, 0.97 : min;
fb2 = vslider( "fb2", 0.5, 0, 1, 0.01) : si.smooth(0.999) : si.smooth(0.999), 0.02 : max, 0.97 : min;
pre = vslider( "pre", 0.5, 0, 1, 0.01) : si.smooth(0.999) : si.smooth(0.999), 0.01 : max, 0.97 : min;
revMix = _, _ : re.zita_rev1_stereo(pre * 500, 500, 3000, fb1 * 10, fb2 * 10, ma.SR) : _ * mix, _ * mix;
process = _, _ <: revMix, (_ * (1 - mix), _ * (1 - mix)) :> _, _;
| https://raw.githubusercontent.com/TobiasKozel/VAE/0946a53c0f06e3e51687dd46542cb05cd49ae472/src/core/dsp/reverb.dsp | faust | params are alphabetically sorted in the generated dsp | import("stdfaust.lib");
mix = vslider( "mix", 1.0, 0, 1, 0.01) : si.smooth(0.999) : si.smooth(0.999), 0 : max, 1 : min;
fb1 = vslider( "fb1", 0.5, 0, 1, 0.01) : si.smooth(0.999) : si.smooth(0.999), 0.02 : max, 0.97 : min;
fb2 = vslider( "fb2", 0.5, 0, 1, 0.01) : si.smooth(0.999) : si.smooth(0.999), 0.02 : max, 0.97 : min;
pre = vslider( "pre", 0.5, 0, 1, 0.01) : si.smooth(0.999) : si.smooth(0.999), 0.01 : max, 0.97 : min;
revMix = _, _ : re.zita_rev1_stereo(pre * 500, 500, 3000, fb1 * 10, fb2 * 10, ma.SR) : _ * mix, _ * mix;
process = _, _ <: revMix, (_ * (1 - mix), _ * (1 - mix)) :> _, _;
|
ab6f00e718084eb95bab66673e604e180da9238919f43d687e63246e789ef46e | francescoganassin/FaustDSP-synths | ganassynth4.dsp | import("stdfaust.lib");
gain = hslider("gain",0.1,0,1,0.01);
freq = hslider("freq",180,50,1000,1);
gate = button("play");
timbre(f) = os.osc(f+4)*0.5 + os.osc(f+40*2)*0.25 + os.osc(f*3.1)*0.125;
process = gain*gate*timbre(freq) <: dm.freeverb_demo;
| https://raw.githubusercontent.com/francescoganassin/FaustDSP-synths/ef9eb3da660f4d53e631a12b7e4f63944c57f61c/ganassynth4.dsp | faust | import("stdfaust.lib");
gain = hslider("gain",0.1,0,1,0.01);
freq = hslider("freq",180,50,1000,1);
gate = button("play");
timbre(f) = os.osc(f+4)*0.5 + os.osc(f+40*2)*0.25 + os.osc(f*3.1)*0.125;
process = gain*gate*timbre(freq) <: dm.freeverb_demo;
|
|
8b1f1cfbbdcf57943ad0c1bb30b85da9bc011904c1c8aba153232809fc9db3aa | sfztools/sfizz | limiter.dsp | import("stdfaust.lib");
limiter(x) = gain*x with {
att = 0.0008;
rel = 0.5;
peak = x : an.amp_follower_ud(att, rel);
gain = ba.if(peak>1.0, 1.0/peak, 1.0) : si.smooth(ba.tau2pole(0.5*att));
};
process = limiter, limiter;
| https://raw.githubusercontent.com/sfztools/sfizz/acd866fd3d247d2fc659593cac96e88e801c29e2/src/sfizz/effects/dsp/limiter.dsp | faust | import("stdfaust.lib");
limiter(x) = gain*x with {
att = 0.0008;
rel = 0.5;
peak = x : an.amp_follower_ud(att, rel);
gain = ba.if(peak>1.0, 1.0/peak, 1.0) : si.smooth(ba.tau2pole(0.5*att));
};
process = limiter, limiter;
|
|
4ce8a550c96593899bc2ee7d03e61f8c12421aab6469c5eaae43624394e4c8c2 | TobiasKozel/GuitarD | Transpose.dsp | import("stdfaust.lib");
window = vslider( "Window", 64, 1, 4096, 1);
lowpass = vslider( "Fade", 32, 1, 4096, 1);
pitch = vslider( "Pitch", 0, -12, 12, 0.001) : si.smooth(0.999);
process = sp.stereoize(ef.transpose(window, lowpass, pitch)); | https://raw.githubusercontent.com/TobiasKozel/GuitarD/80d5b8e6fa2eab99bbee80e6dacb5f0f482bbb52/src/nodes/transpose/Transpose.dsp | faust | import("stdfaust.lib");
window = vslider( "Window", 64, 1, 4096, 1);
lowpass = vslider( "Fade", 32, 1, 4096, 1);
pitch = vslider( "Pitch", 0, -12, 12, 0.001) : si.smooth(0.999);
process = sp.stereoize(ef.transpose(window, lowpass, pitch)); |
|
ab04d7852a5d96edaa7fbbaf4e63a140cccdfaf1ac4776c625aef6c5e388bb31 | matthiasmeissen/sound-generator | engine_06_220402.dsp | import("stdfaust.lib");
envelope = gate : vgroup("Envelope", en.adsr(attack, decay, sustain, release)) * gain
with {
attack = hslider("[1]attack", 50, 0.01, 1000, 1) * 0.001;
decay = hslider("[2]decay", 50, 0.01, 1000, 1) * 0.001;
sustain = hslider("[3]sustain", 0.8, 0, 1, 0.01);
release = hslider("[4]release", 50, 0.01, 1000, 1) * 0.001;
gate = button("gate");
gain = hslider("[5]gain", 0.2, 0, 1, 0.01);
};
lfo = (os.oscsin(freq) * 0.5 + 0.5) * amplitude * 400
with {
freq = hslider("speed", 1, 0.1, 20, 0.01);
amplitude = hslider("amplitude", 0.2, 0, 1, 0.001);
};
freq = hslider("[6]freq",60,0,127,1) : ba.midikey2hz + lfo;
osc = os.oscsin(freq), os.square(freq), os.sawtooth(freq), os.triangle(freq) : ba.selectn(4, num)
with {
num = nentry("Oscillator", 0, 0, 3, 1);
};
process = osc * envelope <: _,_;
| https://raw.githubusercontent.com/matthiasmeissen/sound-generator/b509b8b8a4cff906af04025871b190d1d0065757/engines/engine_06_220402.dsp | faust | import("stdfaust.lib");
envelope = gate : vgroup("Envelope", en.adsr(attack, decay, sustain, release)) * gain
with {
attack = hslider("[1]attack", 50, 0.01, 1000, 1) * 0.001;
decay = hslider("[2]decay", 50, 0.01, 1000, 1) * 0.001;
sustain = hslider("[3]sustain", 0.8, 0, 1, 0.01);
release = hslider("[4]release", 50, 0.01, 1000, 1) * 0.001;
gate = button("gate");
gain = hslider("[5]gain", 0.2, 0, 1, 0.01);
};
lfo = (os.oscsin(freq) * 0.5 + 0.5) * amplitude * 400
with {
freq = hslider("speed", 1, 0.1, 20, 0.01);
amplitude = hslider("amplitude", 0.2, 0, 1, 0.001);
};
freq = hslider("[6]freq",60,0,127,1) : ba.midikey2hz + lfo;
osc = os.oscsin(freq), os.square(freq), os.sawtooth(freq), os.triangle(freq) : ba.selectn(4, num)
with {
num = nentry("Oscillator", 0, 0, 3, 1);
};
process = osc * envelope <: _,_;
|
|
8003d816c20007d375f9e5fb088e7ded30a73d41a6abd6f7f53b32c221a534d5 | matthiasmeissen/sound-generator | engine_05_220325.dsp | import("stdfaust.lib");
envelope = en.adsr(attack, decay, sustain, release, gate) * gain
with {
attack = hslider("[1]attack", 50, 0.01, 1000, 1) * 0.001;
decay = hslider("[2]decay", 50, 0.01, 1000, 1) * 0.001;
sustain = hslider("[3]sustain", 0.8, 0, 1, 0.01);
release = hslider("[4]release", 50, 0.01, 1000, 1) * 0.001;
gate = button("gate");
gain = hslider("[5]gain", 0.2, 0, 1, 0.01);
};
lfo = (os.oscsin(freq) * 0.5 + 0.5) * amplitude * 400
with {
freq = hslider("speed", 1, 0.1, 20, 0.01);
amplitude = hslider("amplitude", 0.2, 0, 1, 0.001);
};
freq = hslider("[6]freq",60,0,127,1) : ba.midikey2hz + lfo;
osc = os.oscsin(freq), os.square(freq), os.sawtooth(freq), os.triangle(freq) : ba.selectn(4, num)
with {
num = nentry("Oscillator", 0, 0, 3, 1);
};
process = osc * envelope <: _,_;
| https://raw.githubusercontent.com/matthiasmeissen/sound-generator/8543751914dcf30c9e4664445c37a65ea7938ad5/engines/engine_05_220325.dsp | faust | import("stdfaust.lib");
envelope = en.adsr(attack, decay, sustain, release, gate) * gain
with {
attack = hslider("[1]attack", 50, 0.01, 1000, 1) * 0.001;
decay = hslider("[2]decay", 50, 0.01, 1000, 1) * 0.001;
sustain = hslider("[3]sustain", 0.8, 0, 1, 0.01);
release = hslider("[4]release", 50, 0.01, 1000, 1) * 0.001;
gate = button("gate");
gain = hslider("[5]gain", 0.2, 0, 1, 0.01);
};
lfo = (os.oscsin(freq) * 0.5 + 0.5) * amplitude * 400
with {
freq = hslider("speed", 1, 0.1, 20, 0.01);
amplitude = hslider("amplitude", 0.2, 0, 1, 0.001);
};
freq = hslider("[6]freq",60,0,127,1) : ba.midikey2hz + lfo;
osc = os.oscsin(freq), os.square(freq), os.sawtooth(freq), os.triangle(freq) : ba.selectn(4, num)
with {
num = nentry("Oscillator", 0, 0, 3, 1);
};
process = osc * envelope <: _,_;
|
|
75c6268eb0da9ee6019c258d89ac0a887d5ca2615d532d07ce0df37d83588465 | elaforge/karya | sine_ui.dsp | // This is just a test case using GUI controls instead of audio signals.
import("stdfaust.lib");
declare description "Sine wave using GUI UI.";
smooth = si.smooth(ba.tau2pole(0.05)); // 50 ms smoothing
dyn = hslider("dyn[unit: dB]", 0.75, 0, 1, 0.01);
gate = button("gate");
pitch = hslider("pitch[unit: nn]", 440, 1, 1000, 0.01);
process = ((dyn * gate) : smooth) * os.osc(ba.midikey2hz(pitch) : smooth);
| https://raw.githubusercontent.com/elaforge/karya/471a2131f5a68b3b10b1a138e6f9ed1282980a18/Synth/Faust/dsp/sine_ui.dsp | faust | This is just a test case using GUI controls instead of audio signals.
50 ms smoothing |
import("stdfaust.lib");
declare description "Sine wave using GUI UI.";
dyn = hslider("dyn[unit: dB]", 0.75, 0, 1, 0.01);
gate = button("gate");
pitch = hslider("pitch[unit: nn]", 440, 1, 1000, 0.01);
process = ((dyn * gate) : smooth) * os.osc(ba.midikey2hz(pitch) : smooth);
|
116661d553751f9dda2ba126ef57be6abc57a4fe3bc9d9700d6208025e8d81fb | oshibka404/synt | effect.dsp | declare name "Effects Module of Perfect First Synth";
declare author "Andrey Ozornin";
declare copyright "Aesthetics Engineering";
declare version "0.01";
declare license "BSD";
import("stdfaust.lib");
po_sync = component("po_sync.dsp");
process = _ <: po_sync;
| https://raw.githubusercontent.com/oshibka404/synt/37f54d7d26752efb66baab79cbba2d4044a9e295/faust/effect.dsp | faust | declare name "Effects Module of Perfect First Synth";
declare author "Andrey Ozornin";
declare copyright "Aesthetics Engineering";
declare version "0.01";
declare license "BSD";
import("stdfaust.lib");
po_sync = component("po_sync.dsp");
process = _ <: po_sync;
|
|
87184142a61eb75d1b5ec226430a82bec61ccc0f18b35289a27f56d3ab24e2e8 | TobiasKozel/GuitarD | SimpleComressor.dsp | import("stdfaust.lib");
ratio = vslider( "Ratio", 1, 0.1, 10, 0.01);
thresh = vslider( "Threshold", 0, -120, 0, 0.1);
att = vslider( "Attack", 0.01, 0.001, 0.1, 0.001);
rel = vslider( "Release", 0.1, 0.01, 1, 0.001);
process = _,_ : co.compressor_stereo(ratio,thresh,att,rel) : _,_; | https://raw.githubusercontent.com/TobiasKozel/GuitarD/80d5b8e6fa2eab99bbee80e6dacb5f0f482bbb52/src/nodes/simple_compressor/SimpleComressor.dsp | faust | import("stdfaust.lib");
ratio = vslider( "Ratio", 1, 0.1, 10, 0.01);
thresh = vslider( "Threshold", 0, -120, 0, 0.1);
att = vslider( "Attack", 0.01, 0.001, 0.1, 0.001);
rel = vslider( "Release", 0.1, 0.01, 1, 0.001);
process = _,_ : co.compressor_stereo(ratio,thresh,att,rel) : _,_; |
|
f36749d334b64202f49de6410e602ddf367835ab37721a8466c031f29df8bf77 | theyoogle/Faust-DSP | 01 Simple Djembe.dsp | import("stdfaust.lib");
// Simple Djembe
process = button("gate") : pm.djembe(60,0.5,0.5,1); | https://raw.githubusercontent.com/theyoogle/Faust-DSP/373f0b309ad84906043b0b53e02129cd9ce45d59/session%2001/01%20Simple%20Djembe.dsp | faust | Simple Djembe | import("stdfaust.lib");
process = button("gate") : pm.djembe(60,0.5,0.5,1); |
3cd18748326a3f5fc8a884221de5d277177fa34515e01dcfb4970eecc5d2b43c | PierreKy-org/plugins_server_webaudiomodules | echo.dsp | // WARNING: This a "legacy example based on a deprecated library". Check misceffects.lib
// for more accurate examples of echo functions
declare name "echo";
declare version "1.0";
declare author "Grame";
declare license "BSD";
declare copyright "(c)GRAME 2006";
//-----------------------------------------------
// A Simple Echo
//-----------------------------------------------
import("stdfaust.lib");
process = vgroup("echo-simple", ef.echo1s);
| https://raw.githubusercontent.com/PierreKy-org/plugins_server_webaudiomodules/9b1b3b6d814bdb15a5f0cdd41695f8b987dbf600/pluginsWithoutFetch/echo/echo.dsp | faust | WARNING: This a "legacy example based on a deprecated library". Check misceffects.lib
for more accurate examples of echo functions
-----------------------------------------------
A Simple Echo
----------------------------------------------- |
declare name "echo";
declare version "1.0";
declare author "Grame";
declare license "BSD";
declare copyright "(c)GRAME 2006";
import("stdfaust.lib");
process = vgroup("echo-simple", ef.echo1s);
|
9f25be47d51ae4e31f6cb4d9c84cc4fb08ce57a6e3587f45dd03ddc3417616cd | JuanSaudio/Blog | envTest.dsp | import("stdfaust.lib");
process = an.amp_follower_ud(0.001, 0.1);
| https://raw.githubusercontent.com/JuanSaudio/Blog/62ed00a8beccea4d6e6b8b3e69d0f65069038ad3/Compression/Faust/envTest.dsp | faust | import("stdfaust.lib");
process = an.amp_follower_ud(0.001, 0.1);
|
|
543b1b440f2c47f640003aea1a739537969738d8706d03f9a51e6ca35a7029f1 | SuyashRamteke/FAUST---Real-time-Audio-Signal-Processing | Flanger.dsp | import ("stdfaust.lib");
fcomb = vgroup("Feedback Comb Filter", +~(de.fdelay4(maxDelay, delLength) : *(feedback)))
with {
maxDelay = 10;
freq = hslider("Frequency", 1, 0.1, 10, 0.01);
feedback = hslider("[1]Feedback", 0, 0, 1, 0.01);
delLength = (maxDelay - 1) * (os.osc(freq)*0.5 + 0.5);
};
process = no.noise : fcomb; | https://raw.githubusercontent.com/SuyashRamteke/FAUST---Real-time-Audio-Signal-Processing/ca24b8d650b6d77435d8128b0aa8e4d8b6022c30/Flanger.dsp | faust | import ("stdfaust.lib");
fcomb = vgroup("Feedback Comb Filter", +~(de.fdelay4(maxDelay, delLength) : *(feedback)))
with {
maxDelay = 10;
freq = hslider("Frequency", 1, 0.1, 10, 0.01);
feedback = hslider("[1]Feedback", 0, 0, 1, 0.01);
delLength = (maxDelay - 1) * (os.osc(freq)*0.5 + 0.5);
};
process = no.noise : fcomb; |
|
74a721c404e56819ae24b2cda5a1ff60ed1ac1025de63d58a9e17482c8b5d3fc | SuyashRamteke/FAUST---Real-time-Audio-Signal-Processing | polyphonic_synthesizer.dsp | import("stdfaust.lib");
freq = hslider("freq", 440, 100, 1000, 0.01);
gain = hslider("gain", 0.5, 0, 1, 0.01);
gate = button("gate") : en.adsr(0.01, 0.01, 0.9, 0.1);
timbre(f) = os.sawtooth(f)*0.5 + os.sawtooth(f*2)*0.25 + os.sawtooth(f*4)*0.125;
process = gain*gate*timbre(freq)*0.5 <: _,_;
effect = dm.zita_light;
| https://raw.githubusercontent.com/SuyashRamteke/FAUST---Real-time-Audio-Signal-Processing/ca24b8d650b6d77435d8128b0aa8e4d8b6022c30/polyphonic_synthesizer.dsp | faust | import("stdfaust.lib");
freq = hslider("freq", 440, 100, 1000, 0.01);
gain = hslider("gain", 0.5, 0, 1, 0.01);
gate = button("gate") : en.adsr(0.01, 0.01, 0.9, 0.1);
timbre(f) = os.sawtooth(f)*0.5 + os.sawtooth(f*2)*0.25 + os.sawtooth(f*4)*0.125;
process = gain*gate*timbre(freq)*0.5 <: _,_;
effect = dm.zita_light;
|
|
1209bc610e65c94126f0687f033f3ba7cea3dd6ccbb1e1ce5039c8694bd62b0f | Fr0stbyteR/faust2wam | organ1.dsp | import("stdfaust.lib");
timbre(f) = os.osc(f)*0.5 + os.osc(f*2)*0.25 + os.osc(f*3)*0.125;
effect = _*(hslider("Left", 0.1, 0, 1, 0.01)), _*(hslider("Right", 0.0, 0, 1, 0.01));
process = timbre(hslider("freq", 440, 20, 10000, 1))
* hslider("gain", 0.0, 0, 1, 0.01)
* (button("gate") : en.adsr(0.1,0.1,0.98,1.5)); | https://raw.githubusercontent.com/Fr0stbyteR/faust2wam/324029ac35a233cb62b9954917ca138984daddc4/test/organ1.dsp | faust | import("stdfaust.lib");
timbre(f) = os.osc(f)*0.5 + os.osc(f*2)*0.25 + os.osc(f*3)*0.125;
effect = _*(hslider("Left", 0.1, 0, 1, 0.01)), _*(hslider("Right", 0.0, 0, 1, 0.01));
process = timbre(hslider("freq", 440, 20, 10000, 1))
* hslider("gain", 0.0, 0, 1, 0.01)
* (button("gate") : en.adsr(0.1,0.1,0.98,1.5)); |
|
656e5ab0be36a1047d3de059bb6e5fa7a7dceee190c0de5e1f8f89cb685126c5 | oshibka404/synt | po_sync.dsp | import("stdfaust.lib");
syncOn = checkbox("po_sync_enabled");
metronome = hslider("metronome", 0, -1, 1, 1);
po_sync(i_left, i_right) = i_left * (1 - syncOn) + syncOn * metronome, i_right + (i_left) * syncOn;
process = po_sync;
| https://raw.githubusercontent.com/oshibka404/synt/37f54d7d26752efb66baab79cbba2d4044a9e295/faust/po_sync.dsp | faust | import("stdfaust.lib");
syncOn = checkbox("po_sync_enabled");
metronome = hslider("metronome", 0, -1, 1, 1);
po_sync(i_left, i_right) = i_left * (1 - syncOn) + syncOn * metronome, i_right + (i_left) * syncOn;
process = po_sync;
|
|
aea2edf31d1a5c59c06dd2c99dafebb2d13e383b7967ebe7fb49fe4fd897d167 | mwicat/faust-reverb-mcu | FaustProcessor.dsp | import("stdfaust.lib");
metaverb(maxdel,
sz, dffs, fb_gain, lfo_freq, lfo_amount, hi_level, hi_freq, lo_level, lo_freq) =
(route_in : +,+ : core) ~ fb with {
route_in = route(4, 4, (1, 3), (2, 2), (3, 1), (4, 4));
sz_scale(0) = 0.506392;
sz_scale(1) = 0.803821;
sz_scale(2) = 1;
sz_scale(3) = 1.49834;
filter_hs = fi.highshelf(1, hi_level, hi_freq);
filter_ls = fi.lowshelf(1, lo_level, lo_freq);
filter = filter_hs : filter_ls;
lfo_phase(i) = ma.PI/4 * i;
lfo(i) = lfo_amount * os.oscp(lfo_freq, lfo_phase(i));
dtime(ch, i) = sz_scale(i) * sz; // + lfo(ch*i);
allpass(ch, i) = fi.allpass_fcomb(maxdel, dtime(ch, i), dffs);
diffusor(ch) = filter : seq(i, 3, allpass(ch, i));
delay(ch) = de.fdelay(maxdel, dtime(ch, 3));
fb = par(i, 2, delay(i) * fb_gain);
core = par(i, 2, diffusor(i));
};
hi_level = 0;
hi_freq = 4000;
lo_level = 0;
lo_freq = 100;
//sz = hslider("Size", 476.8, 476.8, 2400, 0.01);
sz = 2000;
maxdel = 5000;
dffs = 0.54;
lfo_freq = 0.3;
lfo_amount = 0;
fb = 0.74;
reverb = metaverb(
maxdel, sz, dffs, fb,
lfo_freq, lfo_amount, hi_level, hi_freq, lo_level, lo_freq);
freq = vslider("Freq", 200, 200, 1000, 1);
process = freq : os.sawtooth <: reverb;
| https://raw.githubusercontent.com/mwicat/faust-reverb-mcu/55de7d33495c1aa308b30a9d8344c0fead4d302b/faust/FaustProcessor.dsp | faust | + lfo(ch*i);
sz = hslider("Size", 476.8, 476.8, 2400, 0.01); | import("stdfaust.lib");
metaverb(maxdel,
sz, dffs, fb_gain, lfo_freq, lfo_amount, hi_level, hi_freq, lo_level, lo_freq) =
(route_in : +,+ : core) ~ fb with {
route_in = route(4, 4, (1, 3), (2, 2), (3, 1), (4, 4));
sz_scale(0) = 0.506392;
sz_scale(1) = 0.803821;
sz_scale(2) = 1;
sz_scale(3) = 1.49834;
filter_hs = fi.highshelf(1, hi_level, hi_freq);
filter_ls = fi.lowshelf(1, lo_level, lo_freq);
filter = filter_hs : filter_ls;
lfo_phase(i) = ma.PI/4 * i;
lfo(i) = lfo_amount * os.oscp(lfo_freq, lfo_phase(i));
allpass(ch, i) = fi.allpass_fcomb(maxdel, dtime(ch, i), dffs);
diffusor(ch) = filter : seq(i, 3, allpass(ch, i));
delay(ch) = de.fdelay(maxdel, dtime(ch, 3));
fb = par(i, 2, delay(i) * fb_gain);
core = par(i, 2, diffusor(i));
};
hi_level = 0;
hi_freq = 4000;
lo_level = 0;
lo_freq = 100;
sz = 2000;
maxdel = 5000;
dffs = 0.54;
lfo_freq = 0.3;
lfo_amount = 0;
fb = 0.74;
reverb = metaverb(
maxdel, sz, dffs, fb,
lfo_freq, lfo_amount, hi_level, hi_freq, lo_level, lo_freq);
freq = vslider("Freq", 200, 200, 1000, 1);
process = freq : os.sawtooth <: reverb;
|
20960c9531e048df249dd47fca0c857c03c479d91ab331de23d1ee02c17060c7 | rasmusnuko/FaustCode | string.dsp | import("stdfaust.lib");
echo(millis, feedback) = A~B
with{
samples = (millis * 0.001) * ma.SR;
A = +;
B = feedback * de.delay(ma.SR, samples);
};
string(hz, damp) = A~B
with{
time = (ma.SR / hz) - 1.5; // -1 to account for feedback already being 1 sample delayed.
// -0.5 because of delay introduced by 3rd order lowpass filter in B.
A = +;
B = damp * de.fdelay4(ma.SR, time) : fi.lowpass(3, 12000); // fdelay4 = 4th order fractional delay
};
freq = hslider("freq", 220, 50, 880, 0.1);
damp = hslider("gain", 0.99, 0.95, 0.999, 0.001);
process = button("gate")
: ba.impulsify
: string(freq, damp)
<: _,_;
| https://raw.githubusercontent.com/rasmusnuko/FaustCode/f58d7a5d35d28a644e73903ab530fcdce314dfd6/string.dsp | faust | -1 to account for feedback already being 1 sample delayed.
-0.5 because of delay introduced by 3rd order lowpass filter in B.
fdelay4 = 4th order fractional delay | import("stdfaust.lib");
echo(millis, feedback) = A~B
with{
samples = (millis * 0.001) * ma.SR;
A = +;
B = feedback * de.delay(ma.SR, samples);
};
string(hz, damp) = A~B
with{
A = +;
};
freq = hslider("freq", 220, 50, 880, 0.1);
damp = hslider("gain", 0.99, 0.95, 0.999, 0.001);
process = button("gate")
: ba.impulsify
: string(freq, damp)
<: _,_;
|
d59b500685ecef11526b82e614a12d77fce802f26806ea63f98e76eea9e1f5d0 | TobiasKozel/GuitarD | SimpleGate.dsp | import("stdfaust.lib");
thresh = vslider( "Threshold", -120, -120, 0, 0.1);
hold = vslider( "Hold", 0.1, 0.01, 1, 0.001);
att = vslider( "Attack", 0.01, 0.001, 1, 0.001);
rel = vslider( "Release", 0.1, 0.01, 1, 0.001);
process = ef.gate_stereo(thresh, att, hold, rel); | https://raw.githubusercontent.com/TobiasKozel/GuitarD/80d5b8e6fa2eab99bbee80e6dacb5f0f482bbb52/src/nodes/simple_gate/SimpleGate.dsp | faust | import("stdfaust.lib");
thresh = vslider( "Threshold", -120, -120, 0, 0.1);
hold = vslider( "Hold", 0.1, 0.01, 1, 0.001);
att = vslider( "Attack", 0.01, 0.001, 1, 0.001);
rel = vslider( "Release", 0.1, 0.01, 1, 0.001);
process = ef.gate_stereo(thresh, att, hold, rel); |
|
418f017513b0884f68e40b6f7cbff8e3ad9ef09fc43e9d6935a044e603bcb187 | olilarkin/OL-OWLPatches | DualFreqShifter.dsp | declare name "Dual Frequency Shifter";
declare description "Dual Channel Frequency Shifter";
declare author "Oli Larkin ([email protected])";
declare copyright "Oliver Larkin";
declare version "0.1";
declare licence "GPL";
import("stdfaust.lib");
import("FrequencyShifter.lib");
shiftL = hslider("Shift L [unit:hz] [OWL:PARAMETER_A]", 0., -1., 1, 0.001);
shiftR = hslider("Shift R [unit:hz] [OWL:PARAMETER_B]", 0., -1., 1, 0.001);
shift_scalar = hslider("Shift Scalar [OWL:PARAMETER_C]", 1., 1., 100, 0.1);
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), ssb(shiftL*shift_scalar,l)*mix, ssb(shiftR*shift_scalar,r)*mix :> _,_;
| https://raw.githubusercontent.com/olilarkin/OL-OWLPatches/2dad8107814082c9de8ef1d117950fe3f49633b6/DualFreqShifter.dsp | faust | declare name "Dual Frequency Shifter";
declare description "Dual Channel Frequency Shifter";
declare author "Oli Larkin ([email protected])";
declare copyright "Oliver Larkin";
declare version "0.1";
declare licence "GPL";
import("stdfaust.lib");
import("FrequencyShifter.lib");
shiftL = hslider("Shift L [unit:hz] [OWL:PARAMETER_A]", 0., -1., 1, 0.001);
shiftR = hslider("Shift R [unit:hz] [OWL:PARAMETER_B]", 0., -1., 1, 0.001);
shift_scalar = hslider("Shift Scalar [OWL:PARAMETER_C]", 1., 1., 100, 0.1);
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), ssb(shiftL*shift_scalar,l)*mix, ssb(shiftR*shift_scalar,r)*mix :> _,_;
|
|
97ada3a0a3328c4e2b38054b8e6753249796841ad9dc887e9a4bb3d49b32fbc8 | jpcima/rc-effect-playground | chorus2.dsp | import("stdfaust.lib");
bypass = checkbox("[1] Bypass");
speed = checkbox("[2] Speed");
process(x) =
ba.if(bypass, x, (x + (x : line1))),
ba.if(bypass, x, (x + (x : line2)))
with {
lfoRate = ba.if(speed, lfoRateII, lfoRateI);
lfo1 = os.lf_trianglepos(lfoRate);
lfo2 = 1. - lfo1;
delayfilter = fi.lowpass(4, 10000.); // a simulation of BBD antialising LPF at input and output
line1 = delayfilter : de.fdelay(delaycapframes, lfo1 : delayAt : *(ma.SR)) : delayfilter;
line2 = delayfilter : de.fdelay(delaycapframes, lfo2 : delayAt : *(ma.SR)) : delayfilter;
delayAt = *(delaymax - delaymin) : +(delaymin);
lfoRateI = 0.513;
lfoRateII = 0.863;
delaycap = 10e-3; // delay capacity, must be >> delay time
delaycapframes = int(ceil(delaycap * ma.SR)); // the same in frames, rounded up
//// correct
delaymin = 1.66e-3;
delaymax = 5.35e-3;
};
| https://raw.githubusercontent.com/jpcima/rc-effect-playground/3375323d8616cbfc73c9701a3765f738d574c460/faust/chorus2.dsp | faust | a simulation of BBD antialising LPF at input and output
delay capacity, must be >> delay time
the same in frames, rounded up
// correct | import("stdfaust.lib");
bypass = checkbox("[1] Bypass");
speed = checkbox("[2] Speed");
process(x) =
ba.if(bypass, x, (x + (x : line1))),
ba.if(bypass, x, (x + (x : line2)))
with {
lfoRate = ba.if(speed, lfoRateII, lfoRateI);
lfo1 = os.lf_trianglepos(lfoRate);
lfo2 = 1. - lfo1;
line1 = delayfilter : de.fdelay(delaycapframes, lfo1 : delayAt : *(ma.SR)) : delayfilter;
line2 = delayfilter : de.fdelay(delaycapframes, lfo2 : delayAt : *(ma.SR)) : delayfilter;
delayAt = *(delaymax - delaymin) : +(delaymin);
lfoRateI = 0.513;
lfoRateII = 0.863;
delaymin = 1.66e-3;
delaymax = 5.35e-3;
};
|
cbb959ace6b49ee6430f65f8728ce58af90da281d369c8407bc92b330aa9ac5c | rmichon/midiHackathon | pmb_effect.dsp | import("stdfaust.lib");
feedback = hslider("feedback[acc: 1 0 0 0 10]",0,0,1,0.01);
delLeg = hslider("delLeg",0.1,0.01,1,0.01);
echo(d,f) = +~(de.delay(65536,l)*f)
with{
l = ma.SR*d;
};
process = echo(delLeg,feedback),echo(delLeg,feedback);
| https://raw.githubusercontent.com/rmichon/midiHackathon/9758b340666653dd7995b9ae9df304757105552a/faust/pmb_effect.dsp | faust | import("stdfaust.lib");
feedback = hslider("feedback[acc: 1 0 0 0 10]",0,0,1,0.01);
delLeg = hslider("delLeg",0.1,0.01,1,0.01);
echo(d,f) = +~(de.delay(65536,l)*f)
with{
l = ma.SR*d;
};
process = echo(delLeg,feedback),echo(delLeg,feedback);
|