_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
|
---|---|---|---|---|---|---|---|
01c08298d416e641eb915fc5d191998816e9d3450bc896fdf8e64033b51feae5
|
theyoogle/Faust-DSP
|
04 Composition Operations.dsp
|
// Audio circuits composing to build more complex ones
// Wiring/soldering operations
// Composition Operations
// Split (priority 1)
A <: B
// Merge (priority 1)
A :> B
// Sequencial (priority 2)
A : B
// Parallel (priority 3)
A , B
// Recursion (priority 4)
A ~ B
|
https://raw.githubusercontent.com/theyoogle/Faust-DSP/373f0b309ad84906043b0b53e02129cd9ce45d59/session%2002/01%20Basic%20Primitives/04%20Composition%20Operations.dsp
|
faust
|
Audio circuits composing to build more complex ones
Wiring/soldering operations
Composition Operations
Split (priority 1)
Merge (priority 1)
Sequencial (priority 2)
Parallel (priority 3)
Recursion (priority 4)
|
A <: B
A :> B
A : B
A , B
A ~ B
|
eb871ab9522b887656f10596bb34cfcb19324ed0cb643b12ed42babc21295387
|
theyoogle/Faust-DSP
|
07 Trigonometric Functions.dsp
|
// Trigonometric Functions
Arc cosine acos y(t) = acos(x(t))
Arc sine asin y(t) = asin(x(t))
Arc tangent atan y(t) = atan(x(t))
Arc tangent of 2 signals atan2 y(t) = atan2(x0(t), x1(t))
Cosine cos y(t) = cos(x(t))
Sine sin y(t) = sin(x(t))
Tangent tan y(t) = tan(x(t))
|
https://raw.githubusercontent.com/theyoogle/Faust-DSP/373f0b309ad84906043b0b53e02129cd9ce45d59/session%2002/02%20Additional%20Primitives/07%20Trigonometric%20Functions.dsp
|
faust
|
Trigonometric Functions
|
Arc cosine acos y(t) = acos(x(t))
Arc sine asin y(t) = asin(x(t))
Arc tangent atan y(t) = atan(x(t))
Arc tangent of 2 signals atan2 y(t) = atan2(x0(t), x1(t))
Cosine cos y(t) = cos(x(t))
Sine sin y(t) = sin(x(t))
Tangent tan y(t) = tan(x(t))
|
ed412e5dfaec7c173557ce5fdd5a007806c98a083e4a5fe61591033bb95a72a7
|
theyoogle/Faust-DSP
|
06 Bitwise Operators.dsp
|
// Bitwise Operators
// Bitwise AND
process = &;
// x0(t) -> |-----|
// | & | -> y(t)
// x1(t) -> |-----|
// Semantics
// y(t) = x0(t) & x1(t)
//=============================================
// Bitwise OR
process = |;
// x0(t) -> |-----|
// | | | -> y(t)
// x1(t) -> |-----|
// Semantics
// y(t) = x0(t) | x1(t)
//=============================================
// Bitwise Exclusive OR
process = xor;
// x0(t) -> |-----|
// | xor | -> y(t)
// x1(t) -> |-----|
// Semantics
// y(t) = x0(t) xor x1(t)
//=============================================
// Arithmetic Left Shift
process = <<;
// x0(t) -> |-----|
// | << | -> y(t)
// x1(t) -> |-----|
// Semantics
// y(t) = x0(t) << x1(t)
//=============================================
// Arithmetic Right Shift
process = >>;
// x0(t) -> |-----|
// | >> | -> y(t)
// x1(t) -> |-----|
// Semantics
// y(t) = x0(t) >> x1(t)
|
https://raw.githubusercontent.com/theyoogle/Faust-DSP/373f0b309ad84906043b0b53e02129cd9ce45d59/session%2002/02%20Additional%20Primitives/06%20Bitwise%20Operators.dsp
|
faust
|
Bitwise Operators
Bitwise AND
x0(t) -> |-----|
| & | -> y(t)
x1(t) -> |-----|
Semantics
y(t) = x0(t) & x1(t)
=============================================
Bitwise OR
x0(t) -> |-----|
| | | -> y(t)
x1(t) -> |-----|
Semantics
y(t) = x0(t) | x1(t)
=============================================
Bitwise Exclusive OR
x0(t) -> |-----|
| xor | -> y(t)
x1(t) -> |-----|
Semantics
y(t) = x0(t) xor x1(t)
=============================================
Arithmetic Left Shift
x0(t) -> |-----|
| << | -> y(t)
x1(t) -> |-----|
Semantics
y(t) = x0(t) << x1(t)
=============================================
Arithmetic Right Shift
x0(t) -> |-----|
| >> | -> y(t)
x1(t) -> |-----|
Semantics
y(t) = x0(t) >> x1(t)
|
process = &;
process = |;
process = xor;
process = <<;
process = >>;
|
e71e559f525a98f8eddfe3c5b6d381268195d249155e7ed6bcd0174c45011ef0
|
theyoogle/Faust-DSP
|
06 Cut Primitive.dsp
|
// Cut Primitive
process = !;
// _____
// | |
// x(t) -> |--| |
// |_____|
// Semantics
// x(t) ignored
process = !,_;
// _____
// | |
// x0(t) -> |--| |
// |_____|
// _____
// | |
// x1(t) -> |-----| -> y(t)
// |_____|
// Semantics
// y(t) = x1(t)
// x0(t) ignored
|
https://raw.githubusercontent.com/theyoogle/Faust-DSP/373f0b309ad84906043b0b53e02129cd9ce45d59/session%2002/01%20Basic%20Primitives/06%20Cut%20Primitive.dsp
|
faust
|
Cut Primitive
_____
| |
x(t) -> |--| |
|_____|
Semantics
x(t) ignored
_____
| |
x0(t) -> |--| |
|_____|
_____
| |
x1(t) -> |-----| -> y(t)
|_____|
Semantics
y(t) = x1(t)
x0(t) ignored
|
process = !;
process = !,_;
|
a4a6ad5a8145c0dd7643820a72f2119a74509166060466d22a1e5488b585a60a
|
theyoogle/Faust-DSP
|
15 Casting Functions.dsp
|
// Casting Functions
int y(t) = int(x(t))
float y(t) = float(x(t))
|
https://raw.githubusercontent.com/theyoogle/Faust-DSP/373f0b309ad84906043b0b53e02129cd9ce45d59/session%2002/02%20Additional%20Primitives/15%20Casting%20Functions.dsp
|
faust
|
Casting Functions
|
int y(t) = int(x(t))
float y(t) = float(x(t))
|
0faaa198d7dbd9cc3a8d0d20f2084c084385b0c5bdc54bea70b8dce8be877b9e
|
theyoogle/Faust-DSP
|
01 Delay Functions.dsp
|
// Delay Functions
// Note: faust signal samples will always be zero before t<0
//=============================================
// Output signal will be delayed by 1 sample
mem 1-sample delay y(t) = x(t-1)
// |-----|
// x(t) -> | mem | -> y(t) y(t) = x(t-1)
// |-----|
x(t) = 1,2,3,4,5,1,2,3,4,5,...
y(t) = 0,1,2,3,4,5,1,2,3,4,...
//=============================================
@ n-samples delay y(t) = x(t - d(t))
// x(t) -> |-----|
// | @ | -> y(t) y(t) = x(t - d(t))
// d(t) -> |-----|
x(t) = 1,2,3,4,5,1,2,3,4,5,...
t = 0,1,2,3,4,5,6,7,8,9,...
d(t) = 0,1,2,0,1,2,0,1,2,0,...
t-d(t) = 0,0,0,3,3,3,6,6,6,9,...
x(t-d(t)) = 1,1,1,4,4,4,2,2,2,5,... = y(t)
|
https://raw.githubusercontent.com/theyoogle/Faust-DSP/373f0b309ad84906043b0b53e02129cd9ce45d59/session%2002/03%20Delays%20and%20Tables/01%20Delay%20Functions.dsp
|
faust
|
Delay Functions
Note: faust signal samples will always be zero before t<0
=============================================
Output signal will be delayed by 1 sample
|-----|
x(t) -> | mem | -> y(t) y(t) = x(t-1)
|-----|
=============================================
x(t) -> |-----|
| @ | -> y(t) y(t) = x(t - d(t))
d(t) -> |-----|
|
mem 1-sample delay y(t) = x(t-1)
x(t) = 1,2,3,4,5,1,2,3,4,5,...
y(t) = 0,1,2,3,4,5,1,2,3,4,...
@ n-samples delay y(t) = x(t - d(t))
x(t) = 1,2,3,4,5,1,2,3,4,5,...
t = 0,1,2,3,4,5,6,7,8,9,...
d(t) = 0,1,2,0,1,2,0,1,2,0,...
t-d(t) = 0,0,0,3,3,3,6,6,6,9,...
x(t-d(t)) = 1,1,1,4,4,4,2,2,2,5,... = y(t)
|
dd344848446ced1a058c0746f28199d4842e0cff0cb65a8036b6a72134ad9de3
|
theyoogle/Faust-DSP
|
01 Primitives.dsp
|
// Primitives (Register, Transistors etc)
// 60 Primitives predefined
// Addition
process = +;
// x0(t) -> |-----|
// | + | -> y(t)
// x1(t) -> |-----|
// Semantics
// y(t) = x0(t) + x1(t)
//=============================================
// Absolute
process = abs;
// |-----|
// x(t) -> | abs | -> y(t)
// |-----|
// Semantics
// y(t) = |x(t)|
//=============================================
// Sine
process = sin;
// |-----|
// x(t) -> | sin | -> y(t)
// |-----|
// Semantics
// y(t) = sin(x(t))
|
https://raw.githubusercontent.com/theyoogle/Faust-DSP/373f0b309ad84906043b0b53e02129cd9ce45d59/session%2002/01%20Basic%20Primitives/01%20Primitives.dsp
|
faust
|
Primitives (Register, Transistors etc)
60 Primitives predefined
Addition
x0(t) -> |-----|
| + | -> y(t)
x1(t) -> |-----|
Semantics
y(t) = x0(t) + x1(t)
=============================================
Absolute
|-----|
x(t) -> | abs | -> y(t)
|-----|
Semantics
y(t) = |x(t)|
=============================================
Sine
|-----|
x(t) -> | sin | -> y(t)
|-----|
Semantics
y(t) = sin(x(t))
|
process = +;
process = abs;
process = sin;
|
0b022378ec72713c2277e3bda3cebc31d86c3226457331e1a7370c3eef0a3b47
|
theyoogle/Faust-DSP
|
02 Simple Volume Control.dsp
|
// Simple Volume Control
process = _, vslider("level", 0, 0, 1, 0.01) : *;
// _____
// | | |-----|
// x(t) ->|-----| --->| |
// |_____| | |
// | * | -> y(t)
// |-------| | |
// |hslider| --->| |
// |-------| |-----|
// Semantics
// y(t) = x(t) * hslider
//=============================================
// with slider values from 0 to 100
// vslider("level", 0, 0, 100, 0.01), 100 : /
// core notation
process = _, (vslider("level", 0, 0, 100, 0.01), 100 : /) : *;
//=============================================
// simple writing in infix notation
process = _, vslider("level", 0, 0, 100, 0.01)/100 : *;
// simple writing in infix notation
process = _ * vslider("level", 0, 0, 100, 0.01)/100;
|
https://raw.githubusercontent.com/theyoogle/Faust-DSP/373f0b309ad84906043b0b53e02129cd9ce45d59/session%2002/02%20Additional%20Primitives/02%20Simple%20Volume%20Control.dsp
|
faust
|
Simple Volume Control
_____
| | |-----|
x(t) ->|-----| --->| |
|_____| | |
| * | -> y(t)
|-------| | |
|hslider| --->| |
|-------| |-----|
Semantics
y(t) = x(t) * hslider
=============================================
with slider values from 0 to 100
vslider("level", 0, 0, 100, 0.01), 100 : /
core notation
=============================================
simple writing in infix notation
simple writing in infix notation
|
process = _, vslider("level", 0, 0, 1, 0.01) : *;
process = _, (vslider("level", 0, 0, 100, 0.01), 100 : /) : *;
process = _, vslider("level", 0, 0, 100, 0.01)/100 : *;
process = _ * vslider("level", 0, 0, 100, 0.01)/100;
|
7458635a220d6be3320fd790e7dc727c372b7050f48f90246077dce2774a1aea
|
theyoogle/Faust-DSP
|
03 Wire Primitive.dsp
|
// Wire Premitive
// Identity - Output is same as Input
// No modification to input signal
process = _;
// _____
// | |
// x(t) -> |-----| -> y(t)
// |_____|
// Semantics
// y(t) = x(t)
|
https://raw.githubusercontent.com/theyoogle/Faust-DSP/373f0b309ad84906043b0b53e02129cd9ce45d59/session%2002/01%20Basic%20Primitives/03%20Wire%20Primitive.dsp
|
faust
|
Wire Premitive
Identity - Output is same as Input
No modification to input signal
_____
| |
x(t) -> |-----| -> y(t)
|_____|
Semantics
y(t) = x(t)
|
process = _;
|
81fe41d27aa46a09cc58434e244c015440bbde7ce83f49646b1fbfcadb101be3
|
theyoogle/Faust-DSP
|
04 Read Only Table.dsp
|
// Read only table
x0,x1,x2 : rdtable : y;
// x0(t) -> |---------|
// | |
// x1(t) -> | rdtable | -> y(t)
// | |
// x2(t) -> |---------|
x0(t) - size of table (constant signal)
x1(t) - initial content of table
x2(t) - read index of table
|
https://raw.githubusercontent.com/theyoogle/Faust-DSP/373f0b309ad84906043b0b53e02129cd9ce45d59/session%2002/03%20Delays%20and%20Tables/04%20Read%20Only%20Table.dsp
|
faust
|
Read only table
x0(t) -> |---------|
| |
x1(t) -> | rdtable | -> y(t)
| |
x2(t) -> |---------|
|
x0,x1,x2 : rdtable : y;
x0(t) - size of table (constant signal)
x1(t) - initial content of table
x2(t) - read index of table
|
3e7399f597846d94da48a8c41a10d409aae8ec39f646f1dfc132a6f69ef26f35
|
elk-community/faust-plugins
|
glassHarmonica.dsp
|
declare name "glassHarmonica";
declare description "Nonlinear Banded Waveguide Modeled Glass Harmonica";
declare author "Romain Michon";
declare copyright "Romain Michon ([email protected])";
declare version "1.0";
declare licence "STK-4.3"; // Synthesis Tool Kit 4.3 (MIT style license);
declare description "This instrument uses banded waveguide. For more information, see Essl, G. and Cook, P. Banded Waveguides: Towards Physical Modelling of Bar Percussion Instruments, Proceedings of the 1999 International Computer Music Conference.";
import("instruments.lib");
//==================== GUI SPECIFICATION ================
freq = nentry("h:Basic_Parameters/freq [1][unit:Hz] [tooltip:Tone frequency]",440,20,20000,1);
gain = nentry("h:Basic_Parameters/gain [1][tooltip:Gain (value between 0 and 1)]",0.8,0,1,0.01);
gate = button("h:Basic_Parameters/gate [1][tooltip:noteOn = 1, noteOff = 0]");
select = nentry("h:Physical_and_Nonlinearity/v:Physical_Parameters/Excitation_Selector
[2][tooltip:0=Bow; 1=Strike]",0,0,1,1);
integrationConstant = hslider("h:Physical_and_Nonlinearity/v:Physical_Parameters/Integration_Constant
[2][tooltip:A value between 0 and 1]",0,0,1,0.01);
baseGain = hslider("h:Physical_and_Nonlinearity/v:Physical_Parameters/Base_Gain
[2][tooltip:A value between 0 and 1]",1,0,1,0.01);
bowPressure = hslider("h:Physical_and_Nonlinearity/v:Physical_Parameters/Bow_Pressure
[2][tooltip:Bow pressure on the instrument (Value between 0 and 1)]",0.2,0,1,0.01);
bowPosition = hslider("h:Physical_and_Nonlinearity/v:Physical_Parameters/Bow_Position
[2][tooltip:Bow position on the instrument (Value between 0 and 1)]",0,0,1,0.01);
typeModulation = nentry("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Modulation_Type
[3][tooltip: 0=theta is modulated by the incoming signal; 1=theta is modulated by the averaged incoming signal;
2=theta is modulated by the squared incoming signal; 3=theta is modulated by a sine wave of frequency freqMod;
4=theta is modulated by a sine wave of frequency freq;]",0,0,4,1);
nonLinearity = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Nonlinearity
[3][tooltip:Nonlinearity factor (value between 0 and 1)]",0,0,1,0.01);
frequencyMod = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Modulation_Frequency
[3][unit:Hz][tooltip:Frequency of the sine wave for the modulation of theta (works if Modulation Type=3)]",220,20,1000,0.1);
nonLinAttack = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Nonlinearity_Attack
[3][unit:s][Attack duration of the nonlinearity]",0.1,0,2,0.01);
//==================== MODAL PARAMETERS ================
preset = 3;
nMode(3) = 6;
modes(3,0) = 1.0;
basegains(3,0) = pow(0.999,1);
excitation(3,0) = 1*gain*gate/(nMode(3) - 1);
modes(3,1) = 2.32;
basegains(3,1) = pow(0.999,2);
excitation(3,1) = 1*gain*gate/(nMode(3) - 1);
modes(3,2) = 4.25;
basegains(3,2) = pow(0.999,3);
excitation(3,2) = 1*gain*gate/(nMode(3) - 1);
modes(3,3) = 6.63;
basegains(3,3) = pow(0.999,4);
excitation(3,3) = 1*gain*gate/(nMode(3) - 1);
modes(3,4) = 9.38;
basegains(3,4) = pow(0.999,5);
excitation(3,4) = 1*gain*gate/(nMode(3) - 1);
modes(3,5) = 9 : float;
basegains(3,5) = 0 : float;
excitation(3,5) = 0 : float;
//==================== SIGNAL PROCESSING ================
//----------------------- Nonlinear filter ----------------------------
//nonlinearities are created by the nonlinear passive allpass ladder filter declared in miscfilter.lib
//nonlinear filter order
nlfOrder = 6;
//nonLinearModultor is declared in instruments.lib, it adapts allpassnn from miscfilter.lib
//for using it with waveguide instruments
NLFM = nonLinearModulator((nonLinearity : si.smoo),1,freq,
typeModulation,(frequencyMod : si.smoo),nlfOrder);
//----------------------- Synthesis parameters computing and functions declaration ----------------------------
//the number of modes depends on the preset being used
nModes = nMode(preset);
//bow table parameters
tableOffset = 0;
tableSlope = 10 - (9*bowPressure);
delayLengthBase = ma.SR/freq;
//delay lengths in number of samples
delayLength(x) = delayLengthBase/modes(preset,x);
//delay lines
delayLine(x) = de.delay(4096,delayLength(x));
//Filter bank: bandpass filters (declared in instruments.lib)
radius = 1 - ma.PI*32/ma.SR;
bandPassFilter(x) = bandPass(freq*modes(preset,x),radius);
//Delay lines feedback for bow table lookup control
baseGainApp = 0.8999999999999999 + (0.1*baseGain);
velocityInputApp = integrationConstant;
velocityInput = velocityInputApp + _*baseGainApp,par(i,(nModes-1),(_*baseGainApp)) :> +;
//Bow velocity is controlled by an ADSR envelope
maxVelocity = 0.03 + 0.1*gain;
bowVelocity = maxVelocity*en.adsr(0.02,0.005,1,0.01,gate);
//stereoizer is declared in instruments.lib and implement a stereo spacialisation in function of
//the frequency period in number of samples
stereo = stereoizer(delayLengthBase);
//----------------------- Algorithm implementation ----------------------------
//Bow table lookup (bow is decalred in instruments.lib)
bowing = bowVelocity - velocityInput <: *(bow(tableOffset,tableSlope)) : /(nModes);
//One resonance
resonance(x) = + : + (excitation(preset,x)*select) : delayLine(x) : *(basegains(preset,x)) : bandPassFilter(x);
process =
//Bowed Excitation
(bowing*((select-1)*-1) <:
//nModes resonances with nModes feedbacks for bow table look-up
par(i,nModes,(resonance(i)~_)))~par(i,nModes,_) :> + :
//Signal Scaling and stereo
*(4) : NLFM : stereo : instrReverb;
|
https://raw.githubusercontent.com/elk-community/faust-plugins/79096404d4b4334dba512a3e3a8104afefb9db8d/faust-stk/glassHarmonica.dsp
|
faust
|
Synthesis Tool Kit 4.3 (MIT style license);
==================== GUI SPECIFICATION ================
==================== MODAL PARAMETERS ================
==================== SIGNAL PROCESSING ================
----------------------- Nonlinear filter ----------------------------
nonlinearities are created by the nonlinear passive allpass ladder filter declared in miscfilter.lib
nonlinear filter order
nonLinearModultor is declared in instruments.lib, it adapts allpassnn from miscfilter.lib
for using it with waveguide instruments
----------------------- Synthesis parameters computing and functions declaration ----------------------------
the number of modes depends on the preset being used
bow table parameters
delay lengths in number of samples
delay lines
Filter bank: bandpass filters (declared in instruments.lib)
Delay lines feedback for bow table lookup control
Bow velocity is controlled by an ADSR envelope
stereoizer is declared in instruments.lib and implement a stereo spacialisation in function of
the frequency period in number of samples
----------------------- Algorithm implementation ----------------------------
Bow table lookup (bow is decalred in instruments.lib)
One resonance
Bowed Excitation
nModes resonances with nModes feedbacks for bow table look-up
Signal Scaling and stereo
|
declare name "glassHarmonica";
declare description "Nonlinear Banded Waveguide Modeled Glass Harmonica";
declare author "Romain Michon";
declare copyright "Romain Michon ([email protected])";
declare version "1.0";
declare description "This instrument uses banded waveguide. For more information, see Essl, G. and Cook, P. Banded Waveguides: Towards Physical Modelling of Bar Percussion Instruments, Proceedings of the 1999 International Computer Music Conference.";
import("instruments.lib");
freq = nentry("h:Basic_Parameters/freq [1][unit:Hz] [tooltip:Tone frequency]",440,20,20000,1);
gain = nentry("h:Basic_Parameters/gain [1][tooltip:Gain (value between 0 and 1)]",0.8,0,1,0.01);
gate = button("h:Basic_Parameters/gate [1][tooltip:noteOn = 1, noteOff = 0]");
select = nentry("h:Physical_and_Nonlinearity/v:Physical_Parameters/Excitation_Selector
[2][tooltip:0=Bow; 1=Strike]",0,0,1,1);
integrationConstant = hslider("h:Physical_and_Nonlinearity/v:Physical_Parameters/Integration_Constant
[2][tooltip:A value between 0 and 1]",0,0,1,0.01);
baseGain = hslider("h:Physical_and_Nonlinearity/v:Physical_Parameters/Base_Gain
[2][tooltip:A value between 0 and 1]",1,0,1,0.01);
bowPressure = hslider("h:Physical_and_Nonlinearity/v:Physical_Parameters/Bow_Pressure
[2][tooltip:Bow pressure on the instrument (Value between 0 and 1)]",0.2,0,1,0.01);
bowPosition = hslider("h:Physical_and_Nonlinearity/v:Physical_Parameters/Bow_Position
[2][tooltip:Bow position on the instrument (Value between 0 and 1)]",0,0,1,0.01);
typeModulation = nentry("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Modulation_Type
[3][tooltip: 0=theta is modulated by the incoming signal; 1=theta is modulated by the averaged incoming signal;
2=theta is modulated by the squared incoming signal; 3=theta is modulated by a sine wave of frequency freqMod;
4=theta is modulated by a sine wave of frequency freq;]",0,0,4,1);
nonLinearity = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Nonlinearity
[3][tooltip:Nonlinearity factor (value between 0 and 1)]",0,0,1,0.01);
frequencyMod = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Modulation_Frequency
[3][unit:Hz][tooltip:Frequency of the sine wave for the modulation of theta (works if Modulation Type=3)]",220,20,1000,0.1);
nonLinAttack = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Nonlinearity_Attack
[3][unit:s][Attack duration of the nonlinearity]",0.1,0,2,0.01);
preset = 3;
nMode(3) = 6;
modes(3,0) = 1.0;
basegains(3,0) = pow(0.999,1);
excitation(3,0) = 1*gain*gate/(nMode(3) - 1);
modes(3,1) = 2.32;
basegains(3,1) = pow(0.999,2);
excitation(3,1) = 1*gain*gate/(nMode(3) - 1);
modes(3,2) = 4.25;
basegains(3,2) = pow(0.999,3);
excitation(3,2) = 1*gain*gate/(nMode(3) - 1);
modes(3,3) = 6.63;
basegains(3,3) = pow(0.999,4);
excitation(3,3) = 1*gain*gate/(nMode(3) - 1);
modes(3,4) = 9.38;
basegains(3,4) = pow(0.999,5);
excitation(3,4) = 1*gain*gate/(nMode(3) - 1);
modes(3,5) = 9 : float;
basegains(3,5) = 0 : float;
excitation(3,5) = 0 : float;
nlfOrder = 6;
NLFM = nonLinearModulator((nonLinearity : si.smoo),1,freq,
typeModulation,(frequencyMod : si.smoo),nlfOrder);
nModes = nMode(preset);
tableOffset = 0;
tableSlope = 10 - (9*bowPressure);
delayLengthBase = ma.SR/freq;
delayLength(x) = delayLengthBase/modes(preset,x);
delayLine(x) = de.delay(4096,delayLength(x));
radius = 1 - ma.PI*32/ma.SR;
bandPassFilter(x) = bandPass(freq*modes(preset,x),radius);
baseGainApp = 0.8999999999999999 + (0.1*baseGain);
velocityInputApp = integrationConstant;
velocityInput = velocityInputApp + _*baseGainApp,par(i,(nModes-1),(_*baseGainApp)) :> +;
maxVelocity = 0.03 + 0.1*gain;
bowVelocity = maxVelocity*en.adsr(0.02,0.005,1,0.01,gate);
stereo = stereoizer(delayLengthBase);
bowing = bowVelocity - velocityInput <: *(bow(tableOffset,tableSlope)) : /(nModes);
resonance(x) = + : + (excitation(preset,x)*select) : delayLine(x) : *(basegains(preset,x)) : bandPassFilter(x);
process =
(bowing*((select-1)*-1) <:
par(i,nModes,(resonance(i)~_)))~par(i,nModes,_) :> + :
*(4) : NLFM : stereo : instrReverb;
|
4d903cba5374c2c7fa08c42f0f2ed90c71ab1bc8342cf8aafa3e2ab9ade95dbb
|
elk-community/faust-plugins
|
blowBottle.dsp
|
declare name "blowBottle";
declare description "Blown Bottle Instrument";
declare author "Romain Michon ([email protected])";
declare copyright "Romain Michon";
declare version "1.0";
declare licence "STK-4.3"; // Synthesis Tool Kit 4.3 (MIT style license);
declare description "This object implements a helmholtz resonator (biquad filter) with a polynomial jet excitation (a la Cook).";
import("instruments.lib");
//==================== GUI SPECIFICATION ================
freq = nentry("h:Basic_Parameters/freq [1][unit:Hz] [tooltip:Tone frequency]",440,20,20000,1);
gain = nentry("h:Basic_Parameters/gain [1][tooltip:Gain (value between 0 and 1)]",1,0,1,0.01);
gate = button("h:Basic_Parameters/gate [1][tooltip:noteOn = 1, noteOff = 0]");
noiseGain = hslider("h:Physical_and_Nonlinearity/v:Physical_Parameters/Noise_Gain
[2][tooltip:Breath noise gain (value between 0 and 1)]",0.5,0,1,0.01)*2;
pressure = hslider("h:Physical_and_Nonlinearity/v:Physical_Parameters/Pressure
[2][tooltip:Breath pressure (value bewteen 0 and 1)]",1,0,1,0.01);
typeModulation = nentry("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Modulation_Type
[3][tooltip: 0=theta is modulated by the incoming signal; 1=theta is modulated by the averaged incoming signal;
2=theta is modulated by the squared incoming signal; 3=theta is modulated by a sine wave of frequency freqMod;
4=theta is modulated by a sine wave of frequency freq;]",0,0,4,1);
nonLinearity = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Nonlinearity
[3][tooltip:Nonlinearity factor (value between 0 and 1)]",0,0,1,0.01);
frequencyMod = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Modulation_Frequency
[3][unit:Hz][tooltip:Frequency of the sine wave for the modulation of theta (works if Modulation Type=3)]",220,20,1000,0.1);
nonLinAttack = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Nonlinearity_Attack
[3][unit:s][Attack duration of the nonlinearity]",0.1,0,2,0.01);
vibratoFreq = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Freq
[4][unit:Hz]",5,1,15,0.1);
vibratoGain = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Gain
[4][tooltip:A value between 0 and 1]",0.1,0,1,0.01);
vibratoBegin = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Begin
[4][unit:s][tooltip:Vibrato silence duration before attack]",0.05,0,2,0.01);
vibratoAttack = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Attack
[4][unit:s][tooltip:Vibrato attack duration]",0.5,0,2,0.01);
vibratoRelease = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Release
[4][unit:s][tooltip:Vibrato release duration]",0.01,0,2,0.01);
envelopeAttack = hslider("h:Envelopes_and_Vibrato/v:Envelope_Parameters/Envelope_Attack
[5][unit:s][tooltip:Envelope attack duration]",0.01,0,2,0.01);
envelopeDecay = hslider("h:Envelopes_and_Vibrato/v:Envelope_Parameters/Envelope_Decay
[5][unit:s][tooltip:Envelope decay duration]",0.01,0,2,0.01);
envelopeRelease = hslider("h:Envelopes_and_Vibrato/v:Envelope_Parameters/Envelope_Release
[5][unit:s][tooltip:Envelope release duration]",0.5,0,2,0.01);
//==================== SIGNAL PROCESSING ================
//----------------------- Nonlinear filter ----------------------------
//nonlinearities are created by the nonlinear passive allpass ladder filter declared in miscfilter.lib
//nonlinear filter order
nlfOrder = 6;
//attack - sustain - release envelope for nonlinearity (declared in instruments.lib)
envelopeMod = en.asr(nonLinAttack,1,envelopeRelease,gate);
//nonLinearModultor is declared in instruments.lib, it adapts allpassnn from miscfilter.lib
//for using it with waveguide instruments
NLFM = nonLinearModulator((nonLinearity : si.smoo),envelopeMod,freq,
typeModulation,(frequencyMod : si.smoo),nlfOrder);
//----------------------- Synthesis parameters computing and functions declaration ----------------------------
//botlle radius
bottleRadius = 0.999;
//stereoizer is declared in instruments.lib and implement a stereo spacialisation in function of
//the frequency period in number of samples
stereo = stereoizer(ma.SR/freq);
bandPassFilter = bandPass(freq,bottleRadius);
//----------------------- Algorithm implementation ----------------------------
//global envelope is of type attack - decay - sustain - release
envelopeG = gain*en.adsr(gain*envelopeAttack,envelopeDecay,1,envelopeRelease,gate);
//pressure envelope is also ADSR
envelope = pressure*en.adsr(gain*0.02,0.01,1,gain*0.2,gate);
//vibrato
vibrato = os.osc(vibratoFreq)*vibratoGain*envVibrato(vibratoBegin,vibratoAttack,100,vibratoRelease,gate)*os.osc(vibratoFreq);
//breat pressure
breathPressure = envelope + vibrato;
//breath noise
randPressure = noiseGain*no.noise*breathPressure ;
process =
//differential pressure
(-(breathPressure) <:
((+(1))*randPressure : +(breathPressure)) - *(jetTable),_ : bandPassFilter,_)~NLFM : !,_ :
//signal scaling
fi.dcblocker*envelopeG*0.5 : stereo : instrReverb;
|
https://raw.githubusercontent.com/elk-community/faust-plugins/79096404d4b4334dba512a3e3a8104afefb9db8d/faust-stk/blowBottle.dsp
|
faust
|
Synthesis Tool Kit 4.3 (MIT style license);
==================== GUI SPECIFICATION ================
==================== SIGNAL PROCESSING ================
----------------------- Nonlinear filter ----------------------------
nonlinearities are created by the nonlinear passive allpass ladder filter declared in miscfilter.lib
nonlinear filter order
attack - sustain - release envelope for nonlinearity (declared in instruments.lib)
nonLinearModultor is declared in instruments.lib, it adapts allpassnn from miscfilter.lib
for using it with waveguide instruments
----------------------- Synthesis parameters computing and functions declaration ----------------------------
botlle radius
stereoizer is declared in instruments.lib and implement a stereo spacialisation in function of
the frequency period in number of samples
----------------------- Algorithm implementation ----------------------------
global envelope is of type attack - decay - sustain - release
pressure envelope is also ADSR
vibrato
breat pressure
breath noise
differential pressure
signal scaling
|
declare name "blowBottle";
declare description "Blown Bottle Instrument";
declare author "Romain Michon ([email protected])";
declare copyright "Romain Michon";
declare version "1.0";
declare description "This object implements a helmholtz resonator (biquad filter) with a polynomial jet excitation (a la Cook).";
import("instruments.lib");
freq = nentry("h:Basic_Parameters/freq [1][unit:Hz] [tooltip:Tone frequency]",440,20,20000,1);
gain = nentry("h:Basic_Parameters/gain [1][tooltip:Gain (value between 0 and 1)]",1,0,1,0.01);
gate = button("h:Basic_Parameters/gate [1][tooltip:noteOn = 1, noteOff = 0]");
noiseGain = hslider("h:Physical_and_Nonlinearity/v:Physical_Parameters/Noise_Gain
[2][tooltip:Breath noise gain (value between 0 and 1)]",0.5,0,1,0.01)*2;
pressure = hslider("h:Physical_and_Nonlinearity/v:Physical_Parameters/Pressure
[2][tooltip:Breath pressure (value bewteen 0 and 1)]",1,0,1,0.01);
typeModulation = nentry("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Modulation_Type
[3][tooltip: 0=theta is modulated by the incoming signal; 1=theta is modulated by the averaged incoming signal;
2=theta is modulated by the squared incoming signal; 3=theta is modulated by a sine wave of frequency freqMod;
4=theta is modulated by a sine wave of frequency freq;]",0,0,4,1);
nonLinearity = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Nonlinearity
[3][tooltip:Nonlinearity factor (value between 0 and 1)]",0,0,1,0.01);
frequencyMod = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Modulation_Frequency
[3][unit:Hz][tooltip:Frequency of the sine wave for the modulation of theta (works if Modulation Type=3)]",220,20,1000,0.1);
nonLinAttack = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Nonlinearity_Attack
[3][unit:s][Attack duration of the nonlinearity]",0.1,0,2,0.01);
vibratoFreq = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Freq
[4][unit:Hz]",5,1,15,0.1);
vibratoGain = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Gain
[4][tooltip:A value between 0 and 1]",0.1,0,1,0.01);
vibratoBegin = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Begin
[4][unit:s][tooltip:Vibrato silence duration before attack]",0.05,0,2,0.01);
vibratoAttack = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Attack
[4][unit:s][tooltip:Vibrato attack duration]",0.5,0,2,0.01);
vibratoRelease = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Release
[4][unit:s][tooltip:Vibrato release duration]",0.01,0,2,0.01);
envelopeAttack = hslider("h:Envelopes_and_Vibrato/v:Envelope_Parameters/Envelope_Attack
[5][unit:s][tooltip:Envelope attack duration]",0.01,0,2,0.01);
envelopeDecay = hslider("h:Envelopes_and_Vibrato/v:Envelope_Parameters/Envelope_Decay
[5][unit:s][tooltip:Envelope decay duration]",0.01,0,2,0.01);
envelopeRelease = hslider("h:Envelopes_and_Vibrato/v:Envelope_Parameters/Envelope_Release
[5][unit:s][tooltip:Envelope release duration]",0.5,0,2,0.01);
nlfOrder = 6;
envelopeMod = en.asr(nonLinAttack,1,envelopeRelease,gate);
NLFM = nonLinearModulator((nonLinearity : si.smoo),envelopeMod,freq,
typeModulation,(frequencyMod : si.smoo),nlfOrder);
bottleRadius = 0.999;
stereo = stereoizer(ma.SR/freq);
bandPassFilter = bandPass(freq,bottleRadius);
envelopeG = gain*en.adsr(gain*envelopeAttack,envelopeDecay,1,envelopeRelease,gate);
envelope = pressure*en.adsr(gain*0.02,0.01,1,gain*0.2,gate);
vibrato = os.osc(vibratoFreq)*vibratoGain*envVibrato(vibratoBegin,vibratoAttack,100,vibratoRelease,gate)*os.osc(vibratoFreq);
breathPressure = envelope + vibrato;
randPressure = noiseGain*no.noise*breathPressure ;
process =
(-(breathPressure) <:
((+(1))*randPressure : +(breathPressure)) - *(jetTable),_ : bandPassFilter,_)~NLFM : !,_ :
fi.dcblocker*envelopeG*0.5 : stereo : instrReverb;
|
356af414c08d4a1078b196b243086c123bdc9e5bd3c255f26597fa8f3b8342f3
|
elk-community/faust-plugins
|
flute.dsp
|
declare name "flute";
declare description "Nonlinear WaveGuide Flute";
declare author "Romain Michon ([email protected])";
declare copyright "Romain Michon";
declare version "1.0";
declare licence "STK-4.3"; // Synthesis Tool Kit 4.3 (MIT style license);
declare description "A simple flute based on Smith algorithm: https://ccrma.stanford.edu/~jos/pasp/Flutes_Recorders_Pipe_Organs.html";
import("instruments.lib");
//==================== GUI SPECIFICATION ================
freq = nentry("h:Basic_Parameters/freq [1][unit:Hz] [tooltip:Tone frequency]",440,20,20000,1);
gain = nentry("h:Basic_Parameters/gain [1][tooltip:Gain (value between 0 and 1)]",1,0,1,0.01);
gate = button("h:Basic_Parameters/gate [1][tooltip:noteOn = 1, noteOff = 0]") : int;
pressure = hslider("h:Physical_and_Nonlinearity/v:Physical_Parameters/Pressure
[2][tooltip:Breath pressure (value bewteen 0 and 1)]",0.9,0,1.5,0.01) : si.smoo;
breathAmp = hslider("h:Physical_and_Nonlinearity/v:Physical_Parameters/Noise Gain
[2][tooltip:Breath noise gain (value between 0 and 1)]",0.1,0,1,0.01)/10;
typeModulation = nentry("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Modulation_Type
[3][tooltip: 0=theta is modulated by the incoming signal; 1=theta is modulated by the averaged incoming signal;
2=theta is modulated by the squared incoming signal; 3=theta is modulated by a sine wave of frequency freqMod;
4=theta is modulated by a sine wave of frequency freq;]",0,0,4,1);
nonLinearity = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Nonlinearity
[3][tooltip:Nonlinearity factor (value between 0 and 1)]",0,0,1,0.01);
frequencyMod = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Modulation_Frequency
[3][unit:Hz][tooltip:Frequency of the sine wave for the modulation of theta (works if Modulation Type=3)]",220,20,1000,0.1);
nonLinAttack = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Nonlinearity Attack
[3][unit:s][Attack duration of the nonlinearity]",0.1,0,2,0.01);
vibratoFreq = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Freq
[4][unit:Hz]",5,1,15,0.1);
vibratoGain = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Gain
[4][tooltip:A value between 0 and 1]",0.1,0,1,0.01);
vibratoBegin = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Begin
[4][unit:s][tooltip:Vibrato silence duration before attack]",0.1,0,2,0.01);
vibratoAttack = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Attack
[4][unit:s][tooltip:Vibrato attack duration]",0.5,0,2,0.01);
vibratoRelease = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Release
[4][unit:s][tooltip:Vibrato release duration]",0.2,0,2,0.01);
pressureEnvelope = checkbox("h:Envelopes_and_Vibrato/v:Pressure_Envelope_Parameters/Pressure_Env
[5][unit:s][tooltip:Activate Pressure envelope]") : int;
env1Attack = hslider("h:Envelopes_and_Vibrato/v:Pressure_Envelope_Parameters/Press_Env_Attack
[5][unit:s][tooltip:Pressure envelope attack duration]",0.05,0,2,0.01);
env1Decay = hslider("h:Envelopes_and_Vibrato/v:Pressure_Envelope_Parameters/Press_Env_Decay
[5][unit:s][tooltip:Pressure envelope decay duration]",0.2,0,2,0.01);
env1Release = hslider("h:Envelopes_and_Vibrato/v:Pressure_Envelope_Parameters/Press_Env_Release
[5][unit:s][tooltip:Pressure envelope release duration]",1,0,2,0.01);
env2Attack = hslider("h:Envelopes_and_Vibrato/v:Global_Envelope_Parameters/Glob_Env_Attack
[6][unit:s][tooltip:Global envelope attack duration]",0.1,0,2,0.01);
env2Release = hslider("h:Envelopes_and_Vibrato/v:Global_Envelope_Parameters/Glob_Env_Release
[6][unit:s][tooltip:Global envelope release duration]",0.1,0,2,0.01);
//==================== SIGNAL PROCESSING ================
//----------------------- Nonlinear filter ----------------------------
//nonlinearities are created by the nonlinear passive allpass ladder filter declared in miscfilter.lib
//nonlinear filter order
nlfOrder = 6;
//attack - sustain - release envelope for nonlinearity (declared in instruments.lib)
envelopeMod = en.asr(nonLinAttack,1,0.1,gate);
//nonLinearModultor is declared in instruments.lib, it adapts allpassnn from miscfilter.lib
//for using it with waveguide instruments
NLFM = nonLinearModulator((nonLinearity : si.smoo),envelopeMod,freq,
typeModulation,(frequencyMod : si.smoo),nlfOrder);
//----------------------- Synthesis parameters computing and functions declaration ----------------------------
//Loops feedbacks gains
feedBack1 = 0.4;
feedBack2 = 0.4;
//Delay Lines
embouchureDelayLength = (ma.SR/freq)/2-2;
boreDelayLength = ma.SR/freq-2;
embouchureDelay = de.fdelay(4096,embouchureDelayLength);
boreDelay = de.fdelay(4096,boreDelayLength);
//Polynomial
poly = _ <: _ - _*_*_;
//jet filter is a lowpass filter (declared in miscfilter.lib)
reflexionFilter = fi.lowpass(1,2000);
//stereoizer is declared in instruments.lib and implement a stereo spatialisation in function of
//the frequency period in number of samples
stereo = stereoizer(ma.SR/freq);
//----------------------- Algorithm implementation ----------------------------
//Pressure envelope
env1 = en.adsr(env1Attack,env1Decay,0.9,env1Release,(gate | pressureEnvelope))*pressure*1.1;
//Global envelope
env2 = en.asr(env2Attack,1,env2Release,gate)*0.5;
//Vibrato Envelope
vibratoEnvelope = envVibrato(vibratoBegin,vibratoAttack,100,vibratoRelease,gate)*vibratoGain;
vibrato = os.osc(vibratoFreq)*vibratoEnvelope;
breath = no.noise*env1;
flow = env1 + breath*breathAmp + vibrato;
//instrReverb is declared in instruments.lib
process = (_ <: (flow + *(feedBack1) : embouchureDelay : poly) + *(feedBack2) : reflexionFilter)~(boreDelay : NLFM) : *(env2)*gain :
stereo : instrReverb;
|
https://raw.githubusercontent.com/elk-community/faust-plugins/79096404d4b4334dba512a3e3a8104afefb9db8d/faust-stk/flute.dsp
|
faust
|
Synthesis Tool Kit 4.3 (MIT style license);
==================== GUI SPECIFICATION ================
==================== SIGNAL PROCESSING ================
----------------------- Nonlinear filter ----------------------------
nonlinearities are created by the nonlinear passive allpass ladder filter declared in miscfilter.lib
nonlinear filter order
attack - sustain - release envelope for nonlinearity (declared in instruments.lib)
nonLinearModultor is declared in instruments.lib, it adapts allpassnn from miscfilter.lib
for using it with waveguide instruments
----------------------- Synthesis parameters computing and functions declaration ----------------------------
Loops feedbacks gains
Delay Lines
Polynomial
jet filter is a lowpass filter (declared in miscfilter.lib)
stereoizer is declared in instruments.lib and implement a stereo spatialisation in function of
the frequency period in number of samples
----------------------- Algorithm implementation ----------------------------
Pressure envelope
Global envelope
Vibrato Envelope
instrReverb is declared in instruments.lib
|
declare name "flute";
declare description "Nonlinear WaveGuide Flute";
declare author "Romain Michon ([email protected])";
declare copyright "Romain Michon";
declare version "1.0";
declare description "A simple flute based on Smith algorithm: https://ccrma.stanford.edu/~jos/pasp/Flutes_Recorders_Pipe_Organs.html";
import("instruments.lib");
freq = nentry("h:Basic_Parameters/freq [1][unit:Hz] [tooltip:Tone frequency]",440,20,20000,1);
gain = nentry("h:Basic_Parameters/gain [1][tooltip:Gain (value between 0 and 1)]",1,0,1,0.01);
gate = button("h:Basic_Parameters/gate [1][tooltip:noteOn = 1, noteOff = 0]") : int;
pressure = hslider("h:Physical_and_Nonlinearity/v:Physical_Parameters/Pressure
[2][tooltip:Breath pressure (value bewteen 0 and 1)]",0.9,0,1.5,0.01) : si.smoo;
breathAmp = hslider("h:Physical_and_Nonlinearity/v:Physical_Parameters/Noise Gain
[2][tooltip:Breath noise gain (value between 0 and 1)]",0.1,0,1,0.01)/10;
typeModulation = nentry("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Modulation_Type
[3][tooltip: 0=theta is modulated by the incoming signal; 1=theta is modulated by the averaged incoming signal;
2=theta is modulated by the squared incoming signal; 3=theta is modulated by a sine wave of frequency freqMod;
4=theta is modulated by a sine wave of frequency freq;]",0,0,4,1);
nonLinearity = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Nonlinearity
[3][tooltip:Nonlinearity factor (value between 0 and 1)]",0,0,1,0.01);
frequencyMod = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Modulation_Frequency
[3][unit:Hz][tooltip:Frequency of the sine wave for the modulation of theta (works if Modulation Type=3)]",220,20,1000,0.1);
nonLinAttack = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Nonlinearity Attack
[3][unit:s][Attack duration of the nonlinearity]",0.1,0,2,0.01);
vibratoFreq = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Freq
[4][unit:Hz]",5,1,15,0.1);
vibratoGain = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Gain
[4][tooltip:A value between 0 and 1]",0.1,0,1,0.01);
vibratoBegin = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Begin
[4][unit:s][tooltip:Vibrato silence duration before attack]",0.1,0,2,0.01);
vibratoAttack = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Attack
[4][unit:s][tooltip:Vibrato attack duration]",0.5,0,2,0.01);
vibratoRelease = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Release
[4][unit:s][tooltip:Vibrato release duration]",0.2,0,2,0.01);
pressureEnvelope = checkbox("h:Envelopes_and_Vibrato/v:Pressure_Envelope_Parameters/Pressure_Env
[5][unit:s][tooltip:Activate Pressure envelope]") : int;
env1Attack = hslider("h:Envelopes_and_Vibrato/v:Pressure_Envelope_Parameters/Press_Env_Attack
[5][unit:s][tooltip:Pressure envelope attack duration]",0.05,0,2,0.01);
env1Decay = hslider("h:Envelopes_and_Vibrato/v:Pressure_Envelope_Parameters/Press_Env_Decay
[5][unit:s][tooltip:Pressure envelope decay duration]",0.2,0,2,0.01);
env1Release = hslider("h:Envelopes_and_Vibrato/v:Pressure_Envelope_Parameters/Press_Env_Release
[5][unit:s][tooltip:Pressure envelope release duration]",1,0,2,0.01);
env2Attack = hslider("h:Envelopes_and_Vibrato/v:Global_Envelope_Parameters/Glob_Env_Attack
[6][unit:s][tooltip:Global envelope attack duration]",0.1,0,2,0.01);
env2Release = hslider("h:Envelopes_and_Vibrato/v:Global_Envelope_Parameters/Glob_Env_Release
[6][unit:s][tooltip:Global envelope release duration]",0.1,0,2,0.01);
nlfOrder = 6;
envelopeMod = en.asr(nonLinAttack,1,0.1,gate);
NLFM = nonLinearModulator((nonLinearity : si.smoo),envelopeMod,freq,
typeModulation,(frequencyMod : si.smoo),nlfOrder);
feedBack1 = 0.4;
feedBack2 = 0.4;
embouchureDelayLength = (ma.SR/freq)/2-2;
boreDelayLength = ma.SR/freq-2;
embouchureDelay = de.fdelay(4096,embouchureDelayLength);
boreDelay = de.fdelay(4096,boreDelayLength);
poly = _ <: _ - _*_*_;
reflexionFilter = fi.lowpass(1,2000);
stereo = stereoizer(ma.SR/freq);
env1 = en.adsr(env1Attack,env1Decay,0.9,env1Release,(gate | pressureEnvelope))*pressure*1.1;
env2 = en.asr(env2Attack,1,env2Release,gate)*0.5;
vibratoEnvelope = envVibrato(vibratoBegin,vibratoAttack,100,vibratoRelease,gate)*vibratoGain;
vibrato = os.osc(vibratoFreq)*vibratoEnvelope;
breath = no.noise*env1;
flow = env1 + breath*breathAmp + vibrato;
process = (_ <: (flow + *(feedBack1) : embouchureDelay : poly) + *(feedBack2) : reflexionFilter)~(boreDelay : NLFM) : *(env2)*gain :
stereo : instrReverb;
|
62dff17f145c8c1a6960347a4c3fafa02e847b907146ae02225d2095adec7203
|
elk-community/faust-plugins
|
tibetanBowl.dsp
|
declare name "tibetanBowl";
declare description "Banded Waveguide Modeld Tibetan Bowl";
declare author "Romain Michon";
declare copyright "Romain Michon ([email protected])";
declare version "1.0";
declare licence "STK-4.3"; // Synthesis Tool Kit 4.3 (MIT style license);
declare description "This instrument uses banded waveguide. For more information, see Essl, G. and Cook, P. Banded Waveguides: Towards Physical Modelling of Bar Percussion Instruments, Proceedings of the 1999 International Computer Music Conference.";
import("instruments.lib");
//==================== GUI SPECIFICATION ================
freq = nentry("h:Basic_Parameters/freq [1][unit:Hz] [tooltip:Tone frequency]",440,20,20000,1);
gain = nentry("h:Basic_Parameters/gain [1][tooltip:Gain (value between 0 and 1)]",0.8,0,1,0.01);
gate = button("h:Basic_Parameters/gate [1][tooltip:noteOn = 1, noteOff = 0]");
select = nentry("h:Physical_and_Nonlinearity/v:Physical_Parameters/Excitation_Selector
[2][tooltip:0=Bow; 1=Strike]",0,0,1,1);
integrationConstant = hslider("h:Physical_and_Nonlinearity/v:Physical_Parameters/Integration_Constant
[2][tooltip:A value between 0 and 1]",0,0,1,0.01);
baseGain = hslider("h:Physical_and_Nonlinearity/v:Physical_Parameters/Base_Gain
[2][tooltip:A value between 0 and 1]",1,0,1,0.01);
bowPressure = hslider("h:Physical_and_Nonlinearity/v:Physical_Parameters/Bow_Pressure
[2][tooltip:Bow pressure on the instrument (Value between 0 and 1)]",0.2,0,1,0.01);
bowPosition = hslider("h:Physical_and_Nonlinearity/v:Physical_Parameters/Bow_Position
[2][tooltip:Bow position on the instrument (Value between 0 and 1)]",0,0,1,0.01);
typeModulation = nentry("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Modulation_Type
[3][tooltip: 0=theta is modulated by the incoming signal; 1=theta is modulated by the averaged incoming signal;
2=theta is modulated by the squared incoming signal; 3=theta is modulated by a sine wave of frequency freqMod;
4=theta is modulated by a sine wave of frequency freq;]",0,0,4,1);
nonLinearity = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Nonlinearity
[3][tooltip:Nonlinearity factor (value between 0 and 1)]",0,0,1,0.01);
frequencyMod = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Modulation_Frequency
[3][unit:Hz][tooltip:Frequency of the sine wave for the modulation of theta (works if Modulation Type=3)]",220,20,1000,0.1);
nonLinAttack = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Nonlinearity_Attack
[3][unit:s][Attack duration of the nonlinearity]",0.1,0,2,0.01);
//==================== MODAL PARAMETERS ================
preset = 0;
nMode(0) = 12;
modes(0,0) = 0.996108344;
basegains(0,0) = 0.999925960128219;
excitation(0,0) = 11.900357 / 10;
modes(0,1) = 1.0038916562;
basegains(0,1) = 0.999925960128219;
excitation(0,1) = 11.900357 / 10;
modes(0,2) = 2.979178;
basegains(0,2) = 0.999982774366897;
excitation(0,2) = 10.914886 / 10;
modes(0,3) = 2.99329767;
basegains(0,3) = 0.999982774366897;
excitation(0,3) = 10.914886 / 10;
modes(0,4) = 5.704452;
basegains(0,4) = 1.0;
excitation(0,4) = 42.995041 / 10;
modes(0,5) = 5.704452;
basegains(0,5) = 1.0;
excitation(0,5) = 42.995041 / 10;
modes(0,6) = 8.9982;
basegains(0,6) = 1.0;
excitation(0,6) = 40.063034 / 10;
modes(0,7) = 9.01549726;
basegains(0,7) = 1.0;
excitation(0,7) = 40.063034 / 10;
modes(0,8) = 12.83303;
basegains(0,8) = 0.999965497558225;
excitation(0,8) = 7.063034 / 10;
modes(0,9) = 12.807382;
basegains(0,9) = 0.999965497558225;
excitation(0,9) = 7.063034 / 10;
modes(0,10) = 17.2808219;
basegains(0,10) = 0.9999999999999999999965497558225;
excitation(0,10) = 57.063034 / 10;
modes(0,11) = 21.97602739726;
basegains(0,11) = 0.999999999999999965497558225;
excitation(0,11) = 57.063034 / 10;
//==================== SIGNAL PROCESSING ================
//----------------------- Nonlinear filter ----------------------------
//nonlinearities are created by the nonlinear passive allpass ladder filter declared in miscfilter.lib
//nonlinear filter order
nlfOrder = 6;
//nonLinearModultor is declared in instruments.lib, it adapts allpassnn from miscfilter.lib
//for using it with waveguide instruments
NLFM = nonLinearModulator((nonLinearity : si.smoo),1,freq,
typeModulation,(frequencyMod : si.smoo),nlfOrder);
//----------------------- Synthesis parameters computing and functions declaration ----------------------------
//the number of modes depends on the preset being used
nModes = nMode(preset);
//bow table parameters
tableOffset = 0;
tableSlope = 10 - (9*bowPressure);
delayLengthBase = ma.SR/freq;
//delay lengths in number of samples
delayLength(x) = delayLengthBase/modes(preset,x);
//delay lines
delayLine(x) = de.delay(4096,delayLength(x));
//Filter bank: bandpass filters (declared in instruments.lib)
radius = 1 - ma.PI*32/ma.SR;
bandPassFilter(x) = bandPass(freq*modes(preset,x),radius);
//Delay lines feedback for bow table lookup control
baseGainApp = 0.8999999999999999 + (0.1*baseGain);
velocityInputApp = integrationConstant;
velocityInput = velocityInputApp + _*baseGainApp,par(i,(nModes-1),(_*baseGainApp)) :> +;
//Bow velocity is controlled by an ADSR envelope
maxVelocity = 0.03 + 0.1*gain;
bowVelocity = maxVelocity*en.adsr(0.02,0.005,1,0.01,gate);
//stereoizer is declared in instruments.lib and implement a stereo spacialisation in function of
//the frequency period in number of samples
stereo = stereoizer(delayLengthBase);
//----------------------- Algorithm implementation ----------------------------
//Bow table lookup (bow is decalred in instruments.lib)
bowing = bowVelocity - velocityInput <: *(bow(tableOffset,tableSlope)) : /(nModes);
//One resonance
resonance(x) = + : + (excitation(preset,x)*select) : delayLine(x) : *(basegains(preset,x)) : bandPassFilter(x);
process =
//Bowed Excitation
(bowing*((select-1)*-1) <:
//nModes resonances with nModes feedbacks for bow table look-up
par(i,nModes,(resonance(i)~_)))~par(i,nModes,_) :> + :
//Signal Scaling and stereo
NLFM : stereo : instrReverb;
|
https://raw.githubusercontent.com/elk-community/faust-plugins/79096404d4b4334dba512a3e3a8104afefb9db8d/faust-stk/tibetanBowl.dsp
|
faust
|
Synthesis Tool Kit 4.3 (MIT style license);
==================== GUI SPECIFICATION ================
==================== MODAL PARAMETERS ================
==================== SIGNAL PROCESSING ================
----------------------- Nonlinear filter ----------------------------
nonlinearities are created by the nonlinear passive allpass ladder filter declared in miscfilter.lib
nonlinear filter order
nonLinearModultor is declared in instruments.lib, it adapts allpassnn from miscfilter.lib
for using it with waveguide instruments
----------------------- Synthesis parameters computing and functions declaration ----------------------------
the number of modes depends on the preset being used
bow table parameters
delay lengths in number of samples
delay lines
Filter bank: bandpass filters (declared in instruments.lib)
Delay lines feedback for bow table lookup control
Bow velocity is controlled by an ADSR envelope
stereoizer is declared in instruments.lib and implement a stereo spacialisation in function of
the frequency period in number of samples
----------------------- Algorithm implementation ----------------------------
Bow table lookup (bow is decalred in instruments.lib)
One resonance
Bowed Excitation
nModes resonances with nModes feedbacks for bow table look-up
Signal Scaling and stereo
|
declare name "tibetanBowl";
declare description "Banded Waveguide Modeld Tibetan Bowl";
declare author "Romain Michon";
declare copyright "Romain Michon ([email protected])";
declare version "1.0";
declare description "This instrument uses banded waveguide. For more information, see Essl, G. and Cook, P. Banded Waveguides: Towards Physical Modelling of Bar Percussion Instruments, Proceedings of the 1999 International Computer Music Conference.";
import("instruments.lib");
freq = nentry("h:Basic_Parameters/freq [1][unit:Hz] [tooltip:Tone frequency]",440,20,20000,1);
gain = nentry("h:Basic_Parameters/gain [1][tooltip:Gain (value between 0 and 1)]",0.8,0,1,0.01);
gate = button("h:Basic_Parameters/gate [1][tooltip:noteOn = 1, noteOff = 0]");
select = nentry("h:Physical_and_Nonlinearity/v:Physical_Parameters/Excitation_Selector
[2][tooltip:0=Bow; 1=Strike]",0,0,1,1);
integrationConstant = hslider("h:Physical_and_Nonlinearity/v:Physical_Parameters/Integration_Constant
[2][tooltip:A value between 0 and 1]",0,0,1,0.01);
baseGain = hslider("h:Physical_and_Nonlinearity/v:Physical_Parameters/Base_Gain
[2][tooltip:A value between 0 and 1]",1,0,1,0.01);
bowPressure = hslider("h:Physical_and_Nonlinearity/v:Physical_Parameters/Bow_Pressure
[2][tooltip:Bow pressure on the instrument (Value between 0 and 1)]",0.2,0,1,0.01);
bowPosition = hslider("h:Physical_and_Nonlinearity/v:Physical_Parameters/Bow_Position
[2][tooltip:Bow position on the instrument (Value between 0 and 1)]",0,0,1,0.01);
typeModulation = nentry("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Modulation_Type
[3][tooltip: 0=theta is modulated by the incoming signal; 1=theta is modulated by the averaged incoming signal;
2=theta is modulated by the squared incoming signal; 3=theta is modulated by a sine wave of frequency freqMod;
4=theta is modulated by a sine wave of frequency freq;]",0,0,4,1);
nonLinearity = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Nonlinearity
[3][tooltip:Nonlinearity factor (value between 0 and 1)]",0,0,1,0.01);
frequencyMod = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Modulation_Frequency
[3][unit:Hz][tooltip:Frequency of the sine wave for the modulation of theta (works if Modulation Type=3)]",220,20,1000,0.1);
nonLinAttack = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Nonlinearity_Attack
[3][unit:s][Attack duration of the nonlinearity]",0.1,0,2,0.01);
preset = 0;
nMode(0) = 12;
modes(0,0) = 0.996108344;
basegains(0,0) = 0.999925960128219;
excitation(0,0) = 11.900357 / 10;
modes(0,1) = 1.0038916562;
basegains(0,1) = 0.999925960128219;
excitation(0,1) = 11.900357 / 10;
modes(0,2) = 2.979178;
basegains(0,2) = 0.999982774366897;
excitation(0,2) = 10.914886 / 10;
modes(0,3) = 2.99329767;
basegains(0,3) = 0.999982774366897;
excitation(0,3) = 10.914886 / 10;
modes(0,4) = 5.704452;
basegains(0,4) = 1.0;
excitation(0,4) = 42.995041 / 10;
modes(0,5) = 5.704452;
basegains(0,5) = 1.0;
excitation(0,5) = 42.995041 / 10;
modes(0,6) = 8.9982;
basegains(0,6) = 1.0;
excitation(0,6) = 40.063034 / 10;
modes(0,7) = 9.01549726;
basegains(0,7) = 1.0;
excitation(0,7) = 40.063034 / 10;
modes(0,8) = 12.83303;
basegains(0,8) = 0.999965497558225;
excitation(0,8) = 7.063034 / 10;
modes(0,9) = 12.807382;
basegains(0,9) = 0.999965497558225;
excitation(0,9) = 7.063034 / 10;
modes(0,10) = 17.2808219;
basegains(0,10) = 0.9999999999999999999965497558225;
excitation(0,10) = 57.063034 / 10;
modes(0,11) = 21.97602739726;
basegains(0,11) = 0.999999999999999965497558225;
excitation(0,11) = 57.063034 / 10;
nlfOrder = 6;
NLFM = nonLinearModulator((nonLinearity : si.smoo),1,freq,
typeModulation,(frequencyMod : si.smoo),nlfOrder);
nModes = nMode(preset);
tableOffset = 0;
tableSlope = 10 - (9*bowPressure);
delayLengthBase = ma.SR/freq;
delayLength(x) = delayLengthBase/modes(preset,x);
delayLine(x) = de.delay(4096,delayLength(x));
radius = 1 - ma.PI*32/ma.SR;
bandPassFilter(x) = bandPass(freq*modes(preset,x),radius);
baseGainApp = 0.8999999999999999 + (0.1*baseGain);
velocityInputApp = integrationConstant;
velocityInput = velocityInputApp + _*baseGainApp,par(i,(nModes-1),(_*baseGainApp)) :> +;
maxVelocity = 0.03 + 0.1*gain;
bowVelocity = maxVelocity*en.adsr(0.02,0.005,1,0.01,gate);
stereo = stereoizer(delayLengthBase);
bowing = bowVelocity - velocityInput <: *(bow(tableOffset,tableSlope)) : /(nModes);
resonance(x) = + : + (excitation(preset,x)*select) : delayLine(x) : *(basegains(preset,x)) : bandPassFilter(x);
process =
(bowing*((select-1)*-1) <:
par(i,nModes,(resonance(i)~_)))~par(i,nModes,_) :> + :
NLFM : stereo : instrReverb;
|
376e36c75ed9f870692bebfc4052128741717b12c775d8984ea487cb41e2dc00
|
elk-community/faust-plugins
|
modalBar.dsp
|
declare name "modalBar";
declare description "Nonlinear Modal percussive instruments";
declare author "Romain Michon ([email protected])";
declare copyright "Romain Michon";
declare version "1.0";
declare licence "STK-4.3"; // Synthesis Tool Kit 4.3 (MIT style license);
declare description "A number of different struck bar instruments. Presets numbers: 0->Marimba, 1->Vibraphone, 2->Agogo, 3->Wood1, 4->Reso, 5->Wood2, 6->Beats, 7->2Fix; 8->Clump";
import("instruments.lib");
//========================= WAVE TABLES ===============================
//----------------------- STICK IMPACT ----------------------------
// Stick impact table.
//
// USAGE:
// index : readMarmstk1 : _
readMarmstk1 = ffunction(float readMarmstk1 (int), <instrument.h>,"");
marmstk1TableSize = 246;
//==================== GUI SPECIFICATION ================
freq = nentry("h:Basic_Parameters/freq [1][unit:Hz] [tooltip:Tone frequency]",440,20,20000,1);
gain = nentry("h:Basic_Parameters/gain [1][tooltip:Gain (value between 0 and 1)]",0.8,0,1,0.01);
gate = button("h:Basic_Parameters/gate [1][tooltip:noteOn = 1, noteOff = 0]");
stickHardness = hslider("h:Physical_and_Nonlinearity/v:Physical_Parameters/Stick_Hardness
[2][tooltip:A value between 0 and 1]",0.25,0,1,0.01);
reson = nentry("h:Physical_and_Nonlinearity/v:Physical_Parameters/Resonance
[2][tooltip:A value between 0 and 1]",1,0,1,1);
presetNumber = nentry("h:Physical_and_Nonlinearity/v:Physical_Parameters/Preset
[2][tooltip:0->Marimba, 1->Vibraphone, 2->Agogo, 3->Wood1, 4->Reso, 5->Wood2, 6->Beats, 7->2Fix; 8->Clump]",1,0,8,1);
typeModulation = nentry("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Modulation_Type
[3][tooltip: 0=theta is modulated by the incoming signal; 1=theta is modulated by the averaged incoming signal;
2=theta is modulated by the squared incoming signal; 3=theta is modulated by a sine wave of frequency freqMod;
4=theta is modulated by a sine wave of frequency freq;]",0,0,4,1);
nonLinearity = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Nonlinearity
[3][tooltip:Nonlinearity factor (value between 0 and 1)]",0,0,1,0.01);
frequencyMod = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Modulation_Frequency
[3][unit:Hz][tooltip:Frequency of the sine wave for the modulation of theta (works if Modulation Type=3)]",220,20,1000,0.1);
nonLinAttack = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Nonlinearity_Attack
[3][unit:s][Attack duration of the nonlinearity]",0.1,0,2,0.01);
vibratoFreq = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Freq
[4][unit:Hz]",6,1,15,0.1);
vibratoGain = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Gain
[4][tooltip:A value between 0 and 1]",0.1,0,1,0.01);
//==================== SIGNAL PROCESSING ================
//----------------------- Nonlinear filter ----------------------------
//nonlinearities are created by the nonlinear passive allpass ladder filter declared in miscfilter.lib
//nonlinear filter order
nlfOrder = 6;
//nonLinearModultor is declared in instruments.lib, it adapts allpassnn from miscfilter.lib
//for using it with waveguide instruments
NLFM = nonLinearModulator((nonLinearity : si.smoo),1,freq,
typeModulation,(frequencyMod : si.smoo),nlfOrder);
//----------------------- Synthesis parameters computing and functions declaration ----------------------------
//stereoizer is declared in instruments.lib and implement a stereo spacialisation in function of
//the frequency period in number of samples
stereo = stereoizer(ma.SR/freq);
//check if the vibraphone is used
vibratoOn = presetNumber == 1;
//vibrato
vibrato = 1 + os.osc(vibratoFreq)*vibratoGain*vibratoOn;
//filter bank output gain
directGain = loadPreset(presetNumber,3,2);
//modal values for the filter bank
loadPreset = ffunction(float loadPreset (int,int,int), <modalBar.h>,"");
//filter bank using biquad filters
biquadBank = _ <: sum(i, 4, oneFilter(i))
with{
condition(x) = x<0 <: *(-x),((-(1))*-1)*x*freq :> +;
dampCondition = (gate < 1) & (reson != 1);
//the filter coefficients are interpolated when changing of preset
oneFilter(j,y) = (loadPreset(presetNumber,0,j : si.smoo) : condition),
loadPreset(presetNumber,1,j : si.smoo)*(1-(gain*0.03*dampCondition)),
y*(loadPreset(presetNumber,2,j) : si.smoo) : bandPassH;
};
//one pole filter with pole set at 0.9 for pre-filtering, onePole is declared in instruments.lib
sourceFilter = onePole(b0,a1)
with{
b0 = 1 - 0.9;
a1 = -0.9;
};
//excitation signal
excitation = counterSamples < (marmstk1TableSize*rate) : *(marmstk1Wave*gate)
with{
//readMarmstk1 and marmstk1TableSize are both declared in instruments.lib
marmstk1 = ba.time%marmstk1TableSize : int : readMarmstk1;
dataRate(readRate) = readRate : (+ : ma.decimal) ~ _ : *(float(marmstk1TableSize));
//the reading rate of the stick table is defined in function of the stickHardness
rate = 0.25*pow(4,stickHardness);
counterSamples = (*(gate)+1)~_ : -(1);
marmstk1Wave = rdtable(marmstk1TableSize,marmstk1,int(dataRate(rate)*gate));
};
process = excitation : sourceFilter : *(gain) <:
//resonance
(biquadBank <: -(*(directGain))) + (directGain*_) :
//vibrato for the vibraphone
*(vibrato) : NLFM*0.6 : stereo : instrReverb;
|
https://raw.githubusercontent.com/elk-community/faust-plugins/79096404d4b4334dba512a3e3a8104afefb9db8d/faust-stk/modalBar.dsp
|
faust
|
Synthesis Tool Kit 4.3 (MIT style license);
========================= WAVE TABLES ===============================
----------------------- STICK IMPACT ----------------------------
Stick impact table.
USAGE:
index : readMarmstk1 : _
==================== GUI SPECIFICATION ================
==================== SIGNAL PROCESSING ================
----------------------- Nonlinear filter ----------------------------
nonlinearities are created by the nonlinear passive allpass ladder filter declared in miscfilter.lib
nonlinear filter order
nonLinearModultor is declared in instruments.lib, it adapts allpassnn from miscfilter.lib
for using it with waveguide instruments
----------------------- Synthesis parameters computing and functions declaration ----------------------------
stereoizer is declared in instruments.lib and implement a stereo spacialisation in function of
the frequency period in number of samples
check if the vibraphone is used
vibrato
filter bank output gain
modal values for the filter bank
filter bank using biquad filters
the filter coefficients are interpolated when changing of preset
one pole filter with pole set at 0.9 for pre-filtering, onePole is declared in instruments.lib
excitation signal
readMarmstk1 and marmstk1TableSize are both declared in instruments.lib
the reading rate of the stick table is defined in function of the stickHardness
resonance
vibrato for the vibraphone
|
declare name "modalBar";
declare description "Nonlinear Modal percussive instruments";
declare author "Romain Michon ([email protected])";
declare copyright "Romain Michon";
declare version "1.0";
declare description "A number of different struck bar instruments. Presets numbers: 0->Marimba, 1->Vibraphone, 2->Agogo, 3->Wood1, 4->Reso, 5->Wood2, 6->Beats, 7->2Fix; 8->Clump";
import("instruments.lib");
readMarmstk1 = ffunction(float readMarmstk1 (int), <instrument.h>,"");
marmstk1TableSize = 246;
freq = nentry("h:Basic_Parameters/freq [1][unit:Hz] [tooltip:Tone frequency]",440,20,20000,1);
gain = nentry("h:Basic_Parameters/gain [1][tooltip:Gain (value between 0 and 1)]",0.8,0,1,0.01);
gate = button("h:Basic_Parameters/gate [1][tooltip:noteOn = 1, noteOff = 0]");
stickHardness = hslider("h:Physical_and_Nonlinearity/v:Physical_Parameters/Stick_Hardness
[2][tooltip:A value between 0 and 1]",0.25,0,1,0.01);
reson = nentry("h:Physical_and_Nonlinearity/v:Physical_Parameters/Resonance
[2][tooltip:A value between 0 and 1]",1,0,1,1);
presetNumber = nentry("h:Physical_and_Nonlinearity/v:Physical_Parameters/Preset
[2][tooltip:0->Marimba, 1->Vibraphone, 2->Agogo, 3->Wood1, 4->Reso, 5->Wood2, 6->Beats, 7->2Fix; 8->Clump]",1,0,8,1);
typeModulation = nentry("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Modulation_Type
[3][tooltip: 0=theta is modulated by the incoming signal; 1=theta is modulated by the averaged incoming signal;
2=theta is modulated by the squared incoming signal; 3=theta is modulated by a sine wave of frequency freqMod;
4=theta is modulated by a sine wave of frequency freq;]",0,0,4,1);
nonLinearity = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Nonlinearity
[3][tooltip:Nonlinearity factor (value between 0 and 1)]",0,0,1,0.01);
frequencyMod = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Modulation_Frequency
[3][unit:Hz][tooltip:Frequency of the sine wave for the modulation of theta (works if Modulation Type=3)]",220,20,1000,0.1);
nonLinAttack = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Nonlinearity_Attack
[3][unit:s][Attack duration of the nonlinearity]",0.1,0,2,0.01);
vibratoFreq = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Freq
[4][unit:Hz]",6,1,15,0.1);
vibratoGain = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Gain
[4][tooltip:A value between 0 and 1]",0.1,0,1,0.01);
nlfOrder = 6;
NLFM = nonLinearModulator((nonLinearity : si.smoo),1,freq,
typeModulation,(frequencyMod : si.smoo),nlfOrder);
stereo = stereoizer(ma.SR/freq);
vibratoOn = presetNumber == 1;
vibrato = 1 + os.osc(vibratoFreq)*vibratoGain*vibratoOn;
directGain = loadPreset(presetNumber,3,2);
loadPreset = ffunction(float loadPreset (int,int,int), <modalBar.h>,"");
biquadBank = _ <: sum(i, 4, oneFilter(i))
with{
condition(x) = x<0 <: *(-x),((-(1))*-1)*x*freq :> +;
dampCondition = (gate < 1) & (reson != 1);
oneFilter(j,y) = (loadPreset(presetNumber,0,j : si.smoo) : condition),
loadPreset(presetNumber,1,j : si.smoo)*(1-(gain*0.03*dampCondition)),
y*(loadPreset(presetNumber,2,j) : si.smoo) : bandPassH;
};
sourceFilter = onePole(b0,a1)
with{
b0 = 1 - 0.9;
a1 = -0.9;
};
excitation = counterSamples < (marmstk1TableSize*rate) : *(marmstk1Wave*gate)
with{
marmstk1 = ba.time%marmstk1TableSize : int : readMarmstk1;
dataRate(readRate) = readRate : (+ : ma.decimal) ~ _ : *(float(marmstk1TableSize));
rate = 0.25*pow(4,stickHardness);
counterSamples = (*(gate)+1)~_ : -(1);
marmstk1Wave = rdtable(marmstk1TableSize,marmstk1,int(dataRate(rate)*gate));
};
process = excitation : sourceFilter : *(gain) <:
(biquadBank <: -(*(directGain))) + (directGain*_) :
*(vibrato) : NLFM*0.6 : stereo : instrReverb;
|
bdde0d96f0ef1b37ffb14c569d359d6491c5319cf6ce2f30b07af41958bb0713
|
elk-community/faust-plugins
|
NLFeks.dsp
|
declare name "NLFeks";
declare author "Julius Smith and Romain Michon";
declare version "1.0";
declare license "STK-4.3";
declare copyright "Julius Smith";
declare reference "http://ccrma.stanford.edu/~jos/pasp/vegf.html";
// -> Virtual\_Electric\_Guitars\_Faust.html";
import("instruments.lib");
//==================== GUI SPECIFICATION ================
// standard MIDI voice parameters:
// NOTE: The labels MUST be "freq", "gain", and "gate" for faust2pd
freq = nentry("freq", 440, 20, 7040, 1); // Hz
gain = nentry("gain", 1, 0, 10, 0.01); // 0 to 1
gate = button("gate"); // 0 or 1
// Additional parameters (MIDI "controllers"):
// Pick angle in [0,0.9]:
pickangle = 0.9 * hslider("pick_angle",0,0,0.9,0.1);
// Normalized pick-position in [0,0.5]:
beta = hslider("pick_position [midi: ctrl 0x81]", 0.13, 0.02, 0.5, 0.01);
// MIDI Control 0x81 often "highpass filter frequency"
// String decay time in seconds:
t60 = hslider("decaytime_T60", 4, 0, 10, 0.01); // -60db decay time (sec)
// Normalized brightness in [0,1]:
B = hslider("brightness [midi:ctrl 0x74]", 0.5, 0, 1, 0.01);// 0-1
// MIDI Controller 0x74 is often "brightness"
// (or VCF lowpass cutoff freq)
// Dynamic level specified as dB level desired at Nyquist limit:
L = hslider("dynamic_level", -10, -60, 0, 1) : ba.db2linear;
// Note: A lively clavier is obtained by tying L to gain (MIDI velocity).
//Nonlinear filter parameters
typeModulation = nentry("v:Nonlinear Filter/typeMod",0,0,4,1);
nonLinearity = hslider("Nonlinearity",0,0,1,0.01) : si.smoo;
frequencyMod = hslider("freqMod",220,20,1000,0.1) : si.smoo;
//==================== SIGNAL PROCESSING ================
//----------------------- noiseburst -------------------------
// White noise burst (adapted from Faust's karplus.dsp example)
// Requires music.lib (for noise)
noiseburst(gate,P) = no.noise : *(gate : trigger(P))
with {
diffgtz(x) = (x-x') > 0;
decay(n,x) = x - (x>0)/n;
release(n) = + ~ decay(n);
trigger(n) = diffgtz : release(n) : > (0.0);
};
nlfOrder = 6;
P = ma.SR/freq ; // fundamental period in samples
Pmax = 4096; // maximum P (for delay-line allocation)
ppdel = beta*P; // pick position delay
pickposfilter = fi.ffcombfilter(Pmax,ppdel,-1);
excitation = noiseburst(gate,P) : *(gain); // defined in route.lib
rho = pow(0.001,1.0/(freq*t60)); // multiplies loop-gain
// Original EKS damping filter:
b1 = 0.5*B; b0 = 1.0-b1; // S and 1-S
dampingfilter1(x) = rho * ((b0 * x) + (b1 * x'));
// Linear phase FIR3 damping filter:
h0 = (1.0 + B)/2; h1 = (1.0 - B)/4;
dampingfilter2(x) = rho * (h0 * x' + h1*(x+x''));
loopfilter = dampingfilter2; // or dampingfilter1
filtered_excitation = excitation : si.smooth(pickangle)
: pickposfilter;// : levelfilter(L,freq);
//nonlinear allpass filter (nonLinearModulator is declared in instruments.lib)
NLFM = nonLinearModulator(nonLinearity,1,freq,typeModulation,frequencyMod,nlfOrder);
//declared in instruments.lib
stereo = stereoizer(P);
stringloop = (+ : de.fdelay4(Pmax, P-2)) ~ (loopfilter : NLFM);
process = filtered_excitation : stringloop : stereo : instrReverb;
|
https://raw.githubusercontent.com/elk-community/faust-plugins/79096404d4b4334dba512a3e3a8104afefb9db8d/faust-stk/NLFeks.dsp
|
faust
|
-> Virtual\_Electric\_Guitars\_Faust.html";
==================== GUI SPECIFICATION ================
standard MIDI voice parameters:
NOTE: The labels MUST be "freq", "gain", and "gate" for faust2pd
Hz
0 to 1
0 or 1
Additional parameters (MIDI "controllers"):
Pick angle in [0,0.9]:
Normalized pick-position in [0,0.5]:
MIDI Control 0x81 often "highpass filter frequency"
String decay time in seconds:
-60db decay time (sec)
Normalized brightness in [0,1]:
0-1
MIDI Controller 0x74 is often "brightness"
(or VCF lowpass cutoff freq)
Dynamic level specified as dB level desired at Nyquist limit:
Note: A lively clavier is obtained by tying L to gain (MIDI velocity).
Nonlinear filter parameters
==================== SIGNAL PROCESSING ================
----------------------- noiseburst -------------------------
White noise burst (adapted from Faust's karplus.dsp example)
Requires music.lib (for noise)
fundamental period in samples
maximum P (for delay-line allocation)
pick position delay
defined in route.lib
multiplies loop-gain
Original EKS damping filter:
S and 1-S
Linear phase FIR3 damping filter:
or dampingfilter1
: levelfilter(L,freq);
nonlinear allpass filter (nonLinearModulator is declared in instruments.lib)
declared in instruments.lib
|
declare name "NLFeks";
declare author "Julius Smith and Romain Michon";
declare version "1.0";
declare license "STK-4.3";
declare copyright "Julius Smith";
declare reference "http://ccrma.stanford.edu/~jos/pasp/vegf.html";
import("instruments.lib");
pickangle = 0.9 * hslider("pick_angle",0,0,0.9,0.1);
beta = hslider("pick_position [midi: ctrl 0x81]", 0.13, 0.02, 0.5, 0.01);
L = hslider("dynamic_level", -10, -60, 0, 1) : ba.db2linear;
typeModulation = nentry("v:Nonlinear Filter/typeMod",0,0,4,1);
nonLinearity = hslider("Nonlinearity",0,0,1,0.01) : si.smoo;
frequencyMod = hslider("freqMod",220,20,1000,0.1) : si.smoo;
noiseburst(gate,P) = no.noise : *(gate : trigger(P))
with {
diffgtz(x) = (x-x') > 0;
decay(n,x) = x - (x>0)/n;
release(n) = + ~ decay(n);
trigger(n) = diffgtz : release(n) : > (0.0);
};
nlfOrder = 6;
pickposfilter = fi.ffcombfilter(Pmax,ppdel,-1);
dampingfilter1(x) = rho * ((b0 * x) + (b1 * x'));
h0 = (1.0 + B)/2; h1 = (1.0 - B)/4;
dampingfilter2(x) = rho * (h0 * x' + h1*(x+x''));
filtered_excitation = excitation : si.smooth(pickangle)
NLFM = nonLinearModulator(nonLinearity,1,freq,typeModulation,frequencyMod,nlfOrder);
stereo = stereoizer(P);
stringloop = (+ : de.fdelay4(Pmax, P-2)) ~ (loopfilter : NLFM);
process = filtered_excitation : stringloop : stereo : instrReverb;
|
4931b4828811082a013ce38ea297a3e3cfa82c669cfd4fe1e2dbea4e76445c1e
|
elk-community/faust-plugins
|
uniBar.dsp
|
declare name "UniBar";
declare description "Nonlinear Banded Waveguide Models";
declare author "Romain Michon";
declare copyright "Romain Michon ([email protected])";
declare version "1.0";
declare licence "STK-4.3"; // Synthesis Tool Kit 4.3 (MIT style license);
declare description "This instrument uses banded waveguide. For more information, see Essl, G. and Cook, P. Banded Waveguides: Towards Physical Modelling of Bar Percussion Instruments, Proceedings of the 1999 International Computer Music Conference.";
import("instruments.lib");
//==================== GUI SPECIFICATION ================
freq = nentry("h:Basic_Parameters/freq [1][unit:Hz] [tooltip:Tone frequency]",440,20,20000,1);
gain = nentry("h:Basic_Parameters/gain [1][tooltip:Gain (value between 0 and 1)]",0.8,0,1,0.01);
gate = button("h:Basic_Parameters/gate [1][tooltip:noteOn = 1, noteOff = 0]");
select = nentry("h:Physical_and_Nonlinearity/v:Physical_Parameters/Excitation_Selector
[2][tooltip:0=Bow; 1=Strike]",0,0,1,1);
integrationConstant = hslider("h:Physical_and_Nonlinearity/v:Physical_Parameters/Integration_Constant
[2][tooltip:A value between 0 and 1]",0,0,1,0.01);
baseGain = hslider("h:Physical_and_Nonlinearity/v:Physical_Parameters/Base_Gain
[2][tooltip:A value between 0 and 1]",1,0,1,0.01);
bowPressure = hslider("h:Physical_and_Nonlinearity/v:Physical_Parameters/Bow_Pressure
[2][tooltip:Bow pressure on the instrument (Value between 0 and 1)]",0.2,0,1,0.01);
bowPosition = hslider("h:Physical_and_Nonlinearity/v:Physical_Parameters/Bow_Position
[2][tooltip:Bow position on the instrument (Value between 0 and 1)]",0,0,1,0.01);
//==================== MODAL PARAMETERS ================
preset = 1;
nMode(1) = 4;
modes(1,0) = 1;
basegains(1,0) = pow(0.9,1);
excitation(1,0) = 1*gain/nMode(1);
modes(1,1) = 2.756;
basegains(1,1) = pow(0.9,2);
excitation(1,1) = 1*gain/nMode(1);
modes(1,2) = 5.404;
basegains(1,2) = pow(0.9,3);
excitation(1,2) = 1*gain/nMode(1);
modes(1,3) = 8.933;
basegains(1,3) = pow(0.9,4);
excitation(1,3) = 1*gain/nMode(1);
//==================== SIGNAL PROCESSING ================
//----------------------- Synthesis parameters computing and functions declaration ----------------------------
//the number of modes depends on the preset being used
nModes = nMode(preset);
//bow table parameters
tableOffset = 0;
tableSlope = 10 - (9*bowPressure);
delayLengthBase = ma.SR/freq;
//delay lengths in number of samples
delayLength(x) = delayLengthBase/modes(preset,x);
//delay lines
delayLine(x) = de.delay(4096,delayLength(x));
//Filter bank: bandpass filters (declared in instruments.lib)
radius = 1 - ma.PI*32/ma.SR;
bandPassFilter(x) = bandPass(freq*modes(preset,x),radius);
//Delay lines feedback for bow table lookup control
baseGainApp = 0.8999999999999999 + (0.1*baseGain);
velocityInputApp = integrationConstant;
velocityInput = velocityInputApp + _*baseGainApp,par(i,(nModes-1),(_*baseGainApp)) :> +;
//Bow velocity is controlled by an ADSR envelope
maxVelocity = 0.03 + 0.1*gain;
bowVelocity = maxVelocity*en.adsr(0.02,0.005,0.9,0.01,gate);
//stereoizer is declared in instruments.lib and implement a stereo spacialisation in function of
//the frequency period in number of samples
stereo = stereoizer(delayLengthBase);
//----------------------- Algorithm implementation ----------------------------
//Bow table lookup (bow is decalred in instruments.lib)
bowing = bowVelocity - velocityInput <: *(bow(tableOffset,tableSlope)) : /(nModes);
//One resonance
resonance(x) = + : + (excitation(preset,x)*select) : delayLine(x) : *(basegains(preset,x)) : bandPassFilter(x);
process =
//Bowed Excitation
(bowing*((select-1)*-1) <:
//nModes resonances with nModes feedbacks for bow table look-up
par(i,nModes,(resonance(i)~_)))~par(i,nModes,_) :> + :
//Signal Scaling and stereo
*(14) : stereo : instrReverb;
|
https://raw.githubusercontent.com/elk-community/faust-plugins/79096404d4b4334dba512a3e3a8104afefb9db8d/faust-stk/uniBar.dsp
|
faust
|
Synthesis Tool Kit 4.3 (MIT style license);
==================== GUI SPECIFICATION ================
==================== MODAL PARAMETERS ================
==================== SIGNAL PROCESSING ================
----------------------- Synthesis parameters computing and functions declaration ----------------------------
the number of modes depends on the preset being used
bow table parameters
delay lengths in number of samples
delay lines
Filter bank: bandpass filters (declared in instruments.lib)
Delay lines feedback for bow table lookup control
Bow velocity is controlled by an ADSR envelope
stereoizer is declared in instruments.lib and implement a stereo spacialisation in function of
the frequency period in number of samples
----------------------- Algorithm implementation ----------------------------
Bow table lookup (bow is decalred in instruments.lib)
One resonance
Bowed Excitation
nModes resonances with nModes feedbacks for bow table look-up
Signal Scaling and stereo
|
declare name "UniBar";
declare description "Nonlinear Banded Waveguide Models";
declare author "Romain Michon";
declare copyright "Romain Michon ([email protected])";
declare version "1.0";
declare description "This instrument uses banded waveguide. For more information, see Essl, G. and Cook, P. Banded Waveguides: Towards Physical Modelling of Bar Percussion Instruments, Proceedings of the 1999 International Computer Music Conference.";
import("instruments.lib");
freq = nentry("h:Basic_Parameters/freq [1][unit:Hz] [tooltip:Tone frequency]",440,20,20000,1);
gain = nentry("h:Basic_Parameters/gain [1][tooltip:Gain (value between 0 and 1)]",0.8,0,1,0.01);
gate = button("h:Basic_Parameters/gate [1][tooltip:noteOn = 1, noteOff = 0]");
select = nentry("h:Physical_and_Nonlinearity/v:Physical_Parameters/Excitation_Selector
[2][tooltip:0=Bow; 1=Strike]",0,0,1,1);
integrationConstant = hslider("h:Physical_and_Nonlinearity/v:Physical_Parameters/Integration_Constant
[2][tooltip:A value between 0 and 1]",0,0,1,0.01);
baseGain = hslider("h:Physical_and_Nonlinearity/v:Physical_Parameters/Base_Gain
[2][tooltip:A value between 0 and 1]",1,0,1,0.01);
bowPressure = hslider("h:Physical_and_Nonlinearity/v:Physical_Parameters/Bow_Pressure
[2][tooltip:Bow pressure on the instrument (Value between 0 and 1)]",0.2,0,1,0.01);
bowPosition = hslider("h:Physical_and_Nonlinearity/v:Physical_Parameters/Bow_Position
[2][tooltip:Bow position on the instrument (Value between 0 and 1)]",0,0,1,0.01);
preset = 1;
nMode(1) = 4;
modes(1,0) = 1;
basegains(1,0) = pow(0.9,1);
excitation(1,0) = 1*gain/nMode(1);
modes(1,1) = 2.756;
basegains(1,1) = pow(0.9,2);
excitation(1,1) = 1*gain/nMode(1);
modes(1,2) = 5.404;
basegains(1,2) = pow(0.9,3);
excitation(1,2) = 1*gain/nMode(1);
modes(1,3) = 8.933;
basegains(1,3) = pow(0.9,4);
excitation(1,3) = 1*gain/nMode(1);
nModes = nMode(preset);
tableOffset = 0;
tableSlope = 10 - (9*bowPressure);
delayLengthBase = ma.SR/freq;
delayLength(x) = delayLengthBase/modes(preset,x);
delayLine(x) = de.delay(4096,delayLength(x));
radius = 1 - ma.PI*32/ma.SR;
bandPassFilter(x) = bandPass(freq*modes(preset,x),radius);
baseGainApp = 0.8999999999999999 + (0.1*baseGain);
velocityInputApp = integrationConstant;
velocityInput = velocityInputApp + _*baseGainApp,par(i,(nModes-1),(_*baseGainApp)) :> +;
maxVelocity = 0.03 + 0.1*gain;
bowVelocity = maxVelocity*en.adsr(0.02,0.005,0.9,0.01,gate);
stereo = stereoizer(delayLengthBase);
bowing = bowVelocity - velocityInput <: *(bow(tableOffset,tableSlope)) : /(nModes);
resonance(x) = + : + (excitation(preset,x)*select) : delayLine(x) : *(basegains(preset,x)) : bandPassFilter(x);
process =
(bowing*((select-1)*-1) <:
par(i,nModes,(resonance(i)~_)))~par(i,nModes,_) :> + :
*(14) : stereo : instrReverb;
|
53330798eaa84212aa2612e0d14ca72b2e9364f987f2d46b4ee636112be7e527
|
elk-community/faust-plugins
|
saxophony.dsp
|
declare name "saxophony";
declare description "Nonlinear WaveGuide Saxophone";
declare author "Romain Michon";
declare copyright "Romain Michon ([email protected])";
declare version "1.0";
declare licence "STK-4.3"; // Synthesis Tool Kit 4.3 (MIT style license);
declare description "This class implements a hybrid digital waveguide instrument that can generate a variety of wind-like sounds. It has also been referred to as the blowed string model. The waveguide section is essentially that of a string, with one rigid and one lossy termination. The non-linear function is a reed table. The string can be blown at any point between the terminations, though just as with strings, it is impossible to excite the system at either end. If the excitation is placed at the string mid-point, the sound is that of a clarinet. At points closer to the bridge, the sound is closer to that of a saxophone. See Scavone (2002) for more details.";
declare reference "https://ccrma.stanford.edu/~jos/pasp/Woodwinds.html";
import("instruments.lib");
//==================== GUI SPECIFICATION ================
freq = nentry("h:Basic_Parameters/freq [1][unit:Hz] [tooltip:Tone frequency]",440,20,20000,1);
gain = nentry("h:Basic_Parameters/gain [1][tooltip:Gain (value between 0 and 1)]",1,0,1,0.01);
gate = button("h:Basic_Parameters/gate [1][tooltip:noteOn = 1, noteOff = 0]");
pressure = hslider("h:Physical_and_Nonlinearity/v:Physical_Parameters/Pressure
[2][tooltip:Breath pressure (a value between 0 and 1)]",1,0,1,0.01);
reedStiffness = hslider("h:Physical_and_Nonlinearity/v:Physical_Parameters/Reed_Stiffness
[2][tooltip:A value between 0 and 1]",0.3,0,1,0.01);
blowPosition = hslider("h:Physical_and_Nonlinearity/v:Physical_Parameters/Blow_Position
[2][tooltip:A value between 0 and 1]",0.5,0,1,0.01);
noiseGain = hslider("h:Physical_and_Nonlinearity/v:Physical_Parameters/Noise_Gain",0.05,0,1,0.01);
typeModulation = nentry("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Modulation_Type
[3][tooltip: 0=theta is modulated by the incoming signal; 1=theta is modulated by the averaged incoming signal;
2=theta is modulated by the squared incoming signal; 3=theta is modulated by a sine wave of frequency freqMod;
4=theta is modulated by a sine wave of frequency freq;]",0,0,4,1);
nonLinearity = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Nonlinearity
[3][tooltip:Nonlinearity factor (value between 0 and 1)]",0,0,1,0.01);
frequencyMod = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Modulation_Frequency
[3][unit:Hz][tooltip:Frequency of the sine wave for the modulation of theta (works if Modulation Type=3)]",220,20,1000,0.1);
nonLinAttack = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Nonlinearity_Attack
[3][unit:s][Attack duration of the nonlinearity]",0.1,0,2,0.01);
vibratoFreq = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Freq
[4][unit:Hz]",6,1,15,0.1);
vibratoGain = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Gain
[4][tooltip:A value between 0 and 1]",0.1,0,1,0.01);
vibratoBegin = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Begin
[4][unit:s][tooltip:Vibrato silence duration before attack]",0.05,0,2,0.01);
vibratoAttack = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Attack
[4][unit:s][tooltip:Vibrato attack duration]",0.3,0,2,0.01);
vibratoRelease = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Release
[4][unit:s][tooltip:Vibrato release duration]",0.1,0,2,0.01);
envelopeAttack = hslider("h:Envelopes_and_Vibrato/v:Envelope_Parameters/Envelope_Attack
[5][unit:s][tooltip:Envelope attack duration]",0.05,0,2,0.01);
envelopeRelease = hslider("h:Envelopes_and_Vibrato/v:Envelope_Parameters/Envelope_Release
[5][unit:s][tooltip:Envelope release duration]",0.01,0,2,0.01);
//==================== SIGNAL PROCESSING ================
//----------------------- Nonlinear filter ----------------------------
//nonlinearities are created by the nonlinear passive allpass ladder filter declared in miscfilter.lib
//nonlinear filter order
nlfOrder = 6;
//attack - sustain - release envelope for nonlinearity (declared in instruments.lib)
envelopeMod = en.asr(nonLinAttack,1,envelopeRelease,gate);
//nonLinearModultor is declared in instruments.lib, it adapts allpassnn from miscfilter.lib
//for using it with waveguide instruments
NLFM = nonLinearModulator((nonLinearity : si.smoo),envelopeMod,freq,
typeModulation,(frequencyMod : si.smoo),nlfOrder);
//----------------------- Synthesis parameters computing and functions declaration ----------------------------
//stereoizer is declared in instruments.lib and implement a stereo spacialisation in function of
//the frequency period in number of samples
stereo = stereoizer(ma.SR/freq);
//reed table parameters
reedTableOffset = 0.7;
reedTableSlope = 0.1 + (0.4*reedStiffness);
//the reed function is declared in instruments.lib
reedTable = reed(reedTableOffset,reedTableSlope);
//Delay lines length in number of samples
fdel1 = (1-blowPosition) * (ma.SR/freq - 3);
fdel2 = (ma.SR/freq - 3)*blowPosition +1 ;
//Delay lines
delay1 = de.fdelay(4096,fdel1);
delay2 = de.fdelay(4096,fdel2);
//Breath pressure is controlled by an attack / sustain / release envelope (asr is declared in instruments.lib)
envelope = (0.55+pressure*0.3)*en.asr(pressure*envelopeAttack,1,pressure*envelopeRelease,gate);
breath = envelope + envelope*noiseGain*no.noise;
//envVibrato is decalred in instruments.lib
vibrato = vibratoGain*envVibrato(vibratoBegin,vibratoAttack,100,vibratoRelease,gate)*osc(vibratoFreq);
breathPressure = breath + breath*vibratoGain*os.osc(vibratoFreq);
//Body filter is a one zero filter (declared in instruments.lib)
bodyFilter = *(gain) : oneZero1(b0,b1)
with{
gain = -0.95;
b0 = 0.5;
b1 = 0.5;
};
instrumentBody(delay1FeedBack,breathP) = delay1FeedBack <: -(delay2) <:
((breathP - _ <: breathP - _*reedTable) - delay1FeedBack),_;
process =
(bodyFilter,breathPressure : instrumentBody) ~
(delay1 : NLFM) : !,
//Scaling Output and stereo
*(gain) : stereo : instrReverb;
|
https://raw.githubusercontent.com/elk-community/faust-plugins/79096404d4b4334dba512a3e3a8104afefb9db8d/faust-stk/saxophony.dsp
|
faust
|
Synthesis Tool Kit 4.3 (MIT style license);
==================== GUI SPECIFICATION ================
==================== SIGNAL PROCESSING ================
----------------------- Nonlinear filter ----------------------------
nonlinearities are created by the nonlinear passive allpass ladder filter declared in miscfilter.lib
nonlinear filter order
attack - sustain - release envelope for nonlinearity (declared in instruments.lib)
nonLinearModultor is declared in instruments.lib, it adapts allpassnn from miscfilter.lib
for using it with waveguide instruments
----------------------- Synthesis parameters computing and functions declaration ----------------------------
stereoizer is declared in instruments.lib and implement a stereo spacialisation in function of
the frequency period in number of samples
reed table parameters
the reed function is declared in instruments.lib
Delay lines length in number of samples
Delay lines
Breath pressure is controlled by an attack / sustain / release envelope (asr is declared in instruments.lib)
envVibrato is decalred in instruments.lib
Body filter is a one zero filter (declared in instruments.lib)
Scaling Output and stereo
|
declare name "saxophony";
declare description "Nonlinear WaveGuide Saxophone";
declare author "Romain Michon";
declare copyright "Romain Michon ([email protected])";
declare version "1.0";
declare description "This class implements a hybrid digital waveguide instrument that can generate a variety of wind-like sounds. It has also been referred to as the blowed string model. The waveguide section is essentially that of a string, with one rigid and one lossy termination. The non-linear function is a reed table. The string can be blown at any point between the terminations, though just as with strings, it is impossible to excite the system at either end. If the excitation is placed at the string mid-point, the sound is that of a clarinet. At points closer to the bridge, the sound is closer to that of a saxophone. See Scavone (2002) for more details.";
declare reference "https://ccrma.stanford.edu/~jos/pasp/Woodwinds.html";
import("instruments.lib");
freq = nentry("h:Basic_Parameters/freq [1][unit:Hz] [tooltip:Tone frequency]",440,20,20000,1);
gain = nentry("h:Basic_Parameters/gain [1][tooltip:Gain (value between 0 and 1)]",1,0,1,0.01);
gate = button("h:Basic_Parameters/gate [1][tooltip:noteOn = 1, noteOff = 0]");
pressure = hslider("h:Physical_and_Nonlinearity/v:Physical_Parameters/Pressure
[2][tooltip:Breath pressure (a value between 0 and 1)]",1,0,1,0.01);
reedStiffness = hslider("h:Physical_and_Nonlinearity/v:Physical_Parameters/Reed_Stiffness
[2][tooltip:A value between 0 and 1]",0.3,0,1,0.01);
blowPosition = hslider("h:Physical_and_Nonlinearity/v:Physical_Parameters/Blow_Position
[2][tooltip:A value between 0 and 1]",0.5,0,1,0.01);
noiseGain = hslider("h:Physical_and_Nonlinearity/v:Physical_Parameters/Noise_Gain",0.05,0,1,0.01);
typeModulation = nentry("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Modulation_Type
[3][tooltip: 0=theta is modulated by the incoming signal; 1=theta is modulated by the averaged incoming signal;
2=theta is modulated by the squared incoming signal; 3=theta is modulated by a sine wave of frequency freqMod;
4=theta is modulated by a sine wave of frequency freq;]",0,0,4,1);
nonLinearity = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Nonlinearity
[3][tooltip:Nonlinearity factor (value between 0 and 1)]",0,0,1,0.01);
frequencyMod = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Modulation_Frequency
[3][unit:Hz][tooltip:Frequency of the sine wave for the modulation of theta (works if Modulation Type=3)]",220,20,1000,0.1);
nonLinAttack = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Nonlinearity_Attack
[3][unit:s][Attack duration of the nonlinearity]",0.1,0,2,0.01);
vibratoFreq = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Freq
[4][unit:Hz]",6,1,15,0.1);
vibratoGain = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Gain
[4][tooltip:A value between 0 and 1]",0.1,0,1,0.01);
vibratoBegin = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Begin
[4][unit:s][tooltip:Vibrato silence duration before attack]",0.05,0,2,0.01);
vibratoAttack = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Attack
[4][unit:s][tooltip:Vibrato attack duration]",0.3,0,2,0.01);
vibratoRelease = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Release
[4][unit:s][tooltip:Vibrato release duration]",0.1,0,2,0.01);
envelopeAttack = hslider("h:Envelopes_and_Vibrato/v:Envelope_Parameters/Envelope_Attack
[5][unit:s][tooltip:Envelope attack duration]",0.05,0,2,0.01);
envelopeRelease = hslider("h:Envelopes_and_Vibrato/v:Envelope_Parameters/Envelope_Release
[5][unit:s][tooltip:Envelope release duration]",0.01,0,2,0.01);
nlfOrder = 6;
envelopeMod = en.asr(nonLinAttack,1,envelopeRelease,gate);
NLFM = nonLinearModulator((nonLinearity : si.smoo),envelopeMod,freq,
typeModulation,(frequencyMod : si.smoo),nlfOrder);
stereo = stereoizer(ma.SR/freq);
reedTableOffset = 0.7;
reedTableSlope = 0.1 + (0.4*reedStiffness);
reedTable = reed(reedTableOffset,reedTableSlope);
fdel1 = (1-blowPosition) * (ma.SR/freq - 3);
fdel2 = (ma.SR/freq - 3)*blowPosition +1 ;
delay1 = de.fdelay(4096,fdel1);
delay2 = de.fdelay(4096,fdel2);
envelope = (0.55+pressure*0.3)*en.asr(pressure*envelopeAttack,1,pressure*envelopeRelease,gate);
breath = envelope + envelope*noiseGain*no.noise;
vibrato = vibratoGain*envVibrato(vibratoBegin,vibratoAttack,100,vibratoRelease,gate)*osc(vibratoFreq);
breathPressure = breath + breath*vibratoGain*os.osc(vibratoFreq);
bodyFilter = *(gain) : oneZero1(b0,b1)
with{
gain = -0.95;
b0 = 0.5;
b1 = 0.5;
};
instrumentBody(delay1FeedBack,breathP) = delay1FeedBack <: -(delay2) <:
((breathP - _ <: breathP - _*reedTable) - delay1FeedBack),_;
process =
(bodyFilter,breathPressure : instrumentBody) ~
(delay1 : NLFM) : !,
*(gain) : stereo : instrReverb;
|
c1932ab74deb0c0ff97c1daadfda23dea43c167d894a9a60d0f2e29327c964b6
|
elk-community/faust-plugins
|
bowed.dsp
|
declare name "bowed";
declare description "Nonlinear WaveGuide Bowed Instrument";
declare author "Romain Michon";
declare copyright "Romain Michon ([email protected])";
declare version "1.0";
declare licence "STK-4.3"; // Synthesis Tool Kit 4.3 (MIT style license);
declare description "A bowed string model, a la Smith (1986), after McIntyre, Schumacher, Woodhouse (1983).";
declare reference "https://ccrma.stanford.edu/~jos/pasp/Bowed_Strings.html";
import("instruments.lib");
//==================== GUI SPECIFICATION ================
freq = nentry("h:Basic_Parameters/freq [1][unit:Hz] [tooltip:Tone frequency]",440,20,20000,1);
gain = nentry("h:Basic_Parameters/gain [1][tooltip:Gain (value between 0 and 1)]",1,0,1,0.01);
gate = button("h:Basic_Parameters/gate [1][tooltip:noteOn = 1, noteOff = 0]");
bowPosition = hslider("h:Physical_and_Nonlinearity/v:Physical_Parameters/Bow_Position
[2][tooltip:Bow position along the string (value between 0 and 1)]",0.7,0.01,1,0.01);
bowPressure = hslider("h:Physical_and_Nonlinearity/v:Physical_Parameters/Bow_Pressure
[2][tooltip:Bow pressure on the string (value between 0 and 1)]",0.75,0,1,0.01);
typeModulation = nentry("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Modulation_Type
[3][tooltip: 0=theta is modulated by the incoming signal; 1=theta is modulated by the averaged incoming signal;
2=theta is modulated by the squared incoming signal; 3=theta is modulated by a sine wave of frequency freqMod;
4=theta is modulated by a sine wave of frequency freq;]",0,0,4,1);
nonLinearity = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Nonlinearity
[3][tooltip:Nonlinearity factor (value between 0 and 1)]",0,0,1,0.01);
frequencyMod = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Modulation_Frequency
[3][unit:Hz][tooltip:Frequency of the sine wave for the modulation of theta (works if Modulation Type=3)]",220,20,1000,0.1);
nonLinAttack = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Nonlinearity_Attack
[3][unit:s][Attack duration of the nonlinearity]",0.1,0,2,0.01);
vibratoFreq = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Freq
[4][unit:Hz]",6,1,15,0.1);
vibratoGain = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Gain
[4][tooltip:A value between 0 and 1]",0.01,0,1,0.01);
vibratoBegin = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Begin
[4][unit:s][tooltip:Vibrato silence duration before attack]",0.05,0,2,0.01);
vibratoAttack = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Attack
[4][unit:s][tooltip:Vibrato attack duration]",0.5,0,2,0.01);
vibratoRelease = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Release
[4][unit:s][tooltip:Vibrato release duration]",0.01,0,2,0.01);
envelopeAttack = hslider("h:Envelopes_and_Vibrato/v:Envelope_Parameters/Envelope_Attack
[5][unit:s][tooltip:Envelope attack duration]",0.01,0,2,0.01);
envelopeDecay = hslider("h:Envelopes_and_Vibrato/v:Envelope_Parameters/Envelope_Decay
[5][unit:s][tooltip:Envelope decay duration]",0.05,0,2,0.01);
envelopeRelease = hslider("h:Envelopes_and_Vibrato/v:Envelope_Parameters/Envelope_Release
[5][unit:s][tooltip:Envelope release duration]",0.1,0,2,0.01);
//==================== SIGNAL PROCESSING ================
//----------------------- Nonlinear filter ----------------------------
//nonlinearities are created by the nonlinear passive allpass ladder filter declared in miscfilter.lib
//nonlinear filter order
nlfOrder = 6;
//attack - sustain - release envelope for nonlinearity (declared in instruments.lib)
envelopeMod = en.asr(nonLinAttack,1,envelopeRelease,gate);
//nonLinearModultor is declared in instruments.lib, it adapts allpassnn from miscfilter.lib
//for using it with waveguide instruments
NLFM = nonLinearModulator((nonLinearity : si.smoo),envelopeMod,freq,
typeModulation,(frequencyMod : si.smoo),nlfOrder);
//----------------------- Synthesis parameters computing and functions declaration ----------------------------
//Parameters for the bow table
tableOffset = 0;
tableSlope = 5 - (4*bowPressure);
//the bow table is declared in instruments.lib
bowTable = bow(tableOffset,tableSlope);
//a attack - decay - sustain - release envelope is used
envelope = en.adsr(gain*envelopeAttack,envelopeDecay,1, (1-gain)*envelopeRelease,gate);
maxVelocity = 0.03 + (0.2 * gain);
//Delay lines declaration and vibrato, the length of the two delay lines are evolving propotionally
betaRatio = 0.027236 + (0.2*bowPosition);
fdelneck = (ma.SR/freq-4)*(1 - betaRatio);
vibratoEnvelope = envVibrato(vibratoBegin,vibratoAttack,100,vibratoRelease,gate);
vibrato = fdelneck + ((ma.SR/freq - 4)*vibratoGain*vibratoEnvelope*os.osc(vibratoFreq));
neckDelay = de.fdelay(4096,vibrato);
fdelbridge = (ma.SR/freq - 4)*betaRatio;
bridgeDelay = de.delay(4096,fdelbridge);
//Body Filter: a biquad filter with a normalized pick gain (declared in instruments.lib)
bodyFilter = bandPass(500,0.85);
//String Filter: a lowpass filter (declared in instruments.lib)
stringFilter = *(0.95) : -onePole(b0,a1)
with{
pole = 0.6 - (0.1*22050/ma.SR);
gain = 0.95;
b0 = 1-pole;
a1 = -pole;
};
//stereoizer is declared in instruments.lib and implement a stereo spacialisation in function of
//the frequency period in number of samples
stereo = stereoizer(ma.SR/freq);
//----------------------- Algorithm implementation ----------------------------
bowVelocity = envelope*maxVelocity;
instrumentBody(feedBckBridge) = (*(-1) <: +(feedBckBridge),_ : (bowVelocity-_ <: *(bowTable) <: _,_),_ :
_, + : +(feedBckBridge),_) ~ (neckDelay) : !,_;
process = (stringFilter : instrumentBody) ~ (bridgeDelay : NLFM) : bodyFilter(*(0.2)) :
_*gain*8 : stereo : instrReverb;
|
https://raw.githubusercontent.com/elk-community/faust-plugins/79096404d4b4334dba512a3e3a8104afefb9db8d/faust-stk/bowed.dsp
|
faust
|
Synthesis Tool Kit 4.3 (MIT style license);
==================== GUI SPECIFICATION ================
==================== SIGNAL PROCESSING ================
----------------------- Nonlinear filter ----------------------------
nonlinearities are created by the nonlinear passive allpass ladder filter declared in miscfilter.lib
nonlinear filter order
attack - sustain - release envelope for nonlinearity (declared in instruments.lib)
nonLinearModultor is declared in instruments.lib, it adapts allpassnn from miscfilter.lib
for using it with waveguide instruments
----------------------- Synthesis parameters computing and functions declaration ----------------------------
Parameters for the bow table
the bow table is declared in instruments.lib
a attack - decay - sustain - release envelope is used
Delay lines declaration and vibrato, the length of the two delay lines are evolving propotionally
Body Filter: a biquad filter with a normalized pick gain (declared in instruments.lib)
String Filter: a lowpass filter (declared in instruments.lib)
stereoizer is declared in instruments.lib and implement a stereo spacialisation in function of
the frequency period in number of samples
----------------------- Algorithm implementation ----------------------------
|
declare name "bowed";
declare description "Nonlinear WaveGuide Bowed Instrument";
declare author "Romain Michon";
declare copyright "Romain Michon ([email protected])";
declare version "1.0";
declare description "A bowed string model, a la Smith (1986), after McIntyre, Schumacher, Woodhouse (1983).";
declare reference "https://ccrma.stanford.edu/~jos/pasp/Bowed_Strings.html";
import("instruments.lib");
freq = nentry("h:Basic_Parameters/freq [1][unit:Hz] [tooltip:Tone frequency]",440,20,20000,1);
gain = nentry("h:Basic_Parameters/gain [1][tooltip:Gain (value between 0 and 1)]",1,0,1,0.01);
gate = button("h:Basic_Parameters/gate [1][tooltip:noteOn = 1, noteOff = 0]");
bowPosition = hslider("h:Physical_and_Nonlinearity/v:Physical_Parameters/Bow_Position
[2][tooltip:Bow position along the string (value between 0 and 1)]",0.7,0.01,1,0.01);
bowPressure = hslider("h:Physical_and_Nonlinearity/v:Physical_Parameters/Bow_Pressure
[2][tooltip:Bow pressure on the string (value between 0 and 1)]",0.75,0,1,0.01);
typeModulation = nentry("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Modulation_Type
[3][tooltip: 0=theta is modulated by the incoming signal; 1=theta is modulated by the averaged incoming signal;
2=theta is modulated by the squared incoming signal; 3=theta is modulated by a sine wave of frequency freqMod;
4=theta is modulated by a sine wave of frequency freq;]",0,0,4,1);
nonLinearity = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Nonlinearity
[3][tooltip:Nonlinearity factor (value between 0 and 1)]",0,0,1,0.01);
frequencyMod = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Modulation_Frequency
[3][unit:Hz][tooltip:Frequency of the sine wave for the modulation of theta (works if Modulation Type=3)]",220,20,1000,0.1);
nonLinAttack = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Nonlinearity_Attack
[3][unit:s][Attack duration of the nonlinearity]",0.1,0,2,0.01);
vibratoFreq = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Freq
[4][unit:Hz]",6,1,15,0.1);
vibratoGain = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Gain
[4][tooltip:A value between 0 and 1]",0.01,0,1,0.01);
vibratoBegin = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Begin
[4][unit:s][tooltip:Vibrato silence duration before attack]",0.05,0,2,0.01);
vibratoAttack = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Attack
[4][unit:s][tooltip:Vibrato attack duration]",0.5,0,2,0.01);
vibratoRelease = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Release
[4][unit:s][tooltip:Vibrato release duration]",0.01,0,2,0.01);
envelopeAttack = hslider("h:Envelopes_and_Vibrato/v:Envelope_Parameters/Envelope_Attack
[5][unit:s][tooltip:Envelope attack duration]",0.01,0,2,0.01);
envelopeDecay = hslider("h:Envelopes_and_Vibrato/v:Envelope_Parameters/Envelope_Decay
[5][unit:s][tooltip:Envelope decay duration]",0.05,0,2,0.01);
envelopeRelease = hslider("h:Envelopes_and_Vibrato/v:Envelope_Parameters/Envelope_Release
[5][unit:s][tooltip:Envelope release duration]",0.1,0,2,0.01);
nlfOrder = 6;
envelopeMod = en.asr(nonLinAttack,1,envelopeRelease,gate);
NLFM = nonLinearModulator((nonLinearity : si.smoo),envelopeMod,freq,
typeModulation,(frequencyMod : si.smoo),nlfOrder);
tableOffset = 0;
tableSlope = 5 - (4*bowPressure);
bowTable = bow(tableOffset,tableSlope);
envelope = en.adsr(gain*envelopeAttack,envelopeDecay,1, (1-gain)*envelopeRelease,gate);
maxVelocity = 0.03 + (0.2 * gain);
betaRatio = 0.027236 + (0.2*bowPosition);
fdelneck = (ma.SR/freq-4)*(1 - betaRatio);
vibratoEnvelope = envVibrato(vibratoBegin,vibratoAttack,100,vibratoRelease,gate);
vibrato = fdelneck + ((ma.SR/freq - 4)*vibratoGain*vibratoEnvelope*os.osc(vibratoFreq));
neckDelay = de.fdelay(4096,vibrato);
fdelbridge = (ma.SR/freq - 4)*betaRatio;
bridgeDelay = de.delay(4096,fdelbridge);
bodyFilter = bandPass(500,0.85);
stringFilter = *(0.95) : -onePole(b0,a1)
with{
pole = 0.6 - (0.1*22050/ma.SR);
gain = 0.95;
b0 = 1-pole;
a1 = -pole;
};
stereo = stereoizer(ma.SR/freq);
bowVelocity = envelope*maxVelocity;
instrumentBody(feedBckBridge) = (*(-1) <: +(feedBckBridge),_ : (bowVelocity-_ <: *(bowTable) <: _,_),_ :
_, + : +(feedBckBridge),_) ~ (neckDelay) : !,_;
process = (stringFilter : instrumentBody) ~ (bridgeDelay : NLFM) : bodyFilter(*(0.2)) :
_*gain*8 : stereo : instrReverb;
|
ff87eecdbbf873d9081905bacda23beac1421a7d8dd5002a16a0b8d908d7a196
|
elk-community/faust-plugins
|
fluteStk.dsp
|
declare name "fluteStk";
declare description "Nonlinear WaveGuide Flute from STK";
declare author "Romain Michon";
declare copyright "Romain Michon ([email protected])";
declare version "1.0";
declare licence "STK-4.3"; // Synthesis Tool Kit 4.3 (MIT style license);
declare description "A simple flute physical model, as discussed by Karjalainen, Smith, Waryznyk, etc. The jet model uses a polynomial, a la Cook.";
declare reference "https://ccrma.stanford.edu/~jos/pasp/Flutes_Recorders_Pipe_Organs.html";
import("instruments.lib");
//==================== GUI SPECIFICATION ================
freq = nentry("h:Basic_Parameters/freq [1][unit:Hz] [tooltip:Tone frequency]",440,20,20000,1);
gain = nentry("h:Basic_Parameters/gain [1][tooltip:Gain (value between 0 and 1)]",1,0,1,0.01);
gate = button("h:Basic_Parameters/gate [1][tooltip:noteOn = 1, noteOff = 0]");
embouchureAjust = hslider("h:Physical_and_Nonlinearity/v:Physical_Parameters/Embouchure_Ajust
[2][tooltip:A value between 0 and 1]",0.5,0,1,0.01);
noiseGain = hslider("h:Physical_and_Nonlinearity/v:Physical_Parameters/Noise_Gain
[2][tooltip:A value between 0 and 1]",0.03,0,1,0.01);
pressure = hslider("h:Physical_and_Nonlinearity/v:Physical_Parameters/Pressure
[2][tooltip:Breath pressure (value between 0 and 1)]",1,0,1,0.01);
typeModulation = nentry("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Modulation_Type
[3][tooltip: 0=theta is modulated by the incoming signal; 1=theta is modulated by the averaged incoming signal;
2=theta is modulated by the squared incoming signal; 3=theta is modulated by a sine wave of frequency freqMod;
4=theta is modulated by a sine wave of frequency freq;]",0,0,4,1);
nonLinearity = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Nonlinearity
[3][tooltip:Nonlinearity factor (value between 0 and 1)]",0,0,1,0.01);
frequencyMod = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Modulation_Frequency
[3][unit:Hz][tooltip:Frequency of the sine wave for the modulation of theta (works if Modulation Type=3)]",220,20,1000,0.1);
nonLinAttack = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Nonlinearity_Attack
[3][unit:s][Attack duration of the nonlinearity]",0.1,0,2,0.01);
vibratoFreq = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Freq
[4][unit:Hz]",6,1,15,0.1);
vibratoGain = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Gain
[4][tooltip:A value between 0 and 1]",0.05,0,1,0.01);
vibratoBegin = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Begin
[4][unit:s][tooltip:Vibrato silence duration before attack]",0.05,0,2,0.01);
vibratoAttack = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Attack
[4][unit:s][tooltip:Vibrato attack duration]",0.5,0,2,0.01);
vibratoRelease = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Release
[4][unit:s][tooltip:Vibrato release duration]",0.1,0,2,0.01);
envelopeAttack = hslider("h:Envelopes_and_Vibrato/v:Envelope_Parameters/Envelope_Attack
[5][unit:s][tooltip:Envelope attack duration]",0.03,0,2,0.01);
envelopeDecay = hslider("h:Envelopes_and_Vibrato/v:Envelope_Parameters/Envelope_Decay
[5][unit:s][tooltip:Envelope decay duration]",0.01,0,2,0.01);
envelopeRelease = hslider("h:Envelopes_and_Vibrato/v:Envelope_Parameters/Envelope_Release
[5][unit:s][tooltip:Envelope release duration]",0.3,0,2,0.01);
//==================== SIGNAL PROCESSING ================
//----------------------- Nonlinear filter ----------------------------
//nonlinearities are created by the nonlinear passive allpass ladder filter declared in miscfilter.lib
//nonlinear filter order
nlfOrder = 6;
//attack - sustain - release envelope for nonlinearity (declared in instruments.lib)
envelopeMod = en.asr(nonLinAttack,1,envelopeRelease,gate);
//nonLinearModultor is declared in instruments.lib, it adapts allpassnn from miscfilter.lib
//for using it with waveguide instruments
NLFM = nonLinearModulator((nonLinearity : si.smoo),envelopeMod,freq,
typeModulation,(frequencyMod : si.smoo),nlfOrder);
//----------------------- Synthesis parameters computing and functions declaration ----------------------------
jetReflexion = 0.5;
//jetRatio = 0.08 + (0.48*embouchureAjust); //original stk function
jetRatio = 1+(0.5-embouchureAjust); //corrected function
endReflexion = 0.5;
//Delay lines lengths in number of samples
//jetDelayLength = (SR/freq-2)*jetRatio; //original stk function for jet delay length
jetDelayLength = (ma.SR/(freq*2)-2)*jetRatio; //corrected function for jet delay length
boreDelayLength = ma.SR/(freq*2)-2; //original function for bore delay length
//boreDelayLength = SR/(freq)-2; //corrected function for bore delay length
filterPole = 0.7 - (0.1*22050/ma.SR);
//One Pole Filter (declared in instruments.lib)
onePoleFilter = _*gain : onePole(b0,a1)
with{
gain = -1;
pole = 0.7 - (0.1*22050/ma.SR);
b0 = 1 - pole;
a1 = -pole;
};
//stereoizer is declared in instruments.lib and implement a stereo spacialisation in function of
//the frequency period in number of samples
stereo = stereoizer(ma.SR/freq);
//----------------------- Algorithm implementation ----------------------------
//the vibrato amplitude is controlled by an envelope generator (declared in instruments.lib)
vibrato = vibratoGain*envVibrato(vibratoBegin,vibratoAttack,100,vibratoRelease,gate)*os.osc(vibratoFreq);
//Breath pressure is controlled by an Attack / Decay / Sustain / Release envelope
envelopeBreath = pressure*en.adsr(pressure*envelopeAttack,envelopeDecay,0.8,envelopeRelease,gate);
breathPressure = envelopeBreath + envelopeBreath*(noiseGain*no.noise + vibrato) + 10.0^(-15.0);
//delay lines
jetDelay = de.fdelay(4096,jetDelayLength);
boreDelay = de.fdelay(4096,boreDelayLength);
//reflexion filter is a one pole and a dcblocker
reflexionFilters = onePoleFilter : fi.dcblocker;
process =
(reflexionFilters <:
//Differential Pressure
((breathPressure - _*jetReflexion) :
jetDelay : jetTable) + (_*endReflexion)) ~ (boreDelay : NLFM) :
//output scaling and stereo signal
*(0.3*gain) : stereo : instrReverb;
|
https://raw.githubusercontent.com/elk-community/faust-plugins/79096404d4b4334dba512a3e3a8104afefb9db8d/faust-stk/fluteStk.dsp
|
faust
|
Synthesis Tool Kit 4.3 (MIT style license);
==================== GUI SPECIFICATION ================
==================== SIGNAL PROCESSING ================
----------------------- Nonlinear filter ----------------------------
nonlinearities are created by the nonlinear passive allpass ladder filter declared in miscfilter.lib
nonlinear filter order
attack - sustain - release envelope for nonlinearity (declared in instruments.lib)
nonLinearModultor is declared in instruments.lib, it adapts allpassnn from miscfilter.lib
for using it with waveguide instruments
----------------------- Synthesis parameters computing and functions declaration ----------------------------
jetRatio = 0.08 + (0.48*embouchureAjust); //original stk function
corrected function
Delay lines lengths in number of samples
jetDelayLength = (SR/freq-2)*jetRatio; //original stk function for jet delay length
corrected function for jet delay length
original function for bore delay length
boreDelayLength = SR/(freq)-2; //corrected function for bore delay length
One Pole Filter (declared in instruments.lib)
stereoizer is declared in instruments.lib and implement a stereo spacialisation in function of
the frequency period in number of samples
----------------------- Algorithm implementation ----------------------------
the vibrato amplitude is controlled by an envelope generator (declared in instruments.lib)
Breath pressure is controlled by an Attack / Decay / Sustain / Release envelope
delay lines
reflexion filter is a one pole and a dcblocker
Differential Pressure
output scaling and stereo signal
|
declare name "fluteStk";
declare description "Nonlinear WaveGuide Flute from STK";
declare author "Romain Michon";
declare copyright "Romain Michon ([email protected])";
declare version "1.0";
declare description "A simple flute physical model, as discussed by Karjalainen, Smith, Waryznyk, etc. The jet model uses a polynomial, a la Cook.";
declare reference "https://ccrma.stanford.edu/~jos/pasp/Flutes_Recorders_Pipe_Organs.html";
import("instruments.lib");
freq = nentry("h:Basic_Parameters/freq [1][unit:Hz] [tooltip:Tone frequency]",440,20,20000,1);
gain = nentry("h:Basic_Parameters/gain [1][tooltip:Gain (value between 0 and 1)]",1,0,1,0.01);
gate = button("h:Basic_Parameters/gate [1][tooltip:noteOn = 1, noteOff = 0]");
embouchureAjust = hslider("h:Physical_and_Nonlinearity/v:Physical_Parameters/Embouchure_Ajust
[2][tooltip:A value between 0 and 1]",0.5,0,1,0.01);
noiseGain = hslider("h:Physical_and_Nonlinearity/v:Physical_Parameters/Noise_Gain
[2][tooltip:A value between 0 and 1]",0.03,0,1,0.01);
pressure = hslider("h:Physical_and_Nonlinearity/v:Physical_Parameters/Pressure
[2][tooltip:Breath pressure (value between 0 and 1)]",1,0,1,0.01);
typeModulation = nentry("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Modulation_Type
[3][tooltip: 0=theta is modulated by the incoming signal; 1=theta is modulated by the averaged incoming signal;
2=theta is modulated by the squared incoming signal; 3=theta is modulated by a sine wave of frequency freqMod;
4=theta is modulated by a sine wave of frequency freq;]",0,0,4,1);
nonLinearity = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Nonlinearity
[3][tooltip:Nonlinearity factor (value between 0 and 1)]",0,0,1,0.01);
frequencyMod = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Modulation_Frequency
[3][unit:Hz][tooltip:Frequency of the sine wave for the modulation of theta (works if Modulation Type=3)]",220,20,1000,0.1);
nonLinAttack = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Nonlinearity_Attack
[3][unit:s][Attack duration of the nonlinearity]",0.1,0,2,0.01);
vibratoFreq = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Freq
[4][unit:Hz]",6,1,15,0.1);
vibratoGain = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Gain
[4][tooltip:A value between 0 and 1]",0.05,0,1,0.01);
vibratoBegin = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Begin
[4][unit:s][tooltip:Vibrato silence duration before attack]",0.05,0,2,0.01);
vibratoAttack = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Attack
[4][unit:s][tooltip:Vibrato attack duration]",0.5,0,2,0.01);
vibratoRelease = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Release
[4][unit:s][tooltip:Vibrato release duration]",0.1,0,2,0.01);
envelopeAttack = hslider("h:Envelopes_and_Vibrato/v:Envelope_Parameters/Envelope_Attack
[5][unit:s][tooltip:Envelope attack duration]",0.03,0,2,0.01);
envelopeDecay = hslider("h:Envelopes_and_Vibrato/v:Envelope_Parameters/Envelope_Decay
[5][unit:s][tooltip:Envelope decay duration]",0.01,0,2,0.01);
envelopeRelease = hslider("h:Envelopes_and_Vibrato/v:Envelope_Parameters/Envelope_Release
[5][unit:s][tooltip:Envelope release duration]",0.3,0,2,0.01);
nlfOrder = 6;
envelopeMod = en.asr(nonLinAttack,1,envelopeRelease,gate);
NLFM = nonLinearModulator((nonLinearity : si.smoo),envelopeMod,freq,
typeModulation,(frequencyMod : si.smoo),nlfOrder);
jetReflexion = 0.5;
endReflexion = 0.5;
filterPole = 0.7 - (0.1*22050/ma.SR);
onePoleFilter = _*gain : onePole(b0,a1)
with{
gain = -1;
pole = 0.7 - (0.1*22050/ma.SR);
b0 = 1 - pole;
a1 = -pole;
};
stereo = stereoizer(ma.SR/freq);
vibrato = vibratoGain*envVibrato(vibratoBegin,vibratoAttack,100,vibratoRelease,gate)*os.osc(vibratoFreq);
envelopeBreath = pressure*en.adsr(pressure*envelopeAttack,envelopeDecay,0.8,envelopeRelease,gate);
breathPressure = envelopeBreath + envelopeBreath*(noiseGain*no.noise + vibrato) + 10.0^(-15.0);
jetDelay = de.fdelay(4096,jetDelayLength);
boreDelay = de.fdelay(4096,boreDelayLength);
reflexionFilters = onePoleFilter : fi.dcblocker;
process =
(reflexionFilters <:
((breathPressure - _*jetReflexion) :
jetDelay : jetTable) + (_*endReflexion)) ~ (boreDelay : NLFM) :
*(0.3*gain) : stereo : instrReverb;
|
5b8b114b49d14e933ca9905c7e2039b3751170ad7c62b7335eedaa769076f3df
|
elk-community/faust-plugins
|
voiceForm.dsp
|
declare name "voiceForm";
declare description "Voice Formant Instrument";
declare author "Romain Michon ([email protected])";
declare copyright "Romain Michon";
declare version "1.0";
declare licence "STK-4.3"; // Synthesis Tool Kit 4.3 (MIT style license);
declare description "This instrument contains an excitation singing wavetable (looping wave with random and periodic vibrato, smoothing on frequency, etc.), excitation noise, and four sweepable complex resonances. Phoneme preset numbers: 0->eee (beet), 1->ihh (bit), 2->ehh (bet), 3->aaa (bat), 4->ahh (father), 5->aww (bought), 6->ohh (bone), 7->uhh (but), 8->uuu (foot), 9->ooo (boot), 10->rrr (bird), 11->lll (lull), 12->mmm (mom), 13->nnn (nun), 14->nng (sang), 15->ngg (bong), 16->fff, 17->sss, 18->thh, 19->shh, 20->xxx, 21->hee (beet), 22->hoo (boot), 23->hah (father), 24->bbb, 25->ddd, 26->jjj, 27->ggg, 28->vvv, 29->zzz, 30->thz, 31->zhh";
import("instruments.lib");
//==================== GUI SPECIFICATION ================
freq = nentry("h:Basic_Parameters/freq [1][unit:Hz] [tooltip:Tone frequency]",440,20,20000,1);
gain = nentry("h:Basic_Parameters/gain [1][tooltip:Gain (value between 0 and 1)]",1,0,1,0.01);
gate = button("h:Basic_Parameters/gate [1][tooltip:noteOn = 1, noteOff = 0]");
phoneme = hslider("v:Physical_Parameters/Phoneme
[2][tooltip:0->eee, 1->ihh, 2->ehh, 3->aaa, 4->ahh, 5->aww, 6->ohh, 7->uhh, 8->uuu, 9->ooo, 10->rrr, 11->lll, 12->mmm, 13->nnn, 14->nng, 15->ngg, 16->fff, 17->sss, 18->thh, 19->shh, 20->xxx, 21->hee, 22->hoo, 23->hah, 24->bbb, 25->ddd, 26->jjj, 27->ggg, 28->vvv, 29->zzz, 30->thz, 31->zhh]",4,0,31,1);
vibratoFreq = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Freq
[3][unit:Hz]",6,1,15,0.1);
vibratoGain = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Gain
[3][tooltip:A value between 0 and 1]",0.05,0,1,0.01);
vibratoBegin = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Begin
[3][unit:s][tooltip:Vibrato silence duration before attack]",0.05,0,2,0.01);
vibratoAttack = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Attack
[3][unit:s][tooltip:Vibrato attack duration]",0.5,0,2,0.01);
vibratoRelease = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Release
[3][unit:s][tooltip:Vibrato release duration]",0.1,0,2,0.01);
voicedEnvelopeAttack = hslider("h:Envelopes_and_Vibrato/v:Envelope_Parameters/Voiced_Attack
[4][unit:s][tooltip:Voiced sounds attack duration]",0.01,0,2,0.01);
voicedEnvelopeRelease = hslider("h:Envelopes_and_Vibrato/v:Envelope_Parameters/Voiced_Release
[4][unit:s][tooltip:Voiced sounds release duration]",0.01,0,2,0.01);
noiseEnvelopeAttack = hslider("h:Envelopes_and_Vibrato/v:Envelope_Parameters/Noised_Attack
[4][unit:s][tooltip:Noised sounds attack duration]",0.001,0,2,0.001);
noiseEnvelopeRelease = hslider("h:Envelopes_and_Vibrato/v:Envelope_Parameters/Noised_Release
[4][unit:s][tooltip:Noised sounds release duration]",0.001,0,2,0.001);
//==================== SIGNAL PROCESSING ================
//----------------------- Synthesis parameters computing and functions declaration ----------------------------
//stereoizer is declared in instruments.lib and implement a stereo spacialisation in function of
//the frequency period in number of samples
stereo = stereoizer(ma.SR/freq);
//exitation filters (declared in instruments.lib)
onePoleFilter = onePole(b0,a1)
with{
pole = 0.97 - (gain*0.2);
b0 = 1 - pole;
a1 = -pole;
};
oneZeroFilter = oneZero1(b0,b1)
with{
zero = -0.9;
b0 = 1/(1 - zero);
b1 = -zero*b0;
};
//implements a formant (resonance) which can be "swept" over time from one frequency setting to another
formSwep(frequency,radius,filterGain) = *(gain_) : bandPass(frequency_,radius)
with{
//filter's radius, gain and frequency are interpolated
radius_ = radius : si.smoo;
frequency_ = frequency : si.smoo;
gain_ = filterGain : si.smoo;
};
//formants parameters are countained in a C++ file
phonemeGains = ffunction(float loadPhonemeGains(int,int), <phonemes.h>,"");
phonemeParameters = ffunction(float loadPhonemeParameters(int,int,int), <phonemes.h>,"");
//formants frequencies
ffreq0 = phonemeParameters(phoneme,0,0);
ffreq1 = phonemeParameters(phoneme,1,0);
ffreq2 = phonemeParameters(phoneme,2,0);
ffreq3 = phonemeParameters(phoneme,3,0);
//formants radius
frad0 = phonemeParameters(phoneme,0,1);
frad1 = phonemeParameters(phoneme,1,1);
frad2 = phonemeParameters(phoneme,2,1);
frad3 = phonemeParameters(phoneme,3,1);
//formants gains
fgain0 = phonemeParameters(phoneme,0,2) : pow(10,(_/20));
fgain1 = phonemeParameters(phoneme,1,2) : pow(10,(_/20));
fgain2 = phonemeParameters(phoneme,2,2) : pow(10,(_/20));
fgain3 = phonemeParameters(phoneme,3,2) : pow(10,(_/20));
//gain of the voiced part od the sound
voiceGain = phonemeGains(phoneme,0) : si.smoo;
//gain of the fricative part of the sound
noiseGain = phonemeGains(phoneme,1) : si.smoo;
//formants filters
filter0 = formSwep(ffreq0,frad0,fgain0);
filter1 = formSwep(ffreq1,frad1,fgain1);
filter2 = formSwep(ffreq2,frad2,fgain2);
filter3 = formSwep(ffreq3,frad3,fgain3);
//----------------------- Algorithm implementation ----------------------------
//envelopes (declared in instruments.lib) and vibrato
vibratoEnvelope = envVibrato(vibratoBegin,vibratoAttack,100,vibratoRelease,gate);
voicedEnvelope = en.asr(voicedEnvelopeAttack,1,voicedEnvelopeRelease,gate);
noiseEnvelope = en.asr(noiseEnvelopeAttack,1,noiseEnvelopeRelease,gate);
vibrato = os.osc(vibratoFreq)*vibratoGain*100*vibratoEnvelope;
//the voice source is generated by an impulse train
//(imptrain defined in oscillator.lib) that is lowpass filtered
voiced = os.imptrain(freq+vibrato) : fi.lowpass3e(3300) : *(voiceGain*voicedEnvelope);
//ficative sounds are produced by a noise generator
frica = no.noise*noiseEnvelope*noiseGain;
process = voiced : oneZeroFilter : onePoleFilter :
+(frica) <: filter0,filter1,filter2,filter3 :> + : stereo :
instrReverb;
|
https://raw.githubusercontent.com/elk-community/faust-plugins/79096404d4b4334dba512a3e3a8104afefb9db8d/faust-stk/voiceForm.dsp
|
faust
|
Synthesis Tool Kit 4.3 (MIT style license);
==================== GUI SPECIFICATION ================
==================== SIGNAL PROCESSING ================
----------------------- Synthesis parameters computing and functions declaration ----------------------------
stereoizer is declared in instruments.lib and implement a stereo spacialisation in function of
the frequency period in number of samples
exitation filters (declared in instruments.lib)
implements a formant (resonance) which can be "swept" over time from one frequency setting to another
filter's radius, gain and frequency are interpolated
formants parameters are countained in a C++ file
formants frequencies
formants radius
formants gains
gain of the voiced part od the sound
gain of the fricative part of the sound
formants filters
----------------------- Algorithm implementation ----------------------------
envelopes (declared in instruments.lib) and vibrato
the voice source is generated by an impulse train
(imptrain defined in oscillator.lib) that is lowpass filtered
ficative sounds are produced by a noise generator
|
declare name "voiceForm";
declare description "Voice Formant Instrument";
declare author "Romain Michon ([email protected])";
declare copyright "Romain Michon";
declare version "1.0";
declare description "This instrument contains an excitation singing wavetable (looping wave with random and periodic vibrato, smoothing on frequency, etc.), excitation noise, and four sweepable complex resonances. Phoneme preset numbers: 0->eee (beet), 1->ihh (bit), 2->ehh (bet), 3->aaa (bat), 4->ahh (father), 5->aww (bought), 6->ohh (bone), 7->uhh (but), 8->uuu (foot), 9->ooo (boot), 10->rrr (bird), 11->lll (lull), 12->mmm (mom), 13->nnn (nun), 14->nng (sang), 15->ngg (bong), 16->fff, 17->sss, 18->thh, 19->shh, 20->xxx, 21->hee (beet), 22->hoo (boot), 23->hah (father), 24->bbb, 25->ddd, 26->jjj, 27->ggg, 28->vvv, 29->zzz, 30->thz, 31->zhh";
import("instruments.lib");
freq = nentry("h:Basic_Parameters/freq [1][unit:Hz] [tooltip:Tone frequency]",440,20,20000,1);
gain = nentry("h:Basic_Parameters/gain [1][tooltip:Gain (value between 0 and 1)]",1,0,1,0.01);
gate = button("h:Basic_Parameters/gate [1][tooltip:noteOn = 1, noteOff = 0]");
phoneme = hslider("v:Physical_Parameters/Phoneme
[2][tooltip:0->eee, 1->ihh, 2->ehh, 3->aaa, 4->ahh, 5->aww, 6->ohh, 7->uhh, 8->uuu, 9->ooo, 10->rrr, 11->lll, 12->mmm, 13->nnn, 14->nng, 15->ngg, 16->fff, 17->sss, 18->thh, 19->shh, 20->xxx, 21->hee, 22->hoo, 23->hah, 24->bbb, 25->ddd, 26->jjj, 27->ggg, 28->vvv, 29->zzz, 30->thz, 31->zhh]",4,0,31,1);
vibratoFreq = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Freq
[3][unit:Hz]",6,1,15,0.1);
vibratoGain = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Gain
[3][tooltip:A value between 0 and 1]",0.05,0,1,0.01);
vibratoBegin = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Begin
[3][unit:s][tooltip:Vibrato silence duration before attack]",0.05,0,2,0.01);
vibratoAttack = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Attack
[3][unit:s][tooltip:Vibrato attack duration]",0.5,0,2,0.01);
vibratoRelease = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Release
[3][unit:s][tooltip:Vibrato release duration]",0.1,0,2,0.01);
voicedEnvelopeAttack = hslider("h:Envelopes_and_Vibrato/v:Envelope_Parameters/Voiced_Attack
[4][unit:s][tooltip:Voiced sounds attack duration]",0.01,0,2,0.01);
voicedEnvelopeRelease = hslider("h:Envelopes_and_Vibrato/v:Envelope_Parameters/Voiced_Release
[4][unit:s][tooltip:Voiced sounds release duration]",0.01,0,2,0.01);
noiseEnvelopeAttack = hslider("h:Envelopes_and_Vibrato/v:Envelope_Parameters/Noised_Attack
[4][unit:s][tooltip:Noised sounds attack duration]",0.001,0,2,0.001);
noiseEnvelopeRelease = hslider("h:Envelopes_and_Vibrato/v:Envelope_Parameters/Noised_Release
[4][unit:s][tooltip:Noised sounds release duration]",0.001,0,2,0.001);
stereo = stereoizer(ma.SR/freq);
onePoleFilter = onePole(b0,a1)
with{
pole = 0.97 - (gain*0.2);
b0 = 1 - pole;
a1 = -pole;
};
oneZeroFilter = oneZero1(b0,b1)
with{
zero = -0.9;
b0 = 1/(1 - zero);
b1 = -zero*b0;
};
formSwep(frequency,radius,filterGain) = *(gain_) : bandPass(frequency_,radius)
with{
radius_ = radius : si.smoo;
frequency_ = frequency : si.smoo;
gain_ = filterGain : si.smoo;
};
phonemeGains = ffunction(float loadPhonemeGains(int,int), <phonemes.h>,"");
phonemeParameters = ffunction(float loadPhonemeParameters(int,int,int), <phonemes.h>,"");
ffreq0 = phonemeParameters(phoneme,0,0);
ffreq1 = phonemeParameters(phoneme,1,0);
ffreq2 = phonemeParameters(phoneme,2,0);
ffreq3 = phonemeParameters(phoneme,3,0);
frad0 = phonemeParameters(phoneme,0,1);
frad1 = phonemeParameters(phoneme,1,1);
frad2 = phonemeParameters(phoneme,2,1);
frad3 = phonemeParameters(phoneme,3,1);
fgain0 = phonemeParameters(phoneme,0,2) : pow(10,(_/20));
fgain1 = phonemeParameters(phoneme,1,2) : pow(10,(_/20));
fgain2 = phonemeParameters(phoneme,2,2) : pow(10,(_/20));
fgain3 = phonemeParameters(phoneme,3,2) : pow(10,(_/20));
voiceGain = phonemeGains(phoneme,0) : si.smoo;
noiseGain = phonemeGains(phoneme,1) : si.smoo;
filter0 = formSwep(ffreq0,frad0,fgain0);
filter1 = formSwep(ffreq1,frad1,fgain1);
filter2 = formSwep(ffreq2,frad2,fgain2);
filter3 = formSwep(ffreq3,frad3,fgain3);
vibratoEnvelope = envVibrato(vibratoBegin,vibratoAttack,100,vibratoRelease,gate);
voicedEnvelope = en.asr(voicedEnvelopeAttack,1,voicedEnvelopeRelease,gate);
noiseEnvelope = en.asr(noiseEnvelopeAttack,1,noiseEnvelopeRelease,gate);
vibrato = os.osc(vibratoFreq)*vibratoGain*100*vibratoEnvelope;
voiced = os.imptrain(freq+vibrato) : fi.lowpass3e(3300) : *(voiceGain*voicedEnvelope);
frica = no.noise*noiseEnvelope*noiseGain;
process = voiced : oneZeroFilter : onePoleFilter :
+(frica) <: filter0,filter1,filter2,filter3 :> + : stereo :
instrReverb;
|
39e1182d94a8bb293572f95a4a0151f8d342b9645b9efa5cd1a95b55ca5575fd
|
elk-community/faust-plugins
|
NLFfm.dsp
|
declare name "NLFfm";
declare description "FM synthesizer implemented with a nonlinear passive allpass filter";
declare author "Romain Michon";
declare copyright "Romain Michon ([email protected])";
declare version "1.0";
import("instruments.lib");
//==================== GUI SPECIFICATION ================
freq = nentry("h:Basic_Parameters/freq [1][unit:Hz] [tooltip:Tone frequency]",440,20,20000,1);
gain = nentry("h:Basic_Parameters/gain [1][tooltip:Gain (value between 0 and 1)]",0.8,0,1,0.01);
gate = button("h:Basic_Parameters/gate [1][tooltip:noteOn = 1, noteOff = 0]");
typeModulation = nentry("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Modulation_Type
[2][tooltip: 0=theta is modulated by the incoming signal; 1=theta is modulated by the averaged incoming signal;
2=theta is modulated by the squared incoming signal; 3=theta is modulated by a sine wave of frequency freqMod;
4=theta is modulated by a sine wave of frequency freq;]",0,0,4,1);
nonLinearity = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Nonlinearity
[2][tooltip:Nonlinearity factor (value between 0 and 1)]",0,0,1,0.01);
frequencyMod = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Modulation_Frequency
[2][unit:Hz][tooltip:Frequency of the sine wave for the modulation of theta (works if Modulation Type=3)]",220,20,1000,0.1);
nonLinAttack = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Nonlinearity_Attack
[2][unit:s][Attack duration of the nonlinearity]",0.1,0,2,0.01);
vibratoFreq = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Freq
[3][unit:Hz]",5,1,15,0.1);
vibratoGain = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Gain
[3][tooltip:A value between 0 and 1]",0.1,0,1,0.01);
vibratoAttack = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Attack
[3][unit:s][tooltip:Vibrato attack duration]",0.5,0,2,0.01);
vibratoRelease = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Release
[3][unit:s][tooltip:Vibrato release duration]",0.01,0,2,0.01);
envelopeAttack = hslider("h:Envelopes_and_Vibrato/v:Envelope_Parameters/Envelope_Attack
[4][unit:s][tooltip:Envelope attack duration]",0.05,0,2,0.01);
envelopeDecay = hslider("h:Envelopes_and_Vibrato/v:Envelope_Parameters/Envelope_Decay
[4][unit:s][tooltip:Envelope decay duration]",0.05,0,2,0.01);
envelopeRelease = hslider("h:Envelopes_and_Vibrato/v:Envelope_Parameters/Envelope_Release
[4][unit:s][tooltip:Envelope release duration]",0.05,0,2,0.01);
//----------------------- Nonlinear filter ----------------------------
//nonlinearities are created by the nonlinear passive allpass ladder filter declared in miscfilter.lib
//nonlinear filter order
nlfOrder = 3;
//attack - sustain - release envelope for nonlinearity (declared in instruments.lib)
envelopeMod = en.asr(nonLinAttack,1,envelopeRelease,gate);
//nonLinearModultor is declared in instruments.lib, it adapts allpassnn from miscfilter.lib
//for using it with waveguide instruments
NLFM = nonLinearModulator((nonLinearity : si.smoo),envelopeMod,freq,
typeModulation,(frequencyMod : si.smoo),nlfOrder);
//----------------------- Algorithm implementation ----------------------------
//stereoizer is declared in instruments.lib and implement a stereo spacialisation in function of
//the frequency period in number of samples
stereo = stereoizer(ma.SR/freq);
//vibrato gain is controlled by envVibrato (declared in instruments.lib)
vibrato = os.osc(vibratoFreq)*vibratoGain*envVibrato(0.1*2*vibratoAttack,0.9*2*vibratoAttack,100,vibratoRelease,gate);
//output gain is controlled by an adsr envelope
envelope = en.adsr(envelopeAttack,envelopeDecay,0.9,envelopeRelease,gate)*gain;
breath = envelope + envelope*vibrato;
process = os.osc(freq)*breath : NLFM : stereo : instrReverb;
|
https://raw.githubusercontent.com/elk-community/faust-plugins/79096404d4b4334dba512a3e3a8104afefb9db8d/faust-stk/NLFfm.dsp
|
faust
|
==================== GUI SPECIFICATION ================
----------------------- Nonlinear filter ----------------------------
nonlinearities are created by the nonlinear passive allpass ladder filter declared in miscfilter.lib
nonlinear filter order
attack - sustain - release envelope for nonlinearity (declared in instruments.lib)
nonLinearModultor is declared in instruments.lib, it adapts allpassnn from miscfilter.lib
for using it with waveguide instruments
----------------------- Algorithm implementation ----------------------------
stereoizer is declared in instruments.lib and implement a stereo spacialisation in function of
the frequency period in number of samples
vibrato gain is controlled by envVibrato (declared in instruments.lib)
output gain is controlled by an adsr envelope
|
declare name "NLFfm";
declare description "FM synthesizer implemented with a nonlinear passive allpass filter";
declare author "Romain Michon";
declare copyright "Romain Michon ([email protected])";
declare version "1.0";
import("instruments.lib");
freq = nentry("h:Basic_Parameters/freq [1][unit:Hz] [tooltip:Tone frequency]",440,20,20000,1);
gain = nentry("h:Basic_Parameters/gain [1][tooltip:Gain (value between 0 and 1)]",0.8,0,1,0.01);
gate = button("h:Basic_Parameters/gate [1][tooltip:noteOn = 1, noteOff = 0]");
typeModulation = nentry("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Modulation_Type
[2][tooltip: 0=theta is modulated by the incoming signal; 1=theta is modulated by the averaged incoming signal;
2=theta is modulated by the squared incoming signal; 3=theta is modulated by a sine wave of frequency freqMod;
4=theta is modulated by a sine wave of frequency freq;]",0,0,4,1);
nonLinearity = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Nonlinearity
[2][tooltip:Nonlinearity factor (value between 0 and 1)]",0,0,1,0.01);
frequencyMod = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Modulation_Frequency
[2][unit:Hz][tooltip:Frequency of the sine wave for the modulation of theta (works if Modulation Type=3)]",220,20,1000,0.1);
nonLinAttack = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Nonlinearity_Attack
[2][unit:s][Attack duration of the nonlinearity]",0.1,0,2,0.01);
vibratoFreq = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Freq
[3][unit:Hz]",5,1,15,0.1);
vibratoGain = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Gain
[3][tooltip:A value between 0 and 1]",0.1,0,1,0.01);
vibratoAttack = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Attack
[3][unit:s][tooltip:Vibrato attack duration]",0.5,0,2,0.01);
vibratoRelease = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Release
[3][unit:s][tooltip:Vibrato release duration]",0.01,0,2,0.01);
envelopeAttack = hslider("h:Envelopes_and_Vibrato/v:Envelope_Parameters/Envelope_Attack
[4][unit:s][tooltip:Envelope attack duration]",0.05,0,2,0.01);
envelopeDecay = hslider("h:Envelopes_and_Vibrato/v:Envelope_Parameters/Envelope_Decay
[4][unit:s][tooltip:Envelope decay duration]",0.05,0,2,0.01);
envelopeRelease = hslider("h:Envelopes_and_Vibrato/v:Envelope_Parameters/Envelope_Release
[4][unit:s][tooltip:Envelope release duration]",0.05,0,2,0.01);
nlfOrder = 3;
envelopeMod = en.asr(nonLinAttack,1,envelopeRelease,gate);
NLFM = nonLinearModulator((nonLinearity : si.smoo),envelopeMod,freq,
typeModulation,(frequencyMod : si.smoo),nlfOrder);
stereo = stereoizer(ma.SR/freq);
vibrato = os.osc(vibratoFreq)*vibratoGain*envVibrato(0.1*2*vibratoAttack,0.9*2*vibratoAttack,100,vibratoRelease,gate);
envelope = en.adsr(envelopeAttack,envelopeDecay,0.9,envelopeRelease,gate)*gain;
breath = envelope + envelope*vibrato;
process = os.osc(freq)*breath : NLFM : stereo : instrReverb;
|
df8780e8de9db159e8238fe498efbf6a1ab8501ac6d9d873a30ee779d50f79f1
|
elk-community/faust-plugins
|
harpsi.dsp
|
declare name "harpsi";
declare description "Nonlinear WaveGuide Commuted Harpsichord";
declare author "Romain Michon ([email protected])";
declare copyright "Romain Michon";
declare version "1.0";
declare licence "STK-4.3"; // Synthesis Tool Kit 4.3 (MIT style license);
declare description "A commuted WaveGuide Harpsichord.";
import("instruments.lib");
//==================== GUI SPECIFICATION ================
freq = nentry("h:Basic_Parameters/freq [1][unit:Hz] [tooltip:Tone frequency]",440,20,20000,1);
gain = nentry("h:Basic_Parameters/gain [1][tooltip:Gain (value between 0 and 1)]",0.8,0,1,0.01);
gate = button("h:Basic_Parameters/gate [1][tooltip:noteOn = 1, noteOff = 0]");
typeModulation = nentry("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Modulation_Type
[2][tooltip: 0=theta is modulated by the incoming signal; 1=theta is modulated by the averaged incoming signal;
2=theta is modulated by the squared incoming signal; 3=theta is modulated by a sine wave of frequency freqMod;
4=theta is modulated by a sine wave of frequency freq;]",0,0,4,1);
nonLinearity = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Nonlinearity
[2][tooltip:Nonlinearity factor (value between 0 and 1)]",0,0,1,0.01);
frequencyMod = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Modulation_Frequency
[2][unit:Hz][tooltip:Frequency of the sine wave for the modulation of theta (works if Modulation Type=3)]",220,20,1000,0.1);
//==================== PROCESSING ================
//----------------------- Nonlinear filter ----------------------------
//nonlinearities are created by the nonlinear passive allpass ladder filter declared in miscfilter.lib
//nonlinear filter order
nlfOrder = 6;
//nonLinearModultor is declared in instruments.lib, it adapts allpassnn from miscfilter.lib
//for using it with waveguide instruments
NLFM = nonLinearModulator((nonLinearity : si.smoo),1,freq,
typeModulation,(frequencyMod : si.smoo),nlfOrder);
//----------------------- Synthesis parameters computing and functions declaration ----------------------------
//convert a frequency in a midi note number
freqToNoteNumber = (log-log(440))/log(2)*12+69+0.5 : int;
freqn = freq : freqToNoteNumber;
//string excitation
soundBoard = dryTapAmp*no.noise
with{
dryTapAmpT60 = ffunction(float getValueDryTapAmpT60(float), <harpsichord.h>,"");
noteCutOffTime = freqn : dryTapAmpT60*gain;
dryTapAmp = asympT60(0.15,0,noteCutOffTime,gate);
};
//loopfilter is a biquad filter whose coefficients are extracted from a C++ file using the foreign function mechanism
loopFilter = fi.TF2(b0,b1,b2,a1,a2)
with{
//functions are imported from the C++ file
loopFilterb0 = ffunction(float getValueLoopFilterb0(float), <harpsichord.h>,"");
loopFilterb1 = ffunction(float getValueLoopFilterb1(float), <harpsichord.h>,"");
loopFilterb2 = ffunction(float getValueLoopFilterb2(float), <harpsichord.h>,"");
loopFiltera1 = ffunction(float getValueLoopFiltera1(float), <harpsichord.h>,"");
loopFiltera2 = ffunction(float getValueLoopFiltera2(float), <harpsichord.h>,"");
//coefficients are extracted from the functions
b0 = loopFilterb0(freqn);
b1 = loopFilterb1(freqn);
b2 = loopFilterb2(freqn);
a1 = loopFiltera1(freqn);
a2 = loopFiltera2(freqn);
};
//delay length as a number of samples
delayLength = ma.SR/freq;
//stereoizer is declared in instruments.lib and implement a stereo spacialisation in function of
//the frequency period in number of samples
stereo = stereoizer(delayLength);
//----------------------- Algorithm implementation ----------------------------
//envelope for string loop resonance time
stringLoopGainT = gate*0.9996 + (gate<1)*releaseLoopGain(freqn)*0.9 : si.smoo
with{
releaseLoopGain = ffunction(float getValueReleaseLoopGain(float), <harpsichord.h>,"");
};
//one string
string = (*(stringLoopGainT)+_ : de.delay(4096,delayLength) : loopFilter)~NLFM;
process = soundBoard : string : stereo : instrReverb;
|
https://raw.githubusercontent.com/elk-community/faust-plugins/79096404d4b4334dba512a3e3a8104afefb9db8d/faust-stk/harpsi.dsp
|
faust
|
Synthesis Tool Kit 4.3 (MIT style license);
==================== GUI SPECIFICATION ================
==================== PROCESSING ================
----------------------- Nonlinear filter ----------------------------
nonlinearities are created by the nonlinear passive allpass ladder filter declared in miscfilter.lib
nonlinear filter order
nonLinearModultor is declared in instruments.lib, it adapts allpassnn from miscfilter.lib
for using it with waveguide instruments
----------------------- Synthesis parameters computing and functions declaration ----------------------------
convert a frequency in a midi note number
string excitation
loopfilter is a biquad filter whose coefficients are extracted from a C++ file using the foreign function mechanism
functions are imported from the C++ file
coefficients are extracted from the functions
delay length as a number of samples
stereoizer is declared in instruments.lib and implement a stereo spacialisation in function of
the frequency period in number of samples
----------------------- Algorithm implementation ----------------------------
envelope for string loop resonance time
one string
|
declare name "harpsi";
declare description "Nonlinear WaveGuide Commuted Harpsichord";
declare author "Romain Michon ([email protected])";
declare copyright "Romain Michon";
declare version "1.0";
declare description "A commuted WaveGuide Harpsichord.";
import("instruments.lib");
freq = nentry("h:Basic_Parameters/freq [1][unit:Hz] [tooltip:Tone frequency]",440,20,20000,1);
gain = nentry("h:Basic_Parameters/gain [1][tooltip:Gain (value between 0 and 1)]",0.8,0,1,0.01);
gate = button("h:Basic_Parameters/gate [1][tooltip:noteOn = 1, noteOff = 0]");
typeModulation = nentry("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Modulation_Type
[2][tooltip: 0=theta is modulated by the incoming signal; 1=theta is modulated by the averaged incoming signal;
2=theta is modulated by the squared incoming signal; 3=theta is modulated by a sine wave of frequency freqMod;
4=theta is modulated by a sine wave of frequency freq;]",0,0,4,1);
nonLinearity = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Nonlinearity
[2][tooltip:Nonlinearity factor (value between 0 and 1)]",0,0,1,0.01);
frequencyMod = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Modulation_Frequency
[2][unit:Hz][tooltip:Frequency of the sine wave for the modulation of theta (works if Modulation Type=3)]",220,20,1000,0.1);
nlfOrder = 6;
NLFM = nonLinearModulator((nonLinearity : si.smoo),1,freq,
typeModulation,(frequencyMod : si.smoo),nlfOrder);
freqToNoteNumber = (log-log(440))/log(2)*12+69+0.5 : int;
freqn = freq : freqToNoteNumber;
soundBoard = dryTapAmp*no.noise
with{
dryTapAmpT60 = ffunction(float getValueDryTapAmpT60(float), <harpsichord.h>,"");
noteCutOffTime = freqn : dryTapAmpT60*gain;
dryTapAmp = asympT60(0.15,0,noteCutOffTime,gate);
};
loopFilter = fi.TF2(b0,b1,b2,a1,a2)
with{
loopFilterb0 = ffunction(float getValueLoopFilterb0(float), <harpsichord.h>,"");
loopFilterb1 = ffunction(float getValueLoopFilterb1(float), <harpsichord.h>,"");
loopFilterb2 = ffunction(float getValueLoopFilterb2(float), <harpsichord.h>,"");
loopFiltera1 = ffunction(float getValueLoopFiltera1(float), <harpsichord.h>,"");
loopFiltera2 = ffunction(float getValueLoopFiltera2(float), <harpsichord.h>,"");
b0 = loopFilterb0(freqn);
b1 = loopFilterb1(freqn);
b2 = loopFilterb2(freqn);
a1 = loopFiltera1(freqn);
a2 = loopFiltera2(freqn);
};
delayLength = ma.SR/freq;
stereo = stereoizer(delayLength);
stringLoopGainT = gate*0.9996 + (gate<1)*releaseLoopGain(freqn)*0.9 : si.smoo
with{
releaseLoopGain = ffunction(float getValueReleaseLoopGain(float), <harpsichord.h>,"");
};
string = (*(stringLoopGainT)+_ : de.delay(4096,delayLength) : loopFilter)~NLFM;
process = soundBoard : string : stereo : instrReverb;
|
e7b7a56a71c74d61e649cdb26505e04baef3f22bcebde735ccb6726f64311336
|
elk-community/faust-plugins
|
clarinet.dsp
|
declare name "clarinet";
declare description "Nonlinear WaveGuide Clarinet";
declare author "Romain Michon";
declare copyright "Romain Michon ([email protected])";
declare version "1.0";
declare licence "STK-4.3"; // Synthesis Tool Kit 4.3 (MIT style license);
declare description "A simple clarinet physical model, as discussed by Smith (1986), McIntyre, Schumacher, Woodhouse (1983), and others.";
declare reference "https://ccrma.stanford.edu/~jos/pasp/Woodwinds.html";
import("instruments.lib");
//==================== GUI SPECIFICATION ================
freq = nentry("h:Basic_Parameters/freq [1][unit:Hz] [tooltip:Tone frequency]",440,20,20000,1);
gain = nentry("h:Basic_Parameters/gain [1][tooltip:Gain (value between 0 and 1)]",1,0,1,0.01);
gate = button("h:Basic_Parameters/gate [1][tooltip:noteOn = 1, noteOff = 0]");
reedStiffness = hslider("h:Physical_and_Nonlinearity/v:Physical_Parameters/Reed_Stiffness
[2][tooltip:Reed stiffness (value between 0 and 1)]",0.5,0,1,0.01);
noiseGain = hslider("h:Physical_and_Nonlinearity/v:Physical_Parameters/Noise_Gain
[2][tooltip:Breath noise gain (value between 0 and 1)]",0,0,1,0.01);
pressure = hslider("h:Physical_and_Nonlinearity/v:Physical_Parameters/Pressure
[2][tooltip:Breath pressure (value bewteen 0 and 1)]",1,0,1,0.01);
typeModulation = nentry("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Modulation_Type
[3][tooltip: 0=theta is modulated by the incoming signal; 1=theta is modulated by the averaged incoming signal;
2=theta is modulated by the squared incoming signal; 3=theta is modulated by a sine wave of frequency freqMod;
4=theta is modulated by a sine wave of frequency freq;]",0,0,4,1);
nonLinearity = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Nonlinearity
[3][tooltip:Nonlinearity factor (value between 0 and 1)]",0,0,1,0.01);
frequencyMod = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Modulation_Frequency
[3][unit:Hz][tooltip:Frequency of the sine wave for the modulation of theta (works if Modulation Type=3)]",220,20,1000,0.1);
nonLinAttack = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Nonlinearity_Attack
[3][unit:s][Attack duration of the nonlinearity]",0.1,0,2,0.01);
vibratoFreq = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Freq
[4][unit:Hz]",5,1,15,0.1);
vibratoGain = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Gain
[4][tooltip:A value between 0 and 1]",0.1,0,1,0.01);
vibratoAttack = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Attack
[4][unit:s][tooltip:Vibrato attack duration]",0.5,0,2,0.01);
vibratoRelease = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Release
[4][unit:s][tooltip:Vibrato release duration]",0.01,0,2,0.01);
envelopeAttack = hslider("h:Envelopes_and_Vibrato/v:Envelope_Parameters/Envelope_Attack
[5][unit:s][tooltip:Envelope attack duration]",0.01,0,2,0.01);
envelopeDecay = hslider("h:Envelopes_and_Vibrato/v:Envelope_Parameters/Envelope_Decay
[5][unit:s][tooltip:Envelope decay duration]",0.05,0,2,0.01);
envelopeRelease = hslider("h:Envelopes_and_Vibrato/v:Envelope_Parameters/Envelope_Release
[5][unit:s][tooltip:Envelope release duration]",0.1,0,2,0.01);
//==================== SIGNAL PROCESSING ======================
//----------------------- Nonlinear filter ----------------------------
//nonlinearities are created by the nonlinear passive allpass ladder filter declared in miscfilter.lib
//nonlinear filter order
nlfOrder = 6;
//attack - sustain - release envelope for nonlinearity (declared in instruments.lib)
envelopeMod = en.asr(nonLinAttack,1,envelopeRelease,gate);
//nonLinearModultor is declared in instruments.lib, it adapts allpassnn from miscfilter.lib
//for using it with waveguide instruments
NLFM = nonLinearModulator((nonLinearity : si.smoo),envelopeMod,freq,
typeModulation,(frequencyMod : si.smoo),nlfOrder);
//----------------------- Synthesis parameters computing and functions declaration ----------------------------
//reed table parameters
reedTableOffset = 0.7;
reedTableSlope = -0.44 + (0.26*reedStiffness);
//the reed function is declared in instruments.lib
reedTable = reed(reedTableOffset,reedTableSlope);
//delay line with a length adapted in function of the order of nonlinear filter
delayLength = ma.SR/freq*0.5 - 1.5 - (nlfOrder*nonLinearity)*(typeModulation < 2);
delayLine = de.fdelay(4096,delayLength);
//one zero filter used as a allpass: pole is set to -1
filter = oneZero0(0.5,0.5);
//stereoizer is declared in instruments.lib and implement a stereo spacialisation in function of
//the frequency period in number of samples
stereo = stereoizer(ma.SR/freq);
//----------------------- Algorithm implementation ----------------------------
//Breath pressure + vibrato + breath noise + envelope (Attack / Decay / Sustain / Release)
envelope = en.adsr(envelopeAttack,envelopeDecay,1,envelopeRelease,gate)*pressure*0.9;
vibrato = os.osc(vibratoFreq)*vibratoGain*
envVibrato(0.1*2*vibratoAttack,0.9*2*vibratoAttack,100,vibratoRelease,gate);
breath = envelope + envelope*no.noise*noiseGain;
breathPressure = breath + breath*vibrato;
process =
//Commuted Loss Filtering
(_,(breathPressure <: _,_) : (filter*-0.95 - _ <:
//Non-Linear Scattering
*(reedTable)) + _) ~
//Delay with Feedback
(delayLine : NLFM) :
//scaling and stereo
*(gain)*1.5 : stereo : instrReverb;
|
https://raw.githubusercontent.com/elk-community/faust-plugins/79096404d4b4334dba512a3e3a8104afefb9db8d/faust-stk/clarinet.dsp
|
faust
|
Synthesis Tool Kit 4.3 (MIT style license);
==================== GUI SPECIFICATION ================
==================== SIGNAL PROCESSING ======================
----------------------- Nonlinear filter ----------------------------
nonlinearities are created by the nonlinear passive allpass ladder filter declared in miscfilter.lib
nonlinear filter order
attack - sustain - release envelope for nonlinearity (declared in instruments.lib)
nonLinearModultor is declared in instruments.lib, it adapts allpassnn from miscfilter.lib
for using it with waveguide instruments
----------------------- Synthesis parameters computing and functions declaration ----------------------------
reed table parameters
the reed function is declared in instruments.lib
delay line with a length adapted in function of the order of nonlinear filter
one zero filter used as a allpass: pole is set to -1
stereoizer is declared in instruments.lib and implement a stereo spacialisation in function of
the frequency period in number of samples
----------------------- Algorithm implementation ----------------------------
Breath pressure + vibrato + breath noise + envelope (Attack / Decay / Sustain / Release)
Commuted Loss Filtering
Non-Linear Scattering
Delay with Feedback
scaling and stereo
|
declare name "clarinet";
declare description "Nonlinear WaveGuide Clarinet";
declare author "Romain Michon";
declare copyright "Romain Michon ([email protected])";
declare version "1.0";
declare description "A simple clarinet physical model, as discussed by Smith (1986), McIntyre, Schumacher, Woodhouse (1983), and others.";
declare reference "https://ccrma.stanford.edu/~jos/pasp/Woodwinds.html";
import("instruments.lib");
freq = nentry("h:Basic_Parameters/freq [1][unit:Hz] [tooltip:Tone frequency]",440,20,20000,1);
gain = nentry("h:Basic_Parameters/gain [1][tooltip:Gain (value between 0 and 1)]",1,0,1,0.01);
gate = button("h:Basic_Parameters/gate [1][tooltip:noteOn = 1, noteOff = 0]");
reedStiffness = hslider("h:Physical_and_Nonlinearity/v:Physical_Parameters/Reed_Stiffness
[2][tooltip:Reed stiffness (value between 0 and 1)]",0.5,0,1,0.01);
noiseGain = hslider("h:Physical_and_Nonlinearity/v:Physical_Parameters/Noise_Gain
[2][tooltip:Breath noise gain (value between 0 and 1)]",0,0,1,0.01);
pressure = hslider("h:Physical_and_Nonlinearity/v:Physical_Parameters/Pressure
[2][tooltip:Breath pressure (value bewteen 0 and 1)]",1,0,1,0.01);
typeModulation = nentry("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Modulation_Type
[3][tooltip: 0=theta is modulated by the incoming signal; 1=theta is modulated by the averaged incoming signal;
2=theta is modulated by the squared incoming signal; 3=theta is modulated by a sine wave of frequency freqMod;
4=theta is modulated by a sine wave of frequency freq;]",0,0,4,1);
nonLinearity = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Nonlinearity
[3][tooltip:Nonlinearity factor (value between 0 and 1)]",0,0,1,0.01);
frequencyMod = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Modulation_Frequency
[3][unit:Hz][tooltip:Frequency of the sine wave for the modulation of theta (works if Modulation Type=3)]",220,20,1000,0.1);
nonLinAttack = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Nonlinearity_Attack
[3][unit:s][Attack duration of the nonlinearity]",0.1,0,2,0.01);
vibratoFreq = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Freq
[4][unit:Hz]",5,1,15,0.1);
vibratoGain = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Gain
[4][tooltip:A value between 0 and 1]",0.1,0,1,0.01);
vibratoAttack = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Attack
[4][unit:s][tooltip:Vibrato attack duration]",0.5,0,2,0.01);
vibratoRelease = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Release
[4][unit:s][tooltip:Vibrato release duration]",0.01,0,2,0.01);
envelopeAttack = hslider("h:Envelopes_and_Vibrato/v:Envelope_Parameters/Envelope_Attack
[5][unit:s][tooltip:Envelope attack duration]",0.01,0,2,0.01);
envelopeDecay = hslider("h:Envelopes_and_Vibrato/v:Envelope_Parameters/Envelope_Decay
[5][unit:s][tooltip:Envelope decay duration]",0.05,0,2,0.01);
envelopeRelease = hslider("h:Envelopes_and_Vibrato/v:Envelope_Parameters/Envelope_Release
[5][unit:s][tooltip:Envelope release duration]",0.1,0,2,0.01);
nlfOrder = 6;
envelopeMod = en.asr(nonLinAttack,1,envelopeRelease,gate);
NLFM = nonLinearModulator((nonLinearity : si.smoo),envelopeMod,freq,
typeModulation,(frequencyMod : si.smoo),nlfOrder);
reedTableOffset = 0.7;
reedTableSlope = -0.44 + (0.26*reedStiffness);
reedTable = reed(reedTableOffset,reedTableSlope);
delayLength = ma.SR/freq*0.5 - 1.5 - (nlfOrder*nonLinearity)*(typeModulation < 2);
delayLine = de.fdelay(4096,delayLength);
filter = oneZero0(0.5,0.5);
stereo = stereoizer(ma.SR/freq);
envelope = en.adsr(envelopeAttack,envelopeDecay,1,envelopeRelease,gate)*pressure*0.9;
vibrato = os.osc(vibratoFreq)*vibratoGain*
envVibrato(0.1*2*vibratoAttack,0.9*2*vibratoAttack,100,vibratoRelease,gate);
breath = envelope + envelope*no.noise*noiseGain;
breathPressure = breath + breath*vibrato;
process =
(_,(breathPressure <: _,_) : (filter*-0.95 - _ <:
*(reedTable)) + _) ~
(delayLine : NLFM) :
*(gain)*1.5 : stereo : instrReverb;
|
5edec547bd96aa5efb13282f91802bb00a41bf3ce8e06b9808434f8855964a14
|
elk-community/faust-plugins
|
brass.dsp
|
declare name "brass";
declare description "WaveGuide Brass instrument from STK";
declare author "Romain Michon ([email protected])";
declare copyright "Romain Michon";
declare version "1.0";
declare licence "STK-4.3"; // Synthesis Tool Kit 4.3 (MIT style license);
declare description "A simple brass instrument waveguide model, a la Cook (TBone, HosePlayer).";
declare reference "https://ccrma.stanford.edu/~jos/pasp/Brasses.html";
import("instruments.lib");
//==================== GUI SPECIFICATION ================
freq = nentry("h:Basic_Parameters/freq [1][unit:Hz] [tooltip:Tone frequency]",440,20,20000,1);
gain = nentry("h:Basic_Parameters/gain [1][tooltip:Gain (value between 0 and 1)]",1,0,1,0.01);
gate = button("h:Basic_Parameters/gate [1][tooltip:noteOn = 1, noteOff = 0]");
pressure = hslider("h:Physical_and_Nonlinearity/v:Physical_Parameters/Pressure
[2][tooltip:A value between 0 and 1]",1,0.01,1,0.01);
lipTension = hslider("h:Physical_and_Nonlinearity/v:Physical_Parameters/Lip_Tension
[2][tooltip:A value between 0 and 1]",0.780,0.01,1,0.001);
slideLength = hslider("h:Physical_and_Nonlinearity/v:Physical_Parameters/Slide_Length
[2][tooltip:A value between 0 and 1]",0.041,0.01,1,0.001);
typeModulation = nentry("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Modulation_Type
[3][tooltip: 0=theta is modulated by the incoming signal; 1=theta is modulated by the averaged incoming signal;
2=theta is modulated by the squared incoming signal; 3=theta is modulated by a sine wave of frequency freqMod;
4=theta is modulated by a sine wave of frequency freq;]",0,0,4,1);
nonLinearity = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Nonlinearity
[3][tooltip:Nonlinearity factor (value between 0 and 1)]",0,0,1,0.01);
frequencyMod = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Modulation_Frequency
[3][unit:Hz][tooltip:Frequency of the sine wave for the modulation of theta (works if Modulation Type=3)]",220,20,1000,0.1);
nonLinAttack = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Nonlinearity_Attack
[3][unit:s][Attack duration of the nonlinearity]",0.1,0,2,0.01);
vibratoFreq = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Freq
[4][unit:Hz]",6,1,15,0.1);
vibratoGain = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Gain
[4][tooltip:A value between 0 and 1]",0.05,0,1,0.01);
vibratoBegin = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Begin
[4][unit:s][tooltip:Vibrato silence duration before attack]",0.05,0,2,0.01);
vibratoAttack = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Attack
[4][unit:s][tooltip:Vibrato attack duration]",0.5,0,2,0.01);
vibratoRelease = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Release
[4][unit:s][tooltip:Vibrato release duration]",0.1,0,2,0.01);
envelopeAttack = hslider("h:Envelopes_and_Vibrato/v:Envelope_Parameters/Envelope_Attack
[5][unit:s][tooltip:Envelope attack duration]",0.005,0,2,0.01);
envelopeDecay = hslider("h:Envelopes_and_Vibrato/v:Envelope_Parameters/Envelope_Decay
[5][unit:s][tooltip:Envelope decay duration]",0.001,0,2,0.01);
envelopeRelease = hslider("h:Envelopes_and_Vibrato/v:Envelope_Parameters/Envelope_Release
[5][unit:s][tooltip:Envelope release duration]",0.07,0,2,0.01);
//==================== SIGNAL PROCESSING ================
//----------------------- Nonlinear filter ----------------------------
//nonlinearities are created by the nonlinear passive allpass ladder filter declared in miscfilter.lib
//nonlinear filter order
nlfOrder = 6;
//attack - sustain - release envelope for nonlinearity (declared in instruments.lib)
envelopeMod = en.asr(nonLinAttack,1,envelopeRelease,gate);
//nonLinearModultor is declared in instruments.lib, it adapts allpassnn from miscfilter.lib
//for using it with waveguide instruments
NLFM = nonLinearModulator((nonLinearity : si.smoo),envelopeMod,freq,
typeModulation,(frequencyMod : si.smoo),nlfOrder);
//----------------------- Synthesis parameters computing and functions declaration ----------------------------
//lips are simulated by a biquad filter whose output is squared and hard-clipped, bandPassH and saturationPos are declared in instruments.lib
lipFilterFrequency = freq*pow(4,(2*lipTension)-1);
lipFilter = *(0.03) : bandPassH(lipFilterFrequency,0.997) <: * : saturationPos;
//stereoizer is declared in instruments.lib and implement a stereo spacialisation in function of
//the frequency period in number of samples
stereo = stereoizer(ma.SR/freq);
//delay times in number of samples
slideTarget = ((ma.SR/freq)*2 + 3)*(0.5 + slideLength);
boreDelay = de.fdelay(4096,slideTarget);
//----------------------- Algorithm implementation ----------------------------
//vibrato
vibrato = vibratoGain*os.osc(vibratoFreq)*envVibrato(vibratoBegin,vibratoAttack,100,vibratoRelease,gate);
//envelope (Attack / Decay / Sustain / Release), breath pressure and vibrato
breathPressure = pressure*en.adsr(envelopeAttack,envelopeDecay,1,envelopeRelease,gate) + vibrato;
mouthPressure = 0.3*breathPressure;
//scale the delay feedback
borePressure = *(0.85);
//differencial presure
deltaPressure = mouthPressure - _;
process = (borePressure <: deltaPressure,_ :
(lipFilter <: *(mouthPressure),(1-_)),_ : _, * :> + :
fi.dcblocker) ~ (boreDelay : NLFM) :
*(gain)*4 : stereo : instrReverb;
|
https://raw.githubusercontent.com/elk-community/faust-plugins/79096404d4b4334dba512a3e3a8104afefb9db8d/faust-stk/brass.dsp
|
faust
|
Synthesis Tool Kit 4.3 (MIT style license);
==================== GUI SPECIFICATION ================
==================== SIGNAL PROCESSING ================
----------------------- Nonlinear filter ----------------------------
nonlinearities are created by the nonlinear passive allpass ladder filter declared in miscfilter.lib
nonlinear filter order
attack - sustain - release envelope for nonlinearity (declared in instruments.lib)
nonLinearModultor is declared in instruments.lib, it adapts allpassnn from miscfilter.lib
for using it with waveguide instruments
----------------------- Synthesis parameters computing and functions declaration ----------------------------
lips are simulated by a biquad filter whose output is squared and hard-clipped, bandPassH and saturationPos are declared in instruments.lib
stereoizer is declared in instruments.lib and implement a stereo spacialisation in function of
the frequency period in number of samples
delay times in number of samples
----------------------- Algorithm implementation ----------------------------
vibrato
envelope (Attack / Decay / Sustain / Release), breath pressure and vibrato
scale the delay feedback
differencial presure
|
declare name "brass";
declare description "WaveGuide Brass instrument from STK";
declare author "Romain Michon ([email protected])";
declare copyright "Romain Michon";
declare version "1.0";
declare description "A simple brass instrument waveguide model, a la Cook (TBone, HosePlayer).";
declare reference "https://ccrma.stanford.edu/~jos/pasp/Brasses.html";
import("instruments.lib");
freq = nentry("h:Basic_Parameters/freq [1][unit:Hz] [tooltip:Tone frequency]",440,20,20000,1);
gain = nentry("h:Basic_Parameters/gain [1][tooltip:Gain (value between 0 and 1)]",1,0,1,0.01);
gate = button("h:Basic_Parameters/gate [1][tooltip:noteOn = 1, noteOff = 0]");
pressure = hslider("h:Physical_and_Nonlinearity/v:Physical_Parameters/Pressure
[2][tooltip:A value between 0 and 1]",1,0.01,1,0.01);
lipTension = hslider("h:Physical_and_Nonlinearity/v:Physical_Parameters/Lip_Tension
[2][tooltip:A value between 0 and 1]",0.780,0.01,1,0.001);
slideLength = hslider("h:Physical_and_Nonlinearity/v:Physical_Parameters/Slide_Length
[2][tooltip:A value between 0 and 1]",0.041,0.01,1,0.001);
typeModulation = nentry("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Modulation_Type
[3][tooltip: 0=theta is modulated by the incoming signal; 1=theta is modulated by the averaged incoming signal;
2=theta is modulated by the squared incoming signal; 3=theta is modulated by a sine wave of frequency freqMod;
4=theta is modulated by a sine wave of frequency freq;]",0,0,4,1);
nonLinearity = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Nonlinearity
[3][tooltip:Nonlinearity factor (value between 0 and 1)]",0,0,1,0.01);
frequencyMod = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Modulation_Frequency
[3][unit:Hz][tooltip:Frequency of the sine wave for the modulation of theta (works if Modulation Type=3)]",220,20,1000,0.1);
nonLinAttack = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Nonlinearity_Attack
[3][unit:s][Attack duration of the nonlinearity]",0.1,0,2,0.01);
vibratoFreq = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Freq
[4][unit:Hz]",6,1,15,0.1);
vibratoGain = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Gain
[4][tooltip:A value between 0 and 1]",0.05,0,1,0.01);
vibratoBegin = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Begin
[4][unit:s][tooltip:Vibrato silence duration before attack]",0.05,0,2,0.01);
vibratoAttack = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Attack
[4][unit:s][tooltip:Vibrato attack duration]",0.5,0,2,0.01);
vibratoRelease = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/Vibrato_Release
[4][unit:s][tooltip:Vibrato release duration]",0.1,0,2,0.01);
envelopeAttack = hslider("h:Envelopes_and_Vibrato/v:Envelope_Parameters/Envelope_Attack
[5][unit:s][tooltip:Envelope attack duration]",0.005,0,2,0.01);
envelopeDecay = hslider("h:Envelopes_and_Vibrato/v:Envelope_Parameters/Envelope_Decay
[5][unit:s][tooltip:Envelope decay duration]",0.001,0,2,0.01);
envelopeRelease = hslider("h:Envelopes_and_Vibrato/v:Envelope_Parameters/Envelope_Release
[5][unit:s][tooltip:Envelope release duration]",0.07,0,2,0.01);
nlfOrder = 6;
envelopeMod = en.asr(nonLinAttack,1,envelopeRelease,gate);
NLFM = nonLinearModulator((nonLinearity : si.smoo),envelopeMod,freq,
typeModulation,(frequencyMod : si.smoo),nlfOrder);
lipFilterFrequency = freq*pow(4,(2*lipTension)-1);
lipFilter = *(0.03) : bandPassH(lipFilterFrequency,0.997) <: * : saturationPos;
stereo = stereoizer(ma.SR/freq);
slideTarget = ((ma.SR/freq)*2 + 3)*(0.5 + slideLength);
boreDelay = de.fdelay(4096,slideTarget);
vibrato = vibratoGain*os.osc(vibratoFreq)*envVibrato(vibratoBegin,vibratoAttack,100,vibratoRelease,gate);
breathPressure = pressure*en.adsr(envelopeAttack,envelopeDecay,1,envelopeRelease,gate) + vibrato;
mouthPressure = 0.3*breathPressure;
borePressure = *(0.85);
deltaPressure = mouthPressure - _;
process = (borePressure <: deltaPressure,_ :
(lipFilter <: *(mouthPressure),(1-_)),_ : _, * :> + :
fi.dcblocker) ~ (boreDelay : NLFM) :
*(gain)*4 : stereo : instrReverb;
|
c08a3f72ee086420e0e1b8276022970c8b85b27645f1cd5a5079124b15ae7b9b
|
elk-community/faust-plugins
|
piano.dsp
|
declare name "piano";
declare description "WaveGuide Commuted Piano";
declare author "Romain Michon ([email protected])";
declare copyright "Romain Michon";
declare version "1.0";
declare licence "STK-4.3"; // Synthesis Tool Kit 4.3 (MIT style license);
declare description "A commuted WaveGuide piano.";
import("instruments.lib");
//==================== GUI SPECIFICATION ================
freq = nentry("h:Basic_Parameters/freq [1][unit:Hz] [tooltip:Tone frequency]",440,20,20000,1);
gain = nentry("h:Basic_Parameters/gain [1][tooltip:Gain (value between 0 and 1)]",1,0,1,0.01);
gate = button("h:Basic_Parameters/gate [1][tooltip:noteOn = 1, noteOff = 0]");
brightnessFactor = hslider("v:Physical_Parameters/Brightness_Factor
[2][tooltip:A value between 0 and 1]",0,0,1,0.01);
detuningFactor = hslider("v:Physical_Parameters/Detuning_Factor
[2][tooltip:A value between 0 and 1]",0.1,0,1,0.01)*10;
stiffnessFactor = hslider("v:Physical_Parameters/Stiffness_Factor
[2][tooltip:A value between 0 and 1]",0.28,0,1,0.01)*3.7;
hammerHardness = hslider("v:Physical_Parameters/Hammer_Hardness
[2][tooltip:A value between 0 and 1]",0.1,0,1,0.01)*0.1;
//==================== COMMUTED PIANO PARAMETERS ================
//variables to set keybord splitting zone
DCB2_TURNOFF_KEYNUM = 92;
FIRST_HIGH_NOTE = 88;
PEDAL_ENVELOPE_T60 = 7;
//convert an amplitude in db
dbinv(x) = pow(10,0.05*x);
//convert a frequency in a midi note number
freqToNoteNumber = (log-log(440))/log(2)*12+69+0.5 : int;
freqn = freq : freqToNoteNumber;
//a counter that restart a every note-on
cntSample = *(gate)+1~_ : -(1);
//==================== PIANO SOUND BOARD ================
//exponential envelope with 3 phases for the pedal excitation
asympT60pedal(value,T60) = (*(factor) + constant)~_
with{
attDur = hammerHardness*float(ma.SR);
target = value*((cntSample < attDur) & (gate > 0));
factorAtt = exp (-1/(attDur));
factorG = exp(-1/(2*float(ma.SR)));
factorT60 = exp(-7/(T60*float(ma.SR)));
factor = factorAtt*gate*(cntSample < attDur) + (cntSample >= attDur)*gate*factorG + ((gate-1)*-1)*factorT60;
constant = (1 - factor)*target;
};
//the sound of the piano sound board is generated by noise generator whose output gain is shaped by
//an exponential envelope
soundBoard = dryTapAmp*no.noise + pedalEnv*no.noise : *(0.5)
with{
//the values of the envelope cut-off time are stored in an external C++ function
dryTapAmpT60 = ffunction(float getValueDryTapAmpT60(float), <piano.h>,"");
sustainPedalLevel = ffunction(float getValueSustainPedalLevel(float), <piano.h>,"");
pedalEnvCutOffTime = 1.4;
noteCutOffTime = freqn : dryTapAmpT60*gain;
pedalEnvValue = freqn : sustainPedalLevel*0.2;
noteEnvValue = 0.15;
dryTapAmp = asympT60(noteEnvValue,0,noteCutOffTime,gate);
pedalEnv = asympT60pedal(pedalEnvValue,pedalEnvCutOffTime);
};
//==================== HAMMER MODELING ================
//To model the exitation hammer, we filter the sound from the soundboard with a serie of 4 one pole filters
//connected in serie
//onePole is declared in instruments.lib
calcHammer = onePole((1-hammerPole)*hammerGain,-hammerPole)
with{
//filter gains and coefficients are stored in external C++ files
loudPole = ffunction(float getValueLoudPole(float), <piano.h>,"");
softPole = ffunction(float getValuePoleValue(float), <piano.h>,"");
loudGain = ffunction(float getValueLoudGain(float), <piano.h>,"");
softGain = ffunction(float getValueSoftGain(float), <piano.h>,"");
loudPoleValue = loudPole(freqn) + (brightnessFactor*-0.25) + 0.02;
softPoleValue = softPole(freqn);
normalizedVelocityValue = 1;
loudGainValue = loudGain(freqn);
softGainValue = softGain(freqn);
overallGain = 1;
hammerPole = softPoleValue + (loudPoleValue - softPoleValue)*normalizedVelocityValue;
hammerGain = overallGain*(softGainValue + (loudGainValue - softGainValue)*normalizedVelocityValue);
};
hammer = seq(i,4,calcHammer);
//==================== DC BLOCKERS ================
//the values for the dcblockers a1 are stored in an external C++ file
DCBa1 = ffunction(float getValueDCBa1(float), <piano.h>,"");
dCBa1Value = freqn : DCBa1;
dCBb0Value = 1 - dCBa1Value;
dcBlock1 = poleZero((dCBb0Value*0.5),(dCBb0Value*-0.5),dCBa1Value);
dcBlock2a = oneZero1(0.5,-0.5);
dcBlock2b = onePole(dCBb0Value,dCBa1Value);
//==================== HIGH TUNING CALCULATION ================
//high tones are not generated with the waveguide technique but with a serie of biquad filters
r1_1 = ffunction(float getValuer1_1db(float), <piano.h>,"");
r1_2 = ffunction(float getValuer1_2db(float), <piano.h>,"");
r2 = ffunction(float getValuer2db(float), <piano.h>,"");
r3 = ffunction(float getValuer3db(float), <piano.h>,"");
e = ffunction(float getValueSecondStageAmpRatio(float), <piano.h>,"");
second_partial_factor = ffunction(float getValueSecondPartialFactor(float), <piano.h>,"");
third_partial_factor = ffunction(float getValueThirdPartialFactor(float), <piano.h>,"");
bq4_gEarBalled = ffunction(float getValueBq4_gEarBalled(float), <piano.h>,"");
r1_1Value = r1_1(freqn)/ma.SR : dbinv;
r1_2Value = r1_2(freqn)/ma.SR : dbinv;
r2Value = r2(freqn)/ma.SR : dbinv;
r3Value = r3(freqn)/ma.SR : dbinv;
eValue = e(freqn) : dbinv;
second_partial_factorValue = second_partial_factor(freqn);
third_partial_factorValue = third_partial_factor(freqn);
//set biquad gains and coeffs
gainHighBq(0) = bq4_gEarBalled(freqn)/0.5;
gainHighBq(1) = bq4_gEarBalled(freqn)/0.5;
gainHighBq(2) = 1;
gainHighBq(3) = 1;
b0HighBq(0) = 1;
b0HighBq(1) = 1;
b0HighBq(2) = 1;
b0HighBq(3) = 1;
b1HighBq(0) = 0;
b1HighBq(1) = 0;
b1HighBq(2) = -2*(eValue*r1_1Value+(1-eValue)*r1_2Value)*cos(2*ma.PI*freq/ma.SR);
b1HighBq(3) = 0;
b2HighBq(0) = 0;
b2HighBq(1) = 0;
b2HighBq(2) = eValue*r1_1Value*r1_1Value+(1-eValue)*r1_2Value*r1_2Value;
b2HighBq(3) = 0;
a1HighBq(0) = -2*r3Value*cos(2*ma.PI*freq*third_partial_factorValue/ma.SR);
a1HighBq(1) = -2*r2Value*cos(2*ma.PI*freq*second_partial_factorValue/ma.SR);
a1HighBq(2) = -2*r1_1Value*cos(2*ma.PI*freq/ma.SR);
a1HighBq(3) = -2*r1_2Value*cos(2*ma.PI*freq/ma.SR);
a2HighBq(0) = r3Value*r3Value;
a2HighBq(1) = r2Value*r2Value;
a2HighBq(2) = r1_1Value*r1_1Value;
a2HighBq(3) = r1_2Value*r1_2Value;
highBqs = seq(i,4,*(gainHighBq(i)) : fi.TF2(b0HighBq(i),b1HighBq(i),b2HighBq(i),a1HighBq(i),a2HighBq(i)));
hiPass = oneZero1(b0,b1)
with{
b0 = -0.5;
b1 = -0.5;
};
//==================== STRIKE POSITION COMB FILTER EQ ================
eq = _*filterGain : fi.TF2(b0,b1,b2,a1,a2)
with{
strikePosition = ffunction(float getValueStrikePosition(float), <piano.h>,"");
bandwidthFactors = ffunction(float getValueEQBandWidthFactor(float), <piano.h>,"");
eq_gain = ffunction(float getValueEQGain(float), <piano.h>,"");
eq_tuning = freq/strikePosition(freqn);
eq_bandwidth = bandwidthFactors(freqn)*freq;
filterGain = eq_gain(freqn);
a2 = (eq_bandwidth / ma.SR) * (eq_bandwidth / ma.SR);
a1 = -2*(eq_bandwidth / ma.SR)*cos(2*ma.PI*eq_tuning/ma.SR);
b0 = 0.5 - 0.5 * a2;
b1 = 0;
b2 = -b0;
};
//==================== PIANO COUPLED STRINGS ================
//values for the couple strings are stored in externals C++ functions
singleStringDecRate = ffunction(float getValueSingleStringDecayRate(float), <piano.h>,"");
singleStringZero = ffunction(float getValueSingleStringZero(float), <piano.h>,"");
singleStringPole = ffunction(float getValueSingleStringPole(float), <piano.h>,"");
stiffnessCoefficient = ffunction(float getValueStiffnessCoefficient(float), <piano.h>,"");
//coupling filter parameters
g = pow(10,((singleStringDecRate(freqn)/freq)/20)); //attenuation per period
b = singleStringZero(freqn);
a = singleStringPole(freqn);
tempd = 3*(1-b)-g*(1-a);
b0Coupling = 2*(g*(1-a)-(1-b))/tempd;
b1Coupling = 2*(a*(1-b)-g*(1-a)*b)/tempd;
a1Coupling = (g*(1-a)*b - 3*a*(1-b))/tempd;
//string stiffness
stiffness = stiffnessFactor*stiffnessCoefficient(freqn);
stiffnessAP = poleZero(b0s,b1s,a1s)
with{
b0s = stiffness;
b1s = 1;
a1s = stiffness;
};
delayG(frequency,stiffnessCoefficient) = de.fdelay(4096,delayLength)
with{
allPassPhase(a1,WT) = atan2((a1*a1-1.0)*sin(WT),(2.0*a1+(a1*a1+1.0)*cos(WT)));
poleZeroPhase(b0,b1,a1,WT) = atan2(-b1*sin(WT)*(1 + a1*cos(WT)) + a1*sin(WT)*(b0 + b1*cos(WT)),
(b0 + b1*cos(WT))*(1 + a1*cos(WT)) + b1*sin(WT)*a1*sin(WT));
wT = frequency*2*ma.PI/ma.SR;
delayLength = (2*ma.PI + 3*allPassPhase(stiffnessCoefficient, wT) +
poleZeroPhase((1+2*b0Coupling),
a1Coupling + 2*b1Coupling, a1Coupling, wT)) / wT;
};
coupledStrings = (parallelStrings <: (_,(_+_ <: _,_),_ : _,_,(_ : couplingFilter),_ : adder))~(_,_) : !,!,_
with{
releaseLoopGain = ffunction(float getValueReleaseLoopGain(float), <piano.h>,"");
hz = ffunction(float getValueDetuningHz(float), <piano.h>,"");
coupledStringLoopGain = gate*0.9996 + ((gate-1)*-1)*releaseLoopGain(freqn)*0.9 : si.smoo;
couplingFilter = poleZero(b0Coupling,b1Coupling,a1Coupling);
hzValue = hz(freqn);
freq1 = freq + 0.5*hzValue*detuningFactor;
freq2 = freq - 0.5*hzValue*detuningFactor;
delay1 = delayG(freq1,stiffness);
delay2 = delayG(freq2,stiffness);
parallelStrings(x,y) = _ <: (+(x)*coupledStringLoopGain : seq(i,3,stiffnessAP) : delay1),
(_+y*coupledStringLoopGain : seq(i,3,stiffnessAP) : delay2);
adder(w,x,y,z) = (y <: +(w),+(z)),x ;
};
//stereoizer is declared in instruments.lib and implement a stereo spacialisation in function of
//the frequency period in number of samples
stereo = stereoizer(ma.SR/freq);
//==================== PROCESSING ================
conditionLowNote = freqn < FIRST_HIGH_NOTE;
conditionHighNote = freqn >= FIRST_HIGH_NOTE;
process = soundBoard <: (*(conditionLowNote)*6 : hammer : dcBlock1 : coupledStrings <: +(eq)),
(*(conditionHighNote) : hiPass : dcBlock1 : hammer : dcBlock2a : highBqs : dcBlock2b) :> + : *(12) :
stereo : instrReverb;
|
https://raw.githubusercontent.com/elk-community/faust-plugins/79096404d4b4334dba512a3e3a8104afefb9db8d/faust-stk/piano.dsp
|
faust
|
Synthesis Tool Kit 4.3 (MIT style license);
==================== GUI SPECIFICATION ================
==================== COMMUTED PIANO PARAMETERS ================
variables to set keybord splitting zone
convert an amplitude in db
convert a frequency in a midi note number
a counter that restart a every note-on
==================== PIANO SOUND BOARD ================
exponential envelope with 3 phases for the pedal excitation
the sound of the piano sound board is generated by noise generator whose output gain is shaped by
an exponential envelope
the values of the envelope cut-off time are stored in an external C++ function
==================== HAMMER MODELING ================
To model the exitation hammer, we filter the sound from the soundboard with a serie of 4 one pole filters
connected in serie
onePole is declared in instruments.lib
filter gains and coefficients are stored in external C++ files
==================== DC BLOCKERS ================
the values for the dcblockers a1 are stored in an external C++ file
==================== HIGH TUNING CALCULATION ================
high tones are not generated with the waveguide technique but with a serie of biquad filters
set biquad gains and coeffs
==================== STRIKE POSITION COMB FILTER EQ ================
==================== PIANO COUPLED STRINGS ================
values for the couple strings are stored in externals C++ functions
coupling filter parameters
attenuation per period
string stiffness
stereoizer is declared in instruments.lib and implement a stereo spacialisation in function of
the frequency period in number of samples
==================== PROCESSING ================
|
declare name "piano";
declare description "WaveGuide Commuted Piano";
declare author "Romain Michon ([email protected])";
declare copyright "Romain Michon";
declare version "1.0";
declare description "A commuted WaveGuide piano.";
import("instruments.lib");
freq = nentry("h:Basic_Parameters/freq [1][unit:Hz] [tooltip:Tone frequency]",440,20,20000,1);
gain = nentry("h:Basic_Parameters/gain [1][tooltip:Gain (value between 0 and 1)]",1,0,1,0.01);
gate = button("h:Basic_Parameters/gate [1][tooltip:noteOn = 1, noteOff = 0]");
brightnessFactor = hslider("v:Physical_Parameters/Brightness_Factor
[2][tooltip:A value between 0 and 1]",0,0,1,0.01);
detuningFactor = hslider("v:Physical_Parameters/Detuning_Factor
[2][tooltip:A value between 0 and 1]",0.1,0,1,0.01)*10;
stiffnessFactor = hslider("v:Physical_Parameters/Stiffness_Factor
[2][tooltip:A value between 0 and 1]",0.28,0,1,0.01)*3.7;
hammerHardness = hslider("v:Physical_Parameters/Hammer_Hardness
[2][tooltip:A value between 0 and 1]",0.1,0,1,0.01)*0.1;
DCB2_TURNOFF_KEYNUM = 92;
FIRST_HIGH_NOTE = 88;
PEDAL_ENVELOPE_T60 = 7;
dbinv(x) = pow(10,0.05*x);
freqToNoteNumber = (log-log(440))/log(2)*12+69+0.5 : int;
freqn = freq : freqToNoteNumber;
cntSample = *(gate)+1~_ : -(1);
asympT60pedal(value,T60) = (*(factor) + constant)~_
with{
attDur = hammerHardness*float(ma.SR);
target = value*((cntSample < attDur) & (gate > 0));
factorAtt = exp (-1/(attDur));
factorG = exp(-1/(2*float(ma.SR)));
factorT60 = exp(-7/(T60*float(ma.SR)));
factor = factorAtt*gate*(cntSample < attDur) + (cntSample >= attDur)*gate*factorG + ((gate-1)*-1)*factorT60;
constant = (1 - factor)*target;
};
soundBoard = dryTapAmp*no.noise + pedalEnv*no.noise : *(0.5)
with{
dryTapAmpT60 = ffunction(float getValueDryTapAmpT60(float), <piano.h>,"");
sustainPedalLevel = ffunction(float getValueSustainPedalLevel(float), <piano.h>,"");
pedalEnvCutOffTime = 1.4;
noteCutOffTime = freqn : dryTapAmpT60*gain;
pedalEnvValue = freqn : sustainPedalLevel*0.2;
noteEnvValue = 0.15;
dryTapAmp = asympT60(noteEnvValue,0,noteCutOffTime,gate);
pedalEnv = asympT60pedal(pedalEnvValue,pedalEnvCutOffTime);
};
calcHammer = onePole((1-hammerPole)*hammerGain,-hammerPole)
with{
loudPole = ffunction(float getValueLoudPole(float), <piano.h>,"");
softPole = ffunction(float getValuePoleValue(float), <piano.h>,"");
loudGain = ffunction(float getValueLoudGain(float), <piano.h>,"");
softGain = ffunction(float getValueSoftGain(float), <piano.h>,"");
loudPoleValue = loudPole(freqn) + (brightnessFactor*-0.25) + 0.02;
softPoleValue = softPole(freqn);
normalizedVelocityValue = 1;
loudGainValue = loudGain(freqn);
softGainValue = softGain(freqn);
overallGain = 1;
hammerPole = softPoleValue + (loudPoleValue - softPoleValue)*normalizedVelocityValue;
hammerGain = overallGain*(softGainValue + (loudGainValue - softGainValue)*normalizedVelocityValue);
};
hammer = seq(i,4,calcHammer);
DCBa1 = ffunction(float getValueDCBa1(float), <piano.h>,"");
dCBa1Value = freqn : DCBa1;
dCBb0Value = 1 - dCBa1Value;
dcBlock1 = poleZero((dCBb0Value*0.5),(dCBb0Value*-0.5),dCBa1Value);
dcBlock2a = oneZero1(0.5,-0.5);
dcBlock2b = onePole(dCBb0Value,dCBa1Value);
r1_1 = ffunction(float getValuer1_1db(float), <piano.h>,"");
r1_2 = ffunction(float getValuer1_2db(float), <piano.h>,"");
r2 = ffunction(float getValuer2db(float), <piano.h>,"");
r3 = ffunction(float getValuer3db(float), <piano.h>,"");
e = ffunction(float getValueSecondStageAmpRatio(float), <piano.h>,"");
second_partial_factor = ffunction(float getValueSecondPartialFactor(float), <piano.h>,"");
third_partial_factor = ffunction(float getValueThirdPartialFactor(float), <piano.h>,"");
bq4_gEarBalled = ffunction(float getValueBq4_gEarBalled(float), <piano.h>,"");
r1_1Value = r1_1(freqn)/ma.SR : dbinv;
r1_2Value = r1_2(freqn)/ma.SR : dbinv;
r2Value = r2(freqn)/ma.SR : dbinv;
r3Value = r3(freqn)/ma.SR : dbinv;
eValue = e(freqn) : dbinv;
second_partial_factorValue = second_partial_factor(freqn);
third_partial_factorValue = third_partial_factor(freqn);
gainHighBq(0) = bq4_gEarBalled(freqn)/0.5;
gainHighBq(1) = bq4_gEarBalled(freqn)/0.5;
gainHighBq(2) = 1;
gainHighBq(3) = 1;
b0HighBq(0) = 1;
b0HighBq(1) = 1;
b0HighBq(2) = 1;
b0HighBq(3) = 1;
b1HighBq(0) = 0;
b1HighBq(1) = 0;
b1HighBq(2) = -2*(eValue*r1_1Value+(1-eValue)*r1_2Value)*cos(2*ma.PI*freq/ma.SR);
b1HighBq(3) = 0;
b2HighBq(0) = 0;
b2HighBq(1) = 0;
b2HighBq(2) = eValue*r1_1Value*r1_1Value+(1-eValue)*r1_2Value*r1_2Value;
b2HighBq(3) = 0;
a1HighBq(0) = -2*r3Value*cos(2*ma.PI*freq*third_partial_factorValue/ma.SR);
a1HighBq(1) = -2*r2Value*cos(2*ma.PI*freq*second_partial_factorValue/ma.SR);
a1HighBq(2) = -2*r1_1Value*cos(2*ma.PI*freq/ma.SR);
a1HighBq(3) = -2*r1_2Value*cos(2*ma.PI*freq/ma.SR);
a2HighBq(0) = r3Value*r3Value;
a2HighBq(1) = r2Value*r2Value;
a2HighBq(2) = r1_1Value*r1_1Value;
a2HighBq(3) = r1_2Value*r1_2Value;
highBqs = seq(i,4,*(gainHighBq(i)) : fi.TF2(b0HighBq(i),b1HighBq(i),b2HighBq(i),a1HighBq(i),a2HighBq(i)));
hiPass = oneZero1(b0,b1)
with{
b0 = -0.5;
b1 = -0.5;
};
eq = _*filterGain : fi.TF2(b0,b1,b2,a1,a2)
with{
strikePosition = ffunction(float getValueStrikePosition(float), <piano.h>,"");
bandwidthFactors = ffunction(float getValueEQBandWidthFactor(float), <piano.h>,"");
eq_gain = ffunction(float getValueEQGain(float), <piano.h>,"");
eq_tuning = freq/strikePosition(freqn);
eq_bandwidth = bandwidthFactors(freqn)*freq;
filterGain = eq_gain(freqn);
a2 = (eq_bandwidth / ma.SR) * (eq_bandwidth / ma.SR);
a1 = -2*(eq_bandwidth / ma.SR)*cos(2*ma.PI*eq_tuning/ma.SR);
b0 = 0.5 - 0.5 * a2;
b1 = 0;
b2 = -b0;
};
singleStringDecRate = ffunction(float getValueSingleStringDecayRate(float), <piano.h>,"");
singleStringZero = ffunction(float getValueSingleStringZero(float), <piano.h>,"");
singleStringPole = ffunction(float getValueSingleStringPole(float), <piano.h>,"");
stiffnessCoefficient = ffunction(float getValueStiffnessCoefficient(float), <piano.h>,"");
b = singleStringZero(freqn);
a = singleStringPole(freqn);
tempd = 3*(1-b)-g*(1-a);
b0Coupling = 2*(g*(1-a)-(1-b))/tempd;
b1Coupling = 2*(a*(1-b)-g*(1-a)*b)/tempd;
a1Coupling = (g*(1-a)*b - 3*a*(1-b))/tempd;
stiffness = stiffnessFactor*stiffnessCoefficient(freqn);
stiffnessAP = poleZero(b0s,b1s,a1s)
with{
b0s = stiffness;
b1s = 1;
a1s = stiffness;
};
delayG(frequency,stiffnessCoefficient) = de.fdelay(4096,delayLength)
with{
allPassPhase(a1,WT) = atan2((a1*a1-1.0)*sin(WT),(2.0*a1+(a1*a1+1.0)*cos(WT)));
poleZeroPhase(b0,b1,a1,WT) = atan2(-b1*sin(WT)*(1 + a1*cos(WT)) + a1*sin(WT)*(b0 + b1*cos(WT)),
(b0 + b1*cos(WT))*(1 + a1*cos(WT)) + b1*sin(WT)*a1*sin(WT));
wT = frequency*2*ma.PI/ma.SR;
delayLength = (2*ma.PI + 3*allPassPhase(stiffnessCoefficient, wT) +
poleZeroPhase((1+2*b0Coupling),
a1Coupling + 2*b1Coupling, a1Coupling, wT)) / wT;
};
coupledStrings = (parallelStrings <: (_,(_+_ <: _,_),_ : _,_,(_ : couplingFilter),_ : adder))~(_,_) : !,!,_
with{
releaseLoopGain = ffunction(float getValueReleaseLoopGain(float), <piano.h>,"");
hz = ffunction(float getValueDetuningHz(float), <piano.h>,"");
coupledStringLoopGain = gate*0.9996 + ((gate-1)*-1)*releaseLoopGain(freqn)*0.9 : si.smoo;
couplingFilter = poleZero(b0Coupling,b1Coupling,a1Coupling);
hzValue = hz(freqn);
freq1 = freq + 0.5*hzValue*detuningFactor;
freq2 = freq - 0.5*hzValue*detuningFactor;
delay1 = delayG(freq1,stiffness);
delay2 = delayG(freq2,stiffness);
parallelStrings(x,y) = _ <: (+(x)*coupledStringLoopGain : seq(i,3,stiffnessAP) : delay1),
(_+y*coupledStringLoopGain : seq(i,3,stiffnessAP) : delay2);
adder(w,x,y,z) = (y <: +(w),+(z)),x ;
};
stereo = stereoizer(ma.SR/freq);
conditionLowNote = freqn < FIRST_HIGH_NOTE;
conditionHighNote = freqn >= FIRST_HIGH_NOTE;
process = soundBoard <: (*(conditionLowNote)*6 : hammer : dcBlock1 : coupledStrings <: +(eq)),
(*(conditionHighNote) : hiPass : dcBlock1 : hammer : dcBlock2a : highBqs : dcBlock2b) :> + : *(12) :
stereo : instrReverb;
|
44f95b29973d09e36a1770879dacfdc2330d2bd8f505eb39d0821fe9adb846df
|
elk-community/faust-plugins
|
bass.dsp
|
declare name "Bass";
declare description "Nonlinear WaveGuide Acoustic Bass";
declare author "Romain Michon";
declare copyright "Romain Michon ([email protected])";
declare version "1.0";
declare licence "STK-4.3"; // Synthesis Tool Kit 4.3 (MIT style license);
import("instruments.lib");
//==================== GUI SPECIFICATION ================
freq = nentry("h:Basic_Parameters/freq [1][unit:Hz] [tooltip:Tone frequency]",120,20,20000,1);
gain = nentry("h:Basic_Parameters/gain [1][tooltip:Gain (value between 0 and 1)]",1,0,1,0.01);
gate = button("h:Basic_Parameters/gate [1][tooltip:noteOn = 1, noteOff = 0]");
touchLength = hslider("v:Physical_Parameters/Touch_Length
[2][tooltip:A value between 0 and 1]",0.15,0,1,0.01)*2;
typeModulation = nentry("v:Nonlinear_Filter_Parameters/Modulation_Type
[3][tooltip: 0=theta is modulated by the incoming signal; 1=theta is modulated by the averaged incoming signal;
2=theta is modulated by the squared incoming signal; 3=theta is modulated by a sine wave of frequency freqMod;
4=theta is modulated by a sine wave of frequency freq;]",0,0,4,1);
nonLinearity = hslider("v:Nonlinear_Filter_Parameters/Nonlinearity
[3][tooltip:Nonlinearity factor (value between 0 and 1)]",0,0,1,0.01);
frequencyMod = hslider("v:Nonlinear_Filter_Parameters/Modulation_Frequency
[3][unit:Hz][tooltip:Frequency of the sine wave for the modulation of theta (works if Modulation Type=3)]",220,20,1000,0.1);
//==================== SIGNAL PROCESSING ======================
//----------------------- Nonlinear filter ----------------------------
//nonlinearities are created by the nonlinear passive allpass ladder filter declared in miscfilter.lib
//nonlinear filter order
nlfOrder = 6;
//nonLinearModultor is declared in instruments.lib, it adapts allpassnn from miscfilter.lib
//for using it with waveguide instruments
NLFM = nonLinearModulator((nonLinearity : si.smoo),1,freq,
typeModulation,(frequencyMod : si.smoo),nlfOrder);
//----------------------- Synthesis parameters computing and functions declaration ----------------------------
//delay length in number of samples
delayLength = float(ma.SR)/freq;
//stereoizer is declared in instruments.lib and implement a stereo spacialisation in function of
//the frequency period in number of samples
stereo = stereoizer(delayLength);
//string excitation
excitation = asympT60(-0.5,-0.985,0.02,gate),no.noise*asympT60(gain,0,touchLength,gate) :
onePoleSwep : excitationFilter : excitationFilter
with{
//the exitation filter is a one pole filter (declared in instruments.lib)
excitationFilter = onePole(0.035,-0.965);
};
//the bodyfilter is a bandpass filter (declared in instruments.lib)
bodyFilter = bandPass(108,0.997);
//the reflexion filter is pole zero filter (declared in instruments.lib) whose coefficients are
//modulated in function of the tone being played
reflexionFilter = poleZero(b0,b1,a1)
with{
//filter coefficients are stored in a C++ function
loopFilterb0 = ffunction(float getValueBassLoopFilterb0(float), <bass.h>,"");
loopFilterb1 = ffunction(float getValueBassLoopFilterb1(float), <bass.h>,"");
loopFiltera1 = ffunction(float getValueBassLoopFiltera1(float), <bass.h>,"");
freqToNoteNumber = (log - log(440))/log(2)*12 + 69 + 0.5 : int;
freqn = freq : freqToNoteNumber;
b0 = loopFilterb0(freqn);
b1 = loopFilterb1(freqn);
a1 = loopFiltera1(freqn);
};
delayLine = asympT60(0,delayLength,0.01,gate),_ : de.fdelay(4096);
//the resonance duration is different whether a note-on signal is sent or not
resonanceGain = gate + (gate < 1 <: *(asympT60(1,0.9,0.05)));
process = excitation :
(+)~(delayLine : NLFM : reflexionFilter*resonanceGain) <:
bodyFilter*1.5 + *(0.5) : *(4) : stereo : instrReverb;
|
https://raw.githubusercontent.com/elk-community/faust-plugins/79096404d4b4334dba512a3e3a8104afefb9db8d/faust-stk/bass.dsp
|
faust
|
Synthesis Tool Kit 4.3 (MIT style license);
==================== GUI SPECIFICATION ================
==================== SIGNAL PROCESSING ======================
----------------------- Nonlinear filter ----------------------------
nonlinearities are created by the nonlinear passive allpass ladder filter declared in miscfilter.lib
nonlinear filter order
nonLinearModultor is declared in instruments.lib, it adapts allpassnn from miscfilter.lib
for using it with waveguide instruments
----------------------- Synthesis parameters computing and functions declaration ----------------------------
delay length in number of samples
stereoizer is declared in instruments.lib and implement a stereo spacialisation in function of
the frequency period in number of samples
string excitation
the exitation filter is a one pole filter (declared in instruments.lib)
the bodyfilter is a bandpass filter (declared in instruments.lib)
the reflexion filter is pole zero filter (declared in instruments.lib) whose coefficients are
modulated in function of the tone being played
filter coefficients are stored in a C++ function
the resonance duration is different whether a note-on signal is sent or not
|
declare name "Bass";
declare description "Nonlinear WaveGuide Acoustic Bass";
declare author "Romain Michon";
declare copyright "Romain Michon ([email protected])";
declare version "1.0";
import("instruments.lib");
freq = nentry("h:Basic_Parameters/freq [1][unit:Hz] [tooltip:Tone frequency]",120,20,20000,1);
gain = nentry("h:Basic_Parameters/gain [1][tooltip:Gain (value between 0 and 1)]",1,0,1,0.01);
gate = button("h:Basic_Parameters/gate [1][tooltip:noteOn = 1, noteOff = 0]");
touchLength = hslider("v:Physical_Parameters/Touch_Length
[2][tooltip:A value between 0 and 1]",0.15,0,1,0.01)*2;
typeModulation = nentry("v:Nonlinear_Filter_Parameters/Modulation_Type
[3][tooltip: 0=theta is modulated by the incoming signal; 1=theta is modulated by the averaged incoming signal;
2=theta is modulated by the squared incoming signal; 3=theta is modulated by a sine wave of frequency freqMod;
4=theta is modulated by a sine wave of frequency freq;]",0,0,4,1);
nonLinearity = hslider("v:Nonlinear_Filter_Parameters/Nonlinearity
[3][tooltip:Nonlinearity factor (value between 0 and 1)]",0,0,1,0.01);
frequencyMod = hslider("v:Nonlinear_Filter_Parameters/Modulation_Frequency
[3][unit:Hz][tooltip:Frequency of the sine wave for the modulation of theta (works if Modulation Type=3)]",220,20,1000,0.1);
nlfOrder = 6;
NLFM = nonLinearModulator((nonLinearity : si.smoo),1,freq,
typeModulation,(frequencyMod : si.smoo),nlfOrder);
delayLength = float(ma.SR)/freq;
stereo = stereoizer(delayLength);
excitation = asympT60(-0.5,-0.985,0.02,gate),no.noise*asympT60(gain,0,touchLength,gate) :
onePoleSwep : excitationFilter : excitationFilter
with{
excitationFilter = onePole(0.035,-0.965);
};
bodyFilter = bandPass(108,0.997);
reflexionFilter = poleZero(b0,b1,a1)
with{
loopFilterb0 = ffunction(float getValueBassLoopFilterb0(float), <bass.h>,"");
loopFilterb1 = ffunction(float getValueBassLoopFilterb1(float), <bass.h>,"");
loopFiltera1 = ffunction(float getValueBassLoopFiltera1(float), <bass.h>,"");
freqToNoteNumber = (log - log(440))/log(2)*12 + 69 + 0.5 : int;
freqn = freq : freqToNoteNumber;
b0 = loopFilterb0(freqn);
b1 = loopFilterb1(freqn);
a1 = loopFiltera1(freqn);
};
delayLine = asympT60(0,delayLength,0.01,gate),_ : de.fdelay(4096);
resonanceGain = gate + (gate < 1 <: *(asympT60(1,0.9,0.05)));
process = excitation :
(+)~(delayLine : NLFM : reflexionFilter*resonanceGain) <:
bodyFilter*1.5 + *(0.5) : *(4) : stereo : instrReverb;
|
2f19c2e6a2036b27a0a6be39c5d326f767e8c8d93cdcf04f184dc7c74fdddd24
|
elk-community/faust-plugins
|
tunedBar.dsp
|
declare name "tunedBar";
declare description "Nonlinear Banded Waveguide Models";
declare author "Romain Michon";
declare copyright "Romain Michon ([email protected])";
declare version "1.0";
declare licence "STK-4.3"; // Synthesis Tool Kit 4.3 (MIT style license);
declare description "This instrument uses banded waveguide. For more information, see Essl, G. and Cook, P. Banded Waveguides: Towards Physical Modelling of Bar Percussion Instruments, Proceedings of the 1999 International Computer Music Conference.";
import("instruments.lib");
//==================== GUI SPECIFICATION ================
freq = nentry("h:Basic_Parameters/freq [1][unit:Hz] [tooltip:Tone frequency]",440,20,20000,1);
gain = nentry("h:Basic_Parameters/gain [1][tooltip:Gain (value between 0 and 1)]",0.8,0,1,0.01);
gate = button("h:Basic_Parameters/gate [1][tooltip:noteOn = 1, noteOff = 0]");
select = nentry("h:Physical_and_Nonlinearity/v:Physical_Parameters/Excitation_Selector
[2][tooltip:0=Bow; 1=Strike]",0,0,1,1);
integrationConstant = hslider("h:Physical_and_Nonlinearity/v:Physical_Parameters/Integration_Constant
[2][tooltip:A value between 0 and 1]",0,0,1,0.01);
baseGain = hslider("h:Physical_and_Nonlinearity/v:Physical_Parameters/Base_Gain
[2][tooltip:A value between 0 and 1]",1,0,1,0.01);
bowPressure = hslider("h:Physical_and_Nonlinearity/v:Physical_Parameters/Bow_Pressure
[2][tooltip:Bow pressure on the instrument (Value between 0 and 1)]",0.2,0,1,0.01);
bowPosition = hslider("h:Physical_and_Nonlinearity/v:Physical_Parameters/Bow_Position
[2][tooltip:Bow position on the instrument (Value between 0 and 1)]",0,0,1,0.01);
typeModulation = nentry("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Modulation_Type
[3][tooltip: 0=theta is modulated by the incoming signal; 1=theta is modulated by the averaged incoming signal;
2=theta is modulated by the squared incoming signal; 3=theta is modulated by a sine wave of frequency freqMod;
4=theta is modulated by a sine wave of frequency freq;]",0,0,4,1);
nonLinearity = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Nonlinearity
[3][tooltip:Nonlinearity factor (value between 0 and 1)]",0,0,1,0.01);
frequencyMod = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Modulation_Frequency
[3][unit:Hz][tooltip:Frequency of the sine wave for the modulation of theta (works if Modulation Type=3)]",220,20,1000,0.1);
nonLinAttack = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Nonlinearity_Attack
[3][unit:s][Attack duration of the nonlinearity]",0.1,0,2,0.01);
//==================== MODAL PARAMETERS ================
preset = 2;
nMode(2) = 4;
modes(2,0) = 1;
basegains(2,0) = pow(0.999,1);
excitation(2,0) = 1*gain*gate/nMode(2);
modes(2,1) = 4.0198391420;
basegains(2,1) = pow(0.999,2);
excitation(2,1) = 1*gain*gate/nMode(2);
modes(2,2) = 10.7184986595;
basegains(2,2) = pow(0.999,3);
excitation(2,2) = 1*gain*gate/nMode(2);
modes(2,3) = 18.0697050938;
basegains(2,3) = pow(0.999,4);
excitation(2,3) = 1*gain*gate/nMode(2);
//==================== SIGNAL PROCESSING ================
//----------------------- Nonlinear filter ----------------------------
//nonlinearities are created by the nonlinear passive allpass ladder filter declared in miscfilter.lib
//nonlinear filter order
nlfOrder = 6;
//nonLinearModultor is declared in instruments.lib, it adapts allpassnn from miscfilter.lib
//for using it with waveguide instruments
NLFM = nonLinearModulator((nonLinearity : si.smoo),1,freq,
typeModulation,(frequencyMod : si.smoo),nlfOrder);
//----------------------- Synthesis parameters computing and functions declaration ----------------------------
//the number of modes depends on the preset being used
nModes = nMode(preset);
//bow table parameters
tableOffset = 0;
tableSlope = 10 - (9*bowPressure);
delayLengthBase = ma.SR/freq;
//delay lengths in number of samples
delayLength(x) = delayLengthBase/modes(preset,x);
//delay lines
delayLine(x) = de.delay(4096,delayLength(x));
//Filter bank: bandpass filters (declared in instruments.lib)
radius = 1 - ma.PI*32/ma.SR;
bandPassFilter(x) = bandPass(freq*modes(preset,x),radius);
//Delay lines feedback for bow table lookup control
baseGainApp = 0.8999999999999999 + (0.1*baseGain);
velocityInputApp = integrationConstant;
velocityInput = velocityInputApp + _*baseGainApp,par(i,(nModes-1),(_*baseGainApp)) :> +;
//Bow velocity is controlled by an ADSR envelope
maxVelocity = 0.03 + 0.1*gain;
bowVelocity = maxVelocity*en.adsr(0.02,0.005,0.9,0.01,gate);
//stereoizer is declared in instruments.lib and implement a stereo spacialisation in function of
//the frequency period in number of samples
stereo = stereoizer(delayLengthBase);
//----------------------- Algorithm implementation ----------------------------
//Bow table lookup (bow is decalred in instruments.lib)
bowing = bowVelocity - velocityInput <: *(bow(tableOffset,tableSlope)) : /(nModes);
//One resonance
resonance(x) = + : + (excitation(preset,x)*select) : delayLine(x) : *(basegains(preset,x)) : bandPassFilter(x);
process =
//Bowed Excitation
(bowing*((select-1)*-1) <:
//nModes resonances with nModes feedbacks for bow table look-up
par(i,nModes,(resonance(i)~_)))~par(i,nModes,_) :> + :
//Signal Scaling and stereo
*(4) : NLFM : stereo : instrReverb;
|
https://raw.githubusercontent.com/elk-community/faust-plugins/79096404d4b4334dba512a3e3a8104afefb9db8d/faust-stk/tunedBar.dsp
|
faust
|
Synthesis Tool Kit 4.3 (MIT style license);
==================== GUI SPECIFICATION ================
==================== MODAL PARAMETERS ================
==================== SIGNAL PROCESSING ================
----------------------- Nonlinear filter ----------------------------
nonlinearities are created by the nonlinear passive allpass ladder filter declared in miscfilter.lib
nonlinear filter order
nonLinearModultor is declared in instruments.lib, it adapts allpassnn from miscfilter.lib
for using it with waveguide instruments
----------------------- Synthesis parameters computing and functions declaration ----------------------------
the number of modes depends on the preset being used
bow table parameters
delay lengths in number of samples
delay lines
Filter bank: bandpass filters (declared in instruments.lib)
Delay lines feedback for bow table lookup control
Bow velocity is controlled by an ADSR envelope
stereoizer is declared in instruments.lib and implement a stereo spacialisation in function of
the frequency period in number of samples
----------------------- Algorithm implementation ----------------------------
Bow table lookup (bow is decalred in instruments.lib)
One resonance
Bowed Excitation
nModes resonances with nModes feedbacks for bow table look-up
Signal Scaling and stereo
|
declare name "tunedBar";
declare description "Nonlinear Banded Waveguide Models";
declare author "Romain Michon";
declare copyright "Romain Michon ([email protected])";
declare version "1.0";
declare description "This instrument uses banded waveguide. For more information, see Essl, G. and Cook, P. Banded Waveguides: Towards Physical Modelling of Bar Percussion Instruments, Proceedings of the 1999 International Computer Music Conference.";
import("instruments.lib");
freq = nentry("h:Basic_Parameters/freq [1][unit:Hz] [tooltip:Tone frequency]",440,20,20000,1);
gain = nentry("h:Basic_Parameters/gain [1][tooltip:Gain (value between 0 and 1)]",0.8,0,1,0.01);
gate = button("h:Basic_Parameters/gate [1][tooltip:noteOn = 1, noteOff = 0]");
select = nentry("h:Physical_and_Nonlinearity/v:Physical_Parameters/Excitation_Selector
[2][tooltip:0=Bow; 1=Strike]",0,0,1,1);
integrationConstant = hslider("h:Physical_and_Nonlinearity/v:Physical_Parameters/Integration_Constant
[2][tooltip:A value between 0 and 1]",0,0,1,0.01);
baseGain = hslider("h:Physical_and_Nonlinearity/v:Physical_Parameters/Base_Gain
[2][tooltip:A value between 0 and 1]",1,0,1,0.01);
bowPressure = hslider("h:Physical_and_Nonlinearity/v:Physical_Parameters/Bow_Pressure
[2][tooltip:Bow pressure on the instrument (Value between 0 and 1)]",0.2,0,1,0.01);
bowPosition = hslider("h:Physical_and_Nonlinearity/v:Physical_Parameters/Bow_Position
[2][tooltip:Bow position on the instrument (Value between 0 and 1)]",0,0,1,0.01);
typeModulation = nentry("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Modulation_Type
[3][tooltip: 0=theta is modulated by the incoming signal; 1=theta is modulated by the averaged incoming signal;
2=theta is modulated by the squared incoming signal; 3=theta is modulated by a sine wave of frequency freqMod;
4=theta is modulated by a sine wave of frequency freq;]",0,0,4,1);
nonLinearity = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Nonlinearity
[3][tooltip:Nonlinearity factor (value between 0 and 1)]",0,0,1,0.01);
frequencyMod = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Modulation_Frequency
[3][unit:Hz][tooltip:Frequency of the sine wave for the modulation of theta (works if Modulation Type=3)]",220,20,1000,0.1);
nonLinAttack = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Nonlinearity_Attack
[3][unit:s][Attack duration of the nonlinearity]",0.1,0,2,0.01);
preset = 2;
nMode(2) = 4;
modes(2,0) = 1;
basegains(2,0) = pow(0.999,1);
excitation(2,0) = 1*gain*gate/nMode(2);
modes(2,1) = 4.0198391420;
basegains(2,1) = pow(0.999,2);
excitation(2,1) = 1*gain*gate/nMode(2);
modes(2,2) = 10.7184986595;
basegains(2,2) = pow(0.999,3);
excitation(2,2) = 1*gain*gate/nMode(2);
modes(2,3) = 18.0697050938;
basegains(2,3) = pow(0.999,4);
excitation(2,3) = 1*gain*gate/nMode(2);
nlfOrder = 6;
NLFM = nonLinearModulator((nonLinearity : si.smoo),1,freq,
typeModulation,(frequencyMod : si.smoo),nlfOrder);
nModes = nMode(preset);
tableOffset = 0;
tableSlope = 10 - (9*bowPressure);
delayLengthBase = ma.SR/freq;
delayLength(x) = delayLengthBase/modes(preset,x);
delayLine(x) = de.delay(4096,delayLength(x));
radius = 1 - ma.PI*32/ma.SR;
bandPassFilter(x) = bandPass(freq*modes(preset,x),radius);
baseGainApp = 0.8999999999999999 + (0.1*baseGain);
velocityInputApp = integrationConstant;
velocityInput = velocityInputApp + _*baseGainApp,par(i,(nModes-1),(_*baseGainApp)) :> +;
maxVelocity = 0.03 + 0.1*gain;
bowVelocity = maxVelocity*en.adsr(0.02,0.005,0.9,0.01,gate);
stereo = stereoizer(delayLengthBase);
bowing = bowVelocity - velocityInput <: *(bow(tableOffset,tableSlope)) : /(nModes);
resonance(x) = + : + (excitation(preset,x)*select) : delayLine(x) : *(basegains(preset,x)) : bandPassFilter(x);
process =
(bowing*((select-1)*-1) <:
par(i,nModes,(resonance(i)~_)))~par(i,nModes,_) :> + :
*(4) : NLFM : stereo : instrReverb;
|
ea2473dc811195ddbc88a56cf6dcd677032225a8cd01a5bad2a2dce5cf841662
|
elk-community/faust-plugins
|
sitar.dsp
|
declare name "Sitar";
declare description "WaveGuide Sitar";
declare author "Romain Michon ([email protected])";
declare copyright "Romain Michon";
declare version "1.0";
declare licence "STK-4.3"; // Synthesis Tool Kit 4.3 (MIT style license);
declare description "This instrument implements a sitar plucked string physical model based on the Karplus-Strong algorithm using a randomly modulated delay line.";
import("instruments.lib");
//==================== GUI SPECIFICATION ================
freq = nentry("h:Basic_Parameters/freq [1][unit:Hz] [tooltip:Tone frequency]",440,20,20000,1);
gain = nentry("h:Basic_Parameters/gain [1][tooltip:Gain (value between 0 and 1)]",1,0,1,0.01);
gate = button("h:Basic_Parameters/gate [1][tooltip:noteOn = 1, noteOff = 0]");
resonance = hslider("v:Physical_Parameters/Resonance
[2][tooltip:A value between 0 and 1]",0.7,0,1,0.01)*0.1;
//==================== SIGNAL PROCESSING ================
//stereoizer is declared in instruments.lib and implement a stereo spacialisation in function of
//the frequency period in number of samples
stereo = stereoizer(ma.SR/freq);
//excitation envelope (adsr)
envelope = en.adsr(0.001,0.04,1,0.5,gate);
//the delay length is randomly modulated
targetDelay = ma.SR/freq;
delayLength = targetDelay*((1+(0.5*no.noise)) : si.smooth(0.9992));
delayLine = de.delay(4096,delayLength);
//the loop gain control the resonance duration
loopGain = 0.895 + resonance + (freq*0.0000005);
amGain = 0.1*gain;
//feedback filter is a one zero (declared in instruments.lib)
filter = oneZero1(b0,b1)
with{
zero = 0.01;
b0 = 1/(1 + zero);
b1 = -zero*b0;
};
process = (*(loopGain) : filter + (envelope*no.noise*amGain))~delayLine : *(8) :
stereo : instrReverb;
|
https://raw.githubusercontent.com/elk-community/faust-plugins/79096404d4b4334dba512a3e3a8104afefb9db8d/faust-stk/sitar.dsp
|
faust
|
Synthesis Tool Kit 4.3 (MIT style license);
==================== GUI SPECIFICATION ================
==================== SIGNAL PROCESSING ================
stereoizer is declared in instruments.lib and implement a stereo spacialisation in function of
the frequency period in number of samples
excitation envelope (adsr)
the delay length is randomly modulated
the loop gain control the resonance duration
feedback filter is a one zero (declared in instruments.lib)
|
declare name "Sitar";
declare description "WaveGuide Sitar";
declare author "Romain Michon ([email protected])";
declare copyright "Romain Michon";
declare version "1.0";
declare description "This instrument implements a sitar plucked string physical model based on the Karplus-Strong algorithm using a randomly modulated delay line.";
import("instruments.lib");
freq = nentry("h:Basic_Parameters/freq [1][unit:Hz] [tooltip:Tone frequency]",440,20,20000,1);
gain = nentry("h:Basic_Parameters/gain [1][tooltip:Gain (value between 0 and 1)]",1,0,1,0.01);
gate = button("h:Basic_Parameters/gate [1][tooltip:noteOn = 1, noteOff = 0]");
resonance = hslider("v:Physical_Parameters/Resonance
[2][tooltip:A value between 0 and 1]",0.7,0,1,0.01)*0.1;
stereo = stereoizer(ma.SR/freq);
envelope = en.adsr(0.001,0.04,1,0.5,gate);
targetDelay = ma.SR/freq;
delayLength = targetDelay*((1+(0.5*no.noise)) : si.smooth(0.9992));
delayLine = de.delay(4096,delayLength);
loopGain = 0.895 + resonance + (freq*0.0000005);
amGain = 0.1*gain;
filter = oneZero1(b0,b1)
with{
zero = 0.01;
b0 = 1/(1 + zero);
b1 = -zero*b0;
};
process = (*(loopGain) : filter + (envelope*no.noise*amGain))~delayLine : *(8) :
stereo : instrReverb;
|
4d28c41ffed2727bd8d0aa45d8dddb1985ecd7eeef3091760309798c4c7a67e3
|
LucaSpanedda/Musical_Studies_of_Dynamical_and_Complex_Systems
|
LCG.dsp
|
// pseudo-random noise with linear congruential generator (LCG)
noise(initSeed) = LCG ~ _ : (_ / m)
with{
// variables
// initSeed = an initial seed value
a = 18446744073709551557; // a large prime number, such as 18446744073709551557
c = 12345; // a small prime number, such as 12345
m = 2 ^ 31; // 2.1 billion
// linear_congruential_generator
LCG(seed) = ((a * seed + c) + (initSeed-initSeed') % m);
};
/*
In a linear congruential generator (LCG),
the seed value is an integer that is used to initialize the generator.
The generator then produces a sequence of pseudo-random numbers based
on the seed value and a set of parameters, including
the multiplier a, the increment c, and the modulus m.
The value of a determines the amount by which the generator multiplies
the previous value of the sequence when generating the next value.
The value of c determines the amount by which the generator increments
the previous value of the sequence when generating the next value.
The value of m determines the maximum value that the generator can output.
The combination of a, c, and m should be carefully chosen to ensure that
the generated sequence has good statistical properties, such as a long period
and a uniform distribution. The seed value can be any integer,
and can be used to initialize the generator and produce a specific sequence
of pseudo-random numbers.
*/
process = par(i, 10, noise( (i+1) * 469762049 ) );
|
https://raw.githubusercontent.com/LucaSpanedda/Musical_Studies_of_Dynamical_and_Complex_Systems/f410256d3fef6d50f560e273aa4682153d4ffa1b/LCG.dsp
|
faust
|
pseudo-random noise with linear congruential generator (LCG)
variables
initSeed = an initial seed value
a large prime number, such as 18446744073709551557
a small prime number, such as 12345
2.1 billion
linear_congruential_generator
In a linear congruential generator (LCG),
the seed value is an integer that is used to initialize the generator.
The generator then produces a sequence of pseudo-random numbers based
on the seed value and a set of parameters, including
the multiplier a, the increment c, and the modulus m.
The value of a determines the amount by which the generator multiplies
the previous value of the sequence when generating the next value.
The value of c determines the amount by which the generator increments
the previous value of the sequence when generating the next value.
The value of m determines the maximum value that the generator can output.
The combination of a, c, and m should be carefully chosen to ensure that
the generated sequence has good statistical properties, such as a long period
and a uniform distribution. The seed value can be any integer,
and can be used to initialize the generator and produce a specific sequence
of pseudo-random numbers.
|
noise(initSeed) = LCG ~ _ : (_ / m)
with{
LCG(seed) = ((a * seed + c) + (initSeed-initSeed') % m);
};
process = par(i, 10, noise( (i+1) * 469762049 ) );
|
b8f7953b7c30e1907e66a39f0db3dcd44031218de36556f4630bebadf62fa08f
|
s-e-a-m/faust-libraries
|
VCS3.dsp
|
import("seam.lib");
process = svc.vcs3osc1(svc.freq1,svc.shape1,svc.samp1,svc.pamp1),
svc.vcs3osc2(svc.freq2,svc.shape2,svc.sqamp2,svc.tramp2),
svc.vcs3osc3(svc.freq3,svc.shape3,svc.sqamp3,svc.tramp3);
|
https://raw.githubusercontent.com/s-e-a-m/faust-libraries/8410e0e15fceb3f2fd15f606539c0c149d266b09/examples/VCS3.dsp
|
faust
|
import("seam.lib");
process = svc.vcs3osc1(svc.freq1,svc.shape1,svc.samp1,svc.pamp1),
svc.vcs3osc2(svc.freq2,svc.shape2,svc.sqamp2,svc.tramp2),
svc.vcs3osc3(svc.freq3,svc.shape3,svc.sqamp3,svc.tramp3);
|
|
a671ba37a1d8f3e2208ce56e6626746e70c9fd28a78ba1c2188f3ab7c024c10b
|
s-e-a-m/faust-libraries
|
nextprimeverb.dsp
|
import("../../seam.lib");
// ------ comb
dflc(t, g) = (+ : de.delay(ma.SR, int(t-1)))~*(max(0, min(0.999, g))) : mem;
// ------ allpass
alp(t, g) = _<:(_*(ma.neg(max(0.5, min(0.9, g)))))+(dflc(t, g)*(1-(g*g)));
t = hslider("Largest T",2,2,24000,1);
fbk = hslider("FeedBack", 0.708, 0, 0.99, 0.01) : si.smoo;
np = ffunction(int next_pr(int), "nextprime.h","");
alpseq(N,t,fb) = seq(i, N, alp((t/(i+1)) : np, fb));
process = alpseq(16,t,fbk);
|
https://raw.githubusercontent.com/s-e-a-m/faust-libraries/43a6eca55e14fd9f8fbadcfffef21960f8a9c872/examples/cfunctions/nextprimeverb.dsp
|
faust
|
------ comb
------ allpass
|
import("../../seam.lib");
dflc(t, g) = (+ : de.delay(ma.SR, int(t-1)))~*(max(0, min(0.999, g))) : mem;
alp(t, g) = _<:(_*(ma.neg(max(0.5, min(0.9, g)))))+(dflc(t, g)*(1-(g*g)));
t = hslider("Largest T",2,2,24000,1);
fbk = hslider("FeedBack", 0.708, 0, 0.99, 0.01) : si.smoo;
np = ffunction(int next_pr(int), "nextprime.h","");
alpseq(N,t,fb) = seq(i, N, alp((t/(i+1)) : np, fb));
process = alpseq(16,t,fbk);
|
4f685235c9882fa440b581423de8efa3c0241c0760cde79e3a1e6812967baead
|
s-e-a-m/faust-libraries
|
example.dsp
|
import("../seam.lib");
process = ma.PI*2, sma.twopi;
|
https://raw.githubusercontent.com/s-e-a-m/faust-libraries/7b72b51656b4b1163a65578753e824428b2fcdc1/examples/example.dsp
|
faust
|
import("../seam.lib");
process = ma.PI*2, sma.twopi;
|
|
82f0510a3f77036812e6979315f8d19283e342dd0bcfbfa7c3982ecaa2a78534
|
s-e-a-m/faust-libraries
|
bfmt2uhj.dsp
|
declare name "MICHAEL GERZON BFORMAT TO UHJ ENCODER";
declare version "001";
declare author "Giuseppe Silvi";
declare license "GNU-GPL-v3";
declare copyright "(c)SEAM 2019";
declare description "MICHAEL GERZON BFORMAT TO UHJ ENCODER";
import("../../seam.lib");
process = bfmt2uhj;
|
https://raw.githubusercontent.com/s-e-a-m/faust-libraries/9120cccb9335f42407062eb4bf149188d8018b07/examples/vst/bfmt2uhj.dsp
|
faust
|
declare name "MICHAEL GERZON BFORMAT TO UHJ ENCODER";
declare version "001";
declare author "Giuseppe Silvi";
declare license "GNU-GPL-v3";
declare copyright "(c)SEAM 2019";
declare description "MICHAEL GERZON BFORMAT TO UHJ ENCODER";
import("../../seam.lib");
process = bfmt2uhj;
|
|
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
|
s-e-a-m/faust-libraries
|
webphaser.dsp
|
https://raw.githubusercontent.com/s-e-a-m/faust-libraries/9120cccb9335f42407062eb4bf149188d8018b07/examples/nono/webphaser.dsp
|
faust
| |||
6aeaf68c12f75ff1f8552a632a26908470bf4db37e3081ddbbfcfb0426158acd
|
s-e-a-m/faust-libraries
|
bs1770.dsp
|
declare name "BS1770 METERING";
declare version "001";
declare author "Giuseppe Silvi";
declare license "GNU-GPL-v3";
declare copyright "(c)SEAM 2019";
declare description "BS1770 METERING";
import("../seam.lib");
// signal = no.noise;
//
// process = signal <: abs(_), RMS(1000), bs1770 : hbargraph("peak", 0, 1), hbargraph("RMS", 0, 1), hbargraph("BS1770", 0, 1);
process = sba.gsweep(23,23);
|
https://raw.githubusercontent.com/s-e-a-m/faust-libraries/9120cccb9335f42407062eb4bf149188d8018b07/examples/bs1770.dsp
|
faust
|
signal = no.noise;
process = signal <: abs(_), RMS(1000), bs1770 : hbargraph("peak", 0, 1), hbargraph("RMS", 0, 1), hbargraph("BS1770", 0, 1);
|
declare name "BS1770 METERING";
declare version "001";
declare author "Giuseppe Silvi";
declare license "GNU-GPL-v3";
declare copyright "(c)SEAM 2019";
declare description "BS1770 METERING";
import("../seam.lib");
process = sba.gsweep(23,23);
|
da6a01d84a4288fec03ced3d94bae7dc476dbd82784afc55ae092fd6cc4df2c7
|
jcelerier/guitarixlib
|
AntiAlias.dsp
|
import("guitarix.lib");
faas1 = vgroup("anti_aliase", vslider("feedback[name:Feedback]", 0.3, 0.3, 0.9, 0.01));
process = add_dc : +~_''*faas1;
|
https://raw.githubusercontent.com/jcelerier/guitarixlib/9c2947507cd13b82554020e669a85244e867d584/guitarix/AntiAlias.dsp
|
faust
|
import("guitarix.lib");
faas1 = vgroup("anti_aliase", vslider("feedback[name:Feedback]", 0.3, 0.3, 0.9, 0.01));
process = add_dc : +~_''*faas1;
|
|
4f8dd3105beba9606ca300e393905ddc74d93806ea9880d469bcc526c9544f58
|
jcelerier/guitarixlib
|
tonestack_fender_deville.dsp
|
declare id "Deville"; // in tonestack ba.selector
declare name "Deville Style";
tstack = component("tonestack.dsp");
process = tstack[tse=tstack.ts.fender_deville;];
|
https://raw.githubusercontent.com/jcelerier/guitarixlib/9c2947507cd13b82554020e669a85244e867d584/guitarix/tonestack_fender_deville.dsp
|
faust
|
in tonestack ba.selector
|
declare name "Deville Style";
tstack = component("tonestack.dsp");
process = tstack[tse=tstack.ts.fender_deville;];
|
a5191039b192d62a705e88c738938f1854e00a904b4d441c99a03a51fecd79f9
|
jcelerier/guitarixlib
|
tonestack_default.dsp
|
declare id "default"; // in tonestack ba.selector
declare name "default";
tstack = component("tonestack.dsp");
tone_controll = component("tone.dsp").tone(((tstack.l-0.5)*20),((tstack.m-0.5)*10),((tstack.t-0.5)*20));
process = tone_controll;
|
https://raw.githubusercontent.com/jcelerier/guitarixlib/9c2947507cd13b82554020e669a85244e867d584/guitarix/tonestack_default.dsp
|
faust
|
in tonestack ba.selector
|
declare name "default";
tstack = component("tonestack.dsp");
tone_controll = component("tone.dsp").tone(((tstack.l-0.5)*20),((tstack.m-0.5)*10),((tstack.t-0.5)*20));
process = tone_controll;
|
b1a7154ba92a55f35720e00d27c7b1fbe1234fe0c4fbb198daffd321a6b05650
|
jcelerier/guitarixlib
|
tonestack_jcm800.dsp
|
declare id "JCM-800"; // in tonestack ba.selector
declare name "JCM-800 Style";
tstack = component("tonestack.dsp");
process = tstack[tse=tstack.ts.jcm800;];
|
https://raw.githubusercontent.com/jcelerier/guitarixlib/9c2947507cd13b82554020e669a85244e867d584/guitarix/tonestack_jcm800.dsp
|
faust
|
in tonestack ba.selector
|
declare name "JCM-800 Style";
tstack = component("tonestack.dsp");
process = tstack[tse=tstack.ts.jcm800;];
|
807d511bed6a1014ab224bb7510c3153a9f2c11827cfc7216994e6dca160369f
|
jcelerier/guitarixlib
|
tonestack_bassman.dsp
|
declare id "Bassman"; // in tonestack ba.selector
declare name "Bassman Style";
tstack = component("tonestack.dsp");
process = tstack[tse=tstack.ts.bassman;];
|
https://raw.githubusercontent.com/jcelerier/guitarixlib/9c2947507cd13b82554020e669a85244e867d584/guitarix/tonestack_bassman.dsp
|
faust
|
in tonestack ba.selector
|
declare name "Bassman Style";
tstack = component("tonestack.dsp");
process = tstack[tse=tstack.ts.bassman;];
|
2f58b2355013ac2d9d260c73134c1208c1f8b3eccf9fe0ee62bd5e75b2d0dda4
|
jcelerier/guitarixlib
|
tonestack_ac30.dsp
|
declare id "AC-30"; // in tonestack ba.selector
declare name "AC-30 Style";
tstack = component("tonestack.dsp");
process = tstack[tse=tstack.ts.ac30;];
|
https://raw.githubusercontent.com/jcelerier/guitarixlib/9c2947507cd13b82554020e669a85244e867d584/guitarix/tonestack_ac30.dsp
|
faust
|
in tonestack ba.selector
|
declare name "AC-30 Style";
tstack = component("tonestack.dsp");
process = tstack[tse=tstack.ts.ac30;];
|
09cbb4543f022fe692a7b8057561c20d0495444dabf46c1c4280ded44da20056
|
jcelerier/guitarixlib
|
HighShelf.dsp
|
declare id "HighShelf";
import("maxmsp.lib");
import("guitarix.lib");
hs(x) = highShelf(x,F,G,Q)
with {
G = -20.;
F = ma.SR/2 -100.;
Q = 100.;
};
process = +(anti_denormal_ac) : hs;
|
https://raw.githubusercontent.com/jcelerier/guitarixlib/9c2947507cd13b82554020e669a85244e867d584/guitarix/HighShelf.dsp
|
faust
|
declare id "HighShelf";
import("maxmsp.lib");
import("guitarix.lib");
hs(x) = highShelf(x,F,G,Q)
with {
G = -20.;
F = ma.SR/2 -100.;
Q = 100.;
};
process = +(anti_denormal_ac) : hs;
|
|
55e346a7a68890b6de16b6a1a981e15b84e8d4749c7234100893dd8b4ad04f76
|
jcelerier/guitarixlib
|
tonestack_crunch.dsp
|
declare id "Hughes&Kettner"; // in tonestack ba.selector
declare name "Hughes&Kettner Style";
tstack = component("tonestack.dsp");
process = tstack[tse=tstack.ts.crunch;];
|
https://raw.githubusercontent.com/jcelerier/guitarixlib/9c2947507cd13b82554020e669a85244e867d584/guitarix/tonestack_crunch.dsp
|
faust
|
in tonestack ba.selector
|
declare name "Hughes&Kettner Style";
tstack = component("tonestack.dsp");
process = tstack[tse=tstack.ts.crunch;];
|
0b73415c252dab7d22337c88f444fd0001c0875c33a12ed2d7a61b06e9858382
|
jcelerier/guitarixlib
|
tonestack_engl.dsp
|
declare id "Engl"; // in tonestack ba.selector
declare name "Engl Style";
tstack = component("tonestack.dsp");
process = tstack[tse=tstack.ts.engl;];
|
https://raw.githubusercontent.com/jcelerier/guitarixlib/9c2947507cd13b82554020e669a85244e867d584/guitarix/tonestack_engl.dsp
|
faust
|
in tonestack ba.selector
|
declare name "Engl Style";
tstack = component("tonestack.dsp");
process = tstack[tse=tstack.ts.engl;];
|
7c43a3dafaa2b3ce0f8c3d342e0629c41711f45b4c0a6a56beef228e21af75e8
|
jcelerier/guitarixlib
|
tonestack_ibanez.dsp
|
declare id "Ibanez"; // in tonestack ba.selector
declare name "Ibanez Style";
tstack = component("tonestack.dsp");
process = tstack[tse=tstack.ts.ibanez;];
|
https://raw.githubusercontent.com/jcelerier/guitarixlib/9c2947507cd13b82554020e669a85244e867d584/guitarix/tonestack_ibanez.dsp
|
faust
|
in tonestack ba.selector
|
declare name "Ibanez Style";
tstack = component("tonestack.dsp");
process = tstack[tse=tstack.ts.ibanez;];
|
3d275980d4f63067b45c57c2e3a43273380583d8a6ee44ea3244a0a6246ba591
|
jcelerier/guitarixlib
|
tonestack_bogner.dsp
|
declare id "Triple Giant"; // in tonestack ba.selector
declare name "Triple Giant Style";
tstack = component("tonestack.dsp");
process = tstack[tse=tstack.ts.bogner;];
|
https://raw.githubusercontent.com/jcelerier/guitarixlib/9c2947507cd13b82554020e669a85244e867d584/guitarix/tonestack_bogner.dsp
|
faust
|
in tonestack ba.selector
|
declare name "Triple Giant Style";
tstack = component("tonestack.dsp");
process = tstack[tse=tstack.ts.bogner;];
|
7412d13ef417b8d4364a532b00f1aab4e9a4043e2e3fc3f8752706b8d82684e9
|
jcelerier/guitarixlib
|
fuzzfacerm.dsp
|
/// generated automatically
// DO NOT MODIFY!
declare id "fuzzfacerm";
declare name "Fuzz Face Mayer";
declare category "Fuzz";
declare shortname "FF Mayer";
declare description "Roger Mayer Fuzz Face simulation";
declare insert_p "tranyclipper3";
import("filter.lib");
import("trany.lib");
process = iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0)) with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = if(b, 1 - x, x);
s = 0.993;
fs = float(SR);
pre = _;
//clip = tranystage(TB_KT88_68k,86.0,2700.0,5.562895) : tranystage(TB_KT88_68k,86.0,2700.0,5.562895) ;
Fuzz = vslider("Fuzz[name:Fuzz]", 0.5, 0, 1, 0.01) : Inverted(1) : smooth(s);
Level = vslider("Level[name:Level]", 0.5, 0, 1, 0.01) : LogPot(3) : Inverted(1) : smooth(s);
b0 = Fuzz*(Fuzz*(4.47934267089816e-14*Level*pow(fs,3) - 4.57075782744711e-14*pow(fs,3)) + 2.1870008532593e-12*Level*pow(fs,3) - 2.23163352373398e-12*pow(fs,3)) + Level*pow(fs,2)*(-2.23179427996828e-12*fs - 2.84573463334658e-11) + pow(fs,2)*(2.27734110200845e-12*fs + 2.90381085035365e-11);
b1 = Fuzz*(Fuzz*(-1.34380280126945e-13*Level*pow(fs,3) + 1.37122734823413e-13*pow(fs,3)) - 6.5610025597779e-12*Level*pow(fs,3) + 6.69490057120194e-12*pow(fs,3)) + Level*pow(fs,2)*(6.69538283990485e-12*fs + 2.84573463334658e-11) + pow(fs,2)*(-6.83202330602535e-12*fs - 2.90381085035365e-11);
b2 = Fuzz*(Fuzz*(1.34380280126945e-13*Level*pow(fs,3) - 1.37122734823413e-13*pow(fs,3)) + 6.5610025597779e-12*Level*pow(fs,3) - 6.69490057120194e-12*pow(fs,3)) + Level*pow(fs,2)*(-6.69538283990485e-12*fs + 2.84573463334658e-11) + pow(fs,2)*(6.83202330602535e-12*fs - 2.90381085035365e-11);
b3 = Fuzz*(Fuzz*(-4.47934267089816e-14*Level*pow(fs,3) + 4.57075782744711e-14*pow(fs,3)) - 2.1870008532593e-12*Level*pow(fs,3) + 2.23163352373398e-12*pow(fs,3)) + Level*pow(fs,2)*(2.23179427996828e-12*fs - 2.84573463334658e-11) + pow(fs,2)*(-2.27734110200845e-12*fs + 2.90381085035365e-11);
a0 = Fuzz*(Fuzz*(Level*(Level*fs*(fs*(-6.18674104772942e-29*fs - 4.00204457374009e-26) - 2.83832448080453e-29) + fs*(fs*(-1.26259937209307e-31*fs - 2.15993317197785e-28) - 8.68874841067831e-26)) + fs*(fs*(-3.22405119745267e-14*fs - 2.08898268350887e-11) - 2.21793415696022e-11)) + Level*(Level*fs*(fs*(5.85504578964162e-29*fs + 4.00083755606776e-26) + 2.83746860731297e-29) + fs*(fs*(1.19490650740761e-31*fs + 2.08767320417856e-28) + 8.68612838978577e-26)) + fs*(fs*(3.05119726906337e-14*fs + 2.08816997599123e-11) + 2.21726535708769e-11)) + Level*(Level*(fs*(fs*(3.31695258087803e-30*fs + 8.26874714950455e-28) + 5.00406457485288e-25) + 3.54897544287011e-28) + fs*(fs*(6.76928646854567e-33*fs + 8.88886207590151e-30) + 2.81644163364677e-27) + 1.08642105394636e-24) + fs*(fs*(1.72853928389298e-15*fs + 4.32740215906676e-13) + 2.6123111187704e-10) + 2.77325369604093e-10;
a1 = Fuzz*(Fuzz*(Level*(Level*fs*(fs*(1.85602231431883e-28*fs + 4.00204457374009e-26) - 2.83832448080453e-29) + fs*(fs*(3.78779811627921e-31*fs + 2.15993317197785e-28) - 8.68874841067831e-26)) + fs*(fs*(9.67215359235801e-14*fs + 2.08898268350887e-11) - 2.21793415696022e-11)) + Level*(Level*fs*(fs*(-1.75651373689249e-28*fs - 4.00083755606776e-26) + 2.83746860731297e-29) + fs*(fs*(-3.58471952222284e-31*fs - 2.08767320417856e-28) + 8.68612838978577e-26)) + fs*(fs*(-9.15359180719011e-14*fs - 2.08816997599123e-11) + 2.21726535708769e-11)) + Level*(Level*(fs*(fs*(-9.95085774263408e-30*fs - 8.26874714950455e-28) + 5.00406457485288e-25) + 1.06469263286103e-27) + fs*(fs*(-2.0307859405637e-32*fs - 8.88886207590151e-30) + 2.81644163364677e-27) + 3.25926316183907e-24) + fs*(fs*(-5.18561785167894e-15*fs - 4.32740215906676e-13) + 2.6123111187704e-10) + 8.3197610881228e-10;
a2 = Fuzz*(Fuzz*(Level*(Level*fs*(fs*(-1.85602231431883e-28*fs + 4.00204457374009e-26) + 2.83832448080453e-29) + fs*(fs*(-3.78779811627921e-31*fs + 2.15993317197785e-28) + 8.68874841067831e-26)) + fs*(fs*(-9.67215359235801e-14*fs + 2.08898268350887e-11) + 2.21793415696022e-11)) + Level*(Level*fs*(fs*(1.75651373689249e-28*fs - 4.00083755606776e-26) - 2.83746860731297e-29) + fs*(fs*(3.58471952222284e-31*fs - 2.08767320417856e-28) - 8.68612838978577e-26)) + fs*(fs*(9.15359180719011e-14*fs - 2.08816997599123e-11) - 2.21726535708769e-11)) + Level*(Level*(fs*(fs*(9.95085774263408e-30*fs - 8.26874714950455e-28) - 5.00406457485288e-25) + 1.06469263286103e-27) + fs*(fs*(2.0307859405637e-32*fs - 8.88886207590151e-30) - 2.81644163364677e-27) + 3.25926316183907e-24) + fs*(fs*(5.18561785167894e-15*fs - 4.32740215906676e-13) - 2.6123111187704e-10) + 8.3197610881228e-10;
a3 = Fuzz*(Fuzz*(Level*(Level*fs*(fs*(6.18674104772942e-29*fs - 4.00204457374009e-26) + 2.83832448080453e-29) + fs*(fs*(1.26259937209307e-31*fs - 2.15993317197785e-28) + 8.68874841067831e-26)) + fs*(fs*(3.22405119745267e-14*fs - 2.08898268350887e-11) + 2.21793415696022e-11)) + Level*(Level*fs*(fs*(-5.85504578964162e-29*fs + 4.00083755606776e-26) - 2.83746860731297e-29) + fs*(fs*(-1.19490650740761e-31*fs + 2.08767320417856e-28) - 8.68612838978577e-26)) + fs*(fs*(-3.05119726906337e-14*fs + 2.08816997599123e-11) - 2.21726535708769e-11)) + Level*(Level*(fs*(fs*(-3.31695258087803e-30*fs + 8.26874714950455e-28) - 5.00406457485288e-25) + 3.54897544287011e-28) + fs*(fs*(-6.76928646854567e-33*fs + 8.88886207590151e-30) - 2.81644163364677e-27) + 1.08642105394636e-24) + fs*(fs*(-1.72853928389298e-15*fs + 4.32740215906676e-13) - 2.6123111187704e-10) + 2.77325369604093e-10;
};
|
https://raw.githubusercontent.com/jcelerier/guitarixlib/9c2947507cd13b82554020e669a85244e867d584/guitarix/fuzzfacerm.dsp
|
faust
|
/ generated automatically
DO NOT MODIFY!
clip = tranystage(TB_KT88_68k,86.0,2700.0,5.562895) : tranystage(TB_KT88_68k,86.0,2700.0,5.562895) ;
|
declare id "fuzzfacerm";
declare name "Fuzz Face Mayer";
declare category "Fuzz";
declare shortname "FF Mayer";
declare description "Roger Mayer Fuzz Face simulation";
declare insert_p "tranyclipper3";
import("filter.lib");
import("trany.lib");
process = iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0)) with {
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x);
Inverted(b, x) = if(b, 1 - x, x);
s = 0.993;
fs = float(SR);
pre = _;
Fuzz = vslider("Fuzz[name:Fuzz]", 0.5, 0, 1, 0.01) : Inverted(1) : smooth(s);
Level = vslider("Level[name:Level]", 0.5, 0, 1, 0.01) : LogPot(3) : Inverted(1) : smooth(s);
b0 = Fuzz*(Fuzz*(4.47934267089816e-14*Level*pow(fs,3) - 4.57075782744711e-14*pow(fs,3)) + 2.1870008532593e-12*Level*pow(fs,3) - 2.23163352373398e-12*pow(fs,3)) + Level*pow(fs,2)*(-2.23179427996828e-12*fs - 2.84573463334658e-11) + pow(fs,2)*(2.27734110200845e-12*fs + 2.90381085035365e-11);
b1 = Fuzz*(Fuzz*(-1.34380280126945e-13*Level*pow(fs,3) + 1.37122734823413e-13*pow(fs,3)) - 6.5610025597779e-12*Level*pow(fs,3) + 6.69490057120194e-12*pow(fs,3)) + Level*pow(fs,2)*(6.69538283990485e-12*fs + 2.84573463334658e-11) + pow(fs,2)*(-6.83202330602535e-12*fs - 2.90381085035365e-11);
b2 = Fuzz*(Fuzz*(1.34380280126945e-13*Level*pow(fs,3) - 1.37122734823413e-13*pow(fs,3)) + 6.5610025597779e-12*Level*pow(fs,3) - 6.69490057120194e-12*pow(fs,3)) + Level*pow(fs,2)*(-6.69538283990485e-12*fs + 2.84573463334658e-11) + pow(fs,2)*(6.83202330602535e-12*fs - 2.90381085035365e-11);
b3 = Fuzz*(Fuzz*(-4.47934267089816e-14*Level*pow(fs,3) + 4.57075782744711e-14*pow(fs,3)) - 2.1870008532593e-12*Level*pow(fs,3) + 2.23163352373398e-12*pow(fs,3)) + Level*pow(fs,2)*(2.23179427996828e-12*fs - 2.84573463334658e-11) + pow(fs,2)*(-2.27734110200845e-12*fs + 2.90381085035365e-11);
a0 = Fuzz*(Fuzz*(Level*(Level*fs*(fs*(-6.18674104772942e-29*fs - 4.00204457374009e-26) - 2.83832448080453e-29) + fs*(fs*(-1.26259937209307e-31*fs - 2.15993317197785e-28) - 8.68874841067831e-26)) + fs*(fs*(-3.22405119745267e-14*fs - 2.08898268350887e-11) - 2.21793415696022e-11)) + Level*(Level*fs*(fs*(5.85504578964162e-29*fs + 4.00083755606776e-26) + 2.83746860731297e-29) + fs*(fs*(1.19490650740761e-31*fs + 2.08767320417856e-28) + 8.68612838978577e-26)) + fs*(fs*(3.05119726906337e-14*fs + 2.08816997599123e-11) + 2.21726535708769e-11)) + Level*(Level*(fs*(fs*(3.31695258087803e-30*fs + 8.26874714950455e-28) + 5.00406457485288e-25) + 3.54897544287011e-28) + fs*(fs*(6.76928646854567e-33*fs + 8.88886207590151e-30) + 2.81644163364677e-27) + 1.08642105394636e-24) + fs*(fs*(1.72853928389298e-15*fs + 4.32740215906676e-13) + 2.6123111187704e-10) + 2.77325369604093e-10;
a1 = Fuzz*(Fuzz*(Level*(Level*fs*(fs*(1.85602231431883e-28*fs + 4.00204457374009e-26) - 2.83832448080453e-29) + fs*(fs*(3.78779811627921e-31*fs + 2.15993317197785e-28) - 8.68874841067831e-26)) + fs*(fs*(9.67215359235801e-14*fs + 2.08898268350887e-11) - 2.21793415696022e-11)) + Level*(Level*fs*(fs*(-1.75651373689249e-28*fs - 4.00083755606776e-26) + 2.83746860731297e-29) + fs*(fs*(-3.58471952222284e-31*fs - 2.08767320417856e-28) + 8.68612838978577e-26)) + fs*(fs*(-9.15359180719011e-14*fs - 2.08816997599123e-11) + 2.21726535708769e-11)) + Level*(Level*(fs*(fs*(-9.95085774263408e-30*fs - 8.26874714950455e-28) + 5.00406457485288e-25) + 1.06469263286103e-27) + fs*(fs*(-2.0307859405637e-32*fs - 8.88886207590151e-30) + 2.81644163364677e-27) + 3.25926316183907e-24) + fs*(fs*(-5.18561785167894e-15*fs - 4.32740215906676e-13) + 2.6123111187704e-10) + 8.3197610881228e-10;
a2 = Fuzz*(Fuzz*(Level*(Level*fs*(fs*(-1.85602231431883e-28*fs + 4.00204457374009e-26) + 2.83832448080453e-29) + fs*(fs*(-3.78779811627921e-31*fs + 2.15993317197785e-28) + 8.68874841067831e-26)) + fs*(fs*(-9.67215359235801e-14*fs + 2.08898268350887e-11) + 2.21793415696022e-11)) + Level*(Level*fs*(fs*(1.75651373689249e-28*fs - 4.00083755606776e-26) - 2.83746860731297e-29) + fs*(fs*(3.58471952222284e-31*fs - 2.08767320417856e-28) - 8.68612838978577e-26)) + fs*(fs*(9.15359180719011e-14*fs - 2.08816997599123e-11) - 2.21726535708769e-11)) + Level*(Level*(fs*(fs*(9.95085774263408e-30*fs - 8.26874714950455e-28) - 5.00406457485288e-25) + 1.06469263286103e-27) + fs*(fs*(2.0307859405637e-32*fs - 8.88886207590151e-30) - 2.81644163364677e-27) + 3.25926316183907e-24) + fs*(fs*(5.18561785167894e-15*fs - 4.32740215906676e-13) - 2.6123111187704e-10) + 8.3197610881228e-10;
a3 = Fuzz*(Fuzz*(Level*(Level*fs*(fs*(6.18674104772942e-29*fs - 4.00204457374009e-26) + 2.83832448080453e-29) + fs*(fs*(1.26259937209307e-31*fs - 2.15993317197785e-28) + 8.68874841067831e-26)) + fs*(fs*(3.22405119745267e-14*fs - 2.08898268350887e-11) + 2.21793415696022e-11)) + Level*(Level*fs*(fs*(-5.85504578964162e-29*fs + 4.00083755606776e-26) - 2.83746860731297e-29) + fs*(fs*(-1.19490650740761e-31*fs + 2.08767320417856e-28) - 8.68612838978577e-26)) + fs*(fs*(-3.05119726906337e-14*fs + 2.08816997599123e-11) - 2.21726535708769e-11)) + Level*(Level*(fs*(fs*(-3.31695258087803e-30*fs + 8.26874714950455e-28) - 5.00406457485288e-25) + 3.54897544287011e-28) + fs*(fs*(-6.76928646854567e-33*fs + 8.88886207590151e-30) - 2.81644163364677e-27) + 1.08642105394636e-24) + fs*(fs*(-1.72853928389298e-15*fs + 4.32740215906676e-13) - 2.6123111187704e-10) + 2.77325369604093e-10;
};
|
0871deeec2c1f7b1af4bd07ba5f778b214ba5e136d09bd62770170e15ea55122
|
jcelerier/guitarixlib
|
tonestack_ac15.dsp
|
declare id "AC-15"; // in tonestack ba.selector
declare name "AC-15 Style";
tstack = component("tonestack.dsp");
process = tstack[tse=tstack.ts.ac15;];
|
https://raw.githubusercontent.com/jcelerier/guitarixlib/9c2947507cd13b82554020e669a85244e867d584/guitarix/tonestack_ac15.dsp
|
faust
|
in tonestack ba.selector
|
declare name "AC-15 Style";
tstack = component("tonestack.dsp");
process = tstack[tse=tstack.ts.ac15;];
|
b86ede94e9c4cf6e747e9579fb51599a0baaf42d565aa726a09f9c4a38fe44c4
|
jcelerier/guitarixlib
|
tonestack_fender_blues.dsp
|
declare id "Junior"; // in tonestack ba.selector
declare name "Junior Style";
tstack = component("tonestack.dsp");
process = tstack[tse=tstack.ts.fender_blues;];
|
https://raw.githubusercontent.com/jcelerier/guitarixlib/9c2947507cd13b82554020e669a85244e867d584/guitarix/tonestack_fender_blues.dsp
|
faust
|
in tonestack ba.selector
|
declare name "Junior Style";
tstack = component("tonestack.dsp");
process = tstack[tse=tstack.ts.fender_blues;];
|
e95f98d0bdc0708d4367d58633e8a69b60dfa57908b3acb1e475fabe3e263d43
|
jcelerier/guitarixlib
|
tonestack_ampeg.dsp
|
declare id "Ampeg"; // in tonestack ba.selector
declare name "Ampeg Style";
tstack = component("tonestack.dsp");
process = tstack[tse=tstack.ts.ampeg;];
|
https://raw.githubusercontent.com/jcelerier/guitarixlib/9c2947507cd13b82554020e669a85244e867d584/guitarix/tonestack_ampeg.dsp
|
faust
|
in tonestack ba.selector
|
declare name "Ampeg Style";
tstack = component("tonestack.dsp");
process = tstack[tse=tstack.ts.ampeg;];
|
5c992ea868ec31a8bf5cb8cea2fcaa75b81b77d5af19d6b53e065448771aa438
|
jcelerier/guitarixlib
|
digital_delay_st.dsp
|
declare id "didest";
declare name "Digital Stereo Delay";
declare shortname "Digi Delay S";
declare category "Echo / Delay";
declare description "Digital Delay Stereo Version";
dds = component("digital_delay.dsp");
process = dds,dds;
|
https://raw.githubusercontent.com/jcelerier/guitarixlib/9c2947507cd13b82554020e669a85244e867d584/guitarix/digital_delay_st.dsp
|
faust
|
declare id "didest";
declare name "Digital Stereo Delay";
declare shortname "Digi Delay S";
declare category "Echo / Delay";
declare description "Digital Delay Stereo Version";
dds = component("digital_delay.dsp");
process = dds,dds;
|
|
0ef782f762fc3f2136dc6ee76053f91d62368f618ac17bf62811b37203e393c2
|
jcelerier/guitarixlib
|
drive.dsp
|
import("guitarix.lib");
fuzzy = vslider("value[name:drive]", 1, 1, 10, 1);
process = fuzzy_tube(a,b,c,fuzzy)
with {
a = 4;
b = 4;
c = 0.125;
};
|
https://raw.githubusercontent.com/jcelerier/guitarixlib/9c2947507cd13b82554020e669a85244e867d584/guitarix/drive.dsp
|
faust
|
import("guitarix.lib");
fuzzy = vslider("value[name:drive]", 1, 1, 10, 1);
process = fuzzy_tube(a,b,c,fuzzy)
with {
a = 4;
b = 4;
c = 0.125;
};
|
|
188c898f7f770fc68f0b190ba3fd80399d9df6b0538907503703b8360342c966
|
jcelerier/guitarixlib
|
tonestack_roland.dsp
|
declare id "Roland"; // in tonestack ba.selector
declare name "Roland Style";
tstack = component("tonestack.dsp");
process = tstack[tse=tstack.ts.roland;];
|
https://raw.githubusercontent.com/jcelerier/guitarixlib/9c2947507cd13b82554020e669a85244e867d584/guitarix/tonestack_roland.dsp
|
faust
|
in tonestack ba.selector
|
declare name "Roland Style";
tstack = component("tonestack.dsp");
process = tstack[tse=tstack.ts.roland;];
|
4340b400e34bc607d6c6fc74d4a64471ae7a85acba3c9acfda7ba2b8d96be1ed
|
jcelerier/guitarixlib
|
tonestack_mlead.dsp
|
declare id "M-Lead"; // in tonestack ba.selector
declare name "M-Lead Style";
tstack = component("tonestack.dsp");
process = tstack[tse=tstack.ts.mlead;];
|
https://raw.githubusercontent.com/jcelerier/guitarixlib/9c2947507cd13b82554020e669a85244e867d584/guitarix/tonestack_mlead.dsp
|
faust
|
in tonestack ba.selector
|
declare name "M-Lead Style";
tstack = component("tonestack.dsp");
process = tstack[tse=tstack.ts.mlead;];
|
efc3a493849e45d344ca46d3df79f8d26c294b25513f53e8497f0d8d9657978f
|
jcelerier/guitarixlib
|
tonestack_jcm2000.dsp
|
declare id "JCM-2000"; // in tonestack ba.selector
declare name "JCM-2000 Style";
tstack = component("tonestack.dsp");
process = tstack[tse=tstack.ts.jcm2000;];
|
https://raw.githubusercontent.com/jcelerier/guitarixlib/9c2947507cd13b82554020e669a85244e867d584/guitarix/tonestack_jcm2000.dsp
|
faust
|
in tonestack ba.selector
|
declare name "JCM-2000 Style";
tstack = component("tonestack.dsp");
process = tstack[tse=tstack.ts.jcm2000;];
|
0ead48237850aba744124fe7e231057aae358902caf8571806fab7f2ae1c43e5
|
jcelerier/guitarixlib
|
balance.dsp
|
import("guitarix.lib");
process = balance(balance_ctrl.bal);
|
https://raw.githubusercontent.com/jcelerier/guitarixlib/9c2947507cd13b82554020e669a85244e867d584/guitarix/balance.dsp
|
faust
|
import("guitarix.lib");
process = balance(balance_ctrl.bal);
|
|
2d4e5dee1b2e3a55e7cf890e8e72105f5b510298e23a79b3d8ac94549661c89c
|
jcelerier/guitarixlib
|
tonestack_twin.dsp
|
declare id "Twin Reverb"; // in tonestack ba.selector
declare name "Twin Reverb Style";
tstack = component("tonestack.dsp");
process = tstack[tse=tstack.ts.twin;];
|
https://raw.githubusercontent.com/jcelerier/guitarixlib/9c2947507cd13b82554020e669a85244e867d584/guitarix/tonestack_twin.dsp
|
faust
|
in tonestack ba.selector
|
declare name "Twin Reverb Style";
tstack = component("tonestack.dsp");
process = tstack[tse=tstack.ts.twin;];
|
f8052893d514ace49120800c2cedabf995e8d8f6bf0610d9d1a79d858c17fbb3
|
jcelerier/guitarixlib
|
balance1.dsp
|
import("guitarix.lib");
process = _ <: balance(balance_ctrl.bal);
|
https://raw.githubusercontent.com/jcelerier/guitarixlib/9c2947507cd13b82554020e669a85244e867d584/guitarix/balance1.dsp
|
faust
|
import("guitarix.lib");
process = _ <: balance(balance_ctrl.bal);
|
|
d91e557252134d93a49ec2bde30eb02eacb55b2055783fb53f7174b8fe1c2aa1
|
jcelerier/guitarixlib
|
tonestack_peavey.dsp
|
declare id "Peavey"; // in tonestack ba.selector
declare name "Peavey Style";
tstack = component("tonestack.dsp");
process = tstack[tse=tstack.ts.peavey;];
|
https://raw.githubusercontent.com/jcelerier/guitarixlib/9c2947507cd13b82554020e669a85244e867d584/guitarix/tonestack_peavey.dsp
|
faust
|
in tonestack ba.selector
|
declare name "Peavey Style";
tstack = component("tonestack.dsp");
process = tstack[tse=tstack.ts.peavey;];
|
e5786c106dd503437c2389eef457a959e0f05cb7f459fc707dd04d8ab0890bff
|
jcelerier/guitarixlib
|
tonestack_groove.dsp
|
declare id "Trio Preamp"; // in tonestack ba.selector
declare name "Trio Preamp Style";
tstack = component("tonestack.dsp");
process = tstack[tse=tstack.ts.groove;];
|
https://raw.githubusercontent.com/jcelerier/guitarixlib/9c2947507cd13b82554020e669a85244e867d584/guitarix/tonestack_groove.dsp
|
faust
|
in tonestack ba.selector
|
declare name "Trio Preamp Style";
tstack = component("tonestack.dsp");
process = tstack[tse=tstack.ts.groove;];
|
94415c55bdbedc232eeee935e9b93938984023053a8a3da4ffbdb5e3c2ebd995
|
jcelerier/guitarixlib
|
tonestack_ampeg_rev.dsp
|
declare id "rev_rocket"; // in tonestack ba.selector
declare name "Rev.Rocket Style";
tstack = component("tonestack.dsp");
process = tstack[tse=tstack.ts.ampeg_rev;];
|
https://raw.githubusercontent.com/jcelerier/guitarixlib/9c2947507cd13b82554020e669a85244e867d584/guitarix/tonestack_ampeg_rev.dsp
|
faust
|
in tonestack ba.selector
|
declare name "Rev.Rocket Style";
tstack = component("tonestack.dsp");
process = tstack[tse=tstack.ts.ampeg_rev;];
|
b9cddd9ae19b9c36a36dee3a4e6fe105910d529bb3d2faeec21092368bbba864
|
jcelerier/guitarixlib
|
tonestack_m2199.dsp
|
declare id "M2199"; // in tonestack ba.selector
declare name "M2199 Style";
tstack = component("tonestack.dsp");
process = tstack[tse=tstack.ts.m2199;];
|
https://raw.githubusercontent.com/jcelerier/guitarixlib/9c2947507cd13b82554020e669a85244e867d584/guitarix/tonestack_m2199.dsp
|
faust
|
in tonestack ba.selector
|
declare name "M2199 Style";
tstack = component("tonestack.dsp");
process = tstack[tse=tstack.ts.m2199;];
|
4687583d37c4e8389c1326a411bc8d44ad65f4c2f915d4b13452e61f5becc337
|
jcelerier/guitarixlib
|
tonestack_fender_default.dsp
|
declare id "Fender"; // in tonestack ba.selector
declare name "Fender Style";
tstack = component("tonestack.dsp");
process = tstack[tse=tstack.ts.fender_default;];
|
https://raw.githubusercontent.com/jcelerier/guitarixlib/9c2947507cd13b82554020e669a85244e867d584/guitarix/tonestack_fender_default.dsp
|
faust
|
in tonestack ba.selector
|
declare name "Fender Style";
tstack = component("tonestack.dsp");
process = tstack[tse=tstack.ts.fender_default;];
|
bdcbd8ff0fd0d11049581257a54833c43eb683cbe4af76610592bd9dcc10fb7a
|
jcelerier/guitarixlib
|
tonestack_sovtek.dsp
|
declare id "MIG 100 H"; // in tonestack ba.selector
declare name "MIG 100 H Style";
tstack = component("tonestack.dsp");
process = tstack[tse=tstack.ts.sovtek;];
|
https://raw.githubusercontent.com/jcelerier/guitarixlib/9c2947507cd13b82554020e669a85244e867d584/guitarix/tonestack_sovtek.dsp
|
faust
|
in tonestack ba.selector
|
declare name "MIG 100 H Style";
tstack = component("tonestack.dsp");
process = tstack[tse=tstack.ts.sovtek;];
|
e6bef5c64a58fc82c1217f2ed48bfa17b5db669c84f8ea5d3f8abc54a8c273f7
|
jcelerier/guitarixlib
|
tonestack_soldano.dsp
|
declare id "SOL 100"; // in tonestack ba.selector
declare name "SOL 100 Style";
tstack = component("tonestack.dsp");
process = tstack[tse=tstack.ts.soldano;];
|
https://raw.githubusercontent.com/jcelerier/guitarixlib/9c2947507cd13b82554020e669a85244e867d584/guitarix/tonestack_soldano.dsp
|
faust
|
in tonestack ba.selector
|
declare name "SOL 100 Style";
tstack = component("tonestack.dsp");
process = tstack[tse=tstack.ts.soldano;];
|
24bbbfa6598784dd1dcc4d73970290e8fd47047633a70d04e4e543d0de2a53ae
|
jcelerier/guitarixlib
|
tonestack_mesa.dsp
|
declare id "Mesa Boogie"; // in tonestack ba.selector
declare name "Mesa Boogie Style";
tstack = component("tonestack.dsp");
process = tstack[tse=tstack.ts.mesa;];
|
https://raw.githubusercontent.com/jcelerier/guitarixlib/9c2947507cd13b82554020e669a85244e867d584/guitarix/tonestack_mesa.dsp
|
faust
|
in tonestack ba.selector
|
declare name "Mesa Boogie Style";
tstack = component("tonestack.dsp");
process = tstack[tse=tstack.ts.mesa;];
|
3c49679a479a467c1020f5ccda608fac104181a3da9cb2974493432f679d58be
|
jcelerier/guitarixlib
|
tonestack_princeton.dsp
|
declare id "Princeton"; // in tonestack ba.selector
declare name "Princeton Style";
tstack = component("tonestack.dsp");
process = tstack[tse=tstack.ts.princeton;];
|
https://raw.githubusercontent.com/jcelerier/guitarixlib/9c2947507cd13b82554020e669a85244e867d584/guitarix/tonestack_princeton.dsp
|
faust
|
in tonestack ba.selector
|
declare name "Princeton Style";
tstack = component("tonestack.dsp");
process = tstack[tse=tstack.ts.princeton;];
|
49ea045191f70244d1cca9b46f6dd9e637a837afc2c68041336fa451477f8c40
|
jcelerier/guitarixlib
|
ring_modulator_st.dsp
|
declare id "ringModulatorSt";
declare name "Ring Modulator";
declare category "Modulation";
declare description "Ring Modulator Stereo Version";
rm = component("ring_modulator.dsp");
process = rm,rm;
|
https://raw.githubusercontent.com/jcelerier/guitarixlib/9c2947507cd13b82554020e669a85244e867d584/guitarix/ring_modulator_st.dsp
|
faust
|
declare id "ringModulatorSt";
declare name "Ring Modulator";
declare category "Modulation";
declare description "Ring Modulator Stereo Version";
rm = component("ring_modulator.dsp");
process = rm,rm;
|
|
34a59599246b3938d2513b00ab928a8b917db4a482d1b5ea20b3bf146172cd74
|
jcelerier/guitarixlib
|
tonestack_gibsen.dsp
|
declare id "Gibsen"; // in tonestack ba.selector
declare name "Gibsen Style";
tstack = component("tonestack.dsp");
process = tstack[tse=tstack.ts.gibsen;];
|
https://raw.githubusercontent.com/jcelerier/guitarixlib/9c2947507cd13b82554020e669a85244e867d584/guitarix/tonestack_gibsen.dsp
|
faust
|
in tonestack ba.selector
|
declare name "Gibsen Style";
tstack = component("tonestack.dsp");
process = tstack[tse=tstack.ts.gibsen;];
|
1d9d57ddfb1a233b0ff3c0deedd9288969318b651241db1bed27877deda7bd19
|
jcelerier/guitarixlib
|
tonestack_jtm45.dsp
|
declare id "JTM-45"; // in tonestack ba.selector
declare name "JTM-45 Style";
tstack = component("tonestack.dsp");
process = tstack[tse=tstack.ts.jtm45;];
|
https://raw.githubusercontent.com/jcelerier/guitarixlib/9c2947507cd13b82554020e669a85244e867d584/guitarix/tonestack_jtm45.dsp
|
faust
|
in tonestack ba.selector
|
declare name "JTM-45 Style";
tstack = component("tonestack.dsp");
process = tstack[tse=tstack.ts.jtm45;];
|
ac2efa3b90e56b5b652acac21cef931c9ceeb1441aa5cc1338697d5c87637ec4
|
jcelerier/abclib
|
abc_2d_squaretrajectory.dsp
|
//--------------------------------------------------------------------------------------//
//----------------------------------------abclib----------------------------------------//
//
//-------------------------FAUST CODE AND UTILITIES FOR MIXED MUSIC---------------------//
//
//-----------------------BY ALAIN BONARDI & PAUL GOUTMANN - 2019-2022 ------------------//
//---------------------CICM - MUSIDANSE LABORATORY - PARIS 8 UNIVERSITY-----------------//
//--------------------------------------------------------------------------------------//
//
declare author "Alain Bonardi & Paul Goutmann";
declare licence "LGPLv3";
declare name "abc_2d_squaretrajectory";
//
process = library("abc.lib").abc_2d_squareTrajectory_ui;
|
https://raw.githubusercontent.com/jcelerier/abclib/0857a9dbe88eafece0772c5701a56d2552fc9a9b/abc/abc_2d_squaretrajectory.dsp
|
faust
|
--------------------------------------------------------------------------------------//
----------------------------------------abclib----------------------------------------//
-------------------------FAUST CODE AND UTILITIES FOR MIXED MUSIC---------------------//
-----------------------BY ALAIN BONARDI & PAUL GOUTMANN - 2019-2022 ------------------//
---------------------CICM - MUSIDANSE LABORATORY - PARIS 8 UNIVERSITY-----------------//
--------------------------------------------------------------------------------------//
|
declare author "Alain Bonardi & Paul Goutmann";
declare licence "LGPLv3";
declare name "abc_2d_squaretrajectory";
process = library("abc.lib").abc_2d_squareTrajectory_ui;
|
c066d996e4a5ede08d7d09d19d4b1bdcab5d59caffa3f9c128132d6d1b3194b9
|
jcelerier/abclib
|
abc_2d_decoder6_12.dsp
|
//--------------------------------------------------------------------------------------//
//----------------------------------------abclib----------------------------------------//
//
//-------------------------FAUST CODE AND UTILITIES FOR MIXED MUSIC---------------------//
//
//-----------------------BY ALAIN BONARDI & PAUL GOUTMANN - 2019-2022 ------------------//
//---------------------CICM - MUSIDANSE LABORATORY - PARIS 8 UNIVERSITY-----------------//
//--------------------------------------------------------------------------------------//
//
declare author "Alain Bonardi & Paul Goutmann";
declare licence "LGPLv3";
declare name "abc_2d_decoder6_12";
//
process = library("abc.lib").abc_2d_decoder_ui(6, 12);
|
https://raw.githubusercontent.com/jcelerier/abclib/0857a9dbe88eafece0772c5701a56d2552fc9a9b/abc/abc_2d_decoder6_12.dsp
|
faust
|
--------------------------------------------------------------------------------------//
----------------------------------------abclib----------------------------------------//
-------------------------FAUST CODE AND UTILITIES FOR MIXED MUSIC---------------------//
-----------------------BY ALAIN BONARDI & PAUL GOUTMANN - 2019-2022 ------------------//
---------------------CICM - MUSIDANSE LABORATORY - PARIS 8 UNIVERSITY-----------------//
--------------------------------------------------------------------------------------//
|
declare author "Alain Bonardi & Paul Goutmann";
declare licence "LGPLv3";
declare name "abc_2d_decoder6_12";
process = library("abc.lib").abc_2d_decoder_ui(6, 12);
|
c611dc62d30f44804038e1d1792667cc7a2f4c3c7269eb15c7ba1dfdb5070030
|
jcelerier/abclib
|
abc_flanger4.dsp
|
//--------------------------------------------------------------------------------------//
//----------------------------------------abclib----------------------------------------//
//
//-------------------------FAUST CODE AND UTILITIES FOR MIXED MUSIC---------------------//
//
//-----------------------BY ALAIN BONARDI & PAUL GOUTMANN - 2019-2022 ------------------//
//---------------------CICM - MUSIDANSE LABORATORY - PARIS 8 UNIVERSITY-----------------//
//--------------------------------------------------------------------------------------//
//
declare author "Alain Bonardi & Paul Goutmann";
declare licence "LGPLv3";
declare name "abc_flanger4";
//
process = library("abc.lib").abc_multiflanger_ui(4);
|
https://raw.githubusercontent.com/jcelerier/abclib/0857a9dbe88eafece0772c5701a56d2552fc9a9b/abc/abc_flanger4.dsp
|
faust
|
--------------------------------------------------------------------------------------//
----------------------------------------abclib----------------------------------------//
-------------------------FAUST CODE AND UTILITIES FOR MIXED MUSIC---------------------//
-----------------------BY ALAIN BONARDI & PAUL GOUTMANN - 2019-2022 ------------------//
---------------------CICM - MUSIDANSE LABORATORY - PARIS 8 UNIVERSITY-----------------//
--------------------------------------------------------------------------------------//
|
declare author "Alain Bonardi & Paul Goutmann";
declare licence "LGPLv3";
declare name "abc_flanger4";
process = library("abc.lib").abc_multiflanger_ui(4);
|
ce78f83138791e4f8a6218655addef4631627cab12f6c62777243b4684286db6
|
jcelerier/abclib
|
abc_2d_decoder5_4.dsp
|
//--------------------------------------------------------------------------------------//
//----------------------------------------abclib----------------------------------------//
//
//-------------------------FAUST CODE AND UTILITIES FOR MIXED MUSIC---------------------//
//
//-----------------------BY ALAIN BONARDI & PAUL GOUTMANN - 2019-2022 ------------------//
//---------------------CICM - MUSIDANSE LABORATORY - PARIS 8 UNIVERSITY-----------------//
//--------------------------------------------------------------------------------------//
//
declare author "Alain Bonardi & Paul Goutmann";
declare licence "LGPLv3";
declare name "abc_2d_decoder5_4";
//
process = library("abc.lib").abc_2d_decoder_ui(5, 4);
|
https://raw.githubusercontent.com/jcelerier/abclib/0857a9dbe88eafece0772c5701a56d2552fc9a9b/abc/abc_2d_decoder5_4.dsp
|
faust
|
--------------------------------------------------------------------------------------//
----------------------------------------abclib----------------------------------------//
-------------------------FAUST CODE AND UTILITIES FOR MIXED MUSIC---------------------//
-----------------------BY ALAIN BONARDI & PAUL GOUTMANN - 2019-2022 ------------------//
---------------------CICM - MUSIDANSE LABORATORY - PARIS 8 UNIVERSITY-----------------//
--------------------------------------------------------------------------------------//
|
declare author "Alain Bonardi & Paul Goutmann";
declare licence "LGPLv3";
declare name "abc_2d_decoder5_4";
process = library("abc.lib").abc_2d_decoder_ui(5, 4);
|
5dd61e1f58a74f3c5d0f47256cdf940f9338fbe3571de886e4377d5e7d791d07
|
jcelerier/abclib
|
abc_2d_map4_2.dsp
|
//--------------------------------------------------------------------------------------//
//----------------------------------------abclib----------------------------------------//
//
//-------------------------FAUST CODE AND UTILITIES FOR MIXED MUSIC---------------------//
//
//-----------------------BY ALAIN BONARDI & PAUL GOUTMANN - 2019-2022 ------------------//
//---------------------CICM - MUSIDANSE LABORATORY - PARIS 8 UNIVERSITY-----------------//
//--------------------------------------------------------------------------------------//
//
declare author "Alain Bonardi & Paul Goutmann";
declare licence "LGPLv3";
declare name "abc_2d_map4_2";
//
process = library("abc.lib").abc_2d_multiMap_ui(4, 2);
|
https://raw.githubusercontent.com/jcelerier/abclib/0857a9dbe88eafece0772c5701a56d2552fc9a9b/abc/abc_2d_map4_2.dsp
|
faust
|
--------------------------------------------------------------------------------------//
----------------------------------------abclib----------------------------------------//
-------------------------FAUST CODE AND UTILITIES FOR MIXED MUSIC---------------------//
-----------------------BY ALAIN BONARDI & PAUL GOUTMANN - 2019-2022 ------------------//
---------------------CICM - MUSIDANSE LABORATORY - PARIS 8 UNIVERSITY-----------------//
--------------------------------------------------------------------------------------//
|
declare author "Alain Bonardi & Paul Goutmann";
declare licence "LGPLv3";
declare name "abc_2d_map4_2";
process = library("abc.lib").abc_2d_multiMap_ui(4, 2);
|
1fc4a78b7c1c1d23385b823d900b258991a9e0612045813db3243e8b3033fb58
|
jcelerier/abclib
|
abc_2d_decoder3_13.dsp
|
//--------------------------------------------------------------------------------------//
//----------------------------------------abclib----------------------------------------//
//
//-------------------------FAUST CODE AND UTILITIES FOR MIXED MUSIC---------------------//
//
//-----------------------BY ALAIN BONARDI & PAUL GOUTMANN - 2019-2022 ------------------//
//---------------------CICM - MUSIDANSE LABORATORY - PARIS 8 UNIVERSITY-----------------//
//--------------------------------------------------------------------------------------//
//
declare author "Alain Bonardi & Paul Goutmann";
declare licence "LGPLv3";
declare name "abc_2d_decoder3_13";
//
process = library("abc.lib").abc_2d_decoder_ui(3, 13);
|
https://raw.githubusercontent.com/jcelerier/abclib/0857a9dbe88eafece0772c5701a56d2552fc9a9b/abc/abc_2d_decoder3_13.dsp
|
faust
|
--------------------------------------------------------------------------------------//
----------------------------------------abclib----------------------------------------//
-------------------------FAUST CODE AND UTILITIES FOR MIXED MUSIC---------------------//
-----------------------BY ALAIN BONARDI & PAUL GOUTMANN - 2019-2022 ------------------//
---------------------CICM - MUSIDANSE LABORATORY - PARIS 8 UNIVERSITY-----------------//
--------------------------------------------------------------------------------------//
|
declare author "Alain Bonardi & Paul Goutmann";
declare licence "LGPLv3";
declare name "abc_2d_decoder3_13";
process = library("abc.lib").abc_2d_decoder_ui(3, 13);
|
b69552153741c5413773c1e6cf689a200f4d2b96f52802e09da6356b8473c0c4
|
jcelerier/abclib
|
abc_delay3.dsp
|
//--------------------------------------------------------------------------------------//
//----------------------------------------abclib----------------------------------------//
//
//-------------------------FAUST CODE AND UTILITIES FOR MIXED MUSIC---------------------//
//
//-----------------------BY ALAIN BONARDI & PAUL GOUTMANN - 2019-2022 ------------------//
//---------------------CICM - MUSIDANSE LABORATORY - PARIS 8 UNIVERSITY-----------------//
//--------------------------------------------------------------------------------------//
//
declare author "Alain Bonardi & Paul Goutmann";
declare licence "LGPLv3";
declare name "abc_delay3";
//
process = library("abc.lib").abc_pardelset_ui(3);
|
https://raw.githubusercontent.com/jcelerier/abclib/0857a9dbe88eafece0772c5701a56d2552fc9a9b/abc/abc_delay3.dsp
|
faust
|
--------------------------------------------------------------------------------------//
----------------------------------------abclib----------------------------------------//
-------------------------FAUST CODE AND UTILITIES FOR MIXED MUSIC---------------------//
-----------------------BY ALAIN BONARDI & PAUL GOUTMANN - 2019-2022 ------------------//
---------------------CICM - MUSIDANSE LABORATORY - PARIS 8 UNIVERSITY-----------------//
--------------------------------------------------------------------------------------//
|
declare author "Alain Bonardi & Paul Goutmann";
declare licence "LGPLv3";
declare name "abc_delay3";
process = library("abc.lib").abc_pardelset_ui(3);
|
195259b288ae0fbe8c84af395bbf6eedec0c25aa9ab1729eec1eca0094187d31
|
jcelerier/abclib
|
abc_2d_decoder1_10.dsp
|
//--------------------------------------------------------------------------------------//
//----------------------------------------abclib----------------------------------------//
//
//-------------------------FAUST CODE AND UTILITIES FOR MIXED MUSIC---------------------//
//
//-----------------------BY ALAIN BONARDI & PAUL GOUTMANN - 2019-2022 ------------------//
//---------------------CICM - MUSIDANSE LABORATORY - PARIS 8 UNIVERSITY-----------------//
//--------------------------------------------------------------------------------------//
//
declare author "Alain Bonardi & Paul Goutmann";
declare licence "LGPLv3";
declare name "abc_2d_decoder1_10";
//
process = library("abc.lib").abc_2d_decoder_ui(1, 10);
|
https://raw.githubusercontent.com/jcelerier/abclib/0857a9dbe88eafece0772c5701a56d2552fc9a9b/abc/abc_2d_decoder1_10.dsp
|
faust
|
--------------------------------------------------------------------------------------//
----------------------------------------abclib----------------------------------------//
-------------------------FAUST CODE AND UTILITIES FOR MIXED MUSIC---------------------//
-----------------------BY ALAIN BONARDI & PAUL GOUTMANN - 2019-2022 ------------------//
---------------------CICM - MUSIDANSE LABORATORY - PARIS 8 UNIVERSITY-----------------//
--------------------------------------------------------------------------------------//
|
declare author "Alain Bonardi & Paul Goutmann";
declare licence "LGPLv3";
declare name "abc_2d_decoder1_10";
process = library("abc.lib").abc_2d_decoder_ui(1, 10);
|
0c0d4a330bc4030eb7ad91a8632601591164d8a13db0cefee8f46e3ce8370d78
|
jcelerier/abclib
|
abc_2d_multiencoder4_2.dsp
|
//--------------------------------------------------------------------------------------//
//----------------------------------------abclib----------------------------------------//
//
//-------------------------FAUST CODE AND UTILITIES FOR MIXED MUSIC---------------------//
//
//-----------------------BY ALAIN BONARDI & PAUL GOUTMANN - 2019-2022 ------------------//
//---------------------CICM - MUSIDANSE LABORATORY - PARIS 8 UNIVERSITY-----------------//
//--------------------------------------------------------------------------------------//
//
declare author "Alain Bonardi & Paul Goutmann";
declare licence "LGPLv3";
declare name "abc_2d_multiencoder4_2";
//
process = library("abc.lib").abc_2d_multiEncoder_ui(4, 2);
|
https://raw.githubusercontent.com/jcelerier/abclib/0857a9dbe88eafece0772c5701a56d2552fc9a9b/abc/abc_2d_multiencoder4_2.dsp
|
faust
|
--------------------------------------------------------------------------------------//
----------------------------------------abclib----------------------------------------//
-------------------------FAUST CODE AND UTILITIES FOR MIXED MUSIC---------------------//
-----------------------BY ALAIN BONARDI & PAUL GOUTMANN - 2019-2022 ------------------//
---------------------CICM - MUSIDANSE LABORATORY - PARIS 8 UNIVERSITY-----------------//
--------------------------------------------------------------------------------------//
|
declare author "Alain Bonardi & Paul Goutmann";
declare licence "LGPLv3";
declare name "abc_2d_multiencoder4_2";
process = library("abc.lib").abc_2d_multiEncoder_ui(4, 2);
|
780af35ccef1d2107b7da5f5a8c3d10e7b98848e2aed89db83ca5056de8f1a83
|
jcelerier/abclib
|
abc_2d_fx_decorrelation7.dsp
|
//--------------------------------------------------------------------------------------//
//----------------------------------------abclib----------------------------------------//
//
//-------------------------FAUST CODE AND UTILITIES FOR MIXED MUSIC---------------------//
//
//-----------------------BY ALAIN BONARDI & PAUL GOUTMANN - 2019-2022 ------------------//
//---------------------CICM - MUSIDANSE LABORATORY - PARIS 8 UNIVERSITY-----------------//
//--------------------------------------------------------------------------------------//
//
declare author "Alain Bonardi & Paul Goutmann";
declare licence "LGPLv3";
declare name "abc_2d_fx_decorrelation7";
//
process = library("abc.lib").abc_2d_fx_decorrelation_ui(7);
|
https://raw.githubusercontent.com/jcelerier/abclib/0857a9dbe88eafece0772c5701a56d2552fc9a9b/abc/abc_2d_fx_decorrelation7.dsp
|
faust
|
--------------------------------------------------------------------------------------//
----------------------------------------abclib----------------------------------------//
-------------------------FAUST CODE AND UTILITIES FOR MIXED MUSIC---------------------//
-----------------------BY ALAIN BONARDI & PAUL GOUTMANN - 2019-2022 ------------------//
---------------------CICM - MUSIDANSE LABORATORY - PARIS 8 UNIVERSITY-----------------//
--------------------------------------------------------------------------------------//
|
declare author "Alain Bonardi & Paul Goutmann";
declare licence "LGPLv3";
declare name "abc_2d_fx_decorrelation7";
process = library("abc.lib").abc_2d_fx_decorrelation_ui(7);
|
3a852bd035a56a0eee65fb7ab39cff0b2cfa2ef5d9c52dbcd53379773e200d3f
|
jcelerier/abclib
|
abc_2d_multiencoder2_8.dsp
|
//--------------------------------------------------------------------------------------//
//----------------------------------------abclib----------------------------------------//
//
//-------------------------FAUST CODE AND UTILITIES FOR MIXED MUSIC---------------------//
//
//-----------------------BY ALAIN BONARDI & PAUL GOUTMANN - 2019-2022 ------------------//
//---------------------CICM - MUSIDANSE LABORATORY - PARIS 8 UNIVERSITY-----------------//
//--------------------------------------------------------------------------------------//
//
declare author "Alain Bonardi & Paul Goutmann";
declare licence "LGPLv3";
declare name "abc_2d_multiencoder2_8";
//
process = library("abc.lib").abc_2d_multiEncoder_ui(2, 8);
|
https://raw.githubusercontent.com/jcelerier/abclib/0857a9dbe88eafece0772c5701a56d2552fc9a9b/abc/abc_2d_multiencoder2_8.dsp
|
faust
|
--------------------------------------------------------------------------------------//
----------------------------------------abclib----------------------------------------//
-------------------------FAUST CODE AND UTILITIES FOR MIXED MUSIC---------------------//
-----------------------BY ALAIN BONARDI & PAUL GOUTMANN - 2019-2022 ------------------//
---------------------CICM - MUSIDANSE LABORATORY - PARIS 8 UNIVERSITY-----------------//
--------------------------------------------------------------------------------------//
|
declare author "Alain Bonardi & Paul Goutmann";
declare licence "LGPLv3";
declare name "abc_2d_multiencoder2_8";
process = library("abc.lib").abc_2d_multiEncoder_ui(2, 8);
|
5ada356509b98e822ee980082f3da54b9e638adc538401f7478e9d6ccada4aaa
|
jcelerier/abclib
|
abc_grain11.dsp
|
//--------------------------------------------------------------------------------------//
//----------------------------------------abclib----------------------------------------//
//
//-------------------------FAUST CODE AND UTILITIES FOR MIXED MUSIC---------------------//
//
//-----------------------BY ALAIN BONARDI & PAUL GOUTMANN - 2019-2022 ------------------//
//---------------------CICM - MUSIDANSE LABORATORY - PARIS 8 UNIVERSITY-----------------//
//--------------------------------------------------------------------------------------//
//
declare author "Alain Bonardi & Paul Goutmann";
declare licence "LGPLv3";
declare name "abc_grain11";
//
process = library("abc.lib").abc_multigrain_ui(11);
|
https://raw.githubusercontent.com/jcelerier/abclib/0857a9dbe88eafece0772c5701a56d2552fc9a9b/abc/abc_grain11.dsp
|
faust
|
--------------------------------------------------------------------------------------//
----------------------------------------abclib----------------------------------------//
-------------------------FAUST CODE AND UTILITIES FOR MIXED MUSIC---------------------//
-----------------------BY ALAIN BONARDI & PAUL GOUTMANN - 2019-2022 ------------------//
---------------------CICM - MUSIDANSE LABORATORY - PARIS 8 UNIVERSITY-----------------//
--------------------------------------------------------------------------------------//
|
declare author "Alain Bonardi & Paul Goutmann";
declare licence "LGPLv3";
declare name "abc_grain11";
process = library("abc.lib").abc_multigrain_ui(11);
|
a8c601933629e0d1270f4bc173afe14a4423dabe6abd4af5db638e20b5be26ee
|
jcelerier/abclib
|
abc_2d_decoder1_12.dsp
|
//--------------------------------------------------------------------------------------//
//----------------------------------------abclib----------------------------------------//
//
//-------------------------FAUST CODE AND UTILITIES FOR MIXED MUSIC---------------------//
//
//-----------------------BY ALAIN BONARDI & PAUL GOUTMANN - 2019-2022 ------------------//
//---------------------CICM - MUSIDANSE LABORATORY - PARIS 8 UNIVERSITY-----------------//
//--------------------------------------------------------------------------------------//
//
declare author "Alain Bonardi & Paul Goutmann";
declare licence "LGPLv3";
declare name "abc_2d_decoder1_12";
//
process = library("abc.lib").abc_2d_decoder_ui(1, 12);
|
https://raw.githubusercontent.com/jcelerier/abclib/0857a9dbe88eafece0772c5701a56d2552fc9a9b/abc/abc_2d_decoder1_12.dsp
|
faust
|
--------------------------------------------------------------------------------------//
----------------------------------------abclib----------------------------------------//
-------------------------FAUST CODE AND UTILITIES FOR MIXED MUSIC---------------------//
-----------------------BY ALAIN BONARDI & PAUL GOUTMANN - 2019-2022 ------------------//
---------------------CICM - MUSIDANSE LABORATORY - PARIS 8 UNIVERSITY-----------------//
--------------------------------------------------------------------------------------//
|
declare author "Alain Bonardi & Paul Goutmann";
declare licence "LGPLv3";
declare name "abc_2d_decoder1_12";
process = library("abc.lib").abc_2d_decoder_ui(1, 12);
|
c87d89a9bec6a22d30a0ac1494b047bd896359249b2ec6097585844a6c90bc4e
|
jcelerier/abclib
|
abc_2d_stereodecoder3.dsp
|
//--------------------------------------------------------------------------------------//
//----------------------------------------abclib----------------------------------------//
//
//-------------------------FAUST CODE AND UTILITIES FOR MIXED MUSIC---------------------//
//
//-----------------------BY ALAIN BONARDI & PAUL GOUTMANN - 2019-2022 ------------------//
//---------------------CICM - MUSIDANSE LABORATORY - PARIS 8 UNIVERSITY-----------------//
//--------------------------------------------------------------------------------------//
//
declare author "Alain Bonardi & Paul Goutmann";
declare licence "LGPLv3";
declare name "abc_2d_stereodecoder3";
//
process = library("abc.lib").abc_2d_stereodecoder_ui(3);
|
https://raw.githubusercontent.com/jcelerier/abclib/0857a9dbe88eafece0772c5701a56d2552fc9a9b/abc/abc_2d_stereodecoder3.dsp
|
faust
|
--------------------------------------------------------------------------------------//
----------------------------------------abclib----------------------------------------//
-------------------------FAUST CODE AND UTILITIES FOR MIXED MUSIC---------------------//
-----------------------BY ALAIN BONARDI & PAUL GOUTMANN - 2019-2022 ------------------//
---------------------CICM - MUSIDANSE LABORATORY - PARIS 8 UNIVERSITY-----------------//
--------------------------------------------------------------------------------------//
|
declare author "Alain Bonardi & Paul Goutmann";
declare licence "LGPLv3";
declare name "abc_2d_stereodecoder3";
process = library("abc.lib").abc_2d_stereodecoder_ui(3);
|
febff8e84981fd179785401e1cd7a081c109f2e353b4f999fba0e3e51c35ab55
|
jcelerier/abclib
|
abc_2d_multiencoder6_5.dsp
|
//--------------------------------------------------------------------------------------//
//----------------------------------------abclib----------------------------------------//
//
//-------------------------FAUST CODE AND UTILITIES FOR MIXED MUSIC---------------------//
//
//-----------------------BY ALAIN BONARDI & PAUL GOUTMANN - 2019-2022 ------------------//
//---------------------CICM - MUSIDANSE LABORATORY - PARIS 8 UNIVERSITY-----------------//
//--------------------------------------------------------------------------------------//
//
declare author "Alain Bonardi & Paul Goutmann";
declare licence "LGPLv3";
declare name "abc_2d_multiencoder6_5";
//
process = library("abc.lib").abc_2d_multiEncoder_ui(6, 5);
|
https://raw.githubusercontent.com/jcelerier/abclib/0857a9dbe88eafece0772c5701a56d2552fc9a9b/abc/abc_2d_multiencoder6_5.dsp
|
faust
|
--------------------------------------------------------------------------------------//
----------------------------------------abclib----------------------------------------//
-------------------------FAUST CODE AND UTILITIES FOR MIXED MUSIC---------------------//
-----------------------BY ALAIN BONARDI & PAUL GOUTMANN - 2019-2022 ------------------//
---------------------CICM - MUSIDANSE LABORATORY - PARIS 8 UNIVERSITY-----------------//
--------------------------------------------------------------------------------------//
|
declare author "Alain Bonardi & Paul Goutmann";
declare licence "LGPLv3";
declare name "abc_2d_multiencoder6_5";
process = library("abc.lib").abc_2d_multiEncoder_ui(6, 5);
|
bd160f780238935b44eee72e6115a4fc4fe76881877f0eed7a6df2363d8d6f39
|
jcelerier/abclib
|
abc_2d_decoder3_6.dsp
|
//--------------------------------------------------------------------------------------//
//----------------------------------------abclib----------------------------------------//
//
//-------------------------FAUST CODE AND UTILITIES FOR MIXED MUSIC---------------------//
//
//-----------------------BY ALAIN BONARDI & PAUL GOUTMANN - 2019-2022 ------------------//
//---------------------CICM - MUSIDANSE LABORATORY - PARIS 8 UNIVERSITY-----------------//
//--------------------------------------------------------------------------------------//
//
declare author "Alain Bonardi & Paul Goutmann";
declare licence "LGPLv3";
declare name "abc_2d_decoder3_6";
//
process = library("abc.lib").abc_2d_decoder_ui(3, 6);
|
https://raw.githubusercontent.com/jcelerier/abclib/0857a9dbe88eafece0772c5701a56d2552fc9a9b/abc/abc_2d_decoder3_6.dsp
|
faust
|
--------------------------------------------------------------------------------------//
----------------------------------------abclib----------------------------------------//
-------------------------FAUST CODE AND UTILITIES FOR MIXED MUSIC---------------------//
-----------------------BY ALAIN BONARDI & PAUL GOUTMANN - 2019-2022 ------------------//
---------------------CICM - MUSIDANSE LABORATORY - PARIS 8 UNIVERSITY-----------------//
--------------------------------------------------------------------------------------//
|
declare author "Alain Bonardi & Paul Goutmann";
declare licence "LGPLv3";
declare name "abc_2d_decoder3_6";
process = library("abc.lib").abc_2d_decoder_ui(3, 6);
|
22cee22a7dcb66a38465ee4a6e0d7c236eee62dec78020c5eaeda9ef7f89a088
|
jcelerier/abclib
|
abc_2d_map3_2.dsp
|
//--------------------------------------------------------------------------------------//
//----------------------------------------abclib----------------------------------------//
//
//-------------------------FAUST CODE AND UTILITIES FOR MIXED MUSIC---------------------//
//
//-----------------------BY ALAIN BONARDI & PAUL GOUTMANN - 2019-2022 ------------------//
//---------------------CICM - MUSIDANSE LABORATORY - PARIS 8 UNIVERSITY-----------------//
//--------------------------------------------------------------------------------------//
//
declare author "Alain Bonardi & Paul Goutmann";
declare licence "LGPLv3";
declare name "abc_2d_map3_2";
//
process = library("abc.lib").abc_2d_multiMap_ui(3, 2);
|
https://raw.githubusercontent.com/jcelerier/abclib/0857a9dbe88eafece0772c5701a56d2552fc9a9b/abc/abc_2d_map3_2.dsp
|
faust
|
--------------------------------------------------------------------------------------//
----------------------------------------abclib----------------------------------------//
-------------------------FAUST CODE AND UTILITIES FOR MIXED MUSIC---------------------//
-----------------------BY ALAIN BONARDI & PAUL GOUTMANN - 2019-2022 ------------------//
---------------------CICM - MUSIDANSE LABORATORY - PARIS 8 UNIVERSITY-----------------//
--------------------------------------------------------------------------------------//
|
declare author "Alain Bonardi & Paul Goutmann";
declare licence "LGPLv3";
declare name "abc_2d_map3_2";
process = library("abc.lib").abc_2d_multiMap_ui(3, 2);
|
50e5fa9e1252fa90ccfb412d670eb91b6fa0cb1480f69a4698e8a29ff159e515
|
jcelerier/abclib
|
abc_2d_decoder4_15.dsp
|
//--------------------------------------------------------------------------------------//
//----------------------------------------abclib----------------------------------------//
//
//-------------------------FAUST CODE AND UTILITIES FOR MIXED MUSIC---------------------//
//
//-----------------------BY ALAIN BONARDI & PAUL GOUTMANN - 2019-2022 ------------------//
//---------------------CICM - MUSIDANSE LABORATORY - PARIS 8 UNIVERSITY-----------------//
//--------------------------------------------------------------------------------------//
//
declare author "Alain Bonardi & Paul Goutmann";
declare licence "LGPLv3";
declare name "abc_2d_decoder4_15";
//
process = library("abc.lib").abc_2d_decoder_ui(4, 15);
|
https://raw.githubusercontent.com/jcelerier/abclib/0857a9dbe88eafece0772c5701a56d2552fc9a9b/abc/abc_2d_decoder4_15.dsp
|
faust
|
--------------------------------------------------------------------------------------//
----------------------------------------abclib----------------------------------------//
-------------------------FAUST CODE AND UTILITIES FOR MIXED MUSIC---------------------//
-----------------------BY ALAIN BONARDI & PAUL GOUTMANN - 2019-2022 ------------------//
---------------------CICM - MUSIDANSE LABORATORY - PARIS 8 UNIVERSITY-----------------//
--------------------------------------------------------------------------------------//
|
declare author "Alain Bonardi & Paul Goutmann";
declare licence "LGPLv3";
declare name "abc_2d_decoder4_15";
process = library("abc.lib").abc_2d_decoder_ui(4, 15);
|
139f769c29225eba8815696ae472e1684ce50233f0f482de6ce852b10b8e1652
|
jcelerier/abclib
|
abc_2d_decoder1_6.dsp
|
//--------------------------------------------------------------------------------------//
//----------------------------------------abclib----------------------------------------//
//
//-------------------------FAUST CODE AND UTILITIES FOR MIXED MUSIC---------------------//
//
//-----------------------BY ALAIN BONARDI & PAUL GOUTMANN - 2019-2022 ------------------//
//---------------------CICM - MUSIDANSE LABORATORY - PARIS 8 UNIVERSITY-----------------//
//--------------------------------------------------------------------------------------//
//
declare author "Alain Bonardi & Paul Goutmann";
declare licence "LGPLv3";
declare name "abc_2d_decoder1_6";
//
process = library("abc.lib").abc_2d_decoder_ui(1, 6);
|
https://raw.githubusercontent.com/jcelerier/abclib/0857a9dbe88eafece0772c5701a56d2552fc9a9b/abc/abc_2d_decoder1_6.dsp
|
faust
|
--------------------------------------------------------------------------------------//
----------------------------------------abclib----------------------------------------//
-------------------------FAUST CODE AND UTILITIES FOR MIXED MUSIC---------------------//
-----------------------BY ALAIN BONARDI & PAUL GOUTMANN - 2019-2022 ------------------//
---------------------CICM - MUSIDANSE LABORATORY - PARIS 8 UNIVERSITY-----------------//
--------------------------------------------------------------------------------------//
|
declare author "Alain Bonardi & Paul Goutmann";
declare licence "LGPLv3";
declare name "abc_2d_decoder1_6";
process = library("abc.lib").abc_2d_decoder_ui(1, 6);
|
f7b83e28638d5134badc3da28edff50d985d9a0cc289e394153598be1cec2187
|
jcelerier/abclib
|
abc_freqshift10.dsp
|
//--------------------------------------------------------------------------------------//
//----------------------------------------abclib----------------------------------------//
//
//-------------------------FAUST CODE AND UTILITIES FOR MIXED MUSIC---------------------//
//
//-----------------------BY ALAIN BONARDI & PAUL GOUTMANN - 2019-2022 ------------------//
//---------------------CICM - MUSIDANSE LABORATORY - PARIS 8 UNIVERSITY-----------------//
//--------------------------------------------------------------------------------------//
//
declare author "Alain Bonardi & Paul Goutmann";
declare licence "LGPLv3";
declare name "abc_freqshift10";
//
process = library("abc.lib").abc_multifreqshift_ui(10);
|
https://raw.githubusercontent.com/jcelerier/abclib/0857a9dbe88eafece0772c5701a56d2552fc9a9b/abc/abc_freqshift10.dsp
|
faust
|
--------------------------------------------------------------------------------------//
----------------------------------------abclib----------------------------------------//
-------------------------FAUST CODE AND UTILITIES FOR MIXED MUSIC---------------------//
-----------------------BY ALAIN BONARDI & PAUL GOUTMANN - 2019-2022 ------------------//
---------------------CICM - MUSIDANSE LABORATORY - PARIS 8 UNIVERSITY-----------------//
--------------------------------------------------------------------------------------//
|
declare author "Alain Bonardi & Paul Goutmann";
declare licence "LGPLv3";
declare name "abc_freqshift10";
process = library("abc.lib").abc_multifreqshift_ui(10);
|
1e5d16e978063b2e495a1fbbe4e46eac52a88345f76fb3a24f77cca3bc791d81
|
jcelerier/abclib
|
abc_poltocar.dsp
|
//--------------------------------------------------------------------------------------//
//----------------------------------------abclib----------------------------------------//
//
//-------------------------FAUST CODE AND UTILITIES FOR MIXED MUSIC---------------------//
//
//-----------------------BY ALAIN BONARDI & PAUL GOUTMANN - 2019-2022 ------------------//
//---------------------CICM - MUSIDANSE LABORATORY - PARIS 8 UNIVERSITY-----------------//
//--------------------------------------------------------------------------------------//
//
declare author "Alain Bonardi & Paul Goutmann";
declare licence "LGPLv3";
declare name "abc_poltocar";
//
process = library("abc.lib").abc_polar2cartesian;
|
https://raw.githubusercontent.com/jcelerier/abclib/0857a9dbe88eafece0772c5701a56d2552fc9a9b/abc/abc_poltocar.dsp
|
faust
|
--------------------------------------------------------------------------------------//
----------------------------------------abclib----------------------------------------//
-------------------------FAUST CODE AND UTILITIES FOR MIXED MUSIC---------------------//
-----------------------BY ALAIN BONARDI & PAUL GOUTMANN - 2019-2022 ------------------//
---------------------CICM - MUSIDANSE LABORATORY - PARIS 8 UNIVERSITY-----------------//
--------------------------------------------------------------------------------------//
|
declare author "Alain Bonardi & Paul Goutmann";
declare licence "LGPLv3";
declare name "abc_poltocar";
process = library("abc.lib").abc_polar2cartesian;
|
da4aa1137a36665fcda28ae90a8dc0a6e23907ffe8551333dc25d20c1711641b
|
jcelerier/abclib
|
abc_2d_syn_grain6.dsp
|
//--------------------------------------------------------------------------------------//
//----------------------------------------abclib----------------------------------------//
//
//-------------------------FAUST CODE AND UTILITIES FOR MIXED MUSIC---------------------//
//
//-----------------------BY ALAIN BONARDI & PAUL GOUTMANN - 2019-2022 ------------------//
//---------------------CICM - MUSIDANSE LABORATORY - PARIS 8 UNIVERSITY-----------------//
//--------------------------------------------------------------------------------------//
//
declare author "Alain Bonardi & Paul Goutmann";
declare licence "LGPLv3";
declare name "abc_2d_syn_grain6";
//
process = library("abc.lib").abc_2d_syn_grain_ui(13);
|
https://raw.githubusercontent.com/jcelerier/abclib/0857a9dbe88eafece0772c5701a56d2552fc9a9b/abc/abc_2d_syn_grain6.dsp
|
faust
|
--------------------------------------------------------------------------------------//
----------------------------------------abclib----------------------------------------//
-------------------------FAUST CODE AND UTILITIES FOR MIXED MUSIC---------------------//
-----------------------BY ALAIN BONARDI & PAUL GOUTMANN - 2019-2022 ------------------//
---------------------CICM - MUSIDANSE LABORATORY - PARIS 8 UNIVERSITY-----------------//
--------------------------------------------------------------------------------------//
|
declare author "Alain Bonardi & Paul Goutmann";
declare licence "LGPLv3";
declare name "abc_2d_syn_grain6";
process = library("abc.lib").abc_2d_syn_grain_ui(13);
|
c86334be0c40dcda54cb17b6282615847a49bc85c72ffb682a3149be540a039f
|
jcelerier/abclib
|
abc_linrandenv14.dsp
|
//--------------------------------------------------------------------------------------//
//----------------------------------------abclib----------------------------------------//
//
//-------------------------FAUST CODE AND UTILITIES FOR MIXED MUSIC---------------------//
//
//-----------------------BY ALAIN BONARDI & PAUL GOUTMANN - 2019-2022 ------------------//
//---------------------CICM - MUSIDANSE LABORATORY - PARIS 8 UNIVERSITY-----------------//
//--------------------------------------------------------------------------------------//
//
declare author "Alain Bonardi & Paul Goutmann";
declare licence "LGPLv3";
declare name "abc_linrandenv14";
//
process = library("abc.lib").abc_multilinrandenv_ui(14);
|
https://raw.githubusercontent.com/jcelerier/abclib/0857a9dbe88eafece0772c5701a56d2552fc9a9b/abc/abc_linrandenv14.dsp
|
faust
|
--------------------------------------------------------------------------------------//
----------------------------------------abclib----------------------------------------//
-------------------------FAUST CODE AND UTILITIES FOR MIXED MUSIC---------------------//
-----------------------BY ALAIN BONARDI & PAUL GOUTMANN - 2019-2022 ------------------//
---------------------CICM - MUSIDANSE LABORATORY - PARIS 8 UNIVERSITY-----------------//
--------------------------------------------------------------------------------------//
|
declare author "Alain Bonardi & Paul Goutmann";
declare licence "LGPLv3";
declare name "abc_linrandenv14";
process = library("abc.lib").abc_multilinrandenv_ui(14);
|
f8be99a7019f2e3cc06843d3e2ec62c6a27197e1ca4fe42b18c11d8dbbed649a
|
jcelerier/abclib
|
abc_substractsynth4.dsp
|
//--------------------------------------------------------------------------------------//
//----------------------------------------abclib----------------------------------------//
//
//-------------------------FAUST CODE AND UTILITIES FOR MIXED MUSIC---------------------//
//
//-----------------------BY ALAIN BONARDI & PAUL GOUTMANN - 2019-2022 ------------------//
//---------------------CICM - MUSIDANSE LABORATORY - PARIS 8 UNIVERSITY-----------------//
//--------------------------------------------------------------------------------------//
//
declare author "Alain Bonardi & Paul Goutmann";
declare licence "LGPLv3";
declare name "abc_substractsynth4";
//
process = library("abc.lib").abc_substractsynth_ui(4);
|
https://raw.githubusercontent.com/jcelerier/abclib/0857a9dbe88eafece0772c5701a56d2552fc9a9b/abc/abc_substractsynth4.dsp
|
faust
|
--------------------------------------------------------------------------------------//
----------------------------------------abclib----------------------------------------//
-------------------------FAUST CODE AND UTILITIES FOR MIXED MUSIC---------------------//
-----------------------BY ALAIN BONARDI & PAUL GOUTMANN - 2019-2022 ------------------//
---------------------CICM - MUSIDANSE LABORATORY - PARIS 8 UNIVERSITY-----------------//
--------------------------------------------------------------------------------------//
|
declare author "Alain Bonardi & Paul Goutmann";
declare licence "LGPLv3";
declare name "abc_substractsynth4";
process = library("abc.lib").abc_substractsynth_ui(4);
|
df7f958b7a45281b2d40623b1fc77714de203457677c154834e01b466046fb58
|
jcelerier/abclib
|
abc_2d_decoder2_5.dsp
|
//--------------------------------------------------------------------------------------//
//----------------------------------------abclib----------------------------------------//
//
//-------------------------FAUST CODE AND UTILITIES FOR MIXED MUSIC---------------------//
//
//-----------------------BY ALAIN BONARDI & PAUL GOUTMANN - 2019-2022 ------------------//
//---------------------CICM - MUSIDANSE LABORATORY - PARIS 8 UNIVERSITY-----------------//
//--------------------------------------------------------------------------------------//
//
declare author "Alain Bonardi & Paul Goutmann";
declare licence "LGPLv3";
declare name "abc_2d_decoder2_5";
//
process = library("abc.lib").abc_2d_decoder_ui(2, 5);
|
https://raw.githubusercontent.com/jcelerier/abclib/0857a9dbe88eafece0772c5701a56d2552fc9a9b/abc/abc_2d_decoder2_5.dsp
|
faust
|
--------------------------------------------------------------------------------------//
----------------------------------------abclib----------------------------------------//
-------------------------FAUST CODE AND UTILITIES FOR MIXED MUSIC---------------------//
-----------------------BY ALAIN BONARDI & PAUL GOUTMANN - 2019-2022 ------------------//
---------------------CICM - MUSIDANSE LABORATORY - PARIS 8 UNIVERSITY-----------------//
--------------------------------------------------------------------------------------//
|
declare author "Alain Bonardi & Paul Goutmann";
declare licence "LGPLv3";
declare name "abc_2d_decoder2_5";
process = library("abc.lib").abc_2d_decoder_ui(2, 5);
|
b5c884d81775815e48b25a8b15b9bcb0b7597d64898d4054067fbb14b4a4e1cb
|
jcelerier/abclib
|
abc_2d_map5_2.dsp
|
//--------------------------------------------------------------------------------------//
//----------------------------------------abclib----------------------------------------//
//
//-------------------------FAUST CODE AND UTILITIES FOR MIXED MUSIC---------------------//
//
//-----------------------BY ALAIN BONARDI & PAUL GOUTMANN - 2019-2022 ------------------//
//---------------------CICM - MUSIDANSE LABORATORY - PARIS 8 UNIVERSITY-----------------//
//--------------------------------------------------------------------------------------//
//
declare author "Alain Bonardi & Paul Goutmann";
declare licence "LGPLv3";
declare name "abc_2d_map5_2";
//
process = library("abc.lib").abc_2d_multiMap_ui(5, 2);
|
https://raw.githubusercontent.com/jcelerier/abclib/0857a9dbe88eafece0772c5701a56d2552fc9a9b/abc/abc_2d_map5_2.dsp
|
faust
|
--------------------------------------------------------------------------------------//
----------------------------------------abclib----------------------------------------//
-------------------------FAUST CODE AND UTILITIES FOR MIXED MUSIC---------------------//
-----------------------BY ALAIN BONARDI & PAUL GOUTMANN - 2019-2022 ------------------//
---------------------CICM - MUSIDANSE LABORATORY - PARIS 8 UNIVERSITY-----------------//
--------------------------------------------------------------------------------------//
|
declare author "Alain Bonardi & Paul Goutmann";
declare licence "LGPLv3";
declare name "abc_2d_map5_2";
process = library("abc.lib").abc_2d_multiMap_ui(5, 2);
|
31c0068c207a349e11490fec99acd85a4d10321ae0b1b303cb2fd11b05789203
|
jcelerier/abclib
|
abc_envfollower.dsp
|
//--------------------------------------------------------------------------------------//
//----------------------------------------abclib----------------------------------------//
//
//-------------------------FAUST CODE AND UTILITIES FOR MIXED MUSIC---------------------//
//
//-----------------------BY ALAIN BONARDI & PAUL GOUTMANN - 2019-2022 ------------------//
//---------------------CICM - MUSIDANSE LABORATORY - PARIS 8 UNIVERSITY-----------------//
//--------------------------------------------------------------------------------------//
//
declare author "Alain Bonardi & Paul Goutmann";
declare licence "LGPLv3";
declare name "abc_envfollower";
//
process = library("abc.lib").abc_envFollower_ui;
|
https://raw.githubusercontent.com/jcelerier/abclib/0857a9dbe88eafece0772c5701a56d2552fc9a9b/abc/abc_envfollower.dsp
|
faust
|
--------------------------------------------------------------------------------------//
----------------------------------------abclib----------------------------------------//
-------------------------FAUST CODE AND UTILITIES FOR MIXED MUSIC---------------------//
-----------------------BY ALAIN BONARDI & PAUL GOUTMANN - 2019-2022 ------------------//
---------------------CICM - MUSIDANSE LABORATORY - PARIS 8 UNIVERSITY-----------------//
--------------------------------------------------------------------------------------//
|
declare author "Alain Bonardi & Paul Goutmann";
declare licence "LGPLv3";
declare name "abc_envfollower";
process = library("abc.lib").abc_envFollower_ui;
|
f450a309fb275175b6eb11788fd8009a00c66ca631b80b705e4c01b1637194c9
|
jcelerier/abclib
|
abc_matrix5.dsp
|
//--------------------------------------------------------------------------------------//
//----------------------------------------abclib----------------------------------------//
//
//-------------------------FAUST CODE AND UTILITIES FOR MIXED MUSIC---------------------//
//
//-----------------------BY ALAIN BONARDI & PAUL GOUTMANN - 2019-2022 ------------------//
//---------------------CICM - MUSIDANSE LABORATORY - PARIS 8 UNIVERSITY-----------------//
//--------------------------------------------------------------------------------------//
//
declare author "Alain Bonardi & Paul Goutmann";
declare licence "LGPLv3";
declare name "abc_matrix5";
//
process = library("abc.lib").abc_matrix_ui(5, 5);
|
https://raw.githubusercontent.com/jcelerier/abclib/0857a9dbe88eafece0772c5701a56d2552fc9a9b/abc/abc_matrix5.dsp
|
faust
|
--------------------------------------------------------------------------------------//
----------------------------------------abclib----------------------------------------//
-------------------------FAUST CODE AND UTILITIES FOR MIXED MUSIC---------------------//
-----------------------BY ALAIN BONARDI & PAUL GOUTMANN - 2019-2022 ------------------//
---------------------CICM - MUSIDANSE LABORATORY - PARIS 8 UNIVERSITY-----------------//
--------------------------------------------------------------------------------------//
|
declare author "Alain Bonardi & Paul Goutmann";
declare licence "LGPLv3";
declare name "abc_matrix5";
process = library("abc.lib").abc_matrix_ui(5, 5);
|
92997821bebf437893d1a4199baef60a5d98900147b995c676cdc730302c4d24
|
jcelerier/abclib
|
abc_2d_vbap5.dsp
|
//--------------------------------------------------------------------------------------//
//----------------------------------------abclib----------------------------------------//
//
//-------------------------FAUST CODE AND UTILITIES FOR MIXED MUSIC---------------------//
//
//-----------------------BY ALAIN BONARDI & PAUL GOUTMANN - 2019-2022 ------------------//
//---------------------CICM - MUSIDANSE LABORATORY - PARIS 8 UNIVERSITY-----------------//
//--------------------------------------------------------------------------------------//
//
declare author "Alain Bonardi & Paul Goutmann";
declare licence "LGPLv3";
declare name "abc_2d_vbap5";
//
process = library("abc.lib").abc_2d_vbap_ui(5);
|
https://raw.githubusercontent.com/jcelerier/abclib/0857a9dbe88eafece0772c5701a56d2552fc9a9b/abc/abc_2d_vbap5.dsp
|
faust
|
--------------------------------------------------------------------------------------//
----------------------------------------abclib----------------------------------------//
-------------------------FAUST CODE AND UTILITIES FOR MIXED MUSIC---------------------//
-----------------------BY ALAIN BONARDI & PAUL GOUTMANN - 2019-2022 ------------------//
---------------------CICM - MUSIDANSE LABORATORY - PARIS 8 UNIVERSITY-----------------//
--------------------------------------------------------------------------------------//
|
declare author "Alain Bonardi & Paul Goutmann";
declare licence "LGPLv3";
declare name "abc_2d_vbap5";
process = library("abc.lib").abc_2d_vbap_ui(5);
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.