_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
034ba01736da1d143cd32c7a904ea933eda889c024c8a63489f1223251fc35a3
HexHive/datAFLow
thru_zero_flanger.dsp
declare name "Thru Zero Flanger"; declare description "Stereo Thru Zero Flanger - warning can ZERO the sound!"; declare author "Oli Larkin (contact@olilarkin.co.uk)"; declare copyright "Oliver Larkin"; declare version "0.1"; declare licence "GPL"; import("effect.lib"); import("filter.lib"); import("math.lib"); luts...
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/thru_zero_flanger.dsp
faust
inverted
declare name "Thru Zero Flanger"; declare description "Stereo Thru Zero Flanger - warning can ZERO the sound!"; declare author "Oli Larkin (contact@olilarkin.co.uk)"; declare copyright "Oliver Larkin"; declare version "0.1"; declare licence "GPL"; import("effect.lib"); import("filter.lib"); import("math.lib"); luts...
92116320ee8bc1bc1adf1d795a79a91d0a340f489ab541622ba7b9d86ed8689a
HexHive/datAFLow
lowcut.dsp
declare name "lowcut"; declare version "1.0"; declare author "Grame"; declare license "BSD"; declare copyright "(c)GRAME 2006"; //------------------------------------------------------------------ // DAFX, Digital Audio Effects (Wiley ed.) // chapter 2 : filters // section 2.3 : Equalizers // page 53 : second...
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/lowcut.dsp
faust
------------------------------------------------------------------ DAFX, Digital Audio Effects (Wiley ed.) chapter 2 : filters section 2.3 : Equalizers page 53 : second order shelving filter design ------------------------------------------------------------------ ------------------- low-frequency shelving cut (t...
declare name "lowcut"; declare version "1.0"; declare author "Grame"; declare license "BSD"; declare copyright "(c)GRAME 2006"; import("music.lib"); V0(g) = pow(10,g/-20.0); K(fc) = tan(PI*fc/SR); square(x) = x*x; denom(fc,g) = 1 + sqrt(2*V0(g))*K(fc) + V0(g)*square(K(fc)); lfcut(fc, g) = TF2((1 + sq...
7bd302f0a4b83a6bcbcf138a6da808dd217e2feca7517004d829c9f586b997cc
HexHive/datAFLow
waveform2.dsp
process = waveform {10,20,30,40,50,60,70}, ((%(7)~+(3)):max(0):min(7-1)) : rdtable;
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/waveform2.dsp
faust
process = waveform {10,20,30,40,50,60,70}, ((%(7)~+(3)):max(0):min(7-1)) : rdtable;
1b2fc897ec3258da34003d0ffbbb4c9acdb6eb1367b19b28eef24094b7e22eb9
HexHive/datAFLow
reverb_designer.dsp
el = library("effect.lib"); N = 16; // Feedback Delay Network (FDN) order (power of 2, 2 to 16) NB = 5; // Number of T60-controlled frequency-bands (3 or more) BSO = 3; // Order of each lowpass/highpass bandsplit (odd positive integer) process = el.fdnrev0_demo(N,NB,BSO);
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/reverb_designer.dsp
faust
Feedback Delay Network (FDN) order (power of 2, 2 to 16) Number of T60-controlled frequency-bands (3 or more) Order of each lowpass/highpass bandsplit (odd positive integer)
el = library("effect.lib"); process = el.fdnrev0_demo(N,NB,BSO);
28389a30995da34e07b48c0c5a8c6a58d84b283b1c8f55b5da0ab5e7266fcb0a
HexHive/datAFLow
test20.dsp
// sharing in second order trandfert function // only two sample memories should be used TF2(b0,b1,b2,a1,a2) = sub ~ conv2(a1,a2) : conv3(b0,b1,b2) with { conv3(k0,k1,k2,x) = k0*x + k1*x' + k2*x''; conv2(k0,k1,x) = k0*x + k1*x'; sub(x,y) = y-x; }; process = TF2(1.25,1.73,1,1.73,1);
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/test20.dsp
faust
sharing in second order trandfert function only two sample memories should be used
TF2(b0,b1,b2,a1,a2) = sub ~ conv2(a1,a2) : conv3(b0,b1,b2) with { conv3(k0,k1,k2,x) = k0*x + k1*x' + k2*x''; conv2(k0,k1,x) = k0*x + k1*x'; sub(x,y) = y-x; }; process = TF2(1.25,1.73,1,1.73,1);
1e98abc841576c8dcea2ea4d32e3763012b17fef6801eb30b64ab48660eba9c2
HexHive/datAFLow
gate_compressor.dsp
declare name "gate_compressor"; ol = library("oscillator.lib"); el = library("effect.lib"); fl = library("filter.lib"); process = // ol.sawtooth_demo <: // el.gate_demo : el.compressor_demo :> fl.spectral_level_demo <: _,_; vgroup("[1]sawtooth", ol.sawtooth_demo) <: vgroup("[2]gate", el.gate_demo) : ...
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/gate_compressor.dsp
faust
ol.sawtooth_demo <: el.gate_demo : el.compressor_demo :> fl.spectral_level_demo <: _,_;
declare name "gate_compressor"; ol = library("oscillator.lib"); el = library("effect.lib"); fl = library("filter.lib"); process = vgroup("[1]sawtooth", ol.sawtooth_demo) <: vgroup("[2]gate", el.gate_demo) : vgroup("[3]compressor", el.compressor_demo) :> vgroup("[4]spectral", fl.spectral_level_demo) <:...
4aedb70caefdab2633280f64ae7f191ebfbf5d1a89be808b6bffd78e48baef82
HexHive/datAFLow
test10.dsp
// partage des expressions lentes process = +~_;
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/test10.dsp
faust
partage des expressions lentes
process = +~_;
9f64b46e8bd0977cd566fc75d7eb2fec4364391cf5904bf48d2db32dc488e939
HexHive/datAFLow
multirate_4.dsp
process = serialize;
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/multirate_4.dsp
faust
process = serialize;
1855bd4784c46cb47afac4134d02aea9cbda36b52fa94d15bd9f484d70b6b816
HexHive/datAFLow
PM-bug19.dsp
// pattern matching doesn't go inside groups foo(hgroup("", x)) = x*2; foo(x) = x*3; process = foo(hgroup("", 10));
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/PM-bug19.dsp
faust
pattern matching doesn't go inside groups
foo(hgroup("", x)) = x*2; foo(x) = x*3; process = foo(hgroup("", 10));
41b15fc4e3ba8f65087782cdd158d6d6d262fa64c1705a0bb753caa3b3a4029a
HexHive/datAFLow
PM-bug11.dsp
//ERROR: undefined symbol BoxIdent[f] f = *(2); dup(x) = (x,x); faa(1, dup(f)) = f; process = faa(1,dup(6));
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/PM-bug11.dsp
faust
ERROR: undefined symbol BoxIdent[f]
f = *(2); dup(x) = (x,x); faa(1, dup(f)) = f; process = faa(1,dup(6));
1fb524511bca3268028b41eab32b0f5b7fa2abb3c08ed4377195bd8a70c84edd
HexHive/datAFLow
virtual_analog_oscillators.dsp
ol = library("oscillator.lib"); fl = library("filter.lib"); el = library("effect.lib"); process = vgroup("[1]", ol.virtual_analog_oscillator_demo) : vgroup("[2]", el.moog_vcf_demo) : vgroup("[3]", fl.spectral_level_demo) <: _,_;
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/virtual_analog_oscillators.dsp
faust
ol = library("oscillator.lib"); fl = library("filter.lib"); el = library("effect.lib"); process = vgroup("[1]", ol.virtual_analog_oscillator_demo) : vgroup("[2]", el.moog_vcf_demo) : vgroup("[3]", fl.spectral_level_demo) <: _,_;
49cd6396cf1420e95cc58c0fa64a1e423b16d49a18a96b8aa888f080a81538d3
HexHive/datAFLow
test18.dsp
// example of simplification xchg = _,_ <: !,_,_,!; Z1 = xchg~_ : !,_; process = Z1;
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/test18.dsp
faust
example of simplification
xchg = _,_ <: !,_,_,!; Z1 = xchg~_ : !,_; process = Z1;
312c2539cd2afe6dfe93e9c2824a9779bcd9bd54de617788737ab4bf8b2e9b97
HexHive/datAFLow
PM-bug7.dsp
n = 666; fact(0) = 1; fact(n) = n*fact(n-1); ack(0) = 1; ack(1) = 1; ack(n) = 1 + ack(n-1) + ack(n-2); process = ack (15), fact(10);
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/PM-bug7.dsp
faust
n = 666; fact(0) = 1; fact(n) = n*fact(n-1); ack(0) = 1; ack(1) = 1; ack(n) = 1 + ack(n-1) + ack(n-2); process = ack (15), fact(10);
945714a984b393fc7dc7d4c1b444b5c4cb5019fa4888a34003d3a5983fb03374
HexHive/datAFLow
test-max-int.dsp
//------------------------------------------------- // Check that min and max are able to bound // infinite intervals //-------------------------------------------------- import("music.lib"); clip(lo,hi) = max(lo) : min(hi); smooth(c) = *(1-c) : +~*(c); d = hslider("delay",0,0,100,1) : smooth(0.999) : clip(0,100); ...
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/test-max-int.dsp
faust
------------------------------------------------- Check that min and max are able to bound infinite intervals --------------------------------------------------
import("music.lib"); clip(lo,hi) = max(lo) : min(hi); smooth(c) = *(1-c) : +~*(c); d = hslider("delay",0,0,100,1) : smooth(0.999) : clip(0,100); process = @(d);
923bb504b7db6c06ef201ce8f7dfb2f7ce8259dae88014f2e1760d7e20714a4e
HexHive/datAFLow
test19.dsp
// example of simplification foo = +~@(1000); process = foo;
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/test19.dsp
faust
example of simplification
foo = +~@(1000); process = foo;
ff4ebebbae0461380fefde76ad6ef6b75013ea6602135159a148ea5004e0c185
HexHive/datAFLow
k-alias.dsp
vol = hslider("volume [osc:/vol 0 10]", 0.1, 0, 1, 0.1); process = 1 * vol;
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/k-alias.dsp
faust
vol = hslider("volume [osc:/vol 0 10]", 0.1, 0, 1, 0.1); process = 1 * vol;
d676237d08b7408118ca5c311329558b6fb898a0da64cbc4afacba2a327cb70c
HexHive/datAFLow
PM-bug10.dsp
// additional arguments of pm rule where thrown away cond(1,x,y) = x; cond(b,x,y) = y; fact(n) = cond(n>0, \(n).(n*fact(n-1)), \(n).(1)) (n); fact2(n) = cond(n>0, \(n).(n*fact2(n-1)), \(n).(1), n); process = fact(10), fact(-10), fact2(10);
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/PM-bug10.dsp
faust
additional arguments of pm rule where thrown away
cond(1,x,y) = x; cond(b,x,y) = y; fact(n) = cond(n>0, \(n).(n*fact(n-1)), \(n).(1)) (n); fact2(n) = cond(n>0, \(n).(n*fact2(n-1)), \(n).(1), n); process = fact(10), fact(-10), fact2(10);
fc484ec27717de4dc1d47baa560a5870a0411e1e10717134be8d279dd7a354cf
HexHive/datAFLow
error01.dsp
//ERROR : inconsistent number of parameters in pattern-matching rule: (x,y) => y; foo = case { (x,y) => y; (x,x) => x+1; }; foo(x,y) = y; process = foo(1,1), foo(3,4);
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/error01.dsp
faust
ERROR : inconsistent number of parameters in pattern-matching rule: (x,y) => y;
foo = case { (x,y) => y; (x,x) => x+1; }; foo(x,y) = y; process = foo(1,1), foo(3,4);
ec484f386e7f8cb541f32d91d9fb148e6a8f254e7774466a3f67b027caac5c98
HexHive/datAFLow
spat.dsp
declare name "spat"; declare version "1.0"; declare author "Grame"; declare license "BSD"; declare copyright "(c)GRAME 2006"; //========================================================== // // GMEM SPAT // implementation of L. Pottier Spatializer // //===================================================...
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/spat.dsp
faust
========================================================== GMEM SPAT implementation of L. Pottier Spatializer ========================================================== ------------------------------------------------------ Volume d'une voie de sortie ------------------------------------------------------...
declare name "spat"; declare version "1.0"; declare author "Grame"; declare license "BSD"; declare copyright "(c)GRAME 2006"; scaler(i,n,a,d) = sqrt(max(0.0, 1.0 - abs( fmod(a+0.5+float(n-i)/n, 1.0) - 0.5 ) * (n*d))) * (d/2.0+0.5); smooth(c) = *(1-c) : +~*(c); spat(n,a,d) = _ <: par(i, n, *( scaler(i, n, a, ...
ffddae027837b52fd0b13a208f1f09f71dda90b3864817b0785e03c481a3c53d
HexHive/datAFLow
rateconflict_1.dsp
up2 = vectorize(1) <: # : serialize; dw3 = vectorize(3) : [0]; process = up2 ~ dw3;
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/rateconflict_1.dsp
faust
up2 = vectorize(1) <: # : serialize; dw3 = vectorize(3) : [0]; process = up2 ~ dw3;
09f7e1eeb7ffbdd707f20094ea9a16137e87d42bb8cac7684755d92c88eab218
HexHive/datAFLow
20100120-bug.dsp
// BUG : the compiler reports : // faust: extended/minprim.cpp:40: virtual CTree* MinPrim::computeSigOutput(const std::vector<CTree*, std::allocator<CTree*> >&): Assertion `args.size() == arity()' failed. // like it was trying to evaluate 2:min process = vslider("2:min", 0, 0, 1, 0.01);
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/20100120-bug.dsp
faust
BUG : the compiler reports : faust: extended/minprim.cpp:40: virtual CTree* MinPrim::computeSigOutput(const std::vector<CTree*, std::allocator<CTree*> >&): Assertion `args.size() == arity()' failed. like it was trying to evaluate 2:min
process = vslider("2:min", 0, 0, 1, 0.01);
375d484fec2fc39fd33e3c25fdee7729e94cc75803cfb0217bba256027373f3f
HexHive/datAFLow
HPF.dsp
import("maxmsp.lib"); G = hslider("Gain [unit:dB]", 0, -10, 10, 0.1); F = hslider("Freq", 1000, 100, 10000, 1); Q = hslider("Q", 1, 0.01, 100, 0.01); process(x) = HPF(x,F,G,Q);
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/HPF.dsp
faust
import("maxmsp.lib"); G = hslider("Gain [unit:dB]", 0, -10, 10, 0.1); F = hslider("Freq", 1000, 100, 10000, 1); Q = hslider("Q", 1, 0.01, 100, 0.01); process(x) = HPF(x,F,G,Q);
cac94e82caa197e1e27760511b555d38e6d0548734a56949aa54a22c04c09c83
HexHive/datAFLow
waveform4.dsp
process = (waveform {10,20,30,40,50,60,70}, %(7)~+(3) : rdtable), (waveform {1.1,2.2,3.3,4.4,5.5,6.6,7.7}, %(7)~+(3) : rdtable);
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/waveform4.dsp
faust
process = (waveform {10,20,30,40,50,60,70}, %(7)~+(3) : rdtable), (waveform {1.1,2.2,3.3,4.4,5.5,6.6,7.7}, %(7)~+(3) : rdtable);
87f51591d6b50b76908a630bdac131865d820a99429094703dbd5eb9f768f297
HexHive/datAFLow
multirate_2.dsp
process = [](0);
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/multirate_2.dsp
faust
process = [](0);
3a176ba03b1f4de75d12424aaf7997852f876ccc74b1353b47d59cb50e68a829
HexHive/datAFLow
error08.dsp
// WARNING : shadowed pattern-matching rule: (x,x) => x,1:+; previous rule was: (x,y) => y; foo(x,y) = y; foo(x,x) = x+1; process = foo(1,1), foo(3,4);
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/error08.dsp
faust
WARNING : shadowed pattern-matching rule: (x,x) => x,1:+; previous rule was: (x,y) => y;
foo(x,y) = y; foo(x,x) = x+1; process = foo(1,1), foo(3,4);
271a7294a42cefd5ef69ba0c69e1ea621492f1328f6de18d5b20acd07f4cca89
HexHive/datAFLow
ratepass_4.dsp
up2 = vectorize(1) <: # : serialize; dw2 = vectorize(2) : [0]; process = (up2,up2:+) ~ dw2;
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/ratepass_4.dsp
faust
up2 = vectorize(1) <: # : serialize; dw2 = vectorize(2) : [0]; process = (up2,up2:+) ~ dw2;
6886c32862d2c74180b05475ce4cb8a872cb938e6dad2f6d84c79964b0d1f6e4
HexHive/datAFLow
badfaust.dsp
process = foo;
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/badfaust.dsp
faust
process = foo;
40063e15da1996553c9c42b103dee52821a1e71b15c9e554a558d6b3451ecc18
HexHive/datAFLow
t1.dsp
main = +; process = 3.14;
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/t1.dsp
faust
main = +; process = 3.14;
094b8efcbb761891e6ecabec15051d17a001389841364cc71fe7724231cb926a
HexHive/datAFLow
20091213-empty-label-bug.dsp
// the following expression creates a segmentation fault process = hslider("",0,-8,8,1);
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/20091213-empty-label-bug.dsp
faust
the following expression creates a segmentation fault
process = hslider("",0,-8,8,1);
75c18775888f531882e839b6a8b1b6cfe1ab02831e512b042638a90c618ae5c6
HexHive/datAFLow
dimensioncheck_2.dsp
process = vectorize(4):[](0);
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/dimensioncheck_2.dsp
faust
process = vectorize(4):[](0);
0398528db7a8dd41c01f159e7413aaf2adc43da145607cbde6df9bbbd6138c75
HexHive/datAFLow
dimensioncheck_4.dsp
process = * ~ (vectorize(4) : serialize);
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/dimensioncheck_4.dsp
faust
process = * ~ (vectorize(4) : serialize);
acb665f86f4ae1ecde8af60dae3729753bad82c36f0450a20d2ad56e00ec209c
HexHive/datAFLow
slowdelay1.dsp
// Faust Template process = fvariable(float toto, "bidule.h"), (fvariable(float toto, "bidule.h")' <: _,_); //process = 1' <: _,_;
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/slowdelay1.dsp
faust
Faust Template process = 1' <: _,_;
process = fvariable(float toto, "bidule.h"), (fvariable(float toto, "bidule.h")' <: _,_);
ab599c98f7f804a9f40248fd43c4e9540f0c6a94ef9c47423bd4adc443560348
HexHive/datAFLow
multirate_6.dsp
process = * ~ (vectorize(4) : [](0)));
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/multirate_6.dsp
faust
process = * ~ (vectorize(4) : [](0)));
7cba4f07abe6e781fca308f366548722e1c5027d50d24ca6add9ebc5151275b7
HexHive/datAFLow
logical.dsp
// Test logical operators land = int(_*12345) & int(_*67895); lor = int(_*12345) | int(_*67895); lxor = int(_*12345) xor int(_*67895); process = land, lor, lxor, select2(land, 100, 200), select2(lor, 10, 20), select2(lxor, 1, 2);
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/logical.dsp
faust
Test logical operators
land = int(_*12345) & int(_*67895); lor = int(_*12345) | int(_*67895); lxor = int(_*12345) xor int(_*67895); process = land, lor, lxor, select2(land, 100, 200), select2(lor, 10, 20), select2(lxor, 1, 2);
afee026f03643632640e5c777b26069d3db82531490ca7bb1fdccede856d03bf
HexHive/datAFLow
v3.dsp
// route visualisation test //process = +: _: abs; foo = route(3,2,1,2,3,1) : *; process = (_,_,_) ~ foo;
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/v3.dsp
faust
route visualisation test process = +: _: abs;
foo = route(3,2,1,2,3,1) : *; process = (_,_,_) ~ foo;
a6eed0ba165146f17f3f3c57d13fdb1a35cd9b83e6550af5de675152ac2a3866
HexHive/datAFLow
ratepass_9.dsp
up2 = vectorize(1) <: # : serialize; dw2 = vectorize(2) : [0]; process = (up2,up2) ~ (dw2,dw2);
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/ratepass_9.dsp
faust
up2 = vectorize(1) <: # : serialize; dw2 = vectorize(2) : [0]; process = (up2,up2) ~ (dw2,dw2);
1287fea31cae93f915ff7521affe476fdee2a91d42d96948551f150885d16f46
HexHive/datAFLow
numsimplerr8.dsp
process = (0,1:+), (0,2:-), (0,3:*) : -;
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/numsimplerr8.dsp
faust
process = (0,1:+), (0,2:-), (0,3:*) : -;
a877508aa62f006b98d96be4d11cba2e44b6c7cf51b723e89a7183beab015a0d
HexHive/datAFLow
error02.dsp
// ERROR : pattern matching failed, no rule of case {(2) => 2; (1) => 1; } matches argument list (3) foo(1) = 1; foo(2) = 2; process = foo(3);
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/error02.dsp
faust
ERROR : pattern matching failed, no rule of case {(2) => 2; (1) => 1; } matches argument list (3)
foo(1) = 1; foo(2) = 2; process = foo(3);
c009be90a2ad3e691c7254492a5a352817ba852543f5e7d4dcd4255d00fefe8a
HexHive/datAFLow
waveform3.dsp
process = waveform {1.1,2.2,3.3,4.4,5.5,6.6,7.7}, %(7)~+(3) : rdtable;
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/waveform3.dsp
faust
process = waveform {1.1,2.2,3.3,4.4,5.5,6.6,7.7}, %(7)~+(3) : rdtable;
efb13509c2d3584075fa4286ab958450ec4fe7afe143806d7d51653dfb8d5650
HexHive/datAFLow
test12.dsp
t(x,y) = x-y, y-x; process = t~_;
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/test12.dsp
faust
t(x,y) = x-y, y-x; process = t~_;
3e976b9c816faac60d8a0df4fbb18b74006493c7694174225ca19efcc5dc56a7
HexHive/datAFLow
numsimplerr2.dsp
process = (0,0) + 0;
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/numsimplerr2.dsp
faust
process = (0,0) + 0;
bf2c300ba90db81ddc8dcf441259b57576ab9085789d2aa7eb6d6cbe68269fe2
HexHive/datAFLow
waveform6.dsp
w1(x) = waveform {10,20,30,40,50,60},int(x):rdtable; process(x,y) = y*(sin(w1(4*abs(x))));
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/waveform6.dsp
faust
w1(x) = waveform {10,20,30,40,50,60},int(x):rdtable; process(x,y) = y*(sin(w1(4*abs(x))));
ca6e624a3fe95781756e7698008f9e3e80f6289e77a65a75b121c13816c37d4e
HexHive/datAFLow
test25.dsp
//This program crash on faust 0.9.9.1 v = hslider("volume",0,0,100,1); process = +(v-v'), *(3*v);
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/test25.dsp
faust
This program crash on faust 0.9.9.1
v = hslider("volume",0,0,100,1); process = +(v-v'), *(3*v);
501db5c8a023477273a5a23b802fc4a6d724e715793188c1e670fbdc03fe9960
HexHive/datAFLow
notch.dsp
import("maxmsp.lib"); G = hslider("Gain [unit:dB]", 0, -10, 10, 0.1); F = hslider("Freq", 1000, 100, 10000, 1); Q = hslider("Q", 1, 0.01, 100, 0.01); process(x) = notch(x,F,G,Q);
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/notch.dsp
faust
import("maxmsp.lib"); G = hslider("Gain [unit:dB]", 0, -10, 10, 0.1); F = hslider("Freq", 1000, 100, 10000, 1); Q = hslider("Q", 1, 0.01, 100, 0.01); process(x) = notch(x,F,G,Q);
6c1490751725a16afe9de5086787ded9204dc54e6efa56b1673b2e35dbf9accc
nyanpasu64-backup/snes-echo
lagrange-delay.dsp
declare name "lagrange delay"; declare version "0."; declare author "nyanpasu64"; declare license "bsd"; declare copyright "nyanpasu64"; import("delays.lib"); snes2sr = _ * SR / 32000.0; PRERINGING = 32; // corrupted output at 256 delayt = vslider("Delay samples", 0.5, 0, 1, 0.01) + PRERINGING; process(...
https://raw.githubusercontent.com/nyanpasu64-backup/snes-echo/8378166012807e96eca69cb2bc3ee9cf5537a69f/snes-echo/test/lagrange-delay.dsp
faust
corrupted output at 256
declare name "lagrange delay"; declare version "0."; declare author "nyanpasu64"; declare license "bsd"; declare copyright "nyanpasu64"; import("delays.lib"); snes2sr = _ * SR / 32000.0; delayt = vslider("Delay samples", 0.5, 0, 1, 0.01) + PRERINGING; process(l, r) = fdelaylti(PRERINGING, 2*PRERINGING,...
956cd50b5c9dc28e4d03639662fa1e5d7c11ec972edc6e187c0f360dc082b0e9
notam02/studio-3-resources
Sirius_5H5P_Slepian24_2_band.dsp
// Faust Decoder Configuration File // Written by Ambisonic Decoder Toolbox, version 8.0 // run by thomj on thomjmbp.local (MACI64) at 02-Sep-2021 13:03:28 //------- decoder information ------- // decoder file = ../decoders/Sirius_5H5P_Slepian24_2_band.dsp // description = Sirius_5H5P_Slepian24_2_band // speaker array...
https://raw.githubusercontent.com/notam02/studio-3-resources/a007fa58e0090e46a50f4bf537cd600628598c45/faust/Sirius_5H5P_Slepian24_2_band.dsp
faust
Faust Decoder Configuration File Written by Ambisonic Decoder Toolbox, version 8.0 run by thomj on thomjmbp.local (MACI64) at 02-Sep-2021 13:03:28 ------- decoder information ------- decoder file = ../decoders/Sirius_5H5P_Slepian24_2_band.dsp description = Sirius_5H5P_Slepian24_2_band speaker array name = Sirius ...
declare name "Sirius_5H5P_Slepian24_2_band"; nbands = 2; decoder_type = 2; xover_freq = hslider("xover [unit:Hz]",400,200,800,20): dezipper; lfhf_ratio = hslider("lf/hf [unit:dB]", 0, -3, +3, 0.1): mu.db2linear : dezipper; decoder_order = 5; co = ( 0, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4...
f91c7554682de557a770d83cd2c75032df6f202181ab5f217ff1cee24cd33072
notam02/studio-3-resources
Sirius_5h5p_allrad_5200_rE_max_2_band.dsp
// Faust Decoder Configuration File // Written by Ambisonic Decoder Toolbox, version 8.0 // run by thomj on thomjmbp.local (MACI64) at 02-Sep-2021 12:40:06 //------- decoder information ------- // decoder file = ../decoders/Sirius_5h5p_allrad_5200_rE_max_2_band.dsp // description = Sirius_5h5p_allrad_5200_rE_max_2_ban...
https://raw.githubusercontent.com/notam02/studio-3-resources/a007fa58e0090e46a50f4bf537cd600628598c45/faust/Sirius_5h5p_allrad_5200_rE_max_2_band.dsp
faust
Faust Decoder Configuration File Written by Ambisonic Decoder Toolbox, version 8.0 run by thomj on thomjmbp.local (MACI64) at 02-Sep-2021 12:40:06 ------- decoder information ------- decoder file = ../decoders/Sirius_5h5p_allrad_5200_rE_max_2_band.dsp description = Sirius_5h5p_allrad_5200_rE_max_2_band speaker ar...
declare name "Sirius_5h5p_allrad_5200_rE_max_2_band"; nbands = 2; decoder_type = 2; xover_freq = hslider("xover [unit:Hz]",400,200,800,20): dezipper; lfhf_ratio = hslider("lf/hf [unit:dB]", 0, -3, +3, 0.1): mu.db2linear : dezipper; decoder_order = 5; co = ( 0, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4...
5d5a23e4c3824088c712974e5dba0e70e7222463e9060b1f81a573ccf4cb7dc4
LucaSpanedda/Guida_Primi_Codici_in_FAUST
0.20_Fasore.dsp
// FASORE /* Per ottenere un segnale FASORE, dal nostro segnale di Rampa ad incremento infinito, vogliamo creare un segnale che si ripete secondo tale andamento ciclicamente ogni tot. campioni che determinano di conseguenza il suo incremento, da un punto di partenza ad un punto di fine: Dobbiamo creare una...
https://raw.githubusercontent.com/LucaSpanedda/Guida_Primi_Codici_in_FAUST/c246daac1d98a367dedeb5bb608b0c4fbcc17dc7/0.20_Fasore.dsp
faust
FASORE Per ottenere un segnale FASORE, dal nostro segnale di Rampa ad incremento infinito, vogliamo creare un segnale che si ripete secondo tale andamento ciclicamente ogni tot. campioni che determinano di conseguenza il suo incremento, da un punto di partenza ad un punto di fine: Dobbiamo creare una funzi...
decimale(x)= x-int(x); phase = 0.002 : (+ : decimale) ~ _; process = (phase);
5ce6c1edacb98cfc01ba4892d2bf96a97b0e0009e1ae0a99ddadafb39aabbb7f
LucaSpanedda/Guida_Primi_Codici_in_FAUST
0.10_Rampa.dsp
// RAMPA /* Una RAMPA è un segnale che produce un andamento crescente da un numero di partenza ad infinito. E tramite campioni viene implementata in modo che per ogni campione continui a crescere di e da un valore definito in partenza. Per comprendere il processo bisogna fare però alcune premesse: L'aud...
https://raw.githubusercontent.com/LucaSpanedda/Guida_Primi_Codici_in_FAUST/0eedc73c90fde5f60a2273c83e116acb340f7e12/0.10_Rampa.dsp
faust
RAMPA Una RAMPA è un segnale che produce un andamento crescente da un numero di partenza ad infinito. E tramite campioni viene implementata in modo che per ogni campione continui a crescere di e da un valore definito in partenza. Per comprendere il processo bisogna fare però alcune premesse: L'audio in ...
c44dce89459538f4df518fd66ee71f41a51daf75c5f1de910619232a9e2d74ed
LucaSpanedda/Guida_Primi_Codici_in_FAUST
0.00_Fondamenti_di_Faust.dsp
// FONDAMENTI DI FAUST // Logiche di funzionamento alla base del linguaggio di programmazione FAUST // --- LA RIGA DI COMMENTO // la sintassi di Faust proviene dal linguaggio c quindi in Faust la riga di // commento si scrive con un doppio-slash ad inizio riga // come fatto finora. // --- IL COMMENTO MULTI RIG...
https://raw.githubusercontent.com/LucaSpanedda/Guida_Primi_Codici_in_FAUST/72af9bc7b471703fd4fb2f288be1e939be9be5a6/0.00_Fondamenti_di_Faust.dsp
faust
FONDAMENTI DI FAUST Logiche di funzionamento alla base del linguaggio di programmazione FAUST --- LA RIGA DI COMMENTO la sintassi di Faust proviene dal linguaggio c quindi in Faust la riga di commento si scrive con un doppio-slash ad inizio riga // come fatto finora. --- IL COMMENTO MULTI RIGA come nel lin...
process = _;
4d55a04a8e37b61a999f61de71ca32d14579fff8fed256d873ce8acd2cadb1d9
sozbtn/physical-modelling-percussion-instrument
mesh.dsp
// Nonlinear Waveguide Mesh // Autor: der Pablo // JOS. https://ccrma.stanford.edu/~rmichon/publications/doc/DAFx11-Nonl-Allpass.pdf // Sources http://www.music.mcgill.ca/~gary/618/reading.html // Reference videos: // - Cymbal https://www.youtube.com/watch?v=6dLZ3hJbLqE // Limitations: // Effect of wave dispersion d...
https://raw.githubusercontent.com/sozbtn/physical-modelling-percussion-instrument/ad971fd6d962c125df70662aaab9ca87230ba805/mesh/mesh.dsp
faust
Nonlinear Waveguide Mesh Autor: der Pablo JOS. https://ccrma.stanford.edu/~rmichon/publications/doc/DAFx11-Nonl-Allpass.pdf Sources http://www.music.mcgill.ca/~gary/618/reading.html Reference videos: - Cymbal https://www.youtube.com/watch?v=6dLZ3hJbLqE Limitations: Effect of wave dispersion due to discretizati...
import("misceffect.lib"); import("signal.lib"); import("instrument.lib"); volume = hslider("h:Basic_Parameters/volume [1][tooltip:Volume (value between 0 and 1)]",1,0,1,0.01); gate = button("h:Basic_Parameters/gate [1][tooltip:noteOn = 1, noteOff = 0]"); gain = hslider("h:Basic_Parameters/gain [1][tooltip:Gai...
5bbe2f1ac9188f39292ffba4ade75dffcdde1b0831cfd18dd9b0fa73afb9a86c
LucaSpanedda/Riverberazione_Digitale_in_FAUST
2.0_Luca_Spanedda_KBVerb.dsp
declare name "Luca Spanedda's KBVerb"; declare version "1.0.0"; declare author "Luca Spanedda"; declare copyright "Copyright(c) 2022 Luca Spanedda"; // import Standard Faust library // https://github.com/grame-cncm/faustlibraries/ import("stdfaust.lib"); // insert an Index for the prime number list, report ms. ...
https://raw.githubusercontent.com/LucaSpanedda/Riverberazione_Digitale_in_FAUST/5cb60e8187327535dbbf9851dc1faf2c65e5936c/2.0_Luca_Spanedda_KBVerb.dsp
faust
import Standard Faust library https://github.com/grame-cncm/faustlibraries/ insert an Index for the prime number list, report ms. and Meters process = reverbPrimeTest(410) , reverbPrimeTest(420) , reverbPrimeTest(430) , reverbPrimeTest(440) , rev...
declare name "Luca Spanedda's KBVerb"; declare version "1.0.0"; declare author "Luca Spanedda"; declare copyright "Copyright(c) 2022 Luca Spanedda"; import("stdfaust.lib"); reverbPrimeTest(index) = primeNumbers(index) : \(x).(x : ba.samp2sec, (343.1)*(x : ba.samp2sec)); primes = (2, 3, 5, 7, 11, 13, 17, 1...
d3b81458a4157242a80b3e49cd6002b7b5f6d0636464dd55ee4c48b02ec195e5
LucaSpanedda/Riverberazione_Digitale_in_FAUST
2.0_Corey_Kereliuk_KBVerb.dsp
// faust -a supercollider.cpp KBVerb.dsp -o KBVerb.cpp // g++ -O3 -DNO_LIBSNDFILE -DSC_DARWIN -DSC_FAUST_PREFIX="\"\"" -bundle -I./include -I/Users/corey/Development/supercollider/include/{plugin_interface,common,server} -I/usr/local/lib/faust/ -Dmydsp=KBVERB -o KBVerb.scx KBVerb.cpp declare name "KBVerb"; declare aut...
https://raw.githubusercontent.com/LucaSpanedda/Riverberazione_Digitale_in_FAUST/af19b40c9b0289cf2f759b957a63c48ac3c17ae5/2.0_Corey_Kereliuk_KBVerb.dsp
faust
faust -a supercollider.cpp KBVerb.dsp -o KBVerb.cpp g++ -O3 -DNO_LIBSNDFILE -DSC_DARWIN -DSC_FAUST_PREFIX="\"\"" -bundle -I./include -I/Users/corey/Development/supercollider/include/{plugin_interface,common,server} -I/usr/local/lib/faust/ -Dmydsp=KBVERB -o KBVerb.scx KBVerb.cpp os = library("miscoscillator.lib"); // ...
declare name "KBVerb"; declare author "Corey Kereliuk"; declare copyright "Corey Kereliuk"; declare version "0.0"; declare license "MIT"; import("math.lib"); import("signal.lib"); import("delay.lib"); primes = ffunction(int primes (int),<primes.h>,"primes"); fb = hslider("feedback",0.5,0.0,1.0,0.01):smooth(0.99); ...
a22277960fb91b7e05e603092c09d3f2d1ef54469b1d00265acfdeebeda1c416
LucaSpanedda/Riverberazione_Digitale_in_FAUST
2.0_Oli_Larkin_FaustVerb.dsp
declare name "freeverb"; declare version "1.0"; declare author "Grame"; declare license "BSD"; declare copyright "(c) GRAME 2006"; declare reference "https://ccrma.stanford.edu/~jos/pasp/Freeverb.html"; //====================================================== // // Freeverb...
https://raw.githubusercontent.com/LucaSpanedda/Riverberazione_Digitale_in_FAUST/af19b40c9b0289cf2f759b957a63c48ac3c17ae5/2.0_Oli_Larkin_FaustVerb.dsp
faust
====================================================== Freeverb Faster version using fixed delays (20% gain) ====================================================== Constant Parameters -------------------- value of the gain of fxctrl feedback of the delays used in allpass filters Filter...
declare name "freeverb"; declare version "1.0"; declare author "Grame"; declare license "BSD"; declare copyright "(c) GRAME 2006"; declare reference "https://ccrma.stanford.edu/~jos/pasp/Freeverb.html"; scalewet = 3.0; scaledry = 2.0; scaledamp = 0.4; scaleroom = 0.28; offsetroom =...
4f1493cbf36b5d8e91ccc89b15f612ab5e504bd4a34a0f33a812b17c45a558bb
JaoRamos/Faust
Clase_3.dsp
/* retardoslider = hslider("Retardo en segundos", 0.5, 0, 1, 0.01); gainslider = hslider("Realimentacion", 0.5, 0, 1, 0.01); rebote(retardo, gain) = @(retardo) * (gain); ecomono(retardo, gain) = +~rebote(retardo, gain); // mantendremos ambos canales ligeramente distintos ecoestereo(retardo, gain) = ecomono(retardo/3, ...
https://raw.githubusercontent.com/JaoRamos/Faust/ea166da223762e2c5a37af677953e18e89d02d7c/unq/Clase_3/Clase_3.dsp
faust
retardoslider = hslider("Retardo en segundos", 0.5, 0, 1, 0.01); gainslider = hslider("Realimentacion", 0.5, 0, 1, 0.01); rebote(retardo, gain) = @(retardo) * (gain); ecomono(retardo, gain) = +~rebote(retardo, gain); // mantendremos ambos canales ligeramente distintos ecoestereo(retardo, gain) = ecomono(retardo/3, ga...
rebote(retardo, gain) = @(retardo) : *(gain); ecomono(retardo, gain) = +~rebote(retardo, gain); ecoestereo(retardo, gain) = ecomono(retardo/3, gain), ecomono(retardo, gain/2); retardoslider = hslider("Retardo en segundos", 0.5, 0, 1, 0.01); gainslider = hslider("Realimentacion", 0.5, 0, 1, 0.01); process = ecoestereo...
10fcd65a5ae748df0fd04dd8b24dbb75f9861f9fa44ff12493ae9e25b80f1aa4
JaoRamos/Faust
Freeze_simple.dsp
rebote(retardo, gain) = @(retardo) : *(gain); // reducimos progresivamente la señal original si el gain supera un "limite" // quedando solo la señal del retardo ya existente en el bucle de realimentacion limite = 0.95; congelador(retardo, gain) = *(1 - max(0, gain - limite) / (1-limite)) : +~rebote(retardo, gain); ecoe...
https://raw.githubusercontent.com/JaoRamos/Faust/ea166da223762e2c5a37af677953e18e89d02d7c/unq/Clase_3/Freeze_simple.dsp
faust
reducimos progresivamente la señal original si el gain supera un "limite" quedando solo la señal del retardo ya existente en el bucle de realimentacion
rebote(retardo, gain) = @(retardo) : *(gain); limite = 0.95; congelador(retardo, gain) = *(1 - max(0, gain - limite) / (1-limite)) : +~rebote(retardo, gain); ecoestereo(retardo, gain) = congelador(retardo, gain), congelador(retardo, gain); process = ecoestereo(44100/4, hslider("Realimentacion", 0, 0, 1, 0.01));
4b73eaf34fc47c7dd76c6abe03769052526b3090dd3b2b7bd77083a805b8b76b
JaoRamos/Faust
Clase2.dsp
/* // hslider("label",init,min,max,step) process = _ * hslider("volumen", 0.5, -5.0, 5.0, 0.00001); */ /* // puedo crear definiciones adicionales // asi puedo englobar/encapsular elementos monoAmp = (_, hslider("volume", 0.1, 0, 1, 0.01)) : *; process = monoAmp; */ /* // amplificador estereo monoAmp = (_, hslider("volu...
https://raw.githubusercontent.com/JaoRamos/Faust/6de7268844326458bdd16194094f770c6004315e/unq/Clase_2/Clase2.dsp
faust
// hslider("label",init,min,max,step) process = _ * hslider("volumen", 0.5, -5.0, 5.0, 0.00001); // puedo crear definiciones adicionales // asi puedo englobar/encapsular elementos monoAmp = (_, hslider("volume", 0.1, 0, 1, 0.01)) : *; process = monoAmp; // amplificador estereo monoAmp = (_, hslider("volume", 0.1, ...
fa5a54f3533ec98c1e20f3348d5adb418128edfef3f324198b9389e7a97e6404
JaoRamos/Faust
Clase1.dsp
// process es la definicion principal // = operador de asignacion // _ primitiva "identidad" (cable de audio... ponele) process = _ * 0.5;
https://raw.githubusercontent.com/JaoRamos/Faust/4ee336c4f8ee2ed2c2669f51a29bc7e221675029/unq/Clase_1/Clase1.dsp
faust
process es la definicion principal = operador de asignacion _ primitiva "identidad" (cable de audio... ponele)
process = _ * 0.5;
d7a5c62e75d15c3a653f8247e3fefe2f668e3bc4e417f79f7884673b2f588718
JaoRamos/Faust
1_MidSide.dsp
/* Procesador MID-SIDE Un procesador Mid-Side parte de una señal estereo diseñada como L + R, y deconstruye el componente Mid (centro) y Side (lateral). El algoritmo es muy sencillo: mid = L+R side = L-R Habitualmente, estos procesadores ofrecen algun control de nivel para Mid y Side, y luego reconstruyen la ...
https://raw.githubusercontent.com/JaoRamos/Faust/c8895c672104b10729ddc06b42e2169a2943d839/unq/Clase_8/1_MidSide.dsp
faust
Procesador MID-SIDE Un procesador Mid-Side parte de una señal estereo diseñada como L + R, y deconstruye el componente Mid (centro) y Side (lateral). El algoritmo es muy sencillo: mid = L+R side = L-R Habitualmente, estos procesadores ofrecen algun control de nivel para Mid y Side, y luego reconstruyen la se...
sliderMid = hslider("Mid", 1, 0, 1, 0.01); sliderSide = hslider("Side", 1, 0, 1, 0.01); volumen = hslider("Volumen", 0.8, 0, 1, 0.01); process(l, r) = reconstituir(l, r) : (*(volumen), *(volumen));
232ce84d0d96b30458e0876b4bb8546bb9465a274d2f9e95a0ae86cfb525ca0f
grame-cncm/faustide
midiTester.dsp
declare name "midiTester"; declare version "1.0"; declare author "Vincent Rateau, GRAME"; declare license "GPL v3"; declare reference "www.sonejo.net"; // FAUST MIDI TESTER process = _*0, (vgroup("FAUST MIDI TESTER", hgroup("[1]", controltester, controlchantester, noteontester, noteonchantester,...
https://raw.githubusercontent.com/grame-cncm/faustide/2e68ca26fd487a1dbf7b27b5eb92f3c14b4eae41/docs/examples/misc/midiTester.dsp
faust
FAUST MIDI TESTER ///////////////////////// Ctrl tester (ctrl ): tester(midi in, midi out) Ctrl Chan tester (ctrl chan): tester(midi in, midi out) Note tester (keyon) : tester(midi in, midi out) Note Chan tester (keyon) : tester(midi in, midi out) Note tester (keyoff) : tester(midi in, midi out) Note Chan tester (keyo...
declare name "midiTester"; declare version "1.0"; declare author "Vincent Rateau, GRAME"; declare license "GPL v3"; declare reference "www.sonejo.net"; process = _*0, (vgroup("FAUST MIDI TESTER", hgroup("[1]", controltester, controlchantester, noteontester, noteonchantester, noteofftester, noteo...
6d16bd9d7ebcaca89ed243fbd6bcda724835ba5c4dee63c598eb231704630b0c
grame-cncm/faustide
FMSynth2_FX.dsp
import("all.lib"); /////////////////////////////////////////////////////////////////////////////////////////////////// // // Simple FM synthesizer. // 2 oscillators and FM feedback on modulant oscillator // /////////////////////////////////////////////////////////////////////////////////////////////////// // MIDI IMP...
https://raw.githubusercontent.com/grame-cncm/faustide/2e68ca26fd487a1dbf7b27b5eb92f3c14b4eae41/docs/examples/bela/FMSynth2_FX.dsp
faust
///////////////////////////////////////////////////////////////////////////////////////////////// Simple FM synthesizer. 2 oscillators and FM feedback on modulant oscillator ///////////////////////////////////////////////////////////////////////////////////////////////// MIDI IMPLEMENTATION: CC 1 : FM feedback ...
import("all.lib"); midigate = button("gate"); midifreq = nentry("freq[unit:Hz]", 440, 20, 20000, 1); midigain = nentry("gain", 1, 0, 1, 0.01); feedb = (gFreq-1) * (hslider("feedb[midi:ctrl 1]", 0, 0, 1, 0.001) : si.smoo); modFreqRatio = hslider("ratio[midi:ctrl 14]",2,0,20,0.01) : si.smoo; ben...
629943022cc07cf5e19007f63118fe8719fcd55c2b9ec6d5971b0d269203adfe
grame-cncm/faustide
LPF.dsp
// WARNING: This a "legacy example based on a deprecated library". Check filters.lib // for more accurate examples of filter functions declare name "LPF"; import("maxmsp.lib"); G = hslider("Gain [unit:dB]", 0, -10, 10, 0.1); F = hslider("Freq", 1000, 100, 10000, 1); Q = hslider("Q", 1, 0.01, 100, 0.01); process(x) ...
https://raw.githubusercontent.com/grame-cncm/faustide/2e68ca26fd487a1dbf7b27b5eb92f3c14b4eae41/docs/examples/filtering/LPF.dsp
faust
WARNING: This a "legacy example based on a deprecated library". Check filters.lib for more accurate examples of filter functions
declare name "LPF"; import("maxmsp.lib"); G = hslider("Gain [unit:dB]", 0, -10, 10, 0.1); F = hslider("Freq", 1000, 100, 10000, 1); Q = hslider("Q", 1, 0.01, 100, 0.01); process(x) = LPF(x,F,G,Q);
e6a00a846917956d60b6cc6dfd12dcc076782ff594df209193ae85d6977e86bf
grame-cncm/faustide
notch.dsp
// WARNING: This a "legacy example based on a deprecated library". Check filters.lib // for more accurate examples of filter functions declare name "notch"; import("maxmsp.lib"); G = hslider("Gain [unit:dB]", 0, -10, 10, 0.1); F = hslider("Freq", 1000, 100, 10000, 1); Q = hslider("Q", 1, 0.01, 100, 0.01); process(x...
https://raw.githubusercontent.com/grame-cncm/faustide/2e68ca26fd487a1dbf7b27b5eb92f3c14b4eae41/docs/examples/filtering/notch.dsp
faust
WARNING: This a "legacy example based on a deprecated library". Check filters.lib for more accurate examples of filter functions
declare name "notch"; import("maxmsp.lib"); G = hslider("Gain [unit:dB]", 0, -10, 10, 0.1); F = hslider("Freq", 1000, 100, 10000, 1); Q = hslider("Q", 1, 0.01, 100, 0.01); process(x) = notch(x,F,G,Q);
0bb7f2501588b3b4b666a76be6fcaef77c8d95f496c29412e2a9f513e627b6d2
grame-cncm/faustide
HPF.dsp
// WARNING: This a "legacy example based on a deprecated library". Check filters.lib // for more accurate examples of filter functions declare name "HPF"; import("maxmsp.lib"); G = hslider("Gain [unit:dB]", 0, -10, 10, 0.1); F = hslider("Freq", 1000, 100, 10000, 1); Q = hslider("Q", 1, 0.01, 100, 0.01); process(x) ...
https://raw.githubusercontent.com/grame-cncm/faustide/2e68ca26fd487a1dbf7b27b5eb92f3c14b4eae41/src/static/examples/filtering/HPF.dsp
faust
WARNING: This a "legacy example based on a deprecated library". Check filters.lib for more accurate examples of filter functions
declare name "HPF"; import("maxmsp.lib"); G = hslider("Gain [unit:dB]", 0, -10, 10, 0.1); F = hslider("Freq", 1000, 100, 10000, 1); Q = hslider("Q", 1, 0.01, 100, 0.01); process(x) = HPF(x,F,G,Q);
10baf5910216f50fb75d43c697a2437def181d2383e5578dca962d261503acf7
grame-cncm/faustide
peakingEQ.dsp
// WARNING: This a "legacy example based on a deprecated library". Check filters.lib // for more accurate examples of filter functions declare name "peakingEQ"; import("maxmsp.lib"); G = hslider("Gain [unit:dB]", 0, -10, 10, 0.1); F = hslider("Freq", 1000, 100, 10000, 1); Q = hslider("Q", 1, 0.01, 100, 0.01); proce...
https://raw.githubusercontent.com/grame-cncm/faustide/2e68ca26fd487a1dbf7b27b5eb92f3c14b4eae41/src/static/examples/filtering/peakingEQ.dsp
faust
WARNING: This a "legacy example based on a deprecated library". Check filters.lib for more accurate examples of filter functions
declare name "peakingEQ"; import("maxmsp.lib"); G = hslider("Gain [unit:dB]", 0, -10, 10, 0.1); F = hslider("Freq", 1000, 100, 10000, 1); Q = hslider("Q", 1, 0.01, 100, 0.01); process(x) = peakingEQ(x,F,G,Q);
64eb40075434f4e902f65670da414d19563fededd820bad6b4ba293be18461ea
grame-cncm/faustide
layout.dsp
mixer(x) = hgroup("",x); v01(x) = mixer(hgroup("", x)); v02(x) = mixer(hgroup("", x)); v03(x) = mixer(hgroup("", x)); v04(x) = mixer(hgroup("", x)); v05(x) = mixer(hgroup("", x)); v06(x) = mixer(hgroup("", x)); v07(x) = mixer(hgroup("", x)); v08(x) = mixer(hgroup("", x)); v09(x) = mixer(hgrou...
https://raw.githubusercontent.com/grame-cncm/faustide/2e68ca26fd487a1dbf7b27b5eb92f3c14b4eae41/docs/examples/SAM/16_channel_volume/layout.dsp
faust
mixer(x) = hgroup("",x); v01(x) = mixer(hgroup("", x)); v02(x) = mixer(hgroup("", x)); v03(x) = mixer(hgroup("", x)); v04(x) = mixer(hgroup("", x)); v05(x) = mixer(hgroup("", x)); v06(x) = mixer(hgroup("", x)); v07(x) = mixer(hgroup("", x)); v08(x) = mixer(hgroup("", x)); v09(x) = mixer(hgrou...
2dc72296d6e8bce4549e5297c0a9e849d66f6c9518d9e718b0ecc1334e4f05f5
grame-cncm/faustide
FMSynth2_Analog.dsp
import("all.lib"); /////////////////////////////////////////////////////////////////////////////////////////////////// // // Simple FM synthesizer. /////////////////////////////////////////////////////////////////////////////////////////////////// // ANALOG IMPLEMENTATION: // // ANALOG_0 : Modulator frequency ratio /...
https://raw.githubusercontent.com/grame-cncm/faustide/2e68ca26fd487a1dbf7b27b5eb92f3c14b4eae41/docs/examples/bela/FMSynth2_Analog.dsp
faust
///////////////////////////////////////////////////////////////////////////////////////////////// Simple FM synthesizer. ///////////////////////////////////////////////////////////////////////////////////////////////// ANALOG IMPLEMENTATION: ANALOG_0 : Modulator frequency ratio ANALOG_1 : Attack ANALOG_2 : Decay...
import("all.lib"); midigate = button("gate"); midifreq = nentry("freq[unit:Hz]", 440, 20, 20000, 1); midigain = nentry("gain", 1, 0, 1, 0.01); feedb = (gFreq-1) * (hslider("feedb[midi:ctrl 1]", 0, 0, 1, 0.001) : si.smoo); modFreqRatio = hslider("ratio[BELA: ANALOG_0]",2,0,20,0.01) : si.smoo; bend = ba.semi2ratio(h...
80ccfa2bfbefbaa1001d1328ff99900113938604a15baf20e507b0d1908312d1
grame-cncm/faustide
mixer.dsp
declare name "mixer"; declare version "1.0"; declare author "Grame"; declare license "BSD"; declare copyright "(c)GRAME 2006"; //------------------------------------------------- // Simple 8x2 mixer //------------------------------------------------- vol = component("../dynamic/volume.dsp"); pan = componen...
https://raw.githubusercontent.com/grame-cncm/faustide/2e68ca26fd487a1dbf7b27b5eb92f3c14b4eae41/src/static/examples/misc/mixer.dsp
faust
------------------------------------------------- Simple 8x2 mixer -------------------------------------------------
declare name "mixer"; declare version "1.0"; declare author "Grame"; declare license "BSD"; declare copyright "(c)GRAME 2006"; vol = component("../dynamic/volume.dsp"); pan = component("../spat/panpot.dsp"); vumeter = component("../analysis/vumeter.dsp").vmeter; mute = *(1 - checkbox("mute")); vo...
31b6284f7ac81b50dce24e8f65000ebde638dccb36412cee8ff07f43a36aa59f
grame-cncm/faustide
GrainGenerator.dsp
/////////////////////////////////////////////////////////////////////////////////////////////////// // // Grain Generator. // Another granular synthesis example. // This one is not finished, but ready for more features and improvements... // //////////////////////////////////////////////////////////////////////////////...
https://raw.githubusercontent.com/grame-cncm/faustide/2e68ca26fd487a1dbf7b27b5eb92f3c14b4eae41/src/static/examples/bela/GrainGenerator.dsp
faust
///////////////////////////////////////////////////////////////////////////////////////////////// Grain Generator. Another granular synthesis example. This one is not finished, but ready for more features and improvements... //////////////////////////////////////////////////////////////////////////////////////////...
import("all.lib"); speed = hslider("speed[BELA: ANALOG_3]", 1, 0.125, 4, 0.001); feedback = hslider("feedback[BELA: ANALOG_4]",0,0,2,0.001); freq = 1000/taille; tmpTaille = taille*ma.SR/ 1000; detect1(x) = select2 (x < 10, 0, 1); detect2(x) = select2 (x > clocSize*1/3, 0, 1) : select2 (x < (clocSize*1/3)+10, 0,...
2cb66a8d563b463d7fc6909bafaff50ff6d2fbf1dcc70f29beb621539008d1ae
grame-cncm/faustide
noise.dsp
// WARNING: This a "legacy example based on a deprecated library". Check noises.lib // for more accurate examples of noise functions declare name "Noise"; declare version "1.1"; declare author "Grame"; declare license "BSD"; declare copyright "(c)GRAME 2009"; //-------------------------------------------------...
https://raw.githubusercontent.com/grame-cncm/faustide/2e68ca26fd487a1dbf7b27b5eb92f3c14b4eae41/src/static/examples/generator/noise.dsp
faust
WARNING: This a "legacy example based on a deprecated library". Check noises.lib for more accurate examples of noise functions ----------------------------------------------------------------- Noise generator and demo file for the Faust math documentation -------------------------------------------------------------...
declare name "Noise"; declare version "1.1"; declare author "Grame"; declare license "BSD"; declare copyright "(c)GRAME 2009"; <mdoc> \section{Presentation of the "noise.dsp" Faust program} This program describes a white noise generator with an interactive volume, using a random function. \subsection{The ran...
c7d2560232da52e46875cd30836f1390eeb370ffb70177e8cc72c6766723bb40
grame-cncm/faustide
APF.dsp
// WARNING: This a "legacy example based on a deprecated library". Check filters.lib // for more accurate examples of filter functions declare name "APF"; import("maxmsp.lib"); G = hslider("Gain [unit:dB]", 0, -10, 10, 0.1); F = hslider("Freq", 1000, 100, 10000, 1); Q = hslider("Q", 1, 0.01, 100, 0.01); process(x) ...
https://raw.githubusercontent.com/grame-cncm/faustide/2e68ca26fd487a1dbf7b27b5eb92f3c14b4eae41/src/static/examples/filtering/APF.dsp
faust
WARNING: This a "legacy example based on a deprecated library". Check filters.lib for more accurate examples of filter functions
declare name "APF"; import("maxmsp.lib"); G = hslider("Gain [unit:dB]", 0, -10, 10, 0.1); F = hslider("Freq", 1000, 100, 10000, 1); Q = hslider("Q", 1, 0.01, 100, 0.01); process(x) = APF(x,F,G,Q);
f074a50ae7cfe09aa0052de7dad05b4b13d5fad65dc05435df170d94db850f8a
grame-cncm/faustide
BPF.dsp
// WARNING: This a "legacy example based on a deprecated library". Check filters.lib // for more accurate examples of filter functions declare name "BPF"; import("maxmsp.lib"); G = hslider("Gain [unit:dB]", 0, -10, 10, 0.1); F = hslider("Freq", 1000, 100, 10000, 1); Q = hslider("Q", 1, 0.01, 100, 0.01); process(x) ...
https://raw.githubusercontent.com/grame-cncm/faustide/2e68ca26fd487a1dbf7b27b5eb92f3c14b4eae41/src/static/examples/filtering/BPF.dsp
faust
WARNING: This a "legacy example based on a deprecated library". Check filters.lib for more accurate examples of filter functions
declare name "BPF"; import("maxmsp.lib"); G = hslider("Gain [unit:dB]", 0, -10, 10, 0.1); F = hslider("Freq", 1000, 100, 10000, 1); Q = hslider("Q", 1, 0.01, 100, 0.01); process(x) = BPF(x,F,G,Q);
3e30cda3a12483dcf162a63ad941a0e4838bfe4efe72cfcbc9375a17b8c6b080
grame-cncm/faustide
guitarix.dsp
/* * Copyright (C) 2009, 2010 Hermann Meyer, James Warden, Andreas Degert * Copyright (C) 2011 Pete Shorthose * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the Lice...
https://raw.githubusercontent.com/grame-cncm/faustide/2e68ca26fd487a1dbf7b27b5eb92f3c14b4eae41/src/static/examples/misc/guitarix.dsp
faust
* Copyright (C) 2009, 2010 Hermann Meyer, James Warden, Andreas Degert * Copyright (C) 2011 Pete Shorthose * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the Licens...
declare name "guitarix"; declare version "0.29"; declare author "Guitarix project (http://guitarix.sourceforge.net/)"; declare copyright "Guitarix project"; declare license "LGPL"; ba = library("basics.lib"); si = library("signals.lib"); import("tubes.lib"); import("tonestacks.lib"); process = pre...
721c87352ee26e4a760b839c95fa7f461cf85b7fcdf0367134d6320389f0b813
grame-cncm/faustide
multibandFilter.dsp
// WARNING: This a "legacy example based on a deprecated library". Check filters.lib // for more accurate examples of filter functions declare name "multibandFilter"; declare version "1.0"; declare author "Grame"; declare license "BSD"; declare copyright "(c)GRAME 2006"; //---------------------------Multi Band...
https://raw.githubusercontent.com/grame-cncm/faustide/2e68ca26fd487a1dbf7b27b5eb92f3c14b4eae41/src/static/examples/filtering/multibandFilter.dsp
faust
WARNING: This a "legacy example based on a deprecated library". Check filters.lib for more accurate examples of filter functions ---------------------------Multi Band Filter----------------------------- -------------------------------------------------------------------------
declare name "multibandFilter"; declare version "1.0"; declare author "Grame"; declare license "BSD"; declare copyright "(c)GRAME 2006"; process = hgroup("Multi Band Filter", seq(i, 10, vgroup("peak %i", component("bandFilter.dsp").bandfilter(1000*(1+i)))));
a3370bc0dbbea1d818f6f3cfdcd01381613f9f397d13176e4389232bb43a05be
grame-cncm/faustide
peakNotch.dsp
// WARNING: This a "legacy example based on a deprecated library". Check filters.lib // for more accurate examples of filter functions declare name "peakNotch"; import("maxmsp.lib"); G = hslider("Gain [unit: lin]", 1, 0, 8, 0.01); F = hslider("Freq", 1000, 100, 10000, 1); Q = hslider("Q", 1, 0.01, 100, 0.01); proc...
https://raw.githubusercontent.com/grame-cncm/faustide/2e68ca26fd487a1dbf7b27b5eb92f3c14b4eae41/docs/examples/filtering/peakNotch.dsp
faust
WARNING: This a "legacy example based on a deprecated library". Check filters.lib for more accurate examples of filter functions
declare name "peakNotch"; import("maxmsp.lib"); G = hslider("Gain [unit: lin]", 1, 0, 8, 0.01); F = hslider("Freq", 1000, 100, 10000, 1); Q = hslider("Q", 1, 0.01, 100, 0.01); process(x) = peakNotch(x,F,G,Q);
1e67194aa46b4f01e0fa337b2a6ead97d80fdb7d94ef247abc5480e0ec2fcd21
grame-cncm/faustide
layout2.dsp
// This layout loosely follows the MiniMoog-V // Arturia-only features are labeled // Original versions also added where different // Need vrocker and hrocker toggle switches in Faust! // Need orange and blue color choices // Orange => Connect modulation sources to their destinations // Blue => Turn audio source...
https://raw.githubusercontent.com/grame-cncm/faustide/2e68ca26fd487a1dbf7b27b5eb92f3c14b4eae41/docs/examples/SAM/flanger/layout2.dsp
faust
This layout loosely follows the MiniMoog-V Arturia-only features are labeled Original versions also added where different Need vrocker and hrocker toggle switches in Faust! Need orange and blue color choices Orange => Connect modulation sources to their destinations Blue => Turn audio sources On and Off -...
vrocker(x) = checkbox("%%x [style:vrocker]"); hrocker(x) = checkbox("%%x [style:hrocker]"); vrockerblue(x) = checkbox("%x [style:vrocker] [color:blue]"); vrockerblue(x) = checkbox("%x [style:vrocker] [color:blue]"); hrockerblue(x) = checkbox("%%x [style:hrocker] [color:blue]"); vrockerred(x) = checkbox("%%x [style:...
b3cab7d7450b871a04684b447f793dad95e7aa9f89f4f230ad24b191bec98b54
grame-cncm/faustide
repeater.dsp
// REPEATER: // Freeze and repeat a small part of input signal 'n' time' // /////////////////////////////////////////////////////////////////////////////////////////////////// // // ANALOG IN: // ANALOG 0 : Duration (ms) between 2 repeat series (500 to 2000 ms) // ANALOG 1 : Duration of one repeat (2 to 200 ms) // ANAL...
https://raw.githubusercontent.com/grame-cncm/faustide/2e68ca26fd487a1dbf7b27b5eb92f3c14b4eae41/docs/examples/bela/repeater.dsp
faust
REPEATER: Freeze and repeat a small part of input signal 'n' time' ///////////////////////////////////////////////////////////////////////////////////////////////// ANALOG IN: ANALOG 0 : Duration (ms) between 2 repeat series (500 to 2000 ms) ANALOG 1 : Duration of one repeat (2 to 200 ms) ANALOG 2 : Number of r...
import("all.lib"); process = _, _ , (pathClock : compteurUpReset2(nbRepet): rampePlayer, _) : routageIO : rec_play_table , rec_play_table; MasterTaille =hslider("MasterTaille[BELA: ANALOG_0]", 500, 200, 2000,0.01); MasterClocSize = int(MasterTaille*ma.SR/ 1000); taille = hslider("taille[BELA: ANALOG_1]", 50, 2, 20...
f8126d85603f194cf0c1e135d48a531952b598a3f5c0884dd4c1128153305eb4
grame-cncm/faustide
lowShelf.dsp
// WARNING: This a "legacy example based on a deprecated library". Check filters.lib // for more accurate examples of filter functions declare name "lowShelf"; import("maxmsp.lib"); G = hslider("Gain [unit:dB]", 0, -10, 10, 0.1); F = hslider("Freq", 1000, 100, 10000, 1); Q = hslider("Q", 1, 0.01, 100, 0.01); proces...
https://raw.githubusercontent.com/grame-cncm/faustide/2e68ca26fd487a1dbf7b27b5eb92f3c14b4eae41/docs/examples/filtering/lowShelf.dsp
faust
WARNING: This a "legacy example based on a deprecated library". Check filters.lib for more accurate examples of filter functions
declare name "lowShelf"; import("maxmsp.lib"); G = hslider("Gain [unit:dB]", 0, -10, 10, 0.1); F = hslider("Freq", 1000, 100, 10000, 1); Q = hslider("Q", 1, 0.01, 100, 0.01); process(x) = lowShelf(x,F,G,Q);
2b544391f593bd58ba05a22c532d7c48844459102eed8e071fc03f7b81131d0e
grame-cncm/faustide
highShelf.dsp
// WARNING: This a "legacy example based on a deprecated library". Check filters.lib // for more accurate examples of filter functions declare name "highShelf"; import("maxmsp.lib"); G = hslider("Gain [unit:dB]", 0, -10, 10, 0.1); F = hslider("Freq", 1000, 100, 10000, 1); Q = hslider("Q", 1, 0.01, 100, 0.01); proce...
https://raw.githubusercontent.com/grame-cncm/faustide/2e68ca26fd487a1dbf7b27b5eb92f3c14b4eae41/docs/examples/filtering/highShelf.dsp
faust
WARNING: This a "legacy example based on a deprecated library". Check filters.lib for more accurate examples of filter functions
declare name "highShelf"; import("maxmsp.lib"); G = hslider("Gain [unit:dB]", 0, -10, 10, 0.1); F = hslider("Freq", 1000, 100, 10000, 1); Q = hslider("Q", 1, 0.01, 100, 0.01); process(x) = highShelf(x,F,G,Q);
12168b1723c89fc431349f566aa2ca6fdf6abb7e738d7f8a47e9b158dde8a229
grame-cncm/faustide
FMSynth2.dsp
import("all.lib"); /////////////////////////////////////////////////////////////////////////////////////////////////// // // Simple FM synthesizer. // 2 oscillators and FM feedback on modulant oscillator // /////////////////////////////////////////////////////////////////////////////////////////////////// // MIDI IMPL...
https://raw.githubusercontent.com/grame-cncm/faustide/2e68ca26fd487a1dbf7b27b5eb92f3c14b4eae41/src/static/examples/bela/FMSynth2.dsp
faust
///////////////////////////////////////////////////////////////////////////////////////////////// Simple FM synthesizer. 2 oscillators and FM feedback on modulant oscillator ///////////////////////////////////////////////////////////////////////////////////////////////// MIDI IMPLEMENTATION: CC 1 : FM feedback o...
import("all.lib"); midigate = button("gate"); midifreq = nentry("freq[unit:Hz]", 440, 20, 20000, 1); midigain = nentry("gain", 1, 0, 1, 0.01); feedb = (gFreq-1) * (hslider("feedb[midi:ctrl 1]", 0, 0, 1, 0.001) : si.smoo); modFreqRatio = hslider("ratio[midi:ctrl 14]",2,0,20,0.01) : si.smoo; bend = ba.semi2ratio(hsli...
a63157790b094c73f9dfab4994e9373ee6fb363f175184913675b84dcc0ac261
grame-cncm/faustide
FMSynth2_FX_Analog.dsp
import("all.lib"); /////////////////////////////////////////////////////////////////////////////////////////////////// // // Simple FM synthesizer. // 2 oscillators and FM feedback on modulant oscillator // /////////////////////////////////////////////////////////////////////////////////////////////////// // ANALOG IM...
https://raw.githubusercontent.com/grame-cncm/faustide/2e68ca26fd487a1dbf7b27b5eb92f3c14b4eae41/src/static/examples/bela/FMSynth2_FX_Analog.dsp
faust
///////////////////////////////////////////////////////////////////////////////////////////////// Simple FM synthesizer. 2 oscillators and FM feedback on modulant oscillator ///////////////////////////////////////////////////////////////////////////////////////////////// ANALOG IMPLEMENTATION: ANALOG_0 : Modulat...
import("all.lib"); midigate = button("gate"); midifreq = nentry("freq[unit:Hz]", 440, 20, 20000, 1); midigain = nentry("gain", 1, 0, 1, 0.01); feedb = (gFreq-1) * (hslider("feedb[midi:ctrl 1]", 0, 0, 1, 0.001) : si.smoo); modFreqRatio = hslider("ratio[BELA: ANALOG_0]",2,0,20,0.01) : si.smoo; bend = ba.semi2ratio(hs...
947a7f1bb9058e613cb6a33895c4db10aed67bf83d0cad75590ba24e8f8021bb
Jikstra/faust-plugins
sawtoothsynth.dsp
import("music.lib"); import("oscillator.lib"); gate = button("gate"); gain = hslider("gain[unit:dB][style:knob]", -10, -30, +10, 0.1) : db2linear : smooth(0.999); freq = nentry("freq[unit:Hz]", 440, 20, 20000, 1); prevfreq = nentry("prevfreq[unit:Hz]", 440, 20, 20000, 1); portamento = vslider("[5] Portamento [unit:sec...
https://raw.githubusercontent.com/Jikstra/faust-plugins/2e91fe48d82e9ea7b74e8ac083dd6d40fb4ca645/sawtoothsynth.dsp
faust
import("music.lib"); import("oscillator.lib"); gate = button("gate"); gain = hslider("gain[unit:dB][style:knob]", -10, -30, +10, 0.1) : db2linear : smooth(0.999); freq = nentry("freq[unit:Hz]", 440, 20, 20000, 1); prevfreq = nentry("prevfreq[unit:Hz]", 440, 20, 20000, 1); portamento = vslider("[5] Portamento [unit:sec...
2d9b6eca5ab3eea01bd046a4923f64026cafbdeb839ad73ba776bbd78d3da812
grame-cncm/GeekBagatelles
Part_Fpublic.dsp
declare name "Part_Fpublic"; declare version "0.3"; declare author "Christophe Lebreton"; declare license "BSD"; import("stdfaust.lib"); nb_soundfile = 5; // number of soundfile // PROCESS process = play:(@(ramp*ma.SR): select_sound),(rampa(ramp):1,_:-):*:*(gain):*(temporisation:si.smooth(0.998)) with { ...
https://raw.githubusercontent.com/grame-cncm/GeekBagatelles/d66ba1e022e0ca2386008f30971cd860a97256cb/Part_Fpublic.dsp
faust
number of soundfile PROCESS ----------------------------------------------------------------------------------- / Random Selection ID ///////////////////////////////////////////////////////////// ----------------------------------------------------------------------------------- / Selection Random Audio file with ac...
declare name "Part_Fpublic"; declare version "0.3"; declare author "Christophe Lebreton"; declare license "BSD"; import("stdfaust.lib"); process = play:(@(ramp*ma.SR): select_sound),(rampa(ramp):1,_:-):*:*(gain):*(temporisation:si.smooth(0.998)) with { play = ((1-Trig_Accel)<:sh(1),_:*),Trig_Accel; ...
33bf26278eaacdf6c376548ff438c5309188315f416f5fba79e77ab576f281e0
grame-cncm/GeekBagatelles
freunde_1_fois_soprano_waveform.dsp
freunde_1_fois_soprano_0 = waveform{-0.00140381,-0.0017395,-0.00088501,-0.000610352,-0.000457764,-0.00201416,-0.00140381,-0.0017395,-0.000213623,-0.000396729,-0.00189209,-0.00256348,-0.00128174,0.00012207,-0.000335693,-0.00146484,-0.00213623,-0.00106812,6.10352e-05,-0.000274658,-0.00140381,-0.00167847,-0.00106812,-0.00...
https://raw.githubusercontent.com/grame-cncm/GeekBagatelles/d09ed1362a79707d1687ed92cf0482ced2509035/freunde_1_fois_soprano_waveform.dsp
faust
freunde_1_fois_soprano_0 = waveform{-0.00140381,-0.0017395,-0.00088501,-0.000610352,-0.000457764,-0.00201416,-0.00140381,-0.0017395,-0.000213623,-0.000396729,-0.00189209,-0.00256348,-0.00128174,0.00012207,-0.000335693,-0.00146484,-0.00213623,-0.00106812,6.10352e-05,-0.000274658,-0.00140381,-0.00167847,-0.00106812,-0.00...
b53101b393625544a340caa982dd864816a7a5a8ad90b63ac9b8bd5e8767d538
grame-cncm/GeekBagatelles
freunde_soprano_waveform.dsp
freunde_soprano_0 = waveform{-0.0020752,-0.00100708,-0.00106812,-0.000213623,-0.00167847,-0.0015564,-0.000946045,-0.000549316,-0.000946045,-0.00146484,-0.00180054,-0.000610352,-6.10352e-05,-0.00128174,-0.00189209,-0.00100708,-0.000610352,-0.000610352,-0.0012207,-0.00195312,-0.00161743,-0.000793457,-0.000335693,-0.00061...
https://raw.githubusercontent.com/grame-cncm/GeekBagatelles/d09ed1362a79707d1687ed92cf0482ced2509035/freunde_soprano_waveform.dsp
faust
freunde_soprano_0 = waveform{-0.0020752,-0.00100708,-0.00106812,-0.000213623,-0.00167847,-0.0015564,-0.000946045,-0.000549316,-0.000946045,-0.00146484,-0.00180054,-0.000610352,-6.10352e-05,-0.00128174,-0.00189209,-0.00100708,-0.000610352,-0.000610352,-0.0012207,-0.00195312,-0.00161743,-0.000793457,-0.000335693,-0.00061...
2a075230a3b89543f325c70e755d2a594fc636b45e535bf2df07335b699b66d8
grame-cncm/GeekBagatelles
freunde_1_fois_baryton_waveform.dsp
freunde_1_fois_baryton_0 = waveform{-0.000793457,-0.00253296,-0.0032959,-0.00238037,-0.0015564,-0.00128174,-0.000762939,-0.00146484,-0.00216675,-0.00210571,-0.00241089,-0.0032959,-0.00189209,-0.000152588,0.000213623,0.000701904,0.000488281,0.00125122,0.00219727,0.00247192,0.00335693,0.00448608,0.00427246,0.00463867,0.0...
https://raw.githubusercontent.com/grame-cncm/GeekBagatelles/d09ed1362a79707d1687ed92cf0482ced2509035/freunde_1_fois_baryton_waveform.dsp
faust
freunde_1_fois_baryton_0 = waveform{-0.000793457,-0.00253296,-0.0032959,-0.00238037,-0.0015564,-0.00128174,-0.000762939,-0.00146484,-0.00216675,-0.00210571,-0.00241089,-0.0032959,-0.00189209,-0.000152588,0.000213623,0.000701904,0.000488281,0.00125122,0.00219727,0.00247192,0.00335693,0.00448608,0.00427246,0.00463867,0.0...
2741670790f9f86af0a53289c78e851ee127868627f6563b539220cf76cc046f
grame-cncm/GeekBagatelles
freunde_baryton_waveform.dsp
freunde_baryton_0 = waveform{0.00219727,0.00296021,0.00280762,0.00234985,0.00186157,0.00140381,-0.000305176,-0.000793457,-0.000946045,-0.000793457,-0.00109863,-0.000152588,-0.000305176,-0.000610352,-0.000305176,-0.000793457,-0.00140381,-0.00125122,-0.000793457,-0.000793457,-0.0015564,-0.00140381,-0.00125122,-0.00201416...
https://raw.githubusercontent.com/grame-cncm/GeekBagatelles/d09ed1362a79707d1687ed92cf0482ced2509035/freunde_baryton_waveform.dsp
faust
freunde_baryton_0 = waveform{0.00219727,0.00296021,0.00280762,0.00234985,0.00186157,0.00140381,-0.000305176,-0.000793457,-0.000946045,-0.000793457,-0.00109863,-0.000152588,-0.000305176,-0.000610352,-0.000305176,-0.000793457,-0.00140381,-0.00125122,-0.000793457,-0.000793457,-0.0015564,-0.00140381,-0.00125122,-0.00201416...
c008da3fefe3ed031ef6455ae0e5049d5b1a16195e853dbd04a4a4006aff2026
grame-cncm/GameLAN
Atomicro.dsp
declare name "Atomicro"; declare author "Developpement Grame - CNCM par Elodie Rabibisoa et Romain Constant."; import("stdfaust.lib"); process = _ : *(0.5),fade_in : * : wr_index <: idelay_drywet,_ : select2(by_pass_delay); // max size of buffer to be recorded size = int(211680); // 4.8 seconds /*------------------...
https://raw.githubusercontent.com/grame-cncm/GameLAN/8d1dc26d709d721d27ec1156fbb66b03478f2529/atomicro/Atomicro.dsp
faust
max size of buffer to be recorded 4.8 seconds ------------------- Recording counter ------------------------ increment of 1 (max = size+1) while record > 0 : --------------------- Fade in / Fade out ----------------------- --------------------- Read/Write buffer -------------------------- switch between normal and ...
declare name "Atomicro"; declare author "Developpement Grame - CNCM par Elodie Rabibisoa et Romain Constant."; import("stdfaust.lib"); process = _ : *(0.5),fade_in : * : wr_index <: idelay_drywet,_ : select2(by_pass_delay); rec_counter = (0):+~(+(1): * (record)): min(size); record = checkbox ("h:[0]/Record"); ti...
b86e99668bfb63b0ca34cd108b89a56548e0eafec072a10fd642ae22f2b68ff1
grame-cncm/GameLAN
Sinusoide.dsp
declare name "Sinusoide"; declare author "Developpement Grame - CNCM par Elodie Rabibisoa et Romain Constant."; import ("stdfaust.lib"); process = mode_switch : os.osc * 0.333 * volume <: sinus_reverb,_ : dry_wet <: limiter :>_ * on_off; on_off = checkbox("[1]ON / OFF"); freq_slide = vslider("Slide [unit:Hz][acc:0 0...
https://raw.githubusercontent.com/grame-cncm/GameLAN/8d1dc26d709d721d27ec1156fbb66b03478f2529/sinusoide/Sinusoide.dsp
faust
Default mode = slide (0) ----------------- Frequencies --------------------// ----------------- Limiter -----------------------// ------------------ Reverb ----------------------//
declare name "Sinusoide"; declare author "Developpement Grame - CNCM par Elodie Rabibisoa et Romain Constant."; import ("stdfaust.lib"); process = mode_switch : os.osc * 0.333 * volume <: sinus_reverb,_ : dry_wet <: limiter :>_ * on_off; on_off = checkbox("[1]ON / OFF"); freq_slide = vslider("Slide [unit:Hz][acc:0 0...
7385675edb060a12d4db66cd8195700b9317081d2da03d21396afe6a53d47feb
tomara-x/magi
cmp.dsp
//skinning cats for funzies if1 = _,_,_ : (_ != 0.0) , ro.cross(2) : select2 : _; if2 = (_ == 0.0),_,_ : select2; if3(cond,then,else) = select2((cond == 0.0),then,else); //comparator distortion cmpdst(in,op,thr) = op(in,thr); // process = cmpdst(_,>,0.1);
https://raw.githubusercontent.com/tomara-x/magi/bcf22a4ef23899cd8ce3bf5e08e374994907f81a/practice/cmp.dsp
faust
skinning cats for funzies comparator distortion process = cmpdst(_,>,0.1);
if1 = _,_,_ : (_ != 0.0) , ro.cross(2) : select2 : _; if2 = (_ == 0.0),_,_ : select2; if3(cond,then,else) = select2((cond == 0.0),then,else); cmpdst(in,op,thr) = op(in,thr);
7d863baebc6c3d85f874a3814d7cdf49b884d5d4f0df34b11f0ec759c5430b09
anwaldt/sound_synthesis_faust
delay_example.dsp
// delay_example.dsp import("stdfaust.lib"); // get the sample rate SR = fconstant(int fSamplingFreq, <math.h>); delay = hslider("Delay[samples]",0, 0, 10000, 1); sig = os.lf_saw(1); process = sig <: _,(_ , delay : @);
https://raw.githubusercontent.com/anwaldt/sound_synthesis_faust/8b6ac5493e616b258416d9140991f0161ab6b391/faust/Basics/delay_example.dsp
faust
delay_example.dsp get the sample rate
import("stdfaust.lib"); SR = fconstant(int fSamplingFreq, <math.h>); delay = hslider("Delay[samples]",0, 0, 10000, 1); sig = os.lf_saw(1); process = sig <: _,(_ , delay : @);
94ab1b6f31a764a27bd2e4fd44ebacc1274d114a32f337aa466cf734bf1eab08
anwaldt/sound_synthesis_faust
white_tone.dsp
// white_tone.dsp // // Henrik von Coler // 2021-07-04 import("all.lib"); // Control parameters: freq = hslider("freq Hz", 50, 20, 1000, 1) : si.smoo; // Hz gate = button("gate"); // processing elements for excitation: diffgtz(x) = (x-x') > 0; decay(n,x) = x - (x>0)/n; release(n) = + ~ decay(n...
https://raw.githubusercontent.com/anwaldt/sound_synthesis_faust/6fc959e4e45701a56a44a309fbf2f7df0dfe8aee/faust/Physical/karplus_strong/white_tone.dsp
faust
white_tone.dsp Henrik von Coler 2021-07-04 Control parameters: Hz processing elements for excitation: Resonator: processing function:
import("all.lib"); gate = button("gate"); diffgtz(x) = (x-x') > 0; decay(n,x) = x - (x>0)/n; release(n) = + ~ decay(n); trigger(n) = diffgtz : release(n) : > (0.0); P = SR/freq; resonator = (+ : delay(4096, P) * gate) ~ _; process = noise : *(gate : trigger(P)): resonator <: _,_;
48e18ecfb66868472c9c192f7a881a9a70fd40100308867eaec87bb419c8492f
anwaldt/sound_synthesis_faust
unit_delay.dsp
// delay_example.dsp import("stdfaust.lib"); // get the sample rate SR = fconstant(int fSamplingFreq, <math.h>); delay = hslider("Delay[samples]",0, 0, 10000, 1); sig = os.lf_rawsaw(1); process = sig;
https://raw.githubusercontent.com/anwaldt/sound_synthesis_faust/6fc959e4e45701a56a44a309fbf2f7df0dfe8aee/faust/Basics/unit_delay.dsp
faust
delay_example.dsp get the sample rate
import("stdfaust.lib"); SR = fconstant(int fSamplingFreq, <math.h>); delay = hslider("Delay[samples]",0, 0, 10000, 1); sig = os.lf_rawsaw(1); process = sig;
1f8e132792fae7b92b3e87d5a51230bfc35d3b208decd0d40962be06be291e8c
anwaldt/sound_synthesis_faust
parallel_example.dsp
import("stdfaust.lib"); freq = hslider("Cutoff Frequency",100, 10, 1000, 0.001); sig1 = os.square(50); sig2 = os.square(70); filt = fi.lowpass(5,freq); process = (sig1:filt),(sig2:filt);
https://raw.githubusercontent.com/anwaldt/sound_synthesis_faust/706c5eec4114ec925e7d3b46f3a353886e956fde/faust/Basics/parallel_example.dsp
faust
import("stdfaust.lib"); freq = hslider("Cutoff Frequency",100, 10, 1000, 0.001); sig1 = os.square(50); sig2 = os.square(70); filt = fi.lowpass(5,freq); process = (sig1:filt),(sig2:filt);
f261f5f0235fabb695af6c634b5b4cb78813f3f5d75f8351b9e2f1cdb84261ce
anwaldt/sound_synthesis_faust
exponential-triggered.dsp
// exponential.dsp // // Additive synthesizer with // exponential spectral decay // // - triggered // - // - stereo output // // Henrik von Coler // 2020-05-12 import("stdfaust.lib"); // define a fundamental frequency f0 = hslider("FREQ", 100, 0.1, 1000, 0.1); // define the number of partials n_partial = 50; ...
https://raw.githubusercontent.com/anwaldt/sound_synthesis_faust/05d4f55b2d064f63cfc0c04403c9f9cb688ba023/faust/Additive/exponential_triggered/exponential-triggered.dsp
faust
exponential.dsp Additive synthesizer with exponential spectral decay - triggered - - stereo output Henrik von Coler 2020-05-12 define a fundamental frequency define the number of partials control the splitting of partials over time partial function arguments global gain envelope spectral slope is...
import("stdfaust.lib"); f0 = hslider("FREQ", 100, 0.1, 1000, 0.1); n_partial = 50; trigger = button("Trigger"); slope = hslider("Slope", 1, 0.1, 7, 0.02); slope_release = hslider("Slope Release", 1, 0, 2, 0.01); amp_release = hslider("AMP Release",0.5,0.01,5,0.01); split = hslider("Freque...
ed7ad592da974e234ebfc60d4ae266e1033276a97fd29db074a27ec16b0110eb
anwaldt/sound_synthesis_faust
karplus_strong.dsp
// karplus_strong.dsp // // Slightly modified version of the // Karplus-Strong plucked string algorithm. // // see: 'Making Virtual Electric Guitars and Associated Effects Using Faust' // (Smith, ) // // - one-pole lowpass in the feedback // // Henrik von Coler // 2020-06-07 import("all.lib"); ///////////////////...
https://raw.githubusercontent.com/anwaldt/sound_synthesis_faust/05d4f55b2d064f63cfc0c04403c9f9cb688ba023/faust/Physical/karplus_strong/karplus_strong.dsp
faust
karplus_strong.dsp Slightly modified version of the Karplus-Strong plucked string algorithm. see: 'Making Virtual Electric Guitars and Associated Effects Using Faust' (Smith, ) - one-pole lowpass in the feedback Henrik von Coler 2020-06-07 /////////////////////////////////////////////////////////////////...
import("all.lib"); initial_filter = hslider("initial_filter Hz",1000,10,10000,1) : si.smoo; lop = hslider("lop Hz",1000,10,10000,1) : si.smoo; level = hslider("level", 1, 0, 10, 0.01); gate = button("gate"); gain = hslider("gain", 1, 0, 1, 0.01); diffgtz(x) = (x-x') > 0; decay...
6e15d255e31a652f8ed05c8434cdd7b30247171d7b46f62c97168cdb8cdf3d13
anwaldt/sound_synthesis_faust
waveguide_input.dsp
// waveguide_input.dsp // // waveguide with excitation by input signal // // - one-pole lowpass termination // // Henrik von Coler // 2020-11-19 import("all.lib"); // use '(pm.)l2s' to calculate number of samples // from length in meters: segment(maxLength,length) = waveguide(nMax,n) with{ nMax = maxLength : l2...
https://raw.githubusercontent.com/anwaldt/sound_synthesis_faust/05d4f55b2d064f63cfc0c04403c9f9cb688ba023/faust/Physical/waveguide_continuous/waveguide_input.dsp
faust
waveguide_input.dsp waveguide with excitation by input signal - one-pole lowpass termination Henrik von Coler 2020-11-19 use '(pm.)l2s' to calculate number of samples from length in meters: one lowpass terminator one gain terminator with control a simple allpass (Smith Paper) another allpass waveguide c...
import("all.lib"); segment(maxLength,length) = waveguide(nMax,n) with{ nMax = maxLength : l2s; n = length : l2s/2; }; fc = hslider("lowpass",1000,10,10000,1); rt = rTermination(basicBlock,*(-1) : si.smooth(1.0-2*(fc/ma.SR))); gain = hslider("gain",0.99,0,1,0.01); lt = lTermination(*(-1)* gain,basicBlock...
6147e4a284d88dfa471944644780605d21b9efd1066159ae50373d8f52149098
anwaldt/sound_synthesis_faust
additive_1.dsp
import("music.lib"); import("filter.lib"); freq = hslider("freq",300,20,2000,0.01) : smooth(0.999); gain = hslider("gain",0.3,0,1,0.01) : smooth(0.999); t = hslider("attRel (s)",0.1,0.001,2,0.001); gate = button("gate") : smooth(tau2pole(t)); process = osc(freq),osc(freq*2),osc(freq*3) :> /(3) : *(gain)*gate;
https://raw.githubusercontent.com/anwaldt/sound_synthesis_faust/05d4f55b2d064f63cfc0c04403c9f9cb688ba023/faust/Additive/additive_1.dsp
faust
import("music.lib"); import("filter.lib"); freq = hslider("freq",300,20,2000,0.01) : smooth(0.999); gain = hslider("gain",0.3,0,1,0.01) : smooth(0.999); t = hslider("attRel (s)",0.1,0.001,2,0.001); gate = button("gate") : smooth(tau2pole(t)); process = osc(freq),osc(freq*2),osc(freq*3) :> /(3) : *(gain)*gate;
cd64047b254bfcbf8ab1c4e1782128260e3f8397d3f0c1cca0b2e4df23e81b9f
anwaldt/sound_synthesis_faust
subtractive_triggered.dsp
// subtractive_triggered.dsp // // A four voice subtractive synth. // // - trigger // - control over f0, cutoff, resonance, gain // // Henrik von Coler // 2020-05-17 import("stdfaust.lib"); trigger0 = button("trigger0 [midi:key 0]"); trigger1= button("trigger1 [midi:key 1]"); trigger2= button("trigger2 [midi:key...
https://raw.githubusercontent.com/anwaldt/sound_synthesis_faust/05d4f55b2d064f63cfc0c04403c9f9cb688ba023/faust/Subtractive/subtractive_triggered.dsp
faust
subtractive_triggered.dsp A four voice subtractive synth. - trigger - control over f0, cutoff, resonance, gain Henrik von Coler 2020-05-17 //////////////////////////////////////////////////////////////////////// Define three 'module' functions ////////////////////////////////////////////////////////////////...
import("stdfaust.lib"); trigger0 = button("trigger0 [midi:key 0]"); trigger1= button("trigger1 [midi:key 1]"); trigger2= button("trigger2 [midi:key 2]"); trigger3= button("trigger3 [midi:key 3]"); vco(f0) = os.sawtooth(f0); vcf(c,r) = ve.moog_vcf(r,c); vca(x,gain) = gain * x; voice(inde...
a220899c1b110fc7b248d7ad590f560a893cd1b28ab3a0175a72758b49e8ded5
anwaldt/sound_synthesis_faust
sync_osc.dsp
// A simple oscillator with phase reset. // // Parameters // freq: set the frequency in Hz // reset: the phase is reset when going >= 0 // offset: the phase value on reset // // HvC // 2020-08-30 import("stdfaust.lib"); // some basic stuff sr = SR; twopi = 2.0*ma.PI; // define the waveform in table ts = 1<<16; /...
https://raw.githubusercontent.com/anwaldt/sound_synthesis_faust/05d4f55b2d064f63cfc0c04403c9f9cb688ba023/faust/Oscillators/sync_osc.dsp
faust
A simple oscillator with phase reset. Parameters freq: set the frequency in Hz reset: the phase is reset when going >= 0 offset: the phase value on reset HvC 2020-08-30 some basic stuff define the waveform in table size the wrapper function keeps a signal above 0 and below m (max) phase is used with offse...
import("stdfaust.lib"); sr = SR; twopi = 2.0*ma.PI; time = (+(1) ~ _ ) , 1 : - ; sinewave = ((float(time) / float(ts)) * twopi) : sin; wrapper(m,x) = select2(x<=m, (x-m):max(0), x); phase = os.hs_phasor(ts,freq,trig) : +(off_trig*ts) : wrapper(ts); sin_osc( freq) = rdtable(ts ,sinewave , int(phase)) ; trig...