_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
3828b2cddb5f7c7092cbd4eb9e7181024d1ac83176899f5754613c2e203197db
knisterpapier/esp32a1s-audio-concept
coresignal.dsp
//import("stdfaust.lib"); //process = dm.zita_rev_fdn_demo; //other reverb algorythm import("stdfaust.lib"); //process = dm.fdnrev0_demo(4,3,1); process = dm.stereo_reverb_tester; // own delay //import("stdfaust.lib"); //own_delay = hslider("own_delay",15000,2000,20000,500); //dry_wet = hslider("dry_wet",0.5,0,1,0.1); //process = + <: +~@(own_delay)*0.5*(dry_wet),*(1-dry_wet):> +; //simple pipeline //import ("stdfaust.lib"); //process = +; // own reverbarator // A = hslider("label",0.5,0.1,0.9,0.05); // B = hslider("delay",15000,2000,20000,500); // process = + : (+<:@(B),*(A))~*(A) : +;
https://raw.githubusercontent.com/knisterpapier/esp32a1s-audio-concept/b7024f01bd90801e0ca86dc694f26af186c1aed3/src/coresignal.dsp
faust
import("stdfaust.lib"); process = dm.zita_rev_fdn_demo; other reverb algorythm process = dm.fdnrev0_demo(4,3,1); own delay import("stdfaust.lib"); own_delay = hslider("own_delay",15000,2000,20000,500); dry_wet = hslider("dry_wet",0.5,0,1,0.1); process = + <: +~@(own_delay)*0.5*(dry_wet),*(1-dry_wet):> +; simple pipeline import ("stdfaust.lib"); process = +; own reverbarator A = hslider("label",0.5,0.1,0.9,0.05); B = hslider("delay",15000,2000,20000,500); process = + : (+<:@(B),*(A))~*(A) : +;
import("stdfaust.lib"); process = dm.stereo_reverb_tester;
b5fce45e29dd683e058a2531a6019252e1008f1c3913fb2e4c39098381d6b9bb
rasmusnuko/FaustCode
onePoll_letrec.dsp
import("stdfaust.lib"); onePoll(a1, x) = y letrec{ 'y = x + y*a1; }; process = onePoll(0.999);import("stdfaust.lib");
https://raw.githubusercontent.com/rasmusnuko/FaustCode/f58d7a5d35d28a644e73903ab530fcdce314dfd6/onePoll_letrec.dsp
faust
import("stdfaust.lib"); onePoll(a1, x) = y letrec{ 'y = x + y*a1; }; process = onePoll(0.999);import("stdfaust.lib");
c0aec1f6705c5c96bca7ee5230c0518aa6fc097e95c6fa9850cf410ba8c5d562
tomara-x/magi
2022-09-02.dsp
//trans rights /* import("stdfaust.lib"); freq0 = os.osc(880)*880; freq2 = 440; gain0 = 0.1; gain2 = 0.1; process = os.osc(freq0)*gain0, os.osc(freq2)*gain2 :> _ // merging signals here <: dm.zita_light; // and then splitting them for stereo in */ /* import("stdfaust.lib"); carrierFreq = 400; modulatorFreq = 110; index = 0.1; process = os.osc(carrierFreq+os.osc(modulatorFreq)*index) <: dm.zita_light; */ /* import("stdfaust.lib"); random = +(12345) ~ *(1103515245); process = random : aa.clip(-1,1)*0.1; */ /* import("stdfaust.lib"); process = dm.cubicnl_demo : // distortion dm.wah4_demo <: // wah pedal dm.phaser2_demo : // stereo phaser dm.compressor_demo : // stereo compressor dm.zita_light; // stereo reverb */ /* import("stdfaust.lib"); freq = hslider("[2]frq", 440, 20, 440*8, 1); res = hslider("[3]res", 0, -1, 1, 0.01); gate = button("[1]gate"); string(frequency,resonance,trigger) = trigger : ba.impulsify : fi.fb_fcomb(1024,del,1,resonance) with { del = ma.SR/frequency; }; process = string(freq,res,gate) <: _,_; */ //study import("stdfaust.lib"); freqMod = hslider("h:Modulator/Frequency", 777, 20, 15000, 1) : si.smoo; modIndex = hslider("h:Modulator/Modulation Index", 1000, 0, 10000, 1) : si.smoo; freq = hslider("h:General Parameters/freq", 440, 20, 8000, 1) : si.smoo; gain = hslider("gain", 1, 0, 1, 0.01) : si.smoo; gate = button("gate") : si.smoo; process = vgroup("FMsynth [style:keyboard]",os.osc(freqMod)*modIndex + freq : os.osc*gate*gain <: _,_);
https://raw.githubusercontent.com/tomara-x/magi/bcf22a4ef23899cd8ce3bf5e08e374994907f81a/practice/2022-09-02.dsp
faust
trans rights import("stdfaust.lib"); freq0 = os.osc(880)*880; freq2 = 440; gain0 = 0.1; gain2 = 0.1; process = os.osc(freq0)*gain0, os.osc(freq2)*gain2 :> _ // merging signals here <: dm.zita_light; // and then splitting them for stereo in import("stdfaust.lib"); carrierFreq = 400; modulatorFreq = 110; index = 0.1; process = os.osc(carrierFreq+os.osc(modulatorFreq)*index) <: dm.zita_light; import("stdfaust.lib"); random = +(12345) ~ *(1103515245); process = random : aa.clip(-1,1)*0.1; import("stdfaust.lib"); process = dm.cubicnl_demo : // distortion dm.wah4_demo <: // wah pedal dm.phaser2_demo : // stereo phaser dm.compressor_demo : // stereo compressor dm.zita_light; // stereo reverb import("stdfaust.lib"); freq = hslider("[2]frq", 440, 20, 440*8, 1); res = hslider("[3]res", 0, -1, 1, 0.01); gate = button("[1]gate"); string(frequency,resonance,trigger) = trigger : ba.impulsify : fi.fb_fcomb(1024,del,1,resonance) with { del = ma.SR/frequency; }; process = string(freq,res,gate) <: _,_; study
import("stdfaust.lib"); freqMod = hslider("h:Modulator/Frequency", 777, 20, 15000, 1) : si.smoo; modIndex = hslider("h:Modulator/Modulation Index", 1000, 0, 10000, 1) : si.smoo; freq = hslider("h:General Parameters/freq", 440, 20, 8000, 1) : si.smoo; gain = hslider("gain", 1, 0, 1, 0.01) : si.smoo; gate = button("gate") : si.smoo; process = vgroup("FMsynth [style:keyboard]",os.osc(freqMod)*modIndex + freq : os.osc*gate*gain <: _,_);
86de6b37f2a183c2137e72944fdb4d8f7c02384da52873e36e6968c3cea68875
FarayMecatronico/devin
IPlugFaustDSP.dsp
// declare options "[midi:on][nvoices:12]"; // declare name "IPlugFaustDSP (polydsp synth example)"; // import("stdfaust.lib"); // freq = hslider("freq ",200,50,1000,0.01); // gain = hslider("gain",0.5,0,1,0.01); // master = hslider("master [midi: ctrl 7]",0.5,0,1,0.01); // gate = button("gate"); // envelope = en.adsr(0.01,0.01,0.8,0.1,gate)*gain; // process = os.sawtooth(freq)*envelope*master <: (_,_); declare name "IPlugFaustDSP (mono example)"; import("stdfaust.lib"); g = vslider("[1]Gain", 0, 0., 1, 0.1); f1 = vslider("[2]Freq1", 440, 100., 1000, 0.1); f2 = vslider("[3]Freq2", 441, 100., 1000, 0.1); process = os.osc(f1) * g, os.osc(f2) * g;
https://raw.githubusercontent.com/FarayMecatronico/devin/89a233f26291e059f2fcb505e8f1a87329ef5579/Examples/IPlugFaustDSP/IPlugFaustDSP.dsp
faust
declare options "[midi:on][nvoices:12]"; declare name "IPlugFaustDSP (polydsp synth example)"; import("stdfaust.lib"); freq = hslider("freq ",200,50,1000,0.01); gain = hslider("gain",0.5,0,1,0.01); master = hslider("master [midi: ctrl 7]",0.5,0,1,0.01); gate = button("gate"); envelope = en.adsr(0.01,0.01,0.8,0.1,gate)*gain; process = os.sawtooth(freq)*envelope*master <: (_,_);
declare name "IPlugFaustDSP (mono example)"; import("stdfaust.lib"); g = vslider("[1]Gain", 0, 0., 1, 0.1); f1 = vslider("[2]Freq1", 440, 100., 1000, 0.1); f2 = vslider("[3]Freq2", 441, 100., 1000, 0.1); process = os.osc(f1) * g, os.osc(f2) * g;
86af9c3d1c3ba23ad7746c1eb7f8082cbb7492ba54b551764e592d8d92b34d02
JaoRamos/Faust
clase4.dsp
/* import("stdfaust.lib"); parteDecimal(x) = x - int(x); fase(f) = f/ma.SR : (+ : parteDecimal) ~ _; senialCuadrada(f) = fase(f) > 0.9125; ondaCuadrada(f) = ((senialCuadrada(f)) * 2) - 1; process = ondaCuadrada(220) * 0.2; */ /* import("stdfaust.lib"); parteDecimal(x) = x - int(x); fase = numeroSuma : (+ : parteDecimal) ~ _; frecuencia = hslider("frec", 220, 60, 880, 0.01); numeroSuma = frecuencia / ma.SR; process = ((fase*2)-1) * 0.2; */ /* import("stdfaust.lib"); parteDecimal(x) = x - int(x); rampa = 0.005 : + ~ _; // A ~ A fase = parteDecimal(rampa)*(ma.PI*0.7); process = sin(fase)*0.5; */
https://raw.githubusercontent.com/JaoRamos/Faust/60093b31029fa157f16055590ff188f6b19aeb89/unq/Clase_4/clase4.dsp
faust
import("stdfaust.lib"); parteDecimal(x) = x - int(x); fase(f) = f/ma.SR : (+ : parteDecimal) ~ _; senialCuadrada(f) = fase(f) > 0.9125; ondaCuadrada(f) = ((senialCuadrada(f)) * 2) - 1; process = ondaCuadrada(220) * 0.2; import("stdfaust.lib"); parteDecimal(x) = x - int(x); fase = numeroSuma : (+ : parteDecimal) ~ _; frecuencia = hslider("frec", 220, 60, 880, 0.01); numeroSuma = frecuencia / ma.SR; process = ((fase*2)-1) * 0.2; import("stdfaust.lib"); parteDecimal(x) = x - int(x); rampa = 0.005 : + ~ _; // A ~ A fase = parteDecimal(rampa)*(ma.PI*0.7); process = sin(fase)*0.5;
2c75f6838f24863b1838c1357a7b8277270f762694256c2375a036745a13b9db
JaoRamos/Faust
Clase_5.dsp
/* import("stdfaust.lib"); // les damos otro nombre para que sean mas faciles de leer sampleRate = ma.SR; pi = ma.PI; // el generador de fase de siempre partedecimal(x) = x - int(x); fase(frec) = frec/sampleRate : (+ : partedecimal) ~ _; // onda senoidal a partir de funcion seno senoidal(frecuencia) = sin(fase(frecuencia) * 2 * pi); frec = 500; sierra = (senoidal(1 * frec)*1) + (senoidal(2 * frec)/2.0) + (senoidal(3 * frec)/3.0) + (senoidal(4 * frec)/4.0) + (senoidal(5 * frec)/5.0); process = sierra * 0.3; */ /* import("stdfaust.lib"); volumen = hslider("-volumen-", 0.05, 0, 1, 0.01); fundamental = hslider("-frecuencia-", 80, 20, 2000, 10); // oscilador de cada parcial, será duplicado por sum() parcial(indiceParcial, frecFundamental) = os.osc(frecFundamental * indiceParcial) * hslider("%indiceParcial Parcial", 1 / indiceParcial, 0, 1, 0.01); // duplicamos el oscilador 10 veces para tener 10 parciales, probar que pasa con mas! generador = sum(numParcial, 30, parcial(numParcial + 1, fundamental) ) * volumen; process = generador, generador; */ /* import("stdfaust.lib"); volumen = hslider("-volumen-", 0.05, 0, 1, 0.01); fundamental = hslider("-frecuencia-", 80, 20, 2000, 10); // oscilador de cada parcial, será duplicado por sum() parcial(indiceParcial, frecFundamental) = os.osc(frecFundamental * indiceParcial) * hslider("%indiceParcial Parcial", 1 / indiceParcial, 0, 1, 0.01); // duplicamos el oscilador 10 veces para tener 10 parciales, probar que pasa con mas! cuadrada = sum(numParcial, 10, parcial((numParcial*2) + 1, fundamental) ) * volumen; process = cuadrada, cuadrada; */ // UNA - "La" voz import("stdfaust.lib"); // faust reconoce estos labels // los mapea desde el controlador externo // "gate" si hay una nota encendida o no // "freq" me dice la frecuencia de la nota recibida // "gain" velocity midi (0-1) sonar = button("gate"); frecuencia = nentry("freq", 200, 50, 2000, 0.001); velocity = nentry("gain", 0, 0, 1, 0.001); volumen = hslider("-volumen-", 0.5, 0, 1, 0.01); // tiempos en segundos // adsr(at,dt,sl,rt, gate) // t t n t envolvente = en.adsr(0.02, 0.01, 0.5, 0.5, sonar); parcial(indiceParcial, frecFundamental) = os.osc(frecFundamental * indiceParcial) * hslider("%indiceParcial Parcial", 1 / indiceParcial, 0, 1, 0.01); // duplicamos el oscilador 10 veces para tener 10 parciales, probar que pasa con mas! //mod = os.osc(10) * hslider("modulacion", 0, 0, 1, 0.01) + 1; cuadrada = sum(numParcial, 40, parcial((numParcial*2) + 1, frecuencia) ) * volumen * velocity;// * mod; process = cuadrada*envolvente*0.5, cuadrada*envolvente*0.5;
https://raw.githubusercontent.com/JaoRamos/Faust/60093b31029fa157f16055590ff188f6b19aeb89/unq/Clase_5/Clase_5.dsp
faust
import("stdfaust.lib"); // les damos otro nombre para que sean mas faciles de leer sampleRate = ma.SR; pi = ma.PI; // el generador de fase de siempre partedecimal(x) = x - int(x); fase(frec) = frec/sampleRate : (+ : partedecimal) ~ _; // onda senoidal a partir de funcion seno senoidal(frecuencia) = sin(fase(frecuencia) * 2 * pi); frec = 500; sierra = (senoidal(1 * frec)*1) + (senoidal(2 * frec)/2.0) + (senoidal(3 * frec)/3.0) + (senoidal(4 * frec)/4.0) + (senoidal(5 * frec)/5.0); process = sierra * 0.3; import("stdfaust.lib"); volumen = hslider("-volumen-", 0.05, 0, 1, 0.01); fundamental = hslider("-frecuencia-", 80, 20, 2000, 10); // oscilador de cada parcial, será duplicado por sum() parcial(indiceParcial, frecFundamental) = os.osc(frecFundamental * indiceParcial) * hslider("%indiceParcial Parcial", 1 / indiceParcial, 0, 1, 0.01); // duplicamos el oscilador 10 veces para tener 10 parciales, probar que pasa con mas! generador = sum(numParcial, 30, parcial(numParcial + 1, fundamental) ) * volumen; process = generador, generador; import("stdfaust.lib"); volumen = hslider("-volumen-", 0.05, 0, 1, 0.01); fundamental = hslider("-frecuencia-", 80, 20, 2000, 10); // oscilador de cada parcial, será duplicado por sum() parcial(indiceParcial, frecFundamental) = os.osc(frecFundamental * indiceParcial) * hslider("%indiceParcial Parcial", 1 / indiceParcial, 0, 1, 0.01); // duplicamos el oscilador 10 veces para tener 10 parciales, probar que pasa con mas! cuadrada = sum(numParcial, 10, parcial((numParcial*2) + 1, fundamental) ) * volumen; process = cuadrada, cuadrada; UNA - "La" voz faust reconoce estos labels los mapea desde el controlador externo "gate" si hay una nota encendida o no "freq" me dice la frecuencia de la nota recibida "gain" velocity midi (0-1) tiempos en segundos adsr(at,dt,sl,rt, gate) t t n t duplicamos el oscilador 10 veces para tener 10 parciales, probar que pasa con mas! mod = os.osc(10) * hslider("modulacion", 0, 0, 1, 0.01) + 1; * mod;
import("stdfaust.lib"); sonar = button("gate"); frecuencia = nentry("freq", 200, 50, 2000, 0.001); velocity = nentry("gain", 0, 0, 1, 0.001); volumen = hslider("-volumen-", 0.5, 0, 1, 0.01); envolvente = en.adsr(0.02, 0.01, 0.5, 0.5, sonar); parcial(indiceParcial, frecFundamental) = os.osc(frecFundamental * indiceParcial) * hslider("%indiceParcial Parcial", 1 / indiceParcial, 0, 1, 0.01); process = cuadrada*envolvente*0.5, cuadrada*envolvente*0.5;
e719291c66d809adcaefa409d8bf1f84564f8e13c9e4cb5dee2bb71bd0bea24e
tomara-x/magi
days2-5.dsp
//doodles and examples from the manual //for sentimental reasons //delay 2 seconds //process = no.noise*0.1 : @(ma.SR*2); //process = +(1,3); //prefex //process = 1,3 : +; //core //process = 1+3; //infix //foreign constant (fvariable, ffunction) //sr = fconstant(int fSamplingFreq, <math.h>); //can those be returned by functions? //struct = environment { // m = -1; // n = 1; //}; //can be inlined //environment{m = -1; n = 1;}.m; // -1 //N = 10; //process = route(N,N,par(i,N,(i+1,N-i))); //process = 1,1 : + : _,1 : +; //process = +(1,(+(1,1))); //import("stdfaust.lib"); //add1 = +(1); //add2 = +(2); //add3 = +(3); //mute = *(0); //process = add2~add1 : mute; // any diff between those? //process = add1~_ : out; //process = _~add1 : out; //import("stdfaust.lib"); //filter = +~*(0.9); //process = no.no.noise*0.01 : filter; //process = 135 : ba.beat; //clock //process = 60 : ba.beat; //eq import("stdfaust.lib"); nBands = 8; filterBank(N) = hgroup("Filter Bank",seq(i,N,oneBand(i))) with { oneBand(j) = vgroup("[%j]Band %a",fi.peak_eq(l,f,b)) with { a = j+1; // just so that band numbers don't start at 0 l = vslider("[2]Level[unit:db]",0,-70,12,0.01) : si.smoo; f = nentry("[1]Freq",(80+(1000*8/N*(j+1)-80)),20,20000,0.01) : si.smoo; b = f/hslider("[0]Q[style:knob]",1,1,50,0.01) : si.smoo; }; }; process = no.noise*0.01 : filterBank(nBands) <: _,_; //additive synth with par iteration import("stdfaust.lib"); freq = hslider("freq",440,50,3000,0.01); gain = hslider("gain",1,0,1,0.01); gate = button("gate"); envelope = gain*gate : si.smoo; nHarmonics = 4; process = par(i,nHarmonics,os.osc(freq*(i+1))) :> /(nHarmonics)*envelope; //mute = *(0); //process = par(j,4,par(i,2,i:mute)); //am with prod iteration import("stdfaust.lib"); freq = hslider("[0]freq",440,50,3000,0.01); gain = hslider("[1]gain",1,0,1,0.01); shift = hslider("[2]shift",0,0,1,0.01); gate = button("[3]gate"); envelope = gain*gate : si.smoo; nOscs = 16; process = prod(i,nOscs,os.osc(freq*(i+1+shift)))*envelope;
https://raw.githubusercontent.com/tomara-x/magi/bcf22a4ef23899cd8ce3bf5e08e374994907f81a/practice/days2-5.dsp
faust
doodles and examples from the manual for sentimental reasons delay 2 seconds process = no.noise*0.1 : @(ma.SR*2); process = +(1,3); //prefex process = 1,3 : +; //core process = 1+3; //infix foreign constant (fvariable, ffunction) sr = fconstant(int fSamplingFreq, <math.h>); can those be returned by functions? struct = environment { m = -1; n = 1; }; can be inlined environment{m = -1; n = 1;}.m; // -1 N = 10; process = route(N,N,par(i,N,(i+1,N-i))); process = 1,1 : + : _,1 : +; process = +(1,(+(1,1))); import("stdfaust.lib"); add1 = +(1); add2 = +(2); add3 = +(3); mute = *(0); process = add2~add1 : mute; any diff between those? process = add1~_ : out; process = _~add1 : out; import("stdfaust.lib"); filter = +~*(0.9); process = no.no.noise*0.01 : filter; process = 135 : ba.beat; clock process = 60 : ba.beat; eq just so that band numbers don't start at 0 additive synth with par iteration mute = *(0); process = par(j,4,par(i,2,i:mute)); am with prod iteration
import("stdfaust.lib"); nBands = 8; filterBank(N) = hgroup("Filter Bank",seq(i,N,oneBand(i))) with { oneBand(j) = vgroup("[%j]Band %a",fi.peak_eq(l,f,b)) with { l = vslider("[2]Level[unit:db]",0,-70,12,0.01) : si.smoo; f = nentry("[1]Freq",(80+(1000*8/N*(j+1)-80)),20,20000,0.01) : si.smoo; b = f/hslider("[0]Q[style:knob]",1,1,50,0.01) : si.smoo; }; }; process = no.noise*0.01 : filterBank(nBands) <: _,_; import("stdfaust.lib"); freq = hslider("freq",440,50,3000,0.01); gain = hslider("gain",1,0,1,0.01); gate = button("gate"); envelope = gain*gate : si.smoo; nHarmonics = 4; process = par(i,nHarmonics,os.osc(freq*(i+1))) :> /(nHarmonics)*envelope; import("stdfaust.lib"); freq = hslider("[0]freq",440,50,3000,0.01); gain = hslider("[1]gain",1,0,1,0.01); shift = hslider("[2]shift",0,0,1,0.01); gate = button("[3]gate"); envelope = gain*gate : si.smoo; nOscs = 16; process = prod(i,nOscs,os.osc(freq*(i+1+shift)))*envelope;
932cc1ce36498fe441272dbf47e9a51d661b679fa8c54b5d664a7e589a12dfd5
arthtyagi/faustfun
reverb1.dsp
import("stdfaust.lib"); process = ba.pulsen(1, 10000) : pm.djembe(60, 0.3, 0.4, 1) <: dm.freeverb_demo;
https://raw.githubusercontent.com/arthtyagi/faustfun/8092e270861907df91f1c4d4a3c31f2cca0b4d16/reverb1.dsp
faust
import("stdfaust.lib"); process = ba.pulsen(1, 10000) : pm.djembe(60, 0.3, 0.4, 1) <: dm.freeverb_demo;
99d30cb378be3fe911a5730bafdda8ceabf7639a336cfce36556c578075d3ca9
jpcima/jest
new_faust.dsp
import("stdfaust.lib"); process = _;
https://raw.githubusercontent.com/jpcima/jest/f16cde58edb9470b2422b522a24d1f6916c5cae1/resources/templates/new_faust.dsp
faust
import("stdfaust.lib"); process = _;
0b65ae533862571a41a7f51f5b9cea0df5ec0b88d03610c1f344c9756d427d86
clearly-broken-software/Uprising
lpFilter.dsp
import("stdfaust.lib"); lpFilter= fi.resonlp(lpfCuttoff,lpfQ,lpfGain); lpfCuttoff = hslider("lpfCuttoff",20000,0,20000,0.1); lpfQ = hslider("lpQ",1,0,20,0.1); lpfGain = hslider("filterGain",1,0,1,0.01); process = lpFilter;import("stdfaust.lib");
https://raw.githubusercontent.com/clearly-broken-software/Uprising/89f5b49d90cd47611da7e7dc2009061768716b4c/plugins/uprising/dsp/faust/lpFilter.dsp
faust
import("stdfaust.lib"); lpFilter= fi.resonlp(lpfCuttoff,lpfQ,lpfGain); lpfCuttoff = hslider("lpfCuttoff",20000,0,20000,0.1); lpfQ = hslider("lpQ",1,0,20,0.1); lpfGain = hslider("filterGain",1,0,1,0.01); process = lpFilter;import("stdfaust.lib");
38ce472a13a559fc627a8ea800288e5491705b34a076085d4f55d4f751913c21
publicsamples/Scriptnode-Tests
granular.dsp
// Faust Source File: granular // Created with HISE on 2023-03-04 import("stdfaust.lib"); process = _, _;
https://raw.githubusercontent.com/publicsamples/Scriptnode-Tests/a4ffde4a88cdc9001cb1b206287c59d0bb546d0b/DspNetworks/CodeLibrary/faust/granular.dsp
faust
Faust Source File: granular Created with HISE on 2023-03-04
import("stdfaust.lib"); process = _, _;
9d6afe513195574e6779566e4497abda85d9ca81eb65c7c43d0cd14067f96d19
potatosalad775/flutter_faust_example
main.dsp
import("stdfaust.lib"); gate = button("gate") : si.smoo; gain = hslider("gain", 1, 0, 1, 0.01); process = os.sawtooth(440) * gate * gain <: _,_;
https://raw.githubusercontent.com/potatosalad775/flutter_faust_example/3093f1cc34eb729f8df65f50ccfb3d32902c7c8d/DSP/main.dsp
faust
import("stdfaust.lib"); gate = button("gate") : si.smoo; gain = hslider("gain", 1, 0, 1, 0.01); process = os.sawtooth(440) * gate * gain <: _,_;
549ade4a228993d15e6057d7bf95972fa79c14f1e34233a1fcf2d7d759f3fb0d
oshibka404/faust_flutter
main.dsp
import("stdfaust.lib"); gate = button("gate") : si.smoo; process = os.sawtooth(440) * gate <: _,_;
https://raw.githubusercontent.com/oshibka404/faust_flutter/30b674011ed6092a199bf7f548d647505631ee65/DSP/main.dsp
faust
import("stdfaust.lib"); gate = button("gate") : si.smoo; process = os.sawtooth(440) * gate <: _,_;
b4efed7539d8809385e021a81e70ec5776e2105ac8ad7111e564bf6a2a43039f
clearly-broken-software/Uprising
scratchpad.dsp
import("stdfaust.lib"); gate = abs(button("gate")-1); ramp(timeInSeconds,start,end,rgate) = up with{ rs1 = timeInSeconds * ma.SR; up = ba.countup(rs1,rgate) : ba.bpf.start(0,start) : ba.bpf.end(rs1,end); }; myFilter = fi.resonbp(fc,q,gain) with{ fc = ramp(5,20,2000,gate); q = hslider("q",20,1,20,0.01); gain = hslider("gain",0.5,0,1,0.01); }; process = no.noise:myFilter; import("stdfaust.lib"); gate = 1-button("gate"); startFreq = 880; endFreq = 220; length = ma.SR * 4; counter = ba.countup(length,gate): ba.bpf.start(0,startFreq) : ba.bpf.end(length,endFreq); index = 1; dataPoints = (0,100,100,100); process = os.osc(counter); up = ba.countup(rs1,rgate) : ba.bpf.start(0,start) : ba.bpf.end(rs1,end); ////////////// import("stdfaust.lib"); gate = 1-button("gate"); // general purpose ramp env(sFreq,eFreq,len) = urRamp with { urRamp = ba.countup(len,gate): ba.bpf.start(0,sFreq): ba.bpf.end(len,eFreq); }; sineStartFreq = hslider("sineStartFreq", 100, 20, 20000,0.01); sineEndFreq = hslider("sineEndFreq", 100, 20, 20000, 0.01); bufferSize = hslider("bufferSize", 512, 1, 2 * 44100,1); pitchRamp = env(sineStartFreq,sineEndFreq,bufferSize); // lfo lfoStartFreq = hslider("lfoStartFreq", 6, 0.001, 15, 0.001); lfoEndFreq = hslider("lfoEndFreq", 6, 0.001, 15, 0.001); lfoStartDepth = hslider("lfoStartDepth", 1, 0,1, 0.001); lfoEndDepth = hslider("lfoEndDepth", 1, 0,1, 0.001); lfoPitchRamp = env(lfoStartFreq,lfoEndFreq,bufferSize); lfoDepthRamp = env(lfoStartDepth,lfoEndDepth,bufferSize); LFO = os.lf_triangle(lfoPitchRamp)*lfoDepthRamp*20; allFreq = pitchRamp + LFO; oscAmp = hslider("oscAmp", 0.5, 0, 1, 0.001):si.smoo; sineOsc = os.osc(allFreq)*oscAmp; process = sineOsc; /// import("stdfaust.lib"); gate = 1-button("gate"); // general purpose ramp env(start,end,len) = urRamp with { urRamp = ba.countup(len,gate): ba.bpf.start(0,start): ba.bpf.end(len,end);//:si.smoo; }; // sine oscilator sineStartFreq = hslider("sineStartFreq", 440, 20, 20000,0.01); sineEndFreq = hslider("sineEndFreq", 440, 20, 20000, 0.01); bufferSize = hslider("bufferSize", 1024, 1, 2 * 44100,1); sineStartGain = hslider("sineStartGain", 1, 0, 1, 0.001); sineEndGain = hslider("sineEndGain",1,0,1,0.001); sineAmp = env(sineStartGain,sineEndGain,bufferSize); sinePitchRamp = env(sineStartFreq,sineEndFreq,bufferSize); sineFreq = sinePitchRamp + LFO; sineOsc = os.osc(sineFreq)*sineAmp; // lfo lfoStartFreq = hslider("lfoStartFreq", 6, 0.001, 15, 0.001); lfoEndFreq = hslider("lfoEndFreq", 6, 0.001, 15, 0.001); lfoStartDepth = hslider("lfoStartDepth", 0, 0,1, 0.001); lfoEndDepth = hslider("lfoEndDepth", 0, 0,1, 0.001); lfoPitchRamp = env(lfoStartFreq,lfoEndFreq,bufferSize); lfoDepthRamp = env(lfoStartDepth,lfoEndDepth,bufferSize); LFO = os.lf_triangle(lfoPitchRamp)*lfoDepthRamp*20; process = sineOsc; /////////////////////////////////////// import("stdfaust.lib"); // constant power panning ; reference The Audio Programming Book p.236 piOver2 = ma.PI/2; root2over2 = (2 : sqrt) * 0.5; angle = pan * piOver2 * 0.5; posLeft = root2over2 * (cos(angle) - sin(angle)); posRight = root2over2 * (cos(angle) + sin(angle)); panStartPos = hslider("panStartPosition",0,-1,1,0.001); panEndPos = hslider("panEndPosition", 0,-1,1,0.001); pan = env(panStartPos,panEndPos,bufferSize); gate = 1-button("gate"); // starts the ramp envelope // general purpose ramp envelope env(start,end,len) = urRamp with { urRamp = ba.countup(len,gate): ba.bpf.start(0,start): ba.bpf.end(len,end);//:si.smoo; }; // sine oscilator sineStartFreq = hslider("sineStartFreq", 440, 20, 20000,0.01); sineEndFreq = hslider("sineEndFreq", 440, 20, 20000, 0.01); bufferSize = hslider("bufferSize", 1024, 1, 2 * 44100,1); sineStartGain = hslider("sineStartGain", 1, 0, 1, 0.001); sineEndGain = hslider("sineEndGain",1,0,1,0.001); sineAmp = env(sineStartGain,sineEndGain,bufferSize); sinePitchRamp = env(sineStartFreq,sineEndFreq,bufferSize); sineFreq = sinePitchRamp + LFO; sineOsc = os.osc(sineFreq)*sineAmp; // lfo lfoStartFreq = hslider("lfoStartFreq", 6, 0.001, 15, 0.001); lfoEndFreq = hslider("lfoEndFreq", 6, 0.001, 15, 0.001); lfoStartDepth = hslider("lfoStartDepth", 0, 0,1, 0.001); lfoEndDepth = hslider("lfoEndDepth", 0, 0,1, 0.001); lfoPitchRamp = env(lfoStartFreq,lfoEndFreq,bufferSize); lfoDepthRamp = env(lfoStartDepth,lfoEndDepth,bufferSize); LFO = os.lf_triangle(lfoPitchRamp)*lfoDepthRamp*20; process = sineOsc<:_*posLeft,_*posRight; // import("stdfaust.lib"); // constant power panning ; reference The Audio Programming Book p.236 piOver2 = ma.PI/2; root2over2 = (2 : sqrt) * 0.5; angle = pan * piOver2 * 0.5; posLeft = root2over2 * (cos(angle) - sin(angle)); posRight = root2over2 * (cos(angle) + sin(angle)); panStartPos = hslider("panStartPosition",0,-1,1,0.001); panEndPos = hslider("panEndPosition", 0,-1,1,0.001); pan = env(panStartPos,panEndPos,bufferSize); gate = 1-button("gate"); // starts the ramp envelope // general purpose ramp envelope env(start,end,len) = urRamp with { urRamp = ba.countup(len,gate): ba.bpf.start(0,start): ba.bpf.end(len,end);//:si.smoo; }; // sine oscilator sineStartFreq = hslider("sineStartFreq", 440, 20, 20000,0.01); sineEndFreq = hslider("sineEndFreq", 440, 20, 20000, 0.01); bufferSize = hslider("bufferSize", 1024, 1, 2 * 44100,1); sineStartGain = hslider("sineStartGain", 1, 0, 1, 0.001); sineEndGain = hslider("sineEndGain",1,0,1,0.001); sineAmp = env(sineStartGain,sineEndGain,bufferSize); sinePitchRamp = env(sineStartFreq,sineEndFreq,bufferSize); sineFreq = sinePitchRamp + LFO; sineOsc = os.osc(sineFreq)*sineAmp; // lfo lfoStartFreq = hslider("lfoStartFreq", 6, 0, 15, 0.001); lfoEndFreq = hslider("lfoEndFreq", 6, 0.001, 15, 0.001); lfoStartDepth = hslider("lfoStartDepth", 0, 0,1, 0.001); lfoEndDepth = hslider("lfoEndDepth", 0, 0,1, 0.001); lfoPitchRamp = env(lfoStartFreq,lfoEndFreq,bufferSize); lfoDepthRamp = env(lfoStartDepth,lfoEndDepth,bufferSize); LFO = os.lf_triangle(lfoPitchRamp)*lfoDepthRamp*20; process = sineOsc<:_*posLeft,_*posRight;
https://raw.githubusercontent.com/clearly-broken-software/Uprising/89f5b49d90cd47611da7e7dc2009061768716b4c/plugins/uprising/dsp/faust/scratchpad.dsp
faust
//////////// general purpose ramp lfo / general purpose ramp :si.smoo; sine oscilator lfo ///////////////////////////////////// constant power panning ; reference The Audio Programming Book p.236 starts the ramp envelope general purpose ramp envelope :si.smoo; sine oscilator lfo constant power panning ; reference The Audio Programming Book p.236 starts the ramp envelope general purpose ramp envelope :si.smoo; sine oscilator lfo
import("stdfaust.lib"); gate = abs(button("gate")-1); ramp(timeInSeconds,start,end,rgate) = up with{ rs1 = timeInSeconds * ma.SR; up = ba.countup(rs1,rgate) : ba.bpf.start(0,start) : ba.bpf.end(rs1,end); }; myFilter = fi.resonbp(fc,q,gain) with{ fc = ramp(5,20,2000,gate); q = hslider("q",20,1,20,0.01); gain = hslider("gain",0.5,0,1,0.01); }; process = no.noise:myFilter; import("stdfaust.lib"); gate = 1-button("gate"); startFreq = 880; endFreq = 220; length = ma.SR * 4; counter = ba.countup(length,gate): ba.bpf.start(0,startFreq) : ba.bpf.end(length,endFreq); index = 1; dataPoints = (0,100,100,100); process = os.osc(counter); up = ba.countup(rs1,rgate) : ba.bpf.start(0,start) : ba.bpf.end(rs1,end); import("stdfaust.lib"); gate = 1-button("gate"); env(sFreq,eFreq,len) = urRamp with { urRamp = ba.countup(len,gate): ba.bpf.start(0,sFreq): ba.bpf.end(len,eFreq); }; sineStartFreq = hslider("sineStartFreq", 100, 20, 20000,0.01); sineEndFreq = hslider("sineEndFreq", 100, 20, 20000, 0.01); bufferSize = hslider("bufferSize", 512, 1, 2 * 44100,1); pitchRamp = env(sineStartFreq,sineEndFreq,bufferSize); lfoStartFreq = hslider("lfoStartFreq", 6, 0.001, 15, 0.001); lfoEndFreq = hslider("lfoEndFreq", 6, 0.001, 15, 0.001); lfoStartDepth = hslider("lfoStartDepth", 1, 0,1, 0.001); lfoEndDepth = hslider("lfoEndDepth", 1, 0,1, 0.001); lfoPitchRamp = env(lfoStartFreq,lfoEndFreq,bufferSize); lfoDepthRamp = env(lfoStartDepth,lfoEndDepth,bufferSize); LFO = os.lf_triangle(lfoPitchRamp)*lfoDepthRamp*20; allFreq = pitchRamp + LFO; oscAmp = hslider("oscAmp", 0.5, 0, 1, 0.001):si.smoo; sineOsc = os.osc(allFreq)*oscAmp; process = sineOsc; import("stdfaust.lib"); gate = 1-button("gate"); env(start,end,len) = urRamp with { }; sineStartFreq = hslider("sineStartFreq", 440, 20, 20000,0.01); sineEndFreq = hslider("sineEndFreq", 440, 20, 20000, 0.01); bufferSize = hslider("bufferSize", 1024, 1, 2 * 44100,1); sineStartGain = hslider("sineStartGain", 1, 0, 1, 0.001); sineEndGain = hslider("sineEndGain",1,0,1,0.001); sineAmp = env(sineStartGain,sineEndGain,bufferSize); sinePitchRamp = env(sineStartFreq,sineEndFreq,bufferSize); sineFreq = sinePitchRamp + LFO; sineOsc = os.osc(sineFreq)*sineAmp; lfoStartFreq = hslider("lfoStartFreq", 6, 0.001, 15, 0.001); lfoEndFreq = hslider("lfoEndFreq", 6, 0.001, 15, 0.001); lfoStartDepth = hslider("lfoStartDepth", 0, 0,1, 0.001); lfoEndDepth = hslider("lfoEndDepth", 0, 0,1, 0.001); lfoPitchRamp = env(lfoStartFreq,lfoEndFreq,bufferSize); lfoDepthRamp = env(lfoStartDepth,lfoEndDepth,bufferSize); LFO = os.lf_triangle(lfoPitchRamp)*lfoDepthRamp*20; process = sineOsc; import("stdfaust.lib"); piOver2 = ma.PI/2; root2over2 = (2 : sqrt) * 0.5; angle = pan * piOver2 * 0.5; posLeft = root2over2 * (cos(angle) - sin(angle)); posRight = root2over2 * (cos(angle) + sin(angle)); panStartPos = hslider("panStartPosition",0,-1,1,0.001); panEndPos = hslider("panEndPosition", 0,-1,1,0.001); pan = env(panStartPos,panEndPos,bufferSize); env(start,end,len) = urRamp with { }; sineStartFreq = hslider("sineStartFreq", 440, 20, 20000,0.01); sineEndFreq = hslider("sineEndFreq", 440, 20, 20000, 0.01); bufferSize = hslider("bufferSize", 1024, 1, 2 * 44100,1); sineStartGain = hslider("sineStartGain", 1, 0, 1, 0.001); sineEndGain = hslider("sineEndGain",1,0,1,0.001); sineAmp = env(sineStartGain,sineEndGain,bufferSize); sinePitchRamp = env(sineStartFreq,sineEndFreq,bufferSize); sineFreq = sinePitchRamp + LFO; sineOsc = os.osc(sineFreq)*sineAmp; lfoStartFreq = hslider("lfoStartFreq", 6, 0.001, 15, 0.001); lfoEndFreq = hslider("lfoEndFreq", 6, 0.001, 15, 0.001); lfoStartDepth = hslider("lfoStartDepth", 0, 0,1, 0.001); lfoEndDepth = hslider("lfoEndDepth", 0, 0,1, 0.001); lfoPitchRamp = env(lfoStartFreq,lfoEndFreq,bufferSize); lfoDepthRamp = env(lfoStartDepth,lfoEndDepth,bufferSize); LFO = os.lf_triangle(lfoPitchRamp)*lfoDepthRamp*20; process = sineOsc<:_*posLeft,_*posRight; import("stdfaust.lib"); piOver2 = ma.PI/2; root2over2 = (2 : sqrt) * 0.5; angle = pan * piOver2 * 0.5; posLeft = root2over2 * (cos(angle) - sin(angle)); posRight = root2over2 * (cos(angle) + sin(angle)); panStartPos = hslider("panStartPosition",0,-1,1,0.001); panEndPos = hslider("panEndPosition", 0,-1,1,0.001); pan = env(panStartPos,panEndPos,bufferSize); env(start,end,len) = urRamp with { }; sineStartFreq = hslider("sineStartFreq", 440, 20, 20000,0.01); sineEndFreq = hslider("sineEndFreq", 440, 20, 20000, 0.01); bufferSize = hslider("bufferSize", 1024, 1, 2 * 44100,1); sineStartGain = hslider("sineStartGain", 1, 0, 1, 0.001); sineEndGain = hslider("sineEndGain",1,0,1,0.001); sineAmp = env(sineStartGain,sineEndGain,bufferSize); sinePitchRamp = env(sineStartFreq,sineEndFreq,bufferSize); sineFreq = sinePitchRamp + LFO; sineOsc = os.osc(sineFreq)*sineAmp; lfoStartFreq = hslider("lfoStartFreq", 6, 0, 15, 0.001); lfoEndFreq = hslider("lfoEndFreq", 6, 0.001, 15, 0.001); lfoStartDepth = hslider("lfoStartDepth", 0, 0,1, 0.001); lfoEndDepth = hslider("lfoEndDepth", 0, 0,1, 0.001); lfoPitchRamp = env(lfoStartFreq,lfoEndFreq,bufferSize); lfoDepthRamp = env(lfoStartDepth,lfoEndDepth,bufferSize); LFO = os.lf_triangle(lfoPitchRamp)*lfoDepthRamp*20; process = sineOsc<:_*posLeft,_*posRight;
1404c78ffd6f41c143c423cc67a07eb7cbe578a00c6545977e94c5bd41e46cc2
LSSN/2020-01-23-dsp-3a-giusnare
GiuseppeFerraro.dsp
//GS - il file di faust deve avere estensione .dsp //Spiega cos'è la sintesi sottrattiva. Per processo di sintesi si intende un processo con cui si produce qualcosa per sintesi sottrattiva si intende analizzare il suono attraverso degli strumenti, lo spettogramma- sonogramma- forma d'onda //GS - non hai spiegato cos'è la sintesi sottrattiva, a cosa servogno quegli strumenti di analisi //GS - il codice non gira per i seguenti motivi: //GS - mancano i caratteri che identificano la riga di commento -> // <- QUESTI! //GS - hai inserito due import identici, non si può fare //GS - hai inserito due righe di process, non si può fare //GS - hai dichiarato variabili fcut e order due volte, non si può fare import("stdfaust.lib"); fcut = vslider("cut-off [style:knob] [scale:exp]", 1000,20,20000,1); order= 8; process= no.noise : fi.lowpass (order,fcut) : fi.highpass (order,fcut); import("stdfaust.lib"); fcut=vslider("cut-off [style:knob] [scale:exp]", 1000,20,20000,1); order = 128; // init min max step gain = vslider("gain", -20, -96, 0, 0.1) : ba.db2linear : si.smoo; process= fi.lowpass(order,fcut) : fi.highpass(order,fcut) : *(gain);
https://raw.githubusercontent.com/LSSN/2020-01-23-dsp-3a-giusnare/ed1278f796ea25368a848541e82a6282f7ff7de1/GiuseppeFerraro.dsp
faust
GS - il file di faust deve avere estensione .dsp Spiega cos'è la sintesi sottrattiva. GS - non hai spiegato cos'è la sintesi sottrattiva, a cosa servogno quegli strumenti di analisi GS - il codice non gira per i seguenti motivi: GS - mancano i caratteri che identificano la riga di commento -> // <- QUESTI! GS - hai inserito due import identici, non si può fare GS - hai inserito due righe di process, non si può fare GS - hai dichiarato variabili fcut e order due volte, non si può fare init min max step
Per processo di sintesi si intende un processo con cui si produce qualcosa per sintesi sottrattiva si intende analizzare il suono attraverso degli strumenti, lo spettogramma- sonogramma- forma d'onda import("stdfaust.lib"); fcut = vslider("cut-off [style:knob] [scale:exp]", 1000,20,20000,1); order= 8; process= no.noise : fi.lowpass (order,fcut) : fi.highpass (order,fcut); import("stdfaust.lib"); fcut=vslider("cut-off [style:knob] [scale:exp]", 1000,20,20000,1); order = 128; gain = vslider("gain", -20, -96, 0, 0.1) : ba.db2linear : si.smoo; process= fi.lowpass(order,fcut) : fi.highpass(order,fcut) : *(gain);
9ed1d862455b5e0cd0a1b8bb525449d7c52ad9d5eb2f32fd8f5eb2e3a5957ae0
TheArpeggiator/juce-keyboard
FaustReverb.dsp
import("stdfaust.lib"); process = _ <: dm.zita_rev1;
https://raw.githubusercontent.com/TheArpeggiator/juce-keyboard/6323b1d484c8f35e3bffbe8b989dbbfc76a0f54d/Source/FaustReverb.dsp
faust
import("stdfaust.lib"); process = _ <: dm.zita_rev1;
23f408e16f526fcde4160f5a00c0863b69ab6e5f9cb775767c2d6cc1aa03b12a
theyoogle/FaustAudioKitExample
MyOsc.dsp
import("stdfaust.lib"); freq = nentry("freq", 440, 20,20000, 0.01) : si.smoo; gain = nentry("gain", 1, 0,1, 0.01) : si.smoo; gate = nentry("gate", 1, 0,1, 1) : si.smoo; process = os.sawtooth(freq) * gain * gate <: _,_;
https://raw.githubusercontent.com/theyoogle/FaustAudioKitExample/af2c8021874bf9f9ec272802168574e7b07f0620/FaustAKit/MyOsc.dsp
faust
import("stdfaust.lib"); freq = nentry("freq", 440, 20,20000, 0.01) : si.smoo; gain = nentry("gain", 1, 0,1, 0.01) : si.smoo; gate = nentry("gate", 1, 0,1, 1) : si.smoo; process = os.sawtooth(freq) * gain * gate <: _,_;
8d89fc4f82f782cd49bc1e8c491ecb37c38480befbd870008a8226724644c219
cantina-lib/cantina_plugin
test.dsp
import("stdfaust.lib"); rx = library("lib/routing_ext.lib"); // MUST BE A POWER OF TWO!! N = 8;//nentry("N", 4, 4, 4, 4); k = 2; // process = an.rtorv(N) : rvwcf(N, k); process = rx.argMax(N); //process = swap(N, 4,8);
https://raw.githubusercontent.com/cantina-lib/cantina_plugin/e709738540688c7b7411d4afcb087470e8c0ef3f/bindings/faust/source/test.dsp
faust
MUST BE A POWER OF TWO!! nentry("N", 4, 4, 4, 4); process = an.rtorv(N) : rvwcf(N, k); process = swap(N, 4,8);
import("stdfaust.lib"); rx = library("lib/routing_ext.lib"); k = 2; process = rx.argMax(N);
68e9e0974512ef770f9b39d16ee0d65f48794055a6be3ed87e8a715ddff0574e
tomara-x/magi
day6.dsp
//i shan't perish like a human //that lydian is just a list of ratios (2^0/12,...) import("stdfaust.lib"); step = ba.counter(ba.beat(135))%7; ratio = qu.lydian : ba.selectn(7,step); process = 440*ratio : os.osc; //noooooo! //import("stdfaust.lib"); //struct = environment{x=1;y=3;}; //structs = par(i,4,struct); //process = ba.take(1,structs).x; //import("stdfaust.lib"); // list = ((0,13),(3,4)); // 3 items // list = (0,13,(3,4)); // 4 items // list = ((0,13,3,4)); // 4 items // list = (0,(13,3),4); // 3 items //process = ba.count(list); //cute af! duplicate(1,x) = x; duplicate(n,x) = x,duplicate(n-1,x); count((x,rest)) = 1+count(rest); count(x) = 1;
https://raw.githubusercontent.com/tomara-x/magi/bcf22a4ef23899cd8ce3bf5e08e374994907f81a/practice/day6.dsp
faust
i shan't perish like a human that lydian is just a list of ratios (2^0/12,...) noooooo! import("stdfaust.lib"); struct = environment{x=1;y=3;}; structs = par(i,4,struct); process = ba.take(1,structs).x; import("stdfaust.lib"); list = ((0,13),(3,4)); // 3 items list = (0,13,(3,4)); // 4 items list = ((0,13,3,4)); // 4 items list = (0,(13,3),4); // 3 items process = ba.count(list); cute af!
import("stdfaust.lib"); step = ba.counter(ba.beat(135))%7; ratio = qu.lydian : ba.selectn(7,step); process = 440*ratio : os.osc; duplicate(1,x) = x; duplicate(n,x) = x,duplicate(n-1,x); count((x,rest)) = 1+count(rest); count(x) = 1;
044450e444bfaa6155b5359b492ceff30942b490b2c768379dc4b2cb54f31678
inokawa/faust-sandbox
hello.dsp
import("stdfaust.lib"); ctFreq = hslider("[0]cutoffFrequency",500,50,10000,0.01) : si.smoo; q = hslider("[1]q",5,1,30,0.1) : si.smoo; gain = hslider("[2]gain",1,0,1,0.01) : si.smoo; t = button("[3]gate") : si.smoo; process = no.noise : fi.resonlp(ctFreq,q,gain)*t <: dm.zita_light;
https://raw.githubusercontent.com/inokawa/faust-sandbox/e2c6c3687a53fa51136764cd3b9130152544b2ba/hello.dsp
faust
import("stdfaust.lib"); ctFreq = hslider("[0]cutoffFrequency",500,50,10000,0.01) : si.smoo; q = hslider("[1]q",5,1,30,0.1) : si.smoo; gain = hslider("[2]gain",1,0,1,0.01) : si.smoo; t = button("[3]gate") : si.smoo; process = no.noise : fi.resonlp(ctFreq,q,gain)*t <: dm.zita_light;
1cf41eda253c23e3c3c3c9b3b9bf62e2d1773504907392f2d2ae97e85fae7cb2
itsnestee/Verber
JpRevTest.dsp
import("stdfaust.lib"); process = dm.zita_rev1;
https://raw.githubusercontent.com/itsnestee/Verber/f02c5c6e3b9fd45354259d6ec22c1f7c4b6f1029/DspNetworks/CodeLibrary/faust/JpRevTest.dsp
faust
import("stdfaust.lib"); process = dm.zita_rev1;
1e112fc139a623113b62162659d6c2a0a0ffd58ef96c19ea303d2626f8558590
SpotlightKid/dfzitarev1
dfzitarev1.dsp
declare name "DFZitaRev1"; declare description "A feedback-delay-network reverb"; declare author "Julius O. Smith III, Christopher Arndt"; declare copyright "Copyright (C) 2003-2019 by Julius O. Smith III <[email protected]>"; declare license "STK-4.3 license"; declare version "0.1.0"; import("stdfaust.lib"); process = _,_ : dm.zita_rev1 : _,_;
https://raw.githubusercontent.com/SpotlightKid/dfzitarev1/8508c4bd9e2dd4f280e302a7884a28d1428db096/faust/dfzitarev1.dsp
faust
declare name "DFZitaRev1"; declare description "A feedback-delay-network reverb"; declare author "Julius O. Smith III, Christopher Arndt"; declare copyright "Copyright (C) 2003-2019 by Julius O. Smith III <[email protected]>"; declare license "STK-4.3 license"; declare version "0.1.0"; import("stdfaust.lib"); process = _,_ : dm.zita_rev1 : _,_;
22dae3c57918347444a8d7eee224e2dadbd65ef3d1f7c55c8e38bd091950ae63
LucaSpanedda/Analisi_Effetto_Larsen
LAR_Peakholder.dsp
// FAUST standard library import("stdfaust.lib"); // Peakholder IIR - Loop Stage Peakholder = _ : abs <: loop ~_ with{ loop = ((_,_) : max); }; // Counterbalancing LARPeakholder = _ <: *(1-Peakholder); process = LARPeakholder;
https://raw.githubusercontent.com/LucaSpanedda/Analisi_Effetto_Larsen/af64a95fbc4dc2de7d69ffa86d1ae7ba22dd0827/LAR_Peakholder.dsp
faust
FAUST standard library Peakholder IIR - Loop Stage Counterbalancing
import("stdfaust.lib"); Peakholder = _ : abs <: loop ~_ with{ loop = ((_,_) : max); }; LARPeakholder = _ <: *(1-Peakholder); process = LARPeakholder;
095de15337b8bdd0345cd661191e16aa24ea6ac39a7aa6131ad7f9c9961cb754
Barabas5532/TubeScreamer
tubescreamer.dsp
import("stdfaust.lib"); gain = hslider("gain", 0.5, 0, 1, 0.01) : si.smoo; tone = hslider("tone", 0.5, 0, 1, 0.01) : si.smoo; volume = hslider("volume", 0.5, 0, 1, 0.01) : si.smoo; input_filter = fi.highpass(1, 720); clipping = ef.cubicnl(gain, 0); post_filter = fi.lowpass(1, 350 + (tone * (4500 - 350))); volume_control = ba.db2linear((volume - 1) * 40); process = _,_ :> input_filter : clipping : post_filter * volume_control <: _,_;
https://raw.githubusercontent.com/Barabas5532/TubeScreamer/519334dcbe3b4afc1f937889383ddc8a884e12d2/tubescreamer.dsp
faust
import("stdfaust.lib"); gain = hslider("gain", 0.5, 0, 1, 0.01) : si.smoo; tone = hslider("tone", 0.5, 0, 1, 0.01) : si.smoo; volume = hslider("volume", 0.5, 0, 1, 0.01) : si.smoo; input_filter = fi.highpass(1, 720); clipping = ef.cubicnl(gain, 0); post_filter = fi.lowpass(1, 350 + (tone * (4500 - 350))); volume_control = ba.db2linear((volume - 1) * 40); process = _,_ :> input_filter : clipping : post_filter * volume_control <: _,_;
3fe0b9accaa36cff86bca03da0d8c2c852e80a872ec105c6df977faf89c261da
2020V3DisHenricHJonathanKEget/FaustDelayPlugin
faust_delay_exjobb.dsp
import("stdfaust.lib"); MAX_DELAY_TIME = 2000; SAMPLE_RATE = ma.SR; Xdelay = _ <: *(1-DryWet), (+~(de.fdelay(SAMPLE_RATE*2, Time)*Feedback) : *(DryWet)) :> _ with { DryWet = hslider("Dry/Wet", 0, 0, 1, 0.01) : si.smooth(0.999); Feedback = hslider("Feedback", 0, 0, 1, 0.001) : si.smooth(0.999); Time = hslider("Time (ms)", 250, 0, MAX_DELAY_TIME, 0.1) * 0.001 * SAMPLE_RATE : si.smooth(0.999); }; process = Xdelay;
https://raw.githubusercontent.com/2020V3DisHenricHJonathanKEget/FaustDelayPlugin/4ec1ae6ccd3b9c1a68ad6e5cdbcc0d0ec94870d4/faust_delay_exjobb.dsp
faust
import("stdfaust.lib"); MAX_DELAY_TIME = 2000; SAMPLE_RATE = ma.SR; Xdelay = _ <: *(1-DryWet), (+~(de.fdelay(SAMPLE_RATE*2, Time)*Feedback) : *(DryWet)) :> _ with { DryWet = hslider("Dry/Wet", 0, 0, 1, 0.01) : si.smooth(0.999); Feedback = hslider("Feedback", 0, 0, 1, 0.001) : si.smooth(0.999); Time = hslider("Time (ms)", 250, 0, MAX_DELAY_TIME, 0.1) * 0.001 * SAMPLE_RATE : si.smooth(0.999); }; process = Xdelay;
2bd405bdc2f0a2b40bece63c2ffe2cebd89c78d9d2d17de27d25a2997d2bb054
mathiasbredholt/BredholtPlugins
MonoPhaser.dsp
import("stdfaust.lib"); depth = hslider("depth", 0.5, 0, 3, 0.01); fb = hslider("fb", 0, 0, 1, 0.01); rate = hslider("rate", 1, 0.001, 20, 0.01); phase = hslider("phase", 0, 0, 1, 0.01); notchWidth = hslider("width", 10e3, 20, 20e3, 0.01); fMin = hslider("fMin", 20, 20, 20e3, 0.01); fMax = hslider("fMax", 20e3, 20, 20e3, 0.01); process = _ : pf.phaser2_mono(8, phase, notchWidth, fMin, 1, fMax, rate, depth, fb, 0);
https://raw.githubusercontent.com/mathiasbredholt/BredholtPlugins/7a212ea48dfdf3aa2847f7a7d7f48dfa9783ed4e/Plugins/MonoPhaser/MonoPhaser.dsp
faust
import("stdfaust.lib"); depth = hslider("depth", 0.5, 0, 3, 0.01); fb = hslider("fb", 0, 0, 1, 0.01); rate = hslider("rate", 1, 0.001, 20, 0.01); phase = hslider("phase", 0, 0, 1, 0.01); notchWidth = hslider("width", 10e3, 20, 20e3, 0.01); fMin = hslider("fMin", 20, 20, 20e3, 0.01); fMax = hslider("fMax", 20e3, 20, 20e3, 0.01); process = _ : pf.phaser2_mono(8, phase, notchWidth, fMin, 1, fMax, rate, depth, fb, 0);
fe08eb393bb18a8b7f35e3b2367209177cc3e681ee41dc114ccd78002778158a
Martinacontu/programmazione
sotrattiva.dsp
import("stdfaust.lib"); process= no.noise : fi.lowpass(2,6000) : fi.highpass(2,6000);
https://raw.githubusercontent.com/Martinacontu/programmazione/f0881603fdec0ad0bc624e148530d54818919510/sotrattiva.dsp
faust
import("stdfaust.lib"); process= no.noise : fi.lowpass(2,6000) : fi.highpass(2,6000);
c933067162566cb1c19eeafd9810823fcd0df96e5762ccef6af132b8053496ce
JuanSaudio/AudioDevKitDemo
SquareWave.dsp
import("stdfaust.lib"); nOsc = 10; // number of oscillators fc = 100; // base frequency process = par(i, nOsc, os.osc(fc * (i + 1)) / (i + 1)) :> _ * 0.00001;
https://raw.githubusercontent.com/JuanSaudio/AudioDevKitDemo/6a87465f58b48442c47d535188cdb82a7f9eb98e/SquareWave/SquareWave.dsp
faust
number of oscillators base frequency
import("stdfaust.lib"); process = par(i, nOsc, os.osc(fc * (i + 1)) / (i + 1)) :> _ * 0.00001;
fa3f400a2b884715ffc56f8d5b966abf43b58846299a1057f1791706f9a96f9c
moldeo/moldeojs
wind.dsp
//----------------------`wind`-------------------------- // A very simple wind simulator, based on a filtered white noise // // #### Usage // // ``` // wind(f) : _ // ``` // // Where: // // * `f`: is the force of the wind: between 0 and 1 // //---------------------------------------------------------- import("stdfaust.lib"); wind(force) = no.multinoise(2) : par(i, 2, ve.moog_vcf_2bn(force,freq)) : par(i, 2, *(force)) with { freq = (force*87)+1 : ba.pianokey2hz; }; process = wind ( hslider("v:wind/force",0.66,0,1,0.01) : si.smooth (0.997) );
https://raw.githubusercontent.com/moldeo/moldeojs/68a309d9df674d613dadbbc0417730cd87e991a3/src/assets/data/effects/faust/wind.dsp
faust
----------------------`wind`-------------------------- A very simple wind simulator, based on a filtered white noise #### Usage ``` wind(f) : _ ``` Where: * `f`: is the force of the wind: between 0 and 1 ----------------------------------------------------------
import("stdfaust.lib"); wind(force) = no.multinoise(2) : par(i, 2, ve.moog_vcf_2bn(force,freq)) : par(i, 2, *(force)) with { freq = (force*87)+1 : ba.pianokey2hz; }; process = wind ( hslider("v:wind/force",0.66,0,1,0.01) : si.smooth (0.997) );
5ff66fd7c8c1c3a83674bfbf15a612773188b67c846568328f59ad7dfbd909fb
tomara-x/magi
cbat.dsp
import("stdfaust.lib"); bpm = 81; res = 4; trig = ba.beat(bpm*res); beat = ba.cycle(16, trig) : _,!,_,_,!,!,_,!,_,_,_,!,_,!,!,! :> _; sig = sy.hat(3170,18000,0.0005,0,beat); process = sig <: _,_; /* import("stdfaust.lib"); trig2gate(t,time) = t : ba.peakholder(ba.sec2samp(time)); bpm = 96; // htrig = ba.beat(bpm*3); // f(x) = ba.resetCtr(12,x,htrig); // hbeat = 1,5,9,10,11 : par(i,5,f) :> _; hat = sy.hat(3100,18e3,0.0005,0,hbeat); htrig = ba.beat(bpm*6); f(x) = ba.resetCtr(24,x,htrig); hbeat = 1,10,18,20,21,22 : par(i,6,f) :> _; ktrig = ba.beat(bpm*4); g(x) = ba.resetCtr(16,x,ktrig); kbeat = 1,5,9,13 : par(i,4,g) :> _; kick = sy.kick(44, 0.01, 0.001, .6, 1, trig2gate(kbeat,0.1)); process = kick+hat <: _,_; //1,3,4,7,9,10,11,13 //amen! // process = +(ba.beat(30)) ~ _ : -(1) : %(16); // process = +(gate(30,0.5)) ~ _ : /(ma.SR); */ /* import("stdfaust.lib"); trig2gate(t,time) = t : ba.peakholder(ba.sec2samp(time)); bpm = 96; htrig = ba.beat(bpm*3); hbeat = ba.cycle(12, htrig) : _,!,!,_,!,!,_,!,!,_,!,_ :> _; hat = sy.hat(3100,18e3,0.0005,0,hbeat); ktrig = ba.beat(bpm*4); kbeat = ba.cycle(16, ktrig) : _,!,!,!,_,!,!,!,_,!,!,!,_,!,_,! :> _; kick = sy.kick(44, 0.01, 0.001, .6, 1, trig2gate(kbeat,0.05)); process = kick+hat <: dm.freeverb_demo; */
https://raw.githubusercontent.com/tomara-x/magi/d9ad895a70b6e27cc683f1342d406e87ea979220/practice/cbat.dsp
faust
import("stdfaust.lib"); trig2gate(t,time) = t : ba.peakholder(ba.sec2samp(time)); bpm = 96; // htrig = ba.beat(bpm*3); // f(x) = ba.resetCtr(12,x,htrig); // hbeat = 1,5,9,10,11 : par(i,5,f) :> _; hat = sy.hat(3100,18e3,0.0005,0,hbeat); htrig = ba.beat(bpm*6); f(x) = ba.resetCtr(24,x,htrig); hbeat = 1,10,18,20,21,22 : par(i,6,f) :> _; ktrig = ba.beat(bpm*4); g(x) = ba.resetCtr(16,x,ktrig); kbeat = 1,5,9,13 : par(i,4,g) :> _; kick = sy.kick(44, 0.01, 0.001, .6, 1, trig2gate(kbeat,0.1)); process = kick+hat <: _,_; //1,3,4,7,9,10,11,13 //amen! // process = +(ba.beat(30)) ~ _ : -(1) : %(16); // process = +(gate(30,0.5)) ~ _ : /(ma.SR); import("stdfaust.lib"); trig2gate(t,time) = t : ba.peakholder(ba.sec2samp(time)); bpm = 96; htrig = ba.beat(bpm*3); hbeat = ba.cycle(12, htrig) : _,!,!,_,!,!,_,!,!,_,!,_ :> _; hat = sy.hat(3100,18e3,0.0005,0,hbeat); ktrig = ba.beat(bpm*4); kbeat = ba.cycle(16, ktrig) : _,!,!,!,_,!,!,!,_,!,!,!,_,!,_,! :> _; kick = sy.kick(44, 0.01, 0.001, .6, 1, trig2gate(kbeat,0.05)); process = kick+hat <: dm.freeverb_demo;
import("stdfaust.lib"); bpm = 81; res = 4; trig = ba.beat(bpm*res); beat = ba.cycle(16, trig) : _,!,_,_,!,!,_,!,_,_,_,!,_,!,!,! :> _; sig = sy.hat(3170,18000,0.0005,0,beat); process = sig <: _,_;
a25192edc514db5395e036e85c23f07545bd0bae2ebf107a68b003cc5db7ab0a
tomara-x/magi
jam10.dsp
/* import("stdfaust.lib"); list = par(i,16, par(j,8, (j+(j+1)*i)%16)); t = ba.beat(128); c = ba.counter(t); step = list : ba.selectn(8*16,c); midc = 261.626; frq = midc*ba.semi2ratio(step) : qu.quantize(midc,qu.dorian); process = frq : os.osc*0.1 <: _,_; //different import("stdfaust.lib"); scaleRep(rats,octs) = par(i,octs,rats) : par(i,octs,par(j,c,_*(i+1))) with { c = outputs(rats); }; list = par(i,16, par(j,8, ((j+1)+(j+1)*i)%14)); t = ba.beat(128*4); c = ba.counter(t)%outputs(list); step = list : ba.selectn(outputs(list),c); midc = 261.626; scale = scaleRep(qu.eolian, 2); frq = midc*ba.selectn(outputs(scale),step,scale)/2; process = frq : os.osc*0.1 <: _,_; */ // a bit better import("stdfaust.lib"); scaleRep(scal,octs) = par(i,octs,par(j,outputs(scal),ba.take(j+1,scal)*(i+1))); scale = scaleRep(qu.eolian, 2); list = par(i,14,par(j,8, ((j+1)+(j+1)*i)%14)); t = ba.beat(128*4); c = ba.counter(t)%outputs(list); //this is horrble! they're not vars! do you see it now? step = list : ba.selectn(outputs(list),c); rat = scale : ba.selectn(outputs(scale),step); midc = 261.626; frq = midc*rat/2; process = frq : os.osc*0.1 <: _,_;
https://raw.githubusercontent.com/tomara-x/magi/bcf22a4ef23899cd8ce3bf5e08e374994907f81a/practice/jam10.dsp
faust
import("stdfaust.lib"); list = par(i,16, par(j,8, (j+(j+1)*i)%16)); t = ba.beat(128); c = ba.counter(t); step = list : ba.selectn(8*16,c); midc = 261.626; frq = midc*ba.semi2ratio(step) : qu.quantize(midc,qu.dorian); process = frq : os.osc*0.1 <: _,_; //different import("stdfaust.lib"); scaleRep(rats,octs) = par(i,octs,rats) : par(i,octs,par(j,c,_*(i+1))) with { c = outputs(rats); }; list = par(i,16, par(j,8, ((j+1)+(j+1)*i)%14)); t = ba.beat(128*4); c = ba.counter(t)%outputs(list); step = list : ba.selectn(outputs(list),c); midc = 261.626; scale = scaleRep(qu.eolian, 2); frq = midc*ba.selectn(outputs(scale),step,scale)/2; process = frq : os.osc*0.1 <: _,_; a bit better this is horrble! they're not vars! do you see it now?
import("stdfaust.lib"); scaleRep(scal,octs) = par(i,octs,par(j,outputs(scal),ba.take(j+1,scal)*(i+1))); scale = scaleRep(qu.eolian, 2); list = par(i,14,par(j,8, ((j+1)+(j+1)*i)%14)); t = ba.beat(128*4); c = ba.counter(t)%outputs(list); step = list : ba.selectn(outputs(list),c); rat = scale : ba.selectn(outputs(scale),step); midc = 261.626; frq = midc*rat/2; process = frq : os.osc*0.1 <: _,_;
f232aae3279986da527b2d1e2667c6bc6ea81535da60845b996729b41065d045
miselaytes-anton/faust-echo
FaustEcho.dsp
import("stdfaust.lib"); lp = fi.lowpass(1, 1000); process = + : lp:lp:lp: _* 0.6 : ef.echo(2,1,0.5):re.satrev;
https://raw.githubusercontent.com/miselaytes-anton/faust-echo/13282816ff8a97e1f1e683f80974dc131f6d23f1/FaustEcho.dsp
faust
import("stdfaust.lib"); lp = fi.lowpass(1, 1000); process = + : lp:lp:lp: _* 0.6 : ef.echo(2,1,0.5):re.satrev;
8fe70c87d0d4498d3c73bce45c3ffa13310a648379e934e0534ba0cd64e187a2
Lcchy/orac-modules
moogf.dsp
import("stdfaust.lib"); v = 2 * ma.PI * hslider("freq", 100, 20, 5000, 1) / ma.SR; F1 = * (v / (1+v)) : + ~ * (1 / (1+v)); stage = (_ <: F1, ^(3)), _ : (_ <: _, (^(3) : *(-1))), + : _, (+ :_: F1); full = stage : stage : stage : stage; process = full;
https://raw.githubusercontent.com/Lcchy/orac-modules/eb9de9db65b9403404717186ca1f214d9219e64a/fates_usermodules/fx/aapart/moogf/moogf.dsp
faust
import("stdfaust.lib"); v = 2 * ma.PI * hslider("freq", 100, 20, 5000, 1) / ma.SR; F1 = * (v / (1+v)) : + ~ * (1 / (1+v)); stage = (_ <: F1, ^(3)), _ : (_ <: _, (^(3) : *(-1))), + : _, (+ :_: F1); full = stage : stage : stage : stage; process = full;
9c52391f7096ce39c01742d30c52fa4d46a1ce385e3c9903c26d5611e109ebb3
NickSeagull/soup_machine
noise.dsp
declare options "[osc:on]"; import("stdfaust.lib"); process = g * a * os.oscrs(f*b) <: _,_; a = hslider("gain",1,0,1,0.001); f = hslider("freq",392.0,200.0,2000.0,0.01); b = ba.semi2ratio(hslider("bend",0,-2,2,0.001)); g = button("gate");
https://raw.githubusercontent.com/NickSeagull/soup_machine/8e864b1f13c61540850470750c5e197dfdfe6087/faust/noise.dsp
faust
declare options "[osc:on]"; import("stdfaust.lib"); process = g * a * os.oscrs(f*b) <: _,_; a = hslider("gain",1,0,1,0.001); f = hslider("freq",392.0,200.0,2000.0,0.01); b = ba.semi2ratio(hslider("bend",0,-2,2,0.001)); g = button("gate");
a8056e1381b11a93acbd5673f1a22ea8d55088d4a6bc162da6557ae7edf5e120
lwakefield/tesla-tree
poly.dsp
declare options "[midi:on][nvoices:12]"; import("stdfaust.lib"); freq = hslider("freq",200,50,1000,0.01); gain = hslider("gain",0.1,0,1,0.01); gate = button("gate"); envelope = en.adsr(0.01,0.01,0.8,0.1,gate)*gain; process = os.sawtooth(freq)*envelope <: _,_ : dm.zita_rev1;
https://raw.githubusercontent.com/lwakefield/tesla-tree/070d740ab0c4bc326a9df2a699d383326763df6f/poly.dsp
faust
declare options "[midi:on][nvoices:12]"; import("stdfaust.lib"); freq = hslider("freq",200,50,1000,0.01); gain = hslider("gain",0.1,0,1,0.01); gate = button("gate"); envelope = en.adsr(0.01,0.01,0.8,0.1,gate)*gain; process = os.sawtooth(freq)*envelope <: _,_ : dm.zita_rev1;
4597d4fe8070f343f135f51041cb34093bf1bf01fe7fac27166ea2629419d181
dynamicspeaker/esp32
fluteMIDI.dsp
declare name "FluteMIDI"; declare description "Simple MIDI-controllable flute physical model with physical parameters."; declare license "MIT"; declare copyright "(c)Romain Michon, CCRMA (Stanford University), GRAME"; import("stdfaust.lib"); process = pm.flute_ui_MIDI <: _,_;
https://raw.githubusercontent.com/dynamicspeaker/esp32/e10c3af4b3b47193dbb9e8975038992541591e8c/lib/arduino-audio-tools-main/examples/examples-faust/streams-faust_flute-i2s/fluteMIDI.dsp
faust
declare name "FluteMIDI"; declare description "Simple MIDI-controllable flute physical model with physical parameters."; declare license "MIT"; declare copyright "(c)Romain Michon, CCRMA (Stanford University), GRAME"; import("stdfaust.lib"); process = pm.flute_ui_MIDI <: _,_;
92351a7b0af974f22317cb396a29442eb3572296a919c0f030af574dc71c007a
misterinterrupt/Faust2AudioKitExample
MyOsc.dsp
import("stdfaust.lib"); freq = nentry("freq",440,20,20000,0.01) : si.smoo; gain = nentry("gain",1,0,1,0.01) : si.smoo; process = os.sawtooth(freq)*gain <: _,_;
https://raw.githubusercontent.com/misterinterrupt/Faust2AudioKitExample/0e16ac1ff62460c04cf88be85d177f1455dcef30/Faust2AudioKitExample/MyOsc.dsp
faust
import("stdfaust.lib"); freq = nentry("freq",440,20,20000,0.01) : si.smoo; gain = nentry("gain",1,0,1,0.01) : si.smoo; process = os.sawtooth(freq)*gain <: _,_;
5610ecf3a3c7fc454aded91e7a1cc4112aabccbcce98fa7debf5bea4cbdf68f7
aike/audiolang
sine.dsp
import("stdfaust.lib"); freq = 440; gain = 0.5; process = os.osc(freq) * gain <: _,_;
https://raw.githubusercontent.com/aike/audiolang/1a211888945eed4257d6078eff83af32068a550a/faust/sine.dsp
faust
import("stdfaust.lib"); freq = 440; gain = 0.5; process = os.osc(freq) * gain <: _,_;
d4ecfcb0f099a7ba682beda3121261264deaca529d8dd6d646ecdfb7d72540ad
rd--/hsc3
zitaRev.dsp
declare name "zitaRev"; declare version "0.0"; declare author "JOS, Revised by RM"; declare description "Example GUI for `zita_rev1_stereo` (mostly following the Linux `zita-rev1` GUI)."; import("stdfaust.lib"); process = dm.zita_rev1;
https://raw.githubusercontent.com/rd--/hsc3/dea91cd9401ce4532706909d62ef3f19d007c759/ext/faust/zitaRev.dsp
faust
declare name "zitaRev"; declare version "0.0"; declare author "JOS, Revised by RM"; declare description "Example GUI for `zita_rev1_stereo` (mostly following the Linux `zita-rev1` GUI)."; import("stdfaust.lib"); process = dm.zita_rev1;
d1c94096d7c72ad0108e56a92cff7b91c2ff71a721203789d90d3ddeaac417a1
SpotlightKid/cookiecutter-dpf-faust
{{ cookiecutter.plugin_name|lower }}.dsp
declare name "{{ cookiecutter.plugin_name }}"; declare description "{{ cookiecutter.plugin_description }}"; declare author "{{ cookiecutter.author_name }}"; declare license "{{ cookiecutter.project_license }} license"; import("stdfaust.lib"); gain = hslider("[0]Gain [symbol: gain][abbrev: gain][unit: dB]", -6.0, -90.0, 30.0, 0.1):si.smoo; process = _ * ba.db2linear(gain);
https://raw.githubusercontent.com/SpotlightKid/cookiecutter-dpf-faust/a8b6541953fdcb68fa45e017cd355657a42d295e/%7B%7B%20cookiecutter.repo_name%20%7D%7D/faust/%7B%7B%20cookiecutter.plugin_name%7Clower%20%7D%7D.dsp
faust
declare name "{{ cookiecutter.plugin_name }}"; declare description "{{ cookiecutter.plugin_description }}"; declare author "{{ cookiecutter.author_name }}"; declare license "{{ cookiecutter.project_license }} license"; import("stdfaust.lib"); gain = hslider("[0]Gain [symbol: gain][abbrev: gain][unit: dB]", -6.0, -90.0, 30.0, 0.1):si.smoo; process = _ * ba.db2linear(gain);
54b7a150976b7e9fa0ed346b2469f449cc3fed5bc78393053b73df4cb9153e26
slemouton/mantra2021
mantra.dsp
declare name "Mantra v.0 Ring Modulation"; /* ======== DESCRIPTION ========== - Ring modulation consists in modulating a sound by multiplying it with a sine wave - Head = no modulation - Downward = modulation, varying the modulating frequency */ import("stdfaust.lib"); process = ringmod; ringmod = _<:_,*(os.oscs(freq)):drywet with { freq = hslider ( "[1]Modulation Frequency[style:knob][acc:1 0 -10 0 10][scale:log]", 220,5,1000,0.001):si.smooth(0.999); drywet(x,y) = (1-c)*x + c*y; c = hslider("[2]Modulation intensity[style:knob][unit:%][acc:1 0 -10 0 10]", 90,0,100,0.01)*(0.01):si.smooth(0.999); };
https://raw.githubusercontent.com/slemouton/mantra2021/37659371a34d790bc670fdc0247f1d5c85387965/mantra-faust/mantra.dsp
faust
======== DESCRIPTION ========== - Ring modulation consists in modulating a sound by multiplying it with a sine wave - Head = no modulation - Downward = modulation, varying the modulating frequency
declare name "Mantra v.0 Ring Modulation"; import("stdfaust.lib"); process = ringmod; ringmod = _<:_,*(os.oscs(freq)):drywet with { freq = hslider ( "[1]Modulation Frequency[style:knob][acc:1 0 -10 0 10][scale:log]", 220,5,1000,0.001):si.smooth(0.999); drywet(x,y) = (1-c)*x + c*y; c = hslider("[2]Modulation intensity[style:knob][unit:%][acc:1 0 -10 0 10]", 90,0,100,0.01)*(0.01):si.smooth(0.999); };
9a4d172182401078223dd03da18031cd571055f5182ec8af81155bf09a852db2
Stinos98/Faustcode-
lezione1.dsp
//commento: il : fa una connessione seriale //connessioone parallela è " , " connessione seria //tutti i segni algebrici (+,-,:,*) sono operatori matematici import("stdfaust.lib"); //libreria standard di faust process = _ +_ , _ +_; //ogni riga si chiude con un ;
https://raw.githubusercontent.com/Stinos98/Faustcode-/19afcd0898f91339ff0dcc92f4a1886cddff5a89/lezione1.dsp
faust
commento: il : fa una connessione seriale connessioone parallela è " , " tutti i segni algebrici (+,-,:,*) sono operatori matematici libreria standard di faust ogni riga si chiude con un ;
connessione seria
3a585341b70b4686820b5bc2591038acef0a9611bdd79e0606ed169ebbaba125
Smona/faust-loader
TestSynth.dsp
declare name "TestSynth"; declare version "1.0"; declare author "Smona"; declare license "BSD"; import("stdfaust.lib"); // TODO: test all input & output types process = no.noise * 0.1;
https://raw.githubusercontent.com/Smona/faust-loader/9fd67bb88f7183b660a95599673a0b7eb7c1b015/test/TestSynth.dsp
faust
TODO: test all input & output types
declare name "TestSynth"; declare version "1.0"; declare author "Smona"; declare license "BSD"; import("stdfaust.lib"); process = no.noise * 0.1;
577e696e43dae5273b324c792d7a9517d6f1475abe7861968c6f1d0fe399092c
LucaSpanedda/Analisi_Effetto_Larsen
LAR_RMS.dsp
// FAUST standard library import("stdfaust.lib"); // RMS with indipendent attack and release time RMS(att,rel,x) = loop ~ _ : sqrt with { loop(y) = (1.0 - coeff) * x * x + coeff * y with { attCoeff = exp(-2.0 * ma.PI * ma.T / att); relCoeff = exp(-2.0 * ma.PI * ma.T / rel); coeff = ba.if(abs(x) > y, attCoeff, relCoeff); }; }; // Counterbalancing LARRMS(att,rel,z) = z*(1-(z:RMS(att,rel))); process = LARRMS(0.01,0.01) <: _,_;
https://raw.githubusercontent.com/LucaSpanedda/Analisi_Effetto_Larsen/7f0e59fb8f75f7855e8c5e92befe08328fdcb1ec/LAR_RMS.dsp
faust
FAUST standard library RMS with indipendent attack and release time Counterbalancing
import("stdfaust.lib"); RMS(att,rel,x) = loop ~ _ : sqrt with { loop(y) = (1.0 - coeff) * x * x + coeff * y with { attCoeff = exp(-2.0 * ma.PI * ma.T / att); relCoeff = exp(-2.0 * ma.PI * ma.T / rel); coeff = ba.if(abs(x) > y, attCoeff, relCoeff); }; }; LARRMS(att,rel,z) = z*(1-(z:RMS(att,rel))); process = LARRMS(0.01,0.01) <: _,_;
0bd6a8f3e5ed616149c7c77fb5c84cae5567a19359185958750f3066d5f52ae1
CICM/pd-faustgen
gain.dsp
import("stdfaust.lib"); process = _ * (gain) with { gain = vslider("gain [unit:linear]", 0,0,1,0.001); };
https://raw.githubusercontent.com/CICM/pd-faustgen/9e2aaeabe94a7fab6928711050535ac12a1a591a/external/examples/gain.dsp
faust
import("stdfaust.lib"); process = _ * (gain) with { gain = vslider("gain [unit:linear]", 0,0,1,0.001); };
22856573419b1dc628e1c00f062d3d365dabe83f01fcc2a943e1f7dee11beea9
brummer10/slowmo.lv2
Gain.dsp
declare id "gain"; declare name "Gain"; declare category "Tone Control"; import("stdfaust.lib"); gain = vslider("Volume[name:Volume][tooltip:gain (dB)]", 0, -20, 20, 0.1) : ba.db2linear : si.smooth(0.999); process = *(gain);
https://raw.githubusercontent.com/brummer10/slowmo.lv2/1a32ab4e5b3740dab64e6f9dcce54baa9162a7bd/slowmo/Faust/Gain.dsp
faust
declare id "gain"; declare name "Gain"; declare category "Tone Control"; import("stdfaust.lib"); gain = vslider("Volume[name:Volume][tooltip:gain (dB)]", 0, -20, 20, 0.1) : ba.db2linear : si.smooth(0.999); process = *(gain);
fddfbf4a504fec3621cd4cd12f3af023baf5cc5eb0016bbfd50eb1d4bb2f64ed
plule/faust-egui
instrument.dsp
declare name "NylonGuitarMidi"; declare description "Simple acoustic guitar model with nylon strings."; declare license "MIT"; declare copyright "(c)Romain Michon, CCRMA (Stanford University), GRAME"; import("stdfaust.lib"); process = pm.nylonGuitar_ui_MIDI <: _,_;
https://raw.githubusercontent.com/plule/faust-egui/a1d84b9a08e6fdb02480338dc705802cd0aa3560/dsp/instrument.dsp
faust
declare name "NylonGuitarMidi"; declare description "Simple acoustic guitar model with nylon strings."; declare license "MIT"; declare copyright "(c)Romain Michon, CCRMA (Stanford University), GRAME"; import("stdfaust.lib"); process = pm.nylonGuitar_ui_MIDI <: _,_;
7e2ac802651e021be061c19998f6e7dc35c68988c308769b821f7b54744a799a
quidmonkey/autopanner
autopanner.dsp
declare name "autopanner"; declare version "1.0"; declare author "Abraham Walters"; declare license "BSD"; declare copyright "(c)quid 2021"; import("filter.lib"); import("music.lib"); import("stdfaust.lib"); depth = hslider("depth", 1, 0, 15, 0.01) : smooth(0.999); enabled = checkbox("enabled"); gain = hslider("gain", 0.1, 0, 1, 0.01) : smooth(0.999); rate = hslider("rate", 0.5, 0, 10, 0.01) : smooth(0.999); tremolo = hgroup("tremolo", osc(depth) * enabled); volume = gain * (1 + tremolo); left = 1 + osc(rate); right = 1 - osc(rate); autopanner = _ <: *(left * volume), *(right * volume); process = no.noise : autopanner;
https://raw.githubusercontent.com/quidmonkey/autopanner/5114cdc1068763f6ed8974211d46ee23e7ce4510/autopanner.dsp
faust
declare name "autopanner"; declare version "1.0"; declare author "Abraham Walters"; declare license "BSD"; declare copyright "(c)quid 2021"; import("filter.lib"); import("music.lib"); import("stdfaust.lib"); depth = hslider("depth", 1, 0, 15, 0.01) : smooth(0.999); enabled = checkbox("enabled"); gain = hslider("gain", 0.1, 0, 1, 0.01) : smooth(0.999); rate = hslider("rate", 0.5, 0, 10, 0.01) : smooth(0.999); tremolo = hgroup("tremolo", osc(depth) * enabled); volume = gain * (1 + tremolo); left = 1 + osc(rate); right = 1 - osc(rate); autopanner = _ <: *(left * volume), *(right * volume); process = no.noise : autopanner;
34c010c1c430b9fc8b67cf745bf504a6ffcc3bb4e6e8d9c38ba4d13ce2c3b47b
ThiloSch/Faust_Kick_Synthesizer
Live_patch.dsp
import("stdfaust.lib"); import("stdfaust.lib"); import("physmodels.lib"); // Trigger and global Gain trigger = button("gate"); // Amplitude Envelope attack = hslider("A",0.05,0.01,0.11,0.001); decay = 1; sustain = 0; release = hslider("/h:[1]envelope/Release",1, 0.1, 3, 0.001); // Filter control f_frequency = hslider("Cut Off", 900, 50, 4000, 1); qfactor = hslider("Q", 1,0.1,20,0.1); // Additional Controls physmix = hslider("mix",-1,-1,1,0.1); // Classic/Physical Mix sigType = hslider("Shape", 0, 0, 1.5, 0.01); // Signal Type frequency = hslider("/h:[0]Pitch/frequency", 50, 40, 100, 0.1); // Endfrequency p_release = 0.1; punch = hslider("Punch",0.5,0.001,1,0.001); //OSCILLATOR SECTION// //-----------------// oscillator_sin(sig) = signal with{ swing = pitcher(40+punch*400, frequency, 0.04-punch*0.030, p_release, trigger); coef = 1; signal = os.osc(swing) * coef ; // signal = 0; }; oscillator_tri(sig) = signal with{ swing = pitcher(40+punch*400, frequency, 0.04-punch*0.030, p_release, trigger); coef = select2(sig<2,0,select2(sig<1,2-sig,sig)); signal = os.triangle(swing)* coef ; }; oscillator_sqa(sig) = signal with{ swing = pitcher(40+punch*400, frequency, 0.04-punch*0.030, p_release, trigger); coef = select2(sig>1,0,select2(sig<2,3-sig,-1+sig)); signal = os.square(swing) * coef ; }; // Classic Approach with Pitch Envelope pitcher(start, end, sus, rel, trig) = freq with { //time raises/resets indefinitely when the trigger is pressed time = (raise*reset + upfront) ~ _ with { upfront = trig > trig'; reset = trig <= trig'; raise(x) = (x + (x > 0)); }; // time = select2() susSamps = int(sus * 44100); target = select2( susSamps>time, end, start); relPhase = susSamps < time; pole = ba.tau2pole(rel/6.91); freq = target : select2(relPhase, start, si.smooth(pole)); }; //-----------------// //PHYSICAL MODELLING SECTION// //-----------------// character = hslider("Character",0.5,0.001,1,0.001); physfreq = frequency; striker = pm.impulseExcitation(trigger) : chain; meshed = striker : drumModel(frequency,0,1,1,2000*character) : *(en.ar(attack,10,trigger)); // composite = 8*meshed; // Extracted Modes drumModel(freq ,exPos,t60,t60DecayRatio,t60DecaySlope) = _ <: par(i,nModes,modeFilter(modesFreqs(i),modesT60s(i),modesGains(int(exPos),i))) :> /(nModes) with{ nModes = 40; nExPos = 5; modesFreqRatios(n) = ba.take(n+1,(0.496487 ,0.498829 ,0.510539 ,1.000000 ,1.402810 ,1.407494 ,1.510539 ,1.512881 ,1.562061 ,1.805621 ,1.807963 ,1.814988 ,2.032787 ,2.072600 ,2.081967 ,2.086651 ,2.100703 ,2.271663 ,2.278689 ,2.510539 ,2.576112 ,2.580796 ,2.608899 ,2.648712 ,2.660422 ,2.702576 ,2.711944 ,2.714286 ,2.777518 ,2.789227 ,2.868852 ,2.873536 ,3.133489 ,3.222482 ,3.224824 ,3.302108 ,3.318501 ,3.416862 ,3.444965 ,3.449649)); modesFreqs(i) = freq/(2-character*1.5)*modesFreqRatios(i); modesGains(p,n) = waveform{0.002800 ,0.002910 ,0.002828 ,1.000000 ,0.000329 ,0.261250 ,0.000724 ,0.004314 ,0.002937 ,0.009676 ,0.002475 ,0.003697 ,1.504010 ,0.030839 ,0.086771 ,0.000730 ,0.010672 ,0.000401 ,0.036587 ,0.002806 ,0.024838 ,0.000031 ,0.001831 ,0.000088 ,0.033158 ,0.004144 ,0.004803 ,0.002403 ,0.063744 ,0.000837 ,0.009838 ,0.001281 ,1.908791 ,0.005826 ,0.016356 ,0.000032 ,0.142409 ,0.004683 ,0.033018 ,0.001156},int(p*nModes+n) : rdtable : select2(modesFreqs(n)<(ma.SR/2-1),0); modesT60s(i) = t60*pow(1-(modesFreqRatios(i)/3000)*t60DecayRatio,t60DecaySlope); }; //-----------------// process = ((oscillator_sin(sigType), oscillator_sqa(sigType), oscillator_tri(sigType)) :> _ * en.adsre(attack, decay, sustain, release, trigger))* (0.5*(1-physmix) : sqrt) , composite*(0.5*(1+physmix) : sqrt):> fi.resonlp(f_frequency,qfactor,1) <:_,_;
https://raw.githubusercontent.com/ThiloSch/Faust_Kick_Synthesizer/2a4136c85bbd10e2e68f928ebfae5d0a88c594c5/Live_patch.dsp
faust
Trigger and global Gain Amplitude Envelope Filter control Additional Controls Classic/Physical Mix Signal Type Endfrequency OSCILLATOR SECTION// -----------------// signal = 0; Classic Approach with Pitch Envelope time raises/resets indefinitely when the trigger is pressed time = select2() -----------------// PHYSICAL MODELLING SECTION// -----------------// Extracted Modes -----------------//
import("stdfaust.lib"); import("stdfaust.lib"); import("physmodels.lib"); trigger = button("gate"); attack = hslider("A",0.05,0.01,0.11,0.001); decay = 1; sustain = 0; release = hslider("/h:[1]envelope/Release",1, 0.1, 3, 0.001); f_frequency = hslider("Cut Off", 900, 50, 4000, 1); qfactor = hslider("Q", 1,0.1,20,0.1); p_release = 0.1; punch = hslider("Punch",0.5,0.001,1,0.001); oscillator_sin(sig) = signal with{ swing = pitcher(40+punch*400, frequency, 0.04-punch*0.030, p_release, trigger); coef = 1; signal = os.osc(swing) * coef ; }; oscillator_tri(sig) = signal with{ swing = pitcher(40+punch*400, frequency, 0.04-punch*0.030, p_release, trigger); coef = select2(sig<2,0,select2(sig<1,2-sig,sig)); signal = os.triangle(swing)* coef ; }; oscillator_sqa(sig) = signal with{ swing = pitcher(40+punch*400, frequency, 0.04-punch*0.030, p_release, trigger); coef = select2(sig>1,0,select2(sig<2,3-sig,-1+sig)); signal = os.square(swing) * coef ; }; pitcher(start, end, sus, rel, trig) = freq with { time = (raise*reset + upfront) ~ _ with { upfront = trig > trig'; reset = trig <= trig'; raise(x) = (x + (x > 0)); }; susSamps = int(sus * 44100); target = select2( susSamps>time, end, start); relPhase = susSamps < time; pole = ba.tau2pole(rel/6.91); freq = target : select2(relPhase, start, si.smooth(pole)); }; character = hslider("Character",0.5,0.001,1,0.001); physfreq = frequency; striker = pm.impulseExcitation(trigger) : chain; composite = 8*meshed; drumModel(freq ,exPos,t60,t60DecayRatio,t60DecaySlope) = _ <: par(i,nModes,modeFilter(modesFreqs(i),modesT60s(i),modesGains(int(exPos),i))) :> /(nModes) with{ nModes = 40; nExPos = 5; modesFreqRatios(n) = ba.take(n+1,(0.496487 ,0.498829 ,0.510539 ,1.000000 ,1.402810 ,1.407494 ,1.510539 ,1.512881 ,1.562061 ,1.805621 ,1.807963 ,1.814988 ,2.032787 ,2.072600 ,2.081967 ,2.086651 ,2.100703 ,2.271663 ,2.278689 ,2.510539 ,2.576112 ,2.580796 ,2.608899 ,2.648712 ,2.660422 ,2.702576 ,2.711944 ,2.714286 ,2.777518 ,2.789227 ,2.868852 ,2.873536 ,3.133489 ,3.222482 ,3.224824 ,3.302108 ,3.318501 ,3.416862 ,3.444965 ,3.449649)); modesFreqs(i) = freq/(2-character*1.5)*modesFreqRatios(i); modesGains(p,n) = waveform{0.002800 ,0.002910 ,0.002828 ,1.000000 ,0.000329 ,0.261250 ,0.000724 ,0.004314 ,0.002937 ,0.009676 ,0.002475 ,0.003697 ,1.504010 ,0.030839 ,0.086771 ,0.000730 ,0.010672 ,0.000401 ,0.036587 ,0.002806 ,0.024838 ,0.000031 ,0.001831 ,0.000088 ,0.033158 ,0.004144 ,0.004803 ,0.002403 ,0.063744 ,0.000837 ,0.009838 ,0.001281 ,1.908791 ,0.005826 ,0.016356 ,0.000032 ,0.142409 ,0.004683 ,0.033018 ,0.001156},int(p*nModes+n) : rdtable : select2(modesFreqs(n)<(ma.SR/2-1),0); modesT60s(i) = t60*pow(1-(modesFreqRatios(i)/3000)*t60DecayRatio,t60DecaySlope); }; process = ((oscillator_sin(sigType), oscillator_sqa(sigType), oscillator_tri(sigType)) :> _ * en.adsre(attack, decay, sustain, release, trigger))* (0.5*(1-physmix) : sqrt) , composite*(0.5*(1+physmix) : sqrt):> fi.resonlp(f_frequency,qfactor,1) <:_,_;
506ddf880a82c3d831c9cd6efbe6dc96907d2de292b8ae79d89f4121382a6acd
ArcAudio/FaustWebAudioInput
audioinput.dsp
import("stdfaust.lib"); vol = hslider("volume [unit:dB]", 0, -96, 0, 0.1) : ba.db2linear : si.smoo; freq = hslider("freq [unit:Hz]", 1000, 20, 24000, 1) : si.smoo; flanger(p,wet,depth) = _ <: de.delay(256,d)*wet,_ :> /(2) with{ d = (os.osc(p) + 1)*127*depth; }; tremolo(fr,dep) = _*(1-(os.osc(fr)*0.5 + 0.5)*dep); f = hslider("ffreq [unit:Hz]",10,0.1,100,0.01); w = hslider("fwet",0.5,0,1,0.01); d = hslider("fdepth",0.5,0,1,0.01); tf = hslider("tfreq [unit:Hz]",10,0.1,100,0.01); td = hslider("tdepth",0.5,0,1,0.01); gain = hslider("gain [knob:2] [midi:ctrl 7]", 0.5, 0, 1, 0.01); gate = button("gate [switch:1]"); process = + : flanger(f,w,d) : tremolo(tf,td) <: _,_;
https://raw.githubusercontent.com/ArcAudio/FaustWebAudioInput/f80bd1948e90725b1dcb1cf2945637d6c82fd651/audioinput.dsp
faust
import("stdfaust.lib"); vol = hslider("volume [unit:dB]", 0, -96, 0, 0.1) : ba.db2linear : si.smoo; freq = hslider("freq [unit:Hz]", 1000, 20, 24000, 1) : si.smoo; flanger(p,wet,depth) = _ <: de.delay(256,d)*wet,_ :> /(2) with{ d = (os.osc(p) + 1)*127*depth; }; tremolo(fr,dep) = _*(1-(os.osc(fr)*0.5 + 0.5)*dep); f = hslider("ffreq [unit:Hz]",10,0.1,100,0.01); w = hslider("fwet",0.5,0,1,0.01); d = hslider("fdepth",0.5,0,1,0.01); tf = hslider("tfreq [unit:Hz]",10,0.1,100,0.01); td = hslider("tdepth",0.5,0,1,0.01); gain = hslider("gain [knob:2] [midi:ctrl 7]", 0.5, 0, 1, 0.01); gate = button("gate [switch:1]"); process = + : flanger(f,w,d) : tremolo(tf,td) <: _,_;
ee640da4f890d724e1753b1694a3f46efa4f3e8d905f36ed26bcf511d7bc89ea
brummer10/slowmo.lv2
bandsplit.dsp
declare id "bandsplit"; declare name "Bandsplit"; declare category "Filter"; import("stdfaust.lib"); geq = fi.filterbank(3, (51.0, 160.0, 284.5, 427.0, 590.5, 778.0, 992.5, 1238.0, 1519.0, 1841.0, 2210.0, 2632.0, 3115.0, 3668.5, 4302.5, 5028.5, 5859.5)); process = geq;
https://raw.githubusercontent.com/brummer10/slowmo.lv2/1a32ab4e5b3740dab64e6f9dcce54baa9162a7bd/slowmo/Faust/bandsplit.dsp
faust
declare id "bandsplit"; declare name "Bandsplit"; declare category "Filter"; import("stdfaust.lib"); geq = fi.filterbank(3, (51.0, 160.0, 284.5, 427.0, 590.5, 778.0, 992.5, 1238.0, 1519.0, 1841.0, 2210.0, 2632.0, 3115.0, 3668.5, 4302.5, 5028.5, 5859.5)); process = geq;
4f5d0d3fc3477ff12609496794af7579a222542e74409778d9948326c1c0ed90
mathiasbredholt/MapLooper-faust
Faust.dsp
import("stdfaust.lib"); ctFreq = hslider("cutoffFrequency",500,50,3000,0.01); res = hslider("res",0.5,0,1,0.1); gain = hslider("gain",1,0,1,0.01); process = no.pink_noise : ve.moog_vcf(res,ctFreq) * gain;
https://raw.githubusercontent.com/mathiasbredholt/MapLooper-faust/6123f2489c356446b267f346cb2e07a80f21067c/main/Faust.dsp
faust
import("stdfaust.lib"); ctFreq = hslider("cutoffFrequency",500,50,3000,0.01); res = hslider("res",0.5,0,1,0.1); gain = hslider("gain",1,0,1,0.01); process = no.pink_noise : ve.moog_vcf(res,ctFreq) * gain;
44d70ea1458b988232de0ac8980ab3eea2726d283abdd87dc41557837e671bbc
Rhoumi/Comparator
phasor.dsp
import("stdfaust.lib"); phasor_imp(freq, reset, phase) = (select2(reset, +(freq/ma.SR), phase) : ma.decimal) ~ _; // Version to be used with tables phasor_table(tablesize, freq, reset, phase) = phasor_imp(freq, reset, phase) : *(float(tablesize)); phasor(tablesize, freq) = phasor_table(tablesize, freq, 0, 0); process = phasor(hslider("table",0.5,0.1,1,0.1),hslider("freq",440,20,3000,1));
https://raw.githubusercontent.com/Rhoumi/Comparator/3b3608310834a5c0d07eeb252bc31b4e70a2f711/phasor.dsp
faust
Version to be used with tables
import("stdfaust.lib"); phasor_imp(freq, reset, phase) = (select2(reset, +(freq/ma.SR), phase) : ma.decimal) ~ _; phasor_table(tablesize, freq, reset, phase) = phasor_imp(freq, reset, phase) : *(float(tablesize)); phasor(tablesize, freq) = phasor_table(tablesize, freq, 0, 0); process = phasor(hslider("table",0.5,0.1,1,0.1),hslider("freq",440,20,3000,1));
84f5a937a9ece238c2e57ee25f6a11e3c55a024a8b411f1a1ff9ecd861d240d8
abmwine/FreeBSD-ports
example.dsp
// from https://faustdoc.grame.fr/tutorials/basic-osc/ import("stdfaust.lib"); f = hslider("freq",440,50,2000,0.01); g = hslider("gain",1,0,1,0.01); t = si.smoo(button("gate")); phasor(freq) = (+(freq/ma.SR) ~ ma.frac); osc(freq) = sin(phasor(freq)*2*ma.PI); organ(freq) = (osc(freq) + osc(freq*2) + osc(freq*3))/3; process = organ(f)*g*t;
https://raw.githubusercontent.com/abmwine/FreeBSD-ports/af67f424b69f6f2ebc90c65fdaedb96140421201/audio/faust/files/example.dsp
faust
from https://faustdoc.grame.fr/tutorials/basic-osc/
import("stdfaust.lib"); f = hslider("freq",440,50,2000,0.01); g = hslider("gain",1,0,1,0.01); t = si.smoo(button("gate")); phasor(freq) = (+(freq/ma.SR) ~ ma.frac); osc(freq) = sin(phasor(freq)*2*ma.PI); organ(freq) = (osc(freq) + osc(freq*2) + osc(freq*3))/3; process = organ(f)*g*t;
4dd3dabe43e111eb899e3f61c0465374611e30392d0c38c9259c6db915ae5d48
neidhub/smallest-synth
faustSynth.dsp
import("stdfaust.lib"); freq = nentry("freq", 400, 0, 20000, 0.1); //gain = nentry("gain", 0.5, 0, 1, 0.01); gate = button("gate") : si.smoo; // Teensy Oscillator // lowering the resolution of the sine oscillators' lookup table // in order to make computation easier on the Teensy MCU and memory // from https://github.com/makingsoundmachines/Faust-on-Teensy/blob/main/AdditiveSynth_Faust/faustAdditive.dsp oscTeensy(f) = rdtable(tablesize, os.sinwaveform(tablesize), int(os.phasor(tablesize,f))) with{ tablesize = 1 << 13; // instead of 1 << 16 }; process = oscTeensy(freq)*gate;
https://raw.githubusercontent.com/neidhub/smallest-synth/9c31dbfcea644038ea8a5565306b38d41f3536a0/generic/faustSynth.dsp
faust
gain = nentry("gain", 0.5, 0, 1, 0.01); Teensy Oscillator lowering the resolution of the sine oscillators' lookup table in order to make computation easier on the Teensy MCU and memory from https://github.com/makingsoundmachines/Faust-on-Teensy/blob/main/AdditiveSynth_Faust/faustAdditive.dsp instead of 1 << 16
import("stdfaust.lib"); freq = nentry("freq", 400, 0, 20000, 0.1); gate = button("gate") : si.smoo; oscTeensy(f) = rdtable(tablesize, os.sinwaveform(tablesize), int(os.phasor(tablesize,f))) with{ }; process = oscTeensy(freq)*gate;
8f24909e57aaff7e79b8bf1f4d14ff475eded4f35ec9cce20b3ec8453ea3617b
aike/audiolang
delay.dsp
// compile: faust2sndfile delay.dsp // run: ./delay ../voice.wav voice_with_fx.wav import("stdfaust.lib"); maxDelayTime = 1.0; delayTime = 0.4; feedback = 0.5; process = ef.echo(maxDelayTime, delayTime, feedback) <: _,_;
https://raw.githubusercontent.com/aike/audiolang/1a211888945eed4257d6078eff83af32068a550a/faust/delay.dsp
faust
compile: faust2sndfile delay.dsp run: ./delay ../voice.wav voice_with_fx.wav
import("stdfaust.lib"); maxDelayTime = 1.0; delayTime = 0.4; feedback = 0.5; process = ef.echo(maxDelayTime, delayTime, feedback) <: _,_;
e8a9365c095da5f82638980f62ed432f8336f008429f9fe8360f469416b1ed41
cengizozel/SynthesizerWithFaust
ESQ.dsp
import("stdfaust.lib"); gain = hslider("v:Synth/v:[1]Edit/[0]Volume", 0.2, 0, 1, 0.01); freq = hslider("v:Synth/v:[1]Edit/[1]Frequency", 262, 50, 1000, 0.1); pw = hslider("v:Synth/v:[1]Edit/[2]PW", 0.5, 0, 1, 0.001); cutoff = hslider("v:Synth/v:[1]Edit/[3]Cutoff",10000,50,10000,0.01); Q = hslider("v:Synth/v:[1]Edit/[4]Q",1,1,30,0.1); saw = os.lf_saw(freq); square = os.pulsetrain(freq, pw); sawCB = checkbox("v:Synth/h:[0]Waveform/[0]Saw")*saw; squareCB = checkbox("v:Synth/h:[0]Waveform/[1]Square")*square; cutoffEffect = fi.resonlp(cutoff,Q,gain); process = sawCB, squareCB :> _,gain : * <: attach(_,abs : ba.linear2db : hbargraph("v:Synth/v:[1]Edit/[5]Level",-60,0)) : cutoffEffect <: _,_;
https://raw.githubusercontent.com/cengizozel/SynthesizerWithFaust/33078869473f410970a17f743ecfbe77456efd5f/ESQ.dsp
faust
import("stdfaust.lib"); gain = hslider("v:Synth/v:[1]Edit/[0]Volume", 0.2, 0, 1, 0.01); freq = hslider("v:Synth/v:[1]Edit/[1]Frequency", 262, 50, 1000, 0.1); pw = hslider("v:Synth/v:[1]Edit/[2]PW", 0.5, 0, 1, 0.001); cutoff = hslider("v:Synth/v:[1]Edit/[3]Cutoff",10000,50,10000,0.01); Q = hslider("v:Synth/v:[1]Edit/[4]Q",1,1,30,0.1); saw = os.lf_saw(freq); square = os.pulsetrain(freq, pw); sawCB = checkbox("v:Synth/h:[0]Waveform/[0]Saw")*saw; squareCB = checkbox("v:Synth/h:[0]Waveform/[1]Square")*square; cutoffEffect = fi.resonlp(cutoff,Q,gain); process = sawCB, squareCB :> _,gain : * <: attach(_,abs : ba.linear2db : hbargraph("v:Synth/v:[1]Edit/[5]Level",-60,0)) : cutoffEffect <: _,_;
248bc47cae723eb89593c70f897b4bf14739802a08602d6f053bc17345e9a9f2
bkfox/foxlive
echo.dsp
import("stdfaust.lib"); maxDuration = nentry("max duration", 10, 0, 20, 0.1); duration = nentry("duration", 5, 0, 10, 0.1); feedback = nentry("feedback", 0.5, 0, 1, 0.01); process = ef.echo(maxDuration,duration,feedback);
https://raw.githubusercontent.com/bkfox/foxlive/690ec8e74a387e8ca1ef0fd0b37d95fcf98e146f/libfoxlive/src/dsp/plugins/echo.dsp
faust
import("stdfaust.lib"); maxDuration = nentry("max duration", 10, 0, 20, 0.1); duration = nentry("duration", 5, 0, 10, 0.1); feedback = nentry("feedback", 0.5, 0, 1, 0.01); process = ef.echo(maxDuration,duration,feedback);
72c3d9a4ceff4ab1a8a4a307d884c52c3921648db8be28bd45bdedc7068c2db9
schollz/norns-ugens
FaustZitaRevLight.dsp
declare name "FaustZitaVerbLight"; import("stdfaust.lib"); process = re.zita_rev1_stereo(pre_del, lf_x, hf_damp, low_rt60, mid_rt60, fsmax) with{ fsmax = 48000.0; pre_del = vslider("[1] pre_del [unit:ms] [tooltip: reverb pre-delay ]", 20, 0, 200, 1); lf_x = vslider("[2] lf_x [unit:Hz] [scale:log] [tooltip: low band cutoff frequency ] ", 200, 30, 1200, 1); low_rt60 = vslider("[3] low_rt60 [unit:s] [tooltip: -60db decay time for low band ]", 1, 0.1, 3, 0.1); mid_rt60 = vslider("[4] mid_rt60 [unit:s] [tooltip: -60db decay time for middle band ]", 1, 0.1, 3, 0.1); hf_damp = vslider("[5] hf_damp [unit:Hz] [tooltip: damping frequency (decay time is 1/2 mid) ] [scale:log]", 6000, 1200, 0.49*fsmax, 1); };
https://raw.githubusercontent.com/schollz/norns-ugens/f9ad0805afb898f68c4fb8031c7eb1062fb2d078/FaustZitaRevLight/FaustZitaRevLight.dsp
faust
declare name "FaustZitaVerbLight"; import("stdfaust.lib"); process = re.zita_rev1_stereo(pre_del, lf_x, hf_damp, low_rt60, mid_rt60, fsmax) with{ fsmax = 48000.0; pre_del = vslider("[1] pre_del [unit:ms] [tooltip: reverb pre-delay ]", 20, 0, 200, 1); lf_x = vslider("[2] lf_x [unit:Hz] [scale:log] [tooltip: low band cutoff frequency ] ", 200, 30, 1200, 1); low_rt60 = vslider("[3] low_rt60 [unit:s] [tooltip: -60db decay time for low band ]", 1, 0.1, 3, 0.1); mid_rt60 = vslider("[4] mid_rt60 [unit:s] [tooltip: -60db decay time for middle band ]", 1, 0.1, 3, 0.1); hf_damp = vslider("[5] hf_damp [unit:Hz] [tooltip: damping frequency (decay time is 1/2 mid) ] [scale:log]", 6000, 1200, 0.49*fsmax, 1); };
4847df7344f24a2b99e137823128b639c9cb3e7d29374be7807a7388c4e5adae
REIS0/AkoFlanger
akoflanger.dsp
declare filename "akoflanger.dsp"; declare name "AkoFlanger"; declare author "REIS0"; declare license "GNU GPLv3"; declare version "0.1"; import("stdfaust.lib"); max_delay = ma.SR * 0.005; min_delay = ma.SR * 0.002; freq = hslider("[0]Frequency", 1, 0.1, 2, 0.01) : si.smooth(0.999); lfo = ((os.osc(freq) * 0.85) * 0.5) + 0.5; ldelay = min_delay + (lfo * (max_delay - min_delay)); flanger(depth, regen) = (+ <: de.fdelay(max_delay, ldelay) * depth, _) ~ *(regen) : + : *(0.5); akoflanger = _ <: flanger(depth, regen), _ : *(dry_wet), *(1-dry_wet) : + : fi.lowpass(1, 22000) with{ depth = hslider("[1]Depth", 0.5, 0.1, 0.9, 0.01) : si.smooth(0.999); regen = hslider("[2]Regen", 0.25, 0.0, 0.5, 0.01); dry_wet = hslider("[3]Dry/Wet", 0.5, 0, 1, 0.01) : si.smooth(0.999); }; process = akoflanger, akoflanger;
https://raw.githubusercontent.com/REIS0/AkoFlanger/e2d477f2845ce77790908f380da182ea4ed60c17/plugins/AkoFlanger/faust/akoflanger.dsp
faust
declare filename "akoflanger.dsp"; declare name "AkoFlanger"; declare author "REIS0"; declare license "GNU GPLv3"; declare version "0.1"; import("stdfaust.lib"); max_delay = ma.SR * 0.005; min_delay = ma.SR * 0.002; freq = hslider("[0]Frequency", 1, 0.1, 2, 0.01) : si.smooth(0.999); lfo = ((os.osc(freq) * 0.85) * 0.5) + 0.5; ldelay = min_delay + (lfo * (max_delay - min_delay)); flanger(depth, regen) = (+ <: de.fdelay(max_delay, ldelay) * depth, _) ~ *(regen) : + : *(0.5); akoflanger = _ <: flanger(depth, regen), _ : *(dry_wet), *(1-dry_wet) : + : fi.lowpass(1, 22000) with{ depth = hslider("[1]Depth", 0.5, 0.1, 0.9, 0.01) : si.smooth(0.999); regen = hslider("[2]Regen", 0.25, 0.0, 0.5, 0.01); dry_wet = hslider("[3]Dry/Wet", 0.5, 0, 1, 0.01) : si.smooth(0.999); }; process = akoflanger, akoflanger;
1a5d5d5bab55b4d4bcebd98bfbc13a29b4b13b813b501e8960f569f00c695f4f
mariaelenafenu8/faustcode
lezione0.dsp
// questo è un commento // un commento è una riga di codice ignorata dal compilatore // il testo che segue è un programma di faust // faust è un linguaggio di progammazione funzionale // crea applicazioni per il trattamento digitale del segnale // dsp = digital signal processing import("stdfaust.lib"); // importare la libreria standard di faust process = +; // in ogni rpogramma c'è un solo process = qualcosa ; //faust segue il contenuto di process // ogni riga deve finire con un * ; * // gli operatori matematici sono * + - * / *
https://raw.githubusercontent.com/mariaelenafenu8/faustcode/1985eaed9fcb9bdd9c45efcebd58606d4b767307/lezione0.dsp
faust
questo è un commento un commento è una riga di codice ignorata dal compilatore il testo che segue è un programma di faust faust è un linguaggio di progammazione funzionale crea applicazioni per il trattamento digitale del segnale dsp = digital signal processing importare la libreria standard di faust in ogni rpogramma c'è un solo process = qualcosa ; faust segue il contenuto di process ogni riga deve finire con un * ; * gli operatori matematici sono * + - * / *
8ab59d3b81b4d42ae40c8f47057108973fff1e646a40ce01075a94308382dd82
JuanSaudio/AudioDevKitDemo
FaustDistortion.dsp
// Faust Example of simple distortion import("stdfaust.lib"); // Define Sliders bias = hslider("Bias",0,0,1,0.001); drive = hslider("Drive",0,-20,20,0.1) : ba.db2linear; outGain = hslider("Level",0,-20,20,0.1) : ba.db2linear; // Define Non Linearity nonLinearity = atan((drive * _ + bias) * ma.PI / 2.0) * 2.0 / ma.PI * outGain; // Process removing DC process = _ : nonLinearity : fi.dcblocker; // faust FaustDistortion.dsp -o Source/FaustDistortion.h -cn Distortion -ns faust
https://raw.githubusercontent.com/JuanSaudio/AudioDevKitDemo/fb644c3b528de6d7be5c8ed2e7b30f9414660bae/Distortion/FaustDistortion.dsp
faust
Faust Example of simple distortion Define Sliders Define Non Linearity Process removing DC faust FaustDistortion.dsp -o Source/FaustDistortion.h -cn Distortion -ns faust
import("stdfaust.lib"); bias = hslider("Bias",0,0,1,0.001); drive = hslider("Drive",0,-20,20,0.1) : ba.db2linear; outGain = hslider("Level",0,-20,20,0.1) : ba.db2linear; nonLinearity = atan((drive * _ + bias) * ma.PI / 2.0) * 2.0 / ma.PI * outGain; process = _ : nonLinearity : fi.dcblocker;
849fba124fa1e0ef261eefaf62fa21fb3a8be78dbf2b17b887139a3ee854960c
ThiloSch/Faust_Kick_Synthesizer
Sampling_patch.dsp
import("stdfaust.lib"); import("stdfaust.lib"); import("physmodels.lib"); // Trigger and global Gain trigger = button("gate"); // Amplitude Envelope attack = 0.03; decay = 1; sustain = 0; release = hslider("/h:[1]envelope/Release",1, 0.05, 3, 0.001); // Filter control f_frequency = hslider("Cut Off", 900, 50, 4000, 1); qfactor = hslider("Q", 1,0.1,20,0.1); // Additional Controls physmix = hslider("mix",-1,-1,1,0.01); // Classic/Physical Mix sigType = hslider("Shape", 0, 0, 1.5, 0.01); // Signal Type // Pitch Controls p_note = hslider("/h:[0]Pitch/Pitch Note",250,40, 1000, 0.1); // Starting Pitch frequency = hslider("/h:[0]Pitch/frequency", 50, 40, 100, 0.1); // Endfrequency p_sustain = hslider("/h:[0]Pitch/Pitch Sustain", 0.02, 0.001, 0.05, 0.001); // Pitch Sustain p_release = hslider("/h:[0]Pitch/Pitch Release",0.1, 0.001, 3, 0.001); // Pitch release //OSCILLATOR SECTION// //-----------------// oscillator_sin(sig) = signal with{ swing = pitcher(p_note, frequency, p_sustain, p_release, trigger); coef = 1; signal = os.osc(swing) * coef ; }; oscillator_tri(sig) = signal with{ swing = pitcher(p_note, frequency, p_sustain, p_release, trigger); coef = select2(sig<2,0,select2(sig<1,2-sig,sig)); signal = os.triangle(swing)* coef ; }; oscillator_sqa(sig) = signal with{ swing = pitcher(p_note, frequency, p_sustain, p_release, trigger); coef = select2(sig>1,0,select2(sig<2,3-sig,-1+sig)); signal = os.square(swing) * coef ; }; // Classic Approach with Pitch Envelope pitcher(start, end, sus, rel, trig) = freq with { //time raises/resets indefinitely when the trigger is pressed time = (raise*reset + upfront) ~ _ with { upfront = trig > trig'; reset = trig <= trig'; raise(x) = (x + (x > 0)); }; susSamps = int(sus * 44100); target = select2( susSamps>time, end, start); relPhase = susSamps < time; pole = ba.tau2pole(rel/6.91); freq = target : select2(relPhase, start, si.smooth(pole)); }; //-----------------// //PHYSICAL MODELLING SECTION// //-----------------// meshdecay = hslider("/h:[3]Physical Modelling/Damping",25,1,2000,0.01); phystune = hslider("/h:[3]Physical Modelling/Pitch",1,0,1,0.01); physfreq = frequency; striker = pm.impulseExcitation(trigger) : chain; meshed = striker : drumModel(frequency,0,1,1,meshdecay) : *(en.ar(0.03,10,trigger)); // composite = 8*meshed; // Extracted Modes drumModel(freq ,exPos,t60,t60DecayRatio,t60DecaySlope) = _ <: par(i,nModes,modeFilter(modesFreqs(i),modesT60s(i),modesGains(int(exPos),i))) :> /(nModes) with{ nModes = 40; nExPos = 5; modesFreqRatios(n) = ba.take(n+1,(0.496487 ,0.498829 ,0.510539 ,1.000000 ,1.402810 ,1.407494 ,1.510539 ,1.512881 ,1.562061 ,1.805621 ,1.807963 ,1.814988 ,2.032787 ,2.072600 ,2.081967 ,2.086651 ,2.100703 ,2.271663 ,2.278689 ,2.510539 ,2.576112 ,2.580796 ,2.608899 ,2.648712 ,2.660422 ,2.702576 ,2.711944 ,2.714286 ,2.777518 ,2.789227 ,2.868852 ,2.873536 ,3.133489 ,3.222482 ,3.224824 ,3.302108 ,3.318501 ,3.416862 ,3.444965 ,3.449649)); modesFreqs(i) = freq/(2-phystune*1.5)*modesFreqRatios(i); modesGains(p,n) = waveform{0.002800 ,0.002910 ,0.002828 ,1.000000 ,0.000329 ,0.261250 ,0.000724 ,0.004314 ,0.002937 ,0.009676 ,0.002475 ,0.003697 ,1.504010 ,0.030839 ,0.086771 ,0.000730 ,0.010672 ,0.000401 ,0.036587 ,0.002806 ,0.024838 ,0.000031 ,0.001831 ,0.000088 ,0.033158 ,0.004144 ,0.004803 ,0.002403 ,0.063744 ,0.000837 ,0.009838 ,0.001281 ,1.908791 ,0.005826 ,0.016356 ,0.000032 ,0.142409 ,0.004683 ,0.033018 ,0.001156},int(p*nModes+n) : rdtable : select2(modesFreqs(n)<(ma.SR/2-1),0); modesT60s(i) = t60*pow(1-(modesFreqRatios(i)/3000)*t60DecayRatio,t60DecaySlope); }; //-----------------// process = ((oscillator_sin(sigType), oscillator_sqa(sigType), oscillator_tri(sigType)) :> _ * en.adsre(attack, decay, sustain, release, trigger))* (0.5*(1-physmix) : sqrt) , composite*(0.5*(1+physmix) : sqrt):> fi.resonlp(f_frequency,qfactor,1) <:_,_;
https://raw.githubusercontent.com/ThiloSch/Faust_Kick_Synthesizer/2a4136c85bbd10e2e68f928ebfae5d0a88c594c5/Sampling_patch.dsp
faust
Trigger and global Gain Amplitude Envelope Filter control Additional Controls Classic/Physical Mix Signal Type Pitch Controls Starting Pitch Endfrequency Pitch Sustain Pitch release OSCILLATOR SECTION// -----------------// Classic Approach with Pitch Envelope time raises/resets indefinitely when the trigger is pressed -----------------// PHYSICAL MODELLING SECTION// -----------------// Extracted Modes -----------------//
import("stdfaust.lib"); import("stdfaust.lib"); import("physmodels.lib"); trigger = button("gate"); attack = 0.03; decay = 1; sustain = 0; release = hslider("/h:[1]envelope/Release",1, 0.05, 3, 0.001); f_frequency = hslider("Cut Off", 900, 50, 4000, 1); qfactor = hslider("Q", 1,0.1,20,0.1); oscillator_sin(sig) = signal with{ swing = pitcher(p_note, frequency, p_sustain, p_release, trigger); coef = 1; signal = os.osc(swing) * coef ; }; oscillator_tri(sig) = signal with{ swing = pitcher(p_note, frequency, p_sustain, p_release, trigger); coef = select2(sig<2,0,select2(sig<1,2-sig,sig)); signal = os.triangle(swing)* coef ; }; oscillator_sqa(sig) = signal with{ swing = pitcher(p_note, frequency, p_sustain, p_release, trigger); coef = select2(sig>1,0,select2(sig<2,3-sig,-1+sig)); signal = os.square(swing) * coef ; }; pitcher(start, end, sus, rel, trig) = freq with { time = (raise*reset + upfront) ~ _ with { upfront = trig > trig'; reset = trig <= trig'; raise(x) = (x + (x > 0)); }; susSamps = int(sus * 44100); target = select2( susSamps>time, end, start); relPhase = susSamps < time; pole = ba.tau2pole(rel/6.91); freq = target : select2(relPhase, start, si.smooth(pole)); }; meshdecay = hslider("/h:[3]Physical Modelling/Damping",25,1,2000,0.01); phystune = hslider("/h:[3]Physical Modelling/Pitch",1,0,1,0.01); physfreq = frequency; striker = pm.impulseExcitation(trigger) : chain; composite = 8*meshed; drumModel(freq ,exPos,t60,t60DecayRatio,t60DecaySlope) = _ <: par(i,nModes,modeFilter(modesFreqs(i),modesT60s(i),modesGains(int(exPos),i))) :> /(nModes) with{ nModes = 40; nExPos = 5; modesFreqRatios(n) = ba.take(n+1,(0.496487 ,0.498829 ,0.510539 ,1.000000 ,1.402810 ,1.407494 ,1.510539 ,1.512881 ,1.562061 ,1.805621 ,1.807963 ,1.814988 ,2.032787 ,2.072600 ,2.081967 ,2.086651 ,2.100703 ,2.271663 ,2.278689 ,2.510539 ,2.576112 ,2.580796 ,2.608899 ,2.648712 ,2.660422 ,2.702576 ,2.711944 ,2.714286 ,2.777518 ,2.789227 ,2.868852 ,2.873536 ,3.133489 ,3.222482 ,3.224824 ,3.302108 ,3.318501 ,3.416862 ,3.444965 ,3.449649)); modesFreqs(i) = freq/(2-phystune*1.5)*modesFreqRatios(i); modesGains(p,n) = waveform{0.002800 ,0.002910 ,0.002828 ,1.000000 ,0.000329 ,0.261250 ,0.000724 ,0.004314 ,0.002937 ,0.009676 ,0.002475 ,0.003697 ,1.504010 ,0.030839 ,0.086771 ,0.000730 ,0.010672 ,0.000401 ,0.036587 ,0.002806 ,0.024838 ,0.000031 ,0.001831 ,0.000088 ,0.033158 ,0.004144 ,0.004803 ,0.002403 ,0.063744 ,0.000837 ,0.009838 ,0.001281 ,1.908791 ,0.005826 ,0.016356 ,0.000032 ,0.142409 ,0.004683 ,0.033018 ,0.001156},int(p*nModes+n) : rdtable : select2(modesFreqs(n)<(ma.SR/2-1),0); modesT60s(i) = t60*pow(1-(modesFreqRatios(i)/3000)*t60DecayRatio,t60DecaySlope); }; process = ((oscillator_sin(sigType), oscillator_sqa(sigType), oscillator_tri(sigType)) :> _ * en.adsre(attack, decay, sustain, release, trigger))* (0.5*(1-physmix) : sqrt) , composite*(0.5*(1+physmix) : sqrt):> fi.resonlp(f_frequency,qfactor,1) <:_,_;
156273a6647e84fdc8dcd4efd143946e9f0b254c1f441358759227262837d275
oshibka404/sound_design
osc1.dsp
import("stdfaust.lib"); cc = library("midi_cc.dsp"); process = os.sawtooth(cc.freq);
https://raw.githubusercontent.com/oshibka404/sound_design/8d0505f4f6e76db08f52061b2b5f9a76079147b9/DSP/oscillators/osc1.dsp
faust
import("stdfaust.lib"); cc = library("midi_cc.dsp"); process = os.sawtooth(cc.freq);
627dd245221ca502c4d6273f15528518799f4f57b3d748c0f123a08d6250e137
oshibka404/sound_design
osc2.dsp
import("stdfaust.lib"); cc = library("midi_cc.dsp"); process = os.triangle(cc.freq);
https://raw.githubusercontent.com/oshibka404/sound_design/8d0505f4f6e76db08f52061b2b5f9a76079147b9/DSP/oscillators/osc2.dsp
faust
import("stdfaust.lib"); cc = library("midi_cc.dsp"); process = os.triangle(cc.freq);
ce1fa1b7bce3000faf0827ec82c665bf92274147cc30fc876707f4a1ff8a61ad
LSSN/2020-01-23-2a-dsp-giulialorenzonii
verifica sottrattiva.dsp
import("stdfaust.lib"); process= fi.highpass(4,1000) : fi.lowpass(4,1000); //il filtro passa basso è un programma che opera su un segnale infiltraggio delle altefrequenze a partire da 1000 Hz. //il punto di taglio espresso in hertz indica il punto in cui l'ampiezza del segnale d'entrata viene attenuata a 3 dB. //fi.highpass ha un'entrata mentre fi.lowpass non ce l'ha, ma ha un'uscita.
https://raw.githubusercontent.com/LSSN/2020-01-23-2a-dsp-giulialorenzonii/06cf2c220e88e8facf662f4f968a7d934bed4bda/verifica%20sottrattiva.dsp
faust
il filtro passa basso è un programma che opera su un segnale infiltraggio delle altefrequenze a partire da 1000 Hz. il punto di taglio espresso in hertz indica il punto in cui l'ampiezza del segnale d'entrata viene attenuata a 3 dB. fi.highpass ha un'entrata mentre fi.lowpass non ce l'ha, ma ha un'uscita.
import("stdfaust.lib"); process= fi.highpass(4,1000) : fi.lowpass(4,1000);
8f6839631f1d9b1e0f098c226657b77253ec946224b54fbf32e8c92e07bbf746
consba/Segnale-Bilanciato
balanced.dsp
import("stdfaust.lib"); sorgente = os.osc(1000); // os. puntatore lib oscillatori bilanciatore = _ <: _, 0-_; // A <: B "divide" : replica il segnale A in nA volte in B ricevitore = _+(0-_) : /(2); //rumore = _ + no.noise, _ + no.noise; rumore = par(i, 2, _ + no.noise); //par fa n volte la funzione in parallelo process = sorgente : bilanciatore : rumore : ricevitore; //process = no.noise;
https://raw.githubusercontent.com/consba/Segnale-Bilanciato/c07dc4a7701afecbd4c29855a17d164b547931c1/balanced.dsp
faust
os. puntatore lib oscillatori A <: B "divide" : replica il segnale A in nA volte in B rumore = _ + no.noise, _ + no.noise; par fa n volte la funzione in parallelo process = no.noise;
import("stdfaust.lib"); ricevitore = _+(0-_) : /(2); process = sorgente : bilanciatore : rumore : ricevitore;
96fe9dffb4ef52036938ee508ba8d12476524855504238dee0d2c0f8f4814076
Sinuslabs/Reach
Flanger.dsp
declare name "flanger"; declare version "0.0"; declare author "JOS, revised by RM"; declare description "Flanger effect application."; import("stdfaust.lib"); process = dm.flanger_demo;
https://raw.githubusercontent.com/Sinuslabs/Reach/1e716dfc0640d73b9385970049c1dc6a6498ece5/DspNetworks/CodeLibrary/faust/Flanger.dsp
faust
declare name "flanger"; declare version "0.0"; declare author "JOS, revised by RM"; declare description "Flanger effect application."; import("stdfaust.lib"); process = dm.flanger_demo;
14584a98b37f45c3910de02940306d8c1525e7643a625963c4c5b1d81d5ee77a
consba/Segnale-Bilanciato
saw.dsp
import("stdfaust.lib"); saw(N,f) = par(i, N, os.osc(f*(i+1))/(i+1)) :> _ /(2); filtro(N,f) = seq(i,N,eavg(acor(f))); eavg(a) = *(a) : +~*(1-a); acor(fc) = cos(omega(fc))-1+sqrt(cosq(omega(fc))-4*cos(omega(fc))+3); omega(fc) = fc*twopi/ma.SR; twopi = 2*ma.PI; cosq(x) = cos(x)*cos(x); process = par(i, 6, saw(100,(220+(i*(sqrt(2)))))) :> _ : /(6) : filtro(10,2000);
https://raw.githubusercontent.com/consba/Segnale-Bilanciato/c07dc4a7701afecbd4c29855a17d164b547931c1/saw.dsp
faust
import("stdfaust.lib"); saw(N,f) = par(i, N, os.osc(f*(i+1))/(i+1)) :> _ /(2); filtro(N,f) = seq(i,N,eavg(acor(f))); eavg(a) = *(a) : +~*(1-a); acor(fc) = cos(omega(fc))-1+sqrt(cosq(omega(fc))-4*cos(omega(fc))+3); omega(fc) = fc*twopi/ma.SR; twopi = 2*ma.PI; cosq(x) = cos(x)*cos(x); process = par(i, 6, saw(100,(220+(i*(sqrt(2)))))) :> _ : /(6) : filtro(10,2000);
804a7da45c93e7ff113841c84012122e84eef24e3617f7421825fe01d19d4639
geofholbrook/sequence-collab
dumbMarimba.dsp
import("stdfaust.lib"); freq = nentry("freq", 100, 10, 10000, 1); gain = nentry("gain", 1, 0, 1, .01); process = pm.marimba(freq / 2, 1, 7000, 0.25, gain, button("gate"));
https://raw.githubusercontent.com/geofholbrook/sequence-collab/779c0d085f67dec2f6842b130b8474c7ed367163/src/sound-generation/faust/dsp-files/dumbMarimba.dsp
faust
import("stdfaust.lib"); freq = nentry("freq", 100, 10, 10000, 1); gain = nentry("gain", 1, 0, 1, .01); process = pm.marimba(freq / 2, 1, 7000, 0.25, gain, button("gate"));
8b13630e4a626dec067b6072228bcc1074d8927ee945388759ca3c3eca5f258b
CICM/pd-faustgen
resonator.dsp
import("stdfaust.lib"); // Example programmed by Christophe Lebreton - GRAME f(i) = hslider("freq%3i", 160.,-0.,20000.,0.001); r(i) = hslider("decay%3i", 0.,0.,1.,0.001):((pow(4.78)*6)+0.0001):ba.tau2pole; g(i) = hslider("gain%3i", 0.,0.,1.,0.0001); resonator(n) = _<:par(i,n,*(g(i)):fi.nlf2(f(i),r(i)):_,!:*(ba.db2linear((100*(log(1/r(i))))))):>*(0.003162); process = resonator(20) ;
https://raw.githubusercontent.com/CICM/pd-faustgen/9e2aaeabe94a7fab6928711050535ac12a1a591a/external/examples/resonator.dsp
faust
Example programmed by Christophe Lebreton - GRAME
import("stdfaust.lib"); f(i) = hslider("freq%3i", 160.,-0.,20000.,0.001); r(i) = hslider("decay%3i", 0.,0.,1.,0.001):((pow(4.78)*6)+0.0001):ba.tau2pole; g(i) = hslider("gain%3i", 0.,0.,1.,0.0001); resonator(n) = _<:par(i,n,*(g(i)):fi.nlf2(f(i),r(i)):_,!:*(ba.db2linear((100*(log(1/r(i))))))):>*(0.003162); process = resonator(20) ;
35729d22c18393772b45664dfed53998a21c25e9c51815b4f79b29768006b2d1
LSSN/Panner
Pan.dsp
declare name "Pan"; import("stdfaust.lib"); // panning di ampiezza pan = vslider("pan [style:knob]", 0.5,0,1,0.01); process = _<: // separatore _ * (1-pan), // left _ * (pan); // right
https://raw.githubusercontent.com/LSSN/Panner/9868ac3a446d63c8f1fbd2c68588d5f8080b9c57/Pan.dsp
faust
panning di ampiezza separatore left right
declare name "Pan"; import("stdfaust.lib"); pan = vslider("pan [style:knob]", 0.5,0,1,0.01);
a0166bfae987924cd77f8561e6954f65b38f5e2266bc01d9201e1c1819356774
LSSN/Panner
pan1.dsp
import("stdfaust.lib"); // panning con 2 attenuatori di livello indipendenti process = _<: // separatore hgroup("pan", vslider("left", 0,0,1,0.01)*_, // attenuatore sinistro vslider("right", 0,0,1,0.01)*_); // attenuatore destro
https://raw.githubusercontent.com/LSSN/Panner/9868ac3a446d63c8f1fbd2c68588d5f8080b9c57/pan1.dsp
faust
panning con 2 attenuatori di livello indipendenti separatore attenuatore sinistro attenuatore destro
import("stdfaust.lib"); hgroup("pan",
8d81e7ed8c3d8e55f5d89cd9191877e9e04d9f3ff8ee9d6ed5a7bc881c4f5517
troopersinger/audio
IPlugFaustDSP.dsp
declare name "FaustExample"; import("stdfaust.lib"); g = vslider("Gain", 1, 0., 1, 0.1); process = os.osc(200), os.osc(1000) * g;
https://raw.githubusercontent.com/troopersinger/audio/1b4a376f9afb0590ac62685e741ba7902dfaa4c5/Examples/IPlugFaustDSP/IPlugFaustDSP.dsp
faust
declare name "FaustExample"; import("stdfaust.lib"); g = vslider("Gain", 1, 0., 1, 0.1); process = os.osc(200), os.osc(1000) * g;
38317dd3ff0e894ef4f4b97d2ec2ebc17fcbcac093387b9963c932d966109657
Jacajack/stm32-faust-synth
noise.dsp
import("stdfaust.lib"); process = no.noise;
https://raw.githubusercontent.com/Jacajack/stm32-faust-synth/5987bc2508e94318affbbccaaeaea0fd7f7ad694/faust/noise.dsp
faust
import("stdfaust.lib"); process = no.noise;
8121593a2c0b7ca383be0d34b9f2827174f33f65171b5c36dd127eab32f454da
LSSN/Panner
Pansqrt.dsp
declare name "Pansqrt"; import("stdfaust.lib"); // panning di ampiezza quadratico pan = vslider("pan [style:knob]", 0.5,0,1,0.01); process = _<: // separatore _ * ((1-pan) : sqrt), // left _ * ((pan) : sqrt); // right
https://raw.githubusercontent.com/LSSN/Panner/9868ac3a446d63c8f1fbd2c68588d5f8080b9c57/Pansqrt.dsp
faust
panning di ampiezza quadratico separatore left right
declare name "Pansqrt"; import("stdfaust.lib"); pan = vslider("pan [style:knob]", 0.5,0,1,0.01);
f734742b1561209369946f748a5bf31af17723bd5f9949dfb8469f18a192c996
diegomonteagudo/TC-SON
testSynth.dsp
import("stdfaust.lib"); res = 2; frequence = hslider("frequence",262,20,10000,0.1); gate = button("gate"); gain = hslider("gain",1,0,1,0.1); process = gain*sy.combString(frequence,res,gate);
https://raw.githubusercontent.com/diegomonteagudo/TC-SON/4a68a72ba9e03edc952e0c38a5a5d37b0570a26d/testSynth.dsp
faust
import("stdfaust.lib"); res = 2; frequence = hslider("frequence",262,20,10000,0.1); gate = button("gate"); gain = hslider("gain",1,0,1,0.1); process = gain*sy.combString(frequence,res,gate);
f78fb6cd9ab8797b2a483da653a487bac1d87c9947f8a53c9cb36a3dce227258
anwaldt/seamless
FoaReverb.dsp
import("stdfaust.lib"); // `rgxyz` = relative gain of lanes 1,4,2 to lane 0 in output (e.g., -9 to 9) rgxyz = nentry("rgxyz",1,-9,9,0.01) ; // `rdel` = delay (in ms) before reverberation begins (e.g., 0 to ~100 ms) rdel= nentry("rdel",2,0,100,0.01) ; // * `f1`: crossover frequency (Hz) separating dc and midrange frequencies f1 = nentry("f1",300,10,10000,0.1) ; // * `f2`: frequency (Hz) above f1 where T60 = t60m/2 (see below) f2 = nentry("f2",1000,10,10000,0.1) ; // * `t60dc`: desired decay time (t60) at frequency 0 (sec) t60dc=nentry("t60dc",3,0.01,7,0.01) ; // * `t60m`: desired decay time (t60) at midrange frequencies (sec) t60m=nentry("t60m",4,0.01,7,0.01) ; // * `fsmax`: maximum sampling rate to be used (Hz) fsmax=48000; process = _<: _,_ : re.zita_rev1_ambi(rgxyz,rdel,f1,f2,t60dc,t60m,fsmax) : _,_,_,_;
https://raw.githubusercontent.com/anwaldt/seamless/78ddf8b4b7108fd5120ce77041716e21a2f36f1f/Faust/reverb/FoaReverb.dsp
faust
`rgxyz` = relative gain of lanes 1,4,2 to lane 0 in output (e.g., -9 to 9) `rdel` = delay (in ms) before reverberation begins (e.g., 0 to ~100 ms) * `f1`: crossover frequency (Hz) separating dc and midrange frequencies * `f2`: frequency (Hz) above f1 where T60 = t60m/2 (see below) * `t60dc`: desired decay time (t60) at frequency 0 (sec) * `t60m`: desired decay time (t60) at midrange frequencies (sec) * `fsmax`: maximum sampling rate to be used (Hz)
import("stdfaust.lib"); rgxyz = nentry("rgxyz",1,-9,9,0.01) ; rdel= nentry("rdel",2,0,100,0.01) ; f1 = nentry("f1",300,10,10000,0.1) ; f2 = nentry("f2",1000,10,10000,0.1) ; t60dc=nentry("t60dc",3,0.01,7,0.01) ; t60m=nentry("t60m",4,0.01,7,0.01) ; fsmax=48000; process = _<: _,_ : re.zita_rev1_ambi(rgxyz,rdel,f1,f2,t60dc,t60m,fsmax) : _,_,_,_;
8eeb2a1e421f33705454bf71f0c8b1f6c5a82593d5e6c7bbd60f053d675a37fd
LSSN/Panner
esercizio01.dsp
import("stdfaust.lib"); frq = vslider("frequency [style:knob]", 440,100,20000,1); pan = vslider("pan [style:knob]", 0.5,0,1,0.01); process = os.oscsin(frq) <: _ * (sqrt(1-pan)), _ * (sqrt(pan));
https://raw.githubusercontent.com/LSSN/Panner/9868ac3a446d63c8f1fbd2c68588d5f8080b9c57/esercizio01.dsp
faust
import("stdfaust.lib"); frq = vslider("frequency [style:knob]", 440,100,20000,1); pan = vslider("pan [style:knob]", 0.5,0,1,0.01); process = os.oscsin(frq) <: _ * (sqrt(1-pan)), _ * (sqrt(pan));
8125ae0f565ef0e8ce652d6c175bacf2373fc086fd95226779afe8328755f59b
rochelletham/clarinetPlugin
clarinetMIDI.dsp
declare name "ClarinetMIDI"; declare description "Simple MIDI-controllable clarinet physical model with physical parameters."; declare license "MIT"; declare copyright "(c)Romain Michon, CCRMA (Stanford University), GRAME"; import("stdfaust.lib"); process = pm.clarinet_ui_MIDI <: _,_;
https://raw.githubusercontent.com/rochelletham/clarinetPlugin/e17616e0690ed05ca8c6c75e59b120eff786758f/capstone_v2/ClarinetModel/Source/clarinetMIDI.dsp
faust
declare name "ClarinetMIDI"; declare description "Simple MIDI-controllable clarinet physical model with physical parameters."; declare license "MIT"; declare copyright "(c)Romain Michon, CCRMA (Stanford University), GRAME"; import("stdfaust.lib"); process = pm.clarinet_ui_MIDI <: _,_;
ba064733dc5e08d9b65ee52987ab878d533f90ad7eb4ee01ea8fcdcbc281174d
brummer10/slowmo.lv2
delay.dsp
declare id "delay"; declare name "Delay"; declare category "Echo / Delay"; import("stdfaust.lib"); msec = ma.SR/1000.0; interp = 100*msec; N = int( 2^19); gain = vslider("gain[name:Gain]", 0, -20, 20, 0.1) : ba.db2linear : si.smooth(0.999); d = ba.tempo(hslider("bpm[name:BPM][tooltip:Delay in Beats per Minute]",120,24,360,1)); feedback = vslider("feedback[name:feedback]", 0.5, 0, 1, 0.01) : si.smooth(0.999); process = _ <: _ + gain * (+:de.sdelay(N, interp,d))~(de.sdelay(N, interp,d)*(feedback)) :> _;
https://raw.githubusercontent.com/brummer10/slowmo.lv2/1a32ab4e5b3740dab64e6f9dcce54baa9162a7bd/slowmo/Faust/delay.dsp
faust
declare id "delay"; declare name "Delay"; declare category "Echo / Delay"; import("stdfaust.lib"); msec = ma.SR/1000.0; interp = 100*msec; N = int( 2^19); gain = vslider("gain[name:Gain]", 0, -20, 20, 0.1) : ba.db2linear : si.smooth(0.999); d = ba.tempo(hslider("bpm[name:BPM][tooltip:Delay in Beats per Minute]",120,24,360,1)); feedback = vslider("feedback[name:feedback]", 0.5, 0, 1, 0.01) : si.smooth(0.999); process = _ <: _ + gain * (+:de.sdelay(N, interp,d))~(de.sdelay(N, interp,d)*(feedback)) :> _;
bc416489e76ea6aa3829f6ec79f8486364526922d2c0e3b59077cb7edcd84e68
ElMagicarp/SON
code_faust.dsp
import("stdfaust.lib"); equalizer = fi.high_shelf(midLevel,200):fi.low_shelf(lowLevel,200):fi.high_shelf(highLevel-midLevel,8000) with{ equalizer(x) = hgroup("Equalizer",x); lowLevel = equalizer(hslider("low",0,-40,40,0.1)); highLevel = equalizer(hslider("high",0,-40,40,.1)); midLevel = equalizer(hslider("mid",0,-40,40,.1)); }; transp(w, x, s, sig) = de.delay(maxDelay,d,sig)*ma.fmin(d/x,1) + de.delay(maxDelay,d+w,sig)*(1-ma.fmin(d/x,1)) with { maxDelay = 3001; i = 1 - pow(2, s/12); d = i : (+ : +(w) : fmod(_,w)) ~ _; }; pitchShift = transp(1000,100,hslider("shift", 0, -50, +50, 1)); delay = hslider("echoDelay", 0, 0, 1000, 10); feedback = hslider("echoFeedback", 0.5, 0, 1, 0.1); myEcho = vgroup("echo", +~(de.delay(2000, int(delay*ba.millisec)-1) * feedback)); gain = hslider("volume",0.5,0,1,.1); main = equalizer:myEcho:pitchShift: *(gain); process = par(i,2,main);
https://raw.githubusercontent.com/ElMagicarp/SON/892a95590c1e0a9f394728d0bd8b85d4efac64a6/code/code_faust.dsp
faust
import("stdfaust.lib"); equalizer = fi.high_shelf(midLevel,200):fi.low_shelf(lowLevel,200):fi.high_shelf(highLevel-midLevel,8000) with{ equalizer(x) = hgroup("Equalizer",x); lowLevel = equalizer(hslider("low",0,-40,40,0.1)); highLevel = equalizer(hslider("high",0,-40,40,.1)); midLevel = equalizer(hslider("mid",0,-40,40,.1)); }; transp(w, x, s, sig) = de.delay(maxDelay,d,sig)*ma.fmin(d/x,1) + de.delay(maxDelay,d+w,sig)*(1-ma.fmin(d/x,1)) with { maxDelay = 3001; i = 1 - pow(2, s/12); d = i : (+ : +(w) : fmod(_,w)) ~ _; }; pitchShift = transp(1000,100,hslider("shift", 0, -50, +50, 1)); delay = hslider("echoDelay", 0, 0, 1000, 10); feedback = hslider("echoFeedback", 0.5, 0, 1, 0.1); myEcho = vgroup("echo", +~(de.delay(2000, int(delay*ba.millisec)-1) * feedback)); gain = hslider("volume",0.5,0,1,.1); main = equalizer:myEcho:pitchShift: *(gain); process = par(i,2,main);
03b83607291e1105061dc0fc9b413796df5d39e9577eb0b87f41ac86c138b6c6
ArcAudio/FaustTest
osc.dsp
import("stdfaust.lib"); vol = hslider("volume [unit:dB]", 0, -96, 0, 0.1) : ba.db2linear : si.smoo; freq = hslider("freq [unit:Hz]", 1000, 20, 24000, 1) : si.smoo; flanger(p,wet,depth) = _ <: de.delay(256,d)*wet,_ :> /(2) with{ d = (os.osc(p) + 1)*127*depth; }; tremolo(fr,dep) = _*(1-(os.osc(fr)*0.5 + 0.5)*dep); f = hslider("tfreq [unit:Hz]",10,0.1,100,0.01); w = hslider("twet",0.5,0,1,0.01); d = hslider("tdepth",0.5,0,1,0.01); gain = hslider("gain [knob:2] [midi:ctrl 7]", 0.5, 0, 1, 0.01); gate = button("gate [switch:1]"); process = os.osc(freq)*vol : flanger(f,w,d) : tremolo(5,1) <: _,_;
https://raw.githubusercontent.com/ArcAudio/FaustTest/bdf9f50cf8a651a7e54fa95db093d2a669187b68/osc.dsp
faust
import("stdfaust.lib"); vol = hslider("volume [unit:dB]", 0, -96, 0, 0.1) : ba.db2linear : si.smoo; freq = hslider("freq [unit:Hz]", 1000, 20, 24000, 1) : si.smoo; flanger(p,wet,depth) = _ <: de.delay(256,d)*wet,_ :> /(2) with{ d = (os.osc(p) + 1)*127*depth; }; tremolo(fr,dep) = _*(1-(os.osc(fr)*0.5 + 0.5)*dep); f = hslider("tfreq [unit:Hz]",10,0.1,100,0.01); w = hslider("twet",0.5,0,1,0.01); d = hslider("tdepth",0.5,0,1,0.01); gain = hslider("gain [knob:2] [midi:ctrl 7]", 0.5, 0, 1, 0.01); gate = button("gate [switch:1]"); process = os.osc(freq)*vol : flanger(f,w,d) : tremolo(5,1) <: _,_;
1eab40540e90d8715f1067627858a5162ec7db66619059df0ba8248767bff994
nyanpasu64-backup/snes-echo
lagrange-delay-fir.dsp
declare name "lagrange delay"; declare version "0."; declare author "nyanpasu64"; declare license "bsd"; declare copyright "nyanpasu64"; import("math.lib"); import("stdfaust.lib"); import("delays.lib"); snes2sr = _ * SR / 32000.0; DELAY = 32; ORDER = DELAY; FIR_NDELAY = 1; delayt = vslider("Delay samples", 0.5, 0, 1, 0.01) + DELAY; fir_delay(i, signal) = fdelaylti(ORDER, 2*DELAY, DELAY + snes2sr(i), signal); process(l, r) = ( fdelaylti(ORDER, 2*DELAY, delayt, l) , /*fdelay(2*DELAY, delayt, r)*/ // 8 FIR taps, with delays from 0..7. // coeff x is multiplied with delay 7-x. sum( i, FIR_NDELAY, 1/8 * fir_delay(FIR_NDELAY-1 - i, r) ) );
https://raw.githubusercontent.com/nyanpasu64-backup/snes-echo/8378166012807e96eca69cb2bc3ee9cf5537a69f/snes-echo/test/lagrange-delay-fir.dsp
faust
fdelay(2*DELAY, delayt, r) 8 FIR taps, with delays from 0..7. coeff x is multiplied with delay 7-x.
declare name "lagrange delay"; declare version "0."; declare author "nyanpasu64"; declare license "bsd"; declare copyright "nyanpasu64"; import("math.lib"); import("stdfaust.lib"); import("delays.lib"); snes2sr = _ * SR / 32000.0; DELAY = 32; ORDER = DELAY; FIR_NDELAY = 1; delayt = vslider("Delay samples", 0.5, 0, 1, 0.01) + DELAY; fir_delay(i, signal) = fdelaylti(ORDER, 2*DELAY, DELAY + snes2sr(i), signal); process(l, r) = ( fdelaylti(ORDER, 2*DELAY, delayt, l) , sum( i, FIR_NDELAY, 1/8 * fir_delay(FIR_NDELAY-1 - i, r) ) );
a715059dab4b14e0e2b77e360c8f495b17c94285b46e313766f4c5475b419a97
geofholbrook/sequence-collab
monoDjembe.dsp
import("stdfaust.lib"); freq = nentry("freq", 100, 10, 10000, 1); gain = nentry("gain", 1, 0, 1, .01); // process = os.triangle(freq) * 0.1 * gain * (button("gate") : (en.ar(0.01, 2) ^ 10)); process = button("gate") : pm.djembe(freq, .25, .25, gain);
https://raw.githubusercontent.com/geofholbrook/sequence-collab/779c0d085f67dec2f6842b130b8474c7ed367163/src/sound-generation/faust/dsp-files/monoDjembe.dsp
faust
process = os.triangle(freq) * 0.1 * gain * (button("gate") : (en.ar(0.01, 2) ^ 10));
import("stdfaust.lib"); freq = nentry("freq", 100, 10, 10000, 1); gain = nentry("gain", 1, 0, 1, .01); process = button("gate") : pm.djembe(freq, .25, .25, gain);
04eda93f95e4a8d26c8b1a810740a8a4703a0885aea7617760b5b9e525b18e87
michal-cab/faust-snippets
sah.dsp
import("stdfaust.lib"); import("basics.lib"); process = harmOsc :>_; harmOsc = par(i,10,os.osc(i*sah*100)); sah = no.lfnoise0(500) : sAndH(trig); trig = button("hold");
https://raw.githubusercontent.com/michal-cab/faust-snippets/6c77964d29e7640409905a51ec61ce62e052d7cb/sah.dsp
faust
import("stdfaust.lib"); import("basics.lib"); process = harmOsc :>_; harmOsc = par(i,10,os.osc(i*sah*100)); sah = no.lfnoise0(500) : sAndH(trig); trig = button("hold");
fad195550fafe6c6c0142d679f6296a6379b577704aa91690f246b5fde59c2ff
michal-cab/faust-snippets
ar.dsp
import("stdfaust.lib"); process = pattern1,pattern2 :>_; pattern1 = en.ar(0.01,0.1,gate) * no.noise * 0.1; pattern2 = en.ar(0.01,0.05,gate1) * no.pink_noise; gate = no.lfnoise0(5); gate1 = no.lfnoise0(7);
https://raw.githubusercontent.com/michal-cab/faust-snippets/6c77964d29e7640409905a51ec61ce62e052d7cb/ar.dsp
faust
import("stdfaust.lib"); process = pattern1,pattern2 :>_; pattern1 = en.ar(0.01,0.1,gate) * no.noise * 0.1; pattern2 = en.ar(0.01,0.05,gate1) * no.pink_noise; gate = no.lfnoise0(5); gate1 = no.lfnoise0(7);
061692d152526eacf8a875acd4d9e9423ff288b415d804cb5303766c44437fbb
Tonton-Blax/supasynth
main.dsp
import("stdfaust.lib"); import("socisse.dsp"); import("feumeu.dsp"); import("osync.dsp"); import("moogish.dsp"); process = feumeu, oscsaw, osync :> _ : moogvcf <: _,_;
https://raw.githubusercontent.com/Tonton-Blax/supasynth/ec39566ad52e2417154301ee86f5bf94b650a3e8/faust/main.dsp
faust
import("stdfaust.lib"); import("socisse.dsp"); import("feumeu.dsp"); import("osync.dsp"); import("moogish.dsp"); process = feumeu, oscsaw, osync :> _ : moogvcf <: _,_;
44d3416a7a902ccd24f372b0a7052d194f933f73a0e576681959cdbe5b300f30
geofholbrook/sequence-collab
faustTriangle.dsp
import("stdfaust.lib"); freq = nentry("freq", 100, 10, 10000, 1); gain = nentry("gain", 1, 0, 1, .01); // process = os.triangle(freq) * 0.1 * gain * (button("gate") : (en.ar(0.01, 2) ^ 10)); process = (button("gate") : en.arfe(0.001, 0.5, 0)) * os.triangle(freq) : fi.lowpass(2, 2500) * gain;
https://raw.githubusercontent.com/geofholbrook/sequence-collab/779c0d085f67dec2f6842b130b8474c7ed367163/src/sound-generation/faust/dsp-files/faustTriangle.dsp
faust
process = os.triangle(freq) * 0.1 * gain * (button("gate") : (en.ar(0.01, 2) ^ 10));
import("stdfaust.lib"); freq = nentry("freq", 100, 10, 10000, 1); gain = nentry("gain", 1, 0, 1, .01); process = (button("gate") : en.arfe(0.001, 0.5, 0)) * os.triangle(freq) : fi.lowpass(2, 2500) * gain;
6a631c44a4e4454f6d0d52473630b1b067c7a1371f3b29bee7a3befe7aedea3b
Jacajack/stm32-faust-synth
square.dsp
import("stdfaust.lib"); //process = os.square( hslider("note_freq", 0, 1, 50, 1e-3 ) ) * en.adsr( 1e-3, 0.2, 0.7, 0.5, button( "gate" ) ); process = (os.square( 220 ) + os.square( 110.5 ))/2;
https://raw.githubusercontent.com/Jacajack/stm32-faust-synth/5987bc2508e94318affbbccaaeaea0fd7f7ad694/faust/square.dsp
faust
process = os.square( hslider("note_freq", 0, 1, 50, 1e-3 ) ) * en.adsr( 1e-3, 0.2, 0.7, 0.5, button( "gate" ) );
import("stdfaust.lib"); process = (os.square( 220 ) + os.square( 110.5 ))/2;
30a663f1d803785fb039bcaab26a6e3385e6105f039143e4004be342ac4cb05c
rhinocerose/eurorack-modularev
FAUST.dsp
// // FAUST .dsp file for the programmable Eurorack DSP Module NEMESIS by Arev Imer // // src/FAUST.dsp // // Copyright © 2021 Arev Imer if not mentioned elsewise // released under GNU GPL v3 // import("stdfaust.lib"); param_1 = hslider("POT X",0.5,0,1,0.001) : si.smoo; param_2 = hslider("POT Y",0.5,0,1,0.001) : si.smoo; param_3 = hslider("POT Z",0.5,0,1,0.001) : si.smoo; param_4 = hslider("POT A",0.5,0,1,0.001) : si.smoo; param_5 = hslider("POT B",0.5,0,1,0.001) : si.smoo; param_6 = hslider("POT C",0.5,0,1,0.001) : si.smoo; param_7 = hslider("POT D",0.5,0,1,0.001) : si.smoo; param_8 = hslider("POT E",0.5,0,1,0.001) : si.smoo; param_9 = hslider("POT F",0.5,0,1,0.001) : si.smoo; process = _,_,_,_,_,_,_,_;
https://raw.githubusercontent.com/rhinocerose/eurorack-modularev/0da6b85bbd3564c98ff45eb650747f4e9a911c48/Nemesis-hw-rev-2/software/template/src/FAUST.dsp
faust
FAUST .dsp file for the programmable Eurorack DSP Module NEMESIS by Arev Imer src/FAUST.dsp Copyright © 2021 Arev Imer if not mentioned elsewise released under GNU GPL v3
import("stdfaust.lib"); param_1 = hslider("POT X",0.5,0,1,0.001) : si.smoo; param_2 = hslider("POT Y",0.5,0,1,0.001) : si.smoo; param_3 = hslider("POT Z",0.5,0,1,0.001) : si.smoo; param_4 = hslider("POT A",0.5,0,1,0.001) : si.smoo; param_5 = hslider("POT B",0.5,0,1,0.001) : si.smoo; param_6 = hslider("POT C",0.5,0,1,0.001) : si.smoo; param_7 = hslider("POT D",0.5,0,1,0.001) : si.smoo; param_8 = hslider("POT E",0.5,0,1,0.001) : si.smoo; param_9 = hslider("POT F",0.5,0,1,0.001) : si.smoo; process = _,_,_,_,_,_,_,_;
1334653e2432ce245c7ac47eb8c3117287626b52a6cc9ba2f392128284ddb2d6
glocq/jacob_collier_polyrhythm
jc.dsp
import("stdfaust.lib"); s2 = gain2 * os.lf_saw(f0); s3 = gain3 * os.lf_saw(f0*3/2); s4 = gain4 * os.lf_saw(f0*2); s5 = gain5 * os.lf_saw(f0*5/2); s6 = gain6 * os.lf_saw(f0*3); f0 = ba.midikey2hz(nentry("MIDI pitch", -45, -50, 100, 1)); gain2 = hslider("Gain 2", 1, 0, 1, 0.01); gain3 = hslider("Gain 3", 1, 0, 1, 0.01); gain4 = hslider("Gain 4", 1, 0, 1, 0.01); gain5 = hslider("Gain 5", 1, 0, 1, 0.01); gain6 = hslider("Gain 6", 1, 0, 1, 0.01); process = (s2+s3+s4+s5+s6)/5 : fi.bandpass(1, 50, 2000) <: (_,_);
https://raw.githubusercontent.com/glocq/jacob_collier_polyrhythm/daf78e52da6ef5cda7c21c604af43ad1399259c4/jc.dsp
faust
import("stdfaust.lib"); s2 = gain2 * os.lf_saw(f0); s3 = gain3 * os.lf_saw(f0*3/2); s4 = gain4 * os.lf_saw(f0*2); s5 = gain5 * os.lf_saw(f0*5/2); s6 = gain6 * os.lf_saw(f0*3); f0 = ba.midikey2hz(nentry("MIDI pitch", -45, -50, 100, 1)); gain2 = hslider("Gain 2", 1, 0, 1, 0.01); gain3 = hslider("Gain 3", 1, 0, 1, 0.01); gain4 = hslider("Gain 4", 1, 0, 1, 0.01); gain5 = hslider("Gain 5", 1, 0, 1, 0.01); gain6 = hslider("Gain 6", 1, 0, 1, 0.01); process = (s2+s3+s4+s5+s6)/5 : fi.bandpass(1, 50, 2000) <: (_,_);
0f088451052f27833944a4ca1c2e4cd8f14d92b714aaeef7cb61b394f7a9ff6b
lupu2022/phy2raw
sawtooth.dsp
import("stdfaust.lib"); freq = nentry("h:Basic_Parameters/freq [1][unit:Hz] [tooltip:Tone frequency]",440,20,20000,1); gain = nentry("h:Basic_Parameters/gain [1][tooltip:Gain (value between 0 and 1)]",1,0,1,0.01); process = os.sawtooth(freq) * gain;
https://raw.githubusercontent.com/lupu2022/phy2raw/7f01bf933e2ddc04fc331f55ada81e8033d5c211/phy/sawtooth.dsp
faust
import("stdfaust.lib"); freq = nentry("h:Basic_Parameters/freq [1][unit:Hz] [tooltip:Tone frequency]",440,20,20000,1); gain = nentry("h:Basic_Parameters/gain [1][tooltip:Gain (value between 0 and 1)]",1,0,1,0.01); process = os.sawtooth(freq) * gain;
08f49b7e3892c9891bb3b15f8cc18943764f5b4f1aca5ba7658bc529de7f4226
alainbonardi/enecho
zeroCross.dsp
//--------------------------------------------------------------------------------------// //----------------------------------------enecho----------------------------------------// // //-----------------------FAUST CODE FOR THE PRESERVATION OF EN ECHO---------------------// //-----------------FOR SOPRANO AND LIVE ELECTRONICS BY PHILIPPE MANOOURY----------------// // //----------------------------------BY ALAIN BONARDI - 2022-----------------------------// //---------------------CICM - MUSIDANSE LABORATORY - PARIS 8 UNIVERSITY-----------------// //--------------------------------------------------------------------------------------// // declare author "Alain Bonardi"; declare licence "GPL-2.0"; declare name "zeroCross"; // import("stdfaust.lib"); clear = nentry("clear", 1, 0, 1, 1); process=((_, ma.zc) : +) ~ (*(1-clear));
https://raw.githubusercontent.com/alainbonardi/enecho/afc94af2c59d25e42b32d003236fc3af4e65d5d0/faustCodes/zeroCross.dsp
faust
--------------------------------------------------------------------------------------// ----------------------------------------enecho----------------------------------------// -----------------------FAUST CODE FOR THE PRESERVATION OF EN ECHO---------------------// -----------------FOR SOPRANO AND LIVE ELECTRONICS BY PHILIPPE MANOOURY----------------// ----------------------------------BY ALAIN BONARDI - 2022-----------------------------// ---------------------CICM - MUSIDANSE LABORATORY - PARIS 8 UNIVERSITY-----------------// --------------------------------------------------------------------------------------//
declare author "Alain Bonardi"; declare licence "GPL-2.0"; declare name "zeroCross"; import("stdfaust.lib"); clear = nentry("clear", 1, 0, 1, 1); process=((_, ma.zc) : +) ~ (*(1-clear));
477cf06cbad546ef92fc12352e8f3bc17b5e6d5574dd66672398309a4963d765
jkbd/scannervibrato
scannervibrato.dsp
// -*-Faust-*- declare name "scannervibrato"; declare author "Jakob Dübel"; declare copyright "(c) 2018 Jakob Dübel"; declare version "1.0.0"; declare license "MIT"; import("stdfaust.lib"); fx = library("effect.lib"); process = fx.scannervibrato;
https://raw.githubusercontent.com/jkbd/scannervibrato/5f70bb63344e404c337b88eee057962c7cca1a72/scannervibrato.dsp
faust
-*-Faust-*-
declare name "scannervibrato"; declare author "Jakob Dübel"; declare copyright "(c) 2018 Jakob Dübel"; declare version "1.0.0"; declare license "MIT"; import("stdfaust.lib"); fx = library("effect.lib"); process = fx.scannervibrato;
7e5a79d4affb9853dd3f5d5bb0951adea9b86afbbd5fe2ac3e662791dbf38744
digosuoza/linguist
FFT.dsp
// Radix 2 FFT, decimation in time, real and imag parts interleaved declare name "FFT"; // Faust Fourier Transform :-) declare author "JOS"; declare license "STK-4.3"; import("stdfaust.lib"); N=32; // FFT size (power of 2) // Number of frequency bins (including dc and SR/2) is N/2+1 No2 = N>>1; signal = amp * cosine with { cosine = select2(k==0, select2(k==No2, 2.0*os.oscrc(f(k)), // 2x since negative-frequencies not displayed 1-1':+~*(-1) // Alternating sequence: 1, -1, 1, -1 ), 1.0); // make sure phase is zero (freq jumps around) f(k) = float(k) * ma.SR / float(N); // only test FFT bin frequencies k = hslider("[2] FFT Bin Number",N/4,0,No2,0.001) : int <: _,dpy : attach; dpy = hbargraph("[3] Measured FFT Bin Number",0,No2); amp = hslider("[4] Amplitude",0.1,0,1,0.001); }; process = signal : dm.fft_spectral_level_demo(N) <: _,_;
https://raw.githubusercontent.com/digosuoza/linguist/f3d507f68af37296463c0dc261ca21ecbb338bb6/samples/Faust/FFT.dsp
faust
Radix 2 FFT, decimation in time, real and imag parts interleaved Faust Fourier Transform :-) FFT size (power of 2) Number of frequency bins (including dc and SR/2) is N/2+1 2x since negative-frequencies not displayed Alternating sequence: 1, -1, 1, -1 make sure phase is zero (freq jumps around) only test FFT bin frequencies
declare author "JOS"; declare license "STK-4.3"; import("stdfaust.lib"); No2 = N>>1; signal = amp * cosine with { cosine = select2(k==0, select2(k==No2, ), k = hslider("[2] FFT Bin Number",N/4,0,No2,0.001) : int <: _,dpy : attach; dpy = hbargraph("[3] Measured FFT Bin Number",0,No2); amp = hslider("[4] Amplitude",0.1,0,1,0.001); }; process = signal : dm.fft_spectral_level_demo(N) <: _,_;
566818d33ca24b5113a205960475e6cea4c8a3b861d345f237e80b556381639a
michelemanca18/esercizi
lezione2.dsp
// questo è un commento // la riga di commento è ignorata dal compilatore // il compilatore è un software che legge // il nostro codice seguendo le istruzioni // import("stdfaust.lib"); // _ canale audio // + - * /operatori matematici // _ : _ due punti identifica un flusso seriale // _ , _ virgola flusso parallelo // ogni riga finisce con ; punto e virgola process = _ + _ , _ + _ , _ , _ ;
https://raw.githubusercontent.com/michelemanca18/esercizi/7720d7779912358c9a67233e8f2a93cf679c79c8/faust/lezione2.dsp
faust
questo è un commento la riga di commento è ignorata dal compilatore il compilatore è un software che legge il nostro codice seguendo le istruzioni _ canale audio + - * /operatori matematici _ : _ due punti identifica un flusso seriale _ , _ virgola flusso parallelo ogni riga finisce con ; punto e virgola
import("stdfaust.lib"); process = _ + _ , _ + _ , _ , _ ;
691e364578b784075de147ebb20de9156ce3de666f80471d1abd8c81b18ce6d6
michelemanca18/esercizi
lezione03.dsp
// questo è un commento // la riga di commento è ignorata dal compilatore // il compilatore è un software che legge // il nostro codice seguendo le istruzioni // import("stdfaust.lib"); // _ canale audio // + - * /operatori matematici // _ : _ due punti identifica un flusso seriale // _ , _ virgola flusso parallelo // ogni riga finisce con ; punto e virgola process = _ * 0.5;
https://raw.githubusercontent.com/michelemanca18/esercizi/7720d7779912358c9a67233e8f2a93cf679c79c8/faust/lezione03.dsp
faust
questo è un commento la riga di commento è ignorata dal compilatore il compilatore è un software che legge il nostro codice seguendo le istruzioni _ canale audio + - * /operatori matematici _ : _ due punti identifica un flusso seriale _ , _ virgola flusso parallelo ogni riga finisce con ; punto e virgola
import("stdfaust.lib"); process = _ * 0.5;
04c9b91f0de388d6b4a71fb40edab8b572c11e6e4c93bdcfdb812841f1243690
JoaoSvidzinski/HermesV2
compressor.dsp
declare name "compressor"; declare version "0.0"; declare author "JOS, revised by RM"; declare description "Compressor demo application"; import("stdfaust.lib"); process = dm.compressor_demo;
https://raw.githubusercontent.com/JoaoSvidzinski/HermesV2/a96f9cd288d5cb68be2f5bb5788d5869008d8cef/faust/compressor.dsp
faust
declare name "compressor"; declare version "0.0"; declare author "JOS, revised by RM"; declare description "Compressor demo application"; import("stdfaust.lib"); process = dm.compressor_demo;
1ab0440766b1b82fda0b04783bd58222f9a7576d1b12812bc9e20b54b188845c
opampband/distortion
distortion.dsp
import("stdfaust.lib"); // Simulates soft clipping from tube amp softClip = _ <: /(_, sqrt(1 + ^(_, 2))); hardClip(ceiling) = min(hi) : max(lo) with { hi = ceiling; lo = (-1) * ceiling; }; // gain before hard clipping stage fuzzGain = hslider("[0]fuzz gain", 1, 1, 10, 0.01) * 10 - 9 : ba.db2linear; // gain before soft clipping stage tubeGain = hslider("[1]tube gain", 1, 1, 10, 0.01) * 10 - 9 : ba.db2linear; // gain after distortion vol = hslider("[2]post-distortion gain (dB)", -10, -30, 0, 0.01) : ba.db2linear; // The entire guitar amp // (distortion + speaker) amp = // LPF before hard clipping makes it less harsh fi.resonlp(3000, 1, 1) : *(fuzzGain) : hardClip(1) : *(tubeGain) : softClip : *(vol) : fi.dcblocker : ef.speakerbp(100, 5000); feedback = hslider("[3]feedback (dB)", -50, -50, 0, 1) : ba.db2linear; delay = hslider("[4]delay (ms)", 0, 0, 100, 0.1) : /(1000) : ba.sec2samp; process = amp(+(_)) ~ (@(delay) : *(feedback)); //process = amp(os.osc(440));
https://raw.githubusercontent.com/opampband/distortion/bfa26c446aab63a5d2eeb3157350bc341b68acd0/distortion.dsp
faust
Simulates soft clipping from tube amp gain before hard clipping stage gain before soft clipping stage gain after distortion The entire guitar amp (distortion + speaker) LPF before hard clipping makes it less harsh process = amp(os.osc(440));
import("stdfaust.lib"); softClip = _ <: /(_, sqrt(1 + ^(_, 2))); hardClip(ceiling) = min(hi) : max(lo) with { hi = ceiling; lo = (-1) * ceiling; }; fuzzGain = hslider("[0]fuzz gain", 1, 1, 10, 0.01) * 10 - 9 : ba.db2linear; tubeGain = hslider("[1]tube gain", 1, 1, 10, 0.01) * 10 - 9 : ba.db2linear; vol = hslider("[2]post-distortion gain (dB)", -10, -30, 0, 0.01) : ba.db2linear; amp = fi.resonlp(3000, 1, 1) : *(fuzzGain) : hardClip(1) : *(tubeGain) : softClip : *(vol) : fi.dcblocker : ef.speakerbp(100, 5000); feedback = hslider("[3]feedback (dB)", -50, -50, 0, 1) : ba.db2linear; delay = hslider("[4]delay (ms)", 0, 0, 100, 0.1) : /(1000) : ba.sec2samp; process = amp(+(_)) ~ (@(delay) : *(feedback));