_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
|
---|---|---|---|---|---|---|---|
633c6f940167087e82c350d247258764a2476858338dd291dbe7565236d99463 | madskjeldgaard/mkfaustplugins | OnePoleLPF.dsp | // By Dario Sanfilippo: https://www.dariosanfilippo.com/blog/2020/faust_recursive_circuits/
import("stdfaust.lib");
lowpass(cf, x) = b0 * x : + ~ *(-a1)
with {
b0 = 1 + a1;
a1 = exp(-w(cf)) * -1;
w(f) = 2 * ma.PI * f / ma.SR;
};
freq= vslider("freq",200,10,20000,1);
input = _;
process = lowpass(freq, input) : _;
| https://raw.githubusercontent.com/madskjeldgaard/mkfaustplugins/6b838d0b10832081b85a6cd921c564e89288b13e/plugins/OnePoleLPF/OnePoleLPF.dsp | faust | By Dario Sanfilippo: https://www.dariosanfilippo.com/blog/2020/faust_recursive_circuits/ | import("stdfaust.lib");
lowpass(cf, x) = b0 * x : + ~ *(-a1)
with {
b0 = 1 + a1;
a1 = exp(-w(cf)) * -1;
w(f) = 2 * ma.PI * f / ma.SR;
};
freq= vslider("freq",200,10,20000,1);
input = _;
process = lowpass(freq, input) : _;
|
06b78946879a7d17d92f94347516e71330e131f13575a3db2e57a0e0d849a84f | LucaSpanedda/Musical_Studies_of_Chaotic_Systems | Bernoulli_Shift.dsp | // Bernoulli Shift
import("stdfaust.lib");
// x = a number between 0 and 1. f = frequency of the motion
Bernoulli(x) = x : \(n,y).((y*2)+n)~_ : \(z).(z-int(z));
random(seed) = abs( (int(seed+1) * 1103515245)/2147483647.0 );
voices = 3;
process = par( i, voices, Bernoulli(random(i) * .0001) ); | https://raw.githubusercontent.com/LucaSpanedda/Musical_Studies_of_Chaotic_Systems/d8b78c011cc0b2b75f74643eba78306d6a3f92df/Bernoulli_Shift-plots/Bernoulli_Shift.dsp | faust | Bernoulli Shift
x = a number between 0 and 1. f = frequency of the motion |
import("stdfaust.lib");
Bernoulli(x) = x : \(n,y).((y*2)+n)~_ : \(z).(z-int(z));
random(seed) = abs( (int(seed+1) * 1103515245)/2147483647.0 );
voices = 3;
process = par( i, voices, Bernoulli(random(i) * .0001) ); |
3f1c70de343a6d5d3fc510cbd70bb0446d0cd0864e61bafbb1a144afb6bea603 | francescoganassin/FaustDSP-synths | ganasstring.dsp | import("stdfaust.lib");
a = hslider("base Hz",80,20,200,1);
string(j) = +~(de.fdelay4(maxDelLength,delLength-1) : dispersionFilter:*(damping))
with{
damping = hslider("damp",1,0.990,1,0.001);
freq = a*(1+j);
maxDelLength = 1024;
dispersionFilter = _ <: _,_' :> /(2);
delLength = ma.SR/freq;
};
nStrings = 12;
strum = hslider("strum",0,0,nStrings,1);
process = strum <: par(j,nStrings,(_ == j) : ba.impulsify : string(j)):>_,_; | https://raw.githubusercontent.com/francescoganassin/FaustDSP-synths/ef9eb3da660f4d53e631a12b7e4f63944c57f61c/ganasstring.dsp | faust | import("stdfaust.lib");
a = hslider("base Hz",80,20,200,1);
string(j) = +~(de.fdelay4(maxDelLength,delLength-1) : dispersionFilter:*(damping))
with{
damping = hslider("damp",1,0.990,1,0.001);
freq = a*(1+j);
maxDelLength = 1024;
dispersionFilter = _ <: _,_' :> /(2);
delLength = ma.SR/freq;
};
nStrings = 12;
strum = hslider("strum",0,0,nStrings,1);
process = strum <: par(j,nStrings,(_ == j) : ba.impulsify : string(j)):>_,_; |
|
a163d7acd4150da757e30c8cf08266cd8a47a24b2eebbc63d3627f5a56db2a1d | darkoverlordofdata/amp-sim-faust | amp_sim.dsp | declare name "amp-sim";
declare version "0.1";
declare author "darkoverlordofdata";
declare description "Amplifier demo application.";
declare license "MIT";
declare copyright "(c)DarkOverlordOfData 2021";
import("stdfaust.lib");
import("layout2.dsp");
process = _,_ : +
: component("amplifier.dsp")
: component("flanger.dsp")
: component("chorus.dsp")
: component("phaser.dsp")
: component("freeverb.dsp");
| https://raw.githubusercontent.com/darkoverlordofdata/amp-sim-faust/91696611bc64e94c5767a43aaa0478f260ca43a3/src/amp_sim.dsp | faust | declare name "amp-sim";
declare version "0.1";
declare author "darkoverlordofdata";
declare description "Amplifier demo application.";
declare license "MIT";
declare copyright "(c)DarkOverlordOfData 2021";
import("stdfaust.lib");
import("layout2.dsp");
process = _,_ : +
: component("amplifier.dsp")
: component("flanger.dsp")
: component("chorus.dsp")
: component("phaser.dsp")
: component("freeverb.dsp");
|
|
80c3c4252244a3f9ac511657f5bbb3a36d589b1c14b1e8977944ae6f639a2abc | dariosanfilippo/modified_van_der_pol | modified_van_der_pol.dsp | // =============================================================================
// Modified van der Pol complex generator
// =============================================================================
//
// Complex sound generator based on modified van der Pol equations.
// The model is structurally-stable through hyperbolic tangent function
// saturators and allows for parameters in unstable ranges to explore
// different dynamics. Furthermore, this model includes DC-blockers in the
// feedback paths to counterbalance a tendency towards fixed-point attractors
// – thus enhancing complex behaviours – and obtain signals suitable for audio.
// Besides the original parameters in the model, this system includes a
// saturating threshold determining the positive and negative bounds in the
// equations, while the output peaks are within the [-1.0; 1.0] range.
//
// The system can be triggered by an impulse or by a constant of arbitrary
// values for deterministic and reproducable behaviours. Alternatively,
// the oscillator can be fed with external inputs to be used as a nonlinear
// distortion unit.
//
// =============================================================================
import("stdfaust.lib");
declare name "Modified van der Pol complex generator";
declare author "Dario Sanfilippo";
declare copyright "Copyright (C) 2021 Dario Sanfilippo
<[email protected]>";
declare version "1.1";
declare license "GPL v3.0 license";
vanderpol(l, u, dt, x_0, y_0) = x_level(out * (x / l)) ,
y_level(out * (y / l))
letrec {
'x = fi.highpass(1, 10, tanh(l, (x_0 + x + (u * (x - x ^ 3 / 3 - y))
* dt)));
'y = fi.highpass(1, 10, tanh(l, (y_0 + y + (x / max(u, ma.EPSILON))
* dt)));
};
// tanh() saturator with adjustable saturating threshold
tanh(l, x) = l * ma.tanh(x / l);
// smoothing function for click-free parameter variations using
// a one-pole low-pass with a 20-Hz cut-off frequency.
smooth(x) = fi.pole(pole, x * (1.0 - pole))
with {
pole = exp(-2.0 * ma.PI * 20.0 / ma.SR);
};
// GUI parameters
x_level(x) = attach(x , abs(x) : ba.linear2db :
levels_group(hbargraph("[0]x[style:dB]", -60, 0)));
y_level(x) = attach(x , abs(x) : ba.linear2db :
levels_group(hbargraph("[1]y[style:dB]", -60, 0)));
z_level(x) = attach(x , abs(x) : ba.linear2db :
levels_group(hbargraph("[2]z[style:dB]", -60, 0)));
global_group(x) = vgroup("[1]Global", x);
levels_group(x) = hgroup("[2]Levels (dB)", x);
u = global_group(hslider("[4]u[scale:exp]", 1, ma.EPSILON, 200, .000001)
: smooth);
dt = global_group(
hslider("[5]dt (integration step)[scale:exp]", .001 , 0.000001, 1, .000001)
: smooth);
input(x) = global_group(nentry("[3]Input value", 1, 0, 10, .000001)
<: _ * impulse + _ * checkbox("[1]Constant inputs")
+ x * checkbox("[0]External inputs"));
impulse = button("[2]Impulse inputs") : ba.impulsify;
limit = global_group(
hslider("[6]Saturation limit[scale:exp]", 1, 1, 64, .000001) : smooth);
out = global_group(hslider("[7]Output scaling[scale:exp]", 0, 0, 1, .000001)
: smooth);
process(x1, x2) = vanderpol(limit, u, dt, input(x1), input(x2));
| https://raw.githubusercontent.com/dariosanfilippo/modified_van_der_pol/e9b81d297aa2e6167eec11793808246264ea3d0a/modified_van_der_pol.dsp | faust | =============================================================================
Modified van der Pol complex generator
=============================================================================
Complex sound generator based on modified van der Pol equations.
The model is structurally-stable through hyperbolic tangent function
saturators and allows for parameters in unstable ranges to explore
different dynamics. Furthermore, this model includes DC-blockers in the
feedback paths to counterbalance a tendency towards fixed-point attractors
– thus enhancing complex behaviours – and obtain signals suitable for audio.
Besides the original parameters in the model, this system includes a
saturating threshold determining the positive and negative bounds in the
equations, while the output peaks are within the [-1.0; 1.0] range.
The system can be triggered by an impulse or by a constant of arbitrary
values for deterministic and reproducable behaviours. Alternatively,
the oscillator can be fed with external inputs to be used as a nonlinear
distortion unit.
=============================================================================
tanh() saturator with adjustable saturating threshold
smoothing function for click-free parameter variations using
a one-pole low-pass with a 20-Hz cut-off frequency.
GUI parameters |
import("stdfaust.lib");
declare name "Modified van der Pol complex generator";
declare author "Dario Sanfilippo";
declare copyright "Copyright (C) 2021 Dario Sanfilippo
<[email protected]>";
declare version "1.1";
declare license "GPL v3.0 license";
vanderpol(l, u, dt, x_0, y_0) = x_level(out * (x / l)) ,
y_level(out * (y / l))
letrec {
'x = fi.highpass(1, 10, tanh(l, (x_0 + x + (u * (x - x ^ 3 / 3 - y))
* dt)));
'y = fi.highpass(1, 10, tanh(l, (y_0 + y + (x / max(u, ma.EPSILON))
* dt)));
};
tanh(l, x) = l * ma.tanh(x / l);
smooth(x) = fi.pole(pole, x * (1.0 - pole))
with {
pole = exp(-2.0 * ma.PI * 20.0 / ma.SR);
};
x_level(x) = attach(x , abs(x) : ba.linear2db :
levels_group(hbargraph("[0]x[style:dB]", -60, 0)));
y_level(x) = attach(x , abs(x) : ba.linear2db :
levels_group(hbargraph("[1]y[style:dB]", -60, 0)));
z_level(x) = attach(x , abs(x) : ba.linear2db :
levels_group(hbargraph("[2]z[style:dB]", -60, 0)));
global_group(x) = vgroup("[1]Global", x);
levels_group(x) = hgroup("[2]Levels (dB)", x);
u = global_group(hslider("[4]u[scale:exp]", 1, ma.EPSILON, 200, .000001)
: smooth);
dt = global_group(
hslider("[5]dt (integration step)[scale:exp]", .001 , 0.000001, 1, .000001)
: smooth);
input(x) = global_group(nentry("[3]Input value", 1, 0, 10, .000001)
<: _ * impulse + _ * checkbox("[1]Constant inputs")
+ x * checkbox("[0]External inputs"));
impulse = button("[2]Impulse inputs") : ba.impulsify;
limit = global_group(
hslider("[6]Saturation limit[scale:exp]", 1, 1, 64, .000001) : smooth);
out = global_group(hslider("[7]Output scaling[scale:exp]", 0, 0, 1, .000001)
: smooth);
process(x1, x2) = vanderpol(limit, u, dt, input(x1), input(x2));
|
062583316427015a484a9f0687b4fc6202e80b248094f8e409bba8bb07631799 | TobiasKozel/GuitarD | SideChainGate.dsp | import("stdfaust.lib");
thresh = vslider( "Threshold", -120, -120, 0, 0.1);
hold = vslider( "Hold", 0.1, 0.01, 1, 0.001);
att = vslider( "Attack", 0.01, 0.001, 1, 0.001);
rel = vslider( "Release", 0.1, 0.01, 1, 0.001);
gate_stereo(thresh,att,hold,rel,x,y, a, b) = ggm*x, ggm*y with {
ggm = ef.gate_gain_mono(thresh,att,hold,rel,abs(a)+abs(b));
};
process = gate_stereo(thresh, att, hold, rel); | https://raw.githubusercontent.com/TobiasKozel/GuitarD/80d5b8e6fa2eab99bbee80e6dacb5f0f482bbb52/src/nodes/gate_sidechain/SideChainGate.dsp | faust | import("stdfaust.lib");
thresh = vslider( "Threshold", -120, -120, 0, 0.1);
hold = vslider( "Hold", 0.1, 0.01, 1, 0.001);
att = vslider( "Attack", 0.01, 0.001, 1, 0.001);
rel = vslider( "Release", 0.1, 0.01, 1, 0.001);
gate_stereo(thresh,att,hold,rel,x,y, a, b) = ggm*x, ggm*y with {
ggm = ef.gate_gain_mono(thresh,att,hold,rel,abs(a)+abs(b));
};
process = gate_stereo(thresh, att, hold, rel); |
|
aad53be7b0d20e2ca6ff423d342555d3cc14e645b62be9945696b4baaab72306 | dxinteractive/mosfez-faust-dsp | sawmidi.dsp | import("stdfaust.lib");
freq = hslider("freq",200,50,1000,0.01);
gain = hslider("gain",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; | https://raw.githubusercontent.com/dxinteractive/mosfez-faust-dsp/a2d7029a6d7ebe31e5bce808c3bc225420426984/test-nodejs/sawmidi.dsp | faust | import("stdfaust.lib");
freq = hslider("freq",200,50,1000,0.01);
gain = hslider("gain",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; |
|
b286184b2b43bfe015abdcab830919d48b45ebfe97a46228c8d13c30d92c25d9 | rmichon/cph-fall22 | smooth.dsp | import("stdfaust.lib");
onePole(a1) = _*(1-a1) : A~B
with{
A = +;
B = _*a1;
};
f = hslider("freq",200,50,1000,30) : onePole(0.999);
g = hslider("gain",1,0,1,0.01) : onePole(0.999);
process = os.osc(f)*g ;
| https://raw.githubusercontent.com/rmichon/cph-fall22/9a0ec39a536e259faf90639d8fd4bbcc6ef082c3/code/tuesday/smooth.dsp | faust | import("stdfaust.lib");
onePole(a1) = _*(1-a1) : A~B
with{
A = +;
B = _*a1;
};
f = hslider("freq",200,50,1000,30) : onePole(0.999);
g = hslider("gain",1,0,1,0.01) : onePole(0.999);
process = os.osc(f)*g ;
|
|
6ae98a05fb83878fa30edef264bb07225f12c9838fa4b76548a868ae93c4d607 | LogicPsycho/Masterarbeit_Dorner_Data | case_study.dsp | import("stdfaust.lib");
j = component("apJ.dsp");
v = component("apV.dsp");
b = component("apB.dsp");
e = component("apE.dsp");
g = component("apG.dsp");
k = component("apK.dsp");
process = _:(+:j : @(101))~_; | https://raw.githubusercontent.com/LogicPsycho/Masterarbeit_Dorner_Data/164a2c9aa1a400b75e583c7bc3fdea1bcbbe59cc/Faust/case_study.dsp | faust | import("stdfaust.lib");
j = component("apJ.dsp");
v = component("apV.dsp");
b = component("apB.dsp");
e = component("apE.dsp");
g = component("apG.dsp");
k = component("apK.dsp");
process = _:(+:j : @(101))~_; |
|
e9b25e5b09122ad884449ad75c53a335d74009f328fc1b7fd5e2761e92c076d1 | LouisLalay/Traitement-du-Signal | moog.dsp | import("stdfaust.lib");
// Constants
// Sampling rate
fs = ma.SR;
ts = 1/fs;
// Cutoff frequency
fc = hslider("Cutoff", 600, 100, 5000, 0.1);
// Normalized pulsation
nu = fc*2*ma.PI*ts;
// One-layer filter
// Linear kernel
F1 = *(nu/(1+nu)): +~*(1/(1+nu));
// Third order kernel
t3 = -1/3;
F3 = _<: F1 ,( _ <: (F1 : ^(3) : *(-1)), ^(3) : + : *(t3) : F1) : +;
// module used each time
M(u1, u3) = F1(u1), F1(u1^3-F1(u1)^3+u3);
M2 = ((_<:(F1, (_^(3), F1^3:>-))), _):_,((_,_):>+:F1);
M3 = (((_<:(((F1<:(_,^(3)))),^(3))):_,((_,_):>-)),_):_,((_,_):>+:F1);
process4 = _,((_,_):>+);
S(u1, u3) = u1 + t3*u3;
S2 = (_,*(t3)):>+;
// four layers filter
H = _,0:M:M:M:M:S;
phaser(f) = ((f/fs):(+:fmod(_,1))~_);
sawtooth(f) = phaser(f) - 0.5;
square(f) = (sawtooth(f) > 0) - 0.5;
drive = hslider("Drive", 1, 1, 100, 0.1);
freq = hslider("Frequency", 150, 50, 5000, 0.1);
delta = hslider("Delta", 1, 0, 10, 0.01);
gain = hslider("Gain", 0, 0, 10, 0.01);
signal = (square(freq)+square(freq+delta)) / 2;
moog = gain * drive * signal: H / drive;
process = moog;
| https://raw.githubusercontent.com/LouisLalay/Traitement-du-Signal/b91385d576141a63051f64bfc7f956170e7b40e8/Volterra/TD%20Moog/moog-mdoc/src/moog.dsp | faust | Constants
Sampling rate
Cutoff frequency
Normalized pulsation
One-layer filter
Linear kernel
Third order kernel
module used each time
four layers filter | import("stdfaust.lib");
fs = ma.SR;
ts = 1/fs;
fc = hslider("Cutoff", 600, 100, 5000, 0.1);
nu = fc*2*ma.PI*ts;
F1 = *(nu/(1+nu)): +~*(1/(1+nu));
t3 = -1/3;
F3 = _<: F1 ,( _ <: (F1 : ^(3) : *(-1)), ^(3) : + : *(t3) : F1) : +;
M(u1, u3) = F1(u1), F1(u1^3-F1(u1)^3+u3);
M2 = ((_<:(F1, (_^(3), F1^3:>-))), _):_,((_,_):>+:F1);
M3 = (((_<:(((F1<:(_,^(3)))),^(3))):_,((_,_):>-)),_):_,((_,_):>+:F1);
process4 = _,((_,_):>+);
S(u1, u3) = u1 + t3*u3;
S2 = (_,*(t3)):>+;
H = _,0:M:M:M:M:S;
phaser(f) = ((f/fs):(+:fmod(_,1))~_);
sawtooth(f) = phaser(f) - 0.5;
square(f) = (sawtooth(f) > 0) - 0.5;
drive = hslider("Drive", 1, 1, 100, 0.1);
freq = hslider("Frequency", 150, 50, 5000, 0.1);
delta = hslider("Delta", 1, 0, 10, 0.01);
gain = hslider("Gain", 0, 0, 10, 0.01);
signal = (square(freq)+square(freq+delta)) / 2;
moog = gain * drive * signal: H / drive;
process = moog;
|
5863bdf8083d058335a441f9e6b044d7c3724806a031ff6a9d42a514dae142a7 | grame-cncm/GameLAN | DroneLAN.dsp | declare name "DroneLAN";
declare author "Developpement Grame - CNCM par Elodie Rabibisoa et Romain Constant.";
import ("stdfaust.lib");
// 2 drones :
process = par(i, 2, (multi(i) :> _* (select_drone == i))) :>_ * on_off <:_,_;
select_drone = hslider("[1]Drones[style:radio{'1':0;'2':1}]", 0, 0, 1, 1);
on_off = checkbox("[0]ON / OFF");
// 4 sounds per drone :
multi(N) = par(i, 4, so.loop(drone(N), i) *(0.25) * volume(i));
drone(0) = soundfile("Drone_1 [url:{'Alonepad_reverb_stereo_instru1.flac'; 'DRONEpad_test_stereo_instru1.flac'; 'rain_full_stereo_instru1.flac'; 'gouttes_eau_mono_instru1.flac'}]", 1);
drone(1) = soundfile("Drone_2 [url:{'Drone_C_filter_stereo_instru2.flac'; 'Pad_C_tremolo_stereo_instru2.flac'; 'Pedale_C_filter_stereo_instru2.flac'; 'string_freeze_stereo_instru2.flac'}]", 1);
volume(0) = hslider("Volume 0 [acc:0 0 0 0 10][hidden:1]", 0, 0, 1, 0.001) : fi.lowpass(1, 1);
volume(1) = hslider("Volume 1 [acc:0 1 -10 0 0][hidden:1]", 0, 0, 1, 0.001) : fi.lowpass(1, 1);
volume(2) = hslider("Volume 2 [acc:1 0 0 0 10][hidden:1]", 0, 0, 1, 0.001) : fi.lowpass(1, 1);
volume(3) = hslider("Volume 3 [acc:1 1 -10 0 0][hidden:1]", 0, 0, 1, 0.001) : fi.lowpass(1, 1);
| https://raw.githubusercontent.com/grame-cncm/GameLAN/8d1dc26d709d721d27ec1156fbb66b03478f2529/drone/DroneLAN.dsp | faust | 2 drones :
4 sounds per drone : | declare name "DroneLAN";
declare author "Developpement Grame - CNCM par Elodie Rabibisoa et Romain Constant.";
import ("stdfaust.lib");
process = par(i, 2, (multi(i) :> _* (select_drone == i))) :>_ * on_off <:_,_;
select_drone = hslider("[1]Drones[style:radio{'1':0;'2':1}]", 0, 0, 1, 1);
on_off = checkbox("[0]ON / OFF");
multi(N) = par(i, 4, so.loop(drone(N), i) *(0.25) * volume(i));
drone(0) = soundfile("Drone_1 [url:{'Alonepad_reverb_stereo_instru1.flac'; 'DRONEpad_test_stereo_instru1.flac'; 'rain_full_stereo_instru1.flac'; 'gouttes_eau_mono_instru1.flac'}]", 1);
drone(1) = soundfile("Drone_2 [url:{'Drone_C_filter_stereo_instru2.flac'; 'Pad_C_tremolo_stereo_instru2.flac'; 'Pedale_C_filter_stereo_instru2.flac'; 'string_freeze_stereo_instru2.flac'}]", 1);
volume(0) = hslider("Volume 0 [acc:0 0 0 0 10][hidden:1]", 0, 0, 1, 0.001) : fi.lowpass(1, 1);
volume(1) = hslider("Volume 1 [acc:0 1 -10 0 0][hidden:1]", 0, 0, 1, 0.001) : fi.lowpass(1, 1);
volume(2) = hslider("Volume 2 [acc:1 0 0 0 10][hidden:1]", 0, 0, 1, 0.001) : fi.lowpass(1, 1);
volume(3) = hslider("Volume 3 [acc:1 1 -10 0 0][hidden:1]", 0, 0, 1, 0.001) : fi.lowpass(1, 1);
|
35d0516119f91f17a82088733bf7d7d88e7771a0004bba12ef75b11b11fee370 | rmichon/cph-fall22 | peak-eq.dsp | import("stdfaust.lib");
N = 10;
peakEqualizer = seq(i,N,hgroup("main",myPeakEq(i)))
with{
myPeakEq(j) = fi.peak_eq(vslider("level%j",0,-90,12,0.01),1000,500);
};
process = peakEqualizer;
| https://raw.githubusercontent.com/rmichon/cph-fall22/2b19e4b83990eefb571c0a061b3e6c58ed928ef1/code/tuesday/peak-eq.dsp | faust | import("stdfaust.lib");
N = 10;
peakEqualizer = seq(i,N,hgroup("main",myPeakEq(i)))
with{
myPeakEq(j) = fi.peak_eq(vslider("level%j",0,-90,12,0.01),1000,500);
};
process = peakEqualizer;
|
|
61cc53cff89ef84c32d34441fb35e9431b1771ee07b78e81bea6de9c8acd16b5 | oshibka404/synt | global_envelope.dsp | import("stdfaust.lib");
cc = library("midi_controls.dsp");
attackSlider = vgroup("Envelope", hslider("Attack", .01, 0.01, 10, .1));
decaySlider = vgroup("Envelope", hslider("Decay", 1, 0.1, 10, .1));
sustainSlider = vgroup("Envelope", hslider("Sustain", .5, .01, 1, .01));
releaseSlider = vgroup("Envelope", hslider("Release", .5, .01, 1, .01));
process = en.adsr(
attackSlider,
decaySlider,
sustainSlider,
releaseSlider,
cc.gate
) * cc.gain : si.smoo;
| https://raw.githubusercontent.com/oshibka404/synt/37f54d7d26752efb66baab79cbba2d4044a9e295/faust/global_envelope.dsp | faust | import("stdfaust.lib");
cc = library("midi_controls.dsp");
attackSlider = vgroup("Envelope", hslider("Attack", .01, 0.01, 10, .1));
decaySlider = vgroup("Envelope", hslider("Decay", 1, 0.1, 10, .1));
sustainSlider = vgroup("Envelope", hslider("Sustain", .5, .01, 1, .01));
releaseSlider = vgroup("Envelope", hslider("Release", .5, .01, 1, .01));
process = en.adsr(
attackSlider,
decaySlider,
sustainSlider,
releaseSlider,
cc.gate
) * cc.gain : si.smoo;
|
|
f0f2adb7137785df2d90b6a782dbaa587bc18f2e17a8d6676e25213e32808ffc | s-e-a-m/1987-nono-risonanze-erranti | delaybank.dsp | import("stdfaust.lib");
import("../faust-libraries/seam.lib");
fbgroup(x) = hgroup("Feedback Delay", x);
fbgain1 = fbgroup(vslider("[01]Fb 1 [style:knob]", 0.,0.,1.,0.1) : si.smoo);
fbgain2 = fbgroup(vslider("[02]Fb 3 [style:knob]", 0.,0.,1.,0.1) : si.smoo);
fbgain3 = fbgroup(vslider("[03]Fb 5 [style:knob]", 0.,0.,1.,0.1) : si.smoo);
fbgain4 = fbgroup(vslider("[04]Fb 7 [style:knob]", 0.,0.,1.,0.1) : si.smoo);
D1 = ba.sec2samp(5.0);
D2 = ba.sec2samp(5.5);
D3 = ba.sec2samp(6.2);
D4 = ba.sec2samp(6.6);
D5 = ba.sec2samp(7.3);
D6 = ba.sec2samp(7.7);
D7 = ba.sec2samp(8.2);
D8 = ba.sec2samp(9.1);
process = delbank :> _,_;
| https://raw.githubusercontent.com/s-e-a-m/1987-nono-risonanze-erranti/8e4fb5d0fedbf0e6352aebc501f368ab61e960a0/src/delaybank.dsp | faust | import("stdfaust.lib");
import("../faust-libraries/seam.lib");
fbgroup(x) = hgroup("Feedback Delay", x);
fbgain1 = fbgroup(vslider("[01]Fb 1 [style:knob]", 0.,0.,1.,0.1) : si.smoo);
fbgain2 = fbgroup(vslider("[02]Fb 3 [style:knob]", 0.,0.,1.,0.1) : si.smoo);
fbgain3 = fbgroup(vslider("[03]Fb 5 [style:knob]", 0.,0.,1.,0.1) : si.smoo);
fbgain4 = fbgroup(vslider("[04]Fb 7 [style:knob]", 0.,0.,1.,0.1) : si.smoo);
D1 = ba.sec2samp(5.0);
D2 = ba.sec2samp(5.5);
D3 = ba.sec2samp(6.2);
D4 = ba.sec2samp(6.6);
D5 = ba.sec2samp(7.3);
D6 = ba.sec2samp(7.7);
D7 = ba.sec2samp(8.2);
D8 = ba.sec2samp(9.1);
process = delbank :> _,_;
|
|
46a62098d74dd1fbaacdacf619d6673cf8b12e465a34b2ff003387a059605e2a | HexHive/datAFLow | t5.dsp | import("stdfaust.lib");
// int(exp) are not simplified in route expressions, why ?
ok = route(4, 4, par(i, 4, (i*5)/4));
xbug = route(4, 4, par(i, 4, int((i*5)/4)));
bug = route(4, 4, 1, int(7/2));
process = bug; | https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/t5.dsp | faust | int(exp) are not simplified in route expressions, why ? | import("stdfaust.lib");
ok = route(4, 4, par(i, 4, (i*5)/4));
xbug = route(4, 4, par(i, 4, int((i*5)/4)));
bug = route(4, 4, 1, int(7/2));
process = bug; |
4069d6b3e9cc6b77498809c533de07965213a7d8757d011ff0291680e832817b | TobiasKozel/GuitarD | BandSplit.dsp | import("stdfaust.lib");
maxf = 20000;
minf = 20;
lowf = vslider("Low", 300, minf, maxf, 1) : si.smooth(0.999);
highf = (vslider("High", 2000, minf, maxf, 1), lowf: max) : si.smooth(0.999);
low(l, r) = l, r : sp.stereoize(fi.lowpass(3, lowf)) : _, _;
high(l, r) = l, r : sp.stereoize(fi.highpass(3, highf)) : _, _;
mid(l, r) = l, r : sp.stereoize(fi.lowpass(3, highf) : fi.highpass(3, lowf)) : _, _;
process = _, _ <: low, mid, high; | https://raw.githubusercontent.com/TobiasKozel/GuitarD/80d5b8e6fa2eab99bbee80e6dacb5f0f482bbb52/src/nodes/band_split/BandSplit.dsp | faust | import("stdfaust.lib");
maxf = 20000;
minf = 20;
lowf = vslider("Low", 300, minf, maxf, 1) : si.smooth(0.999);
highf = (vslider("High", 2000, minf, maxf, 1), lowf: max) : si.smooth(0.999);
low(l, r) = l, r : sp.stereoize(fi.lowpass(3, lowf)) : _, _;
high(l, r) = l, r : sp.stereoize(fi.highpass(3, highf)) : _, _;
mid(l, r) = l, r : sp.stereoize(fi.lowpass(3, highf) : fi.highpass(3, lowf)) : _, _;
process = _, _ <: low, mid, high; |
|
3907ea0bdf975d67a89860e81f0970f78d6ff213bf23b3c7c4d3258d0b4cb9d1 | rmichon/cph-fall22 | sine.dsp | import("stdfaust.lib");
phasor(freq) = (A~B)
with{
delta = freq/ma.SR;
A = _;
B = (_+delta) : ma.frac;
};
freq = hslider("freq",440,50,2000,0.01);
sine(freq) = phasor(freq)*2*ma.PI : sin;
process = sine(freq);
| https://raw.githubusercontent.com/rmichon/cph-fall22/9a0ec39a536e259faf90639d8fd4bbcc6ef082c3/code/tuesday/sine.dsp | faust | import("stdfaust.lib");
phasor(freq) = (A~B)
with{
delta = freq/ma.SR;
A = _;
B = (_+delta) : ma.frac;
};
freq = hslider("freq",440,50,2000,0.01);
sine(freq) = phasor(freq)*2*ma.PI : sin;
process = sine(freq);
|
|
102be35e9c7899d7266eafe9524cbb178fc5a8e85df40a61f57062314993ec95 | rmichon/cph-fall22 | karplus.dsp | import("stdfaust.lib");
string(freq,fdbk) = A~B
with{
dSamp = ma.SR/freq - 1.5;
A = +;
B = de.fdelay4(ma.SR,dSamp)*fdbk : fi.lowpass(3,12000);
};
process = button("gate") : ba.impulsify : string(1000,0.99) ;
| https://raw.githubusercontent.com/rmichon/cph-fall22/9a0ec39a536e259faf90639d8fd4bbcc6ef082c3/code/tuesday/karplus.dsp | faust | import("stdfaust.lib");
string(freq,fdbk) = A~B
with{
dSamp = ma.SR/freq - 1.5;
A = +;
B = de.fdelay4(ma.SR,dSamp)*fdbk : fi.lowpass(3,12000);
};
process = button("gate") : ba.impulsify : string(1000,0.99) ;
|
|
6b330e2dd50a1f702349e1b7ce9faad6ef43cd4d8088035626f0b024a19e63fc | LogicPsycho/Masterarbeit_Dorner_Data | apB.dsp | import("stdfaust.lib");
gM = no.noise*0.9;
g = gM;
M = hslider("Delaytime",11,1,100,1);
t1 = ((1-g)/(1+g)):sqrt;
t2 = ((1+g)/(1-g)):sqrt;
del = @(M);
a = *(g)<:_,_;
b = del;
process = *(t1)<:(+,_<:a,_:_,_+_:ro.cross(2)<:b,_)~*(-1):+*(t2); | https://raw.githubusercontent.com/LogicPsycho/Masterarbeit_Dorner_Data/164a2c9aa1a400b75e583c7bc3fdea1bcbbe59cc/Faust/apB.dsp | faust | import("stdfaust.lib");
gM = no.noise*0.9;
g = gM;
M = hslider("Delaytime",11,1,100,1);
t1 = ((1-g)/(1+g)):sqrt;
t2 = ((1+g)/(1-g)):sqrt;
del = @(M);
a = *(g)<:_,_;
b = del;
process = *(t1)<:(+,_<:a,_:_,_+_:ro.cross(2)<:b,_)~*(-1):+*(t2); |
|
e6f1eb5443f291b2c48bd2b7c2f15a56562022eb696167cba47f507eb910a8e2 | baconpaul/faust-toy-surge-osc | basicOsc.dsp | declare author "Bart Brouns";
declare license "GPLv3";
declare name "osc-example";
import("stdfaust.lib");
process(extFMSignal) = sineSquarePulse(freq+(extFMSignal * extFMDep))<:(_,_);
sineSquarePulse(FB) =
it.interpolate_linear(sinSquare,sine,square):clip
with {
sine = os.osc(f);
square = os.pulsetrain(f,width);
clip = _*drive:max(-1):min(1);
f = freq+(FM*FB);
};
freq = hslider ("[0]freq", 440, 27.5, 3520, 0.1) :si.smoo;
extFMDep = hslider ("[1]fmdepth", 0.0, 0.0, 1.0, 0.1 ) :si.smoo;
sinSquare = hslider ("[2]sinSquare", 0.5, 0, 1, 0.1) :si.smoo;
width = hslider ("[3]width", 0.5, 0, 1, 0.1) :si.smoo;
drive = hslider ("[4]drive", 1, 1, 100, 0.1) :si.smoo;
FM = hslider ("[5]FM", 0, 0, 100, 0.1) :si.smoo;
| https://raw.githubusercontent.com/baconpaul/faust-toy-surge-osc/97d0dfb79d27b97f3b062883ed2dee3222fa5da2/faust-code/basicOsc.dsp | faust | declare author "Bart Brouns";
declare license "GPLv3";
declare name "osc-example";
import("stdfaust.lib");
process(extFMSignal) = sineSquarePulse(freq+(extFMSignal * extFMDep))<:(_,_);
sineSquarePulse(FB) =
it.interpolate_linear(sinSquare,sine,square):clip
with {
sine = os.osc(f);
square = os.pulsetrain(f,width);
clip = _*drive:max(-1):min(1);
f = freq+(FM*FB);
};
freq = hslider ("[0]freq", 440, 27.5, 3520, 0.1) :si.smoo;
extFMDep = hslider ("[1]fmdepth", 0.0, 0.0, 1.0, 0.1 ) :si.smoo;
sinSquare = hslider ("[2]sinSquare", 0.5, 0, 1, 0.1) :si.smoo;
width = hslider ("[3]width", 0.5, 0, 1, 0.1) :si.smoo;
drive = hslider ("[4]drive", 1, 1, 100, 0.1) :si.smoo;
FM = hslider ("[5]FM", 0, 0, 100, 0.1) :si.smoo;
|
|
d16eed6c518f05c6d5b2b1a6d80589a78244b90d5f7cc37064df99e4bfd17694 | LucaSpanedda/Spanedda-PDlibraries | splicephasor.dsp | // FASORE SPLICE
//Importo la libreria
import("stdfaust.lib");
// Graphic User Interface ----------------------------------------
frequency = hslider("frequency",0,0,20000, 0.01);
freqscattering = hslider("freqscattering",0,0,20000, 0.01);
impulsesamps = hslider("samples",0,0,20000, 1);
variableseed = hslider("varseed",0,0,20000, 1);
// ---------------------------------------------------------------
/* Ora che abbiamo parlato molto della generazione di segnali
raccogliamo i dati esposti fino ad ora per generare un segnale
non convenzionale: un Fasore con dei Glitch interni controllati */
// VARIABLE SEED NOISE FUNCTION
// Ad ogni cambiamento del seed corrisponde un nuovo valore casuale
noise(seed) = vnoiseout
with{
// Remove integer values
decimalen(x)= x-int(x);
vnoiseout = (+(1457932343)~*(1103515245)) * (1+seed)
/ (2147483647.0) : decimalen;
};
// Remove int
decimale(x) = x-int(x);
// Standard phasor (with remove int)
phasor(f) = (f/ma.SR) : (+ : decimale) ~ _;
// only if phasor < 0.5 = 1 (when phasor end) then impulse
phasorif(f) = phasor(f) < 0.5;
impulse(samples) = (_ <: _, _@(1+samples) :> -) > 0;
// NOISE * IMPULSE : phasor reset = impulse (1 constant) * noise
pulse(f,samples,seed) = (phasorif(f) : impulse(samples)) * noise(seed);
// SCATTERING PHASOR
// regular impulse + 1 on the retroaction generate scatter
splicephasor(fphasor,fscatter,sampsdur,seed) =
( (fphasor/ma.SR) :
( + : _ *
(1 + (pulse(fscatter,sampsdur,seed)) ) : decimale
)~ _ );
// splicephasor(frequency,freqscattering,impulsesamps,variableseed)
process =
splicephasor(frequency,freqscattering,impulsesamps,variableseed);
| https://raw.githubusercontent.com/LucaSpanedda/Spanedda-PDlibraries/5b818fd8af0377d133505e240a8bf9de9ea05651/slll.pd-main/Linux_PD_Externals_FAUST/splicephasor.dsp | faust | FASORE SPLICE
Importo la libreria
Graphic User Interface ----------------------------------------
---------------------------------------------------------------
Ora che abbiamo parlato molto della generazione di segnali
raccogliamo i dati esposti fino ad ora per generare un segnale
non convenzionale: un Fasore con dei Glitch interni controllati
VARIABLE SEED NOISE FUNCTION
Ad ogni cambiamento del seed corrisponde un nuovo valore casuale
Remove integer values
Remove int
Standard phasor (with remove int)
only if phasor < 0.5 = 1 (when phasor end) then impulse
NOISE * IMPULSE : phasor reset = impulse (1 constant) * noise
SCATTERING PHASOR
regular impulse + 1 on the retroaction generate scatter
splicephasor(frequency,freqscattering,impulsesamps,variableseed) |
import("stdfaust.lib");
frequency = hslider("frequency",0,0,20000, 0.01);
freqscattering = hslider("freqscattering",0,0,20000, 0.01);
impulsesamps = hslider("samples",0,0,20000, 1);
variableseed = hslider("varseed",0,0,20000, 1);
noise(seed) = vnoiseout
with{
decimalen(x)= x-int(x);
vnoiseout = (+(1457932343)~*(1103515245)) * (1+seed)
/ (2147483647.0) : decimalen;
};
decimale(x) = x-int(x);
phasor(f) = (f/ma.SR) : (+ : decimale) ~ _;
phasorif(f) = phasor(f) < 0.5;
impulse(samples) = (_ <: _, _@(1+samples) :> -) > 0;
pulse(f,samples,seed) = (phasorif(f) : impulse(samples)) * noise(seed);
splicephasor(fphasor,fscatter,sampsdur,seed) =
( (fphasor/ma.SR) :
( + : _ *
(1 + (pulse(fscatter,sampsdur,seed)) ) : decimale
)~ _ );
process =
splicephasor(frequency,freqscattering,impulsesamps,variableseed);
|
2c24688c391accd12c8ac4112b14a16430193e4d3139c3866a07929b015a6661 | daniel-kelley/gac | bp_ui.dsp | import("stdfaust.lib");
in = hslider("bp",0,0,1,0.001) * 4;
s = ba.listInterp((1.0,0.0,0.0,0.0,0.0),in): hbargraph("[style:numerical]s(bp)",0,1);
t = ba.listInterp((0.0,1.0,0.0,0.0,0.0),in): hbargraph("[style:numerical]t(bp)",0,1);
a = ba.listInterp((0.0,0.0,1.0,0.0,0.0),in): hbargraph("[style:numerical]a(bp)",0,1);
q = ba.listInterp((0.0,0.0,0.0,1.0,1.0),in): hbargraph("[style:numerical]q(bp)",0,1);
d = ba.listInterp((0.5,0.5,0.5,0.5,1.0),in): hbargraph("[style:numerical]d(bp)",0,1);
process = s,t,a,q,d;
| https://raw.githubusercontent.com/daniel-kelley/gac/cdc00a3d467abb9c3f212ba9b60efe3df07e0385/test/bp_ui.dsp | faust | import("stdfaust.lib");
in = hslider("bp",0,0,1,0.001) * 4;
s = ba.listInterp((1.0,0.0,0.0,0.0,0.0),in): hbargraph("[style:numerical]s(bp)",0,1);
t = ba.listInterp((0.0,1.0,0.0,0.0,0.0),in): hbargraph("[style:numerical]t(bp)",0,1);
a = ba.listInterp((0.0,0.0,1.0,0.0,0.0),in): hbargraph("[style:numerical]a(bp)",0,1);
q = ba.listInterp((0.0,0.0,0.0,1.0,1.0),in): hbargraph("[style:numerical]q(bp)",0,1);
d = ba.listInterp((0.5,0.5,0.5,0.5,1.0),in): hbargraph("[style:numerical]d(bp)",0,1);
process = s,t,a,q,d;
|
|
55800d40957d42da57c1deff581c8f194fe18b6b5d6c41c537316c7d55979950 | jacktrip/jacktrip | volumedsp.dsp | declare name "volume";
declare version "1.0";
declare author "Matt Horton, adapted from GRAME";
declare license "MIT Style STK-4.2";
declare description "Volume Control Faust Plugin for JackTrip, based on Faust examples";
import("stdfaust.lib");
mute = checkbox("[1] Mute");
gain(v) = v : ba.db2linear : si.smoo : _;
gainVMute(v) = _ * gain(v), 0 : select2(mute) : _;
zeroCutoff(v) = _ , 0 : select2(v == -40) : _;
volume = hslider("[0] Volume", 0, -40, 0, 0.1);
process = _ <: vgroup("Volume Control", _ : gainVMute(volume) : zeroCutoff(volume));
| https://raw.githubusercontent.com/jacktrip/jacktrip/e96e250882dab25052225fdf7a88b6b1f77f5d07/faust-src/volumedsp.dsp | faust | declare name "volume";
declare version "1.0";
declare author "Matt Horton, adapted from GRAME";
declare license "MIT Style STK-4.2";
declare description "Volume Control Faust Plugin for JackTrip, based on Faust examples";
import("stdfaust.lib");
mute = checkbox("[1] Mute");
gain(v) = v : ba.db2linear : si.smoo : _;
gainVMute(v) = _ * gain(v), 0 : select2(mute) : _;
zeroCutoff(v) = _ , 0 : select2(v == -40) : _;
volume = hslider("[0] Volume", 0, -40, 0, 0.1);
process = _ <: vgroup("Volume Control", _ : gainVMute(volume) : zeroCutoff(volume));
|
|
0d31437345b388d9fc6e14e53e68f91966154d4a5a2c0163cb4f72060e783ab0 | jacktrip/jacktrip | meterdsp.dsp |
declare name "meter";
declare version "1.0";
declare author "Dominick Hing";
declare license "MIT Style STK-4.2";
declare description "VU Meter Faust Plugin for JackTrip";
// Originally modified from https://github.com/grame-cncm/faust/blob/master-dev/examples/analysis/meter.dsp
import("stdfaust.lib");
process = peakMeter
with {
round(n, x) = x
<: (ma.copysign(_, 1) : _ * (10 ^ n) <: int(_) , ma.frac : _, (_ >= 0.5) :> + : _ / (10 ^ n) ), _
: ma.copysign(_, _);
peakMeter = _ : max(ba.db2linear(-80), _) : ba.linear2db(_) : round(2, _);
};
| https://raw.githubusercontent.com/jacktrip/jacktrip/adb2dd778f890d4908aa87d0b8ba73089527b431/faust-src/meterdsp.dsp | faust | Originally modified from https://github.com/grame-cncm/faust/blob/master-dev/examples/analysis/meter.dsp |
declare name "meter";
declare version "1.0";
declare author "Dominick Hing";
declare license "MIT Style STK-4.2";
declare description "VU Meter Faust Plugin for JackTrip";
import("stdfaust.lib");
process = peakMeter
with {
round(n, x) = x
<: (ma.copysign(_, 1) : _ * (10 ^ n) <: int(_) , ma.frac : _, (_ >= 0.5) :> + : _ / (10 ^ n) ), _
: ma.copysign(_, _);
peakMeter = _ : max(ba.db2linear(-80), _) : ba.linear2db(_) : round(2, _);
};
|
205f7d16a543de7ab11f9ca4600011c86fdc2c9f59e9868ee3a8be1e44c0bffc | dxinteractive/mosfez-faust-dsp | proto-microbend.dsp | import("stdfaust.lib");
q = hslider("q", 100.0, 0.1, 1000.0, 0.1);
gain = hslider("gain", 0.1, 0.0, 1.0, 0.1);
notelane(hz) = fi.resonhp(hz,q,gain) : an.amp_follower(0.1) : hbargraph("%hz", 0.0, 1.0);
each(hz) = notelane(hz);
process = _ <: par(i, 12, each(ba.midikey2hz(i + 69))) : maxvalue : _ <: _,_;
| https://raw.githubusercontent.com/dxinteractive/mosfez-faust-dsp/cc08e485a319f4ef89d8c55060a02c9f138ba9ad/proto-microbend.dsp | faust | import("stdfaust.lib");
q = hslider("q", 100.0, 0.1, 1000.0, 0.1);
gain = hslider("gain", 0.1, 0.0, 1.0, 0.1);
notelane(hz) = fi.resonhp(hz,q,gain) : an.amp_follower(0.1) : hbargraph("%hz", 0.0, 1.0);
each(hz) = notelane(hz);
process = _ <: par(i, 12, each(ba.midikey2hz(i + 69))) : maxvalue : _ <: _,_;
|
|
00e098b9ec869ca93bd75d4af9f926ff97cac8b6c60532c244f690e21de6f4cc | dxinteractive/mosfez-faust-dsp | mosfez-faust-volume.dsp | // mosfez-faust-volume.dsp
// A volume pedal test with Faust. Wizard: 3% CPU
// - Knob A controls volume from 0% to 100%.
import("stdfaust.lib");
volume = hslider("volume[OWL:A]",1.0,0.0,1.0,0.001);
fx = _ * volume * 3.0;
process = fx,fx;
| https://raw.githubusercontent.com/dxinteractive/mosfez-faust-dsp/3de3bbe6c4d495f04d4d7bc787223ba7a49cb4f3/mosfez-faust-volume.dsp | faust | mosfez-faust-volume.dsp
A volume pedal test with Faust. Wizard: 3% CPU
- Knob A controls volume from 0% to 100%. |
import("stdfaust.lib");
volume = hslider("volume[OWL:A]",1.0,0.0,1.0,0.001);
fx = _ * volume * 3.0;
process = fx,fx;
|
0cce84d2c636c44c6b5b60ca409f0174368b6ea3ff1222e907544f0f7443e581 | grame-cncm/GeekBagatelles | Part_DBpublic.dsp | declare name "Part_DBpublic";
declare version "0.3";
declare author "Christophe Lebreton";
declare license "BSD";
import("stdfaust.lib");
// PROCESS
process = D01b + D02b :*(gain)
with {
gain = hslider("gain_dB [acc:2 0 -8 -3 -0.5] [hidden:1]",0.5,0,1,0.001):fi.lowpass(1,1.5); //
};
// adjustment of smooth filter from accelerometers
lpfA = hslider("lpfA [hidden:1]",2,0.1,5,0.1);
// mapping level of each soundfiles
D01b = D_B_intermediaire * (hslider("d01b [acc:0 1 -1 0 1] [hidden:1]",0.5,0,1,0.001):fi.lowpass(1,lpfA));
D02b = D_B_principale * (hslider("d02b [acc:0 0 -1 0 1] [hidden:1]",0.5,0,1,0.001):fi.lowpass(1,lpfA));
// soundfiles
import("D_B_intermediaire_waveform.dsp");
import("D_B_principale_waveform.dsp");
| https://raw.githubusercontent.com/grame-cncm/GeekBagatelles/80290db00ab39e4a35d6b2449d996b910c9bb132/Part_DBpublic.dsp | faust | PROCESS
adjustment of smooth filter from accelerometers
mapping level of each soundfiles
soundfiles | declare name "Part_DBpublic";
declare version "0.3";
declare author "Christophe Lebreton";
declare license "BSD";
import("stdfaust.lib");
process = D01b + D02b :*(gain)
with {
};
lpfA = hslider("lpfA [hidden:1]",2,0.1,5,0.1);
D01b = D_B_intermediaire * (hslider("d01b [acc:0 1 -1 0 1] [hidden:1]",0.5,0,1,0.001):fi.lowpass(1,lpfA));
D02b = D_B_principale * (hslider("d02b [acc:0 0 -1 0 1] [hidden:1]",0.5,0,1,0.001):fi.lowpass(1,lpfA));
import("D_B_intermediaire_waveform.dsp");
import("D_B_principale_waveform.dsp");
|
94bda518ad97be54bd8016f794c29a49cb475a07bae3c5c10be75ffaee2e6179 | grame-cncm/GeekBagatelles | Part_DApublic.dsp | declare name "Part_DApublic";
declare version "0.3";
declare author "Christophe Lebreton";
declare license "BSD";
import("stdfaust.lib");
// PROCESS
process = D01a + D02a :*(gain)
with {
gain = hslider("gain_dB [acc:2 0 -8 -3 -0.5] [hidden:1]",0.5,0,1,0.001):fi.lowpass(1,1.5); //
};
// adjustment of smooth filter from accelerometers
lpfA = hslider("lpfA [hidden:1]",2,0.1,5,0.1);
// mapping level of each soundfiles
D01a = D_A_intermedaire * (hslider("d01a [acc:0 1 -1 0 1] [hidden:1]",0.5,0,1,0.001):fi.lowpass(1,lpfA));
D02a = D_A_principale * (hslider("d02a [acc:0 0 -1 0 1] [hidden:1]",0.5,0,1,0.001):fi.lowpass(1,lpfA));
// soundfiles
import("D_A_intermedaire_waveform.dsp");
import("D_A_principale_waveform.dsp");
| https://raw.githubusercontent.com/grame-cncm/GeekBagatelles/d09ed1362a79707d1687ed92cf0482ced2509035/Part_DApublic.dsp | faust | PROCESS
adjustment of smooth filter from accelerometers
mapping level of each soundfiles
soundfiles | declare name "Part_DApublic";
declare version "0.3";
declare author "Christophe Lebreton";
declare license "BSD";
import("stdfaust.lib");
process = D01a + D02a :*(gain)
with {
};
lpfA = hslider("lpfA [hidden:1]",2,0.1,5,0.1);
D01a = D_A_intermedaire * (hslider("d01a [acc:0 1 -1 0 1] [hidden:1]",0.5,0,1,0.001):fi.lowpass(1,lpfA));
D02a = D_A_principale * (hslider("d02a [acc:0 0 -1 0 1] [hidden:1]",0.5,0,1,0.001):fi.lowpass(1,lpfA));
import("D_A_intermedaire_waveform.dsp");
import("D_A_principale_waveform.dsp");
|
95d5caa6ac7c686355bf96b43b41e0e8b7acb40266b16f9bac22bd04bc75a875 | HexHive/datAFLow | v4.dsp | // route visualisation test
import("stdfaust.lib");
R = 3;
r1(N,M) = ro.interleave(N,M); // time 2mn
r2(N,M) = route(N*M, N*M, par(i, N*M, (i+1, (i%N)*M + int(i/N) + 1))); // time 0.1s
process = r1(R,R); // time 2mn
//process = r2(R,R); // time 0.3s | https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/v4.dsp | faust | route visualisation test
time 2mn
time 0.1s
time 2mn
process = r2(R,R); // time 0.3s | import("stdfaust.lib");
R = 3;
|
e596a60722fd8273c5d08242cf111839d99e59a357bf7780fbb2bde28b4d3a58 | LucaSpanedda/Teensy-Euroshield_Patches | FAUST_Code.dsp | import("stdfaust.lib");
freq = nentry("freq",1,1,1024,1);
gain = nentry("gain",1,1,1024,1)/1024*10;
decimale(x) = x-int(x);
mixer(g) = _*(g)+_*(1-g);
datamoshosc(f,seed,samps,gainin) =
(f/ma.SR)
* gainin :
(+ : decimale :
_*(
(seed):(+ @(samps)~ *(1103515245))/2147483647.0)
* (1+(gainin/2))
)~_;
process =
datamoshosc(freq,12426538,freq,gain),
datamoshosc(freq,48423276,freq,gain); | https://raw.githubusercontent.com/LucaSpanedda/Teensy-Euroshield_Patches/50260726c40b0351f9c26a47553502b70ceb483e/0.60_Datamosh_Oscillator_FAUST/FAUST_Code.dsp | faust | import("stdfaust.lib");
freq = nentry("freq",1,1,1024,1);
gain = nentry("gain",1,1,1024,1)/1024*10;
decimale(x) = x-int(x);
mixer(g) = _*(g)+_*(1-g);
datamoshosc(f,seed,samps,gainin) =
(f/ma.SR)
* gainin :
(+ : decimale :
_*(
(seed):(+ @(samps)~ *(1103515245))/2147483647.0)
* (1+(gainin/2))
)~_;
process =
datamoshosc(freq,12426538,freq,gain),
datamoshosc(freq,48423276,freq,gain); |
|
afb57788cc46b3294e01cd64d50c0e9d7732e3e2907adda47b6fb50d61a44590 | TobiasKozel/GuitarD | Flanger.dsp | import("stdfaust.lib");
maxDelay = 0.01; // in ms
delayl = vslider("DelayL", 0.001, 0.001, maxDelay, 0.0001) * ma.SR : si.smooth(0.999);
delayr = vslider("DelayR", 0.001, 0.001, maxDelay, 0.0001) * ma.SR : si.smooth(0.999);
feedback = vslider("Feedback", 0, 0, 1, 0.001) * ma.SR : si.smooth(0.999);
process = pf.flanger_stereo(maxDelay * ma.SR, delayl, delayr, 1, feedback, 0); | https://raw.githubusercontent.com/TobiasKozel/GuitarD/80d5b8e6fa2eab99bbee80e6dacb5f0f482bbb52/src/nodes/flanger/Flanger.dsp | faust | in ms | import("stdfaust.lib");
delayl = vslider("DelayL", 0.001, 0.001, maxDelay, 0.0001) * ma.SR : si.smooth(0.999);
delayr = vslider("DelayR", 0.001, 0.001, maxDelay, 0.0001) * ma.SR : si.smooth(0.999);
feedback = vslider("Feedback", 0, 0, 1, 0.001) * ma.SR : si.smooth(0.999);
process = pf.flanger_stereo(maxDelay * ma.SR, delayl, delayr, 1, feedback, 0); |
98d941e86ba24592bd90a921cbc76feb8c019eb72a293efff6507905cebf9948 | rasmusnuko/FaustCode | localization.dsp | import("stdfaust.lib");
EAR(i) = _ <: (_ * bypass), gain * (bypass-1)*(co.compressor_mono(ratio, thresh, att, rel)) :> _
with{
bypass = checkbox("[0]BYPASS");
ratio = hslider("v:EARS/h:[0]Volume/[0]ratio[style:knob]", 10, 1, 30, 0.01) : si.smoo; // ratio in 1:value
thresh = hslider("v:EARS/h:[0]Volume/[1]threshold[style:knob]", -23, -30, 0, 0.01) : si.smoo; // threshold in value dB
gain = hslider("v:EARS/h:[0]Volume/[2]make up[style:knob]", 1, 0, 6, 0.01) : si.smoo; // gain as a scalar (* output)
att = 0.001 * hslider("v:EARS/h:[1]Speed/attack[style:knob]", 0.1, 0.1, 30, 0.1) : si.smoo; // attack in value sec
rel = 0.001 * hslider("v:EARS/h:[1]Speed/realease[style:knob]", 600, 0.100, 1000, 1) : si.smoo; // release in value sec
};
EARS(N) = par(i, N, EAR(i));
process = 0,_~+(1):soundfile("audio[url:{'basketball.flac'}]",2):!,!,_,_ : EARS(2);
| https://raw.githubusercontent.com/rasmusnuko/FaustCode/f58d7a5d35d28a644e73903ab530fcdce314dfd6/project/localization.dsp | faust | ratio in 1:value
threshold in value dB
gain as a scalar (* output)
attack in value sec
release in value sec | import("stdfaust.lib");
EAR(i) = _ <: (_ * bypass), gain * (bypass-1)*(co.compressor_mono(ratio, thresh, att, rel)) :> _
with{
bypass = checkbox("[0]BYPASS");
};
EARS(N) = par(i, N, EAR(i));
process = 0,_~+(1):soundfile("audio[url:{'basketball.flac'}]",2):!,!,_,_ : EARS(2);
|
a143cfc264a6dab66e4167830d74b039023f8b9e25c1fe0ea7e5495b4fc2ce0e | francescoganassin/FaustDSP-synths | ganassnoiz.dsp | import("stdfaust.lib");
am = carrier*modulator
with{
carrier = os.osc(carFreq);
modulator = os.osc(modFreq);
modFreq = hslider ("Modfreq[style:knob]",575,0.1,2000,30);
carFreq = hslider ("Carfreq[style:knob]",428,50,2000,30);
};
process = (os.triangle(200) + os.osc(203) + os.osc(51) + am + no.noise/4 + os.sawtooth(400)) * (os.triangle(100) + os.osc(101) + am + no.noise/6 )/4; | https://raw.githubusercontent.com/francescoganassin/FaustDSP-synths/ef9eb3da660f4d53e631a12b7e4f63944c57f61c/ganassnoiz.dsp | faust | import("stdfaust.lib");
am = carrier*modulator
with{
carrier = os.osc(carFreq);
modulator = os.osc(modFreq);
modFreq = hslider ("Modfreq[style:knob]",575,0.1,2000,30);
carFreq = hslider ("Carfreq[style:knob]",428,50,2000,30);
};
process = (os.triangle(200) + os.osc(203) + os.osc(51) + am + no.noise/4 + os.sawtooth(400)) * (os.triangle(100) + os.osc(101) + am + no.noise/6 )/4; |
|
24182bd9e6e405927bfa5e60b55091120f02439d821ee2c8f7bc05e0148342fd | theyoogle/Faust-DSP | 07 MIDI Polyphonic Synth.dsp | import("stdfaust.lib");
// MIDI Polyphonic Synth
freq = hslider("freq",440,50,1000,0.01);
gain = hslider("gain",0.5,0,1,0.01);
gate = button("gate");
timbre(f) = os.osc(f)*0.5 + os.osc(f*2)*0.25 + os.osc(f*3)*0.125;
process = gain * gate * timbre(freq) * 0.5; | https://raw.githubusercontent.com/theyoogle/Faust-DSP/373f0b309ad84906043b0b53e02129cd9ce45d59/session%2001/07%20MIDI%20Polyphonic%20Synth.dsp | faust | MIDI Polyphonic Synth | import("stdfaust.lib");
freq = hslider("freq",440,50,1000,0.01);
gain = hslider("gain",0.5,0,1,0.01);
gate = button("gate");
timbre(f) = os.osc(f)*0.5 + os.osc(f*2)*0.25 + os.osc(f*3)*0.125;
process = gain * gate * timbre(freq) * 0.5; |
496b774058cafb3ee42484c1282212abdd8f8c486fc26dcafb7a8c8631bb3356 | LogicPsycho/Masterarbeit_Dorner_Data | apF.dsp | import("stdfaust.lib");
gM = os.lf_triangle(1000)*0.9;
g = gM;
M = hslider("Delaytime",10,1,100,1);
t1 = (1-g^2):sqrt;
t2 = 1/((1-g^2):sqrt);
del = @(M);
a = *(g);
aN= *(-g);
b = del;
process = *(t1):(+<:b,a)~aN:+*(t2); | https://raw.githubusercontent.com/LogicPsycho/Masterarbeit_Dorner_Data/164a2c9aa1a400b75e583c7bc3fdea1bcbbe59cc/Faust/apF.dsp | faust | import("stdfaust.lib");
gM = os.lf_triangle(1000)*0.9;
g = gM;
M = hslider("Delaytime",10,1,100,1);
t1 = (1-g^2):sqrt;
t2 = 1/((1-g^2):sqrt);
del = @(M);
a = *(g);
aN= *(-g);
b = del;
process = *(t1):(+<:b,a)~aN:+*(t2); |
|
3d1a1d1f4f13a698d8b5dda24255e8f21c1c6f6ccabde66539b1681e323ece27 | LogicPsycho/Masterarbeit_Dorner_Data | apE.dsp | import("stdfaust.lib");
gM = os.lf_triangle(1000)*0.9;
g = gM;
M = hslider("Delaytime",10,1,100,1);
t1 = (1-g^2):sqrt;
t2 = 1/((1-g^2):sqrt);
del = @(M);
a = *(g);
aN= *(-g);
b = *(t1):del*(t2);
process = (+<:b,a)~aN:+; | https://raw.githubusercontent.com/LogicPsycho/Masterarbeit_Dorner_Data/164a2c9aa1a400b75e583c7bc3fdea1bcbbe59cc/Faust/apE.dsp | faust | import("stdfaust.lib");
gM = os.lf_triangle(1000)*0.9;
g = gM;
M = hslider("Delaytime",10,1,100,1);
t1 = (1-g^2):sqrt;
t2 = 1/((1-g^2):sqrt);
del = @(M);
a = *(g);
aN= *(-g);
b = *(t1):del*(t2);
process = (+<:b,a)~aN:+; |
|
8f0e0a528f6f9a9ad7a00e53451fc6f6a668bb04237bf753c3918d95921a52c8 | LogicPsycho/Masterarbeit_Dorner_Data | apH.dsp | import("stdfaust.lib");
gM = os.lf_triangle(1000)*0.9;
g = gM;
M = hslider("Delaytime",10,1,100,1);
t1 = 1/(1-g^2):sqrt;
t2 = ((1-g^2):sqrt);
del = @(M);
a = *(g);
aN= *(-g);
b = del;
process = *(t1)<:((+:b),a:+)~aN:*(t2); | https://raw.githubusercontent.com/LogicPsycho/Masterarbeit_Dorner_Data/164a2c9aa1a400b75e583c7bc3fdea1bcbbe59cc/Faust/apH.dsp | faust | import("stdfaust.lib");
gM = os.lf_triangle(1000)*0.9;
g = gM;
M = hslider("Delaytime",10,1,100,1);
t1 = 1/(1-g^2):sqrt;
t2 = ((1-g^2):sqrt);
del = @(M);
a = *(g);
aN= *(-g);
b = del;
process = *(t1)<:((+:b),a:+)~aN:*(t2); |
|
21cb0627fb0b52f18b11781216def18752a4a51526d3b8385aee88ad80184414 | LogicPsycho/Masterarbeit_Dorner_Data | apG.dsp | import("stdfaust.lib");
gM = os.lf_triangle(1000)*0.9;
g = gM;
M = hslider("Delaytime",10,1,100,1);
t1 = 1/(1-g^2):sqrt;
t2 = ((1-g^2):sqrt);
del = @(M);
a = *(g);
aN= *(-g);
b = *(t1):del*(t2);
process = _<:((+:b),a:+)~aN; | https://raw.githubusercontent.com/LogicPsycho/Masterarbeit_Dorner_Data/164a2c9aa1a400b75e583c7bc3fdea1bcbbe59cc/Faust/apG.dsp | faust | import("stdfaust.lib");
gM = os.lf_triangle(1000)*0.9;
g = gM;
M = hslider("Delaytime",10,1,100,1);
t1 = 1/(1-g^2):sqrt;
t2 = ((1-g^2):sqrt);
del = @(M);
a = *(g);
aN= *(-g);
b = *(t1):del*(t2);
process = _<:((+:b),a:+)~aN; |
|
69943f90bfc5214dc8c286f5da63ddce0803bdb9a29085798a3377209b1f866d | rmichon/mi_faust | PolyTriangle.dsp | import("stdfaust.lib");
import("../../faust/mi.lib");
gateT = button("gate"):ba.impulsify;
in1 = gateT * 0.1;
OutGain = 0.5;
m_K = hslider("pitch", 0.1, 0.0001, 0.3, 0.00001) ;
m_Z = hslider("damping", 0.0001, 0.00001, 0.01, 0.00001) ;
model = (RoutingLinkToMass:
ground(0.),
mass(1.,0., 0.),
mass(1.,0., 0.),
mass(1.,0., 0.) :
RoutingMassToLink :
spring(0.05,0.01, 0., 0.),
spring(m_K,m_Z, 0., 0.),
spring(m_K,m_Z, 0., 0.),
spring(m_K,m_Z, 0., 0.), par(i, 1,_)
)~par(i, 8, _): par(i, 8,!), par(i, 1, _)
with{
RoutingLinkToMass(l0_f1,l0_f2,l1_f1,l1_f2,l2_f1,l2_f2,l3_f1,l3_f2, f_in1) = l0_f1, l0_f2+l1_f1+l3_f2, f_in1+l1_f2+l2_f1, l2_f2+l3_f1;
RoutingMassToLink(m0,m1,m2,m3) = m0, m1, m1, m2, m2, m3, m3, m1,m3;
};
process = in1: model: *(OutGain); | https://raw.githubusercontent.com/rmichon/mi_faust/9af43428a4809894b539a2e1457ad9d2bc0d67fb/examples/faust/PolyTriangle.dsp | faust | import("stdfaust.lib");
import("../../faust/mi.lib");
gateT = button("gate"):ba.impulsify;
in1 = gateT * 0.1;
OutGain = 0.5;
m_K = hslider("pitch", 0.1, 0.0001, 0.3, 0.00001) ;
m_Z = hslider("damping", 0.0001, 0.00001, 0.01, 0.00001) ;
model = (RoutingLinkToMass:
ground(0.),
mass(1.,0., 0.),
mass(1.,0., 0.),
mass(1.,0., 0.) :
RoutingMassToLink :
spring(0.05,0.01, 0., 0.),
spring(m_K,m_Z, 0., 0.),
spring(m_K,m_Z, 0., 0.),
spring(m_K,m_Z, 0., 0.), par(i, 1,_)
)~par(i, 8, _): par(i, 8,!), par(i, 1, _)
with{
RoutingLinkToMass(l0_f1,l0_f2,l1_f1,l1_f2,l2_f1,l2_f2,l3_f1,l3_f2, f_in1) = l0_f1, l0_f2+l1_f1+l3_f2, f_in1+l1_f2+l2_f1, l2_f2+l3_f1;
RoutingMassToLink(m0,m1,m2,m3) = m0, m1, m1, m2, m2, m3, m3, m1,m3;
};
process = in1: model: *(OutGain); |
|
74db20079d4644f97b082ca45ce435d9122a0356128827a2b9131ce5e5b712ca | Tonton-Blax/dplugfausttest | testm.dsp | // testm.dsp - test simple oscillator + MIDI bindings
import("stdfaust.lib");
process = g * a * os.oscrs(f*b) <: _,_;
a = hslider("gain [midi:ctrl 7]",1,0,1,0.001);
f = hslider("freq",392.0,200.0,450.0,0.01);
b = ba.semi2ratio(hslider("bend [midi:pitchwheel]",0,-2,2,0.001));
g = button("gate");
| https://raw.githubusercontent.com/Tonton-Blax/dplugfausttest/281fe81d752ef24035aa94aa67140ab5e2cd6cd6/dsp/testm.dsp | faust | testm.dsp - test simple oscillator + MIDI bindings | import("stdfaust.lib");
process = g * a * os.oscrs(f*b) <: _,_;
a = hslider("gain [midi:ctrl 7]",1,0,1,0.001);
f = hslider("freq",392.0,200.0,450.0,0.01);
b = ba.semi2ratio(hslider("bend [midi:pitchwheel]",0,-2,2,0.001));
g = button("gate");
|
c8efc36025b3a610436e5d7f6506c57b10fc88dc8c9cfed1c6041b2ea9e59962 | oshibka404/synt | oscillators.dsp | import("stdfaust.lib");
pulse_level = vgroup("Pulse[0]", hslider("Level[0]", 1, 0, 1, .01));
pulse = component("oscillators/pulse.dsp") * pulse_level;
triangle_level = vgroup("Triangle[1]", hslider("Level[0]", 1, 0, 1, .01));
triangle = component("oscillators/triangle.dsp") * triangle_level;
saw_level = vgroup("Saw[2]", hslider("Level[0]", 1, 0, 1, .01));
saw = component("oscillators/saw.dsp") * saw_level;
total_level = pulse_level + triangle_level + saw_level;
process = pulse + triangle + saw : /(total_level + .001);
| https://raw.githubusercontent.com/oshibka404/synt/37f54d7d26752efb66baab79cbba2d4044a9e295/faust/oscillators.dsp | faust | import("stdfaust.lib");
pulse_level = vgroup("Pulse[0]", hslider("Level[0]", 1, 0, 1, .01));
pulse = component("oscillators/pulse.dsp") * pulse_level;
triangle_level = vgroup("Triangle[1]", hslider("Level[0]", 1, 0, 1, .01));
triangle = component("oscillators/triangle.dsp") * triangle_level;
saw_level = vgroup("Saw[2]", hslider("Level[0]", 1, 0, 1, .01));
saw = component("oscillators/saw.dsp") * saw_level;
total_level = pulse_level + triangle_level + saw_level;
process = pulse + triangle + saw : /(total_level + .001);
|
|
c0a57601738f0b9bb11114d36d7b7a7e294a56fd40954b58d34784c0d14364a2 | SimplyOnMyWay/harp-model | McLiagEnv_14.02.23.dsp | import("stdfaust.lib");
process = gate : envARE * no.noise : fr <: _,_ with {
a_ = 0.0005;
r_ = 0.1718;
s_ = 0.1;
f_ = 0.05;
gate = (1-(1@(a_*ma.SR)));// + 0.5*(1@750-(1@1700));
envASRFE = en.asrfe(a_,s_,r_,f_);
envARFE = en.arfe(a_,r_,f_);
envARE = en.are(a_,r_);
fr = fi.iir(b,a) with {
b = 1.0038,-0.16283,0.0062466,-0.10801,-0.24058, 0.029842,-0.121,-0.16796,-0.15775,-0.20561,0.0077204;
a = -1.3267,0.61699,-0.75244,0.5751,-0.2797,0.497,-0.45368,0.3945,-0.22875,0.0441;
};
}; | https://raw.githubusercontent.com/SimplyOnMyWay/harp-model/965ebb736946e300d019d47ef1242c97d0aced13/faust_code/McLiagEnv_14.02.23.dsp | faust | + 0.5*(1@750-(1@1700)); | import("stdfaust.lib");
process = gate : envARE * no.noise : fr <: _,_ with {
a_ = 0.0005;
r_ = 0.1718;
s_ = 0.1;
f_ = 0.05;
envASRFE = en.asrfe(a_,s_,r_,f_);
envARFE = en.arfe(a_,r_,f_);
envARE = en.are(a_,r_);
fr = fi.iir(b,a) with {
b = 1.0038,-0.16283,0.0062466,-0.10801,-0.24058, 0.029842,-0.121,-0.16796,-0.15775,-0.20561,0.0077204;
a = -1.3267,0.61699,-0.75244,0.5751,-0.2797,0.497,-0.45368,0.3945,-0.22875,0.0441;
};
}; |
47c29006779235bb1df570553b21df2b437d880448fdfb876773674f8a9dad7f | LogicPsycho/Masterarbeit_Dorner_Data | apC.dsp | import("stdfaust.lib");
gM = os.lf_triangle(1000)*0.9;
g = gM;
M = hslider("Delaytime",10,1,100,1);
t1 = ((1+g)/(1-g)):sqrt;
t2 = ((1-g)/(1+g)):sqrt;
del = @(M);
a = *(g)<:_,*(-1);
b = *(t1):del:*(t2);
//process = a;
process = _<:(+,_<:a,_:_,_+_:ro.cross(2)<:b,_)~_:+; | https://raw.githubusercontent.com/LogicPsycho/Masterarbeit_Dorner_Data/164a2c9aa1a400b75e583c7bc3fdea1bcbbe59cc/Faust/apC.dsp | faust | process = a; | import("stdfaust.lib");
gM = os.lf_triangle(1000)*0.9;
g = gM;
M = hslider("Delaytime",10,1,100,1);
t1 = ((1+g)/(1-g)):sqrt;
t2 = ((1-g)/(1+g)):sqrt;
del = @(M);
a = *(g)<:_,*(-1);
b = *(t1):del:*(t2);
process = _<:(+,_<:a,_:_,_+_:ro.cross(2)<:b,_)~_:+; |
3e0df1a1b101c15a58c4b5c91994741b69f5f432005afe55293f13469d077459 | LogicPsycho/Masterarbeit_Dorner_Data | apD.dsp | import("stdfaust.lib");
gM = os.lf_triangle(1000)*0.9;
g = gM;
M = hslider("Delaytime",10,1,100,1);
t1 = ((1+g)/(1-g)):sqrt;
t2 = ((1-g)/(1+g)):sqrt;
del = @(M);
a = *(g)<:_,*(-1);
b = del;
//process = a;
process = *(t1)<:(+,_<:a,_:_,_+_:ro.cross(2)<:b,_)~_:+*(t2); | https://raw.githubusercontent.com/LogicPsycho/Masterarbeit_Dorner_Data/164a2c9aa1a400b75e583c7bc3fdea1bcbbe59cc/Faust/apD.dsp | faust | process = a; | import("stdfaust.lib");
gM = os.lf_triangle(1000)*0.9;
g = gM;
M = hslider("Delaytime",10,1,100,1);
t1 = ((1+g)/(1-g)):sqrt;
t2 = ((1-g)/(1+g)):sqrt;
del = @(M);
a = *(g)<:_,*(-1);
b = del;
process = *(t1)<:(+,_<:a,_:_,_+_:ro.cross(2)<:b,_)~_:+*(t2); |
2210012e8c1b3a0a975205a254e930cc947983f5ce9f1f7dd166d2ea871ac66c | LucaSpanedda/Musical_Studies_of_Chaotic_Systems | Sine_Bernoulli_Shift.dsp | // Bernoulli Shift
import("stdfaust.lib");
// sine
sine(ph) = sin(ph * 2 * ma.PI);
// x = a number between 0 and 1. f = frequency of the motion
Bernoulli(x) = sine(x : \(n,y).((y*2)+n)~_ : \(z).(z-int(z)));
random(seed) = abs( (int(seed+1) * 1103515245)/2147483647.0 );
voices = 3;
process = par( i, voices, Bernoulli(random(i) * .0001) ); | https://raw.githubusercontent.com/LucaSpanedda/Musical_Studies_of_Chaotic_Systems/d8b78c011cc0b2b75f74643eba78306d6a3f92df/Sine_Bernoulli_Shift-plots/Sine_Bernoulli_Shift.dsp | faust | Bernoulli Shift
sine
x = a number between 0 and 1. f = frequency of the motion |
import("stdfaust.lib");
sine(ph) = sin(ph * 2 * ma.PI);
Bernoulli(x) = sine(x : \(n,y).((y*2)+n)~_ : \(z).(z-int(z)));
random(seed) = abs( (int(seed+1) * 1103515245)/2147483647.0 );
voices = 3;
process = par( i, voices, Bernoulli(random(i) * .0001) ); |
c32ea1313bd633d1b96a6d4c124778bf4de510bd145bccb502c69aa7dc441b7f | levinericzimmermann/oT2kb | sweetsynth.dsp | declare name "sweetsynth";
declare version "1.0";
declare author "Levin Eric Zimmermann";
declare options "[midi:on][nvoices:16]";
//-----------------------------------------------
// FM based sweet synth engine
//-----------------------------------------------
import("stdfaust.lib");
f = hslider("freq",300,50,2000,0.01);
bend = ba.semi2ratio(hslider("bend[midi:pitchwheel]",0,-2,2,0.01)) : si.polySmooth(gate,0.999,1);
minimalGain = 0.1;
gain = hslider("gain", 0.5, minimalGain, 1, 0.01);
gate = button("gate");
freq = f * bend;
impulseGate = ba.impulsify(gate);
rangeLfo(minima, maxima, frequency) = lfo
with {
span = maxima - minima;
lfo = ((os.lf_triangle(frequency) + 1) * 0.5 * span) + minima;
};
attackDuration = rangeLfo(0.28, 0.6, 0.5122321) : ba.sAndH(impulseGate);
releaseDuration = rangeLfo(0.3, 0.8, 0.432) : ba.sAndH(impulseGate);
envelope = en.adsr(attackDuration, 0.1, 0.3, releaseDuration, gate) * gain;
modulator(
modulatorFreq,
index,
freqLfo,
indexLfo,
minimalGain
) = result
with {
oscillator = os.osc(modulatorFreq * freqLfo) * indexLfo * index;
result = 0, oscillator : select2(gain >= minimalGain);
};
modulators = (
modulator(
freq * 2,
300,
rangeLfo(0.985, 1.005, 0.72312),
rangeLfo(0.5, 1.2, 0.3),
0.1
) +
modulator(
freq * 3,
200,
rangeLfo(0.98, 1, 0.5),
rangeLfo(0.1, 1.2, 0.4142),
0.14
) +
modulator(
freq * 4,
100,
rangeLfo(0.99, 1.01, 0.9),
rangeLfo(0.2, 1.2, 0.7142),
0.2
)
);
carrier = os.osc(freq + modulators);
lowpassEnvelope = en.asr(0.8, 4, 0.7, gate) + 1;
fmsynth = carrier * envelope * 0.5 : fi.lowpass(3, freq * lowpassEnvelope);
attackNoise = no.noise : fi.bandpass(8, freq * 0.2, freq * 2) : _ * en.ar(0.001, 0.005, gate) * gain * 1;
process = fmsynth + attackNoise <: _, _;
effect = dm.greyhole_demo;
| https://raw.githubusercontent.com/levinericzimmermann/oT2kb/202685282c585def5e62791ff784196e127e910a/src/sweetsynth.dsp | faust | -----------------------------------------------
FM based sweet synth engine
----------------------------------------------- | declare name "sweetsynth";
declare version "1.0";
declare author "Levin Eric Zimmermann";
declare options "[midi:on][nvoices:16]";
import("stdfaust.lib");
f = hslider("freq",300,50,2000,0.01);
bend = ba.semi2ratio(hslider("bend[midi:pitchwheel]",0,-2,2,0.01)) : si.polySmooth(gate,0.999,1);
minimalGain = 0.1;
gain = hslider("gain", 0.5, minimalGain, 1, 0.01);
gate = button("gate");
freq = f * bend;
impulseGate = ba.impulsify(gate);
rangeLfo(minima, maxima, frequency) = lfo
with {
span = maxima - minima;
lfo = ((os.lf_triangle(frequency) + 1) * 0.5 * span) + minima;
};
attackDuration = rangeLfo(0.28, 0.6, 0.5122321) : ba.sAndH(impulseGate);
releaseDuration = rangeLfo(0.3, 0.8, 0.432) : ba.sAndH(impulseGate);
envelope = en.adsr(attackDuration, 0.1, 0.3, releaseDuration, gate) * gain;
modulator(
modulatorFreq,
index,
freqLfo,
indexLfo,
minimalGain
) = result
with {
oscillator = os.osc(modulatorFreq * freqLfo) * indexLfo * index;
result = 0, oscillator : select2(gain >= minimalGain);
};
modulators = (
modulator(
freq * 2,
300,
rangeLfo(0.985, 1.005, 0.72312),
rangeLfo(0.5, 1.2, 0.3),
0.1
) +
modulator(
freq * 3,
200,
rangeLfo(0.98, 1, 0.5),
rangeLfo(0.1, 1.2, 0.4142),
0.14
) +
modulator(
freq * 4,
100,
rangeLfo(0.99, 1.01, 0.9),
rangeLfo(0.2, 1.2, 0.7142),
0.2
)
);
carrier = os.osc(freq + modulators);
lowpassEnvelope = en.asr(0.8, 4, 0.7, gate) + 1;
fmsynth = carrier * envelope * 0.5 : fi.lowpass(3, freq * lowpassEnvelope);
attackNoise = no.noise : fi.bandpass(8, freq * 0.2, freq * 2) : _ * en.ar(0.001, 0.005, gate) * gain * 1;
process = fmsynth + attackNoise <: _, _;
effect = dm.greyhole_demo;
|
b8aad83bc41b006b7dd0bbabe06ecbcb0b8cb20d748408eb54e0c317c5102847 | TobiasKozel/GuitarD | SimpleReverb.dsp | import("stdfaust.lib");
pre = vslider( "Predelay", 0, 0, 100, 0.1);
f1 = vslider( "Band1", 1000, 20, 20000, 1);
t60dc = vslider( "Decay Band1", 1, 0.01, 10, 0.01);
f2 = vslider( "Band2", 8000, 20, 20000, 1);
t60m = vslider( "Decay Band2", 2, 0.01, 10, 0.01);
mix = vslider( "Mix", 1, 0, 1, 0.01);
revMix = _, _ : re.zita_rev1_stereo(pre, f1, f2, t60dc, t60m, ma.SR) : _ * mix, _ * mix;
process = _, _ <: revMix, (_ * (1 - mix), _ * (1 - mix)) :> _, _; | https://raw.githubusercontent.com/TobiasKozel/GuitarD/80d5b8e6fa2eab99bbee80e6dacb5f0f482bbb52/src/nodes/simple_reverb/SimpleReverb.dsp | faust | import("stdfaust.lib");
pre = vslider( "Predelay", 0, 0, 100, 0.1);
f1 = vslider( "Band1", 1000, 20, 20000, 1);
t60dc = vslider( "Decay Band1", 1, 0.01, 10, 0.01);
f2 = vslider( "Band2", 8000, 20, 20000, 1);
t60m = vslider( "Decay Band2", 2, 0.01, 10, 0.01);
mix = vslider( "Mix", 1, 0, 1, 0.01);
revMix = _, _ : re.zita_rev1_stereo(pre, f1, f2, t60dc, t60m, ma.SR) : _ * mix, _ * mix;
process = _, _ <: revMix, (_ * (1 - mix), _ * (1 - mix)) :> _, _; |
|
9724cc8715f0aa4844a14bf7ee16476db9e94ef75fe2fee9450245290d51bc6b | TobiasKozel/GuitarD | BitCrusher.dsp | import("stdfaust.lib");
bits = 2, vslider( "Bits", 16, 0.1, 16, 0.01) : pow;
sampleFactor = vslider("Downsampling Factor",1, 1, 80, 1) : int;
mix = vslider("Mix",1, 0, 1, 0.01);
counter(x) = int(_)~(_ <: ba.if(_<(x-1) , _+1 , 0));
dsWet(s,c) = _~(ba.if(c == 0 , s , _));
ds(s) = ba.if(sampleFactor > 1 , dsWet(s,counter(sampleFactor)) , s);
depthReduction(x) = rint(x * bits) / bits;
dryWet(m, a, b) = a * m + b * (1 - m);
main(a) = dryWet(mix, (depthReduction(ds(a))), a);
process = sp.stereoize(main); | https://raw.githubusercontent.com/TobiasKozel/GuitarD/80d5b8e6fa2eab99bbee80e6dacb5f0f482bbb52/src/nodes/bitcrusher/BitCrusher.dsp | faust | import("stdfaust.lib");
bits = 2, vslider( "Bits", 16, 0.1, 16, 0.01) : pow;
sampleFactor = vslider("Downsampling Factor",1, 1, 80, 1) : int;
mix = vslider("Mix",1, 0, 1, 0.01);
counter(x) = int(_)~(_ <: ba.if(_<(x-1) , _+1 , 0));
dsWet(s,c) = _~(ba.if(c == 0 , s , _));
ds(s) = ba.if(sampleFactor > 1 , dsWet(s,counter(sampleFactor)) , s);
depthReduction(x) = rint(x * bits) / bits;
dryWet(m, a, b) = a * m + b * (1 - m);
main(a) = dryWet(mix, (depthReduction(ds(a))), a);
process = sp.stereoize(main); |
|
1bb771da61fcafae7ae8b7e05c45ee802afa9e94d9fe69189474198217ae148a | TobiasKozel/GuitarD | StereoTool.dsp | import("stdfaust.lib");
panVal = vslider( "Panning", 0, -1, 1, 0.01);
widthVal = vslider( "Width", 1, 0, 2, 0.01);
postPan = vslider( "Post panning", 1, 0, 1, 1);
pan(l, r) = l * (-panVal + 1, 1 : min), r * (panVal + 1, 1 : min);
midSide(l, r) = (l + r) * 0.5, (l - r) * 0.5;
leftRigh(m, s) = (m + s), (m - s);
width(l, r) = midSide(l, r) : _ * (-widthVal + 2, 1 : min), _ * (widthVal, 1 : min) : leftRigh;
panWidth = pan : width;
widthPan = width : pan;
process = _, _ <: panWidth, widthPan : ba.select2stereo(postPan); | https://raw.githubusercontent.com/TobiasKozel/GuitarD/80d5b8e6fa2eab99bbee80e6dacb5f0f482bbb52/src/nodes/stereo_tool/StereoTool.dsp | faust | import("stdfaust.lib");
panVal = vslider( "Panning", 0, -1, 1, 0.01);
widthVal = vslider( "Width", 1, 0, 2, 0.01);
postPan = vslider( "Post panning", 1, 0, 1, 1);
pan(l, r) = l * (-panVal + 1, 1 : min), r * (panVal + 1, 1 : min);
midSide(l, r) = (l + r) * 0.5, (l - r) * 0.5;
leftRigh(m, s) = (m + s), (m - s);
width(l, r) = midSide(l, r) : _ * (-widthVal + 2, 1 : min), _ * (widthVal, 1 : min) : leftRigh;
panWidth = pan : width;
widthPan = width : pan;
process = _, _ <: panWidth, widthPan : ba.select2stereo(postPan); |
|
2c54179519b7405942a118c6e629473a66d3be179ab2eb2472028b7227185f95 | LogicPsycho/Masterarbeit_Dorner_Data | apV.dsp | import("stdfaust.lib");
gM = os.lf_triangle(100)*0.5;
g = gM;
M = hslider("Delaytime",10,1,100,1);
t1 = ((1+g)/(1-g)):sqrt;
t2 = ((1-g)/(1+g)):sqrt;
mult = 1-g^2;
del = @(M);
a = *(g);
aN= *(-g);
b = del;
process = _<:a,*(mult):_,_(+:b)~aN:_,*(mult):+; | https://raw.githubusercontent.com/LogicPsycho/Masterarbeit_Dorner_Data/164a2c9aa1a400b75e583c7bc3fdea1bcbbe59cc/Faust/apV.dsp | faust | import("stdfaust.lib");
gM = os.lf_triangle(100)*0.5;
g = gM;
M = hslider("Delaytime",10,1,100,1);
t1 = ((1+g)/(1-g)):sqrt;
t2 = ((1-g)/(1+g)):sqrt;
mult = 1-g^2;
del = @(M);
a = *(g);
aN= *(-g);
b = del;
process = _<:a,*(mult):_,_(+:b)~aN:_,*(mult):+; |
|
c0a3d580f478a0c0ea91dd8c5f662fc76b38d2ea0ceebb62a6b53036d35ef2da | magnetophon/DigiDrie | i2f.dsp | import("stdfaust.lib");
process =
(index2freq(fund)-(ma.SR/256)) / (ma.SR/8);
fund = os.lf_sawpos(440);
index2freq(index) = ((index-index')*ma.SR) : ba.sAndH(abs(index-index')<0.5);
| https://raw.githubusercontent.com/magnetophon/DigiDrie/a9f79d502e1f8d522e5f47e0c460ae99e80f9441/faust/benchmark/index2freq/i2f.dsp | faust | import("stdfaust.lib");
process =
(index2freq(fund)-(ma.SR/256)) / (ma.SR/8);
fund = os.lf_sawpos(440);
index2freq(index) = ((index-index')*ma.SR) : ba.sAndH(abs(index-index')<0.5);
|
|
6054f20d2556186aff21a95e103323135af4c86ac50fd7d6cdd7973627bee897 | Harrolee/pypedal | faustEcho.dsp | import("stdfaust.lib");
del = hslider("del",20000,1,30000,1);
feedback = hslider("feedback",0.5,0,1,0.01);
echo = +~de.delay(30000,del)*feedback;
process = par(i,2,echo); | https://raw.githubusercontent.com/Harrolee/pypedal/932bedc87d99f6096044c31d3f0895dbb36c6574/faust/faustEcho/faustEcho.dsp | faust | import("stdfaust.lib");
del = hslider("del",20000,1,30000,1);
feedback = hslider("feedback",0.5,0,1,0.01);
echo = +~de.delay(30000,del)*feedback;
process = par(i,2,echo); |
|
6bb53893b155699d9ec2bbb119ee26b135a19fd5095fc29d15b45105f706678a | rmichon/cph-fall22 | dopler.dsp | import("stdfaust.lib");
delay(dSec) = de.delay(ma.SR,d)
with{
d = dSec*ma.SR;
};
dopler(freq,ind) = delay(LFO*ind)
with{
LFO = os.osc(freq)*0.5 + 0.5;
};
f = hslider("freq",1,0.001,5,0.001);
i = hslider("index",1,0,1,0.01);
process = dopler(f,i);
| https://raw.githubusercontent.com/rmichon/cph-fall22/9a0ec39a536e259faf90639d8fd4bbcc6ef082c3/code/monday/dopler.dsp | faust | import("stdfaust.lib");
delay(dSec) = de.delay(ma.SR,d)
with{
d = dSec*ma.SR;
};
dopler(freq,ind) = delay(LFO*ind)
with{
LFO = os.osc(freq)*0.5 + 0.5;
};
f = hslider("freq",1,0.001,5,0.001);
i = hslider("index",1,0,1,0.01);
process = dopler(f,i);
|
|
bd016b725cea1690f0af261ec4106f46bb564e15b924903db6c4b651f6d76b31 | publicsamples/Quetzalcoatl | cv.dsp | declare owl "[voct:output]";
import("stdfaust.lib");
import("owl.lib");
notes = (36, 40, 43, 47, 48, 47, 43, 40);
notes_per_beat = 4;
total_notes = 8;
process = pitch, gate
with {
tune = hslider("Tune[OWL:A]", 0, -24, 24, 1) : int;
bpm = hslider("BPM[OWL:B]", 120, 80, 160, 0.1);
beat_len = ba.tempo(bpm);
gate = ba.pulsen(beat_len / 4, beat_len / 2);
step = (ba.impulsify(gate) + _ : %(total_notes)) ~ _;
seq_note = notes : ba.selectn(total_notes, step);
pitch = seq_note : ba.midikey2hz : hertz2sample(tune / 12);
}; | https://raw.githubusercontent.com/publicsamples/Quetzalcoatl/547f2585651af68b32072846088cc97f3c80acc0/Quetzalcoatl/DspNetworks/CodeLibrary/faust/cv.dsp | faust | declare owl "[voct:output]";
import("stdfaust.lib");
import("owl.lib");
notes = (36, 40, 43, 47, 48, 47, 43, 40);
notes_per_beat = 4;
total_notes = 8;
process = pitch, gate
with {
tune = hslider("Tune[OWL:A]", 0, -24, 24, 1) : int;
bpm = hslider("BPM[OWL:B]", 120, 80, 160, 0.1);
beat_len = ba.tempo(bpm);
gate = ba.pulsen(beat_len / 4, beat_len / 2);
step = (ba.impulsify(gate) + _ : %(total_notes)) ~ _;
seq_note = notes : ba.selectn(total_notes, step);
pitch = seq_note : ba.midikey2hz : hertz2sample(tune / 12);
}; |
|
b77bb6ce7f23a1045f224017dcdd2da5cb225dd41c43850f5551c309d2d5fadc | LogicPsycho/Masterarbeit_Dorner_Data | apL.dsp | import("stdfaust.lib");
gM = os.lf_triangle(10)*0.3;
g = gM;
M = hslider("Delaytime",10,1,100,1);
t2 = (1-g^2):sqrt;
t1 = 1/((1-g^2):sqrt);
mult = 1-g^2;
del = @(M);
a = *(g);
aN= *(-g);
b = del;
process = *(t1)<:a,*(mult):_,_(+:b)~aN:+*(t2); | https://raw.githubusercontent.com/LogicPsycho/Masterarbeit_Dorner_Data/164a2c9aa1a400b75e583c7bc3fdea1bcbbe59cc/Faust/apL.dsp | faust | import("stdfaust.lib");
gM = os.lf_triangle(10)*0.3;
g = gM;
M = hslider("Delaytime",10,1,100,1);
t2 = (1-g^2):sqrt;
t1 = 1/((1-g^2):sqrt);
mult = 1-g^2;
del = @(M);
a = *(g);
aN= *(-g);
b = del;
process = *(t1)<:a,*(mult):_,_(+:b)~aN:+*(t2); |
|
a21dfb8440802b23e5846e9c60bb90483be4aeb532c106bc5a91f6075e65395f | LogicPsycho/Masterarbeit_Dorner_Data | apK.dsp | import("stdfaust.lib");
gM = os.lf_triangle(10)*0.3;
g = gM;
M = hslider("Delaytime",10,1,100,1);
t2 = (1-g^2):sqrt;
t1 = 1/((1-g^2):sqrt);
mult = 1-g^2;
del = @(M);
a = *(g);
aN= *(-g);
b = *(t1):del*(t2);
process = _<:a,*(mult):_,_(+:b)~aN:+; | https://raw.githubusercontent.com/LogicPsycho/Masterarbeit_Dorner_Data/164a2c9aa1a400b75e583c7bc3fdea1bcbbe59cc/Faust/apK.dsp | faust | import("stdfaust.lib");
gM = os.lf_triangle(10)*0.3;
g = gM;
M = hslider("Delaytime",10,1,100,1);
t2 = (1-g^2):sqrt;
t1 = 1/((1-g^2):sqrt);
mult = 1-g^2;
del = @(M);
a = *(g);
aN= *(-g);
b = *(t1):del*(t2);
process = _<:a,*(mult):_,_(+:b)~aN:+; |
|
4955ece7ca2aa6680dc6095651cfbfb4f3b8b70e19d7809f6e7915237dd3ae5a | LogicPsycho/Masterarbeit_Dorner_Data | apI.dsp | import("stdfaust.lib");
gM = os.lf_triangle(1000)*0.9;
g = gM;
M = hslider("Delaytime",10,1,100,1);
t1 = (1-g^2):sqrt;
t2 = 1/((1-g^2):sqrt);
mult = 1-g^2;
del = @(M);
a = *(g);
aN= *(-g);
b = *(t1):del*(t2);
process = _<:a,(+:b)~aN:_,*(mult):+; | https://raw.githubusercontent.com/LogicPsycho/Masterarbeit_Dorner_Data/164a2c9aa1a400b75e583c7bc3fdea1bcbbe59cc/Faust/apI.dsp | faust | import("stdfaust.lib");
gM = os.lf_triangle(1000)*0.9;
g = gM;
M = hslider("Delaytime",10,1,100,1);
t1 = (1-g^2):sqrt;
t2 = 1/((1-g^2):sqrt);
mult = 1-g^2;
del = @(M);
a = *(g);
aN= *(-g);
b = *(t1):del*(t2);
process = _<:a,(+:b)~aN:_,*(mult):+; |
|
d6ef27ae067784590ed9ceca709499de1789ca5e0f93bb69fc80ae24cdd0c91b | LogicPsycho/Masterarbeit_Dorner_Data | apJ.dsp | import("stdfaust.lib");
gM = os.lf_triangle(1000)*0.9;
g = gM;
M = hslider("Delaytime",10,1,100,1);
t1 = (1-g^2):sqrt;
t2 = 1/((1-g^2):sqrt);
mult = 1-g^2;
del = @(M);
a = *(g);
aN= *(-g);
b = del;
process = *(t1)<:a,(+:b)~aN:_,*(mult):+*(t2); | https://raw.githubusercontent.com/LogicPsycho/Masterarbeit_Dorner_Data/164a2c9aa1a400b75e583c7bc3fdea1bcbbe59cc/Faust/apJ.dsp | faust | import("stdfaust.lib");
gM = os.lf_triangle(1000)*0.9;
g = gM;
M = hslider("Delaytime",10,1,100,1);
t1 = (1-g^2):sqrt;
t2 = 1/((1-g^2):sqrt);
mult = 1-g^2;
del = @(M);
a = *(g);
aN= *(-g);
b = del;
process = *(t1)<:a,(+:b)~aN:_,*(mult):+*(t2); |
|
e152ca282747e516ffa66b39c9ae08c9b7bfeecaeb19be82af55f71dae64cf39 | elaforge/karya | effect_comb.dsp | import("stdfaust.lib");
declare description "Comb filter to add a pitch.";
pitch = hslider("comb_pitch[unit: nn]", 60, 1, 127, 0.01);
// Pretty much only the 0.75 to 0.99 range is useful.
// Could I map from decay in seconds?
feedback = hslider("comb_feedback", 0, 0, 1, 0.01);
process = comb, comb
with {
comb = fi.fb_fcomb(maxDelay, delay, outputGain, feedback : smooth);
outputGain = 1; // This just scales the overall output.
delay = ma.SR / ba.midikey2hz(smooth(pitch));
maxDelay = 4096; // 10hz = delay of 44100
};
smooth = si.smooth(ba.tau2pole(0.01)); // 10 ms smoothing
| https://raw.githubusercontent.com/elaforge/karya/471a2131f5a68b3b10b1a138e6f9ed1282980a18/Synth/Faust/dsp/effect_comb.dsp | faust | Pretty much only the 0.75 to 0.99 range is useful.
Could I map from decay in seconds?
This just scales the overall output.
10hz = delay of 44100
10 ms smoothing | import("stdfaust.lib");
declare description "Comb filter to add a pitch.";
pitch = hslider("comb_pitch[unit: nn]", 60, 1, 127, 0.01);
feedback = hslider("comb_feedback", 0, 0, 1, 0.01);
process = comb, comb
with {
comb = fi.fb_fcomb(maxDelay, delay, outputGain, feedback : smooth);
delay = ma.SR / ba.midikey2hz(smooth(pitch));
};
|
717542117a162d344d891cc558b20cbd5e4b1aa6b721f07a40b81824ee2ca6cc | theyoogle/Faust-DSP | 06 Additive Synth.dsp | import("stdfaust.lib");
freq = hslider("freq",440,50,1000,0.01);
gain = hslider("gain",0.5,0,1,0.01);
// Additive Synthesis
// Multiple of fundamental frequencies
// Descending order of volume
timbre(f) = os.osc(f)*0.5 + os.osc(f*2)*0.25 + os.osc(f*3)*0.125;
process = gain * timbre(freq); | https://raw.githubusercontent.com/theyoogle/Faust-DSP/373f0b309ad84906043b0b53e02129cd9ce45d59/session%2001/06%20Additive%20Synth.dsp | faust | Additive Synthesis
Multiple of fundamental frequencies
Descending order of volume | import("stdfaust.lib");
freq = hslider("freq",440,50,1000,0.01);
gain = hslider("gain",0.5,0,1,0.01);
timbre(f) = os.osc(f)*0.5 + os.osc(f*2)*0.25 + os.osc(f*3)*0.125;
process = gain * timbre(freq); |
687d9f83b444df00c9db76baa4551e43c2630eb32d0b81a90315489bf0b983ad | LucaSpanedda/Teensy-Euroshield_Patches | FAUST_Code.dsp | import("stdfaust.lib");
freq = nentry("freq",1,1,1024,1);
gain = nentry("gain",1,1,1024,1);
decimale(step)= step-int(step);
varnoise(seed) = (seed*(1103515245)/2147483647.0 : decimale)*freq/10;
fasore(f) = ((f/ma.SR) : (+ : decimale) ~ _) - 0.5;
ifmajzero(f) = ((fasore(f) > 0) * 1) <: _@(gain), _ :> -;
ifminzero(f) = ((fasore(f) < 0) * -1) <: _@(gain), _ :> -;
sumifs(f) = ifmajzero(f) + ifminzero(f);
process =
sumifs(varnoise(freq*1242)),
sumifs(varnoise(freq*2214)); | https://raw.githubusercontent.com/LucaSpanedda/Teensy-Euroshield_Patches/644ca72cccaf436bb7110e62589747eb4e8869df/0.50_Square_Corrupter_FAUST/FAUST_Code.dsp | faust | import("stdfaust.lib");
freq = nentry("freq",1,1,1024,1);
gain = nentry("gain",1,1,1024,1);
decimale(step)= step-int(step);
varnoise(seed) = (seed*(1103515245)/2147483647.0 : decimale)*freq/10;
fasore(f) = ((f/ma.SR) : (+ : decimale) ~ _) - 0.5;
ifmajzero(f) = ((fasore(f) > 0) * 1) <: _@(gain), _ :> -;
ifminzero(f) = ((fasore(f) < 0) * -1) <: _@(gain), _ :> -;
sumifs(f) = ifmajzero(f) + ifminzero(f);
process =
sumifs(varnoise(freq*1242)),
sumifs(varnoise(freq*2214)); |
|
3fe414887f002d0295f99a4dda28f0c38d64f15ee149077412bd44c11b95c25f | LucaSpanedda/Teensy-Euroshield_Patches | FAUST_Code.dsp | import("stdfaust.lib");
freq = nentry("freq",1,1,1024,1);
gain = nentry("gain",1,0,1,0.01);
decimale(step)= step-int(step);
varnoise(seed) = (seed *(1103515245) /2147483647.0 : decimale)*8;
fasore(f) = ((f/ma.SR) : (+ : decimale) ~ _) - 0.5;
ifmajzero(f) = ((fasore(f) > 0) * 1) <: mem, _ :> -;
ifminzero(f) = ((fasore(f) < 0) * -1) <: mem, _ :> -;
sumifs(f) = ifmajzero(f) + ifminzero(f);
process =
sumifs(varnoise(freq*1242))*gain,
sumifs(varnoise(freq*2214))*gain; | https://raw.githubusercontent.com/LucaSpanedda/Teensy-Euroshield_Patches/644ca72cccaf436bb7110e62589747eb4e8869df/0.40_Clicks_and_Glitchs_FAUST/FAUST_Code.dsp | faust | import("stdfaust.lib");
freq = nentry("freq",1,1,1024,1);
gain = nentry("gain",1,0,1,0.01);
decimale(step)= step-int(step);
varnoise(seed) = (seed *(1103515245) /2147483647.0 : decimale)*8;
fasore(f) = ((f/ma.SR) : (+ : decimale) ~ _) - 0.5;
ifmajzero(f) = ((fasore(f) > 0) * 1) <: mem, _ :> -;
ifminzero(f) = ((fasore(f) < 0) * -1) <: mem, _ :> -;
sumifs(f) = ifmajzero(f) + ifminzero(f);
process =
sumifs(varnoise(freq*1242))*gain,
sumifs(varnoise(freq*2214))*gain; |
|
2db90e7261621b39f8e10f30ff9cb99fd280e4b1c4a2566c61726dbbc8eb8eb7 | HexHive/datAFLow | t6.dsp | // compare interleave with equivalent route expression
import("stdfaust.lib");
R = 20;
r1(N,M) = ro.interleave(N,M); // time 2mn
r2(N,M) = route(N*M, N*M, par(i, N*M, (i+1, (i%N)*M + int(i/N) + 1))); // time 0.1s
//process = r1(R,R); // time 2mn
process = r2(R,R); // time 0.3s | https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/t6.dsp | faust | compare interleave with equivalent route expression
time 2mn
time 0.1s
process = r1(R,R); // time 2mn
time 0.3s |
import("stdfaust.lib");
R = 20;
|
a542a8a49405a190bd376962896b1ded99d481cb24c8c3c8d751d0b1eb2e52b2 | bjornmossa/bm-faust-dsp | prod_4.dsp | declare name "prod 4";
declare version "0.1";
declare author "Bjornmossa";
declare license "GPL v3";
declare description "FM Ugen Mix of two groups of fm operators
where each group is a product of two operators";
import("../utils.lib");
import("stdfaust.lib");
num_groups = 2;
ops_in_group = 2;
main_freq = hslider("[0]freq", 20.0, 0.1, 20000, 0.1);
group = prod(i, ops_in_group, hgroup("operator %i", fm_op));
groups = par(i, num_groups, hgroup("group %i", group));
process = main_freq <: groups :> os.osc;
| https://raw.githubusercontent.com/bjornmossa/bm-faust-dsp/ceb1a312262cd6fe87e3c5e78c19ff1c26ffad05/fm/prod_4.dsp | faust | declare name "prod 4";
declare version "0.1";
declare author "Bjornmossa";
declare license "GPL v3";
declare description "FM Ugen Mix of two groups of fm operators
where each group is a product of two operators";
import("../utils.lib");
import("stdfaust.lib");
num_groups = 2;
ops_in_group = 2;
main_freq = hslider("[0]freq", 20.0, 0.1, 20000, 0.1);
group = prod(i, ops_in_group, hgroup("operator %i", fm_op));
groups = par(i, num_groups, hgroup("group %i", group));
process = main_freq <: groups :> os.osc;
|
|
4e518b57d377f637167767c141448be8c96fd1e1e9ba0c6701a49bd28f1fa550 | Harrolee/pypedal | faustSawtooth.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/Harrolee/pypedal/932bedc87d99f6096044c31d3f0895dbb36c6574/faust/faustSawtooth.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; |
|
492358a4a89413fe6865d186e5eaaa8fafeb786ce39158d56bff320f0c69b700 | HolyCityAudio/ESP32 | echoFlanger.dsp | import("stdfaust.lib");
flaDelay = 200; // hslider("[3]Delay", 156, 5, 1000, 1) : si.smoo;
flaFeedback = 0.7; // hslider("[4]Flange Fb", 0.2, 0, 0.97, 0.01) : si.smoo;
flaDepth = 1.0; //hslider("[5]Flange Dep", 0.95, 0, 1.0, 0.01) : si.smoo;
flaLFORate = hslider("[6]Rate", 0.5, 0, 3, 0.01) : si.smoo;
echoTime = 0.5 / flaLFORate : si.smooth(0.99995);
echoFeedback = hslider("[7]echoFeedback", 0.0, 0, 1.0, 0.01) : si.smoo;
flaLFOWidth = hslider("[7]Width", 0.0, 0, 1.0, 0.01) : si.smoo;
flaLFO = os.lf_triangle(flaLFORate);
flaMod = flaLFOWidth * (flaLFO/2) ;
flanger(x,y) = pf.flanger_mono(512, flaDelay * (1 + (x * flaMod)), flaDepth, flaFeedback, y);
//=============================================
// uncomment one of the flange lines below
flange = hgroup("Flange", ef.echo(2.62, echoTime, echoFeedback) : flanger(-1,1));
// flange = hgroup("Flange", flanger(1) : flanger(-1));
// flange = hgroup("Flange", ef.echo(2.62, 0.32, 0.38) : flanger(-1,1));
//=============================================
// uncomment one of the process lines below
// process = _,_: + :> component("tubes.lib").T2_12AX7 : flange <: _,_;
// process = _,_: + :> component("tubes.lib").T2_12AX7 <: flanger(1,-1), flange : _,_;
process = _,_: + :> component("tubes.lib").T2_12AX7 : flange <: _,_;
// process = _,_ :> flange <: _,_;
| https://raw.githubusercontent.com/HolyCityAudio/ESP32/9fd8916dc158c4ed3690e4e6ba2b98014f283b80/faust/echoFlanger/main/echoFlanger.dsp | faust | hslider("[3]Delay", 156, 5, 1000, 1) : si.smoo;
hslider("[4]Flange Fb", 0.2, 0, 0.97, 0.01) : si.smoo;
hslider("[5]Flange Dep", 0.95, 0, 1.0, 0.01) : si.smoo;
=============================================
uncomment one of the flange lines below
flange = hgroup("Flange", flanger(1) : flanger(-1));
flange = hgroup("Flange", ef.echo(2.62, 0.32, 0.38) : flanger(-1,1));
=============================================
uncomment one of the process lines below
process = _,_: + :> component("tubes.lib").T2_12AX7 : flange <: _,_;
process = _,_: + :> component("tubes.lib").T2_12AX7 <: flanger(1,-1), flange : _,_;
process = _,_ :> flange <: _,_; | import("stdfaust.lib");
flaLFORate = hslider("[6]Rate", 0.5, 0, 3, 0.01) : si.smoo;
echoTime = 0.5 / flaLFORate : si.smooth(0.99995);
echoFeedback = hslider("[7]echoFeedback", 0.0, 0, 1.0, 0.01) : si.smoo;
flaLFOWidth = hslider("[7]Width", 0.0, 0, 1.0, 0.01) : si.smoo;
flaLFO = os.lf_triangle(flaLFORate);
flaMod = flaLFOWidth * (flaLFO/2) ;
flanger(x,y) = pf.flanger_mono(512, flaDelay * (1 + (x * flaMod)), flaDepth, flaFeedback, y);
flange = hgroup("Flange", ef.echo(2.62, echoTime, echoFeedback) : flanger(-1,1));
process = _,_: + :> component("tubes.lib").T2_12AX7 : flange <: _,_;
|
01b9d8dae24ebfb1723dfe0dc97fa4e7e8f1e6b08d8a315deaa700800db5fca3 | magnetophon/DigiDrie | i2fsimp.dsp | import("stdfaust.lib");
process =
8 * (fund - fund'): ba.sAndH(abs(fund-fund')<0.5) - 8 / 256;
fund = os.lf_sawpos(440);
index2freq(index) = ((index-index')*ma.SR) : ba.sAndH(abs(index-index')<0.5);
| https://raw.githubusercontent.com/magnetophon/DigiDrie/a9f79d502e1f8d522e5f47e0c460ae99e80f9441/faust/benchmark/index2freq/i2fsimp.dsp | faust | import("stdfaust.lib");
process =
8 * (fund - fund'): ba.sAndH(abs(fund-fund')<0.5) - 8 / 256;
fund = os.lf_sawpos(440);
index2freq(index) = ((index-index')*ma.SR) : ba.sAndH(abs(index-index')<0.5);
|
|
2a95f3d64fd86c8e7bd739016ff0fe695e841312867ca4c1e8a6fdfd555b61d7 | DISTRHO/Fadeli | reverb-jprev.dsp | declare name "jprev";
declare version "0.1";
declare author "GRAME";
declare description "Jprev demo application.";
import("stdfaust.lib");
process = dm.jprev_demo;
| https://raw.githubusercontent.com/DISTRHO/Fadeli/12f4d6a25015a31e80d035434b88292fde4d2003/dsp/reverb-jprev.dsp | faust | declare name "jprev";
declare version "0.1";
declare author "GRAME";
declare description "Jprev demo application.";
import("stdfaust.lib");
process = dm.jprev_demo;
|
|
6bc079d54137848c731c2ad35508a455d1717eb508c6c3454f3e5271b4a65a52 | LogicPsycho/Masterarbeit_Dorner_Data | apO.dsp | import("stdfaust.lib");
gM = os.lf_triangle(10)*0.3;
g = gM;
M = hslider("Delaytime",10,1,100,1);
t1 = ((1+g)/(1-g)):sqrt;
t2 = ((1-g)/(1+g)):sqrt;
mult1 = 1-g^2;
mult2 = 1+g^2;
del = @(M);
a = *(g);
aN= *(-g);
b = *(t1):del*(t2);
process = _<:a,*(mult1):_,_(+:b)~aN:_,*(mult2):+; | https://raw.githubusercontent.com/LogicPsycho/Masterarbeit_Dorner_Data/164a2c9aa1a400b75e583c7bc3fdea1bcbbe59cc/Faust/apO.dsp | faust | import("stdfaust.lib");
gM = os.lf_triangle(10)*0.3;
g = gM;
M = hslider("Delaytime",10,1,100,1);
t1 = ((1+g)/(1-g)):sqrt;
t2 = ((1-g)/(1+g)):sqrt;
mult1 = 1-g^2;
mult2 = 1+g^2;
del = @(M);
a = *(g);
aN= *(-g);
b = *(t1):del*(t2);
process = _<:a,*(mult1):_,_(+:b)~aN:_,*(mult2):+; |
|
9eb25e7867a674faa559ad372440878043b78dd1657e872e700bff2a8a424140 | LogicPsycho/Masterarbeit_Dorner_Data | apM.dsp | import("stdfaust.lib");
gM = os.lf_triangle(10)*0.3;
g = gM;
M = hslider("Delaytime",10,1,100,1);
t1 = ((1-g)/(1+g)):sqrt;
t2 = ((1+g)/(1-g)):sqrt;
mult1 = 1+g^2;
mult2 = 1-g^2;
del = @(M);
a = *(g);
aN= *(-g);
b = *(t1):del*(t2);
process = _<:a,*(mult1):_,_(+:b)~aN:_,*(mult2):+; | https://raw.githubusercontent.com/LogicPsycho/Masterarbeit_Dorner_Data/164a2c9aa1a400b75e583c7bc3fdea1bcbbe59cc/Faust/apM.dsp | faust | import("stdfaust.lib");
gM = os.lf_triangle(10)*0.3;
g = gM;
M = hslider("Delaytime",10,1,100,1);
t1 = ((1-g)/(1+g)):sqrt;
t2 = ((1+g)/(1-g)):sqrt;
mult1 = 1+g^2;
mult2 = 1-g^2;
del = @(M);
a = *(g);
aN= *(-g);
b = *(t1):del*(t2);
process = _<:a,*(mult1):_,_(+:b)~aN:_,*(mult2):+; |
|
0815a21da143677b55a35657732ef6586d67dde8359ff6216e57baa50c591558 | LogicPsycho/Masterarbeit_Dorner_Data | apP.dsp | import("stdfaust.lib");
gM = os.lf_triangle(10)*0.3;
g = gM;
M = hslider("Delaytime",10,1,100,1);
t1 = ((1+g)/(1-g)):sqrt;
t2 = ((1-g)/(1+g)):sqrt;
mult1 = 1-g^2;
mult2 = 1+g^2;
del = @(M);
a = *(g);
aN= *(-g);
b = del;
process = *(t1)<:a,*(mult1):_,_(+:b)~aN:_,*(mult2):+*(t2); | https://raw.githubusercontent.com/LogicPsycho/Masterarbeit_Dorner_Data/164a2c9aa1a400b75e583c7bc3fdea1bcbbe59cc/Faust/apP.dsp | faust | import("stdfaust.lib");
gM = os.lf_triangle(10)*0.3;
g = gM;
M = hslider("Delaytime",10,1,100,1);
t1 = ((1+g)/(1-g)):sqrt;
t2 = ((1-g)/(1+g)):sqrt;
mult1 = 1-g^2;
mult2 = 1+g^2;
del = @(M);
a = *(g);
aN= *(-g);
b = del;
process = *(t1)<:a,*(mult1):_,_(+:b)~aN:_,*(mult2):+*(t2); |
|
4b4bf22aa72c6d5b1fa59ee5f14b1f2855cc0dfc965241cfccdec78fd5343c8d | LogicPsycho/Masterarbeit_Dorner_Data | apN.dsp | import("stdfaust.lib");
gM = os.lf_triangle(10)*0.3;
g = gM;
M = hslider("Delaytime",10,1,100,1);
t1 = ((1-g)/(1+g)):sqrt;
t2 = ((1+g)/(1-g)):sqrt;
mult1 = 1+g^2;
mult2 = 1-g^2;
del = @(M);
a = *(g);
aN= *(-g);
b = del;
process = *(t1)<:a,*(mult1):_,_(+:b)~aN:_,*(mult2):+*(t2); | https://raw.githubusercontent.com/LogicPsycho/Masterarbeit_Dorner_Data/164a2c9aa1a400b75e583c7bc3fdea1bcbbe59cc/Faust/apN.dsp | faust | import("stdfaust.lib");
gM = os.lf_triangle(10)*0.3;
g = gM;
M = hslider("Delaytime",10,1,100,1);
t1 = ((1-g)/(1+g)):sqrt;
t2 = ((1+g)/(1-g)):sqrt;
mult1 = 1+g^2;
mult2 = 1-g^2;
del = @(M);
a = *(g);
aN= *(-g);
b = del;
process = *(t1)<:a,*(mult1):_,_(+:b)~aN:_,*(mult2):+*(t2); |
|
68e169e77e3ad49747d82487cafadf24a8df0af88e45e4f2869e1662a1e916a0 | theyoogle/Faust-DSP | 08 ADSR Envelope.dsp | import("stdfaust.lib");
freq = hslider("freq",440,50,1000,0.01);
gain = hslider("gain",0.5,0,1,0.01);
// ADSR envelope for gate
gate = button("gate") : en.adsr(0.01,0.01,0.9,0.1);
timbre(f) = os.osc(f)*0.5 + os.osc(f*2)*0.25 + os.osc(f*3)*0.125;
process = gain * gate * timbre(freq) * 0.5; | https://raw.githubusercontent.com/theyoogle/Faust-DSP/373f0b309ad84906043b0b53e02129cd9ce45d59/session%2001/08%20ADSR%20Envelope.dsp | faust | ADSR envelope for gate | import("stdfaust.lib");
freq = hslider("freq",440,50,1000,0.01);
gain = hslider("gain",0.5,0,1,0.01);
gate = button("gate") : en.adsr(0.01,0.01,0.9,0.1);
timbre(f) = os.osc(f)*0.5 + os.osc(f*2)*0.25 + os.osc(f*3)*0.125;
process = gain * gate * timbre(freq) * 0.5; |
968b65d3568d7b4f0f111d51b0c670e5b548151776c9f9a65b8492424816156e | olilarkin/pMixFaustNodes | RissetArpeggio.dsp | declare name "Risset Arpeggio";
declare description "Jean Claude Risset's Harmonic Arpeggio Effect";
declare author "Oli Larkin ([email protected])";
declare copyright "Oliver Larkin";
declare version "0.1";
declare licence "GPL";
import("stdfaust.lib");
fd = hslider("detune [unit:%]", 5., 0., 1000., 0.01) : si.smooth(0.999) : *(0.01);
f = hslider("f0", 100, 40, 500, 1) : si.smooth(0.999);
spread = hslider("spread", 1., 0., 1., 0.01) : si.smooth(0.999);
l(i) = hslider("harmonic%2i", 1., 0., 1., 0.01) : si.smooth(0.999);
vol = hslider("main volume", 0., -70., 0., 0.01) : ba.db2linear : si.smooth(ba.tau2pole(0.1)) : *(0.2);
N = 8;
rissetarp = par(i, N, gen(i)) :> _,_
with {
gen(idx) = os.osc(thisFreq) : ma.chebychevpoly((1., l(1), l(2), l(3), l(4), l(5))) : *(vol) : pan(idx)
with {
thisFreq = f + ((idx-4) * fd);
};
pan(s) = _ <: *(v), *(1-v)
with {
spreadScale = (1/(N-1));
v = 0.5 + ((spreadScale * s) - 0.5) * spread;
};
};
process = rissetarp <: _,_; | https://raw.githubusercontent.com/olilarkin/pMixFaustNodes/20da57783b03841f023a7edd4a3215ab3155218e/RissetArpeggio.dsp | faust | declare name "Risset Arpeggio";
declare description "Jean Claude Risset's Harmonic Arpeggio Effect";
declare author "Oli Larkin ([email protected])";
declare copyright "Oliver Larkin";
declare version "0.1";
declare licence "GPL";
import("stdfaust.lib");
fd = hslider("detune [unit:%]", 5., 0., 1000., 0.01) : si.smooth(0.999) : *(0.01);
f = hslider("f0", 100, 40, 500, 1) : si.smooth(0.999);
spread = hslider("spread", 1., 0., 1., 0.01) : si.smooth(0.999);
l(i) = hslider("harmonic%2i", 1., 0., 1., 0.01) : si.smooth(0.999);
vol = hslider("main volume", 0., -70., 0., 0.01) : ba.db2linear : si.smooth(ba.tau2pole(0.1)) : *(0.2);
N = 8;
rissetarp = par(i, N, gen(i)) :> _,_
with {
gen(idx) = os.osc(thisFreq) : ma.chebychevpoly((1., l(1), l(2), l(3), l(4), l(5))) : *(vol) : pan(idx)
with {
thisFreq = f + ((idx-4) * fd);
};
pan(s) = _ <: *(v), *(1-v)
with {
spreadScale = (1/(N-1));
v = 0.5 + ((spreadScale * s) - 0.5) * spread;
};
};
process = rissetarp <: _,_; |
|
13edce8fbb32a171a8bccfc675b54f34510087a7fee8d403ea07751524f9a140 | LucaSpanedda/Musical_Studies_of_Chaotic_Systems | 1.00_Bernoulli_Shift.dsp | import("stdfaust.lib");
// x = a number between 0 and 1. f = frequency of the motion
Bernoulli(x) = x : \(n,y).((y*2)+n)~_ : \(z).(z-int(z));
sine(ph) = sin(ph * 2 * ma.PI);
random(seed) = abs( (int(seed+1) * 1103515245)/2147483647.0 );
factor = .0099480;
voices = 16;
process = par( i, voices, Bernoulli(random(i) * factor) ) :> (*,*)
: \(B1sum,B2sum).( sine(B1sum/voices), sine(B2sum/voices) );
| https://raw.githubusercontent.com/LucaSpanedda/Musical_Studies_of_Chaotic_Systems/d8b78c011cc0b2b75f74643eba78306d6a3f92df/1.00_Bernoulli_Shift.dsp | faust | x = a number between 0 and 1. f = frequency of the motion | import("stdfaust.lib");
Bernoulli(x) = x : \(n,y).((y*2)+n)~_ : \(z).(z-int(z));
sine(ph) = sin(ph * 2 * ma.PI);
random(seed) = abs( (int(seed+1) * 1103515245)/2147483647.0 );
factor = .0099480;
voices = 16;
process = par( i, voices, Bernoulli(random(i) * factor) ) :> (*,*)
: \(B1sum,B2sum).( sine(B1sum/voices), sine(B2sum/voices) );
|
ea13204352a0a4c9f08fc4b6bfd2e69c3aade4538efcca3bb920480d28b8facf | reverbrick/contour | VirtualAnalogSynth.dsp | import("stdfaust.lib");
process = dm.virtual_analog_oscillator_demo;
| https://raw.githubusercontent.com/reverbrick/contour/7f7926311cbe0bbcefe16a7641ad70bf6f10c945/FAUST/VirtualAnalogSynth.dsp | faust | import("stdfaust.lib");
process = dm.virtual_analog_oscillator_demo;
|
|
d3f62ddb29411018f2a4cb4cf146536ed46b9871a5344dd3dc5b575e4a4c303e | hrtlacek/audiolab | synthTest.dsp | import("stdfaust.lib");
myFreq = hslider("myFreqPar",100,10,1000,0.1);
offset = hslider("offsetPar",0,-1,1,0.1);
amp = hslider("test",0.5,0,10,0.1);
sinosc = os.osc(myFreq);
outp =sinosc+offset;
process = outp*amp:ma.tanh;
| https://raw.githubusercontent.com/hrtlacek/audiolab/e778476f113caf76c2d9439a74531e648c43f697/notebooks/FAUSTplusPython/old_FAUSTwidgets/synthTest.dsp | faust | import("stdfaust.lib");
myFreq = hslider("myFreqPar",100,10,1000,0.1);
offset = hslider("offsetPar",0,-1,1,0.1);
amp = hslider("test",0.5,0,10,0.1);
sinosc = os.osc(myFreq);
outp =sinosc+offset;
process = outp*amp:ma.tanh;
|
|
198cc44dcad70bd7e82f28920fba16da8c966e6c182a56593f93c50cfbd31e7c | LSSN/2020-01-23-2a-dsp-stefcongeddu03 | verifica.dsp | // la sintesi sottrattiva è una tecnica di sintesi sonora che filtra una sorgente sonora che può contenere varie armoniche,
// vine utilizzata sottraendo o modificando bande di frequenza per ottenere un determinato range di frequenze.
import("stdfaust.lib");
pippo = vslider ("cut-off [style:knob]" , 500, 100, 20000, 10);
process = fi.lowpass(2,pippo) : fi.highpass(2,pippo);
| https://raw.githubusercontent.com/LSSN/2020-01-23-2a-dsp-stefcongeddu03/8eabd16d06ade9de7188b1a8524eef949465ca78/verifica.dsp | faust | la sintesi sottrattiva è una tecnica di sintesi sonora che filtra una sorgente sonora che può contenere varie armoniche,
vine utilizzata sottraendo o modificando bande di frequenza per ottenere un determinato range di frequenze. |
import("stdfaust.lib");
pippo = vslider ("cut-off [style:knob]" , 500, 100, 20000, 10);
process = fi.lowpass(2,pippo) : fi.highpass(2,pippo);
|
c31cd7a384cab7c492c85850898e33b5dc073158f67009059d926c12b2d6a475 | polyeffects/PolyLV2 | chorus_ext.dsp | import("stdfaust.lib");
voices = 6; // MUST BE EVEN
// process = _,_:ba.bypass1to2(cbp,chorus_mono(dmax,curdel,sigma,do2,voices, _));
dmax = 8192;
curdel = dmax * vslider("[0] Delay [midi:ctrl 4] [style:knob]", 0.5, 0, 1, 1) : si.smooth(0.999);
depth = vslider("[4] Depth [midi:ctrl 3] [style:knob]", 0.5, 0, 1, 0.001) : si.smooth(ba.tau2pole(depthT60/6.91));
depthT60 = 0.15661;
delayPerVoice = 0.5*curdel/voices;
sigma = delayPerVoice * vslider("[6] Deviation [midi:ctrl 58] [style:knob]",0.5,0,1,0.001) : si.smooth(0.999);
do2 = depth;
chorus_mono(dmax,curdel,sigma,do2,voices, lfo)
= _ <: (*(1-do2)<:_,_),(*(do2) <: par(i,voices,voice(i)) :> _,_) : ro.interleave(2,2) : +,+
with {
angle(i) = 2*ma.PI*(i/2)/voices + (i%2)*ma.PI/2;
voice(i) = de.fdelay(dmax,min(dmax,del(i))) * cos(angle(i));
del(i) = curdel*(i+1)/voices + dev(i);
dev(i) = sigma * sin(lfo+(i*2*ma.PI/voices));
};
chorus(lfo) = chorus_mono(dmax,curdel,sigma,do2,voices, lfo);
process = chorus;
// process = chorus_mono(dmax,curdel,sigma,do2,voices, lfo);
| https://raw.githubusercontent.com/polyeffects/PolyLV2/a363599f74fd1bce0b3744221e1883fdbe89c557/poly_chorus_ext/chorus_ext.dsp | faust | MUST BE EVEN
process = _,_:ba.bypass1to2(cbp,chorus_mono(dmax,curdel,sigma,do2,voices, _));
process = chorus_mono(dmax,curdel,sigma,do2,voices, lfo); | import("stdfaust.lib");
dmax = 8192;
curdel = dmax * vslider("[0] Delay [midi:ctrl 4] [style:knob]", 0.5, 0, 1, 1) : si.smooth(0.999);
depth = vslider("[4] Depth [midi:ctrl 3] [style:knob]", 0.5, 0, 1, 0.001) : si.smooth(ba.tau2pole(depthT60/6.91));
depthT60 = 0.15661;
delayPerVoice = 0.5*curdel/voices;
sigma = delayPerVoice * vslider("[6] Deviation [midi:ctrl 58] [style:knob]",0.5,0,1,0.001) : si.smooth(0.999);
do2 = depth;
chorus_mono(dmax,curdel,sigma,do2,voices, lfo)
= _ <: (*(1-do2)<:_,_),(*(do2) <: par(i,voices,voice(i)) :> _,_) : ro.interleave(2,2) : +,+
with {
angle(i) = 2*ma.PI*(i/2)/voices + (i%2)*ma.PI/2;
voice(i) = de.fdelay(dmax,min(dmax,del(i))) * cos(angle(i));
del(i) = curdel*(i+1)/voices + dev(i);
dev(i) = sigma * sin(lfo+(i*2*ma.PI/voices));
};
chorus(lfo) = chorus_mono(dmax,curdel,sigma,do2,voices, lfo);
process = chorus;
|
d95ce6391b9cba7f4dae60797a56d4a67eae208c997de107c02f4e76283db83d | angelamurtas/Programmazione- | mixer.dsp | import("stdfaust.lib");
fader1 =vslider("[01] volume1" , 0., 0., 2., 0.01);
fader2 =vslider("[02]volume2" , 0., 0., 2., 0.01);
fader3 =vslider("[03]volume3" , 0., 0., 2., 0.01);
fader4 =vslider("[04]volume4" , 0., 0., 2., 0.01);
fader5 =vslider("[05]volume5" , 0., 0., 2., 0.01);
fader6 =vslider("[06]volume6" , 0., 0., 2., 0.01);
fader7 =vslider("[07]volume7" , 0., 0., 2., 0.01);
fader8 =vslider("[08]volume8" , 0., 0., 2., 0.01);
fader9 =vslider("[09]volume9" , 0., 0., 2., 0.01);
fader10 =vslider("[10]volume10" , 0., 0., 2., 0.01);
fader11 =vslider("[11]volume11" , 0., 0., 2., 0.01);
fader12 =vslider("[12]volume12" , 0., 0., 2., 0.01);
fader13 =vslider("[13]volume13" , 0., 0., 2., 0.01);
fader14 =vslider("[14]volume14" , 0., 0., 2., 0.01);
fader15 =vslider("[15]volume15" , 0., 0., 2., 0.01);
fader16 =vslider("[16]volume16" , 0., 0., 2., 0.01);
process= hgroup("mixer", _ *(fader1),_ *(fader2),_ *(fader3),_ *(fader4),_ *(fader5),_ *(fader6),_ *(fader7),_ *(fader8),_ *(fader9),_ *(fader10),_ *(fader11),_ *(fader12),_ *(fader13),_ *(fader14),_ *(fader15),_ *(fader16) ): +,+,+,+,+,+,+,+ : +,+,+,+ : +,+;
//valore di inizializzazione (valore che troviamo all'inizio quando si avvia il programma ,stato iniziale)valore minimo valore massimo step incrementale (definizione della grandezza dei gradini tra il valore minimo e il valore massimo )
| https://raw.githubusercontent.com/angelamurtas/Programmazione-/bf8cf329460acf7334c7c4c11953ddcdf6d7e612/mixer.dsp | faust | valore di inizializzazione (valore che troviamo all'inizio quando si avvia il programma ,stato iniziale)valore minimo valore massimo step incrementale (definizione della grandezza dei gradini tra il valore minimo e il valore massimo ) | import("stdfaust.lib");
fader1 =vslider("[01] volume1" , 0., 0., 2., 0.01);
fader2 =vslider("[02]volume2" , 0., 0., 2., 0.01);
fader3 =vslider("[03]volume3" , 0., 0., 2., 0.01);
fader4 =vslider("[04]volume4" , 0., 0., 2., 0.01);
fader5 =vslider("[05]volume5" , 0., 0., 2., 0.01);
fader6 =vslider("[06]volume6" , 0., 0., 2., 0.01);
fader7 =vslider("[07]volume7" , 0., 0., 2., 0.01);
fader8 =vslider("[08]volume8" , 0., 0., 2., 0.01);
fader9 =vslider("[09]volume9" , 0., 0., 2., 0.01);
fader10 =vslider("[10]volume10" , 0., 0., 2., 0.01);
fader11 =vslider("[11]volume11" , 0., 0., 2., 0.01);
fader12 =vslider("[12]volume12" , 0., 0., 2., 0.01);
fader13 =vslider("[13]volume13" , 0., 0., 2., 0.01);
fader14 =vslider("[14]volume14" , 0., 0., 2., 0.01);
fader15 =vslider("[15]volume15" , 0., 0., 2., 0.01);
fader16 =vslider("[16]volume16" , 0., 0., 2., 0.01);
process= hgroup("mixer", _ *(fader1),_ *(fader2),_ *(fader3),_ *(fader4),_ *(fader5),_ *(fader6),_ *(fader7),_ *(fader8),_ *(fader9),_ *(fader10),_ *(fader11),_ *(fader12),_ *(fader13),_ *(fader14),_ *(fader15),_ *(fader16) ): +,+,+,+,+,+,+,+ : +,+,+,+ : +,+;
|
ca9205effbbd5f3d20053f44f15d8b1b6421bb342d7bcc4e10c3459e59f3f779 | odahoda/noisicaa | processor.dsp | /*
* @begin:license
*
* Copyright (c) 2015-2019, Benjamin Niemann <[email protected]>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @end:license
*/
declare name "VCA";
declare uri "builtin://vca";
declare input0_name "in";
declare input0_display_name "Audio Input";
declare input0_type "AUDIO";
declare input1_name "amp";
declare input1_display_name "Amplification";
declare input1_type "ARATE_CONTROL";
declare input1_float_value "0.0 1.0 0.0";
declare output0_name "out";
declare output0_display_name "Audio Output";
declare output0_type "AUDIO";
import("stdfaust.lib");
smooth = hslider(
"smooth[display_name:Smooth]",
0.0, 0.0, 1.0, 0.01);
vca(in, amp) = si.smooth(ba.tau2pole(smooth * 0.05), amp) * in;
process = vca;
| https://raw.githubusercontent.com/odahoda/noisicaa/9da22235f27f3f651480e2fab2250e5b0974e9e9/noisicaa/builtin_nodes/vca/processor.dsp | faust |
* @begin:license
*
* Copyright (c) 2015-2019, Benjamin Niemann <[email protected]>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @end:license
|
declare name "VCA";
declare uri "builtin://vca";
declare input0_name "in";
declare input0_display_name "Audio Input";
declare input0_type "AUDIO";
declare input1_name "amp";
declare input1_display_name "Amplification";
declare input1_type "ARATE_CONTROL";
declare input1_float_value "0.0 1.0 0.0";
declare output0_name "out";
declare output0_display_name "Audio Output";
declare output0_type "AUDIO";
import("stdfaust.lib");
smooth = hslider(
"smooth[display_name:Smooth]",
0.0, 0.0, 1.0, 0.01);
vca(in, amp) = si.smooth(ba.tau2pole(smooth * 0.05), amp) * in;
process = vca;
|
2647dd8ebd4de5b1f9d1f2fec77e6729c99d666b2b4b8dd8eafb18f80fb8b200 | odahoda/noisicaa | processor.dsp | /*
* @begin:license
*
* Copyright (c) 2015-2019, Benjamin Niemann <[email protected]>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @end:license
*/
declare name "Oscillator";
declare uri "builtin://oscillator";
declare input0_name "freq";
declare input0_display_name "Frequency (Hz)";
declare input0_float_value "1 20000 440";
declare input0_scale "log";
declare input0_type "ARATE_CONTROL,AUDIO";
declare output0_name "out";
declare output0_display_name "Output";
declare output0_type "ARATE_CONTROL,AUDIO";
import("stdfaust.lib");
sine = os.osc;
sawtooth = os.sawtooth;
square = os.square;
shape = nentry(
"waveform[display_name:Waveform][style:menu{'Sine':0.0; 'Sawtooth':1.0; 'Square':2.0}]",
0.0, 0.0, 2.0, 1.0);
oscillator(freq) = sine(freq), sawtooth(freq), square(freq) : select3(shape);
process = oscillator;
| https://raw.githubusercontent.com/odahoda/noisicaa/9da22235f27f3f651480e2fab2250e5b0974e9e9/noisicaa/builtin_nodes/oscillator/processor.dsp | faust |
* @begin:license
*
* Copyright (c) 2015-2019, Benjamin Niemann <[email protected]>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @end:license
|
declare name "Oscillator";
declare uri "builtin://oscillator";
declare input0_name "freq";
declare input0_display_name "Frequency (Hz)";
declare input0_float_value "1 20000 440";
declare input0_scale "log";
declare input0_type "ARATE_CONTROL,AUDIO";
declare output0_name "out";
declare output0_display_name "Output";
declare output0_type "ARATE_CONTROL,AUDIO";
import("stdfaust.lib");
sine = os.osc;
sawtooth = os.sawtooth;
square = os.square;
shape = nentry(
"waveform[display_name:Waveform][style:menu{'Sine':0.0; 'Sawtooth':1.0; 'Square':2.0}]",
0.0, 0.0, 2.0, 1.0);
oscillator(freq) = sine(freq), sawtooth(freq), square(freq) : select3(shape);
process = oscillator;
|
e249d6d49be01a8f8cae106316ac9c405e2183f23c083ee833c52e7cd0ad3ec6 | rmichon/cph-fall22 | main.dsp | import("stdfaust.lib");
import("logic.dsp");
/**
* Cochlear implant simulation
*/
// normal, noise, sinewave
simulation = _ <: *(g1*0.5), g2*noise(N), g3*sine(N) :> *(vol)
with {
// amount of channels (2 to 9)
N = 9;
// volume
vol = hslider("Volume",1,0,2,0.01);
// gates
g1 = checkbox("[0]Normal");
g2 = checkbox("[1]Noise");
g3 = checkbox("[2]Sinewave");
};
process = simulation; | https://raw.githubusercontent.com/rmichon/cph-fall22/b60a72e34af35709c92dfd3bb559d9b1c1a546d4/final-projects/ch_steinhauer/main.dsp | faust | *
* Cochlear implant simulation
normal, noise, sinewave
amount of channels (2 to 9)
volume
gates | import("stdfaust.lib");
import("logic.dsp");
simulation = _ <: *(g1*0.5), g2*noise(N), g3*sine(N) :> *(vol)
with {
N = 9;
vol = hslider("Volume",1,0,2,0.01);
g1 = checkbox("[0]Normal");
g2 = checkbox("[1]Noise");
g3 = checkbox("[2]Sinewave");
};
process = simulation; |
57144e1b6788109f6f16580278f9c482bb09e6a892806ddeaf230c2d8a697c56 | DISTRHO/Fadeli | dynamic-noiseGate.dsp | declare name "noiseGate";
declare version "0.0";
declare author "JOS, revised by RM";
declare description "Gate demo application.";
import("stdfaust.lib");
process = dm.gate_demo;
| https://raw.githubusercontent.com/DISTRHO/Fadeli/5e8b0f3619eef668ac5772fd39e49b6486509ef3/dsp/dynamic-noiseGate.dsp | faust | declare name "noiseGate";
declare version "0.0";
declare author "JOS, revised by RM";
declare description "Gate demo application.";
import("stdfaust.lib");
process = dm.gate_demo;
|
|
bd2cd89dad344645aedfcb0c14e0237db7d3e52d04d5ca137557563ca9000993 | LucaSpanedda/Musical_Studies_of_Chaotic_Systems | 1.01_Logistic_Map.dsp | // import Standard Faust library
// https://github.com/grame-cncm/faustlibraries/
import("stdfaust.lib");
// Logistic Map - simple non-linear dynamical equation
// starting population (x) = number from 0. to 1.
// resources of the population (r) = number from 0. to 4.
logisticmap(x,r) = mapfunc
with{
Dirac(x) = x-(x:mem);
lmap(x) = x*r*(1-x);
mapfunc = x : Dirac : (+ : lmap)~ _;
};
process = logisticmap(0.5,3.9468) <: _,_; | https://raw.githubusercontent.com/LucaSpanedda/Musical_Studies_of_Chaotic_Systems/d8b78c011cc0b2b75f74643eba78306d6a3f92df/1.01_Logistic_Map.dsp | faust | import Standard Faust library
https://github.com/grame-cncm/faustlibraries/
Logistic Map - simple non-linear dynamical equation
starting population (x) = number from 0. to 1.
resources of the population (r) = number from 0. to 4. | import("stdfaust.lib");
logisticmap(x,r) = mapfunc
with{
Dirac(x) = x-(x:mem);
lmap(x) = x*r*(1-x);
mapfunc = x : Dirac : (+ : lmap)~ _;
};
process = logisticmap(0.5,3.9468) <: _,_; |
22b7f7c1ceee00bc5616e745d79a632edd15b2ee1c7ace5afd1459e287c3f7a1 | magnetophon/DigiDrie | tan_halfpi_approx.dsp | import("stdfaust.lib");
// Only valid in [0, 0.498). 0.5 is nyquist frequency.
tan_halfpi_approx(x) = (
4.189308700355015e-05 +
4.290568649086532 * x +
-2.657498976290899 * x * x +
-1.5163927048819992 * x * x * x
) / (
1.3667229106607917 +
-0.8644224895636948 * x +
-4.828883069406347 * x * x +
2.181672945531366 * x * x * x
);
process = _ * 0.5 : max(0) : min(0.498)
: tan_halfpi_approx;
| https://raw.githubusercontent.com/magnetophon/DigiDrie/a9f79d502e1f8d522e5f47e0c460ae99e80f9441/faust/benchmark/tan_halfpi/tan_halfpi_approx.dsp | faust | Only valid in [0, 0.498). 0.5 is nyquist frequency. | import("stdfaust.lib");
tan_halfpi_approx(x) = (
4.189308700355015e-05 +
4.290568649086532 * x +
-2.657498976290899 * x * x +
-1.5163927048819992 * x * x * x
) / (
1.3667229106607917 +
-0.8644224895636948 * x +
-4.828883069406347 * x * x +
2.181672945531366 * x * x * x
);
process = _ * 0.5 : max(0) : min(0.498)
: tan_halfpi_approx;
|
cf6025e7732ec107866fe199accb0247ea45d9db1f7de44cb89677fdf2943089 | SuyashRamteke/FAUST---Real-time-Audio-Signal-Processing | breathcontrol_mobileapp.dsp | declare interface "SmartKeyboard{
'Number of Keyboards':'2',
'Max Keyboard Polyphony':'12',
'Keyboard 0 - Number of Keys':'4',
'Keyboard 1 - Number of Keys':'4',
'Keyboard 0 - Lowest Key':'60',
'Keyboard 1 - Lowest Key':'67',
'Keyboard 0 - Scale':'2',
'Keyboard 1 - Scale':'2',
'Rounding Mode':'0'
}";
import("stdfaust.lib");
freq = hslider("freq", 440, 100, 1000, 0.01);
gain = hslider("gain", 0.5, 0, 1, 0.01);
gate = button("gate") : en.adsr(0.01, 0.01, 0.9, 0.1);
timbre(f) = os.sawtooth(f)*0.5 + os.sawtooth(f*2)*0.25 + os.sawtooth(f*4)*0.125;
process = gain*gate*timbre(freq)*0.5 <: _,_;
effect = dm.zita_light;
| https://raw.githubusercontent.com/SuyashRamteke/FAUST---Real-time-Audio-Signal-Processing/ca24b8d650b6d77435d8128b0aa8e4d8b6022c30/breathcontrol_mobileapp.dsp | faust | declare interface "SmartKeyboard{
'Number of Keyboards':'2',
'Max Keyboard Polyphony':'12',
'Keyboard 0 - Number of Keys':'4',
'Keyboard 1 - Number of Keys':'4',
'Keyboard 0 - Lowest Key':'60',
'Keyboard 1 - Lowest Key':'67',
'Keyboard 0 - Scale':'2',
'Keyboard 1 - Scale':'2',
'Rounding Mode':'0'
}";
import("stdfaust.lib");
freq = hslider("freq", 440, 100, 1000, 0.01);
gain = hslider("gain", 0.5, 0, 1, 0.01);
gate = button("gate") : en.adsr(0.01, 0.01, 0.9, 0.1);
timbre(f) = os.sawtooth(f)*0.5 + os.sawtooth(f*2)*0.25 + os.sawtooth(f*4)*0.125;
process = gain*gate*timbre(freq)*0.5 <: _,_;
effect = dm.zita_light;
|
|
cc3ad09248eb60a32c8e5ddab6172eedc50f7a0966fa98129b1cf131e3aaabee | darkoverlordofdata/amp-sim-faust | distortion.dsp | declare name "amp-sim";
declare version "0.1";
declare author "darkoverlordofdata";
declare description "Amplifier demo application.";
declare license "MIT";
declare copyright "(c)DarkOverlordOfData 2021";
import("stdfaust.lib");
// import("layout2.dsp");
// 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
process =
dm.cubicnl_demo;// distortion
| https://raw.githubusercontent.com/darkoverlordofdata/amp-sim-faust/df478c01ed3763795c11779faa47a4b9d0f6de37/src/guitar/distortion.dsp | faust | import("layout2.dsp");
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
distortion | declare name "amp-sim";
declare version "0.1";
declare author "darkoverlordofdata";
declare description "Amplifier demo application.";
declare license "MIT";
declare copyright "(c)DarkOverlordOfData 2021";
import("stdfaust.lib");
process =
|
98232ecdb054b6d5060b029304f6bbacf20489d20773ae65ea06b3966674ee53 | tognitete/BJT | WeirdPhaser.dsp | declare name "Weird Phaser";
declare description "Stereo Phaser based on SSB Modulation";
declare author "Oli Larkin ([email protected])";
declare copyright "Oliver Larkin";
declare version "0.1";
declare licence "GPL";
import("IIRHilbert.lib");
import("stdfaust.lib");
// Generic bypass mecanism
bypass = checkbox("bypass");
block_on(fx) = par(i, inputs(fx), _*(1-bypass));
block_off(fx) = par(i, inputs(fx), _*bypass);
bypass_fx(fx) = par(i, inputs(fx), _) <: ((block_on(fx):fx), block_off(fx)):> par(i, outputs(fx), _);
mix = 0.5;
maxfeedback = 0.7;
rate = hslider("Rate [unit:hz] [OWL:PARAMETER_A]", 0, 0., 1, 0.001);
rateScalar = hslider("Rate Scalar [OWL:PARAMETER_B]", 1., 1., 40., 0.001);
offset = hslider("L-R Offset [OWL:PARAMETER_C]", 0., 0., 1., 0.001) * 0.5;
fbk = hslider("Feedback [OWL:PARAMETER_D]", 0., 0, 1., 0.01) : *(maxfeedback) : si.smooth(ba.tau2pole(0.005));
ssbfreqshift(x, offset) = (+ : negative) ~ (*(fbk) : clip(-1, 1))
with {
negative(x) = real(x)*cosv - imag(x)*sinv;
positive(x) = real(x)*cosv + imag(x)*sinv;
real(x) = hilbert(x) : _ , !;
imag(x) = hilbert(x) : ! , _;
phasor = fmod(((rate*rateScalar)/float(ma.SR) : (+ : ma.decimal) ~ _)+offset, 1.) * (2*ma.PI);
sinv = sin(phasor);
cosv = cos(phasor);
hilbert = hilbertef;
clip(lo,hi) = min(hi) : max(lo);
};
weirdphaser(l,r) = l,r <: *(1-mix), *(1-mix), ssbfreqshift(l, 0.)*mix, ssbfreqshift(r, offset)*mix :> _,_;
process = bypass_fx(weirdphaser); | https://raw.githubusercontent.com/tognitete/BJT/2818b850f2531bb8a0e84ab0f53f66b33bb256d0/server-side/plugin-services/plugins/WeirdPhaser/Original%20Faust%20Code/WeirdPhaser.dsp | faust | Generic bypass mecanism | declare name "Weird Phaser";
declare description "Stereo Phaser based on SSB Modulation";
declare author "Oli Larkin ([email protected])";
declare copyright "Oliver Larkin";
declare version "0.1";
declare licence "GPL";
import("IIRHilbert.lib");
import("stdfaust.lib");
bypass = checkbox("bypass");
block_on(fx) = par(i, inputs(fx), _*(1-bypass));
block_off(fx) = par(i, inputs(fx), _*bypass);
bypass_fx(fx) = par(i, inputs(fx), _) <: ((block_on(fx):fx), block_off(fx)):> par(i, outputs(fx), _);
mix = 0.5;
maxfeedback = 0.7;
rate = hslider("Rate [unit:hz] [OWL:PARAMETER_A]", 0, 0., 1, 0.001);
rateScalar = hslider("Rate Scalar [OWL:PARAMETER_B]", 1., 1., 40., 0.001);
offset = hslider("L-R Offset [OWL:PARAMETER_C]", 0., 0., 1., 0.001) * 0.5;
fbk = hslider("Feedback [OWL:PARAMETER_D]", 0., 0, 1., 0.01) : *(maxfeedback) : si.smooth(ba.tau2pole(0.005));
ssbfreqshift(x, offset) = (+ : negative) ~ (*(fbk) : clip(-1, 1))
with {
negative(x) = real(x)*cosv - imag(x)*sinv;
positive(x) = real(x)*cosv + imag(x)*sinv;
real(x) = hilbert(x) : _ , !;
imag(x) = hilbert(x) : ! , _;
phasor = fmod(((rate*rateScalar)/float(ma.SR) : (+ : ma.decimal) ~ _)+offset, 1.) * (2*ma.PI);
sinv = sin(phasor);
cosv = cos(phasor);
hilbert = hilbertef;
clip(lo,hi) = min(hi) : max(lo);
};
weirdphaser(l,r) = l,r <: *(1-mix), *(1-mix), ssbfreqshift(l, 0.)*mix, ssbfreqshift(r, offset)*mix :> _,_;
process = bypass_fx(weirdphaser); |
f11e95a5d2b4eca7dd5b9a56245823d1f75382cb1876bf02f956beab17a753f0 | tognitete/BJT | Blipper.dsp | declare name "Blipper";
declare description "Envelope Follower controlling pitch of a triangle oscillator, good with percussive input";
declare author "Oli Larkin ([email protected])";
declare copyright "Oliver Larkin";
declare version "0.2";
declare licence "GPL";
import("stdfaust.lib");
// Generic bypass mecanism
bypass = checkbox("bypass");
block_on(fx) = par(i, inputs(fx), _*(1-bypass));
block_off(fx) = par(i, inputs(fx), _*bypass);
bypass_fx(fx) = par(i, inputs(fx), _) <: ((block_on(fx):fx), block_off(fx)):> par(i, outputs(fx), _);
basepitch = hslider("BasePitch [unit:semitones] [OWL:PARAMETER_A]", 60, 24, 96, 0.1) : si.smooth(ba.tau2pole(0.01));
pitchmod = hslider("PitchMod [unit:semitones] [OWL:PARAMETER_B]", 24, -64, 64, 1) : si.smooth(ba.tau2pole(0.005));
//attack = hslider("Attack [unit:ms] [OWL:PARAMETER_C]", 2, 2, 1000, 1) : *(0.001) : max(1.0/float(ma.SR));
release = hslider("Release [unit:ms] [OWL:PARAMETER_C]", 20, 2, 100, 1) : *(0.001) : max(1.0/float(ma.SR));
attack = 0.005;
mix = hslider("Mix[OWL:PARAMETER_D]", 0.5, 0, 1, 0.01) : si.smooth(ba.tau2pole(0.005));
blipper(l, r) = l, r <: *(1-mix), *(1-mix), mono2stereo :> _,_
with {
mono2stereo = + : pc2 * mix <: _,_;
pc2 = an.amp_follower_ud(attack, release) <: (ba.midikey2hz(basepitch + (pitchmod * _)): os.triangle), _ : *;
};
process = bypass_fx(blipper);
| https://raw.githubusercontent.com/tognitete/BJT/2818b850f2531bb8a0e84ab0f53f66b33bb256d0/server-side/plugin-services/plugins/Blipper/Original%20Faust%20Code/Blipper.dsp | faust | Generic bypass mecanism
attack = hslider("Attack [unit:ms] [OWL:PARAMETER_C]", 2, 2, 1000, 1) : *(0.001) : max(1.0/float(ma.SR)); | declare name "Blipper";
declare description "Envelope Follower controlling pitch of a triangle oscillator, good with percussive input";
declare author "Oli Larkin ([email protected])";
declare copyright "Oliver Larkin";
declare version "0.2";
declare licence "GPL";
import("stdfaust.lib");
bypass = checkbox("bypass");
block_on(fx) = par(i, inputs(fx), _*(1-bypass));
block_off(fx) = par(i, inputs(fx), _*bypass);
bypass_fx(fx) = par(i, inputs(fx), _) <: ((block_on(fx):fx), block_off(fx)):> par(i, outputs(fx), _);
basepitch = hslider("BasePitch [unit:semitones] [OWL:PARAMETER_A]", 60, 24, 96, 0.1) : si.smooth(ba.tau2pole(0.01));
pitchmod = hslider("PitchMod [unit:semitones] [OWL:PARAMETER_B]", 24, -64, 64, 1) : si.smooth(ba.tau2pole(0.005));
release = hslider("Release [unit:ms] [OWL:PARAMETER_C]", 20, 2, 100, 1) : *(0.001) : max(1.0/float(ma.SR));
attack = 0.005;
mix = hslider("Mix[OWL:PARAMETER_D]", 0.5, 0, 1, 0.01) : si.smooth(ba.tau2pole(0.005));
blipper(l, r) = l, r <: *(1-mix), *(1-mix), mono2stereo :> _,_
with {
mono2stereo = + : pc2 * mix <: _,_;
pc2 = an.amp_follower_ud(attack, release) <: (ba.midikey2hz(basepitch + (pitchmod * _)): os.triangle), _ : *;
};
process = bypass_fx(blipper);
|
e017bc6a293d954ae9af444a5dbda936db857ae27a7db09f2a2205acf37ac707 | ccrma/chugins | string.dsp | import("stdfaust.lib");
frequency = hslider("freq",440,51,2000,0.01);
gain = hslider("gain",1,0,1,0.01);
feedback = hslider("feedback",0.995,0,1,0.01);
trig = button("gate");
beta = hslider("pick_position", 0.13, 0.02, 0.5, 0.01);
stringsFadeTime = hslider("fadeTime",2,0,50,0.1)*0.001;
fadeDelay(n,d,tau) = _ <: de.fdelay1(n,delLength1)*(gsmooth),de.fdelay1(n,delLength2)*(1-gsmooth) :> _
with{
swit(t) = +(t)~_ : %(2);
g = (d != d') : swit; //'
gsmooth = g : si.smooth(ma.tau2pole(tau));
hold(t,x) = (_*(t)+(x'*(t != t'))~_)*t + x*(1-t);
delLength1 = hold(1-g,d) : min(15000) : max(1);
delLength2 = hold(g,d) : min(15000) : max(1);
};
myString(freq,feedback) = +~(de.fdelay4(1024,delLength) <: (_+_')/2 : *(feedback))
//myString(freq,feedback) = +~(fadeDelay(1024,delLength,stringsFadeTime) <: (_+_')/2 : *(feedback))
with{
delLength = ma.SR/freq - 1;
};
noiseburst(g,P) = no.noise : *(g : trigger(P))*gain : pickposfilter
with {
diffgtz(x) = (x-x') > 0;
decay(n,x) = x - (x>0)/n;
release(n) = + ~ decay(n);
trigger(n) = diffgtz : release(n) : > (0.0);
ppdel = beta*P; // pick position delay
pickposfilter = fi.ffcombfilter(4096,ppdel,-1); // defined in filter.lib
};
process = noiseburst(trig,(ma.SR/frequency)) : fi.lowpass(3,frequency) : myString(frequency,feedback);
| https://raw.githubusercontent.com/ccrma/chugins/77c42916342274dd0181adc7e6d9094cf0b65640/Faust/examples/string.dsp | faust | '
myString(freq,feedback) = +~(fadeDelay(1024,delLength,stringsFadeTime) <: (_+_')/2 : *(feedback))
pick position delay
defined in filter.lib | import("stdfaust.lib");
frequency = hslider("freq",440,51,2000,0.01);
gain = hslider("gain",1,0,1,0.01);
feedback = hslider("feedback",0.995,0,1,0.01);
trig = button("gate");
beta = hslider("pick_position", 0.13, 0.02, 0.5, 0.01);
stringsFadeTime = hslider("fadeTime",2,0,50,0.1)*0.001;
fadeDelay(n,d,tau) = _ <: de.fdelay1(n,delLength1)*(gsmooth),de.fdelay1(n,delLength2)*(1-gsmooth) :> _
with{
swit(t) = +(t)~_ : %(2);
gsmooth = g : si.smooth(ma.tau2pole(tau));
hold(t,x) = (_*(t)+(x'*(t != t'))~_)*t + x*(1-t);
delLength1 = hold(1-g,d) : min(15000) : max(1);
delLength2 = hold(g,d) : min(15000) : max(1);
};
myString(freq,feedback) = +~(de.fdelay4(1024,delLength) <: (_+_')/2 : *(feedback))
with{
delLength = ma.SR/freq - 1;
};
noiseburst(g,P) = no.noise : *(g : trigger(P))*gain : pickposfilter
with {
diffgtz(x) = (x-x') > 0;
decay(n,x) = x - (x>0)/n;
release(n) = + ~ decay(n);
trigger(n) = diffgtz : release(n) : > (0.0);
};
process = noiseburst(trig,(ma.SR/frequency)) : fi.lowpass(3,frequency) : myString(frequency,feedback);
|
2e6fc9e33e6c60c109735566f165f09cb8572b96dfcaf0253221e1bf7171cf7f | JordanPaoletti/exploring-faust | naive-wavetable-sin.dsp | declare name "Pre-Calculated Wavetable Osc";
import("stdfaust.lib");
//define wavetables
table_size = 512;
sin_wave_table = float(ba.time) * 2 * ma.PI / table_size : sin;
//ui elements
ui_freq = hslider("[0]freq", 440, 50, 2000, 0.1) : si.smoo;
// not used. Would need to be adjusted so the max value is exclusive
table_phasor(freq) = (+(freq / ma.SR) ~ ma.frac) * table_size;
/*
rdtable doesn't seem to interpolate between samples as the index can only be an int.
While the oscilloscope appears smooth, the spectroscope shows various higher harmonics (and lower from aliasing).
*/
sin_osc(freq) = int(os.phasor(table_size, freq)) : rdtable(table_size, sin_wave_table);
wave = sin_osc(ui_freq);
process = os.osc(ui_freq) * 0.5; | https://raw.githubusercontent.com/JordanPaoletti/exploring-faust/ea576be0173c64d431acae15a4e6b8a0112454fc/src/examples/naive-wavetable-sin.dsp | faust | define wavetables
ui elements
not used. Would need to be adjusted so the max value is exclusive
rdtable doesn't seem to interpolate between samples as the index can only be an int.
While the oscilloscope appears smooth, the spectroscope shows various higher harmonics (and lower from aliasing).
| declare name "Pre-Calculated Wavetable Osc";
import("stdfaust.lib");
table_size = 512;
sin_wave_table = float(ba.time) * 2 * ma.PI / table_size : sin;
ui_freq = hslider("[0]freq", 440, 50, 2000, 0.1) : si.smoo;
table_phasor(freq) = (+(freq / ma.SR) ~ ma.frac) * table_size;
sin_osc(freq) = int(os.phasor(table_size, freq)) : rdtable(table_size, sin_wave_table);
wave = sin_osc(ui_freq);
process = os.osc(ui_freq) * 0.5; |
d8f31da75ef1ccb5e2e88b6373d256fb4804d51c1e3c3ee13cbda035cd44777f | DISTRHO/Fadeli | reverb-fdnRev.dsp | declare name "fdnRev";
declare version "0.0";
declare author "JOS, Revised by RM";
declare description "A feedback delay network reverb.";
import("stdfaust.lib");
process = dm.fdnrev0_demo(16,5,3);
| https://raw.githubusercontent.com/DISTRHO/Fadeli/6f3cd85c6ba90ce94b7fa8e72ae3cb0f6c77dc75/dsp/reverb-fdnRev.dsp | faust | declare name "fdnRev";
declare version "0.0";
declare author "JOS, Revised by RM";
declare description "A feedback delay network reverb.";
import("stdfaust.lib");
process = dm.fdnrev0_demo(16,5,3);
|
|
118b43a9da12ff722fa962d2c889b492988e3302aaba559d665984455999300b | DISTRHO/Fadeli | reverb-reverbTester.dsp | declare name "reverbTester";
declare version "0.0";
declare author "RM";
declare description "Handy test inputs for reverberator demos below.";
import("stdfaust.lib");
process = dm.stereo_reverb_tester;
| https://raw.githubusercontent.com/DISTRHO/Fadeli/6f3cd85c6ba90ce94b7fa8e72ae3cb0f6c77dc75/dsp/reverb-reverbTester.dsp | faust | declare name "reverbTester";
declare version "0.0";
declare author "RM";
declare description "Handy test inputs for reverberator demos below.";
import("stdfaust.lib");
process = dm.stereo_reverb_tester;
|
|
6712b30609683c58be3625d16d0695401edd2f071ec428a780e2af5494815d66 | LucaSpanedda/Musical_Studies_of_Chaotic_Systems | 1.02_Di_Scipio_Sine_Map.dsp | // import Standard Faust library
// https://github.com/grame-cncm/faustlibraries/
import("stdfaust.lib");
// Sine Map by Agostino Di Scipio
// reference :
// https://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.33.5855&rep=rep1&type=pdf
sinemap(y0, mu) = y
letrec {
'y = mu * sin(ma.PI * y + y0 - y0');
};
process = sinemap(0.5, 0.97) <: _,_; | https://raw.githubusercontent.com/LucaSpanedda/Musical_Studies_of_Chaotic_Systems/d8b78c011cc0b2b75f74643eba78306d6a3f92df/1.02_Di_Scipio_Sine_Map.dsp | faust | import Standard Faust library
https://github.com/grame-cncm/faustlibraries/
Sine Map by Agostino Di Scipio
reference :
https://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.33.5855&rep=rep1&type=pdf | import("stdfaust.lib");
sinemap(y0, mu) = y
letrec {
'y = mu * sin(ma.PI * y + y0 - y0');
};
process = sinemap(0.5, 0.97) <: _,_; |
296bead21d2a908373c7e86ff1b509e71aff57164ad3c9f171312ebf90919941 | agraef/pd-remote | chorus.dsp |
/* Stereo chorus. */
declare name "chorus";
declare description "stereo chorus effect";
declare author "Albert Graef";
declare version "2.0";
import("stdfaust.lib");
level = hslider("level [midi:ctrl 93]", 0.5, 0, 1, 0.01);
freq = hslider("freq", 3, 0, 10, 0.01);
dtime = hslider("delay", 0.025, 0, 0.2, 0.001);
depth = hslider("depth", 0.02, 0, 1, 0.001);
tblosc(n,f,freq,mod) = (1-d)*rdtable(n,wave,i&(n-1)) +
d*rdtable(n,wave,(i+1)&(n-1))
with {
wave = ba.time*(2.0*ma.PI)/n : f;
phase = freq/ma.SR : (+ : ma.frac) ~ _;
modphase = ma.frac(phase+mod/(2*ma.PI))*n;
i = int(floor(modphase));
d = ma.frac(modphase);
};
chorus(dtime,freq,depth,phase,x)
= x+level*de.fdelay(1<<16, t, x)
with {
t = ma.SR*dtime/2*(1+depth*tblosc(1<<16, sin, freq, phase));
};
process = (left, right)
with {
left = chorus(dtime,freq,depth,0);
right = chorus(dtime,freq,depth,ma.PI/2);
};
| https://raw.githubusercontent.com/agraef/pd-remote/4fede0b70ac5f9544a783dd45ddcf4643a29bc63/examples/dsp/chorus.dsp | faust | Stereo chorus. |
declare name "chorus";
declare description "stereo chorus effect";
declare author "Albert Graef";
declare version "2.0";
import("stdfaust.lib");
level = hslider("level [midi:ctrl 93]", 0.5, 0, 1, 0.01);
freq = hslider("freq", 3, 0, 10, 0.01);
dtime = hslider("delay", 0.025, 0, 0.2, 0.001);
depth = hslider("depth", 0.02, 0, 1, 0.001);
tblosc(n,f,freq,mod) = (1-d)*rdtable(n,wave,i&(n-1)) +
d*rdtable(n,wave,(i+1)&(n-1))
with {
wave = ba.time*(2.0*ma.PI)/n : f;
phase = freq/ma.SR : (+ : ma.frac) ~ _;
modphase = ma.frac(phase+mod/(2*ma.PI))*n;
i = int(floor(modphase));
d = ma.frac(modphase);
};
chorus(dtime,freq,depth,phase,x)
= x+level*de.fdelay(1<<16, t, x)
with {
t = ma.SR*dtime/2*(1+depth*tblosc(1<<16, sin, freq, phase));
};
process = (left, right)
with {
left = chorus(dtime,freq,depth,0);
right = chorus(dtime,freq,depth,ma.PI/2);
};
|
033266ff753a68111788da31f12c03c252009e0e146e7b3ecd08b5a44d7eb34a | spluta/SPSynthTools | Maths.dsp | declare name "Maths";
declare version "1.1";
declare author "Sam Pluta";
declare license "BSD";
declare copyright "(c)Sam Pluta 2020";
import("stdfaust.lib");
import("MathsLib.lib");
Maths(riseDur, fallDur, logExp, onOff, plugged, trigIn) = selectSig : _,_,_
with {
selectSig = mathsC, mathsT:ro.interleave(3,2):select2(selecter),select2(selecter),select2(selecter);
freq = 1/(riseDur+fallDur);
mathsC = MathsC(riseDur, fallDur, logExp, onOff);
mathsT = MathsT(riseDur, fallDur, logExp, trigger);
x = mathsC:ba.selectn(3, 1);
trigger = ba.if(plugged>0, float(float(trigIn>0)+float(trigIn'<=0)==2.0), float(float(x>0)+float(x'<=0)==2.0));
selecter = ba.if(plugged>0, 1, 1-onOffB);
onOffB = ba.if(onOff>0, 1, 0);
};
process (riseDur, fallDur, logExp, onOff, plugged, trigIn) = Maths(riseDur, fallDur, logExp, onOff, plugged, trigIn);
| https://raw.githubusercontent.com/spluta/SPSynthTools/5959c72419ff1f8f58e9ec686b561ad420538bc2/Maths/FaustSource/Maths.dsp | faust | declare name "Maths";
declare version "1.1";
declare author "Sam Pluta";
declare license "BSD";
declare copyright "(c)Sam Pluta 2020";
import("stdfaust.lib");
import("MathsLib.lib");
Maths(riseDur, fallDur, logExp, onOff, plugged, trigIn) = selectSig : _,_,_
with {
selectSig = mathsC, mathsT:ro.interleave(3,2):select2(selecter),select2(selecter),select2(selecter);
freq = 1/(riseDur+fallDur);
mathsC = MathsC(riseDur, fallDur, logExp, onOff);
mathsT = MathsT(riseDur, fallDur, logExp, trigger);
x = mathsC:ba.selectn(3, 1);
trigger = ba.if(plugged>0, float(float(trigIn>0)+float(trigIn'<=0)==2.0), float(float(x>0)+float(x'<=0)==2.0));
selecter = ba.if(plugged>0, 1, 1-onOffB);
onOffB = ba.if(onOff>0, 1, 0);
};
process (riseDur, fallDur, logExp, onOff, plugged, trigIn) = Maths(riseDur, fallDur, logExp, onOff, plugged, trigIn);
|
|
ac3d3df0b772dde262a72e9ba57efd7dfe03a11b0259c1e82c568bcd50da33be | jinjor/faust2wasm-minimal-examples | Hello.dsp | import("stdfaust.lib");
process = no.noise * 0.2; | https://raw.githubusercontent.com/jinjor/faust2wasm-minimal-examples/1296b24265593ca78482bc866b38dba091418f3a/hello/Hello.dsp | faust | import("stdfaust.lib");
process = no.noise * 0.2; |
|
1698a3ec9135879d39a38d45b32fe2f5209f9ee85b5e5189a258903e803d7fb2 | t2techno/Faug | basicDiode.dsp | import("stdfaust.lib");
// current/voltage constants
is1 = 1e-15;
is2 = 1e-15;
vt1 = 26e-3;
vt2 = 26e-3;
// derivative of current over resistor
gr = 1.0 / 2200.0;
// Newton–Raphson loop
nr_loop(v1, v2_guess1, v2_guess2) = (gr*v1 + id1eq - id2eq) / (gr + gd1)
with {
vd1 = 0.0-v2_guess1;
ed1 = exp(vd1/vt1);
id1 = is1*ed1-is1;
gd1 = is1*ed1/vt1;
id1eq = id1 - gd1*vd1;
vd2 = v2_guess2-0.0;
ed2 = exp(vd2/vt2);
id2 = is2*ed2-is2;
gd2 = is2*ed2/vt2;
id2eq = id2 - gd2*vd2;
};
diode_clipper = nr_loop(_, 0.0, 0.0);
process = experiment <: _,_ with {
sound = os.sawtooth(440)*hslider("gain[style:knob]", 1.0, 0.0, 2.0, 0.01);
mix = hslider("mix[style:knob]",0.0, 0.0, 1.0, 0.01);
experiment = sound <: _*(1-mix) + diode_clipper(_)*mix;
}; | https://raw.githubusercontent.com/t2techno/Faug/3ed7101444d04946d08d868512eb55b37f12d03f/FaustDsp/basicDiode.dsp | faust | current/voltage constants
derivative of current over resistor
Newton–Raphson loop | import("stdfaust.lib");
is1 = 1e-15;
is2 = 1e-15;
vt1 = 26e-3;
vt2 = 26e-3;
gr = 1.0 / 2200.0;
nr_loop(v1, v2_guess1, v2_guess2) = (gr*v1 + id1eq - id2eq) / (gr + gd1)
with {
vd1 = 0.0-v2_guess1;
ed1 = exp(vd1/vt1);
id1 = is1*ed1-is1;
gd1 = is1*ed1/vt1;
id1eq = id1 - gd1*vd1;
vd2 = v2_guess2-0.0;
ed2 = exp(vd2/vt2);
id2 = is2*ed2-is2;
gd2 = is2*ed2/vt2;
id2eq = id2 - gd2*vd2;
};
diode_clipper = nr_loop(_, 0.0, 0.0);
process = experiment <: _,_ with {
sound = os.sawtooth(440)*hslider("gain[style:knob]", 1.0, 0.0, 2.0, 0.01);
mix = hslider("mix[style:knob]",0.0, 0.0, 1.0, 0.01);
experiment = sound <: _*(1-mix) + diode_clipper(_)*mix;
}; |
4391891f40bea7b8c7a86507b6f16f55e70330a35f0783967db65b626612662a | publicsamples/Quetzalcoatl | DualVCA.dsp | import("stdfaust.lib");
import("owl.lib");
vca_a = hslider("VCA_A[OWL:A]",0,0,1,0.001);
vca_b = hslider("VCA_B[OWL:B]",0,0,1,0.001);
env1_scale = hslider("ENV_SCALE1[OWL:C]",1, 0.5, 5, 0.01);
env2_scale = hslider("ENV_SCALE2[OWL:D]",1, 0.5, 5, 0.01);
b1 = button("A_MUTE[OWL:B1]") : ba.impulsify : ba.toggle;
b2 = button("B_MUTE[OWL:B2]") : ba.impulsify : ba.toggle;
env1_out = hbargraph("ENV_A>[OWL:F]", 0, 1);
env2_out = hbargraph("ENV_B>[OWL:G]", 0, 1);
env1 = _ <:attach(_, abs : si.smoo * env1_scale : env1_out);
env2 = _ <:attach(_, abs : si.smoo * env2_scale : env2_out);
process = (vca_a * (1-b1) * _), (vca_b * (1-b2) * _) : env1, env2;
| https://raw.githubusercontent.com/publicsamples/Quetzalcoatl/547f2585651af68b32072846088cc97f3c80acc0/Quetzalcoatl/DspNetworks/CodeLibrary/faust/Tutorial/02_DualVCA/DualVCA.dsp | faust | import("stdfaust.lib");
import("owl.lib");
vca_a = hslider("VCA_A[OWL:A]",0,0,1,0.001);
vca_b = hslider("VCA_B[OWL:B]",0,0,1,0.001);
env1_scale = hslider("ENV_SCALE1[OWL:C]",1, 0.5, 5, 0.01);
env2_scale = hslider("ENV_SCALE2[OWL:D]",1, 0.5, 5, 0.01);
b1 = button("A_MUTE[OWL:B1]") : ba.impulsify : ba.toggle;
b2 = button("B_MUTE[OWL:B2]") : ba.impulsify : ba.toggle;
env1_out = hbargraph("ENV_A>[OWL:F]", 0, 1);
env2_out = hbargraph("ENV_B>[OWL:G]", 0, 1);
env1 = _ <:attach(_, abs : si.smoo * env1_scale : env1_out);
env2 = _ <:attach(_, abs : si.smoo * env2_scale : env2_out);
process = (vca_a * (1-b1) * _), (vca_b * (1-b2) * _) : env1, env2;
|