_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
ef45e3484208b83ca8f2e21e9c67e21d4ea73ec876d397c650ca2280555e8160
grammaton/metm
0703-senovariopi.dsp
import("stdfaust.lib"); sweep = +(0.125)~_; process = sin(sweep*ma.PI);
https://raw.githubusercontent.com/grammaton/metm/e3ca76fc8b8bbb10a0eb77a7056a6056a5c7feda/CAPITOLI/0700/CODES/0703-senovariopi.dsp
faust
import("stdfaust.lib"); sweep = +(0.125)~_; process = sin(sweep*ma.PI);
ee9cf93c334165c1720f6da92c0f6327d913861d9107613da47c0fe244b7b48b
angelamurtas/Programmazione-
lezione02.dsp
import("stdfaust.lib"); //gli operatori matematici + - / * //il carattere : indica una connesione seriale //il carattere virgola , indica una connesione parallela //process = _//canale uno // +//somma // _;//canale due //Faust fa operazioni sui segnali audio e crea programmi di elaborazione per il suono process=_+_,_-_,_*_,_/_;
https://raw.githubusercontent.com/angelamurtas/Programmazione-/bf8cf329460acf7334c7c4c11953ddcdf6d7e612/lezione02.dsp
faust
gli operatori matematici + - / * il carattere : indica una connesione seriale il carattere virgola , indica una connesione parallela process = _//canale uno +//somma _;//canale due Faust fa operazioni sui segnali audio e crea programmi di elaborazione per il suono
import("stdfaust.lib"); process=_+_,_-_,_*_,_/_;
1bac3365eafea1b726cf5030baef1770c5e386e03ca7c5969980f3344c0dd601
trummerschlunk/EQ_tilt
EQ_tilt_16ch.dsp
/* simple tilt EQ based on lowshelf and highshelf*/ /* */ /* * Copyright (C) 2021 Klaus Scheuermann, [email protected] * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; version 2 of the License. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ declare name "EQ_tilt"; declare author "Klaus Scheuermann"; declare version "0.1"; declare copyright "(C) 2022 Klaus Scheuermann"; import("stdfaust.lib"); Nch = 16; N=1; gain = hslider("[1]gain [unit:db]",0,-6,6,0.5); freq = hslider("[2]freq [unit:Hz] [scale:log]", 630, 200, 2000,1); noise = par(i, Nch, no.no.noise *0.5); process = par(i,Nch,_) : par(i, Nch, fi.lowshelf(N, -gain, freq) : fi.highshelf(N, gain, freq));
https://raw.githubusercontent.com/trummerschlunk/EQ_tilt/b840dd1af025bb8d7421b7ffe3be9af1a94aeaec/EQ_tilt_16ch.dsp
faust
simple tilt EQ based on lowshelf and highshelf * Copyright (C) 2021 Klaus Scheuermann, [email protected] * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; version 2 of the License. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details.
declare name "EQ_tilt"; declare author "Klaus Scheuermann"; declare version "0.1"; declare copyright "(C) 2022 Klaus Scheuermann"; import("stdfaust.lib"); Nch = 16; N=1; gain = hslider("[1]gain [unit:db]",0,-6,6,0.5); freq = hslider("[2]freq [unit:Hz] [scale:log]", 630, 200, 2000,1); noise = par(i, Nch, no.no.noise *0.5); process = par(i,Nch,_) : par(i, Nch, fi.lowshelf(N, -gain, freq) : fi.highshelf(N, gain, freq));
5c22051caa9ac1192978979bd7778312d122308cb906a1ce6798148c9b5456d8
trummerschlunk/EQ_tilt
EQ_tilt_stereo.dsp
/* simple tilt EQ based on lowshelf and highshelf*/ /* */ /* * Copyright (C) 2021 Klaus Scheuermann, [email protected] * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; version 2 of the License. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ declare name "EQ_tilt"; declare author "Klaus Scheuermann"; declare version "0.1"; declare copyright "(C) 2022 Klaus Scheuermann"; import("stdfaust.lib"); Nch = 2; N=1; gain = hslider("[1]gain [unit:db]",0,-6,6,0.5); freq = hslider("[2]freq [unit:Hz] [scale:log]", 630, 200, 2000,1); noise = par(i, Nch, no.no.noise *0.5); process = par(i,Nch,_) : par(i, Nch, fi.lowshelf(N, -gain, freq) : fi.highshelf(N, gain, freq));
https://raw.githubusercontent.com/trummerschlunk/EQ_tilt/b840dd1af025bb8d7421b7ffe3be9af1a94aeaec/EQ_tilt_stereo.dsp
faust
simple tilt EQ based on lowshelf and highshelf * Copyright (C) 2021 Klaus Scheuermann, [email protected] * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; version 2 of the License. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details.
declare name "EQ_tilt"; declare author "Klaus Scheuermann"; declare version "0.1"; declare copyright "(C) 2022 Klaus Scheuermann"; import("stdfaust.lib"); Nch = 2; N=1; gain = hslider("[1]gain [unit:db]",0,-6,6,0.5); freq = hslider("[2]freq [unit:Hz] [scale:log]", 630, 200, 2000,1); noise = par(i, Nch, no.no.noise *0.5); process = par(i,Nch,_) : par(i, Nch, fi.lowshelf(N, -gain, freq) : fi.highshelf(N, gain, freq));
99ab9cd2237e4c09292e6ed53e3909f9d5259463e2ed88d45aaeca113b14191c
danidev/microcosmos
MicrocosmosDsp.dsp
import("stdfaust.lib"); trigger = button("gate"); duty = hslider("duty", 0.5, 0, 1, 0.1); attack = hslider("attack", 0.1, 0, 1, 0.1); release = hslider("release", 0.1, 0, 1, 0.1); note = hslider("note", 69, 0, 127, 1); osc = os.pulsetrain(ba.midikey2hz(note), duty); env = en.ar(attack, release, trigger); process = osc * env <: _,_;
https://raw.githubusercontent.com/danidev/microcosmos/27b8c35df97aba336b546cca7c6dd4ec802eed30/dsp/midi/dsp/MicrocosmosDsp.dsp
faust
import("stdfaust.lib"); trigger = button("gate"); duty = hslider("duty", 0.5, 0, 1, 0.1); attack = hslider("attack", 0.1, 0, 1, 0.1); release = hslider("release", 0.1, 0, 1, 0.1); note = hslider("note", 69, 0, 127, 1); osc = os.pulsetrain(ba.midikey2hz(note), duty); env = en.ar(attack, release, trigger); process = osc * env <: _,_;
fc7d75751e0194f1c17ced583cc02de92f7dc6181219f7de2a91a309d5daf40d
rasmusnuko/FaustCode
sawtooth.dsp
import("stdfaust.lib"); // No anti-alliasing saw(freq) = (A~B) * 2 - 1 with{ delta = freq / ma.SR; A = _; // Feedforward. B = (_ + delta) : ma.frac; // Feedback. Only get decimal part of count }; process = saw(1450);
https://raw.githubusercontent.com/rasmusnuko/FaustCode/f58d7a5d35d28a644e73903ab530fcdce314dfd6/sawtooth.dsp
faust
No anti-alliasing Feedforward. Feedback. Only get decimal part of count
import("stdfaust.lib"); saw(freq) = (A~B) * 2 - 1 with{ delta = freq / ma.SR; }; process = saw(1450);
90c836bd352ef90384dca835cd6b8796d74ebe6c423fe9c2364f75d85aff40f0
rasmusnuko/FaustCode
phasor.dsp
import("stdfaust.lib"); // No anti-alliasing phasor(freq) = (A~B) with{ delta = freq / ma.SR; A = _; // Feedforward. B = (_ + delta) : ma.frac; // Feedback. Only get decimal part of count }; process = phasor(1450);
https://raw.githubusercontent.com/rasmusnuko/FaustCode/f58d7a5d35d28a644e73903ab530fcdce314dfd6/phasor.dsp
faust
No anti-alliasing Feedforward. Feedback. Only get decimal part of count
import("stdfaust.lib"); phasor(freq) = (A~B) with{ delta = freq / ma.SR; }; process = phasor(1450);
6eafac5b0afcb0548274245778266c0f3e8174bb1378703eaf45272a8d69e332
Sinuslabs/Reach
FaustReverb.dsp
// Faust Source File: reverbtest // Created with HISE on 2022-10-12 import("stdfaust.lib"); t60 = hslider("ReverbTime", 4.2, 0.1, 12, 0.1); damp = hslider("Damping", 0.5, 0.0, 1.0, 0.01); size = hslider("Size", 3.5, 0.5, 5.0, 0.01); early_diff = hslider("Diffusion", 0.707, 0.0, 1.0, 0.01); mod_depth = hslider("Mod Depth", 0.1, 0.0, 1.0, 0.01); mod_freq = hslider("Mod Frequency", 0.1, 0.0, 10.0, 0.01); low = hslider("LF Gain", 1.0, 0.0, 1.0, 0.01); mid = hslider("MID Gain", 1.0, 0.0, 1.0, 0.01); high = hslider("HF Gain", 1.0, 0.0, 1.0, 0.01); lowcut = hslider("Low Crossover", 600, 100, 6000, 1); highcut = hslider("High Crossover", 5000, 1000, 10000, 1); process = re.jpverb(t60, damp, size, early_diff, mod_depth, mod_freq, low, mid, high, lowcut, highcut);
https://raw.githubusercontent.com/Sinuslabs/Reach/1e716dfc0640d73b9385970049c1dc6a6498ece5/DspNetworks/CodeLibrary/faust/FaustReverb.dsp
faust
Faust Source File: reverbtest Created with HISE on 2022-10-12
import("stdfaust.lib"); t60 = hslider("ReverbTime", 4.2, 0.1, 12, 0.1); damp = hslider("Damping", 0.5, 0.0, 1.0, 0.01); size = hslider("Size", 3.5, 0.5, 5.0, 0.01); early_diff = hslider("Diffusion", 0.707, 0.0, 1.0, 0.01); mod_depth = hslider("Mod Depth", 0.1, 0.0, 1.0, 0.01); mod_freq = hslider("Mod Frequency", 0.1, 0.0, 10.0, 0.01); low = hslider("LF Gain", 1.0, 0.0, 1.0, 0.01); mid = hslider("MID Gain", 1.0, 0.0, 1.0, 0.01); high = hslider("HF Gain", 1.0, 0.0, 1.0, 0.01); lowcut = hslider("Low Crossover", 600, 100, 6000, 1); highcut = hslider("High Crossover", 5000, 1000, 10000, 1); process = re.jpverb(t60, damp, size, early_diff, mod_depth, mod_freq, low, mid, high, lowcut, highcut);
fac86b4f5e8f94b81b8e27527d16e30acaabe62b23cf580a5d190320464091a7
scottericpetersen/OMI-Faust-Workshop
lfnoise.dsp
import("stdfaust.lib"); import("music.lib"); rate = SR/100.0; // new random value every 100 samples (SR from music.lib); process = no.lfnoise0(rate), // sampled/held noise (piecewise constant) no.lfnoiseN(3,rate), // lfnoise0 smoothed by 3rd order Butterworth LPF no.lfnoise(rate); // lfnoise0 smoothed with no overshoot
https://raw.githubusercontent.com/scottericpetersen/OMI-Faust-Workshop/28d952b574cd8f08c82416b6fdbfbc8fa9f9de74/examples/omi/lfnoise.dsp
faust
new random value every 100 samples (SR from music.lib); sampled/held noise (piecewise constant) lfnoise0 smoothed by 3rd order Butterworth LPF lfnoise0 smoothed with no overshoot
import("stdfaust.lib"); import("music.lib");
d481835bf96ed31060622dd03492cf496b3011661bbf02b7e129b89fa983d18a
jpcima/Hera
HeraCommon.dsp
// SPDX-License-Identifier: ISC declare author "Jean Pierre Cimalando"; declare license "ISC"; import("stdfaust.lib"); tsmooth(tau) = si.smooth(ba.tau2pole(tau)); fsmooth(tau) = si.smooth(pole) with { pole = ba.if(off, 0.0, ba.tau2pole(tau)); off = button("[1000] smooth disabled"); };
https://raw.githubusercontent.com/jpcima/Hera/eec43c0b5cb5aaa71c647b2e5597fc1ba383dd13/Source/HeraCommon.dsp
faust
SPDX-License-Identifier: ISC
declare author "Jean Pierre Cimalando"; declare license "ISC"; import("stdfaust.lib"); tsmooth(tau) = si.smooth(ba.tau2pole(tau)); fsmooth(tau) = si.smooth(pole) with { pole = ba.if(off, 0.0, ba.tau2pole(tau)); off = button("[1000] smooth disabled"); };
d3dc5e72913b167b9636e3b84f45f2b3e447b96def763953e740bfe64c0db718
hrtlacek/audioDevEnv
testSynth.dsp
import("stdfaust.lib"); f = hslider("freq",100,10,1200,0.1); o = os.osc(f); process = o;
https://raw.githubusercontent.com/hrtlacek/audioDevEnv/7deed9e263cc2a3972eabb9a421396bb60c7ddaa/notebooks/testSynth.dsp
faust
import("stdfaust.lib"); f = hslider("freq",100,10,1200,0.1); o = os.osc(f); process = o;
f3a9280461f7fc6021cc32dfd0fdfbea4b3287594d0aa0dd9652b262dd16ac44
jpcima/string-machine
PwmOscillator.dsp
import("stdfaust.lib"); process(f) = os.pulsetrain(f, d) with { md = hslider("Mod depth [unit:%] [symbol:mod_depth]", 75.0, 0.0, 100.0, 1.0) : *(0.01); mf = hslider("Mod frequency [unit:Hz] [scale:log] [symbol:mod_frequency]", 0.25, 0.1, 5.0, 0.01); // d = lfo * md + 0.5 * (1.0 - md); d = d2 - lfo * md * (d2 - d1) with { d1 = 0.1; d2 = 0.5; }; lfo = os.lf_trianglepos(mf); };
https://raw.githubusercontent.com/jpcima/string-machine/188082dd0beb9a3c341035604841c53675fe66c4/sources/dsp/PwmOscillator.dsp
faust
d = lfo * md + 0.5 * (1.0 - md);
import("stdfaust.lib"); process(f) = os.pulsetrain(f, d) with { md = hslider("Mod depth [unit:%] [symbol:mod_depth]", 75.0, 0.0, 100.0, 1.0) : *(0.01); mf = hslider("Mod frequency [unit:Hz] [scale:log] [symbol:mod_frequency]", 0.25, 0.1, 5.0, 0.01); d = d2 - lfo * md * (d2 - d1) with { d1 = 0.1; d2 = 0.5; }; lfo = os.lf_trianglepos(mf); };
0d1e734657d05c00a1143183ff7e27e000706e0b9c488672f3f234027c8fd525
polyeffects/PolyLV2
harm_trem_ext.dsp
import("stdfaust.lib"); // fastpow2 = ffunction(float fastpow2(float), "fast_pow2.h", ""); cross = vslider("[1] CrossoverFreq [midi:ctrl 64] [style:knob]", 800.0, 20.00, 10000, 1) : si.smooth(0.999); depth = hslider("[2] depth",0,0,1,0.01) : si.smooth(0.999); multiply_a(lfo) = 1 - depth*(lfo*0.5 + 0.5); multiply_b(lfo) = 1 - depth*((1-lfo)*0.5 + 0.5); tremolo(a,b,lfo) = a*multiply_a(lfo), b*multiply_b(lfo) :> _; process = fi.filterbank(3,(cross)),_ : tremolo;
https://raw.githubusercontent.com/polyeffects/PolyLV2/a363599f74fd1bce0b3744221e1883fdbe89c557/poly_harm_trem_ext/harm_trem_ext.dsp
faust
fastpow2 = ffunction(float fastpow2(float), "fast_pow2.h", "");
import("stdfaust.lib"); cross = vslider("[1] CrossoverFreq [midi:ctrl 64] [style:knob]", 800.0, 20.00, 10000, 1) : si.smooth(0.999); depth = hslider("[2] depth",0,0,1,0.01) : si.smooth(0.999); multiply_a(lfo) = 1 - depth*(lfo*0.5 + 0.5); multiply_b(lfo) = 1 - depth*((1-lfo)*0.5 + 0.5); tremolo(a,b,lfo) = a*multiply_a(lfo), b*multiply_b(lfo) :> _; process = fi.filterbank(3,(cross)),_ : tremolo;
08e71cd44ba71b627178920efac8f8c6891a0f09c345c0c2d83228501790fcd8
spluta/SPSynthTools
MathsT.dsp
declare name "MathsT"; declare version "1.1"; declare author "Sam Pluta"; declare license "BSD"; declare copyright "(c)Sam Pluta 2020"; import("stdfaust.lib"); import("MathsLib.lib"); process (riseDur, fallDur, logExp, trigger) = MathsT(riseDur, fallDur, logExp, trigger);
https://raw.githubusercontent.com/spluta/SPSynthTools/5959c72419ff1f8f58e9ec686b561ad420538bc2/Maths/FaustSource/MathsT.dsp
faust
declare name "MathsT"; declare version "1.1"; declare author "Sam Pluta"; declare license "BSD"; declare copyright "(c)Sam Pluta 2020"; import("stdfaust.lib"); import("MathsLib.lib"); process (riseDur, fallDur, logExp, trigger) = MathsT(riseDur, fallDur, logExp, trigger);
9daecc1fd2a83e9862ab95311de99be5a6d67588cb9d7b8b1fe3256cffb59e11
adhooge/AutoFX
distorsion.dsp
import("stdfaust.lib"); disto = gain,((_,drive):*:aa.tanh1):*; // Parameters drive = vslider("Drive[style:knob]", 1, 1, 10, 0.1); gain = vslider("Gain[style:knob]", 1, 1, 5, 0.1); process = disto, disto ;
https://raw.githubusercontent.com/adhooge/AutoFX/8f8666569a405cb1fbbe9606f264820b2615af54/faust/distorsion.dsp
faust
Parameters
import("stdfaust.lib"); disto = gain,((_,drive):*:aa.tanh1):*; drive = vslider("Drive[style:knob]", 1, 1, 10, 0.1); gain = vslider("Gain[style:knob]", 1, 1, 5, 0.1); process = disto, disto ;
f37a4e345f2a96dcfec8cbb3bb2af8c1c2043483b437ff1ad00ce8a42571acab
funkyfourier/spitback
faustchorus.dsp
import("stdfaust.lib"); frequency = hslider("Frequency", 1, 0, 10, 0.1); depth = maxDelay * hslider("Depth", 0.5, 0, 1, 0.01) : si.smoo; origSR = 44100; maxDelay = 512 * ma.SR / origSR : int; voices = 4; voice(i) = de.fdelay(4096, depth + depth * os.oscrs(frequency/(i+1))); process = _,_ <: par(i, voices, voice(i));
https://raw.githubusercontent.com/funkyfourier/spitback/c3b1831e2bd1ac9272652309d4fb3d2847f0a67b/externals/src/faustchorus/faustchorus.dsp
faust
import("stdfaust.lib"); frequency = hslider("Frequency", 1, 0, 10, 0.1); depth = maxDelay * hslider("Depth", 0.5, 0, 1, 0.01) : si.smoo; origSR = 44100; maxDelay = 512 * ma.SR / origSR : int; voices = 4; voice(i) = de.fdelay(4096, depth + depth * os.oscrs(frequency/(i+1))); process = _,_ <: par(i, voices, voice(i));
e5c8f2256cd11bc89f7f635ab8657ecc70492e07d59736c80dfe2cc665c8d9ac
Amerigo25/Faust
fm_synth.dsp
import("stdfaust.lib"); CarrierFreq = hslider ("CarrierFreq [midi:ctrl 2]",55,20,1000,1):si.smoo; rate = hslider ("ModRate [midi:ctrl 3]",1,0,30,0.1):si.smoo; attack = hslider("Attack [midi:ctrl 4]",0.05,0,4,0.005):si.smoo; t = button ("Play [midi:ctrl 102]"):si.smoo; process = en.ar(attack,1.3,t)*os.osc(CarrierFreq+900*en.ar(attack,1.3,t)*os.osc(CarrierFreq*rate));
https://raw.githubusercontent.com/Amerigo25/Faust/3603cd16b9b44457075d33e804e0a880d8fcb0ac/fm_synth.dsp
faust
import("stdfaust.lib"); CarrierFreq = hslider ("CarrierFreq [midi:ctrl 2]",55,20,1000,1):si.smoo; rate = hslider ("ModRate [midi:ctrl 3]",1,0,30,0.1):si.smoo; attack = hslider("Attack [midi:ctrl 4]",0.05,0,4,0.005):si.smoo; t = button ("Play [midi:ctrl 102]"):si.smoo; process = en.ar(attack,1.3,t)*os.osc(CarrierFreq+900*en.ar(attack,1.3,t)*os.osc(CarrierFreq*rate));
033e41de9f88bd1be24236425d920254f8955344b65d9cf104ac9570c66a15c0
jatinchowdhury18/CrossroadsEffects
param_est.dsp
import("stdfaust.lib"); fb2_d1ed99cf = +~(_ <: (_*0.1767554363694456, _*-0.011662407054127442) : (_, @(1)) :> _); process = _,_ : fb2_d1ed99cf,fb2_d1ed99cf : _,_;
https://raw.githubusercontent.com/jatinchowdhury18/CrossroadsEffects/9a4ece57ce439103369f6c36bc1d74bec9043d64/faust_scripts/param_est.dsp
faust
import("stdfaust.lib"); fb2_d1ed99cf = +~(_ <: (_*0.1767554363694456, _*-0.011662407054127442) : (_, @(1)) :> _); process = _,_ : fb2_d1ed99cf,fb2_d1ed99cf : _,_;
8c9234cd9c58e46122ca0ec0a72e45dc8bcf24e87fbd267f337be6efc1b67643
jatinchowdhury18/CrossroadsEffects
Two-pole-test.dsp
import("stdfaust.lib"); fb2_e80212f7 = +~(_ <: (_*0.2161209223472559, _*-0.04000000000000001) : (_, @(1)) :> _); process = _,_ : fb2_e80212f7,fb2_e80212f7 : _,_;
https://raw.githubusercontent.com/jatinchowdhury18/CrossroadsEffects/9a4ece57ce439103369f6c36bc1d74bec9043d64/faust_scripts/Two-pole-test.dsp
faust
import("stdfaust.lib"); fb2_e80212f7 = +~(_ <: (_*0.2161209223472559, _*-0.04000000000000001) : (_, @(1)) :> _); process = _,_ : fb2_e80212f7,fb2_e80212f7 : _,_;
a1210b811d56eb7e3d0a423b56370d1aeb47c6b74ea89cca0851e7b9094790a1
grammaton/metm
apf.dsp
import("stdfaust.lib"); // all-pass filter apf(t,g) = _ <: *(ma.neg(min(0.999,g))) + (dflc(t,g)*(1-(g*g))); process = apf(1,0.5);
https://raw.githubusercontent.com/grammaton/metm/e3ca76fc8b8bbb10a0eb77a7056a6056a5c7feda/CAPITOLI/0500/CODES/REV/apf.dsp
faust
all-pass filter
import("stdfaust.lib"); apf(t,g) = _ <: *(ma.neg(min(0.999,g))) + (dflc(t,g)*(1-(g*g))); process = apf(1,0.5);
bae8aa5c14a899801ecc1ab2819c124a107004d6e9d34f541722eedaf0709e04
spluta/SPSynthTools
MathsC.dsp
declare name "MathsC"; declare version "1.1"; declare author "Sam Pluta"; declare license "BSD"; declare copyright "(c)Sam Pluta 2020"; import("stdfaust.lib"); import("MathsLib.lib"); process (riseDur, fallDur, logExp, onOff) = MathsC(riseDur, fallDur, logExp, onOff);
https://raw.githubusercontent.com/spluta/SPSynthTools/5959c72419ff1f8f58e9ec686b561ad420538bc2/Maths/FaustSource/MathsC.dsp
faust
declare name "MathsC"; declare version "1.1"; declare author "Sam Pluta"; declare license "BSD"; declare copyright "(c)Sam Pluta 2020"; import("stdfaust.lib"); import("MathsLib.lib"); process (riseDur, fallDur, logExp, onOff) = MathsC(riseDur, fallDur, logExp, onOff);
4ed8f9a2c5f83e1e30c640a0aefabbee30e8ea20671909469f02e2f764a08c8f
Tonton-Blax/supasynth
feumeu.dsp
import("stdfaust.lib"); ///////////////////////////////////////////////////////// // UI ELEMENTS ///////////////////////////////////////////////////////// osc_group(x) = vgroup("[1] FM OSC [tooltip: See Faust's oscillator.lib for documentation and references]",x); trigger = osc_group(checkbox("Trigger")); f_1 = osc_group(hslider("OP 1 Frequency",100,0.01,1000,0.1)); f_2 = osc_group(hslider("OP 2 Frequency",100,0.01,1000,0.1)); ind_1 = osc_group(hslider("Modulation Index",0,0,1000,0.1)); ///////////////////////////////////////////////////////// // FM Function ///////////////////////////////////////////////////////// am(f1, f2, t1) = gain * os.osc(f1 + (os.osc(f2) * ind_1)* index1) with { gain = en.arfe(0.01, 0,t1); index1 = en.arfe(0.01, 0,t1); }; ///////////////////////////////////////////////////////// // processing ///////////////////////////////////////////////////////// volfm = osc_group(hslider("volume [unit:dB]", -96, -96, 0, 0.1) : ba.db2linear : si.smoo); feumeu = am(f_1,f_2, trigger) * volfm <: _,_;
https://raw.githubusercontent.com/Tonton-Blax/supasynth/1f1053a0fd38a07894ea8b1121f4cfe8618fe688/faust/feumeu.dsp
faust
/////////////////////////////////////////////////////// UI ELEMENTS /////////////////////////////////////////////////////// /////////////////////////////////////////////////////// FM Function /////////////////////////////////////////////////////// /////////////////////////////////////////////////////// processing ///////////////////////////////////////////////////////
import("stdfaust.lib"); osc_group(x) = vgroup("[1] FM OSC [tooltip: See Faust's oscillator.lib for documentation and references]",x); trigger = osc_group(checkbox("Trigger")); f_1 = osc_group(hslider("OP 1 Frequency",100,0.01,1000,0.1)); f_2 = osc_group(hslider("OP 2 Frequency",100,0.01,1000,0.1)); ind_1 = osc_group(hslider("Modulation Index",0,0,1000,0.1)); am(f1, f2, t1) = gain * os.osc(f1 + (os.osc(f2) * ind_1)* index1) with { gain = en.arfe(0.01, 0,t1); index1 = en.arfe(0.01, 0,t1); }; volfm = osc_group(hslider("volume [unit:dB]", -96, -96, 0, 0.1) : ba.db2linear : si.smoo); feumeu = am(f_1,f_2, trigger) * volfm <: _,_;
cbb8c3a71ee28ae53342eb190cfcf98fb1847689233cd5f12cf27c33f45acd2b
grammaton/metm
dfl.dsp
import("stdfaust.lib"); // delay feedback in loop dfl(t,g) = (+ : de.delay(ma.SR/2,int(t)))~*(min(0.999,g)); process = dfl(1,0.5);
https://raw.githubusercontent.com/grammaton/metm/e3ca76fc8b8bbb10a0eb77a7056a6056a5c7feda/CAPITOLI/0500/CODES/REV/dfl.dsp
faust
delay feedback in loop
import("stdfaust.lib"); dfl(t,g) = (+ : de.delay(ma.SR/2,int(t)))~*(min(0.999,g)); process = dfl(1,0.5);
1e918f15ec429059bbd7794048d2ef14e288d41f4e92b3d8ea4efd15d0997ac6
hatchjaw/jacktrip-teensy
SyncTester.dsp
import("stdfaust.lib"); // Expect an incoming 16-bit unipolar sawtooth wave x, where // max = 1<<15 /// signed int16 max // x[n] = (x[n-1] + 1) % max // f0 = [sampling rate] / max // Calculate the offset between the incoming signal and the generated signal. // To do so, generate a unipolar sawtooth wave y and subtract it from x. // The offset, d, is // / x - y , y < x // d = | // \ (x + 1) - y, otherwise process = _ <: _,-(saw),+(1-saw) : select2(saw >= _) with { INT16MAX = 1<<15; saw = os.lf_sawpos_reset(ma.SR / INT16MAX, button("reset")); };
https://raw.githubusercontent.com/hatchjaw/jacktrip-teensy/2bab6c8ba9cd91ed2133ba6951dc6f3dcfa1dd26/examples/sync-tester/SyncTester.dsp
faust
Expect an incoming 16-bit unipolar sawtooth wave x, where max = 1<<15 /// signed int16 max x[n] = (x[n-1] + 1) % max f0 = [sampling rate] / max Calculate the offset between the incoming signal and the generated signal. To do so, generate a unipolar sawtooth wave y and subtract it from x. The offset, d, is / x - y , y < x d = | \ (x + 1) - y, otherwise
import("stdfaust.lib"); process = _ <: _,-(saw),+(1-saw) : select2(saw >= _) with { INT16MAX = 1<<15; saw = os.lf_sawpos_reset(ma.SR / INT16MAX, button("reset")); };
7ea1893a5f019cc00094148e67f8834b8e4e9367eb807d7560bdc8ebd4402631
jpcima/Hera
HeraVCA.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 = *(gain) with { amount = hslider("[1] Amount", 0.5, 0.0, 1.0, 0.01); gain = 0.1*pow(1.2589, 10.0*amount) : tsmooth(10e-3); };
https://raw.githubusercontent.com/jpcima/Hera/eec43c0b5cb5aaa71c647b2e5597fc1ba383dd13/Source/HeraVCA.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 = *(gain) with { amount = hslider("[1] Amount", 0.5, 0.0, 1.0, 0.01); gain = 0.1*pow(1.2589, 10.0*amount) : tsmooth(10e-3); };
4adb82e5ff8519db380d9314ab39ece266323dc25682ff90c62d78b9d68df953
face2Sato/Sonification
FM_op1.dsp
import("stdfaust.lib"); A_4=440; //flin_min<=fc_linear,fm_linear<=flin_max //envlin_min<=env_linear<=envlin_max flin_min = -36; flin_max = 60; envlin_min = 0; envlin_max= 1; fc_linear = hslider("fc_index",flin_min,flin_min,flin_max,0.01); fm_linear = hslider("fm_index",flin_min,flin_min,flin_max,0.01); env_linear = hslider("env_linear",envlin_min,envlin_min,envlin_max,0.01); //fc: carrier freq, fm...modulation freq, env...envelope (control amplitude) fc = A_4 * pow(2,fc_linear/12); fm = A_4 * pow(2,fm_linear/12); //used default feature of Faust to calculate non linear gain env = ba.lin2LogGain(env_linear); //define FM operator imitating Yamaha DX7 operator(fc, fm, env)= os.oscp(fc, os.osc(fm)) * env; //https://github.com/grame-cncm/faustlibraries/blob/master/oscillators.lib //oscp(freq,phase) = oscsin(freq) * cos(phase) + osccos(freq) * sin(phase) //thus, oscp(freq,phase) = oscsin(freq + oscsin(phase)) module = (operator(fc,fm,env)); process = module <:_,_;
https://raw.githubusercontent.com/face2Sato/Sonification/3a67789af3ef884f87f16a309df7ce88cc3696ea/FM_op1.dsp
faust
flin_min<=fc_linear,fm_linear<=flin_max envlin_min<=env_linear<=envlin_max fc: carrier freq, fm...modulation freq, env...envelope (control amplitude) used default feature of Faust to calculate non linear gain define FM operator imitating Yamaha DX7 https://github.com/grame-cncm/faustlibraries/blob/master/oscillators.lib oscp(freq,phase) = oscsin(freq) * cos(phase) + osccos(freq) * sin(phase) thus, oscp(freq,phase) = oscsin(freq + oscsin(phase))
import("stdfaust.lib"); A_4=440; flin_min = -36; flin_max = 60; envlin_min = 0; envlin_max= 1; fc_linear = hslider("fc_index",flin_min,flin_min,flin_max,0.01); fm_linear = hslider("fm_index",flin_min,flin_min,flin_max,0.01); env_linear = hslider("env_linear",envlin_min,envlin_min,envlin_max,0.01); fc = A_4 * pow(2,fc_linear/12); fm = A_4 * pow(2,fm_linear/12); env = ba.lin2LogGain(env_linear); operator(fc, fm, env)= os.oscp(fc, os.osc(fm)) * env; module = (operator(fc,fm,env)); process = module <:_,_;
4e05bfadadb2ed0d008340c40128979910d8edde266bbfac3a894bce955353e7
sonosaurus/sonobus
limiter.dsp
// Version added to JackTrip (standalone program test): import("stdfaust.lib"); threshold = nentry("threshold", -3, -24, 0, 0.01); ratio = nentry("ratio", 12, 1, 20, 0.1); attack = hslider("attack", 0.00001, 0, 1, 0.001) : max(1/ma.SR); release = hslider("release", 0.25, 0, 2, 0.01) : max(1/ma.SR); softClipLevel = threshold : ba.db2linear; // lookahead(s), threshold, attack(s), hold(s), release(s) //limiter = co.limiter_lad_stereo(0.0001, softClipLevel, attack, release/2, release); // GPLv3 license // If you need a less restricted license, try co.limiter_1176_R4_mono (MIT style license) limiter = co.compressor_stereo(ratio, threshold, attack, release); process = limiter;
https://raw.githubusercontent.com/sonosaurus/sonobus/52cb09f046b94ba2d5d9d47e85c8d9789d86c96e/scripts/limiter.dsp
faust
Version added to JackTrip (standalone program test): lookahead(s), threshold, attack(s), hold(s), release(s) limiter = co.limiter_lad_stereo(0.0001, softClipLevel, attack, release/2, release); // GPLv3 license If you need a less restricted license, try co.limiter_1176_R4_mono (MIT style license)
import("stdfaust.lib"); threshold = nentry("threshold", -3, -24, 0, 0.01); ratio = nentry("ratio", 12, 1, 20, 0.1); attack = hslider("attack", 0.00001, 0, 1, 0.001) : max(1/ma.SR); release = hslider("release", 0.25, 0, 2, 0.01) : max(1/ma.SR); softClipLevel = threshold : ba.db2linear; limiter = co.compressor_stereo(ratio, threshold, attack, release); process = limiter;
9a7b6e86fc962ba7a72225c03a5e23c9d60c13588ba620ab8f9bf3247e9f4a38
chernenko-victor/csound_edu
simple_fm.dsp
import("stdfaust.lib"); // carrierFreq, modulatorFreq and index definitions go here // "label",init,min,max,step carrierFreq = hslider("[0]carrierFreq",50,50,10000,0.01) : si.smoo; modulatorFreq = hslider("[1]modulatorFreq",10,0.1,400,0.01) : si.smoo; index = hslider("[2]index",1,0.1,10,0.01) : si.smoo; process = os.osc(carrierFreq+os.osc(modulatorFreq)*index) <: dm.zita_light; // splitting signals for stereo in
https://raw.githubusercontent.com/chernenko-victor/csound_edu/164092906ca1eb4c5b083937badd523bcdf7c9ca/lsn7/simple_fm.dsp
faust
carrierFreq, modulatorFreq and index definitions go here "label",init,min,max,step splitting signals for stereo in
import("stdfaust.lib"); carrierFreq = hslider("[0]carrierFreq",50,50,10000,0.01) : si.smoo; modulatorFreq = hslider("[1]modulatorFreq",10,0.1,400,0.01) : si.smoo; index = hslider("[2]index",1,0.1,10,0.01) : si.smoo; process = os.osc(carrierFreq+os.osc(modulatorFreq)*index)
0515341ab8fb12d3625bb222c816fa949633664ede0479ed945ed7e4c226b1c1
larme/fmbox.dsp
op.dsp
import("stdfaust.lib"); consts = library("consts.lib"); params = library("params.lib"); utils = library("utils.lib"); // input modulation, gate // out audio op(preader, op_num, my_op_idx, mod_in, gate) = audio_out, par(i, op_num, out_to_op(i+1)) with { main_freq = preader(0, params.main_freq); harmony_ratio = preader(my_op_idx, params.harmony_ratio); freq = harmony_ratio * main_freq; amp_mi_factor = preader(my_op_idx, params.amp_mi_factor); get_out_amp(op_idx) = preader(my_op_idx, params.out_amp_base + op_idx); pre_audio_out = os.osc(freq + mod_in) * amp_mi_factor; audio_out = pre_audio_out * get_out_amp(0); out_to_op(op_idx) = pre_audio_out * freq * get_out_amp(op_idx) * 0.0001; }; test_preset_waveform = waveform{440.0, 0, 0, 0, 0, 1.0, 1.0, 0.5, 0.0, 0.0, 2.0, 2.0, 0.0, 1.0, 0.0 }; test_preset_tbl = rdtable(test_preset_waveform); test_preset_size = 15; test_op_param_size = 5; test_preader = utils.param_reader(test_preset_tbl, test_preset_size, test_op_param_size, 0); process = op(test_preader, 2, 2, 0.0, 0) :> _ ;
https://raw.githubusercontent.com/larme/fmbox.dsp/878b1245053fd6a34fbf2404ef71491ad64fd1b9/op.dsp
faust
input modulation, gate out audio
import("stdfaust.lib"); consts = library("consts.lib"); params = library("params.lib"); utils = library("utils.lib"); op(preader, op_num, my_op_idx, mod_in, gate) = audio_out, par(i, op_num, out_to_op(i+1)) with { main_freq = preader(0, params.main_freq); harmony_ratio = preader(my_op_idx, params.harmony_ratio); freq = harmony_ratio * main_freq; amp_mi_factor = preader(my_op_idx, params.amp_mi_factor); get_out_amp(op_idx) = preader(my_op_idx, params.out_amp_base + op_idx); pre_audio_out = os.osc(freq + mod_in) * amp_mi_factor; audio_out = pre_audio_out * get_out_amp(0); out_to_op(op_idx) = pre_audio_out * freq * get_out_amp(op_idx) * 0.0001; }; test_preset_waveform = waveform{440.0, 0, 0, 0, 0, 1.0, 1.0, 0.5, 0.0, 0.0, 2.0, 2.0, 0.0, 1.0, 0.0 }; test_preset_tbl = rdtable(test_preset_waveform); test_preset_size = 15; test_op_param_size = 5; test_preader = utils.param_reader(test_preset_tbl, test_preset_size, test_op_param_size, 0); process = op(test_preader, 2, 2, 0.0, 0) :> _ ;
5118fca63dd7632485db8a73f9ce75bbd30ec0af51389464af5ce884fcff64d8
alikthename/Musical-Design-in-Supercollider
ESI_reflector_par.dsp
declare name "ESI_Reflector"; declare author "Alik Rustamoff"; import("stdfaust.lib"); nRefl = 5; cc(x) = hgroup( "Common Controls", x); scaleDelays = cc( hslider("[0]Scale Delays",1,0,3,0.001)); //scaleWidth = cc( hslider("[0]Scale Width",1,0,3,0.001)); //biasPans = cc( hslider("[0] Bias Pans",1,0,3,0.001)); reflector(N) = par(i,N, de.delay(100000, dt(i))): par(i,N, fi.resonbp(fc(i),Q(i),level(i))) : par(i, N, sp.panner(g(i)) ) with { //a = j+1; // just so that band numbers don't start at 0 level(j) = hslider("[0]Level %j",0,-1,1,0.01) : si.smoo; fc(j) = hslider("[2]Freq %j",2000, 20, 20000, 0.01) : si.smoo; Q(j) = hslider("[3]Q %j",1,0.01,10,0.01) : si.smoo; dt(j) = hslider("[1] Delay %j [unit:ms]",20, 20,150,1) * 44.1 * scaleDelays : si.smoo; g(j) = hslider("[4] Pan %j",0.5, 0,1,0.001) : si.smoo; }; process(x,y) = x+y : fi.highpass(1,hpf) : fi.lowpass(1,lpf) <: reflector(nRefl) :> (_ * dw) + (x * (1-dw)), (_ * dw) + (y * (1-dw)):_*gain,_*gain with{ lpf = cc( hslider("[2] Lpf [unit:Hz]", 5000, 50, 20000, 1) ) : si.smoo; hpf = cc( hslider("[1] Hpf [unit:Hz]", 50, 50, 1600, 1) ) : si.smoo; dw = cc( vslider("[3] Dry-Wet",0.5, 0,1,0.001) ); gain = hslider("[4] Output Gain",0,-20,20,0.01) : ba.db2linear; };
https://raw.githubusercontent.com/alikthename/Musical-Design-in-Supercollider/18c7263695f870b797b69084aa795d0e494148c3/ESI_reflector_par.dsp
faust
scaleWidth = cc( hslider("[0]Scale Width",1,0,3,0.001)); biasPans = cc( hslider("[0] Bias Pans",1,0,3,0.001)); a = j+1; // just so that band numbers don't start at 0
declare name "ESI_Reflector"; declare author "Alik Rustamoff"; import("stdfaust.lib"); nRefl = 5; cc(x) = hgroup( "Common Controls", x); scaleDelays = cc( hslider("[0]Scale Delays",1,0,3,0.001)); reflector(N) = par(i,N, de.delay(100000, dt(i))): par(i,N, fi.resonbp(fc(i),Q(i),level(i))) : par(i, N, sp.panner(g(i)) ) with { level(j) = hslider("[0]Level %j",0,-1,1,0.01) : si.smoo; fc(j) = hslider("[2]Freq %j",2000, 20, 20000, 0.01) : si.smoo; Q(j) = hslider("[3]Q %j",1,0.01,10,0.01) : si.smoo; dt(j) = hslider("[1] Delay %j [unit:ms]",20, 20,150,1) * 44.1 * scaleDelays : si.smoo; g(j) = hslider("[4] Pan %j",0.5, 0,1,0.001) : si.smoo; }; process(x,y) = x+y : fi.highpass(1,hpf) : fi.lowpass(1,lpf) <: reflector(nRefl) :> (_ * dw) + (x * (1-dw)), (_ * dw) + (y * (1-dw)):_*gain,_*gain with{ lpf = cc( hslider("[2] Lpf [unit:Hz]", 5000, 50, 20000, 1) ) : si.smoo; hpf = cc( hslider("[1] Hpf [unit:Hz]", 50, 50, 1600, 1) ) : si.smoo; dw = cc( vslider("[3] Dry-Wet",0.5, 0,1,0.001) ); gain = hslider("[4] Output Gain",0,-20,20,0.01) : ba.db2linear; };
d4507bee49f361b246f67c94ec10dd86a5443acddd109aa7da521bd12c86b20f
funkyfourier/spitback
faustflange.dsp
import("stdfaust.lib"); freq = hslider("Speed", 0.5, 0, 10, 0.01); fb = hslider("Feedback", 0, -0.999, 0.999, 0.001); dflange = 0.001 * ma.SR * hslider("Width", 10, 0, 20, 0.001); curdel1 = dflange+dflange*(1 + os.oscrs(freq))/2; curdel2 = dflange+dflange*(1 + os.oscrc(freq))/2; process = pf.flanger_stereo(4096,curdel1,curdel2,1,fb,0);
https://raw.githubusercontent.com/funkyfourier/spitback/c3b1831e2bd1ac9272652309d4fb3d2847f0a67b/externals/src/faustflange/faustflange.dsp
faust
import("stdfaust.lib"); freq = hslider("Speed", 0.5, 0, 10, 0.01); fb = hslider("Feedback", 0, -0.999, 0.999, 0.001); dflange = 0.001 * ma.SR * hslider("Width", 10, 0, 20, 0.001); curdel1 = dflange+dflange*(1 + os.oscrs(freq))/2; curdel2 = dflange+dflange*(1 + os.oscrc(freq))/2; process = pf.flanger_stereo(4096,curdel1,curdel2,1,fb,0);
553a92e343cd8e6e330419d0dfcbe9ac354259692dc9cc84ea8e4c6b38045582
grammaton/metm
dfl_ir-plot.dsp
import("stdfaust.lib"); // delay feedback in loop dfl(t,g) = (+ : de.delay(ma.SR/2,int(t)))~*(min(0.999,g)); process = os.impulse : dfl(1,0.5);
https://raw.githubusercontent.com/grammaton/metm/e3ca76fc8b8bbb10a0eb77a7056a6056a5c7feda/CAPITOLI/0500/CODES/REV/dfl_ir-plot.dsp
faust
delay feedback in loop
import("stdfaust.lib"); dfl(t,g) = (+ : de.delay(ma.SR/2,int(t)))~*(min(0.999,g)); process = os.impulse : dfl(1,0.5);
83b7814beb49a89275c125aff1839ef37463d03ddbc7bc858e047395242b922c
jatinchowdhury18/wdf-bakeoff
diode_clipper.dsp
import("stdfaust.lib"); diode_clipper(in1) = wd.buildtree(tree) with{ // declare components d1(i) = wd.u_diodeAntiparallel(i, 2.52*10^-9, 25.85*10^-3, 1, 1); vin(i) = wd.resVoltage(i, 4700, in1); c1(i) = wd.capacitor_Vout(i, 47.0e-9); // declare connection tree tree = d1 : (wd.parallel : (vin, c1)); }; process = diode_clipper;
https://raw.githubusercontent.com/jatinchowdhury18/wdf-bakeoff/84ea0d85a75f3297c4040bfa9eca62be740dc097/src/faust_wdf/diode_clipper.dsp
faust
declare components declare connection tree
import("stdfaust.lib"); diode_clipper(in1) = wd.buildtree(tree) with{ d1(i) = wd.u_diodeAntiparallel(i, 2.52*10^-9, 25.85*10^-3, 1, 1); vin(i) = wd.resVoltage(i, 4700, in1); c1(i) = wd.capacitor_Vout(i, 47.0e-9); tree = d1 : (wd.parallel : (vin, c1)); }; process = diode_clipper;
fca6936fc966defb54b37dd49ce347ddb1f321b7a325a32bb9874a6dc19a0cfd
grammaton/metm
dflc.dsp
import("stdfaust.lib"); // corrected delay feedback in loop dflc(t,g) = (+:de.delay(ma.SR/2,int(t-1)))~*(min(0.999,g)):mem; process = dflc(1,0.5);
https://raw.githubusercontent.com/grammaton/metm/e3ca76fc8b8bbb10a0eb77a7056a6056a5c7feda/CAPITOLI/0500/CODES/REV/dflc.dsp
faust
corrected delay feedback in loop
import("stdfaust.lib"); dflc(t,g) = (+:de.delay(ma.SR/2,int(t-1)))~*(min(0.999,g)):mem; process = dflc(1,0.5);
6c7639838a3cb7ed926e7fc9695d8690cd63bf7279c1da48488f82756b158d20
beataburreau/FAUST-signal-graphs-goes-Haskell
rain.dsp
import("stdfaust.lib"); rain(density,level) = no.multinoise(2) : par(i, 2, drop) : par(i, 2, *(level)) with { drop = _ <: @(1), (abs < density) : *; }; process = rain ( hslider("v:rain/density", 300, 0, 1000, 1) / 1000, hslider("v:rain/volume", 0.5, 0, 1, 0.01) );
https://raw.githubusercontent.com/beataburreau/FAUST-signal-graphs-goes-Haskell/5dbf006329efbda1598b467da430fb7c8f16da8f/test/test-files/rain.dsp
faust
import("stdfaust.lib"); rain(density,level) = no.multinoise(2) : par(i, 2, drop) : par(i, 2, *(level)) with { drop = _ <: @(1), (abs < density) : *; }; process = rain ( hslider("v:rain/density", 300, 0, 1000, 1) / 1000, hslider("v:rain/volume", 0.5, 0, 1, 0.01) );
d689f94320c7bd6b9b3492204973385ab0c74d1103ed25610f6dc86932108695
spluta/SPSynthTools
quadosc.dsp
import("stdfaust.lib"); //Dario Sanfilippo's implementation of Martin Vicanek's Quadrature Oscillator quadosc(f) = loop ~ (_ , _) with { loop(u_n, v_n) = w_n - k1 * (v_n + k2 * w_n) , // u_n path v_n + k2 * w_n // v_n path with { w_n = Dirac + u_n - k1 * v_n; }; k1 = tan(ma.PI * f / ma.SR); k2 = (2 * k1) / (1 + k1 * k1); Dirac = 1 - 1'; }; process = quadosc;
https://raw.githubusercontent.com/spluta/SPSynthTools/5959c72419ff1f8f58e9ec686b561ad420538bc2/quadosc/FaustSource/quadosc.dsp
faust
Dario Sanfilippo's implementation of Martin Vicanek's Quadrature Oscillator u_n path v_n path
import("stdfaust.lib"); quadosc(f) = loop ~ (_ , _) with { with { w_n = Dirac + u_n - k1 * v_n; }; k1 = tan(ma.PI * f / ma.SR); k2 = (2 * k1) / (1 + k1 * k1); Dirac = 1 - 1'; }; process = quadosc;
dd007bae34571cc562699305242f726efadafe78b9e893f2bf319b8d0fe04a82
rasmusnuko/FaustCode
delay.dsp
import("stdfaust.lib"); echo(millis, feedback) = A~B with{ samples = (millis * 0.001) * ma.SR; A = +; B = feedback * de.delay(ma.SR, samples); }; delay_time = hslider("delay time (ms)", 2, 1, 1000, 1); // Millis delay_gain = hslider("delay gain", 0.3, 0, 1, 0.01); // 0 - 1 process = echo(delay_time, delay_gain) <: _,_;
https://raw.githubusercontent.com/rasmusnuko/FaustCode/f58d7a5d35d28a644e73903ab530fcdce314dfd6/delay.dsp
faust
Millis 0 - 1
import("stdfaust.lib"); echo(millis, feedback) = A~B with{ samples = (millis * 0.001) * ma.SR; A = +; B = feedback * de.delay(ma.SR, samples); }; process = echo(delay_time, delay_gain) <: _,_;
5fe7eb371893be019b99bc3f9531f882af009623a4c2c5c972bb74e599ff7646
SpotlightKid/stereocrossdelay
stereocrossdelay.dsp
declare name "StereoCrossDelay"; declare description "A stereo delay with feedback and cross-over mixing"; declare author "Christopher Arndt"; declare license "MIT license"; import("stdfaust.lib"); // constants MAX_DELAY = 2.0; // params time_l = ba.sec2samp(hslider("[0]Delay L[symbol: delay_l][unit: ms]", 500.0, 0, MAX_DELAY * 1000, 0.1) : si.smoo); ratio_r = hslider("[1]Delay R Ratio[symbol: delay_r][style:menu{'1:1':1;'1:2':2;'2:1':0.5;'}]", 0.75, 0.001, 2, 0.01); feedback = hslider("[2]Feedback[symbol: feedback][unit: %]", 20, 0, 100, 0.1) : si.smoo; lp_cutoff = hslider("[3]Lowpass[symbol: lp_cutoff][unit: hz][scale: log]", 12000, 20, 20000, 0.1) : si.smoo; hp_cutoff = hslider("[4]Highpass[symbol: hp_cutoff][unit: hz][scale: log]", 60, 20, 20000, 0.1) : si.smoo; crossfeed = hslider("[5]Crossmix[symbol: crossmix][unit: %]", 25, 0, 100, 0.1) : si.smoo; wet = hslider("[6]Wet[symbol: wet][unit: db]", -6, -90, 6, 0.1) : si.smoo : ba.db2linear; dry = hslider("[7]Dry[symbol: dry][unit: db]", 0, -90, 6, 0.1) : si.smoo : ba.db2linear; // processing blocks cross_mixer(l, r) = l * (1 - coef) + r * coef, r * (1 - coef) + l * coef with { coef = crossfeed * 0.01; }; fb_mixer(fb_l, fb_r, in_l, in_r) = in_l + (fb_l * feedback * 0.01), in_r + (fb_r * feedback * 0.01), in_l, in_r; fb_filter = fi.highpass(2, hp_cutoff) : fi.lowpass(2, lp_cutoff); delay_l = de.sdelay(ba.sec2samp(MAX_DELAY), 512, time_l * 0.001); delay_r = de.sdelay(ba.sec2samp(MAX_DELAY * 2), 512, time_l * ratio_r * 0.001); wetdry(wet_l, wet_r, in_l, in_r) = in_l * dry + wet_l * wet, in_r * dry + wet_r * wet; // signal chain process = (fb_mixer : delay_l, delay_r, _, _ : cross_mixer, _, _) ~ (fb_filter, fb_filter) : wetdry;
https://raw.githubusercontent.com/SpotlightKid/stereocrossdelay/b637627eda3189c3c2ff0f5512a78a76e7383285/faust/stereocrossdelay.dsp
faust
constants params processing blocks signal chain
declare name "StereoCrossDelay"; declare description "A stereo delay with feedback and cross-over mixing"; declare author "Christopher Arndt"; declare license "MIT license"; import("stdfaust.lib"); MAX_DELAY = 2.0; time_l = ba.sec2samp(hslider("[0]Delay L[symbol: delay_l][unit: ms]", 500.0, 0, MAX_DELAY * 1000, 0.1) : si.smoo); ratio_r = hslider("[1]Delay R Ratio[symbol: delay_r][style:menu{'1:1':1;'1:2':2;'2:1':0.5;'}]", 0.75, 0.001, 2, 0.01); feedback = hslider("[2]Feedback[symbol: feedback][unit: %]", 20, 0, 100, 0.1) : si.smoo; lp_cutoff = hslider("[3]Lowpass[symbol: lp_cutoff][unit: hz][scale: log]", 12000, 20, 20000, 0.1) : si.smoo; hp_cutoff = hslider("[4]Highpass[symbol: hp_cutoff][unit: hz][scale: log]", 60, 20, 20000, 0.1) : si.smoo; crossfeed = hslider("[5]Crossmix[symbol: crossmix][unit: %]", 25, 0, 100, 0.1) : si.smoo; wet = hslider("[6]Wet[symbol: wet][unit: db]", -6, -90, 6, 0.1) : si.smoo : ba.db2linear; dry = hslider("[7]Dry[symbol: dry][unit: db]", 0, -90, 6, 0.1) : si.smoo : ba.db2linear; cross_mixer(l, r) = l * (1 - coef) + r * coef, r * (1 - coef) + l * coef with { coef = crossfeed * 0.01; }; fb_mixer(fb_l, fb_r, in_l, in_r) = in_l + (fb_l * feedback * 0.01), in_r + (fb_r * feedback * 0.01), in_l, in_r; fb_filter = fi.highpass(2, hp_cutoff) : fi.lowpass(2, lp_cutoff); delay_l = de.sdelay(ba.sec2samp(MAX_DELAY), 512, time_l * 0.001); delay_r = de.sdelay(ba.sec2samp(MAX_DELAY * 2), 512, time_l * ratio_r * 0.001); wetdry(wet_l, wet_r, in_l, in_r) = in_l * dry + wet_l * wet, in_r * dry + wet_r * wet; process = (fb_mixer : delay_l, delay_r, _, _ : cross_mixer, _, _) ~ (fb_filter, fb_filter) : wetdry;
9aa3812c4f7bbca880dd0d58d87abead7b140d7d48f32f24dc1548be35551537
rasmusnuko/FaustCode
sine_from_phasor.dsp
import("stdfaust.lib"); // No anti-alliasing phasor(freq) = (A~B) with{ delta = freq / ma.SR; A = _; // Feedforward. B = (_ + delta) : ma.frac; // Feedback. Only get decimal part of count }; sinwave(freq) = sin(phasor_freq*2*ma.PI) with{ phasor_freq = phasor(freq); }; process = sinwave(220);
https://raw.githubusercontent.com/rasmusnuko/FaustCode/f58d7a5d35d28a644e73903ab530fcdce314dfd6/sine_from_phasor.dsp
faust
No anti-alliasing Feedforward. Feedback. Only get decimal part of count
import("stdfaust.lib"); phasor(freq) = (A~B) with{ delta = freq / ma.SR; }; sinwave(freq) = sin(phasor_freq*2*ma.PI) with{ phasor_freq = phasor(freq); }; process = sinwave(220);
ca2e0cd19a932e64254759f5b81130ecc3be1f62eeb61a746207e6070b58ba59
grammaton/metm
dflc_ir-plot.dsp
import("stdfaust.lib"); // corrected delay feedback in loop dflc(t,g) = (+:de.delay(ma.SR/2,int(t-1)))~*(min(0.999,g)):mem; process = os.impulse : dflc(1,0.5);
https://raw.githubusercontent.com/grammaton/metm/e3ca76fc8b8bbb10a0eb77a7056a6056a5c7feda/CAPITOLI/0500/CODES/REV/dflc_ir-plot.dsp
faust
corrected delay feedback in loop
import("stdfaust.lib"); dflc(t,g) = (+:de.delay(ma.SR/2,int(t-1)))~*(min(0.999,g)):mem; process = os.impulse : dflc(1,0.5);
fe9653b86f7bfe5a0e203605b3fd3913e9b7462d665e3729972755fab651e629
grammaton/metm
dfl_fr-plot.dsp
import("stdfaust.lib"); // delay feedback in loop dfl(t,g) = (+ : de.delay(ma.SR/2,int(t)))~*(min(0.999,g)); process = os.osc(lsweep(1,1)) : dflc(12,0.708);
https://raw.githubusercontent.com/grammaton/metm/e3ca76fc8b8bbb10a0eb77a7056a6056a5c7feda/CAPITOLI/0500/CODES/REV/dfl_fr-plot.dsp
faust
delay feedback in loop
import("stdfaust.lib"); dfl(t,g) = (+ : de.delay(ma.SR/2,int(t)))~*(min(0.999,g)); process = os.osc(lsweep(1,1)) : dflc(12,0.708);
47788635641e1826602ec6294c1c4d5da88e7b7140411f39ae5d3c894c57e4af
jatinchowdhury18/CrossroadsEffects
evolve_struct_gain.dsp
import("stdfaust.lib"); gain_5647be6d = _*-0.10000038515678848; gain_e9f6afa3 = _*-0.10000038515678848; split_763e49f1 = _ <: (gain_5647be6d), (gain_e9f6afa3) :> _; process = _,_ : split_763e49f1,split_763e49f1 : _,_;
https://raw.githubusercontent.com/jatinchowdhury18/CrossroadsEffects/9a4ece57ce439103369f6c36bc1d74bec9043d64/faust_scripts/evolve_struct_gain.dsp
faust
import("stdfaust.lib"); gain_5647be6d = _*-0.10000038515678848; gain_e9f6afa3 = _*-0.10000038515678848; split_763e49f1 = _ <: (gain_5647be6d), (gain_e9f6afa3) :> _; process = _,_ : split_763e49f1,split_763e49f1 : _,_;
e914d750d35357f09c27385ccb6276181217a7e12513d2ee4907e4d99d3f9fd5
jatinchowdhury18/CrossroadsEffects
evolve_struct.dsp
import("stdfaust.lib"); gain_05042712 = _*0.13865438718714387; gain_28461af3 = _*1.0194167558962126; split_ceb25998 = _ <: _, (gain_28461af3) :> _; process = _,_ : gain_05042712,gain_05042712 : split_ceb25998,split_ceb25998 : _,_;
https://raw.githubusercontent.com/jatinchowdhury18/CrossroadsEffects/9a4ece57ce439103369f6c36bc1d74bec9043d64/faust_scripts/evolve_struct.dsp
faust
import("stdfaust.lib"); gain_05042712 = _*0.13865438718714387; gain_28461af3 = _*1.0194167558962126; split_ceb25998 = _ <: _, (gain_28461af3) :> _; process = _,_ : gain_05042712,gain_05042712 : split_ceb25998,split_ceb25998 : _,_;
ad46ac9a1d944558da0ff0a22b48bb8da8421009d8782f5a469edd8e2206f65f
jpcima/benchmark-faust-resonator
resonator.dsp
import("stdfaust.lib"); numkeys = 88; initialkey = 24; depth = hslider("[1] Depth", 1, 0, 1, 0.01); pitches(i) = hslider("[%n] Resonance frequency %j [unit:Hz]", ba.midikey2hz(i+initialkey), 0, 22000, 1) with { n = i*10+100; j = i+1; }; feedbacks(i) = hslider("[%n] Resonance feedback %j", 0, 0, 1, 0.001) with { n = i*10+101; j = i+1; }; bandwidths(i) = hslider("[%n] Bandwidth %j [unit:Hz]", 1, 0, 10, 0.01) with { n = i*10+102; j = i+1; }; gains(i) = hslider("[%n] Gain %j", 0, 0, 1, 0.01) with { n = i*10+103; j = i+1; }; resonator(f,r,g,b) = fi.bandpass(1, f-0.5*b, f+0.5*b) : fi.nlf2(f, r) : (_,!) : *(g); process = _ <: (_, (sympathetic_resonance : *(depth))) :> + with { sympathetic_resonance = _ <: par(i, numkeys, band(i)) :> +; band(i) = resonator(pitches(i), feedbacks(i), bandwidths(i), gains(i)); };
https://raw.githubusercontent.com/jpcima/benchmark-faust-resonator/5b6e57e8508900980a3fc2f2a1522441cae4640f/sources/resonator.dsp
faust
import("stdfaust.lib"); numkeys = 88; initialkey = 24; depth = hslider("[1] Depth", 1, 0, 1, 0.01); pitches(i) = hslider("[%n] Resonance frequency %j [unit:Hz]", ba.midikey2hz(i+initialkey), 0, 22000, 1) with { n = i*10+100; j = i+1; }; feedbacks(i) = hslider("[%n] Resonance feedback %j", 0, 0, 1, 0.001) with { n = i*10+101; j = i+1; }; bandwidths(i) = hslider("[%n] Bandwidth %j [unit:Hz]", 1, 0, 10, 0.01) with { n = i*10+102; j = i+1; }; gains(i) = hslider("[%n] Gain %j", 0, 0, 1, 0.01) with { n = i*10+103; j = i+1; }; resonator(f,r,g,b) = fi.bandpass(1, f-0.5*b, f+0.5*b) : fi.nlf2(f, r) : (_,!) : *(g); process = _ <: (_, (sympathetic_resonance : *(depth))) :> + with { sympathetic_resonance = _ <: par(i, numkeys, band(i)) :> +; band(i) = resonator(pitches(i), feedbacks(i), bandwidths(i), gains(i)); };
2eb77961fb31c5b94f74d428d69362fb9e3a6b34b7d8f0b9d7d426db4efec526
s-e-a-m/1987-nono-risonanze-erranti
reverb4sec.dsp
import("stdfaust.lib"); import("../faust-libraries/seam.lib"); process = _ <: reverb4(16,5,3);
https://raw.githubusercontent.com/s-e-a-m/1987-nono-risonanze-erranti/8e4fb5d0fedbf0e6352aebc501f368ab61e960a0/src/reverb4sec.dsp
faust
import("stdfaust.lib"); import("../faust-libraries/seam.lib"); process = _ <: reverb4(16,5,3);
ccaa17684b80889b5f8d27c29934d9ed04fa0f8ca7a972a6664ae8add263947a
CICM-research-composition/livepatching
additive.dsp
import("stdfaust.lib"); n = 8; fc = hslider("v:filters/fc [unit:Hz]", 440, 20, 2000, 0.01); q = hslider("v:filters/q", 30, 1, 500, 1); gain = hslider("v:filters/gain", 0.2, 0, 1, 0.01); source = no.multinoise(n); // tempo = hslider("tempo", 60, 10, 600, 1); nsamp = int(60 / tempo * ma.SR); // process = source : par(i, n, (*(ba.pulsen(1, nsamp)) : fi.resonbp(fc*(i+1), q, gain))) :> (_, _);
https://raw.githubusercontent.com/CICM-research-composition/livepatching/da47667b3f5236b4b81cb05593f35d408caaca9e/source/additive.dsp
faust
import("stdfaust.lib"); n = 8; fc = hslider("v:filters/fc [unit:Hz]", 440, 20, 2000, 0.01); q = hslider("v:filters/q", 30, 1, 500, 1); gain = hslider("v:filters/gain", 0.2, 0, 1, 0.01); source = no.multinoise(n); tempo = hslider("tempo", 60, 10, 600, 1); nsamp = int(60 / tempo * ma.SR); process = source : par(i, n, (*(ba.pulsen(1, nsamp)) : fi.resonbp(fc*(i+1), q, gain))) :> (_, _);
ca080750a5c74eb50cda96031f35c0c24969ce864a9dc9953f6dfc69ad8f3457
Msc-program/Jacklink
limiterdsp.dsp
// Version added to JackTrip (standalone program test): import("stdfaust.lib"); N = hslider("[0] NumClientsAssumed",2,1,64,1); softClipLevel = 0.5; // start compressing at this amplitude - KEEP IN SYNC with setWarningAmplitude() in ../src/Effects.h gain = 1.0 / sqrt(float(N)); // assume power-based client sum - KEEP IN SYNC with limiterAmp in ../src/Limiter.h // lookahead(s), threshold, attack(s), hold(s), release(s) limiter = co.limiter_lad_mono(0.0001, softClipLevel, 0.00001, 0.1, 0.25); // GPLv3 license // If you need a less restricted license, try co.limiter_1176_R4_mono (MIT style license) process = *(gain) : limiter;
https://raw.githubusercontent.com/Msc-program/Jacklink/70b8634173e66d89884bb77b70b7b3ed01f71f79/faust-src/limiterdsp.dsp
faust
Version added to JackTrip (standalone program test): start compressing at this amplitude - KEEP IN SYNC with setWarningAmplitude() in ../src/Effects.h assume power-based client sum - KEEP IN SYNC with limiterAmp in ../src/Limiter.h lookahead(s), threshold, attack(s), hold(s), release(s) GPLv3 license If you need a less restricted license, try co.limiter_1176_R4_mono (MIT style license)
import("stdfaust.lib"); N = hslider("[0] NumClientsAssumed",2,1,64,1); process = *(gain) : limiter;
fe787612a03dd34cae4bbfa90022c3da9e5d95facbc754d60995df602cbf0e1a
LucaSpanedda/Musical_Studies_of_Dynamical_and_Complex_Systems
sahsmooth.dsp
// THIS library import("stdfaust.lib"); // SAH with internal trigger SAHsmooth(f, w) = w : sample ~ _ : onepoletau(1/f) with{ // binary selector 0 - 1 selector(sel, x, y) = (x * (1-sel) + y * (sel)); // SAH Loop sample(fb, y) = (phasor(f) : trigger, fb, y) : selector; // PH to trigger trigger(x) = x < x'; // classic phasor phasor(f) = (f/ma.SR):(+ :\(x).(selector(0, x, 0)) : \(x).(x - int(x))) ~ _; onepoletau(tau, x) = fb ~ _ with { fb(y) = (1.0 - s) * x + s * y; s = exp(-1.0/(tau * ma.SR)); // tau = desired smoothing time constant in seconds }; }; process = par(i, 8, SAHsmooth(1+(i*1.1234), no.noise));
https://raw.githubusercontent.com/LucaSpanedda/Musical_Studies_of_Dynamical_and_Complex_Systems/e60eb5bb855d13927f018c242b280ff62ad10009/sahsmooth.dsp
faust
THIS library SAH with internal trigger binary selector 0 - 1 SAH Loop PH to trigger classic phasor tau = desired smoothing time constant in seconds
import("stdfaust.lib"); SAHsmooth(f, w) = w : sample ~ _ : onepoletau(1/f) with{ selector(sel, x, y) = (x * (1-sel) + y * (sel)); sample(fb, y) = (phasor(f) : trigger, fb, y) : selector; trigger(x) = x < x'; phasor(f) = (f/ma.SR):(+ :\(x).(selector(0, x, 0)) : \(x).(x - int(x))) ~ _; onepoletau(tau, x) = fb ~ _ with { fb(y) = (1.0 - s) * x + s * y; s = exp(-1.0/(tau * ma.SR)); }; }; process = par(i, 8, SAHsmooth(1+(i*1.1234), no.noise));
6779b77916682526f13d96bd04b53cdcd687766cd0ed6450b9c374422dd39e10
johannphilippe/paw2022
sequencer.dsp
import("stdfaust.lib"); amp = hslider("amp", 0.2, 0, 1, 0.01); speed = hslider("speed", 0.2, 0.1, 2, 0.01) : si.smoo; // Outputs triggers on first output, and velocity (normalized) on second sequencer(t, freq) = (res > 0) * (ph != ph'), res with { sz = t : _,!; ph = int(os.phasor(sz, freq)); res = t, ph : rdtable; }; sequ = waveform{1,0,0,0,0,1}; bt = sequencer(sequ, speed) : en.ar(0,0.1), !; process = os.sawtooth(100) * amp * bt;
https://raw.githubusercontent.com/johannphilippe/paw2022/d9b921a44e72bab11e457a13a1b43a4eabca53df/examples/sequencer.dsp
faust
Outputs triggers on first output, and velocity (normalized) on second
import("stdfaust.lib"); amp = hslider("amp", 0.2, 0, 1, 0.01); speed = hslider("speed", 0.2, 0.1, 2, 0.01) : si.smoo; sequencer(t, freq) = (res > 0) * (ph != ph'), res with { sz = t : _,!; ph = int(os.phasor(sz, freq)); res = t, ph : rdtable; }; sequ = waveform{1,0,0,0,0,1}; bt = sequencer(sequ, speed) : en.ar(0,0.1), !; process = os.sawtooth(100) * amp * bt;
89ae7f5c36913437f105e3cab5e8e24c1e839c8e450b55629504cd16b1db1278
s-e-a-m/1987-nono-risonanze-erranti
reverb80sec.dsp
import("stdfaust.lib"); import("../faust-libraries/seam.lib"); process = _ <: rev_ottanta(16,5,3) :> _,_;
https://raw.githubusercontent.com/s-e-a-m/1987-nono-risonanze-erranti/2130c7ced7950058b4d1b5ce5f4fa3d3a631a234/src/reverb80sec.dsp
faust
import("stdfaust.lib"); import("../faust-libraries/seam.lib"); process = _ <: rev_ottanta(16,5,3) :> _,_;
ccb32373bc58ff71805e573a15389a6f3566379a7d2cb638c40395e9238219cd
publicsamples/Quetzalcoatl
01Message.dsp
declare message "Hello\nmake some noise"; import("stdfaust.lib"); process = no.noise : *(0.5);
https://raw.githubusercontent.com/publicsamples/Quetzalcoatl/547f2585651af68b32072846088cc97f3c80acc0/Quetzalcoatl/DspNetworks/CodeLibrary/faust/01Message.dsp
faust
declare message "Hello\nmake some noise"; import("stdfaust.lib"); process = no.noise : *(0.5);
8fcaae0e2d78b4e06a55e84797e760a1b100c98ceb614ff104ee3ff2b04100c3
jatinchowdhury18/CrossroadsEffects
evolve_struct_delay.dsp
import("stdfaust.lib"); gain_03cccd32 = _*0.5000123453946032; delay_47acd278 = @(2); gain_294a2b09 = _*-0.2499963084025012; split_3a936584 = _ <: (gain_03cccd32), (delay_47acd278 : gain_294a2b09) :> _; process = _,_ : split_3a936584,split_3a936584 : _,_;
https://raw.githubusercontent.com/jatinchowdhury18/CrossroadsEffects/9a4ece57ce439103369f6c36bc1d74bec9043d64/faust_scripts/evolve_struct_delay.dsp
faust
import("stdfaust.lib"); gain_03cccd32 = _*0.5000123453946032; delay_47acd278 = @(2); gain_294a2b09 = _*-0.2499963084025012; split_3a936584 = _ <: (gain_03cccd32), (delay_47acd278 : gain_294a2b09) :> _; process = _,_ : split_3a936584,split_3a936584 : _,_;
588cf4b7ab4e4bbf5fda445be6f269772f4571d1e807f3a9cc17ea6b7696868d
s-e-a-m/1987-nono-risonanze-erranti
harmonizer.dsp
import("stdfaust.lib"); import("../faust-libraries/seam.lib"); process = os.osc(1000) : harmonizer;
https://raw.githubusercontent.com/s-e-a-m/1987-nono-risonanze-erranti/2130c7ced7950058b4d1b5ce5f4fa3d3a631a234/src/harmonizer.dsp
faust
import("stdfaust.lib"); import("../faust-libraries/seam.lib"); process = os.osc(1000) : harmonizer;
4e9f683366e49ac2ea83c5c999bf428d45daf0420ee6e71fc7fe11297059bf4d
LucaSpanedda/Sintesi_per_modelli_fisici_in_FAUST
1.00_KarplusStrong_Dirac.dsp
// ---------------------------------------- // KARPLUS STRONG // ---------------------------------------- // Importo libreria standard di FAUST import("stdfaust.lib"); /* Algoritmo di simulazione della corda secondo il modello KARPLUS STRONG con IMPULSO DI DIRAC come eccitatore attenuato da filtro ONEPOLE */ eccitator(impsamples,implowc,gimp) = opfdirac with{ // DIRAC --> ONEPOLE LOWPASS diracvariable = 1-1@(impsamples); opfdirac = diracvariable*implowc : +~(_ : *(1- implowc)); gainout = opfdirac*gimp; }; resonator(delfreq,feedback,lowpass) = lfbcf with{ // LOWPASS FEEDBACK COMB FILTER lfbcf = (+ : @(ma.SR/(delfreq-1)) : _*lowpass : +~(_ : *(1-lowpass)))~ *(feedback) : mem; }; // KARPLUS STRONG FUNCTION kstrongpow(gain,impsamp,impcut,freq,fb,lowcut) = eccitator(impsamp,impcut,gain) : resonator(freq,fb,lowcut) : fi.dcblocker; // (gain,impinsamples,impucut(0-1),frequency,feedback(0-1),resoncut(0-1)) process = kstrongpow(0.5,300,0.9,261.6,0.99,0.6) <:_,_;
https://raw.githubusercontent.com/LucaSpanedda/Sintesi_per_modelli_fisici_in_FAUST/9f80a40f388453b9190a0686ae8c072d7d40da6a/1.00_KarplusStrong_Dirac.dsp
faust
---------------------------------------- KARPLUS STRONG ---------------------------------------- Importo libreria standard di FAUST Algoritmo di simulazione della corda secondo il modello KARPLUS STRONG con IMPULSO DI DIRAC come eccitatore attenuato da filtro ONEPOLE DIRAC --> ONEPOLE LOWPASS LOWPASS FEEDBACK COMB FILTER KARPLUS STRONG FUNCTION (gain,impinsamples,impucut(0-1),frequency,feedback(0-1),resoncut(0-1))
import("stdfaust.lib"); eccitator(impsamples,implowc,gimp) = opfdirac with{ diracvariable = 1-1@(impsamples); opfdirac = diracvariable*implowc : +~(_ : *(1- implowc)); gainout = opfdirac*gimp; }; resonator(delfreq,feedback,lowpass) = lfbcf with{ lfbcf = (+ : @(ma.SR/(delfreq-1)) : _*lowpass : +~(_ : *(1-lowpass)))~ *(feedback) : mem; }; kstrongpow(gain,impsamp,impcut,freq,fb,lowcut) = eccitator(impsamp,impcut,gain) : resonator(freq,fb,lowcut) : fi.dcblocker; process = kstrongpow(0.5,300,0.9,261.6,0.99,0.6) <:_,_;
8b588d534a1e594bfe8bedb250abcd5ae8e32fbd698569f2a2041da855c83319
SpotlightKid/sendmixer
sendmixer.dsp
declare name "SendMixer"; declare description "A stereo channel strip with one master gain and two pre/post-fader sends"; declare version "0.1.0"; declare author "Christopher Arndt"; declare license "MIT license"; import("stdfaust.lib"); // Controls send_a_lvl = vslider("[1]Send A[style:knob][unit:dB][symbol: send_a_lvl][abbrev: send_a_lvl]", -60.0, -60.0, 0.0, 0.01) : si.smoo; send_a_pos = checkbox("[2]Send A Post[symbol: send_a_post][abbrev: send_a_post]"); send_b_lvl = vslider("[3]Send B[style:knob][unit:dB][symbol: send_b_lvl][abbrev: send_b_lvl]", -60.0, -60.0, 0.0, 0.01) : si.smoo; send_b_pos = checkbox("[4]Send B Post[symbol: send_b_post][abbrev: send_b_post]"); main_lvl = vslider("[5]Main Level[unit:dB][symbol: main_lvl][abbrev: main_lvl]", 0.0, -90.0, 20.0, 0.01) : si.smoo; // A single mixer strip channel = _ * ba.db2linear(main_lvl); strip = _ <: channel, _, channel : _, send; send = _,_ <: select2(send_a_pos) * ba.db2linear(send_a_lvl), select2(send_b_pos) * ba.db2linear(send_b_lvl); // Combin two strips into a stero strip stereostrip = strip, strip; // And route the channels to be ordered in stereo pairs router(a1, b1, c1, a2, b2, c2) = a1, a2, b1, b2, c1, c2; // Process process = stereostrip : router;
https://raw.githubusercontent.com/SpotlightKid/sendmixer/7c6b3063c38a6567460b8e8c7d678e66d24aa463/faust/sendmixer.dsp
faust
Controls A single mixer strip Combin two strips into a stero strip And route the channels to be ordered in stereo pairs Process
declare name "SendMixer"; declare description "A stereo channel strip with one master gain and two pre/post-fader sends"; declare version "0.1.0"; declare author "Christopher Arndt"; declare license "MIT license"; import("stdfaust.lib"); send_a_lvl = vslider("[1]Send A[style:knob][unit:dB][symbol: send_a_lvl][abbrev: send_a_lvl]", -60.0, -60.0, 0.0, 0.01) : si.smoo; send_a_pos = checkbox("[2]Send A Post[symbol: send_a_post][abbrev: send_a_post]"); send_b_lvl = vslider("[3]Send B[style:knob][unit:dB][symbol: send_b_lvl][abbrev: send_b_lvl]", -60.0, -60.0, 0.0, 0.01) : si.smoo; send_b_pos = checkbox("[4]Send B Post[symbol: send_b_post][abbrev: send_b_post]"); main_lvl = vslider("[5]Main Level[unit:dB][symbol: main_lvl][abbrev: main_lvl]", 0.0, -90.0, 20.0, 0.01) : si.smoo; channel = _ * ba.db2linear(main_lvl); strip = _ <: channel, _, channel : _, send; send = _,_ <: select2(send_a_pos) * ba.db2linear(send_a_lvl), select2(send_b_pos) * ba.db2linear(send_b_lvl); stereostrip = strip, strip; router(a1, b1, c1, a2, b2, c2) = a1, a2, b1, b2, c1, c2; process = stereostrip : router;
81c10dbd419737dd168ed79e0a1badddce7ef5f08f303db6b7dc5cdd28f54ff7
JordanPaoletti/exploring-faust
basic-sin-osc.dsp
import("stdfaust.lib"); freq = hslider("freq", 440, 50, 2000, 0.1) : si.smoo; // smoo is a specific lowpass for ui inputs phasor(freq) = (+(freq / ma.SR) ~ ma.frac); // SR = sample rate, frac = get fraction component osc(freq) = sin(phasor(freq) * 2 * ma.PI); process = freq : osc;
https://raw.githubusercontent.com/JordanPaoletti/exploring-faust/fb0e355a479d9627b8d9995b7a03d3b1ac7fa3c8/src/examples/basic-sin-osc.dsp
faust
smoo is a specific lowpass for ui inputs SR = sample rate, frac = get fraction component
import("stdfaust.lib"); osc(freq) = sin(phasor(freq) * 2 * ma.PI); process = freq : osc;
7737565df5f74f344ca8822643aff525a2d50b8a66addfb2f6733bd965c06157
Bencosterton/OneChannelMix
OneChnMix.dsp
import ("stdfaust.lib"); process = hgroup("OneChnMix", mute : *(gain) : pan); mute = *(1-checkbox("mute")); // amplify = +(hslider("gain[style:knob]",0,-4,1,0.01)); gain = vslider("Gain[style:knob]", 0, -40, +10, 0.1) : ba.db2linear : si.smoo; pan = _ <: *(1-p),*(p) with{ p = nentry("Pan[style:knob]", 0.5,0,1,0.01); };
https://raw.githubusercontent.com/Bencosterton/OneChannelMix/b97b544258e537340e4e877912a2876e85c85a0f/OneChnMix.dsp
faust
amplify = +(hslider("gain[style:knob]",0,-4,1,0.01));
import ("stdfaust.lib"); process = hgroup("OneChnMix", mute : *(gain) : pan); mute = *(1-checkbox("mute")); gain = vslider("Gain[style:knob]", 0, -40, +10, 0.1) : ba.db2linear : si.smoo; pan = _ <: *(1-p),*(p) with{ p = nentry("Pan[style:knob]", 0.5,0,1,0.01); };
d4a88bdabf4392aeba547f7fc034af0f205136b47a52dd9f0a253d8758a92957
piptouque/atiam_tp_signal
moog_ladder_corr.dsp
import("stdfaust.lib"); //--------------------------------------------------------- // volterra2021.dsp // Thomas Helie, Yann Orlarey //--------------------------------------------------------- // Main process process = source : drive(fmoog) : output <: _,_; // Moog filter fmoog = _,0 : M : M : M : M : S with { // linear filter F1 = *(v/(1+v)) : + ~ *(1/(1+v)) with { v = 2*ma.PI*hslider("h:moog/freq", 4400, 20, 10000, 1)/ma.SR; }; // module stage M = (_ <: F1, ^(3)), _ : (_ <: _, (^(3) : *(-1))), + : _, (+ : F1); // summation stage with optional non-linearity S = _, *(checkbox("h:moog/NL") * -1/3) : +; }; // Drive system drive(fx) = *(g) : fx : /(g) with { g = hslider("v:drive/drive", 2, 1, 5, 0.01); }; // Test source made of two slighlty detuned square signals source = os.square(f-d/2)+os.square(f+d/2) : /(2) with { f = hslider("v:[1]source/squarefreq", 220, 20, 2000, 1); d = hslider("v:[1]source/squaredelta", 2, 0.05, 10, 0.01); }; // output stage with a large attenuation control output = /(att) with { att = hslider("v:output/att[scale:log]", 5, 1, 10000, 0.1); };
https://raw.githubusercontent.com/piptouque/atiam_tp_signal/eba1975a791670e6acaef9b519f971457514fd12/tp_moog/source/moog_ladder_corr.dsp
faust
--------------------------------------------------------- volterra2021.dsp Thomas Helie, Yann Orlarey --------------------------------------------------------- Main process Moog filter linear filter module stage summation stage with optional non-linearity Drive system Test source made of two slighlty detuned square signals output stage with a large attenuation control
import("stdfaust.lib"); process = source : drive(fmoog) : output <: _,_; fmoog = _,0 : M : M : M : M : S with { F1 = *(v/(1+v)) : + ~ *(1/(1+v)) with { v = 2*ma.PI*hslider("h:moog/freq", 4400, 20, 10000, 1)/ma.SR; }; M = (_ <: F1, ^(3)), _ : (_ <: _, (^(3) : *(-1))), + : _, (+ : F1); S = _, *(checkbox("h:moog/NL") * -1/3) : +; }; drive(fx) = *(g) : fx : /(g) with { g = hslider("v:drive/drive", 2, 1, 5, 0.01); }; source = os.square(f-d/2)+os.square(f+d/2) : /(2) with { f = hslider("v:[1]source/squarefreq", 220, 20, 2000, 1); d = hslider("v:[1]source/squaredelta", 2, 0.05, 10, 0.01); }; output = /(att) with { att = hslider("v:output/att[scale:log]", 5, 1, 10000, 0.1); };
83a1c421ad4a295f4f0066f57a0c9b5a369e6aebf32dace241b63af14988c21b
elk-community/faust-plugins
phaser.dsp
declare name "phaser"; declare version "0.0"; declare author "JOS, revised by RM"; declare description "Phaser demo application."; import("stdfaust.lib"); process = dm.phaser2_demo;
https://raw.githubusercontent.com/elk-community/faust-plugins/79096404d4b4334dba512a3e3a8104afefb9db8d/fx/phaser.dsp
faust
declare name "phaser"; declare version "0.0"; declare author "JOS, revised by RM"; declare description "Phaser demo application."; import("stdfaust.lib"); process = dm.phaser2_demo;
0038b9245b5a577327490caed24de1baa015afd016b7d311cc8870c566cde486
thomaschhh/SoundSynthesis
PyFCov-19.1.tmp.dsp
import("stdfaust.lib"); noiseGroup(x) = hgroup("[0]Noise", x); noiseVol = noiseGroup(hslider("noiseVol", 0, 0, 2, 0.001) : si.smoo); noiseCO = noiseGroup(hslider("noiseCO", 100, 100, 2000, 0.1) : si.smoo); noiseLfoFreq = noiseGroup(hslider("noiseLfoFreq", 0, 0, 7, 0.01) : si.smoo); noiseLFO = os.lf_saw(noiseLfoFreq); noise = noiseVol * noiseLFO * no.noise : fi.lowpass(4, noiseCO); masterVol = noiseGroup(hslider("Volume", 0, 0, 1, 0.01))*2 : si.smoo; process = (hgroup("Channels", par(i, 16, partial(i))), (noise <: _,_) :> *(masterVol),*(masterVol)) with { partial(j) = vgroup("[%2j]BL%j", ((os.pulsetrain(freq, duty)*gainPulse, os.osc(freq)*gainSine, os.triangle(freq)*gainTriang, os.sawtooth(freq)*gainSaw) :> fi.lowpass(2, cutoff) * gain * 1/16) * (1-checkbox("[9]Mute")) <: *(1-pan),*(pan)) with { freq = nentry("[0]freq", 200, 60, 1000, 0.01) : si.smoo; gain = vslider("[3]gain[scale:exp]",0.5 ,0 ,1 , 0.001) : si.smoo; duty = nentry("[2]duty[style:knob]", 0.5, 0.001, 0.999, 0.001) : si.smoo; cutoff = vslider("[4]cutoff", 500, 60, 3000, 1) : si.smoo; pan = nentry("[1]pan", 0.5, 0.0, 1, 0.001) : si.smoo; gainPulse = nentry("[7]gainPul[style:knob]",0.5 ,0 ,1 , 0.001) : si.smoo; gainSine = nentry("[6]gainSin[style:knob]",0.5 ,0 ,1 , 0.001) : si.smoo; gainTriang = nentry("[5]gainTri[style:knob]",0.5 ,0 ,1 , 0.001) : si.smoo; gainSaw = nentry("[8]gainSaw[style:knob]",0.5 ,0 ,1 , 0.001) : si.smoo; }; };
https://raw.githubusercontent.com/thomaschhh/SoundSynthesis/dd271d03f01e57467713a35c6ee278e1d57148d4/Code/Faust/PyFCov-19/PyFCov-19.1.tmp.dsp
faust
import("stdfaust.lib"); noiseGroup(x) = hgroup("[0]Noise", x); noiseVol = noiseGroup(hslider("noiseVol", 0, 0, 2, 0.001) : si.smoo); noiseCO = noiseGroup(hslider("noiseCO", 100, 100, 2000, 0.1) : si.smoo); noiseLfoFreq = noiseGroup(hslider("noiseLfoFreq", 0, 0, 7, 0.01) : si.smoo); noiseLFO = os.lf_saw(noiseLfoFreq); noise = noiseVol * noiseLFO * no.noise : fi.lowpass(4, noiseCO); masterVol = noiseGroup(hslider("Volume", 0, 0, 1, 0.01))*2 : si.smoo; process = (hgroup("Channels", par(i, 16, partial(i))), (noise <: _,_) :> *(masterVol),*(masterVol)) with { partial(j) = vgroup("[%2j]BL%j", ((os.pulsetrain(freq, duty)*gainPulse, os.osc(freq)*gainSine, os.triangle(freq)*gainTriang, os.sawtooth(freq)*gainSaw) :> fi.lowpass(2, cutoff) * gain * 1/16) * (1-checkbox("[9]Mute")) <: *(1-pan),*(pan)) with { freq = nentry("[0]freq", 200, 60, 1000, 0.01) : si.smoo; gain = vslider("[3]gain[scale:exp]",0.5 ,0 ,1 , 0.001) : si.smoo; duty = nentry("[2]duty[style:knob]", 0.5, 0.001, 0.999, 0.001) : si.smoo; cutoff = vslider("[4]cutoff", 500, 60, 3000, 1) : si.smoo; pan = nentry("[1]pan", 0.5, 0.0, 1, 0.001) : si.smoo; gainPulse = nentry("[7]gainPul[style:knob]",0.5 ,0 ,1 , 0.001) : si.smoo; gainSine = nentry("[6]gainSin[style:knob]",0.5 ,0 ,1 , 0.001) : si.smoo; gainTriang = nentry("[5]gainTri[style:knob]",0.5 ,0 ,1 , 0.001) : si.smoo; gainSaw = nentry("[8]gainSaw[style:knob]",0.5 ,0 ,1 , 0.001) : si.smoo; }; };
18e14a06e3a85a6b221e767c205e108d963287b0346c7ca81f1b78945b563d33
rasmusnuko/FaustCode
doppler.dsp
import("stdfaust.lib"); delay(dSec) = de.delay(ma.SR, d) with{ d = dSec * ma.SR; }; del = hslider("d (secs)", 1, 0, 5, 0.01) : si.smoo; doppler(freq, index) = delay(LFO*index) with{ LFO = os.osc(freq) * 0.5 + 0.5; }; freq = hslider("freq", 1, 0, 1, 0.01); index = hslider("index", 1, 0, 1, 0.01); process = doppler(freq, index) <: _,_;
https://raw.githubusercontent.com/rasmusnuko/FaustCode/f58d7a5d35d28a644e73903ab530fcdce314dfd6/doppler.dsp
faust
import("stdfaust.lib"); delay(dSec) = de.delay(ma.SR, d) with{ d = dSec * ma.SR; }; del = hslider("d (secs)", 1, 0, 5, 0.01) : si.smoo; doppler(freq, index) = delay(LFO*index) with{ LFO = os.osc(freq) * 0.5 + 0.5; }; freq = hslider("freq", 1, 0, 1, 0.01); index = hslider("index", 1, 0, 1, 0.01); process = doppler(freq, index) <: _,_;
152398e0e34351e64a2f67d88227b60ef6848e1aa531329de56decf0e846660f
matthiasmeissen/sound-generator
engine_02_220305.dsp
import("stdfaust.lib"); freq = hslider("freq",60,20,20000,0.01) : ba.midikey2hz; attack = hslider("attack", 0.02, 0, 2, 0.01); release = hslider("release", 0.6, 0, 2, 0.01); gate = button("gate"); gain = hslider("gain",0.1,0,1,0.01); env1 = gate : en.adsr(attack, 0, 1, release); osc1 = os.oscsin(freq) * gain; osc2 = os.oscsin(freq / 2) * gain; osc = (osc1 + osc2) * env1; process = osc <: _,_;
https://raw.githubusercontent.com/matthiasmeissen/sound-generator/4ef23e9aa9b0ee3df0e6183b40367c4c423279c6/engines/engine_02_220305.dsp
faust
import("stdfaust.lib"); freq = hslider("freq",60,20,20000,0.01) : ba.midikey2hz; attack = hslider("attack", 0.02, 0, 2, 0.01); release = hslider("release", 0.6, 0, 2, 0.01); gate = button("gate"); gain = hslider("gain",0.1,0,1,0.01); env1 = gate : en.adsr(attack, 0, 1, release); osc1 = os.oscsin(freq) * gain; osc2 = os.oscsin(freq / 2) * gain; osc = (osc1 + osc2) * env1; process = osc <: _,_;
0eaf6e49b7b58c536e340d15a180bfab0828cabcf0a9de44bf40f52e53bde013
shakfu/soundlab
snd.dsp
import("stdfaust.lib"); process = 0,_~+(1):soundfile("son[url:{'snd.wav'}]",2):!,!,_,_;
https://raw.githubusercontent.com/shakfu/soundlab/2941e0ee74d7ade8992e5f2e3b90c7765ec1946b/faust/play_sound/snd.dsp
faust
import("stdfaust.lib"); process = 0,_~+(1):soundfile("son[url:{'snd.wav'}]",2):!,!,_,_;
7b2fb080550f0b4ad9972d468795f39503519032e40fe442b5b8a4bdb85d2731
alainbonardi/fildesoi1_2_3
fildesoi3soundprocess.dsp
//--------------------------------------------------------------------------------------// //-------------------------------fildesoi12octo.dsp-------------------------------------// // //-------------------------BY ALAIN BONARDI - 2016 - 2022-------------------------------// //--------------------------------------------------------------------------------------// // import("stdfaust.lib"); import("fildesoi3.lib"); process = globalProcess;
https://raw.githubusercontent.com/alainbonardi/fildesoi1_2_3/b9b86fa8628ebb7523e988ea7c906f364872ed41/faustCodes/fildesoi3soundprocess.dsp
faust
--------------------------------------------------------------------------------------// -------------------------------fildesoi12octo.dsp-------------------------------------// -------------------------BY ALAIN BONARDI - 2016 - 2022-------------------------------// --------------------------------------------------------------------------------------//
import("stdfaust.lib"); import("fildesoi3.lib"); process = globalProcess;
28c71c6e0aa879bf275603181dfd3ce7ac26448859e9a8ac8054bbabf9840809
alainbonardi/fildesoi1_2_3
fildesoi12stereo.dsp
//--------------------------------------------------------------------------------------// //-------------------------------fildesoi12stereo.dsp-----------------------------------// // //-------------------------BY ALAIN BONARDI - 2016 - 2022-------------------------------// //--------------------------------------------------------------------------------------// // import("stdfaust.lib"); import("fildesoi12.lib"); process = completeProcess2;
https://raw.githubusercontent.com/alainbonardi/fildesoi1_2_3/b8fdaf1bd86412a255a6362221367b57471b0615/faustCodes/fildesoi12stereo.dsp
faust
--------------------------------------------------------------------------------------// -------------------------------fildesoi12stereo.dsp-----------------------------------// -------------------------BY ALAIN BONARDI - 2016 - 2022-------------------------------// --------------------------------------------------------------------------------------//
import("stdfaust.lib"); import("fildesoi12.lib"); process = completeProcess2;
28f4eecbda2c82bbb6eb2aba85603e010f7d7c63d4d75ce8e81ffde4188e1a4d
alainbonardi/fildesoi1_2_3
fildesoi12quadri.dsp
//--------------------------------------------------------------------------------------// //-------------------------------fildesoi12quadri.dsp-----------------------------------// // //-------------------------BY ALAIN BONARDI - 2016 - 2022-------------------------------// //--------------------------------------------------------------------------------------// // import("stdfaust.lib"); import("fildesoi12.lib"); process = completeProcess4;
https://raw.githubusercontent.com/alainbonardi/fildesoi1_2_3/b8fdaf1bd86412a255a6362221367b57471b0615/faustCodes/fildesoi12quadri.dsp
faust
--------------------------------------------------------------------------------------// -------------------------------fildesoi12quadri.dsp-----------------------------------// -------------------------BY ALAIN BONARDI - 2016 - 2022-------------------------------// --------------------------------------------------------------------------------------//
import("stdfaust.lib"); import("fildesoi12.lib"); process = completeProcess4;
0aecb9ebc5c37547ceab2c17854ff0923a7cf57d9bf9341ecbd2cfade3d92b1b
alainbonardi/fildesoi1_2_3
fildesoi12octo.dsp
//--------------------------------------------------------------------------------------// //-------------------------------fildesoi12octo.dsp-------------------------------------// // //-------------------------BY ALAIN BONARDI - 2016 - 2022-------------------------------// //--------------------------------------------------------------------------------------// // import("stdfaust.lib"); import("fildesoi12.lib"); process = completeProcess8;
https://raw.githubusercontent.com/alainbonardi/fildesoi1_2_3/b8fdaf1bd86412a255a6362221367b57471b0615/faustCodes/fildesoi12octo.dsp
faust
--------------------------------------------------------------------------------------// -------------------------------fildesoi12octo.dsp-------------------------------------// -------------------------BY ALAIN BONARDI - 2016 - 2022-------------------------------// --------------------------------------------------------------------------------------//
import("stdfaust.lib"); import("fildesoi12.lib"); process = completeProcess8;
3acf33344cddf8042574b6b61f37d83e1f32a59f0e1aaf87e992c474acfdfb68
publicsamples/Quetzalcoatl
02Input.dsp
import("stdfaust.lib"); freq = hslider("Frequency[OWL:A]", 60, 60, 440, 1); process = os.osc(freq);
https://raw.githubusercontent.com/publicsamples/Quetzalcoatl/547f2585651af68b32072846088cc97f3c80acc0/Quetzalcoatl/DspNetworks/CodeLibrary/faust/02Input.dsp
faust
import("stdfaust.lib"); freq = hslider("Frequency[OWL:A]", 60, 60, 440, 1); process = os.osc(freq);
628b86e536a19d0b7188f30be26074fae9dc1b8582f22e54c352026362ec3b5f
silentorb/marloth-kotlin
pistolFire.dsp
import("stdfaust.lib"); process = no.noise : @(73);
https://raw.githubusercontent.com/silentorb/marloth-kotlin/03a1e2c082343ee3d64c8d1ffadad156fca6f9e1/storage/assets/audio/faust/sounds/pistolFire.dsp
faust
import("stdfaust.lib"); process = no.noise : @(73);
4aade39f1d9b54da4f5e1e12d0a47a82799ded5b13c3551fdf9c1ad14760f054
ohmtech-rdi/eurorack-blocks
Faust.dsp
// Faust.dsp import("stdfaust.lib"); process = dm.phaser2_demo;
https://raw.githubusercontent.com/ohmtech-rdi/eurorack-blocks/32357535205e6770ba214b46d7653420fe26c6cb/test/faust2/Faust.dsp
faust
Faust.dsp
import("stdfaust.lib"); process = dm.phaser2_demo;
35bb1db7db4c1ee9aaa5ec5ff13221950eb49eb769c2ec3e803daee0dbcb98ee
ohmtech-rdi/eurorack-blocks
Flanger.dsp
// Flanger.dsp import("stdfaust.lib"); process = dm.flanger_demo;
https://raw.githubusercontent.com/ohmtech-rdi/eurorack-blocks/32357535205e6770ba214b46d7653420fe26c6cb/samples/faust/Flanger.dsp
faust
Flanger.dsp
import("stdfaust.lib"); process = dm.flanger_demo;
ab61e4baa91899836bbbef0a4422290667f4360860038664083660acb3d1347b
polyeffects/PolyLV2
harm_trem.dsp
import("stdfaust.lib"); // fastpow2 = ffunction(float fastpow2(float), "fast_pow2.h", ""); bpm = vslider("[0] BPM [midi:ctrl 63] [style:knob]", 120.0, 15.00, 300, 0.1) : si.smooth(0.999); cross = vslider("[1] CrossoverFreq [midi:ctrl 64] [style:knob]", 800.0, 20.00, 10000, 1) : si.smooth(0.999); depth = hslider("[2] depth",0,0,1,0.01) : si.smooth(0.999); freq = bpm / 60; lfo = os.osc(freq); multiply_a = 1 - depth*(lfo*0.5 + 0.5); multiply_b = 1 - depth*((1-lfo)*0.5 + 0.5); tremolo(a,b) = a*multiply_a, b*multiply_b :> _; process = fi.filterbank(3,(cross)) : tremolo;
https://raw.githubusercontent.com/polyeffects/PolyLV2/a363599f74fd1bce0b3744221e1883fdbe89c557/poly_harm_trem/harm_trem.dsp
faust
fastpow2 = ffunction(float fastpow2(float), "fast_pow2.h", "");
import("stdfaust.lib"); bpm = vslider("[0] BPM [midi:ctrl 63] [style:knob]", 120.0, 15.00, 300, 0.1) : si.smooth(0.999); cross = vslider("[1] CrossoverFreq [midi:ctrl 64] [style:knob]", 800.0, 20.00, 10000, 1) : si.smooth(0.999); depth = hslider("[2] depth",0,0,1,0.01) : si.smooth(0.999); freq = bpm / 60; lfo = os.osc(freq); multiply_a = 1 - depth*(lfo*0.5 + 0.5); multiply_b = 1 - depth*((1-lfo)*0.5 + 0.5); tremolo(a,b) = a*multiply_a, b*multiply_b :> _; process = fi.filterbank(3,(cross)) : tremolo;
d151c18e7c125b8389ac27d311a731556604f3d171e7c2bc21d57e5d436675c7
ohmtech-rdi/eurorack-blocks
Faust.dsp
// Faust.dsp import("stdfaust.lib"); s = soundfile("foo",2); process = so.loop(s,0) <: _,_ ;
https://raw.githubusercontent.com/ohmtech-rdi/eurorack-blocks/32357535205e6770ba214b46d7653420fe26c6cb/test/faust3/Faust.dsp
faust
Faust.dsp
import("stdfaust.lib"); s = soundfile("foo",2); process = so.loop(s,0) <: _,_ ;
b012806e5e842ad6eb649342e9d0a408dacb5cfe36cdc5eeae0cf0a0de05564b
johannphilippe/paw2022
control_sequencer.dsp
import("stdfaust.lib"); amp = hslider("amp", 0.2, 0, 1, 0.01); speed = hslider("speed", 1, 0.1, 10, 0.01) : si.smoo; SIZE = 8; ctl_sequencer = steps : sum(n, SIZE, res(_,n)) with { steps = hgroup("steps", par(n, SIZE, checkbox("%n"))); beat = ba.beat(speed*60); incr = _~+(beat), SIZE : %; res(sig, n) = sig : *(incr==n) : *(beat); }; trigger = steps : par(i,SIZE, _<: (_>_@1) : _) :> 1-_ ; playhead = (1:+~_*trigger: _*1); // _*1 is speed bt = ctl_sequencer : en.ar(0,0.2); process = os.sawtooth(100) * amp * bt;
https://raw.githubusercontent.com/johannphilippe/paw2022/d9b921a44e72bab11e457a13a1b43a4eabca53df/examples/control_sequencer.dsp
faust
_*1 is speed
import("stdfaust.lib"); amp = hslider("amp", 0.2, 0, 1, 0.01); speed = hslider("speed", 1, 0.1, 10, 0.01) : si.smoo; SIZE = 8; ctl_sequencer = steps : sum(n, SIZE, res(_,n)) with { steps = hgroup("steps", par(n, SIZE, checkbox("%n"))); beat = ba.beat(speed*60); incr = _~+(beat), SIZE : %; res(sig, n) = sig : *(incr==n) : *(beat); }; trigger = steps : par(i,SIZE, _<: (_>_@1) : _) :> 1-_ ; bt = ctl_sequencer : en.ar(0,0.2); process = os.sawtooth(100) * amp * bt;
5dc28b9312d3f4ad0915ac75f9c5258feec2e2fdda09c4923a00f56ab8c241a7
elaforge/karya
sine.dsp
import("stdfaust.lib"); declare description "Simple sine wave."; declare control0_pitch "Pitch signal."; declare control1_dyn "Dynamic signal."; process(pitch, dyn) = dyn * os.osc(ba.midikey2hz(pitch));
https://raw.githubusercontent.com/elaforge/karya/471a2131f5a68b3b10b1a138e6f9ed1282980a18/Synth/Faust/dsp/sine.dsp
faust
import("stdfaust.lib"); declare description "Simple sine wave."; declare control0_pitch "Pitch signal."; declare control1_dyn "Dynamic signal."; process(pitch, dyn) = dyn * os.osc(ba.midikey2hz(pitch));
039cb40a77323ec515d2c36cf877dfdb5b3a1c84a6726c6653262a244bd5ad17
elaforge/karya
effect_test_delay.dsp
import("stdfaust.lib"); declare description "Sample delay for testing."; delay = hslider("delay", 0, 0, 1024, 1); gain = hslider("gain", 1, 0, 10, 0.01); process = delay1, delay1 with { delay1 = de.delay(1024, delay) * gain; };
https://raw.githubusercontent.com/elaforge/karya/471a2131f5a68b3b10b1a138e6f9ed1282980a18/Synth/Faust/dsp/effect_test_delay.dsp
faust
import("stdfaust.lib"); declare description "Sample delay for testing."; delay = hslider("delay", 0, 0, 1024, 1); gain = hslider("gain", 1, 0, 10, 0.01); process = delay1, delay1 with { delay1 = de.delay(1024, delay) * gain; };
dbc1222508233bb76caba0b17976ce8719d630444379784e455ab179eb9c70cd
grammaton/metm
dflc_fr-plot.dsp
import("stdfaust.lib"); // corrected delay feedback in loop dflc(t,g) = (+:de.delay(ma.SR/2,int(t-1)))~*(min(0.999,g)):mem; lsweep(sec,t) = (ma.SR/2) : %(int(*(t):max(1)))~+((1/sec)'); process = os.osc(lsweep(1,1)) : dflc(12,0.708);
https://raw.githubusercontent.com/grammaton/metm/e3ca76fc8b8bbb10a0eb77a7056a6056a5c7feda/CAPITOLI/0500/CODES/REV/dflc_fr-plot.dsp
faust
corrected delay feedback in loop
import("stdfaust.lib"); dflc(t,g) = (+:de.delay(ma.SR/2,int(t-1)))~*(min(0.999,g)):mem; lsweep(sec,t) = (ma.SR/2) : %(int(*(t):max(1)))~+((1/sec)'); process = os.osc(lsweep(1,1)) : dflc(12,0.708);
38a85d52857aa6c228bad6a136325d1c19af9ee51e04d66dd11ae1d093f972e8
jatinchowdhury18/CrossroadsEffects
bench.dsp
import("stdfaust.lib"); gain_91797324 = _*1.0; gain_468d866a = _*1.0; unit_delay_c988eb83 = @(1); gain_c3e00ad4 = _*1.0; gain_469be2d7 = _*0.2; split_be6e3e92 = _ <: (gain_91797324 : gain_468d866a), (unit_delay_c988eb83 : gain_c3e00ad4), (gain_469be2d7) :> _; process = _,_ : split_be6e3e92,split_be6e3e92 : _,_;
https://raw.githubusercontent.com/jatinchowdhury18/CrossroadsEffects/9a4ece57ce439103369f6c36bc1d74bec9043d64/faust_scripts/bench.dsp
faust
import("stdfaust.lib"); gain_91797324 = _*1.0; gain_468d866a = _*1.0; unit_delay_c988eb83 = @(1); gain_c3e00ad4 = _*1.0; gain_469be2d7 = _*0.2; split_be6e3e92 = _ <: (gain_91797324 : gain_468d866a), (unit_delay_c988eb83 : gain_c3e00ad4), (gain_469be2d7) :> _; process = _,_ : split_be6e3e92,split_be6e3e92 : _,_;
41a9e010162e049ee18e6aa190a110f51278c6a7b24b877b97ad8fd4ae5894e1
TobiasKozel/GuitarD
Split.dsp
import("stdfaust.lib"); l(l, r) = l, l; r(l, r) = r, r; m(l, r) = (l + r) * 0.5, (l + r) * 0.5; s(l, r) = (l - r) * 0.5, (l - r) * 0.5; process = _, _ <: l, r, m, s;
https://raw.githubusercontent.com/TobiasKozel/GuitarD/80d5b8e6fa2eab99bbee80e6dacb5f0f482bbb52/src/nodes/split/Split.dsp
faust
import("stdfaust.lib"); l(l, r) = l, l; r(l, r) = r, r; m(l, r) = (l + r) * 0.5, (l + r) * 0.5; s(l, r) = (l - r) * 0.5, (l - r) * 0.5; process = _, _ <: l, r, m, s;
669b4f84c89c33b25577259107264e7d11b73c124e981f838fecca3b957097ff
ohmtech-rdi/eurorack-blocks
Faust.dsp
// Faust.dsp import("stdfaust.lib"); fc = hslider("freq", 1000, 100, 10000, 1); process = fi.resonlp(fc,1,0.8);
https://raw.githubusercontent.com/ohmtech-rdi/eurorack-blocks/32357535205e6770ba214b46d7653420fe26c6cb/test/faust/Faust.dsp
faust
Faust.dsp
import("stdfaust.lib"); fc = hslider("freq", 1000, 100, 10000, 1); process = fi.resonlp(fc,1,0.8);
4932b7f3566b48341dd5e7adfa9952d22a06edf7a8b53154eb196c986caaf1c0
qsdaze01/ProjetPIR
FaustSynth.dsp
import("stdfaust.lib"); freq = nentry("freq",200,50,1000,0.01); gain = nentry("gain",0.5,0,1,0.01) : si.smoo; gate = button("gate") : si.smoo; cutoff = nentry("cutoff",10000,50,10000,0.01) : si.smoo; process = os.sawtooth(freq)*gain*gate : fi.lowpass(3,cutoff) <: _,_;
https://raw.githubusercontent.com/qsdaze01/ProjetPIR/65661914ffafd1a3dc6a6ba450df5a46c8571594/OLD/Exemples/embaudio20-master/faust/FaustSynth.dsp
faust
import("stdfaust.lib"); freq = nentry("freq",200,50,1000,0.01); gain = nentry("gain",0.5,0,1,0.01) : si.smoo; gate = button("gate") : si.smoo; cutoff = nentry("cutoff",10000,50,10000,0.01) : si.smoo; process = os.sawtooth(freq)*gain*gate : fi.lowpass(3,cutoff) <: _,_;
ec63f475b7c1d17f254bc0fe22ce6db73b235a7daf9553c1b4968b6e01bdfc9f
publicsamples/Quetzalcoatl
06VoctIn.dsp
declare owl "[voct:input]"; import("stdfaust.lib"); import("owl.lib"); tune = hslider("Tune[OWL:A]", 0, -2, 2, 0.01); process = sample2hertz(tune) : os.oscs;
https://raw.githubusercontent.com/publicsamples/Quetzalcoatl/547f2585651af68b32072846088cc97f3c80acc0/Quetzalcoatl/DspNetworks/CodeLibrary/faust/06VoctIn.dsp
faust
declare owl "[voct:input]"; import("stdfaust.lib"); import("owl.lib"); tune = hslider("Tune[OWL:A]", 0, -2, 2, 0.01); process = sample2hertz(tune) : os.oscs;
cf3c13b5cf653dc8ad8800cae2d2915e6c9253cd1cc6ce050e5e018129293776
jatinchowdhury18/wdf-bakeoff
lpf2.dsp
import("stdfaust.lib"); second_order(f0, Vin) = wd.buildtree(connectionTree) with{ //declare nodes r1(i) = wd.resistor(i, R1); r2(i) = wd.resistor(i, R2); c1(i) = wd.capacitor(i, C1); c2(i) = wd.capacitor_Vout(i, C2); vin(i) = wd.u_voltage(i, Vin); //declare tree connectionTree = vin : wd.series : (r1, (wd.parallel : (c1, (wd.series: (r2, c2))))); R2 = R1; R1 = 1*10^3; C2 = C1; C1 = 1/f0*1.62*10^-4; }; process = second_order(1000);
https://raw.githubusercontent.com/jatinchowdhury18/wdf-bakeoff/05d6caeadf786b18f49785ae8d1e20d974e8c646/src/faust_wdf/lpf2.dsp
faust
declare nodes declare tree
import("stdfaust.lib"); second_order(f0, Vin) = wd.buildtree(connectionTree) with{ r1(i) = wd.resistor(i, R1); r2(i) = wd.resistor(i, R2); c1(i) = wd.capacitor(i, C1); c2(i) = wd.capacitor_Vout(i, C2); vin(i) = wd.u_voltage(i, Vin); connectionTree = vin : wd.series : (r1, (wd.parallel : (c1, (wd.series: (r2, c2))))); R2 = R1; R1 = 1*10^3; C2 = C1; C1 = 1/f0*1.62*10^-4; }; process = second_order(1000);
be6b16ef1ac57bb32894c202bcf673b6d74fad36ef4ffd8553a3e1d7af362297
elk-community/faust-plugins
zitaRevFDN.dsp
declare name "zitaRevFDN"; declare version "0.0"; declare author "JOS, Revised by RM"; declare description "Reverb demo application based on `zita_rev_fdn`."; import("stdfaust.lib"); process = dm.zita_rev_fdn_demo;
https://raw.githubusercontent.com/elk-community/faust-plugins/79096404d4b4334dba512a3e3a8104afefb9db8d/fx/zitaRevFDN.dsp
faust
declare name "zitaRevFDN"; declare version "0.0"; declare author "JOS, Revised by RM"; declare description "Reverb demo application based on `zita_rev_fdn`."; import("stdfaust.lib"); process = dm.zita_rev_fdn_demo;
90836861411deec182253f3522b633d11c6df51bfa4f45902968085c6d67f860
Fr0stbyteR/faust2wam
rev.dsp
import("stdfaust.lib"); process = _ <: dm.freeverb_demo;
https://raw.githubusercontent.com/Fr0stbyteR/faust2wam/324029ac35a233cb62b9954917ca138984daddc4/test/rev.dsp
faust
import("stdfaust.lib"); process = _ <: dm.freeverb_demo;
c2fd4e9a36bb57363c0338f30fc8f9bd26147240a302cd365500dcc2f6092840
Fr0stbyteR/faust2wam
guitar.dsp
import("stdfaust.lib"); process = pm.guitar_ui_MIDI <: _,_;
https://raw.githubusercontent.com/Fr0stbyteR/faust2wam/324029ac35a233cb62b9954917ca138984daddc4/test/guitar.dsp
faust
import("stdfaust.lib"); process = pm.guitar_ui_MIDI <: _,_;
cdaf4fbb8d150d664e084483c13d77a0b820fc1f6a374f159bf35e6cd648a08c
Fr0stbyteR/faust2wam
clarinet.dsp
import("stdfaust.lib"); process = pm.clarinet_ui_MIDI <: _,_;
https://raw.githubusercontent.com/Fr0stbyteR/faust2wam/324029ac35a233cb62b9954917ca138984daddc4/test/clarinet.dsp
faust
import("stdfaust.lib"); process = pm.clarinet_ui_MIDI <: _,_;
d097f26e41799a5e06fe36f5306cd506a191fdcfbad6f38ea46467089143f7da
unicornsasfuel/whetstone
whetstone.dsp
declare name "Whetstone Transient Shaper"; declare author "Evermind"; import("stdfaust.lib"); WINDOW = 30 / 1000; low_cutoff = hslider("v:Whetstone Transient Shaper/[2]Low Cutoff[unit:Hz]",10,10,20000,10); high_cutoff = hslider("v:Whetstone Transient Shaper/[3]High Cutoff[unit:Hz]", 20000,20,20000,10); do_monitor = button("v:Whetstone Transient Shaper/h:[4]Monitoring/[0]Monitor selected band") : ba.toggle : vbargraph("v:Whetstone Transient Shaper/h:[4]Monitoring/[1]ON[style:led]", 0, 1); attack = hslider("v:Whetstone Transient Shaper/[0]Attack[unit:dB]",0,-12,+12,0.1) : ba.db2linear : si.smoo; sustain = hslider("v:Whetstone Transient Shaper/[1]Sustain[unit:dB]",0,-12,+12,0.1) : ba.db2linear : si.smoo; process = sp.stereoize(split_shape_merge); split_shape_merge = _ : split_active_and_passive : (_ <: _ * get_gain(_ : change)), ba.bypass1(do_monitor != 1, *(0)) :> _; //split signal into two parts $active, $passive //$active is resonant low- and high-passed between low_cutoff and high_cutoff respectively. This is fed directly to output if monitoring is on //$passive is resonant high- and low-passed between low_cutoff and high-cutoff respectively split_active_and_passive = _ <: (fi.resonhp(low_cutoff, 1, 1) : fi.resonlp(high_cutoff, 1, 1)), (fi.resonlp(low_cutoff, 1, 1) + fi.resonhp(high_cutoff, 1, 1)); //$active is analyzed with RMS over N ms divided by a lag filter applied to the RMS to get a rise speed over time to get $change change = ba.slidingRMS(ba.sec2samp(WINDOW)) <: _ - si.lag_ud(WINDOW, WINDOW); //If $change is positive, $gain is $attack //If $change is negative, $gain is $sustain //Smooth $gain get_gain(x) = ba.if(x > 0, attack,sustain) : si.lag_ud(WINDOW,WINDOW);
https://raw.githubusercontent.com/unicornsasfuel/whetstone/23b31ecbc35a8818df3b9925c017a5229308b684/whetstone.dsp
faust
split signal into two parts $active, $passive $active is resonant low- and high-passed between low_cutoff and high_cutoff respectively. This is fed directly to output if monitoring is on $passive is resonant high- and low-passed between low_cutoff and high-cutoff respectively $active is analyzed with RMS over N ms divided by a lag filter applied to the RMS to get a rise speed over time to get $change If $change is positive, $gain is $attack If $change is negative, $gain is $sustain Smooth $gain
declare name "Whetstone Transient Shaper"; declare author "Evermind"; import("stdfaust.lib"); WINDOW = 30 / 1000; low_cutoff = hslider("v:Whetstone Transient Shaper/[2]Low Cutoff[unit:Hz]",10,10,20000,10); high_cutoff = hslider("v:Whetstone Transient Shaper/[3]High Cutoff[unit:Hz]", 20000,20,20000,10); do_monitor = button("v:Whetstone Transient Shaper/h:[4]Monitoring/[0]Monitor selected band") : ba.toggle : vbargraph("v:Whetstone Transient Shaper/h:[4]Monitoring/[1]ON[style:led]", 0, 1); attack = hslider("v:Whetstone Transient Shaper/[0]Attack[unit:dB]",0,-12,+12,0.1) : ba.db2linear : si.smoo; sustain = hslider("v:Whetstone Transient Shaper/[1]Sustain[unit:dB]",0,-12,+12,0.1) : ba.db2linear : si.smoo; process = sp.stereoize(split_shape_merge); split_shape_merge = _ : split_active_and_passive : (_ <: _ * get_gain(_ : change)), ba.bypass1(do_monitor != 1, *(0)) :> _; split_active_and_passive = _ <: (fi.resonhp(low_cutoff, 1, 1) : fi.resonlp(high_cutoff, 1, 1)), (fi.resonlp(low_cutoff, 1, 1) + fi.resonhp(high_cutoff, 1, 1)); change = ba.slidingRMS(ba.sec2samp(WINDOW)) <: _ - si.lag_ud(WINDOW, WINDOW); get_gain(x) = ba.if(x > 0, attack,sustain) : si.lag_ud(WINDOW,WINDOW);
60bb609f9039836eb1d3ca37016be3325b6aa1b1461366ef291cf9ab751f8e7c
PierreKy-org/plugins_server_webaudiomodules
freeverb.dsp
declare name "freeverb"; declare version "0.0"; declare author "RM"; declare description "Freeverb demo application."; import("stdfaust.lib"); process = dm.freeverb_demo;
https://raw.githubusercontent.com/PierreKy-org/plugins_server_webaudiomodules/a8162fbb0a9341ad67d3cbb78714e7a2f7c56b0b/plugins/freeverb/freeverb.dsp
faust
declare name "freeverb"; declare version "0.0"; declare author "RM"; declare description "Freeverb demo application."; import("stdfaust.lib"); process = dm.freeverb_demo;
47903bd783cd00ae9e7e57945d5b4f175b9f26c6ae43fbf3fc04ae8ab6990f80
PierreKy-org/plugins_server_webaudiomodules
greyhole.dsp
declare name "greyhole"; declare version "0.1"; declare author "GRAME"; declare description "Greyhole demo application."; import("stdfaust.lib"); process = dm.greyhole_demo;
https://raw.githubusercontent.com/PierreKy-org/plugins_server_webaudiomodules/a8162fbb0a9341ad67d3cbb78714e7a2f7c56b0b/plugins/greyhole/greyhole.dsp
faust
declare name "greyhole"; declare version "0.1"; declare author "GRAME"; declare description "Greyhole demo application."; import("stdfaust.lib"); process = dm.greyhole_demo;
41ad9c2118a8931cd4078ea80ef4788c87b92a1ce34de3f085baceda304078e7
VCVRack/VCV-Prototype
organ.dsp
import("stdfaust.lib"); import("rack.lib"); vol = hslider("vol [knob:1]", 0.3, 0, 10, 0.01); pan = hslider("pan [knob:2]", 0.5, 0, 1, 0.01); attack = hslider("attack", 0.01, 0, 1, 0.001); decay = hslider("decay", 0.3, 0, 1, 0.001); sustain = hslider("sustain", 0.5, 0, 1, 0.01); release = hslider("release", 0.2, 0, 1, 0.001); panner(c) = _ <: *(1-c), *(c); voice(freq) = os.osc(freq) + 0.5*os.osc(2*freq) + 0.25*os.osc(3*freq); /* Additive synth: 3 sine oscillators with adsr envelop. Use the 3 first VC inputs to control pitch, gate and velocity. */ process(pitch, gate, vel) = voice(freq) * en.adsr(attack, decay, sustain, release, gate) * vel : *(vol) : panner(pan) with { freq = cv_pitch2freq(pitch); };
https://raw.githubusercontent.com/VCVRack/VCV-Prototype/6980f0f0aca2517ea4a44e749515fe868d4ff532/examples/organ.dsp
faust
Additive synth: 3 sine oscillators with adsr envelop. Use the 3 first VC inputs to control pitch, gate and velocity.
import("stdfaust.lib"); import("rack.lib"); vol = hslider("vol [knob:1]", 0.3, 0, 10, 0.01); pan = hslider("pan [knob:2]", 0.5, 0, 1, 0.01); attack = hslider("attack", 0.01, 0, 1, 0.001); decay = hslider("decay", 0.3, 0, 1, 0.001); sustain = hslider("sustain", 0.5, 0, 1, 0.01); release = hslider("release", 0.2, 0, 1, 0.001); panner(c) = _ <: *(1-c), *(c); voice(freq) = os.osc(freq) + 0.5*os.osc(2*freq) + 0.25*os.osc(3*freq); process(pitch, gate, vel) = voice(freq) * en.adsr(attack, decay, sustain, release, gate) * vel : *(vol) : panner(pan) with { freq = cv_pitch2freq(pitch); };
23a62297c861863ff9d20d9d614dd9fe988f4af79ff2079a7111cb5e7b77a740
jatinchowdhury18/CrossroadsEffects
evolve_struct_Soft-clip.dsp
import("stdfaust.lib"); gain_b57ed9d4 = _*1.999997573265699; cubic_5e4a807e = min(1) : max(-1) : cubic with{ cubic(x) = x - x*x*x/3; }; unit_delay_055b2ec0 = @(1); gain_8f965464 = _*-2.1952812579798725e-05; split_2a8b6c89 = _ <: (gain_b57ed9d4 : cubic_5e4a807e), (unit_delay_055b2ec0 : gain_8f965464) :> _; process = _,_ : split_2a8b6c89,split_2a8b6c89 : _,_;
https://raw.githubusercontent.com/jatinchowdhury18/CrossroadsEffects/9a4ece57ce439103369f6c36bc1d74bec9043d64/faust_scripts/evolve_struct_Soft-clip.dsp
faust
import("stdfaust.lib"); gain_b57ed9d4 = _*1.999997573265699; cubic_5e4a807e = min(1) : max(-1) : cubic with{ cubic(x) = x - x*x*x/3; }; unit_delay_055b2ec0 = @(1); gain_8f965464 = _*-2.1952812579798725e-05; split_2a8b6c89 = _ <: (gain_b57ed9d4 : cubic_5e4a807e), (unit_delay_055b2ec0 : gain_8f965464) :> _; process = _,_ : split_2a8b6c89,split_2a8b6c89 : _,_;
28dcceb34623df2f7dcb726817adf36779705e37a8d2c73512101e1a45a8d519
Fr0stbyteR/faust2wam
p-dj.dsp
import("stdfaust.lib"); process = ba.pulsen(1, 10000) : pm.djembe(60, 0.3, 0.4, 1);
https://raw.githubusercontent.com/Fr0stbyteR/faust2wam/324029ac35a233cb62b9954917ca138984daddc4/test/p-dj.dsp
faust
import("stdfaust.lib"); process = ba.pulsen(1, 10000) : pm.djembe(60, 0.3, 0.4, 1);
0ac01fd0f1f9790f3b30ccdd95c186b9faaa1278cf0caa642dc5278d89c4caca
pingdynasty/OwlPatches
Echo.dsp
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/pingdynasty/OwlPatches/2be8a65bb257b53ee7ee0b9d4b5a1ad249e16dab/Faust/Echo.dsp
faust
----------------------------------------------- A Simple Echo -----------------------------------------------
declare name "echo"; declare version "1.0"; declare author "Grame"; declare license "BSD"; declare copyright "(c)GRAME 2006"; import("stdfaust.lib"); process = vgroup("echo-simple", ef.echo1s);
a88ee3f850cffafc6a16ee12bd801ad7266fb101560886b13f9c7ead0f157b24
PierreKy-org/plugins_server_webaudiomodules
distortion.dsp
declare name "distortion"; declare version "0.0"; declare author "JOS, revised by RM"; declare description "Distortion demo application."; import("stdfaust.lib"); process = dm.cubicnl_demo;
https://raw.githubusercontent.com/PierreKy-org/plugins_server_webaudiomodules/9b1b3b6d814bdb15a5f0cdd41695f8b987dbf600/pluginsWithoutFetch/distortion/distortion.dsp
faust
declare name "distortion"; declare version "0.0"; declare author "JOS, revised by RM"; declare description "Distortion demo application."; import("stdfaust.lib"); process = dm.cubicnl_demo;
732b06c521ceb2d86789612ad86346b603897094a99e69658a646dc2537cb905
publicsamples/Quetzalcoatl
03Harmonics.dsp
import("stdfaust.lib"); freq = hslider("Base frequency[OWL:AA]", 80, 60, 120, 0.01); process = par( i, 8, hslider("Harmonic %i[OWL:%i]", 1 / (1 + i), 0, 1, 0.001) * os.oscs(i * freq + freq) ) :> _ : *(0.125) <: _, _;
https://raw.githubusercontent.com/publicsamples/Quetzalcoatl/547f2585651af68b32072846088cc97f3c80acc0/Quetzalcoatl/DspNetworks/CodeLibrary/faust/03Harmonics.dsp
faust
import("stdfaust.lib"); freq = hslider("Base frequency[OWL:AA]", 80, 60, 120, 0.01); process = par( i, 8, hslider("Harmonic %i[OWL:%i]", 1 / (1 + i), 0, 1, 0.001) * os.oscs(i * freq + freq) ) :> _ : *(0.125) <: _, _;
f2f4f3f90238d479bc5bc5570f4f806d5740692dc961b6b51cdef784df655744
baconpaul/faust-toy-surge-osc
justASin.dsp
declare author "Paul Walker"; declare license "GPLv3"; declare name "just-a-sin"; import("stdfaust.lib"); process(extFMSignal) = os.osc(freq+(extFMSignal * extFMDep))<:(_,_); freq = hslider ("[0]freq", 440, 27.5, 3520, 0.1) :si.smoo; extFMDep = hslider ("[1]fmdepth", 0.0, 0.0, 1.0, 0.1 ) :si.smoo;
https://raw.githubusercontent.com/baconpaul/faust-toy-surge-osc/97d0dfb79d27b97f3b062883ed2dee3222fa5da2/faust-code/justASin.dsp
faust
declare author "Paul Walker"; declare license "GPLv3"; declare name "just-a-sin"; import("stdfaust.lib"); process(extFMSignal) = os.osc(freq+(extFMSignal * extFMDep))<:(_,_); freq = hslider ("[0]freq", 440, 27.5, 3520, 0.1) :si.smoo; extFMDep = hslider ("[1]fmdepth", 0.0, 0.0, 1.0, 0.1 ) :si.smoo;
8187b0020aaad8b0df00572f59b74236d8857dd10d042ce3adb139394e230d58
pchdev/faust-utilities
pinknoise_channel_tester.dsp
import("stdfaust.lib"); // number of output channels nchannels = 14; chmax = 24; // chwave = waveform { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 21, 22, 23, 24 }; // chtable = chwave,_ : rdtable; // max-like gate // note: if n == 0, gate is closed (which is not the case with ba.selectoutn) */ gate(o,n,s) = par(i,o, s*((n!=0)&(n==i+1))); // resettable counter rcounter(t,r) = (t > mem(t)) : (+ : *(r)) ~ _; ms2samples(ms) = ms/1000*ma.SR; pn = no.pink_noise * active * gain; active = checkbox("on/off"); length = hslider("burst-length", 500, 250, 1000, 1); offset = nentry("channel offset", 0, 0, nchannels, 1); reset = 1-button("reset"); channel = _ <: attach(_: vbargraph("channel[style:numerical]",0, nchannels)); gain = hslider("gain", -12, -24, 0, 0.1) : si.smooth(0.5) : ba.db2linear; nsamples = ms2samples(length); // we count from 0 to 2nsamples // if <= nsamples, signal passes // otherwise we output 0 phase = ba.sweep(active*reset, nsamples*2); burst = phase <= nsamples; // we increment channel index whenever sample counter reaches nsamples-1 // we wrap it around nchannels and add the offset // index = chwave, (rcounter(burst, reset) % nchannels + offset : int) : rdtable : channel; index = rcounter(burst, reset) % nchannels + offset + 1 : channel; process = gate(nchannels, index*burst, pn);
https://raw.githubusercontent.com/pchdev/faust-utilities/62cb7a0fe84b5fcc3e02d4e1ad62df4f14b886e8/pinknoise_channel_tester.dsp
faust
number of output channels chwave = waveform { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 21, 22, 23, 24 }; chtable = chwave,_ : rdtable; max-like gate note: if n == 0, gate is closed (which is not the case with ba.selectoutn) */ resettable counter we count from 0 to 2nsamples if <= nsamples, signal passes otherwise we output 0 we increment channel index whenever sample counter reaches nsamples-1 we wrap it around nchannels and add the offset index = chwave, (rcounter(burst, reset) % nchannels + offset : int) : rdtable : channel;
import("stdfaust.lib"); nchannels = 14; chmax = 24; gate(o,n,s) = par(i,o, s*((n!=0)&(n==i+1))); rcounter(t,r) = (t > mem(t)) : (+ : *(r)) ~ _; ms2samples(ms) = ms/1000*ma.SR; pn = no.pink_noise * active * gain; active = checkbox("on/off"); length = hslider("burst-length", 500, 250, 1000, 1); offset = nentry("channel offset", 0, 0, nchannels, 1); reset = 1-button("reset"); channel = _ <: attach(_: vbargraph("channel[style:numerical]",0, nchannels)); gain = hslider("gain", -12, -24, 0, 0.1) : si.smooth(0.5) : ba.db2linear; nsamples = ms2samples(length); phase = ba.sweep(active*reset, nsamples*2); burst = phase <= nsamples; index = rcounter(burst, reset) % nchannels + offset + 1 : channel; process = gate(nchannels, index*burst, pn);
f7bed0a9e45d0edc563bbbdaf35fd710839c393a2bd7538aaea23d89694fdcd8
clearly-broken-software/Uprising
NoiseOsc.dsp
import("stdfaust.lib"); process = no.noise * hslider("noiseGain",1,0,1,0.01);
https://raw.githubusercontent.com/clearly-broken-software/Uprising/89f5b49d90cd47611da7e7dc2009061768716b4c/plugins/uprising/dsp/faust/NoiseOsc.dsp
faust
import("stdfaust.lib"); process = no.noise * hslider("noiseGain",1,0,1,0.01);
fb9443b0bd1c4e77b06857b6601ba7a8db6d048931e05ef48d5bf835e0d28dd9
SuyashRamteke/FAUST---Real-time-Audio-Signal-Processing
triangle (1).dsp
import("stdfaust.lib"); phase(f) = f/ma.SR : (+,1:fmod) ~ _; triangle(f) = abs(phase(f)-0.5); process = triangle(hslider("freq", 440, 40, 8000, 1));
https://raw.githubusercontent.com/SuyashRamteke/FAUST---Real-time-Audio-Signal-Processing/ca24b8d650b6d77435d8128b0aa8e4d8b6022c30/triangle%20(1).dsp
faust
import("stdfaust.lib"); phase(f) = f/ma.SR : (+,1:fmod) ~ _; triangle(f) = abs(phase(f)-0.5); process = triangle(hslider("freq", 440, 40, 8000, 1));