_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
|
---|---|---|---|---|---|---|---|
30382d928ee98dff18198121dde5790a28d90e4de0006b122074f6bcf5f3a3cf | webaudiomodules/wam-examples | StonePhaserStereo.dsp | declare name "Stone Phaser";
declare author "Jean Pierre Cimalando";
declare version "1.2.2";
declare license "CC0-1.0";
// Référence :
// Kiiski, R., Esqueda, F., & Välimäki, V. (2016).
// Time-variant gray-box modeling of a phaser pedal.
// In 19th International Conference on Digital Audio Effects (DAFx-16).
import("stdfaust.lib");
/////////////
// Control //
/////////////
bypass = checkbox("[0] Bypass [symbol:bypass]");
color = checkbox("[1] Color [symbol:color]");
lf = hslider("[2] LFO [symbol:lfo_frequency] [unit:Hz] [scale:log] [style:knob]", 0.2, 0.01, 5., 0.01) : tsmooth;
fb = hslider("[3] Feedback [symbol:feedback_depth] [unit:%] [integer] [style:knob]", 75, 0, 99, 1) : *(0.01) : tsmooth;
fbHf = hslider("[4] Lo-cut [abbrev:Fb bass cut] [symbol:feedback_hpf_cutoff] [unit:Hz] [scale:log] [style:knob]", 500., 10., 5000., 1.) : tsmooth;
dw = hslider("[5] Mix [symbol:mix] [unit:%] [integer] [style:knob]", 50, 0, 100, 1) : *(0.01);
ph = hslider("[6] Stereo phase [symbol:stereo_phase] [unit:deg] [integer] [style:knob]", 0., -180., +180., 1.) : /(360.) : +(1.) : tsmooth;
w = sin(dw*(ma.PI/2)) : tsmooth;
d = cos(dw*(ma.PI/2)) : tsmooth;
//////////////////////////
// All-pass filter unit //
//////////////////////////
allpass1(f) = fi.iir((a,1.),(a)) with {
a = -1.+2.*ma.PI*f/ma.SR;
};
//////////////////////
// High-pass filter //
//////////////////////
highpass1(f) = fi.iir((0.5*(1.+p), -0.5*(1.+p)), (-p)) with {
p = exp(-2.*ma.PI*f/ma.SR);
};
//////////////////////
// Low-pass filter //
//////////////////////
lowpass1(f) = fi.iir((1.-p), (-p)) with {
p = exp(-2.*ma.PI*f/ma.SR);
};
////////////////////////////////////////////
// Smooth filter with fixed time constant //
////////////////////////////////////////////
tsmooth = si.smooth(ba.tau2pole(t)) with { t = 100e-3; };
//////////
// LFOs //
//////////
lfoTriangle(pos, y1, y2) = val*(y2-y1)+y1 with {
val = 1.-abs(2.*pos-1.);
};
lfoRectifiedSine(pos, y1, y2) = val*(y2-y1)+y1 with {
val = rsin(pos);
};
lfoAnalogTriangle(roundness, pos, y1, y2) = val*(y2-y1)+y1 with {
val = sineTri(roundness, pos);
};
lfoExponentialTriangle(roundness, slopeUp, slopeDown, pos, y1, y2) = val*(y2-y1)+y1 with {
val = expTri(roundness, slopeUp, slopeDown, pos);
};
////////////
// Phaser //
////////////
mono_phaser(x, lfo_pos) = (fadeBypass * x) + (1. - fadeBypass) * (dry + wet) with {
dry = x*d;
wet = (x <: highpass1(33.0) : (+:a1:a2:a3:a4)~feedback)*w;
fadeBypass = bypass : tsmooth;
colorFb = ba.if(color, fb, 0.1*fb) : tsmooth;
feedback = highpass1(fbHf) : *(colorFb);
lfoLoF = ba.if(color, ba.hz2midikey(80.), ba.hz2midikey(300.)) : tsmooth;
lfoHiF = ba.if(color, ba.hz2midikey(2200.), ba.hz2midikey(6000.)) : tsmooth;
modFreq = ba.midikey2hz(lfoAnalogTriangle(0.95, lfo_pos, lfoLoF, lfoHiF));
//modFreq = ba.midikey2hz(lfoExponentialTriangle(128., 0.6, 0.9, lfo_pos, lfoLoF, lfoHiF));
a1 = allpass1(modFreq);
a2 = allpass1(modFreq);
a3 = allpass1(modFreq);
a4 = allpass1(modFreq);
};
stereo_phaser(x1, x2, lfo_pos) = mono_phaser(x1, lfo_pos), mono_phaser(x2, lfo_pos2) with {
lfo_pos2 = wrap(lfo_pos + ph);
wrap(p) = p-float(int(p));
};
/////////////
// Utility //
/////////////
lerp(tab, pos, size) = (tab(i1), tab(i2)) : si.interpolate(mu) with {
fracIndex = pos*size;
i1 = int(fracIndex);
i2 = (i1+1)%size;
mu = fracIndex-float(i1);
};
rsin(pos) = lerp(tab, pos, ts) with {
ts = 128;
tab(i) = rdtable(ts, abs(os.sinwaveform(ts)), i);
};
sineTriWaveform(roundness, tablesize) = 1.-sin(2.*ba.if(x<0.5, x, 1.-x)*asin(a))/a with {
a = max(0., min(1., roundness * 0.5 + 0.5));
x = wrap(float(ba.time)/float(tablesize));
wrap(p) = p-float(int(p));
};
sineTri(roundness, pos) = lerp(tab, pos, ts) with {
ts = 128;
tab(i) = rdtable(ts, sineTriWaveform(roundness, ts), i);
};
/*
# Gnuplot code of the sineTri function
sineTri(r, x)=sineTri_(r, wrap(x+0.5))
sineTri_(r, x)=1.-sin(((x<0.5)?x:(1.-x))*2.*asin(r))/r
wrap(x)=x-floor(x)
set xrange [0:1]
plot(sineTri(0.99, x))
*/
expTriWaveform(roundness, slopeUp, slopeDown, tablesize) = ba.if(x<0.5, expUp, expDown) with {
normExp(a, b, x) = (1.-pow(a, -b*x))/(1.-pow(a, -b));
expUp = 1.-normExp(roundness, slopeUp, (-x+0.5)*2);
expDown = 1.-normExp(roundness, slopeDown, (x-0.5)*2);
x = wrap(float(ba.time)/float(tablesize));
wrap(p) = p-float(int(p));
};
expTri(roundness, slopeUp, slopeDown, pos) = lerp(tab, pos, ts) with {
ts = 128;
tab(i) = rdtable(ts, expTriWaveform(roundness, slopeUp, slopeDown, ts), i);
};
/*
# Gnuplot code of the expTri function
roundness=128
slopeUp = 0.6
slopeDown = 0.9
normExp(a,b,x)=(1.-a**-(b*x))/(1.-a**-b)
set xrange [0:1]
plot (x<0.5) ? (1.-normExp(roundness, slopeUp, (-x+0.5)*2)) : (1.-normExp(roundness, slopeDown, (x-0.5)*2))
*/
//////////
// Main //
//////////
process_mono(x) = mono_phaser(x, os.lf_sawpos(lf));
process_stereo(x1, x2) = stereo_phaser(x1, x2, os.lf_sawpos(lf));
process = process_stereo; | https://raw.githubusercontent.com/webaudiomodules/wam-examples/ebf5ed23d7543411901b24f12c48164fac9e78bf/packages/StonePhaserStereo/StonePhaserStereo.dsp | faust | Référence :
Kiiski, R., Esqueda, F., & Välimäki, V. (2016).
Time-variant gray-box modeling of a phaser pedal.
In 19th International Conference on Digital Audio Effects (DAFx-16).
///////////
Control //
///////////
////////////////////////
All-pass filter unit //
////////////////////////
////////////////////
High-pass filter //
////////////////////
////////////////////
Low-pass filter //
////////////////////
//////////////////////////////////////////
Smooth filter with fixed time constant //
//////////////////////////////////////////
////////
LFOs //
////////
//////////
Phaser //
//////////
modFreq = ba.midikey2hz(lfoExponentialTriangle(128., 0.6, 0.9, lfo_pos, lfoLoF, lfoHiF));
///////////
Utility //
///////////
# Gnuplot code of the sineTri function
sineTri(r, x)=sineTri_(r, wrap(x+0.5))
sineTri_(r, x)=1.-sin(((x<0.5)?x:(1.-x))*2.*asin(r))/r
wrap(x)=x-floor(x)
set xrange [0:1]
plot(sineTri(0.99, x))
# Gnuplot code of the expTri function
roundness=128
slopeUp = 0.6
slopeDown = 0.9
normExp(a,b,x)=(1.-a**-(b*x))/(1.-a**-b)
set xrange [0:1]
plot (x<0.5) ? (1.-normExp(roundness, slopeUp, (-x+0.5)*2)) : (1.-normExp(roundness, slopeDown, (x-0.5)*2))
////////
Main //
//////// | declare name "Stone Phaser";
declare author "Jean Pierre Cimalando";
declare version "1.2.2";
declare license "CC0-1.0";
import("stdfaust.lib");
bypass = checkbox("[0] Bypass [symbol:bypass]");
color = checkbox("[1] Color [symbol:color]");
lf = hslider("[2] LFO [symbol:lfo_frequency] [unit:Hz] [scale:log] [style:knob]", 0.2, 0.01, 5., 0.01) : tsmooth;
fb = hslider("[3] Feedback [symbol:feedback_depth] [unit:%] [integer] [style:knob]", 75, 0, 99, 1) : *(0.01) : tsmooth;
fbHf = hslider("[4] Lo-cut [abbrev:Fb bass cut] [symbol:feedback_hpf_cutoff] [unit:Hz] [scale:log] [style:knob]", 500., 10., 5000., 1.) : tsmooth;
dw = hslider("[5] Mix [symbol:mix] [unit:%] [integer] [style:knob]", 50, 0, 100, 1) : *(0.01);
ph = hslider("[6] Stereo phase [symbol:stereo_phase] [unit:deg] [integer] [style:knob]", 0., -180., +180., 1.) : /(360.) : +(1.) : tsmooth;
w = sin(dw*(ma.PI/2)) : tsmooth;
d = cos(dw*(ma.PI/2)) : tsmooth;
allpass1(f) = fi.iir((a,1.),(a)) with {
a = -1.+2.*ma.PI*f/ma.SR;
};
highpass1(f) = fi.iir((0.5*(1.+p), -0.5*(1.+p)), (-p)) with {
p = exp(-2.*ma.PI*f/ma.SR);
};
lowpass1(f) = fi.iir((1.-p), (-p)) with {
p = exp(-2.*ma.PI*f/ma.SR);
};
tsmooth = si.smooth(ba.tau2pole(t)) with { t = 100e-3; };
lfoTriangle(pos, y1, y2) = val*(y2-y1)+y1 with {
val = 1.-abs(2.*pos-1.);
};
lfoRectifiedSine(pos, y1, y2) = val*(y2-y1)+y1 with {
val = rsin(pos);
};
lfoAnalogTriangle(roundness, pos, y1, y2) = val*(y2-y1)+y1 with {
val = sineTri(roundness, pos);
};
lfoExponentialTriangle(roundness, slopeUp, slopeDown, pos, y1, y2) = val*(y2-y1)+y1 with {
val = expTri(roundness, slopeUp, slopeDown, pos);
};
mono_phaser(x, lfo_pos) = (fadeBypass * x) + (1. - fadeBypass) * (dry + wet) with {
dry = x*d;
wet = (x <: highpass1(33.0) : (+:a1:a2:a3:a4)~feedback)*w;
fadeBypass = bypass : tsmooth;
colorFb = ba.if(color, fb, 0.1*fb) : tsmooth;
feedback = highpass1(fbHf) : *(colorFb);
lfoLoF = ba.if(color, ba.hz2midikey(80.), ba.hz2midikey(300.)) : tsmooth;
lfoHiF = ba.if(color, ba.hz2midikey(2200.), ba.hz2midikey(6000.)) : tsmooth;
modFreq = ba.midikey2hz(lfoAnalogTriangle(0.95, lfo_pos, lfoLoF, lfoHiF));
a1 = allpass1(modFreq);
a2 = allpass1(modFreq);
a3 = allpass1(modFreq);
a4 = allpass1(modFreq);
};
stereo_phaser(x1, x2, lfo_pos) = mono_phaser(x1, lfo_pos), mono_phaser(x2, lfo_pos2) with {
lfo_pos2 = wrap(lfo_pos + ph);
wrap(p) = p-float(int(p));
};
lerp(tab, pos, size) = (tab(i1), tab(i2)) : si.interpolate(mu) with {
fracIndex = pos*size;
i1 = int(fracIndex);
i2 = (i1+1)%size;
mu = fracIndex-float(i1);
};
rsin(pos) = lerp(tab, pos, ts) with {
ts = 128;
tab(i) = rdtable(ts, abs(os.sinwaveform(ts)), i);
};
sineTriWaveform(roundness, tablesize) = 1.-sin(2.*ba.if(x<0.5, x, 1.-x)*asin(a))/a with {
a = max(0., min(1., roundness * 0.5 + 0.5));
x = wrap(float(ba.time)/float(tablesize));
wrap(p) = p-float(int(p));
};
sineTri(roundness, pos) = lerp(tab, pos, ts) with {
ts = 128;
tab(i) = rdtable(ts, sineTriWaveform(roundness, ts), i);
};
expTriWaveform(roundness, slopeUp, slopeDown, tablesize) = ba.if(x<0.5, expUp, expDown) with {
normExp(a, b, x) = (1.-pow(a, -b*x))/(1.-pow(a, -b));
expUp = 1.-normExp(roundness, slopeUp, (-x+0.5)*2);
expDown = 1.-normExp(roundness, slopeDown, (x-0.5)*2);
x = wrap(float(ba.time)/float(tablesize));
wrap(p) = p-float(int(p));
};
expTri(roundness, slopeUp, slopeDown, pos) = lerp(tab, pos, ts) with {
ts = 128;
tab(i) = rdtable(ts, expTriWaveform(roundness, slopeUp, slopeDown, ts), i);
};
process_mono(x) = mono_phaser(x, os.lf_sawpos(lf));
process_stereo(x1, x2) = stereo_phaser(x1, x2, os.lf_sawpos(lf));
process = process_stereo; |
45dc2b7d7b801f310cdca1bda2fd6d3e808cf0bb46174cdc4d3534082b09589c | inria-emeraude/syfala | karplus.dsp | import("stdfaust.lib");
// Karplus Strong (1/2)
process = ba.pulse(10000) :
+ ~ transformation;
transformation = @(hslider("delay", 128, 0, 200, 1)) : moyenne : *(hslider("gain", 0.98, -0.98, 0.98, 0.01));
moyenne(x) = (x+x')/2; | https://raw.githubusercontent.com/inria-emeraude/syfala/95ed6765d73520362f6a1ad35e4a3b2a5e16fbc9/examples/karplus.dsp | faust | Karplus Strong (1/2) | import("stdfaust.lib");
process = ba.pulse(10000) :
+ ~ transformation;
transformation = @(hslider("delay", 128, 0, 200, 1)) : moyenne : *(hslider("gain", 0.98, -0.98, 0.98, 0.01));
moyenne(x) = (x+x')/2; |
a5b21c7eaffce9511c212682d32ffbd68c1bb02c1b24b326f04f9ecf3c7789f1 | inria-emeraude/syfala | karplusTrig.dsp | import("stdfaust.lib");
// Karplus Strong (1/2)
process = (button("gate")'==0)&(button("gate")==1) :
+ ~ transformation;
transformation = @(hslider("delay", 128, 0, 200, 1)) : moyenne : *(hslider("gain", 0.98, -0.98, 0.98, 0.01));
moyenne(x) = (x+x')/2;
| https://raw.githubusercontent.com/inria-emeraude/syfala/95ed6765d73520362f6a1ad35e4a3b2a5e16fbc9/examples/karplusTrig.dsp | faust | Karplus Strong (1/2) | import("stdfaust.lib");
process = (button("gate")'==0)&(button("gate")==1) :
+ ~ transformation;
transformation = @(hslider("delay", 128, 0, 200, 1)) : moyenne : *(hslider("gain", 0.98, -0.98, 0.98, 0.01));
moyenne(x) = (x+x')/2;
|
82f06fc14f00f9137fb05d79d291d22dff89a9efc955a2f3881b938e9af97e72 | inria-emeraude/syfala | sinewave-biquad-inlined.dsp | import("stdfaust.lib");
freq = hslider("freq",440,50,1000,0.01);
nlf2(f,r,x) = ((_<:_,_),(_<:_,_) : (*(s),*(c),*(c),*(0-s)) :>
(*(r),+(x))) ~ cross
with {
th = 2*ma.PI*f/ma.SR;
c = cos(th);
s = sin(th);
cross = _,_ <: !,_,_,!;
};
impulse = 1-1';
process = impulse : nlf2(freq,1) : !,_ <: _,_;
| https://raw.githubusercontent.com/inria-emeraude/syfala/95ed6765d73520362f6a1ad35e4a3b2a5e16fbc9/examples/sinewave-biquad-inlined.dsp | faust | import("stdfaust.lib");
freq = hslider("freq",440,50,1000,0.01);
nlf2(f,r,x) = ((_<:_,_),(_<:_,_) : (*(s),*(c),*(c),*(0-s)) :>
(*(r),+(x))) ~ cross
with {
th = 2*ma.PI*f/ma.SR;
c = cos(th);
s = sin(th);
cross = _,_ <: !,_,_,!;
};
impulse = 1-1';
process = impulse : nlf2(freq,1) : !,_ <: _,_;
|
|
f5e6e3b6131c4c9a0d49677dacbab7968af5d27defa6d1c20b45f2d54934268d | inria-emeraude/syfala | sinewave-biquad-inlined.dsp | import("stdfaust.lib");
freq = hslider("freq [knob:1]",440,50,1000,0.01);
nlf2(f,r,x) = ((_<:_,_),(_<:_,_) :
(*(s),*(c),*(c),*(0-s)) :>
(*(r),+(x))) ~ cross
with {
th = 2*ma.PI*f/ma.SR;
c = cos(th);
s = sin(th);
cross = _,_ <: !,_,_,!;
};
impulse = 1-1';
process = impulse : nlf2(freq,1) : !,_ <: _,_;
| https://raw.githubusercontent.com/inria-emeraude/syfala/95ed6765d73520362f6a1ad35e4a3b2a5e16fbc9/doc/syfala-getting-started-src/fig/sinewave-biquad-inlined.dsp | faust | import("stdfaust.lib");
freq = hslider("freq [knob:1]",440,50,1000,0.01);
nlf2(f,r,x) = ((_<:_,_),(_<:_,_) :
(*(s),*(c),*(c),*(0-s)) :>
(*(r),+(x))) ~ cross
with {
th = 2*ma.PI*f/ma.SR;
c = cos(th);
s = sin(th);
cross = _,_ <: !,_,_,!;
};
impulse = 1-1';
process = impulse : nlf2(freq,1) : !,_ <: _,_;
|
|
560b7e5ce9b9afa53e8c67d5542de4c486bcf3209204d7d465bd029734d94510 | inria-emeraude/syfala | sinewave-biquad-inlined-trigger.dsp | import("stdfaust.lib");
freq = hslider("freq",440,50,1000,0.01);
nlf2(f,r,x) = ((_<:_,_),(_<:_,_) : (*(s),*(c),*(c),*(0-s)) :>
(*(r),+(x))) ~ cross
with {
th = 2*ma.PI*f/ma.SR;
c = cos(th);
s = sin(th);
cross = _,_ <: !,_,_,!;
};
impulse = (button("gate")'==0)&(button("gate")==1);
process = impulse : nlf2(freq,1) : !,_ <: _,_;
| https://raw.githubusercontent.com/inria-emeraude/syfala/95ed6765d73520362f6a1ad35e4a3b2a5e16fbc9/examples/sinewave-biquad-inlined-trigger.dsp | faust | import("stdfaust.lib");
freq = hslider("freq",440,50,1000,0.01);
nlf2(f,r,x) = ((_<:_,_),(_<:_,_) : (*(s),*(c),*(c),*(0-s)) :>
(*(r),+(x))) ~ cross
with {
th = 2*ma.PI*f/ma.SR;
c = cos(th);
s = sin(th);
cross = _,_ <: !,_,_,!;
};
impulse = (button("gate")'==0)&(button("gate")==1);
process = impulse : nlf2(freq,1) : !,_ <: _,_;
|
|
e1b116687173b7bd6895e3f289643d0dc9ce3687567b7702f7bd29c025fe13ba | inria-emeraude/syfala | multichannel_test.dsp | import("stdfaust.lib");
NChannels = 10;
vol = hslider("volume [unit:dB]", -20, -96, 0, 0.1) : ba.db2linear ;
t = checkbox("on");
speed = hslider("speed",48000,1,48000,1);
process = _~(+(1)%speed) : _==0 : +~%(NChannels) <: _,(+(60) : ba.pianokey2hz : os.oscrs*vol) <: par(i,NChannels,select2(i==_,0,_));
| https://raw.githubusercontent.com/inria-emeraude/syfala/95ed6765d73520362f6a1ad35e4a3b2a5e16fbc9/examples/multichannel_test.dsp | faust | import("stdfaust.lib");
NChannels = 10;
vol = hslider("volume [unit:dB]", -20, -96, 0, 0.1) : ba.db2linear ;
t = checkbox("on");
speed = hslider("speed",48000,1,48000,1);
process = _~(+(1)%speed) : _==0 : +~%(NChannels) <: _,(+(60) : ba.pianokey2hz : os.oscrs*vol) <: par(i,NChannels,select2(i==_,0,_));
|
|
45b1fc39277fed81ffb175fe722d1eeadf70b53100f76c3d683bc10168d1510b | inria-emeraude/syfala | bypass_sine.dsp | import("stdfaust.lib");
in_out = 32;
freqs = par(i,in_out,hgroup("%i",os.osc(hslider("Frequency",10*(i+1),5,3000,100))*hslider("Volume",1,0,10,1)));
process = par(i,in_out,_),freqs:ro.interleave(in_out,2):par(i,in_out,(_,_):>_);
| https://raw.githubusercontent.com/inria-emeraude/syfala/7bbb09ecb912c9a66bcb85ebe35590e2b46e51d5/examples/bypass_sine.dsp | faust | import("stdfaust.lib");
in_out = 32;
freqs = par(i,in_out,hgroup("%i",os.osc(hslider("Frequency",10*(i+1),5,3000,100))*hslider("Volume",1,0,10,1)));
process = par(i,in_out,_),freqs:ro.interleave(in_out,2):par(i,in_out,(_,_):>_);
|
|
36d177ec8c0cc16af9011ed915e7652e6492c674e2704c8e4cbe6069c7b330a6 | inria-emeraude/syfala | karplusManySlider.dsp | import("stdfaust.lib");
// Karplus Strong (1/2)
process = (button("gate")'==0)&(button("gate")==1) :
+ ~ transformation;
transformation = @(hslider("delay", 128, 0, 200, 1)) : moyenne : *(hslider("gain", 0.98, -0.98, 0.98, 0.01)):@(hslider("delay2", 128, 0, 200, 1)):@(hslider("delay3", 128, 0, 200, 1)):@(hslider("delay4", 128, 0, 200, 1));
moyenne(x) = (x+x')/2;
| https://raw.githubusercontent.com/inria-emeraude/syfala/95ed6765d73520362f6a1ad35e4a3b2a5e16fbc9/examples/old/karplusManySlider.dsp | faust | Karplus Strong (1/2) | import("stdfaust.lib");
process = (button("gate")'==0)&(button("gate")==1) :
+ ~ transformation;
transformation = @(hslider("delay", 128, 0, 200, 1)) : moyenne : *(hslider("gain", 0.98, -0.98, 0.98, 0.01)):@(hslider("delay2", 128, 0, 200, 1)):@(hslider("delay3", 128, 0, 200, 1)):@(hslider("delay4", 128, 0, 200, 1));
moyenne(x) = (x+x')/2;
|
f7afa4b49b16d36f5efa074a052de515d55eeec84fbb9943abea1b78b0f22256 | inria-emeraude/syfala | oscsincos.dsp | //-----------------------------------------------
// Sin/cos Oscillator
//-----------------------------------------------
import("stdfaust.lib");
vol = hslider("volume [unit:dB]", 0, -96, 0, 0.1) : si.smoo : ba.db2linear ;
freq = hslider("freq [unit:Hz]", 1000, 20, 24000, 1);
select = nentry("Selector",0,0,1,1) : int;
process = (os.oscrs(freq) * vol),(os.oscrc(freq) * vol): select2(select)<:_,_ ;
| https://raw.githubusercontent.com/inria-emeraude/syfala/95ed6765d73520362f6a1ad35e4a3b2a5e16fbc9/examples/oscsincos.dsp | faust | -----------------------------------------------
Sin/cos Oscillator
----------------------------------------------- |
import("stdfaust.lib");
vol = hslider("volume [unit:dB]", 0, -96, 0, 0.1) : si.smoo : ba.db2linear ;
freq = hslider("freq [unit:Hz]", 1000, 20, 24000, 1);
select = nentry("Selector",0,0,1,1) : int;
process = (os.oscrs(freq) * vol),(os.oscrc(freq) * vol): select2(select)<:_,_ ;
|
e0ad244a45a48c0a3b6148d87d13df95e71d1fed8201571907b4493501acaaba | inria-emeraude/syfala | circle.dsp | import("stdfaust.lib");
vol = hslider("volume [unit:dB]", -20, -96, 0, 0.1) : ba.db2linear ;
t = checkbox("on");
speed = hslider("speed",48000,1,48000,1);
phasor(freq) = (+(freq/ma.SR) ~ ma.frac);
osc(freq) = sin(phasor(freq)*2*ma.PI);
process = (_~(+(1)%speed) : _==0 : +~%(32) <: _,(+(50) : ba.pianokey2hz : osc*vol) <: par(i,32,select2(i==_,0,_)));
| https://raw.githubusercontent.com/inria-emeraude/syfala/7bbb09ecb912c9a66bcb85ebe35590e2b46e51d5/examples/wfs/circle.dsp | faust | import("stdfaust.lib");
vol = hslider("volume [unit:dB]", -20, -96, 0, 0.1) : ba.db2linear ;
t = checkbox("on");
speed = hslider("speed",48000,1,48000,1);
phasor(freq) = (+(freq/ma.SR) ~ ma.frac);
osc(freq) = sin(phasor(freq)*2*ma.PI);
process = (_~(+(1)%speed) : _==0 : +~%(32) <: _,(+(50) : ba.pianokey2hz : osc*vol) <: par(i,32,select2(i==_,0,_)));
|
|
873623a37eedfb1e89148e4d19ce96db4439d4d88f2620a3b1629f3b74c59eac | inria-emeraude/syfala | fm.dsp | import("stdfaust.lib");
osc(amp,freq) = cos(phasor(freq)*2*ma.PI)*amp
with{
phasor(f) = (+(delta) ~ ma.frac)'
with{
delta = f/ma.SR;
};
};
fm(a,fc,fm0,fm1,z0,z1) = car
with{
mod0 = fm1 + osc(z0*fm0,fm0);
mod1 = fc + osc(z1*mod0,mod0);
car = osc(a,mod1);
};
process = fm(1,440,440,440,3,2);
| https://raw.githubusercontent.com/inria-emeraude/syfala/95ed6765d73520362f6a1ad35e4a3b2a5e16fbc9/examples/fm.dsp | faust | import("stdfaust.lib");
osc(amp,freq) = cos(phasor(freq)*2*ma.PI)*amp
with{
phasor(f) = (+(delta) ~ ma.frac)'
with{
delta = f/ma.SR;
};
};
fm(a,fc,fm0,fm1,z0,z1) = car
with{
mod0 = fm1 + osc(z0*fm0,fm0);
mod1 = fc + osc(z1*mod0,mod0);
car = osc(a,mod1);
};
process = fm(1,440,440,440,3,2);
|
|
5bb06a829bfafc30982ae0501f5135e958299cd7d3722c5b2d59a327ce9fc22e | inria-emeraude/syfala | fast-demo.dsp | import("stdfaust.lib");
process = trigger : + ~ transformation: _ * vol * (modulation+1) <:_,_;
transformation = @(hslider("delay", 128, 0, 200, 1)) : moyenne : *(hslider("gain", 0.999, -0.98, 0.999, 0.01));
modulation=os.oscrs(freq)*rate/100;
moyenne(x) = (x+x')/2;
vol = hslider("volume [unit:dB]", 0, -96, 0, 0.1) : si.smoo : ba.db2linear ;
freq = hslider("freq [unit:Hz]", 2, 0, 10, 1);
rate = hslider("modulation rate [unit:%]", 50, 0, 100, 1);
trigger = (button("gate")'==0)&(button("gate")==1);
| https://raw.githubusercontent.com/inria-emeraude/syfala/95ed6765d73520362f6a1ad35e4a3b2a5e16fbc9/examples/fast-demo.dsp | faust | import("stdfaust.lib");
process = trigger : + ~ transformation: _ * vol * (modulation+1) <:_,_;
transformation = @(hslider("delay", 128, 0, 200, 1)) : moyenne : *(hslider("gain", 0.999, -0.98, 0.999, 0.01));
modulation=os.oscrs(freq)*rate/100;
moyenne(x) = (x+x')/2;
vol = hslider("volume [unit:dB]", 0, -96, 0, 0.1) : si.smoo : ba.db2linear ;
freq = hslider("freq [unit:Hz]", 2, 0, 10, 1);
rate = hslider("modulation rate [unit:%]", 50, 0, 100, 1);
trigger = (button("gate")'==0)&(button("gate")==1);
|
|
918351ad5ac84fcd6a26132befa980d340ebdf4ff3b83bff72becea0ddfdd001 | inria-emeraude/syfala | sinewave-biquad-inlined-440-v5.1.dsp | import("stdfaust.lib");
freq = 440;
gate=button("gate");
delay=hslider("delay", 128, 0, 200, 1);
gain=hslider("gain", 0.98, -0.98, 0.98, 0.01);
nlf2(f,r,x) = ((_<:_,_),(_<:_,_+(cond2*delay*gain)) : (*(cond*s),*(c),*(c),*(0-s)) :>
(*(r),+(x))) ~ cross
with {
cond = (gate==1)|(gate==0);//|(delay==128) | (gain = 0.98);
cond2 = (gate==1)&(gate==0);//|(delay==128) | (gain = 0.98);
//
//th = 2*ma.PI*f/ma.SR;
// with ma.SR=48000
th = 5.75958653158129e-02 * cond;
//c = cos(th);
c = 9.98341816614028e-01;
//s = sin(th);
s= 5.75640269595673e-02;
cross = _,_ <: !,_,_,!;
};
impulse = 1-1';
process = impulse : nlf2(freq,1) : !,_ <: _,_;
| https://raw.githubusercontent.com/inria-emeraude/syfala/95ed6765d73520362f6a1ad35e4a3b2a5e16fbc9/examples/sinewave-biquad-inlined-440-v5.1.dsp | faust | |(delay==128) | (gain = 0.98);
|(delay==128) | (gain = 0.98);
th = 2*ma.PI*f/ma.SR;
with ma.SR=48000
c = cos(th);
s = sin(th); | import("stdfaust.lib");
freq = 440;
gate=button("gate");
delay=hslider("delay", 128, 0, 200, 1);
gain=hslider("gain", 0.98, -0.98, 0.98, 0.01);
nlf2(f,r,x) = ((_<:_,_),(_<:_,_+(cond2*delay*gain)) : (*(cond*s),*(c),*(c),*(0-s)) :>
(*(r),+(x))) ~ cross
with {
th = 5.75958653158129e-02 * cond;
c = 9.98341816614028e-01;
s= 5.75640269595673e-02;
cross = _,_ <: !,_,_,!;
};
impulse = 1-1';
process = impulse : nlf2(freq,1) : !,_ <: _,_;
|
9309e5d171ad2cd016f311ef0e5cca530e57b02f35da1e1eab663a94be135dd7 | inria-emeraude/syfala | pinknoise-channel-tester-stereo-reduct.dsp | import("stdfaust.lib");
// number of output channels
nchannels = 8;
length = 500;
// max-like gate
// note: if n == 0, gate is closed (which is not the case with ba.selectoutn) */
gate(o,n,s) = par(i,o, s*((n!=0)&(n==i+1)));
counter(t) = (t > mem(t)) : (+ : *(1)) ~ _;
ms2samples(ms) = ms/1000*ma.SR;
pn = no.pink_noise * 0.25;
nsamples = ms2samples(length);
// we count from 0 to 2nsamples
// if <= nsamples, signal passes
// otherwise we output 0
phase = ba.sweep(1, nsamples*2);
burst = phase <= nsamples;
// we increment channel index whenever sample counter reaches nsamples-1
// we wrap it around nchannels and add the offset
index = counter(burst) % nchannels;
process = gate(nchannels, index*burst, pn) :> _,_;
| https://raw.githubusercontent.com/inria-emeraude/syfala/7bbb09ecb912c9a66bcb85ebe35590e2b46e51d5/examples/pinknoise-channel-tester-stereo-reduct.dsp | faust | number of output channels
max-like gate
note: if n == 0, gate is closed (which is not the case with ba.selectoutn) */
we count from 0 to 2nsamples
if <= nsamples, signal passes
otherwise we output 0
we increment channel index whenever sample counter reaches nsamples-1
we wrap it around nchannels and add the offset | import("stdfaust.lib");
nchannels = 8;
length = 500;
gate(o,n,s) = par(i,o, s*((n!=0)&(n==i+1)));
counter(t) = (t > mem(t)) : (+ : *(1)) ~ _;
ms2samples(ms) = ms/1000*ma.SR;
pn = no.pink_noise * 0.25;
nsamples = ms2samples(length);
phase = ba.sweep(1, nsamples*2);
burst = phase <= nsamples;
index = counter(burst) % nchannels;
process = gate(nchannels, index*burst, pn) :> _,_;
|
33858dcf405de05f5bad4b10b86f66813e0ccda1aba02e2f1c8cca538bc3b7dd | inria-emeraude/syfala | quadVirtualAnalog.dsp | import("stdfaust.lib");
// sliders
oscFreq = hslider("oscFreq [knob:1]",80,50,500,0.01);
lfoFreq = hslider("lfoFreq [knob:2]",1,0.01,8,0.01);
lfoRange = hslider("lfoRange [knob:3]",1000,10,5000,0.01) : si.smoo;
noiseGain = hslider("noiseGain [slider:7]",0,0,1,0.01) <: _*_;
masterVol = hslider("masterVol [slider:8]",0.8,0,1,0.01) <: _*_;
panning = hslider("pan [knob:4]",0.5,0,1,0.01) : si.smoo;
// buttons
activateNoise = button("activateNoise [switch:6]");
killSwitch = 1-button("killSwitch [switch:5]");
LFO = os.lf_triangle(lfoFreq)*0.5 + 0.5;
process = os.oscrc(440)* 0.25 * killSwitch * os.sawtooth(oscFreq) + no.noise*noiseGain*activateNoise : fi.resonlp(LFO*lfoRange+50,5,1)*masterVol <: _*(1-panning),_*panning<:_,_,_,_;
| https://raw.githubusercontent.com/inria-emeraude/syfala/691da3ad1be01661eea9267bb6ec56e8dcfcbd51/examples/quadVirtualAnalog.dsp | faust | sliders
buttons | import("stdfaust.lib");
oscFreq = hslider("oscFreq [knob:1]",80,50,500,0.01);
lfoFreq = hslider("lfoFreq [knob:2]",1,0.01,8,0.01);
lfoRange = hslider("lfoRange [knob:3]",1000,10,5000,0.01) : si.smoo;
noiseGain = hslider("noiseGain [slider:7]",0,0,1,0.01) <: _*_;
masterVol = hslider("masterVol [slider:8]",0.8,0,1,0.01) <: _*_;
panning = hslider("pan [knob:4]",0.5,0,1,0.01) : si.smoo;
activateNoise = button("activateNoise [switch:6]");
killSwitch = 1-button("killSwitch [switch:5]");
LFO = os.lf_triangle(lfoFreq)*0.5 + 0.5;
process = os.oscrc(440)* 0.25 * killSwitch * os.sawtooth(oscFreq) + no.noise*noiseGain*activateNoise : fi.resonlp(LFO*lfoRange+50,5,1)*masterVol <: _*(1-panning),_*panning<:_,_,_,_;
|
06994a4a662680d2cbb680031e0804cb5fc4378978f038b6189f716e8edcbf94 | inria-emeraude/syfala | sixOutKarplus.dsp | import("stdfaust.lib");
// Karplus Strong (1/2)
freq=192000;
delay=10000;
time=ba.time%(delay*4);
f1=freq/hslider("Freq1 [knob:1]", 440, 100, 1000, 1);
f2=freq/hslider("Freq2 [knob:2]", 440, 100, 1000, 1);
f3=freq/hslider("Freq3 [knob:3]", 440, 100, 1000, 1);
f4=freq/hslider("Freq4 [knob:4]", 440, 100, 1000, 1);
karplusString = ba.pulse(delay) :
+ ~ transformation;
transformation = @(
f1*((time>=(0)) & (time<(delay)))+
f2*((time>=(delay)) & (time<(delay*2))) +
f3*((time>=(delay*2)) & (time<(delay*3))) +
f4*((time>=(delay*3)) & (time<(delay*4))))
: moyenne : *(0.99);
moyenne(x) = (x+x')/2;
process=karplusString<:_*((time>=(0)) & (time<(delay))),
_*((time>=(delay)) & (time<(delay*2))),
_*((time>=(delay*2)) & (time<(delay*3))),
_*((time>=(delay*3)) & (time<(delay*4))),
_*((time>=(0)) & (time<(delay*2))),
_*((time>=(delay*2)) & (time<(delay*4)));
| https://raw.githubusercontent.com/inria-emeraude/syfala/95ed6765d73520362f6a1ad35e4a3b2a5e16fbc9/examples/sixOutKarplus.dsp | faust | Karplus Strong (1/2) | import("stdfaust.lib");
freq=192000;
delay=10000;
time=ba.time%(delay*4);
f1=freq/hslider("Freq1 [knob:1]", 440, 100, 1000, 1);
f2=freq/hslider("Freq2 [knob:2]", 440, 100, 1000, 1);
f3=freq/hslider("Freq3 [knob:3]", 440, 100, 1000, 1);
f4=freq/hslider("Freq4 [knob:4]", 440, 100, 1000, 1);
karplusString = ba.pulse(delay) :
+ ~ transformation;
transformation = @(
f1*((time>=(0)) & (time<(delay)))+
f2*((time>=(delay)) & (time<(delay*2))) +
f3*((time>=(delay*2)) & (time<(delay*3))) +
f4*((time>=(delay*3)) & (time<(delay*4))))
: moyenne : *(0.99);
moyenne(x) = (x+x')/2;
process=karplusString<:_*((time>=(0)) & (time<(delay))),
_*((time>=(delay)) & (time<(delay*2))),
_*((time>=(delay*2)) & (time<(delay*3))),
_*((time>=(delay*3)) & (time<(delay*4))),
_*((time>=(0)) & (time<(delay*2))),
_*((time>=(delay*2)) & (time<(delay*4)));
|
e5fde64f284a8f94e77743bf5d3dc5cf8524416929566c65ed12d3678332152d | inria-emeraude/syfala | vanalog32.dsp | import("stdfaust.lib");
// sliders
oscFreq = hslider("oscFreq [knob:1]",80,50,500,0.01);
lfoFreq = hslider("lfoFreq [knob:2]",1,0.01,8,0.01);
lfoRange = hslider("lfoRange [knob:3]",1000,10,5000,0.01) : si.smoo;
noiseGain = hslider("noiseGain [slider:7]",0,0,1,0.01) <: _*_;
masterVol = hslider("masterVol [slider:8]",0.8,0,1,0.01) <: _*_;
panning = hslider("pan [knob:4]",0.5,0,1,0.01) : si.smoo;
// buttons
activateNoise = button("activateNoise [switch:6]");
killSwitch = 1-button("killSwitch [switch:5]");
LFO = os.lf_triangle(lfoFreq)*0.5 + 0.5;
virtual_analog = os.oscrc(440)* 0.25 * killSwitch * os.sawtooth(oscFreq) + no.noise*noiseGain*activateNoise : fi.resonlp(LFO*lfoRange+50,5,1) * 0.125 *masterVol <: _*(1-panning),_*panning;
process = virtual_analog <: par(i, 32, _);
| https://raw.githubusercontent.com/inria-emeraude/syfala/7bbb09ecb912c9a66bcb85ebe35590e2b46e51d5/examples/wfs/vanalog32.dsp | faust | sliders
buttons | import("stdfaust.lib");
oscFreq = hslider("oscFreq [knob:1]",80,50,500,0.01);
lfoFreq = hslider("lfoFreq [knob:2]",1,0.01,8,0.01);
lfoRange = hslider("lfoRange [knob:3]",1000,10,5000,0.01) : si.smoo;
noiseGain = hslider("noiseGain [slider:7]",0,0,1,0.01) <: _*_;
masterVol = hslider("masterVol [slider:8]",0.8,0,1,0.01) <: _*_;
panning = hslider("pan [knob:4]",0.5,0,1,0.01) : si.smoo;
activateNoise = button("activateNoise [switch:6]");
killSwitch = 1-button("killSwitch [switch:5]");
LFO = os.lf_triangle(lfoFreq)*0.5 + 0.5;
virtual_analog = os.oscrc(440)* 0.25 * killSwitch * os.sawtooth(oscFreq) + no.noise*noiseGain*activateNoise : fi.resonlp(LFO*lfoRange+50,5,1) * 0.125 *masterVol <: _*(1-panning),_*panning;
process = virtual_analog <: par(i, 32, _);
|
42beae944ad8e7f413b9382295cb3faeb7bb4dc55694931a7f07783e8c3206bb | inria-emeraude/syfala | clarinet.dsp | import("stdfaust.lib");
maxLength = 2;
notesPerMin = hslider("notesPerMin",1,0.1,2,0.01);
openTube(maxLength,length) = pm.waveguideUd(nMax,n)
with{
nMax = maxLength : pm.l2s;
n = length : pm.l2s/2;
};
clarinetModel(tubeLength,pressure,reedStiffness,bellOpening) = pm.endChain(modelChain)
with{
maxTubeLength = maxLength;
tunedLength = tubeLength/2;
modelChain =
pm.chain(
pm.clarinetMouthPiece(reedStiffness,pressure) :
openTube(maxTubeLength,tunedLength) :
pm.wBell(bellOpening) : pm.out
);
};
playClarinet(NPM) = timer <: ((_==1),((no.noise+1.4)*0.8) : ba.sAndH),(_ < (maxCycle*0.8) : en.asre(0.2,0.8,0.2))
with{
maxCycle = NPM*ma.SR;
timer = _~+(1)%(maxCycle);
};
process = playClarinet(notesPerMin),0.5,0.5 : clarinetModel;
| https://raw.githubusercontent.com/inria-emeraude/syfala/95ed6765d73520362f6a1ad35e4a3b2a5e16fbc9/examples/clarinet.dsp | faust | import("stdfaust.lib");
maxLength = 2;
notesPerMin = hslider("notesPerMin",1,0.1,2,0.01);
openTube(maxLength,length) = pm.waveguideUd(nMax,n)
with{
nMax = maxLength : pm.l2s;
n = length : pm.l2s/2;
};
clarinetModel(tubeLength,pressure,reedStiffness,bellOpening) = pm.endChain(modelChain)
with{
maxTubeLength = maxLength;
tunedLength = tubeLength/2;
modelChain =
pm.chain(
pm.clarinetMouthPiece(reedStiffness,pressure) :
openTube(maxTubeLength,tunedLength) :
pm.wBell(bellOpening) : pm.out
);
};
playClarinet(NPM) = timer <: ((_==1),((no.noise+1.4)*0.8) : ba.sAndH),(_ < (maxCycle*0.8) : en.asre(0.2,0.8,0.2))
with{
maxCycle = NPM*ma.SR;
timer = _~+(1)%(maxCycle);
};
process = playClarinet(notesPerMin),0.5,0.5 : clarinetModel;
|
|
f909604899da24f92e4d9c47a2b4e141471b6c5c95414775c6a182be87f8f910 | inria-emeraude/syfala | osc-li-int.dsp | // osc-li-int.dsp
// AUTHORS: Julien Sourice and Romain Michon
// DESCRIPTION: Linear interpolation sine wave oscillator at 1k.
// Work carried out by Julien Sourice as part of an internship at Maynooth U.
// DATE: Sept. 30, 2022
import("stdfaust.lib");
varSR = 5000000;
// Defined table size (default 65536)
tableSize = (1 << 12);
// Built the Lookup base with 65536 cases of float values -----------------------------
sineWave(tableSize) = ba.time*(2.0*ma.PI)/tableSize : cos;
osc(freq) = newWaveS(freq)
with{
newWaveS(fr) = newWave1 + ((newWave2-newWave1)*resfrac)
with{
phasorDec = ((+(fr/varSR) : ma.frac) ~ _)';
resfrac = int(phasorDec*float(1<<30)) & ((1<<14)-1)*lofac
with{
lobits = 14;
lomask = (2^(lobits))-1; // 16383
lofac = 1/(lomask+1);
};
phasorInt = int(phasorDec*tableSize);
newWave1 = tableSize,sineWave(tableSize),phasorInt : rdtable;
newWave2 = tableSize,sineWave(tableSize),(phasorInt+1)%tableSize : rdtable;
};
};
process = osc(1000)*0.9;
| https://raw.githubusercontent.com/inria-emeraude/syfala/7bbb09ecb912c9a66bcb85ebe35590e2b46e51d5/examples/osc-li-int.dsp | faust | osc-li-int.dsp
AUTHORS: Julien Sourice and Romain Michon
DESCRIPTION: Linear interpolation sine wave oscillator at 1k.
Work carried out by Julien Sourice as part of an internship at Maynooth U.
DATE: Sept. 30, 2022
Defined table size (default 65536)
Built the Lookup base with 65536 cases of float values -----------------------------
16383 |
import("stdfaust.lib");
varSR = 5000000;
tableSize = (1 << 12);
sineWave(tableSize) = ba.time*(2.0*ma.PI)/tableSize : cos;
osc(freq) = newWaveS(freq)
with{
newWaveS(fr) = newWave1 + ((newWave2-newWave1)*resfrac)
with{
phasorDec = ((+(fr/varSR) : ma.frac) ~ _)';
resfrac = int(phasorDec*float(1<<30)) & ((1<<14)-1)*lofac
with{
lobits = 14;
lofac = 1/(lomask+1);
};
phasorInt = int(phasorDec*tableSize);
newWave1 = tableSize,sineWave(tableSize),phasorInt : rdtable;
newWave2 = tableSize,sineWave(tableSize),(phasorInt+1)%tableSize : rdtable;
};
};
process = osc(1000)*0.9;
|
04db78d5fe287432903dc86baf782ef1a7b8ec350c59307e919e399a6f4012f2 | inria-emeraude/syfala | osc-spline-int.dsp | // osc-spline-int.dsp
// AUTHORS: Julien Sourice and Romain Michon
// DESCRIPTION: Spline interpolation sine wave oscillator at 1k.
// Work carried out by Julien Sourice as part of an internship at Maynooth U.
// DATE: Sept. 30, 2022
import("stdfaust.lib");
varSR = ma.SR; // Sampling rate in Hz
// Defined table size (default 65536)
tableSize = (1 << 16);
// Built the Lookup base with 65536 cases of float values -----------------------------
sineWave(tableSize) = int(ba.time)*(2.0*ma.PI)/(tableSize) : cos;
// Convert as a function -------------------------------------------------------------
osc(freq) = newWaveS(freq)
with{
newWaveS(fr) = ( newWaveP1 * ( (resfrac^(3))/6 ) )
+ ( newWave00 * ( (1+resfrac)^(3) - 4*resfrac^(3) )/6 )
+ ( newWaveM1 * ( (2-resfrac)^(3) - 4*(1-resfrac)^(3) )/6 )
+ ( newWaveM2 * ( (1-resfrac)^(3) )/6 )
with{
phasorDec = ((+(fr/varSR) : ma.frac) ~ _)';
resfrac = int(phasorDec*float(1<<30)) & ((1<<14)-1)*lofac
with{
lobits = 14;
lomask = (2^(lobits))-1; // 16383
lofac = 1/(lomask+1);
};
phasorInt = int(phasorDec*tableSize);
newWaveM2 = tableSize,sineWave(tableSize),phasorInt : rdtable;
newWaveM1 = tableSize,sineWave(tableSize),(phasorInt+1)%tableSize : rdtable;
newWave00 = tableSize,sineWave(tableSize),(phasorInt+2)%tableSize : rdtable;
newWaveP1 = tableSize,sineWave(tableSize),(phasorInt+3)%tableSize : rdtable;
};
};
process = osc(1000);
| https://raw.githubusercontent.com/inria-emeraude/syfala/7bbb09ecb912c9a66bcb85ebe35590e2b46e51d5/examples/osc-spline-int.dsp | faust | osc-spline-int.dsp
AUTHORS: Julien Sourice and Romain Michon
DESCRIPTION: Spline interpolation sine wave oscillator at 1k.
Work carried out by Julien Sourice as part of an internship at Maynooth U.
DATE: Sept. 30, 2022
Sampling rate in Hz
Defined table size (default 65536)
Built the Lookup base with 65536 cases of float values -----------------------------
Convert as a function -------------------------------------------------------------
16383 |
import("stdfaust.lib");
tableSize = (1 << 16);
sineWave(tableSize) = int(ba.time)*(2.0*ma.PI)/(tableSize) : cos;
osc(freq) = newWaveS(freq)
with{
newWaveS(fr) = ( newWaveP1 * ( (resfrac^(3))/6 ) )
+ ( newWave00 * ( (1+resfrac)^(3) - 4*resfrac^(3) )/6 )
+ ( newWaveM1 * ( (2-resfrac)^(3) - 4*(1-resfrac)^(3) )/6 )
+ ( newWaveM2 * ( (1-resfrac)^(3) )/6 )
with{
phasorDec = ((+(fr/varSR) : ma.frac) ~ _)';
resfrac = int(phasorDec*float(1<<30)) & ((1<<14)-1)*lofac
with{
lobits = 14;
lofac = 1/(lomask+1);
};
phasorInt = int(phasorDec*tableSize);
newWaveM2 = tableSize,sineWave(tableSize),phasorInt : rdtable;
newWaveM1 = tableSize,sineWave(tableSize),(phasorInt+1)%tableSize : rdtable;
newWave00 = tableSize,sineWave(tableSize),(phasorInt+2)%tableSize : rdtable;
newWaveP1 = tableSize,sineWave(tableSize),(phasorInt+3)%tableSize : rdtable;
};
};
process = osc(1000);
|
f40de1760d51643f4f0b48f15dc5be74cf252028cf6c1fcb96dfa6dbc73c0374 | inria-emeraude/syfala | wfs.dsp | /*
* Currently implements a primitive WFS system with 32 speakers, and 2 audio
* inputs corresponding to 2 different sound sources to be spatialized. The
* X/Y position of each source can be controlled using UI elements.
*/
import("stdfaust.lib");
celerity = 343;
// Creates a speaker array for one source
speakerArray(NC,SD,x,y) = _ <:
par(i,NC,de.fdelay(intSpeakMaxDel,smallDel(i))/d(i))
with{
maxDistanceDel = mD*ma.SR/celerity;
intSpeakMaxDel = NC*SD*ma.SR/celerity;
d(j) = (x-(SD*j))^2 + y^2 : sqrt;
largeDel = y*ma.SR/celerity;
smallDel(j) = (d(j)-y)*ma.SR/celerity;
};
// For future versions...
speakerArraySpheric(NC,SD,x,y) = par(i,NC,de.delay(ma.SR,d(i))*(1/d(i)))
with{
d(j) = (x-(SD*j))^2 + y^2 : sqrt : *(ma.SR)/celerity;
};
// In the current version the position of sources is static...
sourcesArray(NC,SD,s) = par(i,ba.count(s),ba.take(i+1,s) :
speakerArray(NC,SD,x(i),y(i))) :> par(i,NC,_)
with{
x(p) = hslider("v: Source %p/x",SD*NC/2,0,SD*NC,0.01);
y(p) = hslider("v: Source %p/y",mD/2,1,mD,0.01);
};
// This will do for future versions when we can use mobile sources
sourcesArraySpheric(NC,SD,s) = par(i,ba.count(s),ba.take(i+1,s) <:
speakerArraySpheric(NC,SD,x(i),y(i))) :> par(i,NC,_)
with{
x(p) = hslider("v: Source %p/x",SD*NC/2,0,SD*NC,0.01);
y(p) = hslider("v: Source %p/y",10,1,20,0.01);
};
// ------------------ Implementation ----------------------------------
nSpeakers = 32; // number of speakers
nSources = 2; // number of sources
mD = 40; // maxim distance in meters
speakersDist = 0.0783; // distance between speakers
process = sourcesArray(nSpeakers,speakersDist,par(i,nSources,_));
| https://raw.githubusercontent.com/inria-emeraude/syfala/7bbb09ecb912c9a66bcb85ebe35590e2b46e51d5/examples/wfs/wfs.dsp | faust |
* Currently implements a primitive WFS system with 32 speakers, and 2 audio
* inputs corresponding to 2 different sound sources to be spatialized. The
* X/Y position of each source can be controlled using UI elements.
Creates a speaker array for one source
For future versions...
In the current version the position of sources is static...
This will do for future versions when we can use mobile sources
------------------ Implementation ----------------------------------
number of speakers
number of sources
maxim distance in meters
distance between speakers |
import("stdfaust.lib");
celerity = 343;
speakerArray(NC,SD,x,y) = _ <:
par(i,NC,de.fdelay(intSpeakMaxDel,smallDel(i))/d(i))
with{
maxDistanceDel = mD*ma.SR/celerity;
intSpeakMaxDel = NC*SD*ma.SR/celerity;
d(j) = (x-(SD*j))^2 + y^2 : sqrt;
largeDel = y*ma.SR/celerity;
smallDel(j) = (d(j)-y)*ma.SR/celerity;
};
speakerArraySpheric(NC,SD,x,y) = par(i,NC,de.delay(ma.SR,d(i))*(1/d(i)))
with{
d(j) = (x-(SD*j))^2 + y^2 : sqrt : *(ma.SR)/celerity;
};
sourcesArray(NC,SD,s) = par(i,ba.count(s),ba.take(i+1,s) :
speakerArray(NC,SD,x(i),y(i))) :> par(i,NC,_)
with{
x(p) = hslider("v: Source %p/x",SD*NC/2,0,SD*NC,0.01);
y(p) = hslider("v: Source %p/y",mD/2,1,mD,0.01);
};
sourcesArraySpheric(NC,SD,s) = par(i,ba.count(s),ba.take(i+1,s) <:
speakerArraySpheric(NC,SD,x(i),y(i))) :> par(i,NC,_)
with{
x(p) = hslider("v: Source %p/x",SD*NC/2,0,SD*NC,0.01);
y(p) = hslider("v: Source %p/y",10,1,20,0.01);
};
process = sourcesArray(nSpeakers,speakersDist,par(i,nSources,_));
|
025e1f0e0f4512afde2936d2e406413bca7bdcb895810b1ccce7cf72d204a742 | inria-emeraude/syfala | multiVirtualAnalog.dsp | import("stdfaust.lib");
// sliders
oscFreq = hslider("oscFreq [knob:1]",80,50,500,0.01);
lfoFreq = hslider("lfoFreq [knob:2]",1,0.01,8,0.01);
lfoRange = hslider("lfoRange [knob:3]",1000,10,5000,0.01) : si.smoo;
noiseGain = hslider("noiseGain [slider:7]",0,0,1,0.01) <: _*_;
// buttons
activateNoise = button("activateNoise [switch:6]");
killSwitch = 1-button("killSwitch [switch:5]");
// multi volume
vol0 = hslider("Volume ch00",0.8,0,1,0.01);
vol1 = hslider("Volume ch01",0.8,0,1,0.01);
vol2 = hslider("Volume ch02",0.8,0,1,0.01);
vol3 = hslider("Volume ch03",0.8,0,1,0.01);
vol4 = hslider("Volume ch04",0.8,0,1,0.01);
vol5 = hslider("Volume ch05",0.8,0,1,0.01);
vol6 = hslider("Volume ch06",0.8,0,1,0.01);
vol7 = hslider("Volume ch07",0.8,0,1,0.01);
vol8 = hslider("Volume ch08",0.8,0,1,0.01);
vol9 = hslider("Volume ch09",0.8,0,1,0.01);
vol10 = hslider("Volume ch10",0.8,0,1,0.01);
vol11 = hslider("Volume ch11",0.8,0,1,0.01);
vol12 = hslider("Volume ch12",0.8,0,1,0.01);
vol13 = hslider("Volume ch13",0.8,0,1,0.01);
vol14 = hslider("Volume ch14",0.8,0,1,0.01);
vol15 = hslider("Volume ch15",0.8,0,1,0.01);
vol16 = hslider("Volume ch16",0.8,0,1,0.01);
vol17 = hslider("Volume ch17",0.8,0,1,0.01);
vol18 = hslider("Volume ch18",0.8,0,1,0.01);
vol19 = hslider("Volume ch19",0.8,0,1,0.01);
vol20 = hslider("Volume ch20",0.8,0,1,0.01);
vol21 = hslider("Volume ch21",0.8,0,1,0.01);
vol22 = hslider("Volume ch22",0.8,0,1,0.01);
vol23 = hslider("Volume ch23",0.8,0,1,0.01);
vol24 = hslider("Volume ch24",0.8,0,1,0.01);
vol25 = hslider("Volume ch25",0.8,0,1,0.01);
vol26 = hslider("Volume ch26",0.8,0,1,0.01);
vol27 = hslider("Volume ch27",0.8,0,1,0.01);
vol28 = hslider("Volume ch28",0.8,0,1,0.01);
vol29 = hslider("Volume ch29",0.8,0,1,0.01);
vol30 = hslider("Volume ch30",0.8,0,1,0.01);
vol31 = hslider("Volume ch31",0.8,0,1,0.01);
LFO = os.lf_triangle(lfoFreq)*0.5 + 0.5;
process = os.oscrc(440)* 0.25 * killSwitch * os.sawtooth(oscFreq) + no.noise*noiseGain*activateNoise : fi.resonlp(LFO*lfoRange+50,5,1) <:_*vol0,_*vol1,_*vol2,_*vol3,_*vol4,_*vol5,_*vol6,_*vol7,_*vol8,_*vol9,_*vol10,_*vol11,_*vol12,_*vol13,_*vol14,_*vol15,_*vol16,_*vol17,_*vol18,_*vol19,_*vol20,_*vol21,_*vol22,_*vol23,_*vol24,_*vol25,_*vol26,_*vol27,_*vol28,_*vol29,_*vol30,_*vol31;
| https://raw.githubusercontent.com/inria-emeraude/syfala/7bbb09ecb912c9a66bcb85ebe35590e2b46e51d5/examples/multiVirtualAnalog.dsp | faust | sliders
buttons
multi volume | import("stdfaust.lib");
oscFreq = hslider("oscFreq [knob:1]",80,50,500,0.01);
lfoFreq = hslider("lfoFreq [knob:2]",1,0.01,8,0.01);
lfoRange = hslider("lfoRange [knob:3]",1000,10,5000,0.01) : si.smoo;
noiseGain = hslider("noiseGain [slider:7]",0,0,1,0.01) <: _*_;
activateNoise = button("activateNoise [switch:6]");
killSwitch = 1-button("killSwitch [switch:5]");
vol0 = hslider("Volume ch00",0.8,0,1,0.01);
vol1 = hslider("Volume ch01",0.8,0,1,0.01);
vol2 = hslider("Volume ch02",0.8,0,1,0.01);
vol3 = hslider("Volume ch03",0.8,0,1,0.01);
vol4 = hslider("Volume ch04",0.8,0,1,0.01);
vol5 = hslider("Volume ch05",0.8,0,1,0.01);
vol6 = hslider("Volume ch06",0.8,0,1,0.01);
vol7 = hslider("Volume ch07",0.8,0,1,0.01);
vol8 = hslider("Volume ch08",0.8,0,1,0.01);
vol9 = hslider("Volume ch09",0.8,0,1,0.01);
vol10 = hslider("Volume ch10",0.8,0,1,0.01);
vol11 = hslider("Volume ch11",0.8,0,1,0.01);
vol12 = hslider("Volume ch12",0.8,0,1,0.01);
vol13 = hslider("Volume ch13",0.8,0,1,0.01);
vol14 = hslider("Volume ch14",0.8,0,1,0.01);
vol15 = hslider("Volume ch15",0.8,0,1,0.01);
vol16 = hslider("Volume ch16",0.8,0,1,0.01);
vol17 = hslider("Volume ch17",0.8,0,1,0.01);
vol18 = hslider("Volume ch18",0.8,0,1,0.01);
vol19 = hslider("Volume ch19",0.8,0,1,0.01);
vol20 = hslider("Volume ch20",0.8,0,1,0.01);
vol21 = hslider("Volume ch21",0.8,0,1,0.01);
vol22 = hslider("Volume ch22",0.8,0,1,0.01);
vol23 = hslider("Volume ch23",0.8,0,1,0.01);
vol24 = hslider("Volume ch24",0.8,0,1,0.01);
vol25 = hslider("Volume ch25",0.8,0,1,0.01);
vol26 = hslider("Volume ch26",0.8,0,1,0.01);
vol27 = hslider("Volume ch27",0.8,0,1,0.01);
vol28 = hslider("Volume ch28",0.8,0,1,0.01);
vol29 = hslider("Volume ch29",0.8,0,1,0.01);
vol30 = hslider("Volume ch30",0.8,0,1,0.01);
vol31 = hslider("Volume ch31",0.8,0,1,0.01);
LFO = os.lf_triangle(lfoFreq)*0.5 + 0.5;
process = os.oscrc(440)* 0.25 * killSwitch * os.sawtooth(oscFreq) + no.noise*noiseGain*activateNoise : fi.resonlp(LFO*lfoRange+50,5,1) <:_*vol0,_*vol1,_*vol2,_*vol3,_*vol4,_*vol5,_*vol6,_*vol7,_*vol8,_*vol9,_*vol10,_*vol11,_*vol12,_*vol13,_*vol14,_*vol15,_*vol16,_*vol17,_*vol18,_*vol19,_*vol20,_*vol21,_*vol22,_*vol23,_*vol24,_*vol25,_*vol26,_*vol27,_*vol28,_*vol29,_*vol30,_*vol31;
|
fec52f6364972b50abf513cf3960258018c9b2bbcdefee3fd077efc9b175272c | inria-emeraude/syfala | wfs-fixed-sources.dsp | /*
* Currently implements a primitive WFS system with 32 speakers, 6 virtual sources,
* and 2 audio inputs. Each output can be routed to one of the virtual sources using
* UI elements.
*/
import("stdfaust.lib");
celerity = 343;
// Creates a speaker array for one source
//speakerArray(NC,SD,x,y) = de.delay(maxDistanceDel-intSpeakMaxDel,largeDel) <:
speakerArray(NC,SD,x,y) = _ <:
// par(i,NC,de.delay(intSpeakMaxDel,smallDel(i))/d(i))
par(i,NC,de.delay(intSpeakMaxDel,smallDel(i)))
with{
maxDistanceDel = mD*ma.SR/celerity;
intSpeakMaxDel = NC*SD*ma.SR/celerity;
d(j) = (x-(SD*j))^2 + y^2 : sqrt;
largeDel = y*ma.SR/celerity;
smallDel(j) = (d(j)-y)*ma.SR/celerity;
};
// For future versions...
speakerArraySpheric(NC,SD,x,y) = par(i,NC,de.delay(ma.SR,d(i))*(1/d(i)))
with{
d(j) = (x-(SD*j))^2 + y^2 : sqrt : *(ma.SR)/celerity;
};
// In the current version the position of sources is static...
sourcesArray(NC,SD,s) = par(i,ba.count(s),ba.take(i+1,s) :
speakerArray(NC,SD,x(i),y(i))) :> par(i,NC,_)
with{
x(p) = p/(nSources-1)*SD*NC;
y(p) = (1 - abs(p/((nSources-1)/2) - 1))*mD + 0.01;
};
// This will do for future versions when we can use mobile sources
sourcesArraySpheric(NC,SD,s) = par(i,ba.count(s),ba.take(i+1,s) <:
speakerArraySpheric(NC,SD,x(i),y(i))) :> par(i,NC,_)
with{
x(p) = hslider("v: Source %p/x coordinate of source %p",SD*NC/2,0,SD*NC,0.01);
y(p) = hslider("v: Source %p/y coordinate of source %p",10,1,20,0.01);
};
// ------------------ Implementation ----------------------------------
nSpeakers = 32; // number of speakers
nSources = 5; // number of sources
nInputs = 2; // number of inputs
mD = 5; // maxim distance in meters
speakersDist = 0.0783; // distance between speakers
// Simulate distance by changing gain and applying a lowpass in function
// of distance
dSim(p) = _;
// dSim(p) = *(dGain) : fi.lowpass(2,ct)
// with{
// distance = (1 - abs(p/((nSources-1)/2) - 1))*mD + 0.01;
// dGain = (mD-distance*0.5)/(mD);
// ct = dGain*15000 + 5000;
// };
// Take nInputs and send them to nSources. A slider allows us to select
// to which source the current input is routed.
dist = par(i,nInputs,dSim(s(i)) <: par(j,nSources,select2(s(i)==j,0)))
with{
s(k) = hslider("pos%k",0,0,(nSources-1),1) : int;
};
// (dirty) Version implenting a crossfade between the sources
distXFade = dSim(mD,s) <: par(i,nSource,*(g(i)))
with{
s = hslider("pos",0,0,(nSource-1),0.01) : si.smoo;
sFrac = ma.frac(s);
g(i) = (1-sFrac)*((s>=i) & (s<(i+1))) + sFrac*((s<=i) & (s>(i-1)));
};
process = dist :> sourcesArray(nSpeakers,speakersDist,par(i,nSources,_));
| https://raw.githubusercontent.com/inria-emeraude/syfala/7bbb09ecb912c9a66bcb85ebe35590e2b46e51d5/examples/wfs/wfs-fixed-sources.dsp | faust |
* Currently implements a primitive WFS system with 32 speakers, 6 virtual sources,
* and 2 audio inputs. Each output can be routed to one of the virtual sources using
* UI elements.
Creates a speaker array for one source
speakerArray(NC,SD,x,y) = de.delay(maxDistanceDel-intSpeakMaxDel,largeDel) <:
par(i,NC,de.delay(intSpeakMaxDel,smallDel(i))/d(i))
For future versions...
In the current version the position of sources is static...
This will do for future versions when we can use mobile sources
------------------ Implementation ----------------------------------
number of speakers
number of sources
number of inputs
maxim distance in meters
distance between speakers
Simulate distance by changing gain and applying a lowpass in function
of distance
dSim(p) = *(dGain) : fi.lowpass(2,ct)
with{
distance = (1 - abs(p/((nSources-1)/2) - 1))*mD + 0.01;
dGain = (mD-distance*0.5)/(mD);
ct = dGain*15000 + 5000;
};
Take nInputs and send them to nSources. A slider allows us to select
to which source the current input is routed.
(dirty) Version implenting a crossfade between the sources |
import("stdfaust.lib");
celerity = 343;
speakerArray(NC,SD,x,y) = _ <:
par(i,NC,de.delay(intSpeakMaxDel,smallDel(i)))
with{
maxDistanceDel = mD*ma.SR/celerity;
intSpeakMaxDel = NC*SD*ma.SR/celerity;
d(j) = (x-(SD*j))^2 + y^2 : sqrt;
largeDel = y*ma.SR/celerity;
smallDel(j) = (d(j)-y)*ma.SR/celerity;
};
speakerArraySpheric(NC,SD,x,y) = par(i,NC,de.delay(ma.SR,d(i))*(1/d(i)))
with{
d(j) = (x-(SD*j))^2 + y^2 : sqrt : *(ma.SR)/celerity;
};
sourcesArray(NC,SD,s) = par(i,ba.count(s),ba.take(i+1,s) :
speakerArray(NC,SD,x(i),y(i))) :> par(i,NC,_)
with{
x(p) = p/(nSources-1)*SD*NC;
y(p) = (1 - abs(p/((nSources-1)/2) - 1))*mD + 0.01;
};
sourcesArraySpheric(NC,SD,s) = par(i,ba.count(s),ba.take(i+1,s) <:
speakerArraySpheric(NC,SD,x(i),y(i))) :> par(i,NC,_)
with{
x(p) = hslider("v: Source %p/x coordinate of source %p",SD*NC/2,0,SD*NC,0.01);
y(p) = hslider("v: Source %p/y coordinate of source %p",10,1,20,0.01);
};
dSim(p) = _;
dist = par(i,nInputs,dSim(s(i)) <: par(j,nSources,select2(s(i)==j,0)))
with{
s(k) = hslider("pos%k",0,0,(nSources-1),1) : int;
};
distXFade = dSim(mD,s) <: par(i,nSource,*(g(i)))
with{
s = hslider("pos",0,0,(nSource-1),0.01) : si.smoo;
sFrac = ma.frac(s);
g(i) = (1-sFrac)*((s>=i) & (s<(i+1))) + sFrac*((s<=i) & (s>(i-1)));
};
process = dist :> sourcesArray(nSpeakers,speakersDist,par(i,nSources,_));
|
85df8f9f3d703206d6ccb79f31a8aae1bdd83b9d5acde42694c7249f069294cd | inria-emeraude/syfala | wfs-fixed-sources-ks.dsp | /*
* Currently implements a primitive WFS system with 32 speakers, 6 virtual sources,
* and 2 audio inputs. Each output can be routed to one of the virtual sources using
* UI elements.
*/
import("stdfaust.lib");
celerity = 343;
// Creates a speaker array for one source
//speakerArray(NC,SD,x,y) = de.delay(maxDistanceDel-intSpeakMaxDel,largeDel) <:
speakerArray(NC,SD,x,y) = _ <:
// par(i,NC,de.delay(intSpeakMaxDel,smallDel(i))/d(i))
par(i,NC,de.delay(intSpeakMaxDel,smallDel(i)))
with{
maxDistanceDel = mD*ma.SR/celerity;
intSpeakMaxDel = NC*SD*ma.SR/celerity;
d(j) = (x-(SD*j))^2 + y^2 : sqrt;
largeDel = y*ma.SR/celerity;
smallDel(j) = (d(j)-y)*ma.SR/celerity;
};
// For future versions...
speakerArraySpheric(NC,SD,x,y) = par(i,NC,de.delay(ma.SR,d(i))*(1/d(i)))
with{
d(j) = (x-(SD*j))^2 + y^2 : sqrt : *(ma.SR)/celerity;
};
// In the current version the position of sources is static...
sourcesArray(NC,SD,s) = par(i,ba.count(s),ba.take(i+1,s) :
speakerArray(NC,SD,x(i),y(i))) :> par(i,NC,_)
with{
x(p) = p/(nSources-1)*SD*NC;
y(p) = (1 - abs(p/((nSources-1)/2) - 1))*mD + 0.01;
};
// This will do for future versions when we can use mobile sources
sourcesArraySpheric(NC,SD,s) = par(i,ba.count(s),ba.take(i+1,s) <:
speakerArraySpheric(NC,SD,x(i),y(i))) :> par(i,NC,_)
with{
x(p) = hslider("v: Source %p/x coordinate of source %p",SD*NC/2,0,SD*NC,0.01);
y(p) = hslider("v: Source %p/y coordinate of source %p",10,1,20,0.01);
};
// ------------------ Implementation ----------------------------------
nSpeakers = 32; // number of speakers
nSources = 5; // number of sources
nInputs = 1; // number of inputs
mD = 5; // maxim distance in meters
speakersDist = 0.0783; // distance between speakers
time = hslider("time",1,0.01,1,0.01);
base = hslider("base",70,40,200,1);
steps = hslider("steps",10,1,50,1);
nSteps = hslider("nSteps",3,1,10,1);
ks(t,d) = t : +~(de.delay(1024,d) <: (_+_')/2.02);
autoKs = ba.pulse(time*ma.SR) <: _,(+~%(nSteps)*steps)+base : ks;
// Simulate distance by changing gain and applying a lowpass in function
// of distance
dSim(p) = autoKs;
// dSim(p) = *(dGain) : fi.lowpass(2,ct)
// with{
// distance = (1 - abs(p/((nSources-1)/2) - 1))*mD + 0.01;
// dGain = (mD-distance*0.5)/(mD);
// ct = dGain*15000 + 5000;
// };
// Take nInputs and send them to nSources. A slider allows us to select
// to which source the current input is routed.
dist = par(i,nInputs,dSim(s(i)) <: par(j,nSources,select2(s(i)==j,0)))
with{
s(k) = hslider("pos%k",0,0,(nSources-1),1) : int;
};
// (dirty) Version implenting a crossfade between the sources
distXFade = dSim(mD,s) <: par(i,nSource,*(g(i)))
with{
s = hslider("pos",0,0,(nSource-1),0.01) : si.smoo;
sFrac = ma.frac(s);
g(i) = (1-sFrac)*((s>=i) & (s<(i+1))) + sFrac*((s<=i) & (s>(i-1)));
};
process = dist :> sourcesArray(nSpeakers,speakersDist,par(i,nSources,_));
| https://raw.githubusercontent.com/inria-emeraude/syfala/7bbb09ecb912c9a66bcb85ebe35590e2b46e51d5/examples/wfs/wfs-fixed-sources-ks.dsp | faust |
* Currently implements a primitive WFS system with 32 speakers, 6 virtual sources,
* and 2 audio inputs. Each output can be routed to one of the virtual sources using
* UI elements.
Creates a speaker array for one source
speakerArray(NC,SD,x,y) = de.delay(maxDistanceDel-intSpeakMaxDel,largeDel) <:
par(i,NC,de.delay(intSpeakMaxDel,smallDel(i))/d(i))
For future versions...
In the current version the position of sources is static...
This will do for future versions when we can use mobile sources
------------------ Implementation ----------------------------------
number of speakers
number of sources
number of inputs
maxim distance in meters
distance between speakers
Simulate distance by changing gain and applying a lowpass in function
of distance
dSim(p) = *(dGain) : fi.lowpass(2,ct)
with{
distance = (1 - abs(p/((nSources-1)/2) - 1))*mD + 0.01;
dGain = (mD-distance*0.5)/(mD);
ct = dGain*15000 + 5000;
};
Take nInputs and send them to nSources. A slider allows us to select
to which source the current input is routed.
(dirty) Version implenting a crossfade between the sources |
import("stdfaust.lib");
celerity = 343;
speakerArray(NC,SD,x,y) = _ <:
par(i,NC,de.delay(intSpeakMaxDel,smallDel(i)))
with{
maxDistanceDel = mD*ma.SR/celerity;
intSpeakMaxDel = NC*SD*ma.SR/celerity;
d(j) = (x-(SD*j))^2 + y^2 : sqrt;
largeDel = y*ma.SR/celerity;
smallDel(j) = (d(j)-y)*ma.SR/celerity;
};
speakerArraySpheric(NC,SD,x,y) = par(i,NC,de.delay(ma.SR,d(i))*(1/d(i)))
with{
d(j) = (x-(SD*j))^2 + y^2 : sqrt : *(ma.SR)/celerity;
};
sourcesArray(NC,SD,s) = par(i,ba.count(s),ba.take(i+1,s) :
speakerArray(NC,SD,x(i),y(i))) :> par(i,NC,_)
with{
x(p) = p/(nSources-1)*SD*NC;
y(p) = (1 - abs(p/((nSources-1)/2) - 1))*mD + 0.01;
};
sourcesArraySpheric(NC,SD,s) = par(i,ba.count(s),ba.take(i+1,s) <:
speakerArraySpheric(NC,SD,x(i),y(i))) :> par(i,NC,_)
with{
x(p) = hslider("v: Source %p/x coordinate of source %p",SD*NC/2,0,SD*NC,0.01);
y(p) = hslider("v: Source %p/y coordinate of source %p",10,1,20,0.01);
};
time = hslider("time",1,0.01,1,0.01);
base = hslider("base",70,40,200,1);
steps = hslider("steps",10,1,50,1);
nSteps = hslider("nSteps",3,1,10,1);
ks(t,d) = t : +~(de.delay(1024,d) <: (_+_')/2.02);
autoKs = ba.pulse(time*ma.SR) <: _,(+~%(nSteps)*steps)+base : ks;
dSim(p) = autoKs;
dist = par(i,nInputs,dSim(s(i)) <: par(j,nSources,select2(s(i)==j,0)))
with{
s(k) = hslider("pos%k",0,0,(nSources-1),1) : int;
};
distXFade = dSim(mD,s) <: par(i,nSource,*(g(i)))
with{
s = hslider("pos",0,0,(nSource-1),0.01) : si.smoo;
sFrac = ma.frac(s);
g(i) = (1-sFrac)*((s>=i) & (s<(i+1))) + sFrac*((s<=i) & (s>(i-1)));
};
process = dist :> sourcesArray(nSpeakers,speakersDist,par(i,nSources,_));
|
9d9e7ba17b1dfa4331e79883a170a30c98449adcb1e145b0a1e332c3cdd08ecc | inria-emeraude/syfala | sh_fxlms.dsp | declare name "Spherical harmonics FxLMS algorithm";
declare version "1.0";
declare author "Pierre Lecomte";
declare author "Loic Alexandre";
declare license "CC-BY-NC-SA-4.0";
import("stdfaust.lib");
import("radial.lib");
import("ylm.lib");
// Tetramic encoder (Pierre Lecomte) ------------------------------------------------------
in_enc = 4; // Number of inputs
out_enc = 4; // Number of outputs
L = 1; // Ambisonic order
tetra(i,x) = case {
(0) => ba.take(1, node(i)) * ma.PI/180;
(1) => ba.take(2, node(i)) * ma.PI/180;
(2) => weight(i);
}(x)
with {
weight(i) = 1/4; // all nodes have the same weight
node(0) = (0, 90);
node(1) = (240, -19.471);
node(2) = (120, -19.471);
node(3) = (0, -19.471);
};
row(i) = par(n, in_enc, yacn(i, tetra(n, 0), tetra(n, 1)) * tetra(n, 2));
matrix = par(i, out_enc, buswg(row(i)):>_);
encoder = si.bus(in_enc) <: matrix : par(l, L+1, par(m, 2*l+1, eqlr(l, L, 0.05, 20)));
//------------------------------------------------------------------------------------------
// SH-FxLMS Algorithm ----------------------------------------------------------------------
N = 2;
coeffs = si.bus(N);
in = 4;
out = 4;
in_out = si.bus(in*out);
freq_band = fi.bandpass(4,hslider("s:[0]Signal/s:[2]Noise/[2]Low frequency cut", 100,50,10000,1), hslider("s:[0]Signal/s:[2]Noise/[3]High frequency cut", 500,50,10000,1));
noise = (no.noise:freq_band)*hslider("s:[0]Signal/s:[2]Noise/[1]Volume" , 1,0,10,0.1);
sine_freq = hslider("s:[0]Signal/s:[1]Sine/[2]Frequency",300,50,10000,10);
sine = os.osc(sine_freq)*hslider("s:[0]Signal/s:[1]Sine/[1]Volume" , 0.5,0,10,0.1);
signal = (sine*checkbox("s:[0]Signal/s:[1]Sine/[0]On/Off"), noise*checkbox("s:[0]Signal/s:[2]Noise/[0]On/Off")):>_*(1-checkbox("s:[0]Signal/[0]Mute")); // Reference signal
x = (signal:_<:(_,_,_)); // Input signal
// Convergence coefficients
mu = -0.001*checkbox("a:[1]ANC/[0]On/Off");
lambda = 0.9;
delta = 1e-5;
reset = 1-button("a:[1]ANC/[1]reset");
// Adapted filters
filter_adapt(n) = (si.bus(n),(_<:(si.bus(n)))):ro.interleave(n,2):sum(i, n, (_,@(i):*));
H = (si.bus(in*out*N):par(i,in*N*out,_*reset)),(_<:par(i, in*out, _)):seq(i,in*out-1,si.bus(N*(i+1)+i), ro.crossn1(N*in*out-N*(i+1)), si.bus(in*out-(i+1))):par(i,in*out,((si.bus(N)<:si.bus(2*N)),_):(si.bus(N),filter_adapt(N))):seq(i,in*out-1, si.bus(N*in*out - (N*(i+1)) + out*in-(i+1)-1), ro.cross1n(N*(i+1)), si.bus(1+i)):(si.bus(in*out*N),par(i,out,si.bus(out):>_));
C11 = fi.fir((0.36824137335353946,0.1344698483063542));
C12 = fi.fir((0.49305379395471016,0.32224160966837667));
C13 = fi.fir((0.6137461681615921,0.3832431599216761));
C14 = fi.fir((0.7825273252978009,0.6203300900505291));
C21 = fi.fir((0.49305379395471016,0.32224160966837667));
C22 = fi.fir((0.6137461681615921,0.3832431599216761));
C23 = fi.fir((0.7825273252978009,0.6203300900505291));
C24 = fi.fir((0.21071454705409587,1.4008975865601723));
C31 = fi.fir((0.6137461681615921,0.3832431599216761));
C32 = fi.fir((0.7825273252978009,0.6203300900505291));
C33 = fi.fir((0.21071454705409587,1.4008975865601723));
C34 = fi.fir((0.30922917656286875,0.8529553144340982));
C41 = fi.fir((0.7825273252978009,0.6203300900505291));
C42 = fi.fir((0.21071454705409587,1.4008975865601723));
C43 = fi.fir((0.30922917656286875,0.8529553144340982));
C44 = fi.fir((0.15306151591169526,1.2462587339054818));
C_stack = C11, C12, C13, C14, C21, C22, C23, C24, C31, C32, C33, C34, C41, C42, C43, C44;
C_hat = _<:par(i,in*out,_):C_stack:par(i,out,encoder):par(i,in*out,buffer);
buffer = _<:par(i,N,@(i)); // To obtain x_n the reference signal at time n
norm2(n) = par(i,n,^(2)):>sqrt:_^(2);
E = par(i,in,_<:(_,_)):par(i,in,(((_':_^(2):_*(1-lambda)),(*(lambda))):>_));
LMS = ((par(i,in*out*N,_<:(_,_)):ro.interleave(2,N*out*in):(si.bus(N*out*in),norm2(in*out*N))), (par(i,in,_<:(_,_)):ro.interleave(2,in):(si.bus(in),E))):(si.bus(in*out*N), ro.cross1n(in), si.bus(in)):(si.bus(in*out*N),par(i,in,_*mu), (((_<:par(i,in,_)), si.bus(in)):ro.interleave(in,2):par(i,in,(_,_):>_):par(i,in,_+delta))):(si.bus(N*out*in),(ro.interleave(in,2):par(i,in,/))):(si.bus(in*out*N),par(i,in,_<:par(i,N*out,_))):(ro.interleave(N*in*out,2):par(i,in*out*N,*));
// 4 inputs / 6 outputs
// INPUTS : 4 microphones
// OUTPUTS : 4 Loudspeaker signals, 1 reference signal, 1 rms error signal
process = ((par(i,in*out,coeffs), x, encoder):(H,C_hat,(ro.cross1n(in):((par(i,in,_<:(_,_)):ro.interleave(2,in)),_))):(si.bus(N*in*out+out),LMS,(par(i,in,_):>_),_):(par(i,in*out,coeffs),ro.crossNM(out,in*out*N),_,_):((ro.interleave(in*N*out,2):par(i,in*out*N,+)),si.bus(out),_,_))~(par(i,in*out,coeffs)):(par(i,in*out*N,!),si.bus(out),ro.cross1n(1));
| https://raw.githubusercontent.com/inria-emeraude/syfala/7bbb09ecb912c9a66bcb85ebe35590e2b46e51d5/examples/sh_fxlms.dsp | faust | Tetramic encoder (Pierre Lecomte) ------------------------------------------------------
Number of inputs
Number of outputs
Ambisonic order
all nodes have the same weight
------------------------------------------------------------------------------------------
SH-FxLMS Algorithm ----------------------------------------------------------------------
Reference signal
Input signal
Convergence coefficients
Adapted filters
To obtain x_n the reference signal at time n
4 inputs / 6 outputs
INPUTS : 4 microphones
OUTPUTS : 4 Loudspeaker signals, 1 reference signal, 1 rms error signal | declare name "Spherical harmonics FxLMS algorithm";
declare version "1.0";
declare author "Pierre Lecomte";
declare author "Loic Alexandre";
declare license "CC-BY-NC-SA-4.0";
import("stdfaust.lib");
import("radial.lib");
import("ylm.lib");
tetra(i,x) = case {
(0) => ba.take(1, node(i)) * ma.PI/180;
(1) => ba.take(2, node(i)) * ma.PI/180;
(2) => weight(i);
}(x)
with {
node(0) = (0, 90);
node(1) = (240, -19.471);
node(2) = (120, -19.471);
node(3) = (0, -19.471);
};
row(i) = par(n, in_enc, yacn(i, tetra(n, 0), tetra(n, 1)) * tetra(n, 2));
matrix = par(i, out_enc, buswg(row(i)):>_);
encoder = si.bus(in_enc) <: matrix : par(l, L+1, par(m, 2*l+1, eqlr(l, L, 0.05, 20)));
N = 2;
coeffs = si.bus(N);
in = 4;
out = 4;
in_out = si.bus(in*out);
freq_band = fi.bandpass(4,hslider("s:[0]Signal/s:[2]Noise/[2]Low frequency cut", 100,50,10000,1), hslider("s:[0]Signal/s:[2]Noise/[3]High frequency cut", 500,50,10000,1));
noise = (no.noise:freq_band)*hslider("s:[0]Signal/s:[2]Noise/[1]Volume" , 1,0,10,0.1);
sine_freq = hslider("s:[0]Signal/s:[1]Sine/[2]Frequency",300,50,10000,10);
sine = os.osc(sine_freq)*hslider("s:[0]Signal/s:[1]Sine/[1]Volume" , 0.5,0,10,0.1);
mu = -0.001*checkbox("a:[1]ANC/[0]On/Off");
lambda = 0.9;
delta = 1e-5;
reset = 1-button("a:[1]ANC/[1]reset");
filter_adapt(n) = (si.bus(n),(_<:(si.bus(n)))):ro.interleave(n,2):sum(i, n, (_,@(i):*));
H = (si.bus(in*out*N):par(i,in*N*out,_*reset)),(_<:par(i, in*out, _)):seq(i,in*out-1,si.bus(N*(i+1)+i), ro.crossn1(N*in*out-N*(i+1)), si.bus(in*out-(i+1))):par(i,in*out,((si.bus(N)<:si.bus(2*N)),_):(si.bus(N),filter_adapt(N))):seq(i,in*out-1, si.bus(N*in*out - (N*(i+1)) + out*in-(i+1)-1), ro.cross1n(N*(i+1)), si.bus(1+i)):(si.bus(in*out*N),par(i,out,si.bus(out):>_));
C11 = fi.fir((0.36824137335353946,0.1344698483063542));
C12 = fi.fir((0.49305379395471016,0.32224160966837667));
C13 = fi.fir((0.6137461681615921,0.3832431599216761));
C14 = fi.fir((0.7825273252978009,0.6203300900505291));
C21 = fi.fir((0.49305379395471016,0.32224160966837667));
C22 = fi.fir((0.6137461681615921,0.3832431599216761));
C23 = fi.fir((0.7825273252978009,0.6203300900505291));
C24 = fi.fir((0.21071454705409587,1.4008975865601723));
C31 = fi.fir((0.6137461681615921,0.3832431599216761));
C32 = fi.fir((0.7825273252978009,0.6203300900505291));
C33 = fi.fir((0.21071454705409587,1.4008975865601723));
C34 = fi.fir((0.30922917656286875,0.8529553144340982));
C41 = fi.fir((0.7825273252978009,0.6203300900505291));
C42 = fi.fir((0.21071454705409587,1.4008975865601723));
C43 = fi.fir((0.30922917656286875,0.8529553144340982));
C44 = fi.fir((0.15306151591169526,1.2462587339054818));
C_stack = C11, C12, C13, C14, C21, C22, C23, C24, C31, C32, C33, C34, C41, C42, C43, C44;
C_hat = _<:par(i,in*out,_):C_stack:par(i,out,encoder):par(i,in*out,buffer);
norm2(n) = par(i,n,^(2)):>sqrt:_^(2);
E = par(i,in,_<:(_,_)):par(i,in,(((_':_^(2):_*(1-lambda)),(*(lambda))):>_));
LMS = ((par(i,in*out*N,_<:(_,_)):ro.interleave(2,N*out*in):(si.bus(N*out*in),norm2(in*out*N))), (par(i,in,_<:(_,_)):ro.interleave(2,in):(si.bus(in),E))):(si.bus(in*out*N), ro.cross1n(in), si.bus(in)):(si.bus(in*out*N),par(i,in,_*mu), (((_<:par(i,in,_)), si.bus(in)):ro.interleave(in,2):par(i,in,(_,_):>_):par(i,in,_+delta))):(si.bus(N*out*in),(ro.interleave(in,2):par(i,in,/))):(si.bus(in*out*N),par(i,in,_<:par(i,N*out,_))):(ro.interleave(N*in*out,2):par(i,in*out*N,*));
process = ((par(i,in*out,coeffs), x, encoder):(H,C_hat,(ro.cross1n(in):((par(i,in,_<:(_,_)):ro.interleave(2,in)),_))):(si.bus(N*in*out+out),LMS,(par(i,in,_):>_),_):(par(i,in*out,coeffs),ro.crossNM(out,in*out*N),_,_):((ro.interleave(in*N*out,2):par(i,in*out*N,+)),si.bus(out),_,_))~(par(i,in*out,coeffs)):(par(i,in*out*N,!),si.bus(out),ro.cross1n(1));
|
a5b58ad6f68a41c18a6d5f95686cef4cf367da2842978d014cae1f3fe151b0e1 | inria-emeraude/syfala | mp_fxlms.dsp | declare name "MultiPoint FxLMS algorithm";
declare version "1.0";
declare author "Pierre Lecomte";
declare author "Loic Alexandre";
declare license "CC-BY-NC-SA-4.0";
import("stdfaust.lib");
N = 8;
coeffs = si.bus(N);
in = 4;
out = 4;
in_out = si.bus(in*out);
freq_band = fi.bandpass(4,hslider("s:[0]Signal/s:[2]Noise/[2]Low frequency cut", 100,50,10000,1), hslider("s:[0]Signal/s:[2]Noise/[3]High frequency cut", 500,50,10000,1));
noise = (no.noise:freq_band)*hslider("s:[0]Signal/s:[2]Noise/[1]Volume" , 1,0,10,0.1);
sine_freq = hslider("s:[0]Signal/s:[1]Sine/[2]Frequency",300,50,10000,10);
sine = os.osc(sine_freq)*hslider("s:[0]Signal/s:[1]Sine/[1]Volume" , 1,0,10,0.1);
signal = (sine*checkbox("s:[0]Signal/s:[1]Sine/[0]On/Off"), noise*checkbox("s:[0]Signal/s:[2]Noise/[0]On/Off")):>_*(1-checkbox("s:[0]Signal/[0]Mute")); // Reference signal
x = (signal:_<:(_,_,_)); // Input signal
// Convergence coefficients
mu = -0.001*checkbox("a:[1]ANC/[0]On/Off");
lambda = 0.9;
delta = 1e-5;
reset = 1-button("a:[1]ANC/[1]reset");
// Adapted filters
filter_adapt(n) = (si.bus(n),(_<:(si.bus(n)))):ro.interleave(n,2):sum(i, n, (_,@(i):*));
H = (si.bus(in*N):par(i,in*N,_*reset)),(_<:par(i, in, _)):seq(i,in-1,si.bus(N*(i+1)+i), ro.crossn1(N*in-N*(i+1)), si.bus(out-(i+1))):par(i,in,((si.bus(N)<:si.bus(2*N)),_):(si.bus(N),filter_adapt(N))):seq(i,out-1, si.bus(N*in - (N*(i+1)) + out-(i+1)-1), ro.cross1n(N*(i+1)), si.bus(1+i));
C11 = fi.fir((0.15426163621023734,0.13990026583297194,0.3419448213631925,-0.08147998658519595,-1.4323239839194681,0.17556805486637117,0.02613819048862478,-0.21812066850963366,-0.3171735506873301,-0.29448115138838665,0.0802860847983312,-0.1880481314785973,0.4858874113271277,0.39602445743367076,0.1573725754545663,0.09997056217282939,0.11325260555188824,-0.007982253198280576,-0.00115520267938809,-0.2972004835130559));
C12 = fi.fir((0.03780310849938437,0.22163268988397747,-0.03879051784955264,0.5210354827503156,-0.25049625564422984,-0.8931238656470573,0.2723427944095396,0.07376972055940362,-0.10755564953825623,-0.3102237117627864,-0.04564230381297856,0.13902600773635954,0.29153019878348285,0.19458492178366546,0.1496687642002132,0.29077637768500697,0.18863261439314344,0.023911449509532546,-0.021232476740983854,-0.05702819311744575));
C13 = fi.fir((-0.10638297605146899,0.33734869557486125,-0.13760338294008975,0.5846709363147123,-0.39242597593765005,-0.8246977432459265,0.37254102266156797,-0.03135426357448811,-0.09948961841944677,-0.1451029344865057,-0.12990034700015549,0.0276192711466825,0.32396558287164273,0.06557207609692343,0.12982060549711252,0.356631342324756,0.04981130507022007,0.022052445376414112,-0.12493617018897557,-0.02877739909089169));
C14 = fi.fir((-0.17174361053304715,0.47782370509086514,0.0009718291000705981,0.6751679340429494,-0.3080307980749689,-1.0199111687356635,0.3413798360539741,0.1703587265494544,-0.3571846616554922,-0.16299842928613995,0.01906514932072645,-0.08006430607207694,0.7274043107295661,0.1213674871095215,0.3231846885719528,0.2797943120280541,0.1779574691309212,-0.030935807011217877,0.03015302300706324,0.010856371439442137));
C21 = fi.fir((0.03780310849938437,0.22163268988397747,-0.03879051784955264,0.5210354827503156,-0.25049625564422984,-0.8931238656470573,0.2723427944095396,0.07376972055940362,-0.10755564953825623,-0.3102237117627864,-0.04564230381297856,0.13902600773635954,0.29153019878348285,0.19458492178366546,0.1496687642002132,0.29077637768500697,0.18863261439314344,0.023911449509532546,-0.021232476740983854,-0.05702819311744575));
C22 = fi.fir((-0.10638297605146899,0.33734869557486125,-0.13760338294008975,0.5846709363147123,-0.39242597593765005,-0.8246977432459265,0.37254102266156797,-0.03135426357448811,-0.09948961841944677,-0.1451029344865057,-0.12990034700015549,0.0276192711466825,0.32396558287164273,0.06557207609692343,0.12982060549711252,0.356631342324756,0.04981130507022007,0.022052445376414112,-0.12493617018897557,-0.02877739909089169));
C23 = fi.fir((-0.17174361053304715,0.47782370509086514,0.0009718291000705981,0.6751679340429494,-0.3080307980749689,-1.0199111687356635,0.3413798360539741,0.1703587265494544,-0.3571846616554922,-0.16299842928613995,0.01906514932072645,-0.08006430607207694,0.7274043107295661,0.1213674871095215,0.3231846885719528,0.2797943120280541,0.1779574691309212,-0.030935807011217877,0.03015302300706324,0.010856371439442137));
C24 = fi.fir((-0.22763473623777328,0.09612096165207512,-0.04129638149914681,0.022034978982099464,-0.06633501113800817,-0.12767508581695483,0.862238785758715,0.06363764228707743,0.49301285195393274,0.7158611043018355,0.3064465301459277,-0.01491106723611113,-0.17418753058273115,0.05335480972613289,-0.056222046520141025,-0.19324720248499094,0.32952822221710704,0.0020471693236077115,-0.06582877938917835,-0.018503989844062502));
C31 = fi.fir((-0.10638297605146899,0.33734869557486125,-0.13760338294008975,0.5846709363147123,-0.39242597593765005,-0.8246977432459265,0.37254102266156797,-0.03135426357448811,-0.09948961841944677,-0.1451029344865057,-0.12990034700015549,0.0276192711466825,0.32396558287164273,0.06557207609692343,0.12982060549711252,0.356631342324756,0.04981130507022007,0.022052445376414112,-0.12493617018897557,-0.02877739909089169));
C32 = fi.fir((-0.17174361053304715,0.47782370509086514,0.0009718291000705981,0.6751679340429494,-0.3080307980749689,-1.0199111687356635,0.3413798360539741,0.1703587265494544,-0.3571846616554922,-0.16299842928613995,0.01906514932072645,-0.08006430607207694,0.7274043107295661,0.1213674871095215,0.3231846885719528,0.2797943120280541,0.1779574691309212,-0.030935807011217877,0.03015302300706324,0.010856371439442137));
C33 = fi.fir((-0.22763473623777328,0.09612096165207512,-0.04129638149914681,0.022034978982099464,-0.06633501113800817,-0.12767508581695483,0.862238785758715,0.06363764228707743,0.49301285195393274,0.7158611043018355,0.3064465301459277,-0.01491106723611113,-0.17418753058273115,0.05335480972613289,-0.056222046520141025,-0.19324720248499094,0.32952822221710704,0.0020471693236077115,-0.06582877938917835,-0.018503989844062502));
C34 = fi.fir((-0.008074675445644885,0.05335844949370954,0.09347478934809252,0.03268196091139201,-0.09588717007433799,0.5924451897332562,0.20904594937954638,0.05749359118405339,0.5261434764451411,-0.09010122541780516,0.1596039769479708,0.030309237786168536,-0.01867340116769727,0.0070668270489425596,-0.17656162344230086,0.0032246237128353786,-0.03952089146646609,0.04750488459802345,0.004396452269050633,-0.10221461211128618));
C41 = fi.fir((-0.17174361053304715,0.47782370509086514,0.0009718291000705981,0.6751679340429494,-0.3080307980749689,-1.0199111687356635,0.3413798360539741,0.1703587265494544,-0.3571846616554922,-0.16299842928613995,0.01906514932072645,-0.08006430607207694,0.7274043107295661,0.1213674871095215,0.3231846885719528,0.2797943120280541,0.1779574691309212,-0.030935807011217877,0.03015302300706324,0.010856371439442137));
C42 = fi.fir((-0.22763473623777328,0.09612096165207512,-0.04129638149914681,0.022034978982099464,-0.06633501113800817,-0.12767508581695483,0.862238785758715,0.06363764228707743,0.49301285195393274,0.7158611043018355,0.3064465301459277,-0.01491106723611113,-0.17418753058273115,0.05335480972613289,-0.056222046520141025,-0.19324720248499094,0.32952822221710704,0.0020471693236077115,-0.06582877938917835,-0.018503989844062502));
C43 = fi.fir((-0.008074675445644885,0.05335844949370954,0.09347478934809252,0.03268196091139201,-0.09588717007433799,0.5924451897332562,0.20904594937954638,0.05749359118405339,0.5261434764451411,-0.09010122541780516,0.1596039769479708,0.030309237786168536,-0.01867340116769727,0.0070668270489425596,-0.17656162344230086,0.0032246237128353786,-0.03952089146646609,0.04750488459802345,0.004396452269050633,-0.10221461211128618));
C44 = fi.fir((0.007688745372912309,0.0364270504547291,-0.008398074436020054,0.001767904175039259,-0.024205193685800444,-0.1533003193292018,0.6141737147441828,0.1716614602737368,0.287926071867546,0.5738403845921116,0.03442628828702332,0.1613055983835583,0.024656463192004853,0.03560694233842785,-0.0722974370752899,-0.01825922942350815,-0.1267935072355967,0.1165769913064513,0.07862075575034765,-0.19031735778146));
C_stack = (_:C11), (_:C12), (_:C13), (_:C14), (_:C21), (_:C22), (_:C23), (_:C24), (_:C31), (_:C32), (_:C33), (_:C34), (_:C41), (_:C42), (_:C43), (_:C44);
C_hat = _<:par(i,in*out,_):C_stack:par(i,in*out,buffer):ro.interleave(N,in*out):par(i,N,ro.interleave(in,out):par(i,out,(par(i,in,_):>_)));
buffer = _<:par(i,N,@(i)); // To obtain x_n the reference signal at time n
norm2(n) = par(i,n,^(2)):>sqrt:_^(2);
E = par(i,in,_<:(_,_)):par(i,in,(((_':_^(2):_*(1-lambda)),(*(lambda))):>_));
LMS = ((par(i,in*N,_<:(_,_)):ro.interleave(2,N*in):(si.bus(N*in),norm2(in*N))), (par(i,in,_<:(_,_)):ro.interleave(2,in):(si.bus(in),E))):(si.bus(in*N),ro.cross1n(in), si.bus(in)):(si.bus(in*N),par(i,in,_*mu), (((_<:par(i,in,_)), si.bus(in)):ro.interleave(in,2):par(i,in,(_,_):>_):par(i,in,_+delta))):(si.bus(N*in),(ro.interleave(in,2):par(i,in,/))):(si.bus(in*N),par(i,in,_<:par(i,N,_))):(ro.interleave(N*in,2):par(i,in*N,*)):ro.interleave(in,N);
// 4 inputs / 6 outputs
// INPUTS : 4 microphones
// OUTPUTS : 4 Loudspeaker signals, 1 reference signal, 1 rms error signal
process = ((par(i,in,coeffs), x, par(i,in,_)):(H,C_hat,(ro.cross1n(in):((par(i,in,_<:(_,_)):ro.interleave(2,in)),_))):(si.bus(N*in+out),LMS,(par(i,in,_):>_),_):(par(i,in,si.bus(N)),ro.crossNM(in,in*N),_,_):((ro.interleave(in*N,2):par(i,in*N,+)),si.bus(in),_,_))~(par(i,in,coeffs)):(par(i,in*N,!),si.bus(in),ro.cross1n(1));
| https://raw.githubusercontent.com/inria-emeraude/syfala/7bbb09ecb912c9a66bcb85ebe35590e2b46e51d5/examples/mp_fxlms.dsp | faust | Reference signal
Input signal
Convergence coefficients
Adapted filters
To obtain x_n the reference signal at time n
4 inputs / 6 outputs
INPUTS : 4 microphones
OUTPUTS : 4 Loudspeaker signals, 1 reference signal, 1 rms error signal | declare name "MultiPoint FxLMS algorithm";
declare version "1.0";
declare author "Pierre Lecomte";
declare author "Loic Alexandre";
declare license "CC-BY-NC-SA-4.0";
import("stdfaust.lib");
N = 8;
coeffs = si.bus(N);
in = 4;
out = 4;
in_out = si.bus(in*out);
freq_band = fi.bandpass(4,hslider("s:[0]Signal/s:[2]Noise/[2]Low frequency cut", 100,50,10000,1), hslider("s:[0]Signal/s:[2]Noise/[3]High frequency cut", 500,50,10000,1));
noise = (no.noise:freq_band)*hslider("s:[0]Signal/s:[2]Noise/[1]Volume" , 1,0,10,0.1);
sine_freq = hslider("s:[0]Signal/s:[1]Sine/[2]Frequency",300,50,10000,10);
sine = os.osc(sine_freq)*hslider("s:[0]Signal/s:[1]Sine/[1]Volume" , 1,0,10,0.1);
mu = -0.001*checkbox("a:[1]ANC/[0]On/Off");
lambda = 0.9;
delta = 1e-5;
reset = 1-button("a:[1]ANC/[1]reset");
filter_adapt(n) = (si.bus(n),(_<:(si.bus(n)))):ro.interleave(n,2):sum(i, n, (_,@(i):*));
H = (si.bus(in*N):par(i,in*N,_*reset)),(_<:par(i, in, _)):seq(i,in-1,si.bus(N*(i+1)+i), ro.crossn1(N*in-N*(i+1)), si.bus(out-(i+1))):par(i,in,((si.bus(N)<:si.bus(2*N)),_):(si.bus(N),filter_adapt(N))):seq(i,out-1, si.bus(N*in - (N*(i+1)) + out-(i+1)-1), ro.cross1n(N*(i+1)), si.bus(1+i));
C11 = fi.fir((0.15426163621023734,0.13990026583297194,0.3419448213631925,-0.08147998658519595,-1.4323239839194681,0.17556805486637117,0.02613819048862478,-0.21812066850963366,-0.3171735506873301,-0.29448115138838665,0.0802860847983312,-0.1880481314785973,0.4858874113271277,0.39602445743367076,0.1573725754545663,0.09997056217282939,0.11325260555188824,-0.007982253198280576,-0.00115520267938809,-0.2972004835130559));
C12 = fi.fir((0.03780310849938437,0.22163268988397747,-0.03879051784955264,0.5210354827503156,-0.25049625564422984,-0.8931238656470573,0.2723427944095396,0.07376972055940362,-0.10755564953825623,-0.3102237117627864,-0.04564230381297856,0.13902600773635954,0.29153019878348285,0.19458492178366546,0.1496687642002132,0.29077637768500697,0.18863261439314344,0.023911449509532546,-0.021232476740983854,-0.05702819311744575));
C13 = fi.fir((-0.10638297605146899,0.33734869557486125,-0.13760338294008975,0.5846709363147123,-0.39242597593765005,-0.8246977432459265,0.37254102266156797,-0.03135426357448811,-0.09948961841944677,-0.1451029344865057,-0.12990034700015549,0.0276192711466825,0.32396558287164273,0.06557207609692343,0.12982060549711252,0.356631342324756,0.04981130507022007,0.022052445376414112,-0.12493617018897557,-0.02877739909089169));
C14 = fi.fir((-0.17174361053304715,0.47782370509086514,0.0009718291000705981,0.6751679340429494,-0.3080307980749689,-1.0199111687356635,0.3413798360539741,0.1703587265494544,-0.3571846616554922,-0.16299842928613995,0.01906514932072645,-0.08006430607207694,0.7274043107295661,0.1213674871095215,0.3231846885719528,0.2797943120280541,0.1779574691309212,-0.030935807011217877,0.03015302300706324,0.010856371439442137));
C21 = fi.fir((0.03780310849938437,0.22163268988397747,-0.03879051784955264,0.5210354827503156,-0.25049625564422984,-0.8931238656470573,0.2723427944095396,0.07376972055940362,-0.10755564953825623,-0.3102237117627864,-0.04564230381297856,0.13902600773635954,0.29153019878348285,0.19458492178366546,0.1496687642002132,0.29077637768500697,0.18863261439314344,0.023911449509532546,-0.021232476740983854,-0.05702819311744575));
C22 = fi.fir((-0.10638297605146899,0.33734869557486125,-0.13760338294008975,0.5846709363147123,-0.39242597593765005,-0.8246977432459265,0.37254102266156797,-0.03135426357448811,-0.09948961841944677,-0.1451029344865057,-0.12990034700015549,0.0276192711466825,0.32396558287164273,0.06557207609692343,0.12982060549711252,0.356631342324756,0.04981130507022007,0.022052445376414112,-0.12493617018897557,-0.02877739909089169));
C23 = fi.fir((-0.17174361053304715,0.47782370509086514,0.0009718291000705981,0.6751679340429494,-0.3080307980749689,-1.0199111687356635,0.3413798360539741,0.1703587265494544,-0.3571846616554922,-0.16299842928613995,0.01906514932072645,-0.08006430607207694,0.7274043107295661,0.1213674871095215,0.3231846885719528,0.2797943120280541,0.1779574691309212,-0.030935807011217877,0.03015302300706324,0.010856371439442137));
C24 = fi.fir((-0.22763473623777328,0.09612096165207512,-0.04129638149914681,0.022034978982099464,-0.06633501113800817,-0.12767508581695483,0.862238785758715,0.06363764228707743,0.49301285195393274,0.7158611043018355,0.3064465301459277,-0.01491106723611113,-0.17418753058273115,0.05335480972613289,-0.056222046520141025,-0.19324720248499094,0.32952822221710704,0.0020471693236077115,-0.06582877938917835,-0.018503989844062502));
C31 = fi.fir((-0.10638297605146899,0.33734869557486125,-0.13760338294008975,0.5846709363147123,-0.39242597593765005,-0.8246977432459265,0.37254102266156797,-0.03135426357448811,-0.09948961841944677,-0.1451029344865057,-0.12990034700015549,0.0276192711466825,0.32396558287164273,0.06557207609692343,0.12982060549711252,0.356631342324756,0.04981130507022007,0.022052445376414112,-0.12493617018897557,-0.02877739909089169));
C32 = fi.fir((-0.17174361053304715,0.47782370509086514,0.0009718291000705981,0.6751679340429494,-0.3080307980749689,-1.0199111687356635,0.3413798360539741,0.1703587265494544,-0.3571846616554922,-0.16299842928613995,0.01906514932072645,-0.08006430607207694,0.7274043107295661,0.1213674871095215,0.3231846885719528,0.2797943120280541,0.1779574691309212,-0.030935807011217877,0.03015302300706324,0.010856371439442137));
C33 = fi.fir((-0.22763473623777328,0.09612096165207512,-0.04129638149914681,0.022034978982099464,-0.06633501113800817,-0.12767508581695483,0.862238785758715,0.06363764228707743,0.49301285195393274,0.7158611043018355,0.3064465301459277,-0.01491106723611113,-0.17418753058273115,0.05335480972613289,-0.056222046520141025,-0.19324720248499094,0.32952822221710704,0.0020471693236077115,-0.06582877938917835,-0.018503989844062502));
C34 = fi.fir((-0.008074675445644885,0.05335844949370954,0.09347478934809252,0.03268196091139201,-0.09588717007433799,0.5924451897332562,0.20904594937954638,0.05749359118405339,0.5261434764451411,-0.09010122541780516,0.1596039769479708,0.030309237786168536,-0.01867340116769727,0.0070668270489425596,-0.17656162344230086,0.0032246237128353786,-0.03952089146646609,0.04750488459802345,0.004396452269050633,-0.10221461211128618));
C41 = fi.fir((-0.17174361053304715,0.47782370509086514,0.0009718291000705981,0.6751679340429494,-0.3080307980749689,-1.0199111687356635,0.3413798360539741,0.1703587265494544,-0.3571846616554922,-0.16299842928613995,0.01906514932072645,-0.08006430607207694,0.7274043107295661,0.1213674871095215,0.3231846885719528,0.2797943120280541,0.1779574691309212,-0.030935807011217877,0.03015302300706324,0.010856371439442137));
C42 = fi.fir((-0.22763473623777328,0.09612096165207512,-0.04129638149914681,0.022034978982099464,-0.06633501113800817,-0.12767508581695483,0.862238785758715,0.06363764228707743,0.49301285195393274,0.7158611043018355,0.3064465301459277,-0.01491106723611113,-0.17418753058273115,0.05335480972613289,-0.056222046520141025,-0.19324720248499094,0.32952822221710704,0.0020471693236077115,-0.06582877938917835,-0.018503989844062502));
C43 = fi.fir((-0.008074675445644885,0.05335844949370954,0.09347478934809252,0.03268196091139201,-0.09588717007433799,0.5924451897332562,0.20904594937954638,0.05749359118405339,0.5261434764451411,-0.09010122541780516,0.1596039769479708,0.030309237786168536,-0.01867340116769727,0.0070668270489425596,-0.17656162344230086,0.0032246237128353786,-0.03952089146646609,0.04750488459802345,0.004396452269050633,-0.10221461211128618));
C44 = fi.fir((0.007688745372912309,0.0364270504547291,-0.008398074436020054,0.001767904175039259,-0.024205193685800444,-0.1533003193292018,0.6141737147441828,0.1716614602737368,0.287926071867546,0.5738403845921116,0.03442628828702332,0.1613055983835583,0.024656463192004853,0.03560694233842785,-0.0722974370752899,-0.01825922942350815,-0.1267935072355967,0.1165769913064513,0.07862075575034765,-0.19031735778146));
C_stack = (_:C11), (_:C12), (_:C13), (_:C14), (_:C21), (_:C22), (_:C23), (_:C24), (_:C31), (_:C32), (_:C33), (_:C34), (_:C41), (_:C42), (_:C43), (_:C44);
C_hat = _<:par(i,in*out,_):C_stack:par(i,in*out,buffer):ro.interleave(N,in*out):par(i,N,ro.interleave(in,out):par(i,out,(par(i,in,_):>_)));
norm2(n) = par(i,n,^(2)):>sqrt:_^(2);
E = par(i,in,_<:(_,_)):par(i,in,(((_':_^(2):_*(1-lambda)),(*(lambda))):>_));
LMS = ((par(i,in*N,_<:(_,_)):ro.interleave(2,N*in):(si.bus(N*in),norm2(in*N))), (par(i,in,_<:(_,_)):ro.interleave(2,in):(si.bus(in),E))):(si.bus(in*N),ro.cross1n(in), si.bus(in)):(si.bus(in*N),par(i,in,_*mu), (((_<:par(i,in,_)), si.bus(in)):ro.interleave(in,2):par(i,in,(_,_):>_):par(i,in,_+delta))):(si.bus(N*in),(ro.interleave(in,2):par(i,in,/))):(si.bus(in*N),par(i,in,_<:par(i,N,_))):(ro.interleave(N*in,2):par(i,in*N,*)):ro.interleave(in,N);
process = ((par(i,in,coeffs), x, par(i,in,_)):(H,C_hat,(ro.cross1n(in):((par(i,in,_<:(_,_)):ro.interleave(2,in)),_))):(si.bus(N*in+out),LMS,(par(i,in,_):>_),_):(par(i,in,si.bus(N)),ro.crossNM(in,in*N),_,_):((ro.interleave(in*N,2):par(i,in*N,+)),si.bus(in),_,_))~(par(i,in,coeffs)):(par(i,in*N,!),si.bus(in),ro.cross1n(1));
|
e8113bbc86f5636dc0bd0dd66aee9211db5eb91c39008459522f80a422318d39 | inria-emeraude/syfala | minimoog.dsp | import("stdfaust.lib");
// These are now in separate upstairs directories:
// echo = echog(component("echo.dsp")); // ../echo/echo.dsp
// flanger = flg(component("flanger.dsp")); // ../flanger/flanger.dsp
// chorus = chg(component("chorus.dsp")); // ../chorus/chorus.dsp
// reverb = rg(component("freeverb.dsp")); // ../freeverb/freeverb.dsp
process = main <: _,_; // Now separate: : echo : flanger : chorus : reverb;
main = (signal + attach(extInput,amp) : filters : *(ampScaling)) ~ _;
signal = oscs + noise * noiseOff * namp;
ampScaling = envelopeAmp * masterVolume; // masterVolume is redundant but easier to find
oscs = par(i,3,(oscamp(i+1)*osc(i+1))) :> _;
controlSelect(1) = osc1(vrockerred); // ("[0] use as LFO"));
octaveSelect(1) = osc1(vslider("[1] Octave1 [midi:ctrl 23] [style:knob]",1,0,5,1):int); // LO, 32', 16', 8', 4', 2'
// Osc1 detunes like Osc2 and Osc3 (unlike in the Minimoog where it would be an expensive extra knob):
detuneOctaves(1) = osc1(vslider("[2] DeTuning1 [units:Octaves] [midi:ctrl 24] [style:knob]",0.0,-1.0,1.0,0.001));
waveSelect(1) = osc1(vslider("[3] Waveform1 [midi:ctrl 25] [style:knob]",5,0,5,1):int);
amp1Enable = mr1(vslider("[1] amp1Enable [midi:ctrl 12] [style:knob] [color:blue]",1,0,1,1));
oscamp(1) = mr1(vslider("[0] Osc1 Amp [midi:ctrl 26] [style:knob]",0.5,0.0,1.0,0.001)) * amp1Enable;
eei = mr2(vslider("[1] extInputOn [midi:ctrl 13] [style:knob] [color:blue]",0,0,1,1)); // External input = MAIN OUTPUT when "off"
sei = mr2(vslider("[0] Ext Input [midi:ctrl 27] [style: knob]",0,0,1.0,0.001));
extInput(fb,extSig) = fb,extSig : select2(eei) : *(sei) : extClipLED;
extClipLED = _ <: _, (abs : >(0.95) : mr2(vbargraph("[2] Ext Input Clip [style:led]",0,1)):!);
keycLED = attach(mr2(vbargraph("[3] Keyboard Ctl [style:led]",0,1)));
controlSelect(2) = osc2(vrockerred); // ("[0] use as LFO"));
octaveSelect(2) = osc2(vslider("[1] Octave2 [midi:ctrl 28] [style:knob]",1,0,5,1):int); // LO, 32', 16', 8', 4', 2'
detuneOctaves(2) = osc2(vslider("[2] DeTuning2 [units:Octaves] [midi:ctrl 29] [style:knob]",0.41667,-1.0,1.0,0.001));
waveSelect(2) = osc2(vslider("[3] Waveform2 [midi:ctrl 30] [style:knob]",5,0,5,1):int);
amp2Enable = mr3(vslider("[1] amp2Enable [midi:ctrl 14] [style:knob] [color:blue]",1,0,1,1));
oscamp(2) = mr3(vslider("[0] Osc2 Amp [midi:ctrl 31] [style:knob]",0.5,0.0,1.0,0.001)) * amp2Enable;
noise = select2(ntype,no.noise,10.0*no.pink_noise); // pink noise needs some "make-up gain"
namp = mr4(vslider("[0] Noise Amp [midi:ctrl 32] [style: knob]",0.0,0.0,1.0,0.001));
noiseOff = mr4cbg(vslider("[0] noiseEnable [midi:ctrl 15] [style:knob] [color:blue]",0,0,1,1));
ntype = mr4cbg(vslider("[1] White/Pink [midi:ctrl 16] [tooltip: Choose either White or Pink Noise] [style: knob] [color:blue]",1,0,1,1));
controlSelect(3) = osc3(vrockerred); // ("[0] use as LFO"));
octaveSelect(3) = osc3(vslider("[1] Octave3 [midi:ctrl 33] [style:knob]",0,0,5,1):int); // LO, 32', 16', 8', 4', 2'
detuneOctaves(3) = osc3(vslider("[2] DeTuning3 [units:Octaves] [midi:ctrl 34] [style:knob]",0.3,-1.0,1.0,0.001));
waveSelect(3) = osc3(vslider("[3] Waveform3 [midi:ctrl 35] [style:knob]",0,0,5,1):int);
amp3Enable = mr5(vslider("[1] amp3Enable [midi:ctrl 17] [style:knob] [color:blue]",0,0,1,1));
oscamp(3) = mr5(vslider("[0] Osc3 Amp [midi:ctrl 36] [style:knob]",0.5,0.0,1.0,0.001)) * amp3Enable;
waveforms(i) = (tri(i), bent(i), saw(i), sq(i), ptm(i), ptn(i));
// compute oscillator frequency scale factor, staying in lg(Hz) as much as possible:
modWheelShift = 1.5*modWheel; // Manual says 0 to 1.5 octaves
modulationCenterShift = 0; // Leave this off until triangle-wave modulation is debugged
modulationShift = select2(oscModEnable, 0.0,
modWheelShift * ( modulationCenterShift + (1.0-modulationCenterShift) * oscNoiseModulation ));
octaveShift(i) = -2+int(octaveSelect(i));
osc3FixedFreq = 369.994; // F# a tritone above middle C
keyFreqGlidedMaybe = select2(osc3Control,osc3FixedFreq,keyFreqGlided);
keyFreqModulatedShifted(3) = keyFreqGlidedMaybe; // osc3 not allowed to FM itself
keyFreqModulatedShifted(i) = keyFreqGlided * pow(2.0, modulationShift); // i=1,2
// When disconnected from the keyboard, Osc3 can detune 3 octaves up or down (Pat video):
detuneBoost(3) = select2(osc3Control,3.0,1.0);
detuneBoost(i) = 1.0; // i=1,2
detuneOctavesFinal(i) = detuneOctaves(i)*detuneBoost(i);
fBase(i) = keyFreqModulatedShifted(i) * pow(2.0, (masterTuneOctaves+octaveShift(i)+detuneOctavesFinal(i)))
: si.smooth(ba.tau2pole(0.016));
fLFOBase(i) = 3.0 * pow(2.0, detuneOctavesFinal(i)); // used when osc3 (only) is in LFO mode
lfoMode(i) = (octaveSelect(i) == 0);
f(i) = select2(lfoMode(i), fBase(i), fLFOBase(i)); // lowest range setting is LFO mode for any osc
// i is 1-based:
osc(i) = ba.selectn(6, int(waveSelect(i)), tri(i), bent(i), saw(i), sq(i), ptm(i), ptn(i));
tri(i) = select2(lfoMode(i),
os.triangle(f(i)),
os.lf_triangle(f(i)));
bent(i) = 0.5*tri(i) + 0.5*saw(i); // from Minimoog manual
saw(i) = select2(lfoMode(i),
os.sawtooth(f(i)),
os.lf_saw(f(i)));
sq(i) = select2(lfoMode(i),
os.square(f(i)),
os.lf_squarewave(f(i)));
ptm(i) = select2(lfoMode(i), // Note: a Duty knob would be better than these two, or in addition
os.pulsetrain(f(i),0.25),
lf_pulsetrain(f(i),0.25));
ptn(i) = select2(lfoMode(i),
os.pulsetrain(f(i),0.125),
lf_pulsetrain(f(i),0.125));
// Soon to appear in oscillators.lib:
lf_pulsetrain(freq,duty) = 2.0*os.lf_pulsetrainpos(freq,duty) - 1.0;
filters = ba.bypass1(bp,vcf); // BYPASS WILL GO AWAY (I think you just open it up all the way to bypass):
bp = 0; // VCF is always on
fcLgHz = vcf1(vslider("[1] Corner Freq [unit:Log2(Hz)]
[tooltip: Corner resonance frequency in Log2(Hertz)]
[style: knob]
[midi:ctrl 74]", // Frequency Cutoff (aka Brightness )
10.6, log(40.0)/log(2), log(20000.0)/log(2), 0.000001)) // 9 octaves (from Minimoog manual)
//p: 40, 30, 80, 0.01))
//p: : ba.pianokey2hz
: si.smooth(ba.tau2pole(0.016));
res = vcf1(vslider("[2] Corner Resonance [midi:ctrl 37] [tooltip: Resonance Q at VCF corner frequency (0 to 1)]
[style: knob]",
0.7, 0, 1, 0.01));
vcfKeyRange = vcf1cbg(vslider("[2] Kbd Ctl [midi:ctrl 38] [tooltip: Keyboard tracking of VCF corner-frequency (0=none, 1=full)]
[style: knob]",
1, 0, 1, 0.001)); // was in mr2
vcfModEnable = vcf1cbg(vslider("[1] Filter Mod. [midi:ctrl 19] [color:red] [style:knob] [tooltip: Filter Modulation => Route Modulation Mix output to VCF frequency]",1,0,1,1));
// Note that VCF has three sources of corner-frequency setting that are added together:
// - Corner Freq knob (40 Hz to 20 kHz)
// - VCF Contour envelope (0 to 4 octaves)
// - Injection 32 of Modulation Mix (0 to 1.5 octaves)
// Manual says maximum vcf sweep spans 0 to 4 octaves:
// Original Knob went to 10, but we're going to 4 so we can say the knob is in "octaves" units:
vcfContourAmountOctaves = vcf1(vslider("[3] Amount of Contour (octaves) [midi:ctrl 39] [style: knob]", 1.2, 0, 4.0, 0.001));
vcfContourOctaves = vcfContourAmountOctaves * envelopeVCF; // in octaves
// We are assuming that the modulation-mix range for the VCF freq is 1.5 octaves like it is for oscs 1 and 2:
vcfModMixModulationOctaves = select2(vcfModEnable, 0, (1.5 * oscNoiseModulation * modWheel)); // octaves
vcfModulationOctaves = vcfModMixModulationOctaves + vcfContourOctaves;
keyFreqLogHzGlided = log(keyFreqGlided)/log(2.0); // FIXME: Start w freqLogHz not freq so we don't need exp(log()) here
keyShiftOctaves = keyFreqLogHzGlided - log(261.625565)/log(2.0); // FIXME: ARBITRARILY centering on middle C - check device
vcfKeyShiftOctaves = vcfKeyRange * keyShiftOctaves;
modulatedFcLgHz = fcLgHz + vcfModulationOctaves + vcfKeyShiftOctaves;
fc = min((0.5*ma.SR), pow(2.0,modulatedFcLgHz));
vcf = ve.moog_vcf_2bn(res,fc);
// Attack, Decay, and Sustain ranges are set according to the Minimoog manual:
attT60VCF = 0.001 * vcf2(vslider("[0] AttackF [midi:ctrl 40] [tooltip: Attack Time] [unit:ms] [style: knob]",1400,10,10000,1));
decT60VCF = 0.001 * vcf2(vslider("[0] DecayF [midi:ctrl 41] [tooltip: Decay-to-Sustain Time] [unit:ms] [style: knob]",10,10,10000,1));
susLvlVCF = 0.01 * vcf2(vslider("[0] SustainF [midi:ctrl 42] [tooltip: Sustain level as percent of max] [style: knob]",80,0,100,0.1));
decayButton = wg(vslider("Decay [midi:ctrl 20] [tooltip:Envelope Release either Decay value or 0][style:knob]",1,0,1,1):int); // was Staccato
legatoButton = wg(vslider("GlideEnable [midi:ctrl 65] [tooltip: Glide from note to note][style:knob]",1,0,1,1)); // was Legato
relT60VCF = select2(decayButton,0.010,decT60VCF);
envelopeVCF = en.adsre(attT60VCF,decT60VCF,susLvlVCF,relT60VCF,gate);
// --- Smart Keyboard interface ---
declare interface "SmartKeyboard{
'Number of Keyboards':'2',
'Keyboard 0 - Number of Keys':'13',
'Keyboard 1 - Number of Keys':'13',
'Keyboard 0 - Lowest Key':'72',
'Keyboard 1 - Lowest Key':'60'
}";
// --- functions ---
// Signal controls:
keyDownHold = gg(vslider("[0] gateHold [tooltip: lock sustain pedal on (hold gate set at 1)][style:knob]",0,0,1,1));
keyDown = gg(button("[1] gate [tooltip: The gate signal is 1 during a
note and 0 otherwise. For MIDI, NoteOn occurs when the gate
transitions from 0 to 1, and NoteOff is an event corresponding
to the gate transition from 1 to 0. The name of this Faust
button must be 'gate'.]"));
sustain = gg(button("[1] sustain [midi:ctrl 64]
[tooltip: extends the gate (keeps it set to 1)]")); // MIDI only (see smartkeyb doc)
gate = keyDown + keyDownHold + sustain : min(1);
attT60 = 0.001 * ng(vslider("[0] AttackA [midi:ctrl 43] [tooltip: Attack Time] [unit:ms] [style: knob]",2,0,5000,0.1));
decT60 = 0.001 * ng(vslider("[0] DecayA [midi:ctrl 44] [tooltip: Decay-to-Sustain Time] [unit:ms] [style: knob]",10,0,10000,0.1));
susLvl = 0.01 * ng(vslider("[0] SustainA [midi:ctrl 45] [tooltip: Sustain level as percent of max] [style: knob]",80,0,100,0.1));
relT60 = select2(decayButton,0.010,decT60); // right?
envelopeAmpNoAM = en.adsre(attT60,decT60,susLvl,relT60,gate);
AMDepth = 0.5;
envelopeAmp = select2(oscModEnable, envelopeAmpNoAM,
envelopeAmpNoAM * (1.0 + AMDepth*modWheel * 0.5 * (1.0+oscNoiseModulation)));
// Signal Parameters
ampL = volg(vslider("[1] gain [style:knob] [tooltip: Amplitude]",0.2,0,1.0,0.001));
amp = ampL : si.smoo; // envelopeAmp is multiplied once on entire signal sum
//elecGuitar.dsp values used:
bend = wg(ba.semi2ratio(hslider("[0] bend [style:knob] [midi:pitchwheel]",0,-2,2,0.01))) : si.polySmooth(gate,0.999,1);
//Previous guess:
modWheel = wg(vslider("[1] mod [midi:ctrl 1] [style:knob] [tooltip: PitchModulation amplitude in octaves]",
0,0,1.0,0.01)) : si.polySmooth(gate,0.999,1);
//p: MIDI requires frequency in Hz, not piano-keys as we had before
// Frequency Range is 0.1 Hz to 20 kHz according to the Minimoog manual:
// MIDI REQUIRES THE FOLLOWING PARAMETER TO BE NAMED 'freq':
keyFreqBent = bend * kg(hslider("[2] freq [unit:Hz] [style:knob]",220,0.1,20000,0.1));
masterVolume = vg(vslider("MasterVolume [style:knob] [midi:ctrl 7] [tooltip: master volume, MIDI controlled]",
0.7,0,1,0.001))
: si.smooth(ba.tau2pole(0.16));
masterTuneOctaves = dg(vslider("[0] Tune [midi:ctrl 47] [unit:Octaves] [style:knob]
[tooltip: Frequency-shift up or down for all oscillators in Octaves]", 0.0,-1.0,1.0,0.001));
// Oscillator Modulation HrockerRed => apply Modulation Mix output osc1&2 pitches
glide = gmmg(vslider("[0] Glide [midi:ctrl 5] [unit:sec/octave] [style:knob] [scale:log]
[tooltip: Portamento (frequency-glide) in seconds per octave]",
0.008,0.001,1.0,0.001));
legatoPole = select2(legatoButton,0.5,ba.tau2pole(glide*exp(1.0f)/2.0f)); // convert 1/e to 1/2 by slowing down exp
keyFreqGlided = keyFreqBent : si.smooth(legatoPole);
mmix = gmmg(vslider("[1] Mod. Mix [midi:ctrl 48] [style:knob] [tooltip: Modulation Mix: Osc3 (0) to Noise (1)]",
0.0,0.0,1.0,0.001));
oscNoiseModulation = (mmix * noise) + ((1.0-mmix) * osc(3)); // noise amplitude and off-switch ignored here
oscModEnable = dsg(vslider("[0] Osc. Mod. [midi:ctrl 22] [color:red] [style:knob] [tooltip:Oscillator Modulation adds Modulation Mix output to osc1&2 frequencies",1,0,1,1)); // any offset?
osc3Control = dsg(vslider("[1] Osc. 3 Ctl [midi:ctrl 9] [color:red] [style:knob] [tooltip:Oscillator 3 frequency tracks the keyboard if on, else not",0,0,1,1):int);
// This layout loosely follows the MiniMoog-V
// Arturia-only features are labeled
// Original versions also added where different
// Need vrocker and hrocker toggle switches in Faust!
// Need orange and blue color choices
// Orange => Connect modulation sources to their destinations
// Blue => Turn audio sources On and Off
// - and later -
// White => Turn performance features On and Off
// Black => Select between modulation sources
// Julius Smith for Analog Devices 3/1/2017
vrocker(x) = checkbox("%%x [style:vrocker]");
hrocker(x) = checkbox("%%x [style:hrocker]");
vrockerblue(x) = checkbox("%x [style:vrocker] [color:blue]");
vrockerblue(x) = checkbox("%x [style:vrocker] [color:blue]");
// USAGE: vrockerorange("[0] ModulationEnable");
hrockerblue(x) = checkbox("%%x [style:hrocker] [color:blue]");
vrockerred(x) = checkbox("%%x [style:vrocker] [color:red]");
hrockerred(x) = checkbox("%%x [style:hrocker] [color:red]");
declare designer "Robert A. Moog";
mmg(x) = hgroup("",x); // Minimoog + Effects
synthg(x) = mmg(vgroup("[0] Minimoog",x));
fxg(x) = mmg(hgroup("[1] Effects",x));
mg(x) = synthg(hgroup("[0]",x));
cg(x) = mg(vgroup("[0] Controllers",x)); // Formerly named "Modules" but "Minimoog" group-title is enough
vg(x) = cg(hgroup("[0] Master Volume", x));
dg(x) = cg(hgroup("[1] Oscillator Tuning & Switching", x));
// Tune knob = master tune
dsg(x) = dg(vgroup("[1] Switches", x));
// Oscillator Modulation HrockerRed => apply Modulation Mix output to osc1&2 pitches
// [MOVED here from osc3 group] Osc 3 Control VrockerRed => use osc3 as LFO instead of osc3
gmmg(x) = cg(hgroup("[2] Glide and ModMix", x));
// Glide knob [0:10] = portamento speed
// Modulation Mix knob [0:10] (between Osc3 and Noise) = mix of noise and osc3 modulating osc1&2 pitch and/or VCF freq
og(x) = mg(vgroup("[1] Oscillator Bank", x));
osc1(x) = og(hgroup("[1] Oscillator 1", x));
// UNUSED Control switch (for alignment) - Could put Oscillator Modulation switch there
// Range rotary switch: LO (slow pulses or rhythm), 32', 16', 8', 4', 2'
// Frequency <something> switch: LED to right
// Waveform rotary switch: tri, impulse/bent-triangle, saw, pulseWide, pulseMed, pulseNarrow
osc2(x) = og(hgroup("[2] Oscillator 2", x));
// UNUSED (originall) or Osc 2 Control VrockerRed
// Range rotary switch: LO, 32', 16', 8', 4', 2'
// Detuning knob: -7 to 7 [NO SWITCH]
// Waveform rotary switch: tri, impulse(?), saw, pulseWide, pulseMed, pulseNarrow
osc3(x) = og(hgroup("[3] Oscillator 3", x));
// Osc 3 Control VrockerRed => use osc3 as LFO instead of osc3
// Range rotary switch: LO, 32', 16', 8', 4', 2'
// Detuning knob: -7 to 7 [NO SWITCH]
// Waveform rotary switch: tri, impulse(?), saw, pulseWide, pulseMed, pulseNarrow
mixg(x) = mg(vgroup("[2] Mixer", x));
// Each row 5 slots to maintain alignment and include red rockers joining VCF area:
mr1(x) = mixg(hgroup("[0] Osc1", x)); // mixer row 1 =
// Osc1 Volume and Osc1 HrockerBlue & _ & _ & Filter Modulation HrockerRed
// Filter Modulation => Modulation Mix output to VCF freq
mr2(x) = mixg(hgroup("[1] Ext In, KeyCtl", x)); // row 2 = Ext In HrockerBlue and Vol and Overload LED and Keyboard Ctl HrockerRed 1
mr3(x) = mixg(hgroup("[2] Osc2", x)); // = Osc2 Volume and Osc2 HrockerBlue and Keyboard Ctl HrockerRed 2
// Keyboard Control Modulation 1&2 => 0, 1/3, 2/3, all of Keyboard Control Signal ("gate?") applied to VCF freq
mr4(x) = mixg(hgroup("[3] Noise", x)); // = Noise HrockerBlue and Volume and Noise Type VrockerBlue
mr4cbg(x) = mr4(vgroup("[1]", x)); // = Noise Off and White/Pink selection
// two rockers
mr5(x) = mixg(hgroup("[4] Osc3", x)); // Osc3 Volume and Osc3 HrockerBlue
modg(x) = mg(vgroup("[3] Modifiers", x));
vcfg(x) = modg(vgroup("[0] Filter", x));
vcf1(x) = vcfg(hgroup("[0] [tooltip:freq, Q, ContourScale]", x));
vcf1cbg(x) = vcf1(vgroup("[0] [tooltip:two checkboxes]", x));
// Filter Modulation switch
// VCF Off switch
// Corner Frequency knob
// Filter Emphasis knob
// Amount of Contour knob
vcf2(x) = vcfg(hgroup("[1] Filter Contour [tooltip:AttFilt, DecFilt, Sustain Level for Filter Contour]", x));
// Attack Time knob
// Decay Time knob
// Sustain Level knob
ng(x) = modg(hgroup("[1] Loudness Contour", x));
// Attack Time knob
// Decay Time knob
// Sustain Level knob
echog(x) = fxg(hgroup("[4] Echo",x));
ekg(x) = echog(vgroup("[0] Knobs",x));
esg(x) = echog(vgroup("[1] Switches",x));
flg(x) = fxg(hgroup("[5] Flanger",x));
flkg(x) = flg(vgroup("[0] Knobs",x));
flsg(x) = flg(vgroup("[1] Switches",x));
chg(x) = fxg(hgroup("[6] Chorus",x));
ckg(x) = chg(vgroup("[0] Knobs",x));
csg(x) = chg(vgroup("[1] Switches",x));
rg(x) = fxg(hgroup("[7] Reverb",x));
rkg(x) = rg(vgroup("[0] Knobs",x));
rsg(x) = rg(vgroup("[1] Switches",x));
outg(x) = fxg(vgroup("[8] Output", x));
volg(x) = outg(hgroup("[0] Volume Main Output", x));
// Volume knob [0-10]
// Unison switch (Arturia) or Output connect/disconnect switch (original)
// When set, all voices are stacked and instrument is in mono mode
tunerg(x) = outg(hgroup("[1] A-440 Switch", x));
vdtpolyg(x) = outg(hgroup("[2] Voice Detune / Poly", x));
// Voice Detune knob [0-10] (Arturia) or
// Polyphonic switch [red LED below] (Arturia)
// When set, instrument is in polyphonic mode with one oscillator per key
clipg(x) = fxg(vgroup("[9] Soft Clip", x));
// Soft Clipping switch [red LED above]
kg(x) = synthg(hgroup("[1] Keyboard Group", x)); // Keyboard was 3 1/2 octaves
ws(x) = kg(vgroup("[0] Wheels and Switches", x));
s1g(x) = ws(hgroup("[0] Jacks and Rockers", x));
jg(x) = s1g(vgroup("[0] MiniJacks",x));
gdlg(x) = s1g(vgroup("[1] Glide/Decay/Legato Enables",x)); // Arturia
// Glide Hrocker (see original Button version below)
// Decay Hrocker (see original Button version below) => Sets Release (R) of ADSR to either 0 or Decay (R)
// Legato Hrocker (not in original)
s2g(x) = ws(hgroup("[1] [tooltip:Wheels+]", x));
bg(x) = s2g(vgroup("[0] [tooltip:Bend Enable and Range]", x));
wg(x) = s2g(hgroup("[1] [tooltip:Bend and Mod Wheels]", x));
// Using Glide/Decay/Legato enables above following Arturia:
// dg(x) = s2g(hgroup("[2] Glide and Decay momentary pushbuttons", x));
// Glide Button injects portamento as set by Glide knob
// Decay Button uses decay of Loudness Contour (else 0)
keys(x) = kg(hgroup("[1] [tooltip:Keys]", x));
gg(x) = keys(hgroup("[0] [tooltip: Gates]",x));
// leave slot 1 open for sustain (below)
| https://raw.githubusercontent.com/inria-emeraude/syfala/422fa12cbf9475de17ad7ddafd5c04cc47d6f0d3/examples/minimoog.dsp | faust | These are now in separate upstairs directories:
echo = echog(component("echo.dsp")); // ../echo/echo.dsp
flanger = flg(component("flanger.dsp")); // ../flanger/flanger.dsp
chorus = chg(component("chorus.dsp")); // ../chorus/chorus.dsp
reverb = rg(component("freeverb.dsp")); // ../freeverb/freeverb.dsp
Now separate: : echo : flanger : chorus : reverb;
masterVolume is redundant but easier to find
("[0] use as LFO"));
LO, 32', 16', 8', 4', 2'
Osc1 detunes like Osc2 and Osc3 (unlike in the Minimoog where it would be an expensive extra knob):
External input = MAIN OUTPUT when "off"
("[0] use as LFO"));
LO, 32', 16', 8', 4', 2'
pink noise needs some "make-up gain"
("[0] use as LFO"));
LO, 32', 16', 8', 4', 2'
compute oscillator frequency scale factor, staying in lg(Hz) as much as possible:
Manual says 0 to 1.5 octaves
Leave this off until triangle-wave modulation is debugged
F# a tritone above middle C
osc3 not allowed to FM itself
i=1,2
When disconnected from the keyboard, Osc3 can detune 3 octaves up or down (Pat video):
i=1,2
used when osc3 (only) is in LFO mode
lowest range setting is LFO mode for any osc
i is 1-based:
from Minimoog manual
Note: a Duty knob would be better than these two, or in addition
Soon to appear in oscillators.lib:
BYPASS WILL GO AWAY (I think you just open it up all the way to bypass):
VCF is always on
Frequency Cutoff (aka Brightness )
9 octaves (from Minimoog manual)
p: 40, 30, 80, 0.01))
p: : ba.pianokey2hz
was in mr2
Note that VCF has three sources of corner-frequency setting that are added together:
- Corner Freq knob (40 Hz to 20 kHz)
- VCF Contour envelope (0 to 4 octaves)
- Injection 32 of Modulation Mix (0 to 1.5 octaves)
Manual says maximum vcf sweep spans 0 to 4 octaves:
Original Knob went to 10, but we're going to 4 so we can say the knob is in "octaves" units:
in octaves
We are assuming that the modulation-mix range for the VCF freq is 1.5 octaves like it is for oscs 1 and 2:
octaves
FIXME: Start w freqLogHz not freq so we don't need exp(log()) here
FIXME: ARBITRARILY centering on middle C - check device
Attack, Decay, and Sustain ranges are set according to the Minimoog manual:
was Staccato
was Legato
--- Smart Keyboard interface ---
--- functions ---
Signal controls:
MIDI only (see smartkeyb doc)
right?
Signal Parameters
envelopeAmp is multiplied once on entire signal sum
elecGuitar.dsp values used:
Previous guess:
p: MIDI requires frequency in Hz, not piano-keys as we had before
Frequency Range is 0.1 Hz to 20 kHz according to the Minimoog manual:
MIDI REQUIRES THE FOLLOWING PARAMETER TO BE NAMED 'freq':
Oscillator Modulation HrockerRed => apply Modulation Mix output osc1&2 pitches
convert 1/e to 1/2 by slowing down exp
noise amplitude and off-switch ignored here
any offset?
This layout loosely follows the MiniMoog-V
Arturia-only features are labeled
Original versions also added where different
Need vrocker and hrocker toggle switches in Faust!
Need orange and blue color choices
Orange => Connect modulation sources to their destinations
Blue => Turn audio sources On and Off
- and later -
White => Turn performance features On and Off
Black => Select between modulation sources
Julius Smith for Analog Devices 3/1/2017
USAGE: vrockerorange("[0] ModulationEnable");
Minimoog + Effects
Formerly named "Modules" but "Minimoog" group-title is enough
Tune knob = master tune
Oscillator Modulation HrockerRed => apply Modulation Mix output to osc1&2 pitches
[MOVED here from osc3 group] Osc 3 Control VrockerRed => use osc3 as LFO instead of osc3
Glide knob [0:10] = portamento speed
Modulation Mix knob [0:10] (between Osc3 and Noise) = mix of noise and osc3 modulating osc1&2 pitch and/or VCF freq
UNUSED Control switch (for alignment) - Could put Oscillator Modulation switch there
Range rotary switch: LO (slow pulses or rhythm), 32', 16', 8', 4', 2'
Frequency <something> switch: LED to right
Waveform rotary switch: tri, impulse/bent-triangle, saw, pulseWide, pulseMed, pulseNarrow
UNUSED (originall) or Osc 2 Control VrockerRed
Range rotary switch: LO, 32', 16', 8', 4', 2'
Detuning knob: -7 to 7 [NO SWITCH]
Waveform rotary switch: tri, impulse(?), saw, pulseWide, pulseMed, pulseNarrow
Osc 3 Control VrockerRed => use osc3 as LFO instead of osc3
Range rotary switch: LO, 32', 16', 8', 4', 2'
Detuning knob: -7 to 7 [NO SWITCH]
Waveform rotary switch: tri, impulse(?), saw, pulseWide, pulseMed, pulseNarrow
Each row 5 slots to maintain alignment and include red rockers joining VCF area:
mixer row 1 =
Osc1 Volume and Osc1 HrockerBlue & _ & _ & Filter Modulation HrockerRed
Filter Modulation => Modulation Mix output to VCF freq
row 2 = Ext In HrockerBlue and Vol and Overload LED and Keyboard Ctl HrockerRed 1
= Osc2 Volume and Osc2 HrockerBlue and Keyboard Ctl HrockerRed 2
Keyboard Control Modulation 1&2 => 0, 1/3, 2/3, all of Keyboard Control Signal ("gate?") applied to VCF freq
= Noise HrockerBlue and Volume and Noise Type VrockerBlue
= Noise Off and White/Pink selection
two rockers
Osc3 Volume and Osc3 HrockerBlue
Filter Modulation switch
VCF Off switch
Corner Frequency knob
Filter Emphasis knob
Amount of Contour knob
Attack Time knob
Decay Time knob
Sustain Level knob
Attack Time knob
Decay Time knob
Sustain Level knob
Volume knob [0-10]
Unison switch (Arturia) or Output connect/disconnect switch (original)
When set, all voices are stacked and instrument is in mono mode
Voice Detune knob [0-10] (Arturia) or
Polyphonic switch [red LED below] (Arturia)
When set, instrument is in polyphonic mode with one oscillator per key
Soft Clipping switch [red LED above]
Keyboard was 3 1/2 octaves
Arturia
Glide Hrocker (see original Button version below)
Decay Hrocker (see original Button version below) => Sets Release (R) of ADSR to either 0 or Decay (R)
Legato Hrocker (not in original)
Using Glide/Decay/Legato enables above following Arturia:
dg(x) = s2g(hgroup("[2] Glide and Decay momentary pushbuttons", x));
Glide Button injects portamento as set by Glide knob
Decay Button uses decay of Loudness Contour (else 0)
leave slot 1 open for sustain (below) | import("stdfaust.lib");
main = (signal + attach(extInput,amp) : filters : *(ampScaling)) ~ _;
signal = oscs + noise * noiseOff * namp;
oscs = par(i,3,(oscamp(i+1)*osc(i+1))) :> _;
detuneOctaves(1) = osc1(vslider("[2] DeTuning1 [units:Octaves] [midi:ctrl 24] [style:knob]",0.0,-1.0,1.0,0.001));
waveSelect(1) = osc1(vslider("[3] Waveform1 [midi:ctrl 25] [style:knob]",5,0,5,1):int);
amp1Enable = mr1(vslider("[1] amp1Enable [midi:ctrl 12] [style:knob] [color:blue]",1,0,1,1));
oscamp(1) = mr1(vslider("[0] Osc1 Amp [midi:ctrl 26] [style:knob]",0.5,0.0,1.0,0.001)) * amp1Enable;
sei = mr2(vslider("[0] Ext Input [midi:ctrl 27] [style: knob]",0,0,1.0,0.001));
extInput(fb,extSig) = fb,extSig : select2(eei) : *(sei) : extClipLED;
extClipLED = _ <: _, (abs : >(0.95) : mr2(vbargraph("[2] Ext Input Clip [style:led]",0,1)):!);
keycLED = attach(mr2(vbargraph("[3] Keyboard Ctl [style:led]",0,1)));
detuneOctaves(2) = osc2(vslider("[2] DeTuning2 [units:Octaves] [midi:ctrl 29] [style:knob]",0.41667,-1.0,1.0,0.001));
waveSelect(2) = osc2(vslider("[3] Waveform2 [midi:ctrl 30] [style:knob]",5,0,5,1):int);
amp2Enable = mr3(vslider("[1] amp2Enable [midi:ctrl 14] [style:knob] [color:blue]",1,0,1,1));
oscamp(2) = mr3(vslider("[0] Osc2 Amp [midi:ctrl 31] [style:knob]",0.5,0.0,1.0,0.001)) * amp2Enable;
namp = mr4(vslider("[0] Noise Amp [midi:ctrl 32] [style: knob]",0.0,0.0,1.0,0.001));
noiseOff = mr4cbg(vslider("[0] noiseEnable [midi:ctrl 15] [style:knob] [color:blue]",0,0,1,1));
ntype = mr4cbg(vslider("[1] White/Pink [midi:ctrl 16] [tooltip: Choose either White or Pink Noise] [style: knob] [color:blue]",1,0,1,1));
detuneOctaves(3) = osc3(vslider("[2] DeTuning3 [units:Octaves] [midi:ctrl 34] [style:knob]",0.3,-1.0,1.0,0.001));
waveSelect(3) = osc3(vslider("[3] Waveform3 [midi:ctrl 35] [style:knob]",0,0,5,1):int);
amp3Enable = mr5(vslider("[1] amp3Enable [midi:ctrl 17] [style:knob] [color:blue]",0,0,1,1));
oscamp(3) = mr5(vslider("[0] Osc3 Amp [midi:ctrl 36] [style:knob]",0.5,0.0,1.0,0.001)) * amp3Enable;
waveforms(i) = (tri(i), bent(i), saw(i), sq(i), ptm(i), ptn(i));
modulationShift = select2(oscModEnable, 0.0,
modWheelShift * ( modulationCenterShift + (1.0-modulationCenterShift) * oscNoiseModulation ));
octaveShift(i) = -2+int(octaveSelect(i));
keyFreqGlidedMaybe = select2(osc3Control,osc3FixedFreq,keyFreqGlided);
detuneBoost(3) = select2(osc3Control,3.0,1.0);
detuneOctavesFinal(i) = detuneOctaves(i)*detuneBoost(i);
fBase(i) = keyFreqModulatedShifted(i) * pow(2.0, (masterTuneOctaves+octaveShift(i)+detuneOctavesFinal(i)))
: si.smooth(ba.tau2pole(0.016));
lfoMode(i) = (octaveSelect(i) == 0);
osc(i) = ba.selectn(6, int(waveSelect(i)), tri(i), bent(i), saw(i), sq(i), ptm(i), ptn(i));
tri(i) = select2(lfoMode(i),
os.triangle(f(i)),
os.lf_triangle(f(i)));
saw(i) = select2(lfoMode(i),
os.sawtooth(f(i)),
os.lf_saw(f(i)));
sq(i) = select2(lfoMode(i),
os.square(f(i)),
os.lf_squarewave(f(i)));
os.pulsetrain(f(i),0.25),
lf_pulsetrain(f(i),0.25));
ptn(i) = select2(lfoMode(i),
os.pulsetrain(f(i),0.125),
lf_pulsetrain(f(i),0.125));
lf_pulsetrain(freq,duty) = 2.0*os.lf_pulsetrainpos(freq,duty) - 1.0;
fcLgHz = vcf1(vslider("[1] Corner Freq [unit:Log2(Hz)]
[tooltip: Corner resonance frequency in Log2(Hertz)]
[style: knob]
: si.smooth(ba.tau2pole(0.016));
res = vcf1(vslider("[2] Corner Resonance [midi:ctrl 37] [tooltip: Resonance Q at VCF corner frequency (0 to 1)]
[style: knob]",
0.7, 0, 1, 0.01));
vcfKeyRange = vcf1cbg(vslider("[2] Kbd Ctl [midi:ctrl 38] [tooltip: Keyboard tracking of VCF corner-frequency (0=none, 1=full)]
[style: knob]",
vcfModEnable = vcf1cbg(vslider("[1] Filter Mod. [midi:ctrl 19] [color:red] [style:knob] [tooltip: Filter Modulation => Route Modulation Mix output to VCF frequency]",1,0,1,1));
vcfContourAmountOctaves = vcf1(vslider("[3] Amount of Contour (octaves) [midi:ctrl 39] [style: knob]", 1.2, 0, 4.0, 0.001));
vcfModulationOctaves = vcfModMixModulationOctaves + vcfContourOctaves;
vcfKeyShiftOctaves = vcfKeyRange * keyShiftOctaves;
modulatedFcLgHz = fcLgHz + vcfModulationOctaves + vcfKeyShiftOctaves;
fc = min((0.5*ma.SR), pow(2.0,modulatedFcLgHz));
vcf = ve.moog_vcf_2bn(res,fc);
attT60VCF = 0.001 * vcf2(vslider("[0] AttackF [midi:ctrl 40] [tooltip: Attack Time] [unit:ms] [style: knob]",1400,10,10000,1));
decT60VCF = 0.001 * vcf2(vslider("[0] DecayF [midi:ctrl 41] [tooltip: Decay-to-Sustain Time] [unit:ms] [style: knob]",10,10,10000,1));
susLvlVCF = 0.01 * vcf2(vslider("[0] SustainF [midi:ctrl 42] [tooltip: Sustain level as percent of max] [style: knob]",80,0,100,0.1));
relT60VCF = select2(decayButton,0.010,decT60VCF);
envelopeVCF = en.adsre(attT60VCF,decT60VCF,susLvlVCF,relT60VCF,gate);
declare interface "SmartKeyboard{
'Number of Keyboards':'2',
'Keyboard 0 - Number of Keys':'13',
'Keyboard 1 - Number of Keys':'13',
'Keyboard 0 - Lowest Key':'72',
'Keyboard 1 - Lowest Key':'60'
}";
keyDownHold = gg(vslider("[0] gateHold [tooltip: lock sustain pedal on (hold gate set at 1)][style:knob]",0,0,1,1));
keyDown = gg(button("[1] gate [tooltip: The gate signal is 1 during a
note and 0 otherwise. For MIDI, NoteOn occurs when the gate
transitions from 0 to 1, and NoteOff is an event corresponding
to the gate transition from 1 to 0. The name of this Faust
button must be 'gate'.]"));
sustain = gg(button("[1] sustain [midi:ctrl 64]
gate = keyDown + keyDownHold + sustain : min(1);
attT60 = 0.001 * ng(vslider("[0] AttackA [midi:ctrl 43] [tooltip: Attack Time] [unit:ms] [style: knob]",2,0,5000,0.1));
decT60 = 0.001 * ng(vslider("[0] DecayA [midi:ctrl 44] [tooltip: Decay-to-Sustain Time] [unit:ms] [style: knob]",10,0,10000,0.1));
susLvl = 0.01 * ng(vslider("[0] SustainA [midi:ctrl 45] [tooltip: Sustain level as percent of max] [style: knob]",80,0,100,0.1));
envelopeAmpNoAM = en.adsre(attT60,decT60,susLvl,relT60,gate);
AMDepth = 0.5;
envelopeAmp = select2(oscModEnable, envelopeAmpNoAM,
envelopeAmpNoAM * (1.0 + AMDepth*modWheel * 0.5 * (1.0+oscNoiseModulation)));
ampL = volg(vslider("[1] gain [style:knob] [tooltip: Amplitude]",0.2,0,1.0,0.001));
bend = wg(ba.semi2ratio(hslider("[0] bend [style:knob] [midi:pitchwheel]",0,-2,2,0.01))) : si.polySmooth(gate,0.999,1);
modWheel = wg(vslider("[1] mod [midi:ctrl 1] [style:knob] [tooltip: PitchModulation amplitude in octaves]",
0,0,1.0,0.01)) : si.polySmooth(gate,0.999,1);
keyFreqBent = bend * kg(hslider("[2] freq [unit:Hz] [style:knob]",220,0.1,20000,0.1));
masterVolume = vg(vslider("MasterVolume [style:knob] [midi:ctrl 7] [tooltip: master volume, MIDI controlled]",
0.7,0,1,0.001))
: si.smooth(ba.tau2pole(0.16));
masterTuneOctaves = dg(vslider("[0] Tune [midi:ctrl 47] [unit:Octaves] [style:knob]
[tooltip: Frequency-shift up or down for all oscillators in Octaves]", 0.0,-1.0,1.0,0.001));
glide = gmmg(vslider("[0] Glide [midi:ctrl 5] [unit:sec/octave] [style:knob] [scale:log]
[tooltip: Portamento (frequency-glide) in seconds per octave]",
0.008,0.001,1.0,0.001));
keyFreqGlided = keyFreqBent : si.smooth(legatoPole);
mmix = gmmg(vslider("[1] Mod. Mix [midi:ctrl 48] [style:knob] [tooltip: Modulation Mix: Osc3 (0) to Noise (1)]",
0.0,0.0,1.0,0.001));
osc3Control = dsg(vslider("[1] Osc. 3 Ctl [midi:ctrl 9] [color:red] [style:knob] [tooltip:Oscillator 3 frequency tracks the keyboard if on, else not",0,0,1,1):int);
vrocker(x) = checkbox("%%x [style:vrocker]");
hrocker(x) = checkbox("%%x [style:hrocker]");
vrockerblue(x) = checkbox("%x [style:vrocker] [color:blue]");
vrockerblue(x) = checkbox("%x [style:vrocker] [color:blue]");
hrockerblue(x) = checkbox("%%x [style:hrocker] [color:blue]");
vrockerred(x) = checkbox("%%x [style:vrocker] [color:red]");
hrockerred(x) = checkbox("%%x [style:hrocker] [color:red]");
declare designer "Robert A. Moog";
synthg(x) = mmg(vgroup("[0] Minimoog",x));
fxg(x) = mmg(hgroup("[1] Effects",x));
mg(x) = synthg(hgroup("[0]",x));
vg(x) = cg(hgroup("[0] Master Volume", x));
dg(x) = cg(hgroup("[1] Oscillator Tuning & Switching", x));
dsg(x) = dg(vgroup("[1] Switches", x));
gmmg(x) = cg(hgroup("[2] Glide and ModMix", x));
og(x) = mg(vgroup("[1] Oscillator Bank", x));
osc1(x) = og(hgroup("[1] Oscillator 1", x));
osc2(x) = og(hgroup("[2] Oscillator 2", x));
osc3(x) = og(hgroup("[3] Oscillator 3", x));
mixg(x) = mg(vgroup("[2] Mixer", x));
modg(x) = mg(vgroup("[3] Modifiers", x));
vcfg(x) = modg(vgroup("[0] Filter", x));
vcf1(x) = vcfg(hgroup("[0] [tooltip:freq, Q, ContourScale]", x));
vcf1cbg(x) = vcf1(vgroup("[0] [tooltip:two checkboxes]", x));
vcf2(x) = vcfg(hgroup("[1] Filter Contour [tooltip:AttFilt, DecFilt, Sustain Level for Filter Contour]", x));
ng(x) = modg(hgroup("[1] Loudness Contour", x));
echog(x) = fxg(hgroup("[4] Echo",x));
ekg(x) = echog(vgroup("[0] Knobs",x));
esg(x) = echog(vgroup("[1] Switches",x));
flg(x) = fxg(hgroup("[5] Flanger",x));
flkg(x) = flg(vgroup("[0] Knobs",x));
flsg(x) = flg(vgroup("[1] Switches",x));
chg(x) = fxg(hgroup("[6] Chorus",x));
ckg(x) = chg(vgroup("[0] Knobs",x));
csg(x) = chg(vgroup("[1] Switches",x));
rg(x) = fxg(hgroup("[7] Reverb",x));
rkg(x) = rg(vgroup("[0] Knobs",x));
rsg(x) = rg(vgroup("[1] Switches",x));
outg(x) = fxg(vgroup("[8] Output", x));
volg(x) = outg(hgroup("[0] Volume Main Output", x));
tunerg(x) = outg(hgroup("[1] A-440 Switch", x));
vdtpolyg(x) = outg(hgroup("[2] Voice Detune / Poly", x));
clipg(x) = fxg(vgroup("[9] Soft Clip", x));
ws(x) = kg(vgroup("[0] Wheels and Switches", x));
s1g(x) = ws(hgroup("[0] Jacks and Rockers", x));
jg(x) = s1g(vgroup("[0] MiniJacks",x));
s2g(x) = ws(hgroup("[1] [tooltip:Wheels+]", x));
bg(x) = s2g(vgroup("[0] [tooltip:Bend Enable and Range]", x));
wg(x) = s2g(hgroup("[1] [tooltip:Bend and Mod Wheels]", x));
keys(x) = kg(hgroup("[1] [tooltip:Keys]", x));
gg(x) = keys(hgroup("[0] [tooltip: Gates]",x));
|
50d11a81e940ace4a144ada5d0270b3733368bf27a35622be3702006b9701330 | inria-emeraude/syfala | minimoog-novation.dsp | import("stdfaust.lib");
declare options "[midi:on]";
// These are now in separate upstairs directories:
// echo = echog(component("echo.dsp")); // ../echo/echo.dsp
// flanger = flg(component("flanger.dsp")); // ../flanger/flanger.dsp
// chorus = chg(component("chorus.dsp")); // ../chorus/chorus.dsp
// reverb = rg(component("freeverb.dsp")); // ../freeverb/freeverb.dsp
note_base = 47;
// bottom-left pads (1-to-4)
note_0 = 1 * hslider("note_1[midi:key 73]", 0, 0, 1, 1);
note_1 = 2 * hslider("note_2[midi:key 74]", 0, 0, 1, 1);
note_2 = 3 * hslider("note_3[midi:key 75]", 0, 0, 1, 1);
note_3 = 4 * hslider("note_4[midi:key 76]", 0, 0, 1, 1);
// bottom-right pads (5-to-8)
note_4 = 5 * hslider("note_5[midi:key 89]", 0, 0, 1, 1);
note_5 = 6 * hslider("note_6[midi:key 90]", 0, 0, 1, 1);
note_6 = 7 * hslider("note_7[midi:key 91]", 0, 0, 1, 1);
note_7 = 8 * hslider("note_8[midi:key 92]", 0, 0, 1, 1);
// top-left pads (1-to-4)
note_8 = 9 * hslider("note_9[midi:key 41]", 0, 0, 1, 1);
note_9 = 10 * hslider("note_10[midi:key 42]", 0, 0, 1, 1);
note_10 = 11 * hslider("note_11[midi:key 43]", 0, 0, 1, 1);
note_11 = 12 * hslider("note_12[midi:key 44]", 0, 0, 1, 1);
// top-right pads (5-to-8)
note_12 = 13 * hslider("note_13[midi:key 57]", 0, 0, 1, 1);
note_13 = 14 * hslider("note_14[midi:key 58]", 0, 0, 1, 1);
note_14 = 15 * hslider("note_15[midi:key 59]", 0, 0, 1, 1);
note_15 = 16 * hslider("note_16[midi:key 60]", 0, 0, 1, 1);
main_note = note_base
+ note_0
+ note_1
+ note_2
+ note_3
+ note_4
+ note_5
+ note_6
+ note_7
+ note_8
+ note_9
+ note_10
+ note_11
+ note_12
+ note_13
+ note_14
+ note_15
;
main_gate = main_note > note_base;
process = main <: _,_; // Now separate: : echo : flanger : chorus : reverb;
main = (signal + attach(extInput,amp) : filters : *(ampScaling)) ~ _;
signal = oscs + noise * noiseOff * namp;
ampScaling = envelopeAmp * masterVolume; // masterVolume is redundant but easier to find
oscs = par(i,3,(oscamp(i+1)*osc(i+1))) :> _;
controlSelect(1) = osc1(vrockerred); // ("[0] use as LFO"));
octaveSelect(1) = osc1(vslider("[1] Octave1 [midi:ctrl 49] [style:knob]",1,0,5,1):int); // LO, 32', 16', 8', 4', 2'
// Osc1 detunes like Osc2 and Osc3 (unlike in the Minimoog where it would be an expensive extra knob):
detuneOctaves(1) = osc1(vslider("[2] DeTuning1 [units:Octaves] [midi:ctrl 29] [style:knob]",0.0,-1.0,1.0,0.001));
waveSelect(1) = osc1(vslider("[3] Waveform1 [midi:ctrl 13] [style:knob]",5,0,5,1):int);
amp1Enable = mr1(vslider("[1] amp1Enable [midleft i:ctrl 12] [style:knob] [color:blue]",1,0,1,1));
oscamp(1) = mr1(vslider("[0] Osc1 Amp [midi:ctrl 77] [style:knob]",0.5,0.0,1.0,0.001)) * amp1Enable;
eei = mr2(vslider("[1] extInputOn [midi:ctrl 13] [style:knob] [color:blue]",0,0,1,1)); // External input = MAIN OUTPUT when "off"
sei = mr2(vslider("[0] Ext Input [midi:ctrl 27] [style: knob]",0,0,1.0,0.001));
extInput(fb,extSig) = fb,extSig : select2(eei) : *(sei) : extClipLED;
extClipLED = _ <: _, (abs : >(0.95) : mr2(vbargraph("[2] Ext Input Clip [style:led]",0,1)):!);
keycLED = attach(mr2(vbargraph("[3] Keyboard Ctl [style:led]",0,1)));
controlSelect(2) = osc2(vrockerred); // ("[0] use as LFO"));
octaveSelect(2) = osc2(vslider("[1] Octave2 [midi:ctrl 50] [style:knob]",1,0,5,1):int); // LO, 32', 16', 8', 4', 2'
detuneOctaves(2) = osc2(vslider("[2] DeTuning2 [units:Octaves] [midi:ctrl 30] [style:knob]",0.41667,-1.0,1.0,0.001));
waveSelect(2) = osc2(vslider("[3] Waveform2 [midi:ctrl 14] [style:knob]",5,0,5,1):int);
amp2Enable = mr3(vslider("[1] amp2Enable [midi:ctrl 14] [style:knob] [color:blue]",1,0,1,1));
oscamp(2) = mr3(vslider("[0] Osc2 Amp [midi:ctrl 78] [style:knob]",0.5,0.0,1.0,0.001)) * amp2Enable;
noise = select2(ntype,no.noise,10.0*no.pink_noise); // pink noise needs some "make-up gain"
namp = mr4(vslider("[0] Noise Amp [midi:ctrl 80] [style: knob]",0.0,0.0,1.0,0.001));
noiseOff = mr4cbg(vslider("[0] noiseEnable [midi:ctrl 52] [style:knob] [color:blue]",0,0,1,1));
ntype = mr4cbg(vslider("[1] White/Pink [midi:ctrl 32] [tooltip: Choose either White or Pink Noise] [style: knob] [color:blue]",1,0,1,1));
controlSelect(3) = osc3(vrockerred); // ("[0] use as LFO"));
octaveSelect(3) = osc3(vslider("[1] Octave3 [midi:ctrl 51] [style:knob]",0,0,5,1):int); // LO, 32', 16', 8', 4', 2'
detuneOctaves(3) = osc3(vslider("[2] DeTuning3 [units:Octaves] [midi:ctrl 31] [style:knob]",0.3,-1.0,1.0,0.001));
waveSelect(3) = osc3(vslider("[3] Waveform3 [midi:ctrl 15] [style:knob]",0,0,5,1):int);
amp3Enable = mr5(vslider("[1] amp3Enable [midi:ctrl 17] [style:knob] [color:blue]",0,0,1,1));
oscamp(3) = mr5(vslider("[0] Osc3 Amp [midi:ctrl 79] [style:knob]",0.5,0.0,1.0,0.001)) * amp3Enable;
waveforms(i) = (tri(i), bent(i), saw(i), sq(i), ptm(i), ptn(i));
// compute oscillator frequency scale factor, staying in lg(Hz) as much as possible:
modWheelShift = 1.5*modWheel; // Manual says 0 to 1.5 octaves
modulationCenterShift = 0; // Leave this off until triangle-wave modulation is debugged
modulationShift = select2(oscModEnable, 0.0,
modWheelShift * ( modulationCenterShift + (1.0-modulationCenterShift) * oscNoiseModulation ));
octaveShift(i) = -2+int(octaveSelect(i));
osc3FixedFreq = 369.994; // F# a tritone above middle C
keyFreqGlidedMaybe = select2(osc3Control,osc3FixedFreq,keyFreqGlided);
keyFreqModulatedShifted(3) = keyFreqGlidedMaybe; // osc3 not allowed to FM itself
keyFreqModulatedShifted(i) = keyFreqGlided * pow(2.0, modulationShift); // i=1,2
// When disconnected from the keyboard, Osc3 can detune 3 octaves up or down (Pat video):
detuneBoost(3) = select2(osc3Control,3.0,1.0);
detuneBoost(i) = 1.0; // i=1,2
detuneOctavesFinal(i) = detuneOctaves(i)*detuneBoost(i);
fBase(i) = keyFreqModulatedShifted(i) * pow(2.0, (masterTuneOctaves+octaveShift(i)+detuneOctavesFinal(i)))
: si.smooth(ba.tau2pole(0.016));
fLFOBase(i) = 3.0 * pow(2.0, detuneOctavesFinal(i)); // used when osc3 (only) is in LFO mode
lfoMode(i) = (octaveSelect(i) == 0);
f(i) = select2(lfoMode(i), fBase(i), fLFOBase(i)); // lowest range setting is LFO mode for any osc
// i is 1-based:
osc(i) = ba.selectn(6, int(waveSelect(i)), tri(i), bent(i), saw(i), sq(i), ptm(i), ptn(i));
tri(i) = select2(lfoMode(i),
os.triangle(f(i)),
os.lf_triangle(f(i)));
bent(i) = 0.5*tri(i) + 0.5*saw(i); // from Minimoog manual
saw(i) = select2(lfoMode(i),
os.sawtooth(f(i)),
os.lf_saw(f(i)));
sq(i) = select2(lfoMode(i),
os.square(f(i)),
os.lf_squarewave(f(i)));
ptm(i) = select2(lfoMode(i), // Note: a Duty knob would be better than these two, or in addition
os.pulsetrain(f(i),0.25),
lf_pulsetrain(f(i),0.25));
ptn(i) = select2(lfoMode(i),
os.pulsetrain(f(i),0.125),
lf_pulsetrain(f(i),0.125));
// Soon to appear in oscillators.lib:
lf_pulsetrain(freq,duty) = 2.0*os.lf_pulsetrainpos(freq,duty) - 1.0;
filters = ba.bypass1(bp,vcf); // BYPASS WILL GO AWAY (I think you just open it up all the way to bypass):
bp = 0; // VCF is always on
fcLgHz = vcf1(vslider("[1] Corner Freq [unit:Log2(Hz)]
[tooltip: Corner resonance frequency in Log2(Hertz)]
[style: knob]
[midi:ctrl 17]", // Frequency Cutoff (aka Brightness )
10.6, log(40.0)/log(2), log(20000.0)/log(2), 0.000001)) // 9 octaves (from Minimoog manual)
//p: 40, 30, 80, 0.01))
//p: : ba.pianokey2hz
: si.smooth(ba.tau2pole(0.016));
res = vcf1(vslider("[2] Corner Resonance [midi:ctrl 33] [tooltip: Resonance Q at VCF corner frequency (0 to 1)]
[style: knob]",
0.7, 0, 1, 0.01));
vcfKeyRange = vcf1cbg(vslider("[2] Kbd Ctl [midi:ctrl 38] [tooltip: Keyboard tracking of VCF corner-frequency (0=none, 1=full)]
[style: knob]",
1, 0, 1, 0.001)); // was in mr2
vcfModEnable = vcf1cbg(vslider("[1] Filter Mod. [midi:ctrl 53] [color:red] [style:knob] [tooltip: Filter Modulation => Route Modulation Mix output to VCF frequency]",1,0,1,1));
// Note that VCF has three sources of corner-frequency setting that are added together:
// - Corner Freq knob (40 Hz to 20 kHz)
// - VCF Contour envelope (0 to 4 octaves)
// - Injection 32 of Modulation Mix (0 to 1.5 octaves)
// Manual says maximum vcf sweep spans 0 to 4 octaves:
// Original Knob went to 10, but we're going to 4 so we can say the knob is in "octaves" units:
vcfContourAmountOctaves = vcf1(vslider("[3] Amount of Contour (octaves) [midi:ctrl 39] [style: knob]", 1.2, 0, 4.0, 0.001));
vcfContourOctaves = vcfContourAmountOctaves * envelopeVCF; // in octaves
// We are assuming that the modulation-mix range for the VCF freq is 1.5 octaves like it is for oscs 1 and 2:
vcfModMixModulationOctaves = select2(vcfModEnable, 0, (1.5 * oscNoiseModulation * modWheel)); // octaves
vcfModulationOctaves = vcfModMixModulationOctaves + vcfContourOctaves;
keyFreqLogHzGlided = log(keyFreqGlided)/log(2.0); // FIXME: Start w freqLogHz not freq so we don't need exp(log()) here
keyShiftOctaves = keyFreqLogHzGlided - log(261.625565)/log(2.0); // FIXME: ARBITRARILY centering on middle C - check device
vcfKeyShiftOctaves = vcfKeyRange * keyShiftOctaves;
modulatedFcLgHz = fcLgHz + vcfModulationOctaves + vcfKeyShiftOctaves;
fc = min((0.5*ma.SR), pow(2.0,modulatedFcLgHz));
vcf = ve.moog_vcf_2bn(res,fc);
// Attack, Decay, and Sustain ranges are set according to the Minimoog manual:
attT60VCF = 0.001 * vcf2(vslider("[0] AttackF [midi:ctrl 81] [tooltip: Attack Time] [unit:ms] [style: knob]",1400,10,10000,1));
decT60VCF = 0.001 * vcf2(vslider("[0] DecayF [midi:ctrl 82] [tooltip: Decay-to-Sustain Time] [unit:ms] [style: knob]",10,10,10000,1));
susLvlVCF = 0.01 * vcf2(vslider("[0] SustainF [midi:ctrl 83] [tooltip: Sustain level as percent of max] [style: knob]",80,0,100,0.1));
decayButton = wg(vslider("Decay [midi:ctrl 20] [tooltip:Envelope Release either Decay value or 0][style:knob]",1,0,1,1):int); // was Staccato
legatoButton = wg(vslider("GlideEnable [midi:ctrl 65] [tooltip: Glide from note to note][style:knob]",1,0,1,1)); // was Legato
relT60VCF = select2(decayButton,0.010,decT60VCF);
envelopeVCF = en.adsre(attT60VCF,decT60VCF,susLvlVCF,relT60VCF,gate);
// --- Smart Keyboard interface ---
declare interface "SmartKeyboard{
'Number of Keyboards':'2',
'Keyboard 0 - Number of Keys':'13',
'Keyboard 1 - Number of Keys':'13',
'Keyboard 0 - Lowest Key':'72',
'Keyboard 1 - Lowest Key':'60'
}";
// --- functions ---
// Signal controls:
keyDownHold = gg(vslider("[0] gateHold [tooltip: lock sustain pedal on (hold gate set at 1)][style:knob]",0,0,1,1));
keyDown = gg(button("[1] gate [tooltip: The gate signal is 1 during a
note and 0 otherwise. For MIDI, NoteOn occurs when the gate
transitions from 0 to 1, and NoteOff is an event corresponding
to the gate transition from 1 to 0. The name of this Faust
button must be 'gate'.]"));
sustain = gg(button("[1] sustain [midi:ctrl 64]
[tooltip: extends the gate (keeps it set to 1)]")); // MIDI only (see smartkeyb doc)
//gate = keyDown + keyDownHold + sustain : min(1);
gate = main_gate + keyDown + keyDownHold + sustain : min(1);
attT60 = 0.001 * ng(vslider("[0] AttackA [midi:ctrl 43] [tooltip: Attack Time] [unit:ms] [style: knob]",2,0,5000,0.1));
decT60 = 0.001 * ng(vslider("[0] DecayA [midi:ctrl 44] [tooltip: Decay-to-Sustain Time] [unit:ms] [style: knob]",10,0,10000,0.1));
susLvl = 0.01 * ng(vslider("[0] SustainA [midi:ctrl 45] [tooltip: Sustain level as percent of max] [style: knob]",80,0,100,0.1));
relT60 = select2(decayButton,0.010,decT60); // right?
envelopeAmpNoAM = en.adsre(attT60,decT60,susLvl,relT60,gate);
AMDepth = 0.5;
envelopeAmp = select2(oscModEnable, envelopeAmpNoAM,
envelopeAmpNoAM * (1.0 + AMDepth*modWheel * 0.5 * (1.0+oscNoiseModulation)));
// Signal Parameters
ampL = volg(vslider("[1] gain [style:knob] [midi:ctrl 84] [tooltip: Amplitude]",0.2,0,1.0,0.001));
amp = ampL : si.smoo; // envelopeAmp is multiplied once on entire signal sum
//elecGuitar.dsp values used:
bend = wg(ba.semi2ratio(hslider("[0] bend [style:knob] [midi:pitchwheel]",0,-2,2,0.01))) : si.polySmooth(gate,0.999,1);
//Previous guess:
modWheel = wg(vslider("[1] mod [midi:ctrl 1] [style:knob] [tooltip: PitchModulation amplitude in octaves]",
0,0,1.0,0.01)) : si.polySmooth(gate,0.999,1);
//p: MIDI requires frequency in Hz, not piano-keys as we had before
// Frequency Range is 0.1 Hz to 20 kHz according to the Minimoog manual:
// MIDI REQUIRES THE FOLLOWING PARAMETER TO BE NAMED 'freq':
keyFreqBent = ba.midikey2hz(main_note); //+ kg(hslider("[2] freq [unit:Hz] [style:knob]",440,0.1,20000,0.1));
//keyFreqBent = bend * main_note;
masterVolume = vg(vslider("MasterVolume [style:knob] [midi:ctrl 7] [tooltip: master volume, MIDI controlled]",
0.7,0,1,0.001))
: si.smooth(ba.tau2pole(0.16));
masterTuneOctaves = dg(vslider("[0] Tune [midi:ctrl 47] [unit:Octaves] [style:knob]
[tooltip: Frequency-shift up or down for all oscillators in Octaves]", 0.0,-1.0,1.0,0.001));
// Oscillator Modulation HrockerRed => apply Modulation Mix output osc1&2 pitches
glide = gmmg(vslider("[0] Glide [midi:ctrl 5] [unit:sec/octave] [style:knob] [scale:log]
[tooltip: Portamento (frequency-glide) in seconds per octave]",
0.008,0.001,1.0,0.001));
legatoPole = select2(legatoButton,0.5,ba.tau2pole(glide*exp(1.0f)/2.0f)); // convert 1/e to 1/2 by slowing down exp
keyFreqGlided = keyFreqBent : si.smooth(legatoPole);
mmix = gmmg(vslider("[1] Mod. Mix [midi:ctrl 48] [style:knob] [tooltip: Modulation Mix: Osc3 (0) to Noise (1)]",
0.0,0.0,1.0,0.001));
oscNoiseModulation = (mmix * noise) + ((1.0-mmix) * osc(3)); // noise amplitude and off-switch ignored here
oscModEnable = dsg(vslider("[0] Osc. Mod. [midi:ctrl 22] [color:red] [style:knob] [tooltip:Oscillator Modulation adds Modulation Mix output to osc1&2 frequencies",1,0,1,1)); // any offset?
osc3Control = dsg(vslider("[1] Osc. 3 Ctl [midi:ctrl 9] [color:red] [style:knob] [tooltip:Oscillator 3 frequency tracks the keyboard if on, else not",0,0,1,1):int);
// This layout loosely follows the MiniMoog-V
// Arturia-only features are labeled
// Original versions also added where different
// Need vrocker and hrocker toggle switches in Faust!
// Need orange and blue color choices
// Orange => Connect modulation sources to their destinations
// Blue => Turn audio sources On and Off
// - and later -
// White => Turn performance features On and Off
// Black => Select between modulation sources
// Julius Smith for Analog Devices 3/1/2017
vrocker(x) = checkbox("%%x [style:vrocker]");
hrocker(x) = checkbox("%%x [style:hrocker]");
vrockerblue(x) = checkbox("%x [style:vrocker] [color:blue]");
vrockerblue(x) = checkbox("%x [style:vrocker] [color:blue]");
// USAGE: vrockerorange("[0] ModulationEnable");
hrockerblue(x) = checkbox("%%x [style:hrocker] [color:blue]");
vrockerred(x) = checkbox("%%x [style:vrocker] [color:red]");
hrockerred(x) = checkbox("%%x [style:hrocker] [color:red]");
declare designer "Robert A. Moog";
mmg(x) = hgroup("",x); // Minimoog + Effects
synthg(x) = mmg(vgroup("[0] Minimoog",x));
fxg(x) = mmg(hgroup("[1] Effects",x));
mg(x) = synthg(hgroup("[0]",x));
cg(x) = mg(vgroup("[0] Controllers",x)); // Formerly named "Modules" but "Minimoog" group-title is enough
vg(x) = cg(hgroup("[0] Master Volume", x));
dg(x) = cg(hgroup("[1] Oscillator Tuning & Switching", x));
// Tune knob = master tune
dsg(x) = dg(vgroup("[1] Switches", x));
// Oscillator Modulation HrockerRed => apply Modulation Mix output to osc1&2 pitches
// [MOVED here from osc3 group] Osc 3 Control VrockerRed => use osc3 as LFO instead of osc3
gmmg(x) = cg(hgroup("[2] Glide and ModMix", x));
// Glide knob [0:10] = portamento speed
// Modulation Mix knob [0:10] (between Osc3 and Noise) = mix of noise and osc3 modulating osc1&2 pitch and/or VCF freq
og(x) = mg(vgroup("[1] Oscillator Bank", x));
osc1(x) = og(hgroup("[1] Oscillator 1", x));
// UNUSED Control switch (for alignment) - Could put Oscillator Modulation switch there
// Range rotary switch: LO (slow pulses or rhythm), 32', 16', 8', 4', 2'
// Frequency <something> switch: LED to right
// Waveform rotary switch: tri, impulse/bent-triangle, saw, pulseWide, pulseMed, pulseNarrow
osc2(x) = og(hgroup("[2] Oscillator 2", x));
// UNUSED (originall) or Osc 2 Control VrockerRed
// Range rotary switch: LO, 32', 16', 8', 4', 2'
// Detuning knob: -7 to 7 [NO SWITCH]
// Waveform rotary switch: tri, impulse(?), saw, pulseWide, pulseMed, pulseNarrow
osc3(x) = og(hgroup("[3] Oscillator 3", x));
// Osc 3 Control VrockerRed => use osc3 as LFO instead of osc3
// Range rotary switch: LO, 32', 16', 8', 4', 2'
// Detuning knob: -7 to 7 [NO SWITCH]
// Waveform rotary switch: tri, impulse(?), saw, pulseWide, pulseMed, pulseNarrow
mixg(x) = mg(vgroup("[2] Mixer", x));
// Each row 5 slots to maintain alignment and include red rockers joining VCF area:
mr1(x) = mixg(hgroup("[0] Osc1", x)); // mixer row 1 =
// Osc1 Volume and Osc1 HrockerBlue & _ & _ & Filter Modulation HrockerRed
// Filter Modulation => Modulation Mix output to VCF freq
mr2(x) = mixg(hgroup("[1] Ext In, KeyCtl", x)); // row 2 = Ext In HrockerBlue and Vol and Overload LED and Keyboard Ctl HrockerRed 1
mr3(x) = mixg(hgroup("[2] Osc2", x)); // = Osc2 Volume and Osc2 HrockerBlue and Keyboard Ctl HrockerRed 2
// Keyboard Control Modulation 1&2 => 0, 1/3, 2/3, all of Keyboard Control Signal ("gate?") applied to VCF freq
mr4(x) = mixg(hgroup("[3] Noise", x)); // = Noise HrockerBlue and Volume and Noise Type VrockerBlue
mr4cbg(x) = mr4(vgroup("[1]", x)); // = Noise Off and White/Pink selection
// two rockers
mr5(x) = mixg(hgroup("[4] Osc3", x)); // Osc3 Volume and Osc3 HrockerBlue
modg(x) = mg(vgroup("[3] Modifiers", x));
vcfg(x) = modg(vgroup("[0] Filter", x));
vcf1(x) = vcfg(hgroup("[0] [tooltip:freq, Q, ContourScale]", x));
vcf1cbg(x) = vcf1(vgroup("[0] [tooltip:two checkboxes]", x));
// Filter Modulation switch
// VCF Off switch
// Corner Frequency knob
// Filter Emphasis knob
// Amount of Contour knob
vcf2(x) = vcfg(hgroup("[1] Filter Contour [tooltip:AttFilt, DecFilt, Sustain Level for Filter Contour]", x));
// Attack Time knob
// Decay Time knob
// Sustain Level knob
ng(x) = modg(hgroup("[1] Loudness Contour", x));
// Attack Time knob
// Decay Time knob
// Sustain Level knob
echog(x) = fxg(hgroup("[4] Echo",x));
ekg(x) = echog(vgroup("[0] Knobs",x));
esg(x) = echog(vgroup("[1] Switches",x));
flg(x) = fxg(hgroup("[5] Flanger",x));
flkg(x) = flg(vgroup("[0] Knobs",x));
flsg(x) = flg(vgroup("[1] Switches",x));
chg(x) = fxg(hgroup("[6] Chorus",x));
ckg(x) = chg(vgroup("[0] Knobs",x));
csg(x) = chg(vgroup("[1] Switches",x));
rg(x) = fxg(hgroup("[7] Reverb",x));
rkg(x) = rg(vgroup("[0] Knobs",x));
rsg(x) = rg(vgroup("[1] Switches",x));
outg(x) = fxg(vgroup("[8] Output", x));
volg(x) = outg(hgroup("[0] Volume Main Output", x));
// Volume knob [0-10]
// Unison switch (Arturia) or Output connect/disconnect switch (original)
// When set, all voices are stacked and instrument is in mono mode
tunerg(x) = outg(hgroup("[1] A-440 Switch", x));
vdtpolyg(x) = outg(hgroup("[2] Voice Detune / Poly", x));
// Voice Detune knob [0-10] (Arturia) or
// Polyphonic switch [red LED below] (Arturia)
// When set, instrument is in polyphonic mode with one oscillator per key
clipg(x) = fxg(vgroup("[9] Soft Clip", x));
// Soft Clipping switch [red LED above]
kg(x) = synthg(hgroup("[1] Keyboard Group", x)); // Keyboard was 3 1/2 octaves
ws(x) = kg(vgroup("[0] Wheels and Switches", x));
s1g(x) = ws(hgroup("[0] Jacks and Rockers", x));
jg(x) = s1g(vgroup("[0] MiniJacks",x));
gdlg(x) = s1g(vgroup("[1] Glide/Decay/Legato Enables",x)); // Arturia
// Glide Hrocker (see original Button version below)
// Decay Hrocker (see original Button version below) => Sets Release (R) of ADSR to either 0 or Decay (R)
// Legato Hrocker (not in original)
s2g(x) = ws(hgroup("[1] [tooltip:Wheels+]", x));
bg(x) = s2g(vgroup("[0] [tooltip:Bend Enable and Range]", x));
wg(x) = s2g(hgroup("[1] [tooltip:Bend and Mod Wheels]", x));
// Using Glide/Decay/Legato enables above following Arturia:
// dg(x) = s2g(hgroup("[2] Glide and Decay momentary pushbuttons", x));
// Glide Button injects portamento as set by Glide knob
// Decay Button uses decay of Loudness Contour (else 0)
keys(x) = kg(hgroup("[1] [tooltip:Keys]", x));
gg(x) = keys(hgroup("[0] [tooltip: Gates]",x));
// leave slot 1 open for sustain (below)
| https://raw.githubusercontent.com/inria-emeraude/syfala/7bbb09ecb912c9a66bcb85ebe35590e2b46e51d5/examples/minimoog-novation.dsp | faust | These are now in separate upstairs directories:
echo = echog(component("echo.dsp")); // ../echo/echo.dsp
flanger = flg(component("flanger.dsp")); // ../flanger/flanger.dsp
chorus = chg(component("chorus.dsp")); // ../chorus/chorus.dsp
reverb = rg(component("freeverb.dsp")); // ../freeverb/freeverb.dsp
bottom-left pads (1-to-4)
bottom-right pads (5-to-8)
top-left pads (1-to-4)
top-right pads (5-to-8)
Now separate: : echo : flanger : chorus : reverb;
masterVolume is redundant but easier to find
("[0] use as LFO"));
LO, 32', 16', 8', 4', 2'
Osc1 detunes like Osc2 and Osc3 (unlike in the Minimoog where it would be an expensive extra knob):
External input = MAIN OUTPUT when "off"
("[0] use as LFO"));
LO, 32', 16', 8', 4', 2'
pink noise needs some "make-up gain"
("[0] use as LFO"));
LO, 32', 16', 8', 4', 2'
compute oscillator frequency scale factor, staying in lg(Hz) as much as possible:
Manual says 0 to 1.5 octaves
Leave this off until triangle-wave modulation is debugged
F# a tritone above middle C
osc3 not allowed to FM itself
i=1,2
When disconnected from the keyboard, Osc3 can detune 3 octaves up or down (Pat video):
i=1,2
used when osc3 (only) is in LFO mode
lowest range setting is LFO mode for any osc
i is 1-based:
from Minimoog manual
Note: a Duty knob would be better than these two, or in addition
Soon to appear in oscillators.lib:
BYPASS WILL GO AWAY (I think you just open it up all the way to bypass):
VCF is always on
Frequency Cutoff (aka Brightness )
9 octaves (from Minimoog manual)
p: 40, 30, 80, 0.01))
p: : ba.pianokey2hz
was in mr2
Note that VCF has three sources of corner-frequency setting that are added together:
- Corner Freq knob (40 Hz to 20 kHz)
- VCF Contour envelope (0 to 4 octaves)
- Injection 32 of Modulation Mix (0 to 1.5 octaves)
Manual says maximum vcf sweep spans 0 to 4 octaves:
Original Knob went to 10, but we're going to 4 so we can say the knob is in "octaves" units:
in octaves
We are assuming that the modulation-mix range for the VCF freq is 1.5 octaves like it is for oscs 1 and 2:
octaves
FIXME: Start w freqLogHz not freq so we don't need exp(log()) here
FIXME: ARBITRARILY centering on middle C - check device
Attack, Decay, and Sustain ranges are set according to the Minimoog manual:
was Staccato
was Legato
--- Smart Keyboard interface ---
--- functions ---
Signal controls:
MIDI only (see smartkeyb doc)
gate = keyDown + keyDownHold + sustain : min(1);
right?
Signal Parameters
envelopeAmp is multiplied once on entire signal sum
elecGuitar.dsp values used:
Previous guess:
p: MIDI requires frequency in Hz, not piano-keys as we had before
Frequency Range is 0.1 Hz to 20 kHz according to the Minimoog manual:
MIDI REQUIRES THE FOLLOWING PARAMETER TO BE NAMED 'freq':
+ kg(hslider("[2] freq [unit:Hz] [style:knob]",440,0.1,20000,0.1));
keyFreqBent = bend * main_note;
Oscillator Modulation HrockerRed => apply Modulation Mix output osc1&2 pitches
convert 1/e to 1/2 by slowing down exp
noise amplitude and off-switch ignored here
any offset?
This layout loosely follows the MiniMoog-V
Arturia-only features are labeled
Original versions also added where different
Need vrocker and hrocker toggle switches in Faust!
Need orange and blue color choices
Orange => Connect modulation sources to their destinations
Blue => Turn audio sources On and Off
- and later -
White => Turn performance features On and Off
Black => Select between modulation sources
Julius Smith for Analog Devices 3/1/2017
USAGE: vrockerorange("[0] ModulationEnable");
Minimoog + Effects
Formerly named "Modules" but "Minimoog" group-title is enough
Tune knob = master tune
Oscillator Modulation HrockerRed => apply Modulation Mix output to osc1&2 pitches
[MOVED here from osc3 group] Osc 3 Control VrockerRed => use osc3 as LFO instead of osc3
Glide knob [0:10] = portamento speed
Modulation Mix knob [0:10] (between Osc3 and Noise) = mix of noise and osc3 modulating osc1&2 pitch and/or VCF freq
UNUSED Control switch (for alignment) - Could put Oscillator Modulation switch there
Range rotary switch: LO (slow pulses or rhythm), 32', 16', 8', 4', 2'
Frequency <something> switch: LED to right
Waveform rotary switch: tri, impulse/bent-triangle, saw, pulseWide, pulseMed, pulseNarrow
UNUSED (originall) or Osc 2 Control VrockerRed
Range rotary switch: LO, 32', 16', 8', 4', 2'
Detuning knob: -7 to 7 [NO SWITCH]
Waveform rotary switch: tri, impulse(?), saw, pulseWide, pulseMed, pulseNarrow
Osc 3 Control VrockerRed => use osc3 as LFO instead of osc3
Range rotary switch: LO, 32', 16', 8', 4', 2'
Detuning knob: -7 to 7 [NO SWITCH]
Waveform rotary switch: tri, impulse(?), saw, pulseWide, pulseMed, pulseNarrow
Each row 5 slots to maintain alignment and include red rockers joining VCF area:
mixer row 1 =
Osc1 Volume and Osc1 HrockerBlue & _ & _ & Filter Modulation HrockerRed
Filter Modulation => Modulation Mix output to VCF freq
row 2 = Ext In HrockerBlue and Vol and Overload LED and Keyboard Ctl HrockerRed 1
= Osc2 Volume and Osc2 HrockerBlue and Keyboard Ctl HrockerRed 2
Keyboard Control Modulation 1&2 => 0, 1/3, 2/3, all of Keyboard Control Signal ("gate?") applied to VCF freq
= Noise HrockerBlue and Volume and Noise Type VrockerBlue
= Noise Off and White/Pink selection
two rockers
Osc3 Volume and Osc3 HrockerBlue
Filter Modulation switch
VCF Off switch
Corner Frequency knob
Filter Emphasis knob
Amount of Contour knob
Attack Time knob
Decay Time knob
Sustain Level knob
Attack Time knob
Decay Time knob
Sustain Level knob
Volume knob [0-10]
Unison switch (Arturia) or Output connect/disconnect switch (original)
When set, all voices are stacked and instrument is in mono mode
Voice Detune knob [0-10] (Arturia) or
Polyphonic switch [red LED below] (Arturia)
When set, instrument is in polyphonic mode with one oscillator per key
Soft Clipping switch [red LED above]
Keyboard was 3 1/2 octaves
Arturia
Glide Hrocker (see original Button version below)
Decay Hrocker (see original Button version below) => Sets Release (R) of ADSR to either 0 or Decay (R)
Legato Hrocker (not in original)
Using Glide/Decay/Legato enables above following Arturia:
dg(x) = s2g(hgroup("[2] Glide and Decay momentary pushbuttons", x));
Glide Button injects portamento as set by Glide knob
Decay Button uses decay of Loudness Contour (else 0)
leave slot 1 open for sustain (below) | import("stdfaust.lib");
declare options "[midi:on]";
note_base = 47;
note_0 = 1 * hslider("note_1[midi:key 73]", 0, 0, 1, 1);
note_1 = 2 * hslider("note_2[midi:key 74]", 0, 0, 1, 1);
note_2 = 3 * hslider("note_3[midi:key 75]", 0, 0, 1, 1);
note_3 = 4 * hslider("note_4[midi:key 76]", 0, 0, 1, 1);
note_4 = 5 * hslider("note_5[midi:key 89]", 0, 0, 1, 1);
note_5 = 6 * hslider("note_6[midi:key 90]", 0, 0, 1, 1);
note_6 = 7 * hslider("note_7[midi:key 91]", 0, 0, 1, 1);
note_7 = 8 * hslider("note_8[midi:key 92]", 0, 0, 1, 1);
note_8 = 9 * hslider("note_9[midi:key 41]", 0, 0, 1, 1);
note_9 = 10 * hslider("note_10[midi:key 42]", 0, 0, 1, 1);
note_10 = 11 * hslider("note_11[midi:key 43]", 0, 0, 1, 1);
note_11 = 12 * hslider("note_12[midi:key 44]", 0, 0, 1, 1);
note_12 = 13 * hslider("note_13[midi:key 57]", 0, 0, 1, 1);
note_13 = 14 * hslider("note_14[midi:key 58]", 0, 0, 1, 1);
note_14 = 15 * hslider("note_15[midi:key 59]", 0, 0, 1, 1);
note_15 = 16 * hslider("note_16[midi:key 60]", 0, 0, 1, 1);
main_note = note_base
+ note_0
+ note_1
+ note_2
+ note_3
+ note_4
+ note_5
+ note_6
+ note_7
+ note_8
+ note_9
+ note_10
+ note_11
+ note_12
+ note_13
+ note_14
+ note_15
;
main_gate = main_note > note_base;
main = (signal + attach(extInput,amp) : filters : *(ampScaling)) ~ _;
signal = oscs + noise * noiseOff * namp;
oscs = par(i,3,(oscamp(i+1)*osc(i+1))) :> _;
detuneOctaves(1) = osc1(vslider("[2] DeTuning1 [units:Octaves] [midi:ctrl 29] [style:knob]",0.0,-1.0,1.0,0.001));
waveSelect(1) = osc1(vslider("[3] Waveform1 [midi:ctrl 13] [style:knob]",5,0,5,1):int);
amp1Enable = mr1(vslider("[1] amp1Enable [midleft i:ctrl 12] [style:knob] [color:blue]",1,0,1,1));
oscamp(1) = mr1(vslider("[0] Osc1 Amp [midi:ctrl 77] [style:knob]",0.5,0.0,1.0,0.001)) * amp1Enable;
sei = mr2(vslider("[0] Ext Input [midi:ctrl 27] [style: knob]",0,0,1.0,0.001));
extInput(fb,extSig) = fb,extSig : select2(eei) : *(sei) : extClipLED;
extClipLED = _ <: _, (abs : >(0.95) : mr2(vbargraph("[2] Ext Input Clip [style:led]",0,1)):!);
keycLED = attach(mr2(vbargraph("[3] Keyboard Ctl [style:led]",0,1)));
detuneOctaves(2) = osc2(vslider("[2] DeTuning2 [units:Octaves] [midi:ctrl 30] [style:knob]",0.41667,-1.0,1.0,0.001));
waveSelect(2) = osc2(vslider("[3] Waveform2 [midi:ctrl 14] [style:knob]",5,0,5,1):int);
amp2Enable = mr3(vslider("[1] amp2Enable [midi:ctrl 14] [style:knob] [color:blue]",1,0,1,1));
oscamp(2) = mr3(vslider("[0] Osc2 Amp [midi:ctrl 78] [style:knob]",0.5,0.0,1.0,0.001)) * amp2Enable;
namp = mr4(vslider("[0] Noise Amp [midi:ctrl 80] [style: knob]",0.0,0.0,1.0,0.001));
noiseOff = mr4cbg(vslider("[0] noiseEnable [midi:ctrl 52] [style:knob] [color:blue]",0,0,1,1));
ntype = mr4cbg(vslider("[1] White/Pink [midi:ctrl 32] [tooltip: Choose either White or Pink Noise] [style: knob] [color:blue]",1,0,1,1));
detuneOctaves(3) = osc3(vslider("[2] DeTuning3 [units:Octaves] [midi:ctrl 31] [style:knob]",0.3,-1.0,1.0,0.001));
waveSelect(3) = osc3(vslider("[3] Waveform3 [midi:ctrl 15] [style:knob]",0,0,5,1):int);
amp3Enable = mr5(vslider("[1] amp3Enable [midi:ctrl 17] [style:knob] [color:blue]",0,0,1,1));
oscamp(3) = mr5(vslider("[0] Osc3 Amp [midi:ctrl 79] [style:knob]",0.5,0.0,1.0,0.001)) * amp3Enable;
waveforms(i) = (tri(i), bent(i), saw(i), sq(i), ptm(i), ptn(i));
modulationShift = select2(oscModEnable, 0.0,
modWheelShift * ( modulationCenterShift + (1.0-modulationCenterShift) * oscNoiseModulation ));
octaveShift(i) = -2+int(octaveSelect(i));
keyFreqGlidedMaybe = select2(osc3Control,osc3FixedFreq,keyFreqGlided);
detuneBoost(3) = select2(osc3Control,3.0,1.0);
detuneOctavesFinal(i) = detuneOctaves(i)*detuneBoost(i);
fBase(i) = keyFreqModulatedShifted(i) * pow(2.0, (masterTuneOctaves+octaveShift(i)+detuneOctavesFinal(i)))
: si.smooth(ba.tau2pole(0.016));
lfoMode(i) = (octaveSelect(i) == 0);
osc(i) = ba.selectn(6, int(waveSelect(i)), tri(i), bent(i), saw(i), sq(i), ptm(i), ptn(i));
tri(i) = select2(lfoMode(i),
os.triangle(f(i)),
os.lf_triangle(f(i)));
saw(i) = select2(lfoMode(i),
os.sawtooth(f(i)),
os.lf_saw(f(i)));
sq(i) = select2(lfoMode(i),
os.square(f(i)),
os.lf_squarewave(f(i)));
os.pulsetrain(f(i),0.25),
lf_pulsetrain(f(i),0.25));
ptn(i) = select2(lfoMode(i),
os.pulsetrain(f(i),0.125),
lf_pulsetrain(f(i),0.125));
lf_pulsetrain(freq,duty) = 2.0*os.lf_pulsetrainpos(freq,duty) - 1.0;
fcLgHz = vcf1(vslider("[1] Corner Freq [unit:Log2(Hz)]
[tooltip: Corner resonance frequency in Log2(Hertz)]
[style: knob]
: si.smooth(ba.tau2pole(0.016));
res = vcf1(vslider("[2] Corner Resonance [midi:ctrl 33] [tooltip: Resonance Q at VCF corner frequency (0 to 1)]
[style: knob]",
0.7, 0, 1, 0.01));
vcfKeyRange = vcf1cbg(vslider("[2] Kbd Ctl [midi:ctrl 38] [tooltip: Keyboard tracking of VCF corner-frequency (0=none, 1=full)]
[style: knob]",
vcfModEnable = vcf1cbg(vslider("[1] Filter Mod. [midi:ctrl 53] [color:red] [style:knob] [tooltip: Filter Modulation => Route Modulation Mix output to VCF frequency]",1,0,1,1));
vcfContourAmountOctaves = vcf1(vslider("[3] Amount of Contour (octaves) [midi:ctrl 39] [style: knob]", 1.2, 0, 4.0, 0.001));
vcfModulationOctaves = vcfModMixModulationOctaves + vcfContourOctaves;
vcfKeyShiftOctaves = vcfKeyRange * keyShiftOctaves;
modulatedFcLgHz = fcLgHz + vcfModulationOctaves + vcfKeyShiftOctaves;
fc = min((0.5*ma.SR), pow(2.0,modulatedFcLgHz));
vcf = ve.moog_vcf_2bn(res,fc);
attT60VCF = 0.001 * vcf2(vslider("[0] AttackF [midi:ctrl 81] [tooltip: Attack Time] [unit:ms] [style: knob]",1400,10,10000,1));
decT60VCF = 0.001 * vcf2(vslider("[0] DecayF [midi:ctrl 82] [tooltip: Decay-to-Sustain Time] [unit:ms] [style: knob]",10,10,10000,1));
susLvlVCF = 0.01 * vcf2(vslider("[0] SustainF [midi:ctrl 83] [tooltip: Sustain level as percent of max] [style: knob]",80,0,100,0.1));
relT60VCF = select2(decayButton,0.010,decT60VCF);
envelopeVCF = en.adsre(attT60VCF,decT60VCF,susLvlVCF,relT60VCF,gate);
declare interface "SmartKeyboard{
'Number of Keyboards':'2',
'Keyboard 0 - Number of Keys':'13',
'Keyboard 1 - Number of Keys':'13',
'Keyboard 0 - Lowest Key':'72',
'Keyboard 1 - Lowest Key':'60'
}";
keyDownHold = gg(vslider("[0] gateHold [tooltip: lock sustain pedal on (hold gate set at 1)][style:knob]",0,0,1,1));
keyDown = gg(button("[1] gate [tooltip: The gate signal is 1 during a
note and 0 otherwise. For MIDI, NoteOn occurs when the gate
transitions from 0 to 1, and NoteOff is an event corresponding
to the gate transition from 1 to 0. The name of this Faust
button must be 'gate'.]"));
sustain = gg(button("[1] sustain [midi:ctrl 64]
gate = main_gate + keyDown + keyDownHold + sustain : min(1);
attT60 = 0.001 * ng(vslider("[0] AttackA [midi:ctrl 43] [tooltip: Attack Time] [unit:ms] [style: knob]",2,0,5000,0.1));
decT60 = 0.001 * ng(vslider("[0] DecayA [midi:ctrl 44] [tooltip: Decay-to-Sustain Time] [unit:ms] [style: knob]",10,0,10000,0.1));
susLvl = 0.01 * ng(vslider("[0] SustainA [midi:ctrl 45] [tooltip: Sustain level as percent of max] [style: knob]",80,0,100,0.1));
envelopeAmpNoAM = en.adsre(attT60,decT60,susLvl,relT60,gate);
AMDepth = 0.5;
envelopeAmp = select2(oscModEnable, envelopeAmpNoAM,
envelopeAmpNoAM * (1.0 + AMDepth*modWheel * 0.5 * (1.0+oscNoiseModulation)));
ampL = volg(vslider("[1] gain [style:knob] [midi:ctrl 84] [tooltip: Amplitude]",0.2,0,1.0,0.001));
bend = wg(ba.semi2ratio(hslider("[0] bend [style:knob] [midi:pitchwheel]",0,-2,2,0.01))) : si.polySmooth(gate,0.999,1);
modWheel = wg(vslider("[1] mod [midi:ctrl 1] [style:knob] [tooltip: PitchModulation amplitude in octaves]",
0,0,1.0,0.01)) : si.polySmooth(gate,0.999,1);
masterVolume = vg(vslider("MasterVolume [style:knob] [midi:ctrl 7] [tooltip: master volume, MIDI controlled]",
0.7,0,1,0.001))
: si.smooth(ba.tau2pole(0.16));
masterTuneOctaves = dg(vslider("[0] Tune [midi:ctrl 47] [unit:Octaves] [style:knob]
[tooltip: Frequency-shift up or down for all oscillators in Octaves]", 0.0,-1.0,1.0,0.001));
glide = gmmg(vslider("[0] Glide [midi:ctrl 5] [unit:sec/octave] [style:knob] [scale:log]
[tooltip: Portamento (frequency-glide) in seconds per octave]",
0.008,0.001,1.0,0.001));
keyFreqGlided = keyFreqBent : si.smooth(legatoPole);
mmix = gmmg(vslider("[1] Mod. Mix [midi:ctrl 48] [style:knob] [tooltip: Modulation Mix: Osc3 (0) to Noise (1)]",
0.0,0.0,1.0,0.001));
osc3Control = dsg(vslider("[1] Osc. 3 Ctl [midi:ctrl 9] [color:red] [style:knob] [tooltip:Oscillator 3 frequency tracks the keyboard if on, else not",0,0,1,1):int);
vrocker(x) = checkbox("%%x [style:vrocker]");
hrocker(x) = checkbox("%%x [style:hrocker]");
vrockerblue(x) = checkbox("%x [style:vrocker] [color:blue]");
vrockerblue(x) = checkbox("%x [style:vrocker] [color:blue]");
hrockerblue(x) = checkbox("%%x [style:hrocker] [color:blue]");
vrockerred(x) = checkbox("%%x [style:vrocker] [color:red]");
hrockerred(x) = checkbox("%%x [style:hrocker] [color:red]");
declare designer "Robert A. Moog";
synthg(x) = mmg(vgroup("[0] Minimoog",x));
fxg(x) = mmg(hgroup("[1] Effects",x));
mg(x) = synthg(hgroup("[0]",x));
vg(x) = cg(hgroup("[0] Master Volume", x));
dg(x) = cg(hgroup("[1] Oscillator Tuning & Switching", x));
dsg(x) = dg(vgroup("[1] Switches", x));
gmmg(x) = cg(hgroup("[2] Glide and ModMix", x));
og(x) = mg(vgroup("[1] Oscillator Bank", x));
osc1(x) = og(hgroup("[1] Oscillator 1", x));
osc2(x) = og(hgroup("[2] Oscillator 2", x));
osc3(x) = og(hgroup("[3] Oscillator 3", x));
mixg(x) = mg(vgroup("[2] Mixer", x));
modg(x) = mg(vgroup("[3] Modifiers", x));
vcfg(x) = modg(vgroup("[0] Filter", x));
vcf1(x) = vcfg(hgroup("[0] [tooltip:freq, Q, ContourScale]", x));
vcf1cbg(x) = vcf1(vgroup("[0] [tooltip:two checkboxes]", x));
vcf2(x) = vcfg(hgroup("[1] Filter Contour [tooltip:AttFilt, DecFilt, Sustain Level for Filter Contour]", x));
ng(x) = modg(hgroup("[1] Loudness Contour", x));
echog(x) = fxg(hgroup("[4] Echo",x));
ekg(x) = echog(vgroup("[0] Knobs",x));
esg(x) = echog(vgroup("[1] Switches",x));
flg(x) = fxg(hgroup("[5] Flanger",x));
flkg(x) = flg(vgroup("[0] Knobs",x));
flsg(x) = flg(vgroup("[1] Switches",x));
chg(x) = fxg(hgroup("[6] Chorus",x));
ckg(x) = chg(vgroup("[0] Knobs",x));
csg(x) = chg(vgroup("[1] Switches",x));
rg(x) = fxg(hgroup("[7] Reverb",x));
rkg(x) = rg(vgroup("[0] Knobs",x));
rsg(x) = rg(vgroup("[1] Switches",x));
outg(x) = fxg(vgroup("[8] Output", x));
volg(x) = outg(hgroup("[0] Volume Main Output", x));
tunerg(x) = outg(hgroup("[1] A-440 Switch", x));
vdtpolyg(x) = outg(hgroup("[2] Voice Detune / Poly", x));
clipg(x) = fxg(vgroup("[9] Soft Clip", x));
ws(x) = kg(vgroup("[0] Wheels and Switches", x));
s1g(x) = ws(hgroup("[0] Jacks and Rockers", x));
jg(x) = s1g(vgroup("[0] MiniJacks",x));
s2g(x) = ws(hgroup("[1] [tooltip:Wheels+]", x));
bg(x) = s2g(vgroup("[0] [tooltip:Bend Enable and Range]", x));
wg(x) = s2g(hgroup("[1] [tooltip:Bend and Mod Wheels]", x));
keys(x) = kg(hgroup("[1] [tooltip:Keys]", x));
gg(x) = keys(hgroup("[0] [tooltip: Gates]",x));
|
190b4d0b295c5379531e53ce38b06af5118512e43a087c32f72f2e3ccac84a06 | inria-emeraude/syfala | sinewaveLFO.dsp | import("stdfaust.lib");
sinewave = waveform { 0, 0.00306795677, 0.00613588467, 0.00920375437, 0.0122715384, 0.0153392069, 0.0184067301, 0.021474082, 0.024541229, 0.027608145, 0.030674804, 0.0337411761, 0.0368072242, 0.0398729295, 0.0429382585, 0.0460031815, 0.0490676761, 0.0521317087, 0.0551952459, 0.0582582653, 0.0613207407, 0.0643826351, 0.0674439222, 0.070504576, 0.0735645667, 0.0766238645, 0.0796824396, 0.0827402696, 0.0857973173, 0.0888535529, 0.0919089541, 0.0949634984, 0.0980171412, 0.101069868, 0.10412164, 0.10717243, 0.110222206, 0.113270953, 0.116318636, 0.119365215, 0.122410677, 0.125454977, 0.128498122, 0.13154003, 0.134580716, 0.137620121, 0.140658244, 0.143695042, 0.146730468, 0.149764538, 0.152797192, 0.155828416, 0.15885815, 0.161886394, 0.164913133, 0.167938292, 0.170961902, 0.173983872, 0.177004218, 0.18002291, 0.183039889, 0.186055154, 0.18906866, 0.192080408, 0.195090324, 0.198098406, 0.201104641, 0.204108968, 0.207111388, 0.210111842, 0.213110328, 0.216106802, 0.219101235, 0.222093627, 0.225083917, 0.228072092, 0.231058121, 0.234041959, 0.237023607, 0.24000302, 0.242980197, 0.24595505, 0.248927608, 0.251897812, 0.254865676, 0.257831097, 0.260794133, 0.263754696, 0.266712785, 0.269668311, 0.272621363, 0.275571823, 0.27851969, 0.281464934, 0.284407556, 0.287347466, 0.290284663, 0.293219179, 0.296150893, 0.299079835, 0.302005947, 0.304929256, 0.307849675, 0.310767144, 0.313681751, 0.316593409, 0.319502026, 0.322407693, 0.32531032, 0.328209847, 0.331106305, 0.333999664, 0.336889863, 0.339776874, 0.342660725, 0.345541328, 0.348418683, 0.351292759, 0.354163527, 0.357030988, 0.359895051, 0.362755746, 0.365613014, 0.368466824, 0.371317208, 0.374164075, 0.377007425, 0.379847199, 0.382683456, 0.385516077, 0.388345033, 0.391170382, 0.393992066, 0.396809995, 0.399624199, 0.402434677, 0.40524134, 0.408044159, 0.410843194, 0.413638324, 0.416429579, 0.419216901, 0.422000289, 0.424779713, 0.427555084, 0.430326492, 0.433093846, 0.435857117, 0.438616246, 0.441371292, 0.444122165, 0.446868837, 0.449611336, 0.452349603, 0.455083579, 0.457813323, 0.460538715, 0.463259816, 0.465976506, 0.468688846, 0.471396744, 0.474100202, 0.47679925, 0.479493737, 0.482183754, 0.484869242, 0.487550169, 0.490226507, 0.492898226, 0.495565295, 0.498227656, 0.500885367, 0.50353837, 0.506186664, 0.50883019, 0.511468887, 0.514102757, 0.516731799, 0.519356012, 0.521975279, 0.524589717, 0.527199149, 0.529803634, 0.532403171, 0.534997642, 0.537587106, 0.540171504, 0.542750776, 0.545324981, 0.547894061, 0.550458014, 0.553016722, 0.555570245, 0.558118522, 0.560661614, 0.563199341, 0.565731823, 0.568259001, 0.570780754, 0.573297143, 0.575808227, 0.578313828, 0.580814004, 0.583308697, 0.585797906, 0.588281572, 0.590759695, 0.593232334, 0.59569931, 0.598160744, 0.600616515, 0.603066623, 0.60551101, 0.607949793, 0.610382795, 0.612810075, 0.615231633, 0.61764735, 0.620057225, 0.622461259, 0.624859512, 0.627251804, 0.629638255, 0.632018745, 0.634393334, 0.636761844, 0.639124453, 0.641481042, 0.643831551, 0.64617604, 0.64851445, 0.65084672, 0.653172851, 0.655492842, 0.657806695, 0.660114348, 0.662415802, 0.664710999, 0.666999936, 0.669282556, 0.671558976, 0.673829019, 0.676092744, 0.678350091, 0.680601001, 0.682845592, 0.685083687, 0.687315345, 0.689540565, 0.691759288, 0.693971455, 0.696177185, 0.698376298, 0.700568795, 0.702754736, 0.704934061, 0.707106769, 0.709272861, 0.711432219, 0.7135849, 0.715730846, 0.717870057, 0.720002532, 0.722128212, 0.724247098, 0.726359189, 0.728464425, 0.730562747, 0.732654274, 0.734738886, 0.736816585, 0.73888737, 0.74095118, 0.743007958, 0.745057762, 0.747100592, 0.749136388, 0.751165152, 0.753186822, 0.755201399, 0.757208884, 0.759209216, 0.761202395, 0.763188422, 0.765167296, 0.767138958, 0.769103348, 0.771060586, 0.773010433, 0.774953127, 0.77688849, 0.778816521, 0.780737281, 0.78265065, 0.784556627, 0.786455214, 0.78834641, 0.790230215, 0.792106569, 0.793975472, 0.795836926, 0.797690868, 0.799537301, 0.801376164, 0.803207517, 0.805031359, 0.806847572, 0.808656216, 0.81045717, 0.812250614, 0.81403631, 0.815814435, 0.817584813, 0.81934756, 0.82110256, 0.82284981, 0.824589312, 0.826321065, 0.82804507, 0.829761267, 0.831469655, 0.833170176, 0.834862888, 0.836547732, 0.838224709, 0.839893818, 0.84155494, 0.843208253, 0.84485358, 0.84649092, 0.848120332, 0.849741757, 0.851355195, 0.852960646, 0.854557991, 0.856147349, 0.85772866, 0.859301865, 0.860866964, 0.862424016, 0.863972843, 0.865513623, 0.867046237, 0.868570685, 0.870086968, 0.871595085, 0.873094976, 0.874586642, 0.876070142, 0.877545297, 0.879012287, 0.880470932, 0.881921291, 0.883363307, 0.884797096, 0.886222541, 0.887639642, 0.889048338, 0.890448749, 0.891840696, 0.893224299, 0.894599497, 0.895966291, 0.897324622, 0.898674488, 0.90001595, 0.901348889, 0.902673304, 0.903989315, 0.905296743, 0.906595707, 0.907886147, 0.909168005, 0.910441279, 0.91170603, 0.912962198, 0.914209783, 0.915448725, 0.916679084, 0.917900801, 0.919113874, 0.920318246, 0.921514034, 0.92270112, 0.923879504, 0.925049245, 0.926210225, 0.927362561, 0.928506076, 0.929640889, 0.930767, 0.931884289, 0.932992816, 0.934092581, 0.935183525, 0.936265647, 0.937339008, 0.938403547, 0.939459205, 0.940506101, 0.941544056, 0.94257319, 0.943593442, 0.944604874, 0.945607364, 0.946600914, 0.947585642, 0.94856137, 0.949528217, 0.950486064, 0.95143503, 0.952374995, 0.953306019, 0.954228103, 0.955141187, 0.95604527, 0.956940353, 0.957826436, 0.958703518, 0.95957154, 0.960430562, 0.961280525, 0.962121427, 0.962953269, 0.963776052, 0.964589775, 0.965394437, 0.966189981, 0.966976464, 0.967753828, 0.968522131, 0.969281256, 0.970031261, 0.970772147, 0.971503913, 0.972226501, 0.972939968, 0.973644257, 0.974339366, 0.975025356, 0.975702107, 0.976369739, 0.977028131, 0.977677345, 0.97831738, 0.978948176, 0.979569793, 0.980182171, 0.98078531, 0.981379211, 0.981963873, 0.982539296, 0.983105481, 0.983662426, 0.984210074, 0.984748483, 0.985277653, 0.985797524, 0.986308098, 0.986809433, 0.987301409, 0.987784147, 0.988257587, 0.988721728, 0.989176512, 0.989621997, 0.990058184, 0.990485072, 0.990902662, 0.991310835, 0.991709769, 0.992099345, 0.992479563, 0.992850423, 0.993211985, 0.993564129, 0.993906975, 0.994240463, 0.994564593, 0.994879305, 0.99518472, 0.995480776, 0.995767415, 0.996044695, 0.996312618, 0.996571124, 0.996820331, 0.997060061, 0.997290432, 0.997511446, 0.997723043, 0.997925282, 0.998118103, 0.998301566, 0.998475552, 0.998640239, 0.99879545, 0.998941302, 0.999077737, 0.999204755, 0.999322414, 0.999430597, 0.999529421, 0.999618828, 0.999698818, 0.99976939, 0.999830604, 0.99988234, 0.999924719, 0.999957621, 0.999981165, 0.999995291, 1, 0.999995291, 0.999981165, 0.999957621, 0.999924719, 0.99988234, 0.999830604, 0.99976939, 0.999698818, 0.999618828, 0.999529421, 0.999430597, 0.999322355, 0.999204755, 0.999077737, 0.998941302, 0.99879545, 0.998640239, 0.998475552, 0.998301566, 0.998118103, 0.997925282, 0.997723043, 0.997511446, 0.997290432, 0.997060061, 0.996820271, 0.996571124, 0.996312618, 0.996044695, 0.995767415, 0.995480776, 0.99518472, 0.994879305, 0.994564533, 0.994240463, 0.993906975, 0.993564129, 0.993211925, 0.992850423, 0.992479503, 0.992099285, 0.991709769, 0.991310835, 0.990902603, 0.990485072, 0.990058184, 0.989621997, 0.989176512, 0.988721669, 0.988257587, 0.987784147, 0.987301409, 0.986809373, 0.986308098, 0.985797524, 0.985277653, 0.984748483, 0.984210074, 0.983662426, 0.983105481, 0.982539296, 0.981963873, 0.981379211, 0.980785251, 0.980182111, 0.979569733, 0.978948176, 0.97831738, 0.977677345, 0.977028131, 0.976369739, 0.975702107, 0.975025356, 0.974339366, 0.973644257, 0.972939909, 0.972226501, 0.971503913, 0.970772147, 0.970031261, 0.969281256, 0.968522072, 0.967753828, 0.966976464, 0.966189981, 0.965394437, 0.964589775, 0.963776052, 0.96295321, 0.962121427, 0.961280465, 0.960430503, 0.959571481, 0.958703458, 0.957826376, 0.956940293, 0.95604521, 0.955141127, 0.954228103, 0.953306019, 0.952374995, 0.95143497, 0.950486064, 0.949528158, 0.94856137, 0.947585583, 0.946600914, 0.945607305, 0.944604814, 0.943593442, 0.94257319, 0.941544056, 0.940506041, 0.939459205, 0.938403487, 0.937338948, 0.936265647, 0.935183525, 0.934092522, 0.932992816, 0.931884229, 0.93076694, 0.929640889, 0.928506076, 0.927362502, 0.926210225, 0.925049186, 0.923879504, 0.92270112, 0.921513975, 0.920318246, 0.919113874, 0.917900801, 0.916679025, 0.915448725, 0.914209723, 0.912962198, 0.91170603, 0.910441279, 0.909168005, 0.907886147, 0.906595707, 0.905296743, 0.903989315, 0.902673304, 0.901348829, 0.900015891, 0.898674428, 0.897324562, 0.895966232, 0.894599438, 0.893224299, 0.891840696, 0.890448689, 0.889048338, 0.887639582, 0.886222482, 0.884797037, 0.883363307, 0.881921232, 0.880470812, 0.879012167, 0.877545238, 0.876070023, 0.874586582, 0.873094916, 0.871595085, 0.870087028, 0.868570745, 0.867046237, 0.865513623, 0.863972843, 0.862423956, 0.860866964, 0.859301805, 0.857728601, 0.856147289, 0.854557991, 0.852960587, 0.851355135, 0.849741757, 0.848120332, 0.84649092, 0.84485352, 0.843208194, 0.84155494, 0.839893758, 0.838224649, 0.836547673, 0.834862769, 0.833170056, 0.831469536, 0.829761147, 0.82804507, 0.826321065, 0.824589312, 0.82284981, 0.8211025, 0.819347501, 0.817584813, 0.815814435, 0.81403631, 0.812250555, 0.81045717, 0.808656156, 0.806847513, 0.8050313, 0.803207517, 0.801376104, 0.799537241, 0.797690809, 0.795836866, 0.793975413, 0.792106509, 0.790230155, 0.78834635, 0.786455154, 0.784556508, 0.782650471, 0.780737102, 0.778816402, 0.77688849, 0.774953127, 0.773010492, 0.771060526, 0.769103348, 0.767138898, 0.765167236, 0.763188422, 0.761202395, 0.759209156, 0.757208824, 0.75520134, 0.753186762, 0.751165092, 0.749136329, 0.747100532, 0.745057702, 0.743007898, 0.740951061, 0.73888725, 0.736816466, 0.734738767, 0.732654154, 0.730562687, 0.728464305, 0.726359069, 0.724246979, 0.722128093, 0.720002532, 0.717870057, 0.715730846, 0.7135849, 0.711432219, 0.709272802, 0.707106769, 0.704934061, 0.702754736, 0.700568795, 0.698376238, 0.696177125, 0.693971395, 0.691759229, 0.689540505, 0.687315285, 0.685083628, 0.682845473, 0.680600941, 0.678349972, 0.676092625, 0.6738289, 0.671558857, 0.669282496, 0.666999817, 0.664710879, 0.662415624, 0.660114408, 0.657806695, 0.655492902, 0.653172851, 0.65084672, 0.64851439, 0.64617604, 0.643831551, 0.641480982, 0.639124393, 0.636761844, 0.634393275, 0.632018685, 0.629638195, 0.627251744, 0.624859452, 0.6224612, 0.620057106, 0.617647231, 0.615231514, 0.612809956, 0.610382676, 0.607949674, 0.60551095, 0.603066444, 0.600616336, 0.598160565, 0.595699131, 0.593232334, 0.590759754, 0.588281572, 0.585797846, 0.583308637, 0.580813944, 0.578313768, 0.575808167, 0.573297143, 0.570780694, 0.568258941, 0.565731764, 0.563199282, 0.560661495, 0.558118463, 0.555570185, 0.553016603, 0.550457895, 0.547893941, 0.545324862, 0.542750657, 0.540171385, 0.537586927, 0.534997463, 0.532402992, 0.529803455, 0.52719897, 0.524589539, 0.521975338, 0.519356012, 0.516731799, 0.514102757, 0.511468828, 0.50883013, 0.506186604, 0.50353837, 0.500885367, 0.498227626, 0.495565206, 0.492898136, 0.490226418, 0.48755011, 0.484869182, 0.482183695, 0.479493678, 0.47679913, 0.474100113, 0.471396625, 0.468688697, 0.465976357, 0.463259637, 0.460538566, 0.457813144, 0.45508343, 0.452349424, 0.449611366, 0.446868867, 0.444122165, 0.441371292, 0.438616246, 0.435857087, 0.433093816, 0.430326462, 0.427555054, 0.424779654, 0.422000229, 0.419216841, 0.41642949, 0.413638234, 0.410843104, 0.40804407, 0.405241221, 0.402434558, 0.399624109, 0.396809876, 0.393991917, 0.391170263, 0.388344914, 0.385515898, 0.382683277, 0.37984705, 0.377007246, 0.374163896, 0.371317238, 0.368466854, 0.365613014, 0.362755746, 0.359895051, 0.357030958, 0.354163498, 0.351292729, 0.348418653, 0.345541298, 0.342660666, 0.339776844, 0.336889803, 0.333999574, 0.331106216, 0.328209758, 0.3253102, 0.322407573, 0.319501907, 0.31659326, 0.313681602, 0.310767025, 0.307849497, 0.304929078, 0.302005798, 0.299079657, 0.296150714, 0.29321897, 0.290284723, 0.287347496, 0.284407556, 0.281464934, 0.27851969, 0.275571823, 0.272621334, 0.269668311, 0.266712725, 0.263754636, 0.260794073, 0.257831037, 0.254865587, 0.251897752, 0.248927519, 0.245954961, 0.242980078, 0.240002915, 0.237023488, 0.234041825, 0.231057972, 0.228071943, 0.225083753, 0.222093463, 0.219101071, 0.216106623, 0.213110134, 0.210111871, 0.207111403, 0.204108983, 0.201104641, 0.198098406, 0.195090309, 0.192080379, 0.189068645, 0.186055124, 0.183039844, 0.180022851, 0.177004158, 0.173983812, 0.170961812, 0.167938218, 0.164913028, 0.16188629, 0.158858031, 0.155828282, 0.152797058, 0.149764404, 0.146730334, 0.143694878, 0.140658081, 0.137619957, 0.134580523, 0.131539837, 0.128497913, 0.125455007, 0.1224107, 0.11936523, 0.116318636, 0.113270946, 0.110222198, 0.107172407, 0.104121603, 0.101069823, 0.0980170965, 0.0949634388, 0.0919088945, 0.0888534784, 0.0857972279, 0.0827401727, 0.0796823353, 0.0766237527, 0.0735644475, 0.0705044493, 0.0674437881, 0.064382486, 0.0613205843, 0.0582581051, 0.0551950745, 0.0521315262, 0.0490674861, 0.0460029878, 0.0429380536, 0.0398729518, 0.0368072391, 0.0337411799, 0.0306748021, 0.0276081376, 0.0245412104, 0.0214740541, 0.0184066948, 0.0153391622, 0.0122714853, 0.00920369383, 0.00613581482, 0.00306787807, -8.74227766e-08, -0.00306805293, -0.00613598945, -0.00920386799, -0.0122716604, -0.0153393373, -0.0184068698, -0.0214742292, -0.0245413855, -0.0276083108, -0.0306749772, -0.0337413549, -0.0368074141, -0.0398731269, -0.0429382287, -0.0460031629, -0.0490676612, -0.0521317013, -0.0551952496, -0.0582582802, -0.0613207594, -0.0643826649, -0.0674439594, -0.0705046207, -0.0735646188, -0.0766239241, -0.0796825141, -0.0827403516, -0.0857974067, -0.0888536498, -0.0919090658, -0.0949636102, -0.0980172679, -0.101070002, -0.104121774, -0.107172579, -0.110222369, -0.113271125, -0.116318807, -0.119365402, -0.122410871, -0.125455186, -0.128498092, -0.131540015, -0.134580702, -0.137620121, -0.140658244, -0.143695056, -0.146730497, -0.149764568, -0.152797237, -0.155828446, -0.15885821, -0.161886469, -0.164913192, -0.167938381, -0.170961991, -0.173983976, -0.177004337, -0.180023029, -0.183040023, -0.186055288, -0.189068809, -0.192080557, -0.195090488, -0.198098585, -0.20110482, -0.204109162, -0.207111567, -0.21011205, -0.213110298, -0.216106787, -0.219101235, -0.222093627, -0.225083932, -0.228072107, -0.231058136, -0.234042004, -0.237023652, -0.240003079, -0.242980242, -0.245955124, -0.248927683, -0.251897901, -0.254865766, -0.257831216, -0.260794222, -0.263754815, -0.266712904, -0.26966846, -0.272621512, -0.275571972, -0.278519869, -0.281465113, -0.284407705, -0.287347645, -0.290284872, -0.293219149, -0.296150863, -0.299079835, -0.302005947, -0.304929256, -0.307849646, -0.310767174, -0.313681781, -0.316593409, -0.319502085, -0.322407752, -0.325310349, -0.328209907, -0.331106395, -0.333999753, -0.336889952, -0.339776993, -0.342660844, -0.345541447, -0.348418802, -0.351292908, -0.354163677, -0.357031107, -0.3598952, -0.362755895, -0.365613192, -0.368467033, -0.371317387, -0.374164045, -0.377007395, -0.379847199, -0.382683426, -0.385516077, -0.388345063, -0.391170412, -0.393992066, -0.396810025, -0.399624258, -0.402434707, -0.4052414, -0.408044249, -0.410843253, -0.413638413, -0.416429669, -0.41921699, -0.422000378, -0.424779803, -0.427555233, -0.430326611, -0.433093965, -0.435857236, -0.438616395, -0.441371441, -0.444122314, -0.446869016, -0.449611515, -0.452349573, -0.455083579, -0.457813323, -0.460538715, -0.463259816, -0.465976536, -0.468688846, -0.471396774, -0.474100262, -0.476799279, -0.479493827, -0.482183844, -0.484869331, -0.487550259, -0.490226567, -0.492898285, -0.495565385, -0.498227775, -0.500885487, -0.503538489, -0.506186783, -0.508830309, -0.511469007, -0.514102876, -0.516731977, -0.519356191, -0.521975458, -0.524589658, -0.527199149, -0.529803634, -0.532403111, -0.534997642, -0.537587106, -0.540171504, -0.542750835, -0.545325041, -0.54789412, -0.550458014, -0.553016782, -0.555570304, -0.558118641, -0.560661674, -0.563199461, -0.565731883, -0.56825906, -0.570780873, -0.573297262, -0.575808346, -0.578313947, -0.580814123, -0.583308816, -0.585798025, -0.588281691, -0.590759873, -0.593232453, -0.59569931, -0.598160684, -0.600616515, -0.603066623, -0.605511069, -0.607949793, -0.610382855, -0.612810135, -0.615231633, -0.61764735, -0.620057285, -0.622461319, -0.624859571, -0.627251923, -0.629638314, -0.632018805, -0.634393394, -0.636761963, -0.639124572, -0.641481161, -0.64383167, -0.646176159, -0.648514509, -0.650846839, -0.65317297, -0.655493021, -0.657806873, -0.660114527, -0.662415802, -0.664710999, -0.666999936, -0.669282615, -0.671558976, -0.673829019, -0.676092744, -0.678350091, -0.68060106, -0.682845592, -0.685083747, -0.687315404, -0.689540625, -0.691759348, -0.693971574, -0.696177244, -0.698376358, -0.700568914, -0.702754855, -0.70493418, -0.707106888, -0.709272981, -0.711432338, -0.713585019, -0.715730965, -0.717870176, -0.720002651, -0.722128212, -0.724247098, -0.726359189, -0.728464425, -0.730562806, -0.732654274, -0.734738886, -0.736816585, -0.73888737, -0.74095118, -0.743008018, -0.745057821, -0.747100651, -0.749136448, -0.751165211, -0.753186882, -0.755201459, -0.757208765, -0.759209156, -0.761202335, -0.763188362, -0.765167236, -0.767138898, -0.769103289, -0.771060526, -0.773010433, -0.774953067, -0.77688843, -0.778816521, -0.780737221, -0.78265059, -0.784556627, -0.786455214, -0.788346469, -0.790230274, -0.792106628, -0.793975532, -0.795836926, -0.797690868, -0.799537301, -0.801376224, -0.803207576, -0.805031419, -0.806847632, -0.808656275, -0.810457289, -0.812250674, -0.814036429, -0.815814495, -0.817584932, -0.81934762, -0.821102619, -0.82284987, -0.824589431, -0.826321185, -0.828045189, -0.829761386, -0.831469774, -0.833170295, -0.834863007, -0.836547852, -0.838224888, -0.839893937, -0.841555119, -0.843208432, -0.844853759, -0.846491098, -0.848120511, -0.849741936, -0.851355374, -0.852960527, -0.854557931, -0.856147289, -0.857728541, -0.859301805, -0.860866904, -0.862423897, -0.863972843, -0.865513623, -0.867046237, -0.868570685, -0.870086968, -0.871595085, -0.873094976, -0.874586642, -0.876070082, -0.877545297, -0.879012227, -0.880470932, -0.881921291, -0.883363366, -0.884797156, -0.886222541, -0.887639642, -0.889048398, -0.890448749, -0.891840756, -0.893224359, -0.894599557, -0.895966291, -0.897324622, -0.898674548, -0.90001595, -0.901348948, -0.902673423, -0.903989375, -0.905296862, -0.906595767, -0.907886207, -0.909168065, -0.910441399, -0.91170615, -0.912962317, -0.914209843, -0.915448844, -0.916679144, -0.91790086, -0.919113994, -0.920318425, -0.921514153, -0.92270124, -0.923879683, -0.925049365, -0.926210344, -0.92736268, -0.928506017, -0.92964083, -0.93076694, -0.931884229, -0.932992756, -0.934092522, -0.935183465, -0.936265647, -0.937339008, -0.938403547, -0.939459205, -0.940506041, -0.941544056, -0.94257319, -0.943593442, -0.944604814, -0.945607305, -0.946600914, -0.947585583, -0.94856137, -0.949528217, -0.950486124, -0.95143503, -0.952375054, -0.953306079, -0.954228103, -0.955141187, -0.95604527, -0.956940353, -0.957826436, -0.958703518, -0.95957154, -0.960430562, -0.961280525, -0.962121427, -0.962953329, -0.963776112, -0.964589834, -0.965394497, -0.96619004, -0.966976523, -0.967753887, -0.968522131, -0.969281316, -0.970031321, -0.970772207, -0.971503973, -0.97222656, -0.972940028, -0.973644316, -0.974339426, -0.975025415, -0.975702226, -0.976369798, -0.977028191, -0.977677345, -0.97831732, -0.978948176, -0.979569733, -0.980182111, -0.980785251, -0.981379211, -0.981963873, -0.982539296, -0.983105481, -0.983662426, -0.984210074, -0.984748483, -0.985277653, -0.985797524, -0.986308098, -0.986809433, -0.987301409, -0.987784147, -0.988257587, -0.988721728, -0.989176512, -0.989622056, -0.990058243, -0.990485072, -0.990902662, -0.991310894, -0.991709769, -0.992099345, -0.992479563, -0.992850423, -0.993211985, -0.993564129, -0.993906975, -0.994240463, -0.994564593, -0.994879365, -0.99518472, -0.995480776, -0.995767415, -0.996044695, -0.996312618, -0.996571183, -0.996820331, -0.99706012, -0.997290492, -0.997511506, -0.997723103, -0.997925282, -0.998118103, -0.998301566, -0.998475611, -0.998640239, -0.99879545, -0.998941302, -0.999077737, -0.999204755, -0.999322355, -0.999430597, -0.999529421, -0.999618828, -0.999698818, -0.99976939, -0.999830604, -0.99988234, -0.999924719, -0.999957621, -0.999981165, -0.999995291, -1, -0.999995291, -0.999981165, -0.999957621, -0.999924719, -0.99988234, -0.999830604, -0.99976939, -0.999698818, -0.999618828, -0.999529421, -0.999430597, -0.999322355, -0.999204755, -0.999077737, -0.998941302, -0.99879545, -0.998640239, -0.998475552, -0.998301506, -0.998118103, -0.997925282, -0.997723043, -0.997511446, -0.997290432, -0.997060061, -0.996820271, -0.996571124, -0.996312618, -0.996044695, -0.995767415, -0.995480716, -0.99518472, -0.994879305, -0.994564533, -0.994240403, -0.993906915, -0.993564069, -0.993211925, -0.992850363, -0.992479503, -0.992099285, -0.991709769, -0.991310894, -0.990902662, -0.990485072, -0.990058243, -0.989621997, -0.989176512, -0.988721669, -0.988257587, -0.987784147, -0.987301409, -0.986809373, -0.986308098, -0.985797524, -0.985277653, -0.984748483, -0.984210074, -0.983662426, -0.983105481, -0.982539296, -0.981963873, -0.981379151, -0.980785251, -0.980182111, -0.979569733, -0.978948176, -0.97831732, -0.977677345, -0.977028131, -0.976369679, -0.975702107, -0.975025296, -0.974339366, -0.973644197, -0.972939909, -0.972226441, -0.971503854, -0.970772088, -0.970031202, -0.969281197, -0.968522012, -0.967753768, -0.966976404, -0.966189921, -0.965394378, -0.964589715, -0.963775992, -0.96295321, -0.962121308, -0.961280406, -0.960430443, -0.959571421, -0.958703399, -0.957826316, -0.956940234, -0.95604527, -0.955141187, -0.954228103, -0.953306079, -0.952375054, -0.95143503, -0.950486064, -0.949528217, -0.94856137, -0.947585583, -0.946600914, -0.945607305, -0.944604814, -0.943593442, -0.94257319, -0.941544056, -0.940506041, -0.939459205, -0.938403487, -0.937339008, -0.936265647, -0.935183465, -0.934092522, -0.932992756, -0.931884229, -0.93076694, -0.92964083, -0.928506017, -0.927362442, -0.926210165, -0.925049186, -0.923879445, -0.922701061, -0.921513975, -0.920318186, -0.919113755, -0.917900681, -0.916678965, -0.915448606, -0.914209664, -0.912962079, -0.911705911, -0.91044116, -0.909167886, -0.907885969, -0.906595588, -0.905296624, -0.903989136, -0.902673185, -0.90134871, -0.900015771, -0.898674309, -0.897324443, -0.895966113, -0.894599319, -0.89322412, -0.891840756, -0.890448749, -0.889048398, -0.887639642, -0.886222541, -0.884797096, -0.883363366, -0.881921291, -0.880470872, -0.879012227, -0.877545297, -0.876070082, -0.874586642, -0.873094976, -0.871595085, -0.870086968, -0.868570685, -0.867046237, -0.865513563, -0.863972843, -0.862423897, -0.860866904, -0.859301746, -0.857728541, -0.856147289, -0.854557931, -0.852960527, -0.851355135, -0.849741697, -0.848120272, -0.84649086, -0.844853461, -0.843208134, -0.84155488, -0.839893699, -0.83822459, -0.836547613, -0.834862769, -0.833170056, -0.831469476, -0.829761088, -0.828044891, -0.826320887, -0.824589133, -0.822849631, -0.821102321, -0.819347322, -0.817584634, -0.815814197, -0.814036131, -0.812250376, -0.810456991, -0.808655977, -0.806847334, -0.805031121, -0.803207576, -0.801376224, -0.799537301, -0.797690868, -0.795836926, -0.793975532, -0.792106569, -0.790230215, -0.78834641, -0.786455214, -0.784556568, -0.78265059, -0.780737221, -0.778816521, -0.77688843, -0.774953067, -0.773010433, -0.771060467, -0.769103289, -0.767138839, -0.765167236, -0.763188362, -0.761202335, -0.759209096, -0.757208765, -0.75520128, -0.753186703, -0.751165032, -0.749136269, -0.747100472, -0.745057642, -0.743007839, -0.740951002, -0.738887191, -0.736816406, -0.734738708, -0.732654095, -0.730562627, -0.728464246, -0.72635901, -0.724246919, -0.722128034, -0.720002294, -0.717869818, -0.715730608, -0.713584661, -0.71143198, -0.709272623, -0.707106531, -0.704933822, -0.702754498, -0.700568557, -0.698376, -0.696176887, -0.693971157, -0.691759348, -0.689540625, -0.687315404, -0.685083687, -0.682845592, -0.680601001, -0.678350091, -0.676092744, -0.673829019, -0.671558976, -0.669282615, -0.666999936, -0.664710939, -0.662415743, -0.660114288, -0.657806635, -0.655492783, -0.653172791, -0.650846601, -0.64851433, -0.646175921, -0.643831491, -0.641480923, -0.639124334, -0.636761785, -0.634393156, -0.632018626, -0.629638135, -0.627251685, -0.624859333, -0.62246114, -0.620057046, -0.617647171, -0.615231454, -0.612809896, -0.610382617, -0.607949615, -0.605510831, -0.603066385, -0.600616276, -0.598160505, -0.595699072, -0.593232095, -0.590759456, -0.588281333, -0.585797608, -0.583308399, -0.580813706, -0.578313529, -0.575807929, -0.573296905, -0.570780456, -0.568258643, -0.565731525, -0.563199043, -0.560661256, -0.558118582, -0.555570304, -0.553016782, -0.550458014, -0.54789412, -0.545325041, -0.542750776, -0.540171504, -0.537587106, -0.534997642, -0.532403111, -0.529803634, -0.52719909, -0.524589658, -0.521975279, -0.519355953, -0.516731739, -0.514102697, -0.511468768, -0.50883007, -0.506186545, -0.503538311, -0.500885308, -0.498227566, -0.495565146, -0.492898077, -0.490226358, -0.48755002, -0.484869093, -0.482183605, -0.479493588, -0.476799071, -0.474100024, -0.471396536, -0.468688637, -0.465976298, -0.463259578, -0.460538477, -0.457813084, -0.45508334, -0.452349335, -0.449611068, -0.446868569, -0.444121867, -0.441370994, -0.438615948, -0.435856789, -0.433093518, -0.430326164, -0.427554786, -0.424779356, -0.421999931, -0.419216543, -0.416429222, -0.413637966, -0.410843223, -0.408044219, -0.40524137, -0.402434707, -0.399624228, -0.396810025, -0.393992066, -0.391170382, -0.388345063, -0.385516047, -0.382683426, -0.379847199, -0.377007395, -0.374164015, -0.371317148, -0.368466765, -0.365612924, -0.362755656, -0.359894961, -0.357030869, -0.354163438, -0.35129264, -0.348418564, -0.345541209, -0.342660576, -0.339776754, -0.336889714, -0.333999485, -0.331106156, -0.328209668, -0.325310111, -0.322407484, -0.319501847, -0.31659317, -0.313681543, -0.310766935, -0.307849407, -0.304928988, -0.302005708, -0.299079567, -0.296150625, -0.293218881, -0.290284395, -0.287347168, -0.284407228, -0.281464636, -0.278519362, -0.275571495, -0.272621036, -0.269667983, -0.266712397, -0.263754308, -0.260793746, -0.257830739, -0.254865289, -0.251897871, -0.248927668, -0.245955095, -0.242980227, -0.240003064, -0.237023637, -0.234041974, -0.231058121, -0.228072077, -0.225083902, -0.222093612, -0.21910122, -0.216106758, -0.213110283, -0.210111782, -0.207111314, -0.204108894, -0.201104552, -0.198098332, -0.195090234, -0.192080289, -0.189068556, -0.186055034, -0.183039755, -0.180022761, -0.177004069, -0.173983723, -0.170961723, -0.167938128, -0.164912939, -0.1618862, -0.158857942, -0.155828193, -0.152796969, -0.149764314, -0.146730244, -0.143694788, -0.140657991, -0.137619868, -0.134580448, -0.131539747, -0.128497824, -0.125454694, -0.122410372, -0.119364902, -0.116318315, -0.113270625, -0.11022187, -0.107172079, -0.104121283, -0.101069503, -0.0980167687, -0.0949631184, -0.0919085667, -0.0888531581, -0.0857969075, -0.0827403218, -0.0796824917, -0.0766239017, -0.0735645965, -0.0705045983, -0.0674439371, -0.0643826351, -0.061320737, -0.0582582541, -0.0551952273, -0.0521316789, -0.0490676388, -0.0460031368, -0.0429382026, -0.0398728661, -0.0368071534, -0.0337410942, -0.0306747146, -0.02760805, -0.0245411228, -0.0214739665, -0.0184066072, -0.0153390747, -0.0122713987, -0.00920360629, -0.00613572728, -0.00306779053};
sine(f) = sinewave,int(os.phasor(2048,f)) : rdtable;
LFO = sine(0.2)*200 + 300;
process = sine(LFO); | https://raw.githubusercontent.com/inria-emeraude/syfala/95ed6765d73520362f6a1ad35e4a3b2a5e16fbc9/examples/old/sinewaveLFO.dsp | faust | import("stdfaust.lib");
sinewave = waveform { 0, 0.00306795677, 0.00613588467, 0.00920375437, 0.0122715384, 0.0153392069, 0.0184067301, 0.021474082, 0.024541229, 0.027608145, 0.030674804, 0.0337411761, 0.0368072242, 0.0398729295, 0.0429382585, 0.0460031815, 0.0490676761, 0.0521317087, 0.0551952459, 0.0582582653, 0.0613207407, 0.0643826351, 0.0674439222, 0.070504576, 0.0735645667, 0.0766238645, 0.0796824396, 0.0827402696, 0.0857973173, 0.0888535529, 0.0919089541, 0.0949634984, 0.0980171412, 0.101069868, 0.10412164, 0.10717243, 0.110222206, 0.113270953, 0.116318636, 0.119365215, 0.122410677, 0.125454977, 0.128498122, 0.13154003, 0.134580716, 0.137620121, 0.140658244, 0.143695042, 0.146730468, 0.149764538, 0.152797192, 0.155828416, 0.15885815, 0.161886394, 0.164913133, 0.167938292, 0.170961902, 0.173983872, 0.177004218, 0.18002291, 0.183039889, 0.186055154, 0.18906866, 0.192080408, 0.195090324, 0.198098406, 0.201104641, 0.204108968, 0.207111388, 0.210111842, 0.213110328, 0.216106802, 0.219101235, 0.222093627, 0.225083917, 0.228072092, 0.231058121, 0.234041959, 0.237023607, 0.24000302, 0.242980197, 0.24595505, 0.248927608, 0.251897812, 0.254865676, 0.257831097, 0.260794133, 0.263754696, 0.266712785, 0.269668311, 0.272621363, 0.275571823, 0.27851969, 0.281464934, 0.284407556, 0.287347466, 0.290284663, 0.293219179, 0.296150893, 0.299079835, 0.302005947, 0.304929256, 0.307849675, 0.310767144, 0.313681751, 0.316593409, 0.319502026, 0.322407693, 0.32531032, 0.328209847, 0.331106305, 0.333999664, 0.336889863, 0.339776874, 0.342660725, 0.345541328, 0.348418683, 0.351292759, 0.354163527, 0.357030988, 0.359895051, 0.362755746, 0.365613014, 0.368466824, 0.371317208, 0.374164075, 0.377007425, 0.379847199, 0.382683456, 0.385516077, 0.388345033, 0.391170382, 0.393992066, 0.396809995, 0.399624199, 0.402434677, 0.40524134, 0.408044159, 0.410843194, 0.413638324, 0.416429579, 0.419216901, 0.422000289, 0.424779713, 0.427555084, 0.430326492, 0.433093846, 0.435857117, 0.438616246, 0.441371292, 0.444122165, 0.446868837, 0.449611336, 0.452349603, 0.455083579, 0.457813323, 0.460538715, 0.463259816, 0.465976506, 0.468688846, 0.471396744, 0.474100202, 0.47679925, 0.479493737, 0.482183754, 0.484869242, 0.487550169, 0.490226507, 0.492898226, 0.495565295, 0.498227656, 0.500885367, 0.50353837, 0.506186664, 0.50883019, 0.511468887, 0.514102757, 0.516731799, 0.519356012, 0.521975279, 0.524589717, 0.527199149, 0.529803634, 0.532403171, 0.534997642, 0.537587106, 0.540171504, 0.542750776, 0.545324981, 0.547894061, 0.550458014, 0.553016722, 0.555570245, 0.558118522, 0.560661614, 0.563199341, 0.565731823, 0.568259001, 0.570780754, 0.573297143, 0.575808227, 0.578313828, 0.580814004, 0.583308697, 0.585797906, 0.588281572, 0.590759695, 0.593232334, 0.59569931, 0.598160744, 0.600616515, 0.603066623, 0.60551101, 0.607949793, 0.610382795, 0.612810075, 0.615231633, 0.61764735, 0.620057225, 0.622461259, 0.624859512, 0.627251804, 0.629638255, 0.632018745, 0.634393334, 0.636761844, 0.639124453, 0.641481042, 0.643831551, 0.64617604, 0.64851445, 0.65084672, 0.653172851, 0.655492842, 0.657806695, 0.660114348, 0.662415802, 0.664710999, 0.666999936, 0.669282556, 0.671558976, 0.673829019, 0.676092744, 0.678350091, 0.680601001, 0.682845592, 0.685083687, 0.687315345, 0.689540565, 0.691759288, 0.693971455, 0.696177185, 0.698376298, 0.700568795, 0.702754736, 0.704934061, 0.707106769, 0.709272861, 0.711432219, 0.7135849, 0.715730846, 0.717870057, 0.720002532, 0.722128212, 0.724247098, 0.726359189, 0.728464425, 0.730562747, 0.732654274, 0.734738886, 0.736816585, 0.73888737, 0.74095118, 0.743007958, 0.745057762, 0.747100592, 0.749136388, 0.751165152, 0.753186822, 0.755201399, 0.757208884, 0.759209216, 0.761202395, 0.763188422, 0.765167296, 0.767138958, 0.769103348, 0.771060586, 0.773010433, 0.774953127, 0.77688849, 0.778816521, 0.780737281, 0.78265065, 0.784556627, 0.786455214, 0.78834641, 0.790230215, 0.792106569, 0.793975472, 0.795836926, 0.797690868, 0.799537301, 0.801376164, 0.803207517, 0.805031359, 0.806847572, 0.808656216, 0.81045717, 0.812250614, 0.81403631, 0.815814435, 0.817584813, 0.81934756, 0.82110256, 0.82284981, 0.824589312, 0.826321065, 0.82804507, 0.829761267, 0.831469655, 0.833170176, 0.834862888, 0.836547732, 0.838224709, 0.839893818, 0.84155494, 0.843208253, 0.84485358, 0.84649092, 0.848120332, 0.849741757, 0.851355195, 0.852960646, 0.854557991, 0.856147349, 0.85772866, 0.859301865, 0.860866964, 0.862424016, 0.863972843, 0.865513623, 0.867046237, 0.868570685, 0.870086968, 0.871595085, 0.873094976, 0.874586642, 0.876070142, 0.877545297, 0.879012287, 0.880470932, 0.881921291, 0.883363307, 0.884797096, 0.886222541, 0.887639642, 0.889048338, 0.890448749, 0.891840696, 0.893224299, 0.894599497, 0.895966291, 0.897324622, 0.898674488, 0.90001595, 0.901348889, 0.902673304, 0.903989315, 0.905296743, 0.906595707, 0.907886147, 0.909168005, 0.910441279, 0.91170603, 0.912962198, 0.914209783, 0.915448725, 0.916679084, 0.917900801, 0.919113874, 0.920318246, 0.921514034, 0.92270112, 0.923879504, 0.925049245, 0.926210225, 0.927362561, 0.928506076, 0.929640889, 0.930767, 0.931884289, 0.932992816, 0.934092581, 0.935183525, 0.936265647, 0.937339008, 0.938403547, 0.939459205, 0.940506101, 0.941544056, 0.94257319, 0.943593442, 0.944604874, 0.945607364, 0.946600914, 0.947585642, 0.94856137, 0.949528217, 0.950486064, 0.95143503, 0.952374995, 0.953306019, 0.954228103, 0.955141187, 0.95604527, 0.956940353, 0.957826436, 0.958703518, 0.95957154, 0.960430562, 0.961280525, 0.962121427, 0.962953269, 0.963776052, 0.964589775, 0.965394437, 0.966189981, 0.966976464, 0.967753828, 0.968522131, 0.969281256, 0.970031261, 0.970772147, 0.971503913, 0.972226501, 0.972939968, 0.973644257, 0.974339366, 0.975025356, 0.975702107, 0.976369739, 0.977028131, 0.977677345, 0.97831738, 0.978948176, 0.979569793, 0.980182171, 0.98078531, 0.981379211, 0.981963873, 0.982539296, 0.983105481, 0.983662426, 0.984210074, 0.984748483, 0.985277653, 0.985797524, 0.986308098, 0.986809433, 0.987301409, 0.987784147, 0.988257587, 0.988721728, 0.989176512, 0.989621997, 0.990058184, 0.990485072, 0.990902662, 0.991310835, 0.991709769, 0.992099345, 0.992479563, 0.992850423, 0.993211985, 0.993564129, 0.993906975, 0.994240463, 0.994564593, 0.994879305, 0.99518472, 0.995480776, 0.995767415, 0.996044695, 0.996312618, 0.996571124, 0.996820331, 0.997060061, 0.997290432, 0.997511446, 0.997723043, 0.997925282, 0.998118103, 0.998301566, 0.998475552, 0.998640239, 0.99879545, 0.998941302, 0.999077737, 0.999204755, 0.999322414, 0.999430597, 0.999529421, 0.999618828, 0.999698818, 0.99976939, 0.999830604, 0.99988234, 0.999924719, 0.999957621, 0.999981165, 0.999995291, 1, 0.999995291, 0.999981165, 0.999957621, 0.999924719, 0.99988234, 0.999830604, 0.99976939, 0.999698818, 0.999618828, 0.999529421, 0.999430597, 0.999322355, 0.999204755, 0.999077737, 0.998941302, 0.99879545, 0.998640239, 0.998475552, 0.998301566, 0.998118103, 0.997925282, 0.997723043, 0.997511446, 0.997290432, 0.997060061, 0.996820271, 0.996571124, 0.996312618, 0.996044695, 0.995767415, 0.995480776, 0.99518472, 0.994879305, 0.994564533, 0.994240463, 0.993906975, 0.993564129, 0.993211925, 0.992850423, 0.992479503, 0.992099285, 0.991709769, 0.991310835, 0.990902603, 0.990485072, 0.990058184, 0.989621997, 0.989176512, 0.988721669, 0.988257587, 0.987784147, 0.987301409, 0.986809373, 0.986308098, 0.985797524, 0.985277653, 0.984748483, 0.984210074, 0.983662426, 0.983105481, 0.982539296, 0.981963873, 0.981379211, 0.980785251, 0.980182111, 0.979569733, 0.978948176, 0.97831738, 0.977677345, 0.977028131, 0.976369739, 0.975702107, 0.975025356, 0.974339366, 0.973644257, 0.972939909, 0.972226501, 0.971503913, 0.970772147, 0.970031261, 0.969281256, 0.968522072, 0.967753828, 0.966976464, 0.966189981, 0.965394437, 0.964589775, 0.963776052, 0.96295321, 0.962121427, 0.961280465, 0.960430503, 0.959571481, 0.958703458, 0.957826376, 0.956940293, 0.95604521, 0.955141127, 0.954228103, 0.953306019, 0.952374995, 0.95143497, 0.950486064, 0.949528158, 0.94856137, 0.947585583, 0.946600914, 0.945607305, 0.944604814, 0.943593442, 0.94257319, 0.941544056, 0.940506041, 0.939459205, 0.938403487, 0.937338948, 0.936265647, 0.935183525, 0.934092522, 0.932992816, 0.931884229, 0.93076694, 0.929640889, 0.928506076, 0.927362502, 0.926210225, 0.925049186, 0.923879504, 0.92270112, 0.921513975, 0.920318246, 0.919113874, 0.917900801, 0.916679025, 0.915448725, 0.914209723, 0.912962198, 0.91170603, 0.910441279, 0.909168005, 0.907886147, 0.906595707, 0.905296743, 0.903989315, 0.902673304, 0.901348829, 0.900015891, 0.898674428, 0.897324562, 0.895966232, 0.894599438, 0.893224299, 0.891840696, 0.890448689, 0.889048338, 0.887639582, 0.886222482, 0.884797037, 0.883363307, 0.881921232, 0.880470812, 0.879012167, 0.877545238, 0.876070023, 0.874586582, 0.873094916, 0.871595085, 0.870087028, 0.868570745, 0.867046237, 0.865513623, 0.863972843, 0.862423956, 0.860866964, 0.859301805, 0.857728601, 0.856147289, 0.854557991, 0.852960587, 0.851355135, 0.849741757, 0.848120332, 0.84649092, 0.84485352, 0.843208194, 0.84155494, 0.839893758, 0.838224649, 0.836547673, 0.834862769, 0.833170056, 0.831469536, 0.829761147, 0.82804507, 0.826321065, 0.824589312, 0.82284981, 0.8211025, 0.819347501, 0.817584813, 0.815814435, 0.81403631, 0.812250555, 0.81045717, 0.808656156, 0.806847513, 0.8050313, 0.803207517, 0.801376104, 0.799537241, 0.797690809, 0.795836866, 0.793975413, 0.792106509, 0.790230155, 0.78834635, 0.786455154, 0.784556508, 0.782650471, 0.780737102, 0.778816402, 0.77688849, 0.774953127, 0.773010492, 0.771060526, 0.769103348, 0.767138898, 0.765167236, 0.763188422, 0.761202395, 0.759209156, 0.757208824, 0.75520134, 0.753186762, 0.751165092, 0.749136329, 0.747100532, 0.745057702, 0.743007898, 0.740951061, 0.73888725, 0.736816466, 0.734738767, 0.732654154, 0.730562687, 0.728464305, 0.726359069, 0.724246979, 0.722128093, 0.720002532, 0.717870057, 0.715730846, 0.7135849, 0.711432219, 0.709272802, 0.707106769, 0.704934061, 0.702754736, 0.700568795, 0.698376238, 0.696177125, 0.693971395, 0.691759229, 0.689540505, 0.687315285, 0.685083628, 0.682845473, 0.680600941, 0.678349972, 0.676092625, 0.6738289, 0.671558857, 0.669282496, 0.666999817, 0.664710879, 0.662415624, 0.660114408, 0.657806695, 0.655492902, 0.653172851, 0.65084672, 0.64851439, 0.64617604, 0.643831551, 0.641480982, 0.639124393, 0.636761844, 0.634393275, 0.632018685, 0.629638195, 0.627251744, 0.624859452, 0.6224612, 0.620057106, 0.617647231, 0.615231514, 0.612809956, 0.610382676, 0.607949674, 0.60551095, 0.603066444, 0.600616336, 0.598160565, 0.595699131, 0.593232334, 0.590759754, 0.588281572, 0.585797846, 0.583308637, 0.580813944, 0.578313768, 0.575808167, 0.573297143, 0.570780694, 0.568258941, 0.565731764, 0.563199282, 0.560661495, 0.558118463, 0.555570185, 0.553016603, 0.550457895, 0.547893941, 0.545324862, 0.542750657, 0.540171385, 0.537586927, 0.534997463, 0.532402992, 0.529803455, 0.52719897, 0.524589539, 0.521975338, 0.519356012, 0.516731799, 0.514102757, 0.511468828, 0.50883013, 0.506186604, 0.50353837, 0.500885367, 0.498227626, 0.495565206, 0.492898136, 0.490226418, 0.48755011, 0.484869182, 0.482183695, 0.479493678, 0.47679913, 0.474100113, 0.471396625, 0.468688697, 0.465976357, 0.463259637, 0.460538566, 0.457813144, 0.45508343, 0.452349424, 0.449611366, 0.446868867, 0.444122165, 0.441371292, 0.438616246, 0.435857087, 0.433093816, 0.430326462, 0.427555054, 0.424779654, 0.422000229, 0.419216841, 0.41642949, 0.413638234, 0.410843104, 0.40804407, 0.405241221, 0.402434558, 0.399624109, 0.396809876, 0.393991917, 0.391170263, 0.388344914, 0.385515898, 0.382683277, 0.37984705, 0.377007246, 0.374163896, 0.371317238, 0.368466854, 0.365613014, 0.362755746, 0.359895051, 0.357030958, 0.354163498, 0.351292729, 0.348418653, 0.345541298, 0.342660666, 0.339776844, 0.336889803, 0.333999574, 0.331106216, 0.328209758, 0.3253102, 0.322407573, 0.319501907, 0.31659326, 0.313681602, 0.310767025, 0.307849497, 0.304929078, 0.302005798, 0.299079657, 0.296150714, 0.29321897, 0.290284723, 0.287347496, 0.284407556, 0.281464934, 0.27851969, 0.275571823, 0.272621334, 0.269668311, 0.266712725, 0.263754636, 0.260794073, 0.257831037, 0.254865587, 0.251897752, 0.248927519, 0.245954961, 0.242980078, 0.240002915, 0.237023488, 0.234041825, 0.231057972, 0.228071943, 0.225083753, 0.222093463, 0.219101071, 0.216106623, 0.213110134, 0.210111871, 0.207111403, 0.204108983, 0.201104641, 0.198098406, 0.195090309, 0.192080379, 0.189068645, 0.186055124, 0.183039844, 0.180022851, 0.177004158, 0.173983812, 0.170961812, 0.167938218, 0.164913028, 0.16188629, 0.158858031, 0.155828282, 0.152797058, 0.149764404, 0.146730334, 0.143694878, 0.140658081, 0.137619957, 0.134580523, 0.131539837, 0.128497913, 0.125455007, 0.1224107, 0.11936523, 0.116318636, 0.113270946, 0.110222198, 0.107172407, 0.104121603, 0.101069823, 0.0980170965, 0.0949634388, 0.0919088945, 0.0888534784, 0.0857972279, 0.0827401727, 0.0796823353, 0.0766237527, 0.0735644475, 0.0705044493, 0.0674437881, 0.064382486, 0.0613205843, 0.0582581051, 0.0551950745, 0.0521315262, 0.0490674861, 0.0460029878, 0.0429380536, 0.0398729518, 0.0368072391, 0.0337411799, 0.0306748021, 0.0276081376, 0.0245412104, 0.0214740541, 0.0184066948, 0.0153391622, 0.0122714853, 0.00920369383, 0.00613581482, 0.00306787807, -8.74227766e-08, -0.00306805293, -0.00613598945, -0.00920386799, -0.0122716604, -0.0153393373, -0.0184068698, -0.0214742292, -0.0245413855, -0.0276083108, -0.0306749772, -0.0337413549, -0.0368074141, -0.0398731269, -0.0429382287, -0.0460031629, -0.0490676612, -0.0521317013, -0.0551952496, -0.0582582802, -0.0613207594, -0.0643826649, -0.0674439594, -0.0705046207, -0.0735646188, -0.0766239241, -0.0796825141, -0.0827403516, -0.0857974067, -0.0888536498, -0.0919090658, -0.0949636102, -0.0980172679, -0.101070002, -0.104121774, -0.107172579, -0.110222369, -0.113271125, -0.116318807, -0.119365402, -0.122410871, -0.125455186, -0.128498092, -0.131540015, -0.134580702, -0.137620121, -0.140658244, -0.143695056, -0.146730497, -0.149764568, -0.152797237, -0.155828446, -0.15885821, -0.161886469, -0.164913192, -0.167938381, -0.170961991, -0.173983976, -0.177004337, -0.180023029, -0.183040023, -0.186055288, -0.189068809, -0.192080557, -0.195090488, -0.198098585, -0.20110482, -0.204109162, -0.207111567, -0.21011205, -0.213110298, -0.216106787, -0.219101235, -0.222093627, -0.225083932, -0.228072107, -0.231058136, -0.234042004, -0.237023652, -0.240003079, -0.242980242, -0.245955124, -0.248927683, -0.251897901, -0.254865766, -0.257831216, -0.260794222, -0.263754815, -0.266712904, -0.26966846, -0.272621512, -0.275571972, -0.278519869, -0.281465113, -0.284407705, -0.287347645, -0.290284872, -0.293219149, -0.296150863, -0.299079835, -0.302005947, -0.304929256, -0.307849646, -0.310767174, -0.313681781, -0.316593409, -0.319502085, -0.322407752, -0.325310349, -0.328209907, -0.331106395, -0.333999753, -0.336889952, -0.339776993, -0.342660844, -0.345541447, -0.348418802, -0.351292908, -0.354163677, -0.357031107, -0.3598952, -0.362755895, -0.365613192, -0.368467033, -0.371317387, -0.374164045, -0.377007395, -0.379847199, -0.382683426, -0.385516077, -0.388345063, -0.391170412, -0.393992066, -0.396810025, -0.399624258, -0.402434707, -0.4052414, -0.408044249, -0.410843253, -0.413638413, -0.416429669, -0.41921699, -0.422000378, -0.424779803, -0.427555233, -0.430326611, -0.433093965, -0.435857236, -0.438616395, -0.441371441, -0.444122314, -0.446869016, -0.449611515, -0.452349573, -0.455083579, -0.457813323, -0.460538715, -0.463259816, -0.465976536, -0.468688846, -0.471396774, -0.474100262, -0.476799279, -0.479493827, -0.482183844, -0.484869331, -0.487550259, -0.490226567, -0.492898285, -0.495565385, -0.498227775, -0.500885487, -0.503538489, -0.506186783, -0.508830309, -0.511469007, -0.514102876, -0.516731977, -0.519356191, -0.521975458, -0.524589658, -0.527199149, -0.529803634, -0.532403111, -0.534997642, -0.537587106, -0.540171504, -0.542750835, -0.545325041, -0.54789412, -0.550458014, -0.553016782, -0.555570304, -0.558118641, -0.560661674, -0.563199461, -0.565731883, -0.56825906, -0.570780873, -0.573297262, -0.575808346, -0.578313947, -0.580814123, -0.583308816, -0.585798025, -0.588281691, -0.590759873, -0.593232453, -0.59569931, -0.598160684, -0.600616515, -0.603066623, -0.605511069, -0.607949793, -0.610382855, -0.612810135, -0.615231633, -0.61764735, -0.620057285, -0.622461319, -0.624859571, -0.627251923, -0.629638314, -0.632018805, -0.634393394, -0.636761963, -0.639124572, -0.641481161, -0.64383167, -0.646176159, -0.648514509, -0.650846839, -0.65317297, -0.655493021, -0.657806873, -0.660114527, -0.662415802, -0.664710999, -0.666999936, -0.669282615, -0.671558976, -0.673829019, -0.676092744, -0.678350091, -0.68060106, -0.682845592, -0.685083747, -0.687315404, -0.689540625, -0.691759348, -0.693971574, -0.696177244, -0.698376358, -0.700568914, -0.702754855, -0.70493418, -0.707106888, -0.709272981, -0.711432338, -0.713585019, -0.715730965, -0.717870176, -0.720002651, -0.722128212, -0.724247098, -0.726359189, -0.728464425, -0.730562806, -0.732654274, -0.734738886, -0.736816585, -0.73888737, -0.74095118, -0.743008018, -0.745057821, -0.747100651, -0.749136448, -0.751165211, -0.753186882, -0.755201459, -0.757208765, -0.759209156, -0.761202335, -0.763188362, -0.765167236, -0.767138898, -0.769103289, -0.771060526, -0.773010433, -0.774953067, -0.77688843, -0.778816521, -0.780737221, -0.78265059, -0.784556627, -0.786455214, -0.788346469, -0.790230274, -0.792106628, -0.793975532, -0.795836926, -0.797690868, -0.799537301, -0.801376224, -0.803207576, -0.805031419, -0.806847632, -0.808656275, -0.810457289, -0.812250674, -0.814036429, -0.815814495, -0.817584932, -0.81934762, -0.821102619, -0.82284987, -0.824589431, -0.826321185, -0.828045189, -0.829761386, -0.831469774, -0.833170295, -0.834863007, -0.836547852, -0.838224888, -0.839893937, -0.841555119, -0.843208432, -0.844853759, -0.846491098, -0.848120511, -0.849741936, -0.851355374, -0.852960527, -0.854557931, -0.856147289, -0.857728541, -0.859301805, -0.860866904, -0.862423897, -0.863972843, -0.865513623, -0.867046237, -0.868570685, -0.870086968, -0.871595085, -0.873094976, -0.874586642, -0.876070082, -0.877545297, -0.879012227, -0.880470932, -0.881921291, -0.883363366, -0.884797156, -0.886222541, -0.887639642, -0.889048398, -0.890448749, -0.891840756, -0.893224359, -0.894599557, -0.895966291, -0.897324622, -0.898674548, -0.90001595, -0.901348948, -0.902673423, -0.903989375, -0.905296862, -0.906595767, -0.907886207, -0.909168065, -0.910441399, -0.91170615, -0.912962317, -0.914209843, -0.915448844, -0.916679144, -0.91790086, -0.919113994, -0.920318425, -0.921514153, -0.92270124, -0.923879683, -0.925049365, -0.926210344, -0.92736268, -0.928506017, -0.92964083, -0.93076694, -0.931884229, -0.932992756, -0.934092522, -0.935183465, -0.936265647, -0.937339008, -0.938403547, -0.939459205, -0.940506041, -0.941544056, -0.94257319, -0.943593442, -0.944604814, -0.945607305, -0.946600914, -0.947585583, -0.94856137, -0.949528217, -0.950486124, -0.95143503, -0.952375054, -0.953306079, -0.954228103, -0.955141187, -0.95604527, -0.956940353, -0.957826436, -0.958703518, -0.95957154, -0.960430562, -0.961280525, -0.962121427, -0.962953329, -0.963776112, -0.964589834, -0.965394497, -0.96619004, -0.966976523, -0.967753887, -0.968522131, -0.969281316, -0.970031321, -0.970772207, -0.971503973, -0.97222656, -0.972940028, -0.973644316, -0.974339426, -0.975025415, -0.975702226, -0.976369798, -0.977028191, -0.977677345, -0.97831732, -0.978948176, -0.979569733, -0.980182111, -0.980785251, -0.981379211, -0.981963873, -0.982539296, -0.983105481, -0.983662426, -0.984210074, -0.984748483, -0.985277653, -0.985797524, -0.986308098, -0.986809433, -0.987301409, -0.987784147, -0.988257587, -0.988721728, -0.989176512, -0.989622056, -0.990058243, -0.990485072, -0.990902662, -0.991310894, -0.991709769, -0.992099345, -0.992479563, -0.992850423, -0.993211985, -0.993564129, -0.993906975, -0.994240463, -0.994564593, -0.994879365, -0.99518472, -0.995480776, -0.995767415, -0.996044695, -0.996312618, -0.996571183, -0.996820331, -0.99706012, -0.997290492, -0.997511506, -0.997723103, -0.997925282, -0.998118103, -0.998301566, -0.998475611, -0.998640239, -0.99879545, -0.998941302, -0.999077737, -0.999204755, -0.999322355, -0.999430597, -0.999529421, -0.999618828, -0.999698818, -0.99976939, -0.999830604, -0.99988234, -0.999924719, -0.999957621, -0.999981165, -0.999995291, -1, -0.999995291, -0.999981165, -0.999957621, -0.999924719, -0.99988234, -0.999830604, -0.99976939, -0.999698818, -0.999618828, -0.999529421, -0.999430597, -0.999322355, -0.999204755, -0.999077737, -0.998941302, -0.99879545, -0.998640239, -0.998475552, -0.998301506, -0.998118103, -0.997925282, -0.997723043, -0.997511446, -0.997290432, -0.997060061, -0.996820271, -0.996571124, -0.996312618, -0.996044695, -0.995767415, -0.995480716, -0.99518472, -0.994879305, -0.994564533, -0.994240403, -0.993906915, -0.993564069, -0.993211925, -0.992850363, -0.992479503, -0.992099285, -0.991709769, -0.991310894, -0.990902662, -0.990485072, -0.990058243, -0.989621997, -0.989176512, -0.988721669, -0.988257587, -0.987784147, -0.987301409, -0.986809373, -0.986308098, -0.985797524, -0.985277653, -0.984748483, -0.984210074, -0.983662426, -0.983105481, -0.982539296, -0.981963873, -0.981379151, -0.980785251, -0.980182111, -0.979569733, -0.978948176, -0.97831732, -0.977677345, -0.977028131, -0.976369679, -0.975702107, -0.975025296, -0.974339366, -0.973644197, -0.972939909, -0.972226441, -0.971503854, -0.970772088, -0.970031202, -0.969281197, -0.968522012, -0.967753768, -0.966976404, -0.966189921, -0.965394378, -0.964589715, -0.963775992, -0.96295321, -0.962121308, -0.961280406, -0.960430443, -0.959571421, -0.958703399, -0.957826316, -0.956940234, -0.95604527, -0.955141187, -0.954228103, -0.953306079, -0.952375054, -0.95143503, -0.950486064, -0.949528217, -0.94856137, -0.947585583, -0.946600914, -0.945607305, -0.944604814, -0.943593442, -0.94257319, -0.941544056, -0.940506041, -0.939459205, -0.938403487, -0.937339008, -0.936265647, -0.935183465, -0.934092522, -0.932992756, -0.931884229, -0.93076694, -0.92964083, -0.928506017, -0.927362442, -0.926210165, -0.925049186, -0.923879445, -0.922701061, -0.921513975, -0.920318186, -0.919113755, -0.917900681, -0.916678965, -0.915448606, -0.914209664, -0.912962079, -0.911705911, -0.91044116, -0.909167886, -0.907885969, -0.906595588, -0.905296624, -0.903989136, -0.902673185, -0.90134871, -0.900015771, -0.898674309, -0.897324443, -0.895966113, -0.894599319, -0.89322412, -0.891840756, -0.890448749, -0.889048398, -0.887639642, -0.886222541, -0.884797096, -0.883363366, -0.881921291, -0.880470872, -0.879012227, -0.877545297, -0.876070082, -0.874586642, -0.873094976, -0.871595085, -0.870086968, -0.868570685, -0.867046237, -0.865513563, -0.863972843, -0.862423897, -0.860866904, -0.859301746, -0.857728541, -0.856147289, -0.854557931, -0.852960527, -0.851355135, -0.849741697, -0.848120272, -0.84649086, -0.844853461, -0.843208134, -0.84155488, -0.839893699, -0.83822459, -0.836547613, -0.834862769, -0.833170056, -0.831469476, -0.829761088, -0.828044891, -0.826320887, -0.824589133, -0.822849631, -0.821102321, -0.819347322, -0.817584634, -0.815814197, -0.814036131, -0.812250376, -0.810456991, -0.808655977, -0.806847334, -0.805031121, -0.803207576, -0.801376224, -0.799537301, -0.797690868, -0.795836926, -0.793975532, -0.792106569, -0.790230215, -0.78834641, -0.786455214, -0.784556568, -0.78265059, -0.780737221, -0.778816521, -0.77688843, -0.774953067, -0.773010433, -0.771060467, -0.769103289, -0.767138839, -0.765167236, -0.763188362, -0.761202335, -0.759209096, -0.757208765, -0.75520128, -0.753186703, -0.751165032, -0.749136269, -0.747100472, -0.745057642, -0.743007839, -0.740951002, -0.738887191, -0.736816406, -0.734738708, -0.732654095, -0.730562627, -0.728464246, -0.72635901, -0.724246919, -0.722128034, -0.720002294, -0.717869818, -0.715730608, -0.713584661, -0.71143198, -0.709272623, -0.707106531, -0.704933822, -0.702754498, -0.700568557, -0.698376, -0.696176887, -0.693971157, -0.691759348, -0.689540625, -0.687315404, -0.685083687, -0.682845592, -0.680601001, -0.678350091, -0.676092744, -0.673829019, -0.671558976, -0.669282615, -0.666999936, -0.664710939, -0.662415743, -0.660114288, -0.657806635, -0.655492783, -0.653172791, -0.650846601, -0.64851433, -0.646175921, -0.643831491, -0.641480923, -0.639124334, -0.636761785, -0.634393156, -0.632018626, -0.629638135, -0.627251685, -0.624859333, -0.62246114, -0.620057046, -0.617647171, -0.615231454, -0.612809896, -0.610382617, -0.607949615, -0.605510831, -0.603066385, -0.600616276, -0.598160505, -0.595699072, -0.593232095, -0.590759456, -0.588281333, -0.585797608, -0.583308399, -0.580813706, -0.578313529, -0.575807929, -0.573296905, -0.570780456, -0.568258643, -0.565731525, -0.563199043, -0.560661256, -0.558118582, -0.555570304, -0.553016782, -0.550458014, -0.54789412, -0.545325041, -0.542750776, -0.540171504, -0.537587106, -0.534997642, -0.532403111, -0.529803634, -0.52719909, -0.524589658, -0.521975279, -0.519355953, -0.516731739, -0.514102697, -0.511468768, -0.50883007, -0.506186545, -0.503538311, -0.500885308, -0.498227566, -0.495565146, -0.492898077, -0.490226358, -0.48755002, -0.484869093, -0.482183605, -0.479493588, -0.476799071, -0.474100024, -0.471396536, -0.468688637, -0.465976298, -0.463259578, -0.460538477, -0.457813084, -0.45508334, -0.452349335, -0.449611068, -0.446868569, -0.444121867, -0.441370994, -0.438615948, -0.435856789, -0.433093518, -0.430326164, -0.427554786, -0.424779356, -0.421999931, -0.419216543, -0.416429222, -0.413637966, -0.410843223, -0.408044219, -0.40524137, -0.402434707, -0.399624228, -0.396810025, -0.393992066, -0.391170382, -0.388345063, -0.385516047, -0.382683426, -0.379847199, -0.377007395, -0.374164015, -0.371317148, -0.368466765, -0.365612924, -0.362755656, -0.359894961, -0.357030869, -0.354163438, -0.35129264, -0.348418564, -0.345541209, -0.342660576, -0.339776754, -0.336889714, -0.333999485, -0.331106156, -0.328209668, -0.325310111, -0.322407484, -0.319501847, -0.31659317, -0.313681543, -0.310766935, -0.307849407, -0.304928988, -0.302005708, -0.299079567, -0.296150625, -0.293218881, -0.290284395, -0.287347168, -0.284407228, -0.281464636, -0.278519362, -0.275571495, -0.272621036, -0.269667983, -0.266712397, -0.263754308, -0.260793746, -0.257830739, -0.254865289, -0.251897871, -0.248927668, -0.245955095, -0.242980227, -0.240003064, -0.237023637, -0.234041974, -0.231058121, -0.228072077, -0.225083902, -0.222093612, -0.21910122, -0.216106758, -0.213110283, -0.210111782, -0.207111314, -0.204108894, -0.201104552, -0.198098332, -0.195090234, -0.192080289, -0.189068556, -0.186055034, -0.183039755, -0.180022761, -0.177004069, -0.173983723, -0.170961723, -0.167938128, -0.164912939, -0.1618862, -0.158857942, -0.155828193, -0.152796969, -0.149764314, -0.146730244, -0.143694788, -0.140657991, -0.137619868, -0.134580448, -0.131539747, -0.128497824, -0.125454694, -0.122410372, -0.119364902, -0.116318315, -0.113270625, -0.11022187, -0.107172079, -0.104121283, -0.101069503, -0.0980167687, -0.0949631184, -0.0919085667, -0.0888531581, -0.0857969075, -0.0827403218, -0.0796824917, -0.0766239017, -0.0735645965, -0.0705045983, -0.0674439371, -0.0643826351, -0.061320737, -0.0582582541, -0.0551952273, -0.0521316789, -0.0490676388, -0.0460031368, -0.0429382026, -0.0398728661, -0.0368071534, -0.0337410942, -0.0306747146, -0.02760805, -0.0245411228, -0.0214739665, -0.0184066072, -0.0153390747, -0.0122713987, -0.00920360629, -0.00613572728, -0.00306779053};
sine(f) = sinewave,int(os.phasor(2048,f)) : rdtable;
LFO = sine(0.2)*200 + 300;
process = sine(LFO); |
|
53189fc7aa8406bb954e5e5f6acde5f8bd446d633b96ded6985ba9773afe20d5 | inria-emeraude/syfala | sinewaveLFO-400.dsp | import("stdfaust.lib");
sinewave = waveform { 0, 0.00306795677, 0.00613588467, 0.00920375437, 0.0122715384, 0.0153392069, 0.0184067301, 0.021474082, 0.024541229, 0.027608145, 0.030674804, 0.0337411761, 0.0368072242, 0.0398729295, 0.0429382585, 0.0460031815, 0.0490676761, 0.0521317087, 0.0551952459, 0.0582582653, 0.0613207407, 0.0643826351, 0.0674439222, 0.070504576, 0.0735645667, 0.0766238645, 0.0796824396, 0.0827402696, 0.0857973173, 0.0888535529, 0.0919089541, 0.0949634984, 0.0980171412, 0.101069868, 0.10412164, 0.10717243, 0.110222206, 0.113270953, 0.116318636, 0.119365215, 0.122410677, 0.125454977, 0.128498122, 0.13154003, 0.134580716, 0.137620121, 0.140658244, 0.143695042, 0.146730468, 0.149764538, 0.152797192, 0.155828416, 0.15885815, 0.161886394, 0.164913133, 0.167938292, 0.170961902, 0.173983872, 0.177004218, 0.18002291, 0.183039889, 0.186055154, 0.18906866, 0.192080408, 0.195090324, 0.198098406, 0.201104641, 0.204108968, 0.207111388, 0.210111842, 0.213110328, 0.216106802, 0.219101235, 0.222093627, 0.225083917, 0.228072092, 0.231058121, 0.234041959, 0.237023607, 0.24000302, 0.242980197, 0.24595505, 0.248927608, 0.251897812, 0.254865676, 0.257831097, 0.260794133, 0.263754696, 0.266712785, 0.269668311, 0.272621363, 0.275571823, 0.27851969, 0.281464934, 0.284407556, 0.287347466, 0.290284663, 0.293219179, 0.296150893, 0.299079835, 0.302005947, 0.304929256, 0.307849675, 0.310767144, 0.313681751, 0.316593409, 0.319502026, 0.322407693, 0.32531032, 0.328209847, 0.331106305, 0.333999664, 0.336889863, 0.339776874, 0.342660725, 0.345541328, 0.348418683, 0.351292759, 0.354163527, 0.357030988, 0.359895051, 0.362755746, 0.365613014, 0.368466824, 0.371317208, 0.374164075, 0.377007425, 0.379847199, 0.382683456, 0.385516077, 0.388345033, 0.391170382, 0.393992066, 0.396809995, 0.399624199, 0.402434677, 0.40524134, 0.408044159, 0.410843194, 0.413638324, 0.416429579, 0.419216901, 0.422000289, 0.424779713, 0.427555084, 0.430326492, 0.433093846, 0.435857117, 0.438616246, 0.441371292, 0.444122165, 0.446868837, 0.449611336, 0.452349603, 0.455083579, 0.457813323, 0.460538715, 0.463259816, 0.465976506, 0.468688846, 0.471396744, 0.474100202, 0.47679925, 0.479493737, 0.482183754, 0.484869242, 0.487550169, 0.490226507, 0.492898226, 0.495565295, 0.498227656, 0.500885367, 0.50353837, 0.506186664, 0.50883019, 0.511468887, 0.514102757, 0.516731799, 0.519356012, 0.521975279, 0.524589717, 0.527199149, 0.529803634, 0.532403171, 0.534997642, 0.537587106, 0.540171504, 0.542750776, 0.545324981, 0.547894061, 0.550458014, 0.553016722, 0.555570245, 0.558118522, 0.560661614, 0.563199341, 0.565731823, 0.568259001, 0.570780754, 0.573297143, 0.575808227, 0.578313828, 0.580814004, 0.583308697, 0.585797906, 0.588281572, 0.590759695, 0.593232334, 0.59569931, 0.598160744, 0.600616515, 0.603066623, 0.60551101, 0.607949793, 0.610382795, 0.612810075, 0.615231633, 0.61764735, 0.620057225, 0.622461259, 0.624859512, 0.627251804, 0.629638255, 0.632018745, 0.634393334, 0.636761844, 0.639124453, 0.641481042, 0.643831551, 0.64617604, 0.64851445, 0.65084672, 0.653172851, 0.655492842, 0.657806695, 0.660114348, 0.662415802, 0.664710999, 0.666999936, 0.669282556, 0.671558976, 0.673829019, 0.676092744, 0.678350091, 0.680601001, 0.682845592, 0.685083687, 0.687315345, 0.689540565, 0.691759288, 0.693971455, 0.696177185, 0.698376298, 0.700568795, 0.702754736, 0.704934061, 0.707106769, 0.709272861, 0.711432219, 0.7135849, 0.715730846, 0.717870057, 0.720002532, 0.722128212, 0.724247098, 0.726359189, 0.728464425, 0.730562747, 0.732654274, 0.734738886, 0.736816585, 0.73888737, 0.74095118, 0.743007958, 0.745057762, 0.747100592, 0.749136388, 0.751165152, 0.753186822, 0.755201399, 0.757208884, 0.759209216, 0.761202395, 0.763188422, 0.765167296, 0.767138958, 0.769103348, 0.771060586, 0.773010433, 0.774953127, 0.77688849, 0.778816521, 0.780737281, 0.78265065, 0.784556627, 0.786455214, 0.78834641, 0.790230215, 0.792106569, 0.793975472, 0.795836926, 0.797690868, 0.799537301, 0.801376164, 0.803207517, 0.805031359, 0.806847572, 0.808656216, 0.81045717, 0.812250614, 0.81403631, 0.815814435, 0.817584813, 0.81934756, 0.82110256, 0.82284981, 0.824589312, 0.826321065, 0.82804507, 0.829761267, 0.831469655, 0.833170176, 0.834862888, 0.836547732, 0.838224709, 0.839893818, 0.84155494, 0.843208253, 0.84485358, 0.84649092, 0.848120332, 0.849741757, 0.851355195, 0.852960646, 0.854557991, 0.856147349, 0.85772866, 0.859301865, 0.860866964, 0.862424016, 0.863972843, 0.865513623, 0.867046237, 0.868570685, 0.870086968, 0.871595085, 0.873094976, 0.874586642, 0.876070142, 0.877545297, 0.879012287, 0.880470932, 0.881921291, 0.883363307, 0.884797096, 0.886222541, 0.887639642, 0.889048338, 0.890448749, 0.891840696, 0.893224299, 0.894599497, 0.895966291, 0.897324622, 0.898674488, 0.90001595, 0.901348889, 0.902673304, 0.903989315, 0.905296743, 0.906595707, 0.907886147, 0.909168005, 0.910441279, 0.91170603, 0.912962198, 0.914209783, 0.915448725, 0.916679084, 0.917900801, 0.919113874, 0.920318246, 0.921514034, 0.92270112, 0.923879504, 0.925049245, 0.926210225, 0.927362561, 0.928506076, 0.929640889, 0.930767, 0.931884289, 0.932992816, 0.934092581, 0.935183525, 0.936265647, 0.937339008, 0.938403547, 0.939459205, 0.940506101, 0.941544056, 0.94257319, 0.943593442, 0.944604874, 0.945607364, 0.946600914, 0.947585642, 0.94856137, 0.949528217, 0.950486064, 0.95143503, 0.952374995, 0.953306019, 0.954228103, 0.955141187, 0.95604527, 0.956940353, 0.957826436, 0.958703518, 0.95957154, 0.960430562, 0.961280525, 0.962121427, 0.962953269, 0.963776052, 0.964589775, 0.965394437, 0.966189981, 0.966976464, 0.967753828, 0.968522131, 0.969281256, 0.970031261, 0.970772147, 0.971503913, 0.972226501, 0.972939968, 0.973644257, 0.974339366, 0.975025356, 0.975702107, 0.976369739, 0.977028131, 0.977677345, 0.97831738, 0.978948176, 0.979569793, 0.980182171, 0.98078531, 0.981379211, 0.981963873, 0.982539296, 0.983105481, 0.983662426, 0.984210074, 0.984748483, 0.985277653, 0.985797524, 0.986308098, 0.986809433, 0.987301409, 0.987784147, 0.988257587, 0.988721728, 0.989176512, 0.989621997, 0.990058184, 0.990485072, 0.990902662, 0.991310835, 0.991709769, 0.992099345, 0.992479563, 0.992850423, 0.993211985, 0.993564129, 0.993906975, 0.994240463, 0.994564593, 0.994879305, 0.99518472, 0.995480776, 0.995767415, 0.996044695, 0.996312618, 0.996571124, 0.996820331, 0.997060061, 0.997290432, 0.997511446, 0.997723043, 0.997925282, 0.998118103, 0.998301566, 0.998475552, 0.998640239, 0.99879545, 0.998941302, 0.999077737, 0.999204755, 0.999322414, 0.999430597, 0.999529421, 0.999618828, 0.999698818, 0.99976939, 0.999830604, 0.99988234, 0.999924719, 0.999957621, 0.999981165, 0.999995291, 1, 0.999995291, 0.999981165, 0.999957621, 0.999924719, 0.99988234, 0.999830604, 0.99976939, 0.999698818, 0.999618828, 0.999529421, 0.999430597, 0.999322355, 0.999204755, 0.999077737, 0.998941302, 0.99879545, 0.998640239, 0.998475552, 0.998301566, 0.998118103, 0.997925282, 0.997723043, 0.997511446, 0.997290432, 0.997060061, 0.996820271, 0.996571124, 0.996312618, 0.996044695, 0.995767415, 0.995480776, 0.99518472, 0.994879305, 0.994564533, 0.994240463, 0.993906975, 0.993564129, 0.993211925, 0.992850423, 0.992479503, 0.992099285, 0.991709769, 0.991310835, 0.990902603, 0.990485072, 0.990058184, 0.989621997, 0.989176512, 0.988721669, 0.988257587, 0.987784147, 0.987301409, 0.986809373, 0.986308098, 0.985797524, 0.985277653, 0.984748483, 0.984210074, 0.983662426, 0.983105481, 0.982539296, 0.981963873, 0.981379211, 0.980785251, 0.980182111, 0.979569733, 0.978948176, 0.97831738, 0.977677345, 0.977028131, 0.976369739, 0.975702107, 0.975025356, 0.974339366, 0.973644257, 0.972939909, 0.972226501, 0.971503913, 0.970772147, 0.970031261, 0.969281256, 0.968522072, 0.967753828, 0.966976464, 0.966189981, 0.965394437, 0.964589775, 0.963776052, 0.96295321, 0.962121427, 0.961280465, 0.960430503, 0.959571481, 0.958703458, 0.957826376, 0.956940293, 0.95604521, 0.955141127, 0.954228103, 0.953306019, 0.952374995, 0.95143497, 0.950486064, 0.949528158, 0.94856137, 0.947585583, 0.946600914, 0.945607305, 0.944604814, 0.943593442, 0.94257319, 0.941544056, 0.940506041, 0.939459205, 0.938403487, 0.937338948, 0.936265647, 0.935183525, 0.934092522, 0.932992816, 0.931884229, 0.93076694, 0.929640889, 0.928506076, 0.927362502, 0.926210225, 0.925049186, 0.923879504, 0.92270112, 0.921513975, 0.920318246, 0.919113874, 0.917900801, 0.916679025, 0.915448725, 0.914209723, 0.912962198, 0.91170603, 0.910441279, 0.909168005, 0.907886147, 0.906595707, 0.905296743, 0.903989315, 0.902673304, 0.901348829, 0.900015891, 0.898674428, 0.897324562, 0.895966232, 0.894599438, 0.893224299, 0.891840696, 0.890448689, 0.889048338, 0.887639582, 0.886222482, 0.884797037, 0.883363307, 0.881921232, 0.880470812, 0.879012167, 0.877545238, 0.876070023, 0.874586582, 0.873094916, 0.871595085, 0.870087028, 0.868570745, 0.867046237, 0.865513623, 0.863972843, 0.862423956, 0.860866964, 0.859301805, 0.857728601, 0.856147289, 0.854557991, 0.852960587, 0.851355135, 0.849741757, 0.848120332, 0.84649092, 0.84485352, 0.843208194, 0.84155494, 0.839893758, 0.838224649, 0.836547673, 0.834862769, 0.833170056, 0.831469536, 0.829761147, 0.82804507, 0.826321065, 0.824589312, 0.82284981, 0.8211025, 0.819347501, 0.817584813, 0.815814435, 0.81403631, 0.812250555, 0.81045717, 0.808656156, 0.806847513, 0.8050313, 0.803207517, 0.801376104, 0.799537241, 0.797690809, 0.795836866, 0.793975413, 0.792106509, 0.790230155, 0.78834635, 0.786455154, 0.784556508, 0.782650471, 0.780737102, 0.778816402, 0.77688849, 0.774953127, 0.773010492, 0.771060526, 0.769103348, 0.767138898, 0.765167236, 0.763188422, 0.761202395, 0.759209156, 0.757208824, 0.75520134, 0.753186762, 0.751165092, 0.749136329, 0.747100532, 0.745057702, 0.743007898, 0.740951061, 0.73888725, 0.736816466, 0.734738767, 0.732654154, 0.730562687, 0.728464305, 0.726359069, 0.724246979, 0.722128093, 0.720002532, 0.717870057, 0.715730846, 0.7135849, 0.711432219, 0.709272802, 0.707106769, 0.704934061, 0.702754736, 0.700568795, 0.698376238, 0.696177125, 0.693971395, 0.691759229, 0.689540505, 0.687315285, 0.685083628, 0.682845473, 0.680600941, 0.678349972, 0.676092625, 0.6738289, 0.671558857, 0.669282496, 0.666999817, 0.664710879, 0.662415624, 0.660114408, 0.657806695, 0.655492902, 0.653172851, 0.65084672, 0.64851439, 0.64617604, 0.643831551, 0.641480982, 0.639124393, 0.636761844, 0.634393275, 0.632018685, 0.629638195, 0.627251744, 0.624859452, 0.6224612, 0.620057106, 0.617647231, 0.615231514, 0.612809956, 0.610382676, 0.607949674, 0.60551095, 0.603066444, 0.600616336, 0.598160565, 0.595699131, 0.593232334, 0.590759754, 0.588281572, 0.585797846, 0.583308637, 0.580813944, 0.578313768, 0.575808167, 0.573297143, 0.570780694, 0.568258941, 0.565731764, 0.563199282, 0.560661495, 0.558118463, 0.555570185, 0.553016603, 0.550457895, 0.547893941, 0.545324862, 0.542750657, 0.540171385, 0.537586927, 0.534997463, 0.532402992, 0.529803455, 0.52719897, 0.524589539, 0.521975338, 0.519356012, 0.516731799, 0.514102757, 0.511468828, 0.50883013, 0.506186604, 0.50353837, 0.500885367, 0.498227626, 0.495565206, 0.492898136, 0.490226418, 0.48755011, 0.484869182, 0.482183695, 0.479493678, 0.47679913, 0.474100113, 0.471396625, 0.468688697, 0.465976357, 0.463259637, 0.460538566, 0.457813144, 0.45508343, 0.452349424, 0.449611366, 0.446868867, 0.444122165, 0.441371292, 0.438616246, 0.435857087, 0.433093816, 0.430326462, 0.427555054, 0.424779654, 0.422000229, 0.419216841, 0.41642949, 0.413638234, 0.410843104, 0.40804407, 0.405241221, 0.402434558, 0.399624109, 0.396809876, 0.393991917, 0.391170263, 0.388344914, 0.385515898, 0.382683277, 0.37984705, 0.377007246, 0.374163896, 0.371317238, 0.368466854, 0.365613014, 0.362755746, 0.359895051, 0.357030958, 0.354163498, 0.351292729, 0.348418653, 0.345541298, 0.342660666, 0.339776844, 0.336889803, 0.333999574, 0.331106216, 0.328209758, 0.3253102, 0.322407573, 0.319501907, 0.31659326, 0.313681602, 0.310767025, 0.307849497, 0.304929078, 0.302005798, 0.299079657, 0.296150714, 0.29321897, 0.290284723, 0.287347496, 0.284407556, 0.281464934, 0.27851969, 0.275571823, 0.272621334, 0.269668311, 0.266712725, 0.263754636, 0.260794073, 0.257831037, 0.254865587, 0.251897752, 0.248927519, 0.245954961, 0.242980078, 0.240002915, 0.237023488, 0.234041825, 0.231057972, 0.228071943, 0.225083753, 0.222093463, 0.219101071, 0.216106623, 0.213110134, 0.210111871, 0.207111403, 0.204108983, 0.201104641, 0.198098406, 0.195090309, 0.192080379, 0.189068645, 0.186055124, 0.183039844, 0.180022851, 0.177004158, 0.173983812, 0.170961812, 0.167938218, 0.164913028, 0.16188629, 0.158858031, 0.155828282, 0.152797058, 0.149764404, 0.146730334, 0.143694878, 0.140658081, 0.137619957, 0.134580523, 0.131539837, 0.128497913, 0.125455007, 0.1224107, 0.11936523, 0.116318636, 0.113270946, 0.110222198, 0.107172407, 0.104121603, 0.101069823, 0.0980170965, 0.0949634388, 0.0919088945, 0.0888534784, 0.0857972279, 0.0827401727, 0.0796823353, 0.0766237527, 0.0735644475, 0.0705044493, 0.0674437881, 0.064382486, 0.0613205843, 0.0582581051, 0.0551950745, 0.0521315262, 0.0490674861, 0.0460029878, 0.0429380536, 0.0398729518, 0.0368072391, 0.0337411799, 0.0306748021, 0.0276081376, 0.0245412104, 0.0214740541, 0.0184066948, 0.0153391622, 0.0122714853, 0.00920369383, 0.00613581482, 0.00306787807, -8.74227766e-08, -0.00306805293, -0.00613598945, -0.00920386799, -0.0122716604, -0.0153393373, -0.0184068698, -0.0214742292, -0.0245413855, -0.0276083108, -0.0306749772, -0.0337413549, -0.0368074141, -0.0398731269, -0.0429382287, -0.0460031629, -0.0490676612, -0.0521317013, -0.0551952496, -0.0582582802, -0.0613207594, -0.0643826649, -0.0674439594, -0.0705046207, -0.0735646188, -0.0766239241, -0.0796825141, -0.0827403516, -0.0857974067, -0.0888536498, -0.0919090658, -0.0949636102, -0.0980172679, -0.101070002, -0.104121774, -0.107172579, -0.110222369, -0.113271125, -0.116318807, -0.119365402, -0.122410871, -0.125455186, -0.128498092, -0.131540015, -0.134580702, -0.137620121, -0.140658244, -0.143695056, -0.146730497, -0.149764568, -0.152797237, -0.155828446, -0.15885821, -0.161886469, -0.164913192, -0.167938381, -0.170961991, -0.173983976, -0.177004337, -0.180023029, -0.183040023, -0.186055288, -0.189068809, -0.192080557, -0.195090488, -0.198098585, -0.20110482, -0.204109162, -0.207111567, -0.21011205, -0.213110298, -0.216106787, -0.219101235, -0.222093627, -0.225083932, -0.228072107, -0.231058136, -0.234042004, -0.237023652, -0.240003079, -0.242980242, -0.245955124, -0.248927683, -0.251897901, -0.254865766, -0.257831216, -0.260794222, -0.263754815, -0.266712904, -0.26966846, -0.272621512, -0.275571972, -0.278519869, -0.281465113, -0.284407705, -0.287347645, -0.290284872, -0.293219149, -0.296150863, -0.299079835, -0.302005947, -0.304929256, -0.307849646, -0.310767174, -0.313681781, -0.316593409, -0.319502085, -0.322407752, -0.325310349, -0.328209907, -0.331106395, -0.333999753, -0.336889952, -0.339776993, -0.342660844, -0.345541447, -0.348418802, -0.351292908, -0.354163677, -0.357031107, -0.3598952, -0.362755895, -0.365613192, -0.368467033, -0.371317387, -0.374164045, -0.377007395, -0.379847199, -0.382683426, -0.385516077, -0.388345063, -0.391170412, -0.393992066, -0.396810025, -0.399624258, -0.402434707, -0.4052414, -0.408044249, -0.410843253, -0.413638413, -0.416429669, -0.41921699, -0.422000378, -0.424779803, -0.427555233, -0.430326611, -0.433093965, -0.435857236, -0.438616395, -0.441371441, -0.444122314, -0.446869016, -0.449611515, -0.452349573, -0.455083579, -0.457813323, -0.460538715, -0.463259816, -0.465976536, -0.468688846, -0.471396774, -0.474100262, -0.476799279, -0.479493827, -0.482183844, -0.484869331, -0.487550259, -0.490226567, -0.492898285, -0.495565385, -0.498227775, -0.500885487, -0.503538489, -0.506186783, -0.508830309, -0.511469007, -0.514102876, -0.516731977, -0.519356191, -0.521975458, -0.524589658, -0.527199149, -0.529803634, -0.532403111, -0.534997642, -0.537587106, -0.540171504, -0.542750835, -0.545325041, -0.54789412, -0.550458014, -0.553016782, -0.555570304, -0.558118641, -0.560661674, -0.563199461, -0.565731883, -0.56825906, -0.570780873, -0.573297262, -0.575808346, -0.578313947, -0.580814123, -0.583308816, -0.585798025, -0.588281691, -0.590759873, -0.593232453, -0.59569931, -0.598160684, -0.600616515, -0.603066623, -0.605511069, -0.607949793, -0.610382855, -0.612810135, -0.615231633, -0.61764735, -0.620057285, -0.622461319, -0.624859571, -0.627251923, -0.629638314, -0.632018805, -0.634393394, -0.636761963, -0.639124572, -0.641481161, -0.64383167, -0.646176159, -0.648514509, -0.650846839, -0.65317297, -0.655493021, -0.657806873, -0.660114527, -0.662415802, -0.664710999, -0.666999936, -0.669282615, -0.671558976, -0.673829019, -0.676092744, -0.678350091, -0.68060106, -0.682845592, -0.685083747, -0.687315404, -0.689540625, -0.691759348, -0.693971574, -0.696177244, -0.698376358, -0.700568914, -0.702754855, -0.70493418, -0.707106888, -0.709272981, -0.711432338, -0.713585019, -0.715730965, -0.717870176, -0.720002651, -0.722128212, -0.724247098, -0.726359189, -0.728464425, -0.730562806, -0.732654274, -0.734738886, -0.736816585, -0.73888737, -0.74095118, -0.743008018, -0.745057821, -0.747100651, -0.749136448, -0.751165211, -0.753186882, -0.755201459, -0.757208765, -0.759209156, -0.761202335, -0.763188362, -0.765167236, -0.767138898, -0.769103289, -0.771060526, -0.773010433, -0.774953067, -0.77688843, -0.778816521, -0.780737221, -0.78265059, -0.784556627, -0.786455214, -0.788346469, -0.790230274, -0.792106628, -0.793975532, -0.795836926, -0.797690868, -0.799537301, -0.801376224, -0.803207576, -0.805031419, -0.806847632, -0.808656275, -0.810457289, -0.812250674, -0.814036429, -0.815814495, -0.817584932, -0.81934762, -0.821102619, -0.82284987, -0.824589431, -0.826321185, -0.828045189, -0.829761386, -0.831469774, -0.833170295, -0.834863007, -0.836547852, -0.838224888, -0.839893937, -0.841555119, -0.843208432, -0.844853759, -0.846491098, -0.848120511, -0.849741936, -0.851355374, -0.852960527, -0.854557931, -0.856147289, -0.857728541, -0.859301805, -0.860866904, -0.862423897, -0.863972843, -0.865513623, -0.867046237, -0.868570685, -0.870086968, -0.871595085, -0.873094976, -0.874586642, -0.876070082, -0.877545297, -0.879012227, -0.880470932, -0.881921291, -0.883363366, -0.884797156, -0.886222541, -0.887639642, -0.889048398, -0.890448749, -0.891840756, -0.893224359, -0.894599557, -0.895966291, -0.897324622, -0.898674548, -0.90001595, -0.901348948, -0.902673423, -0.903989375, -0.905296862, -0.906595767, -0.907886207, -0.909168065, -0.910441399, -0.91170615, -0.912962317, -0.914209843, -0.915448844, -0.916679144, -0.91790086, -0.919113994, -0.920318425, -0.921514153, -0.92270124, -0.923879683, -0.925049365, -0.926210344, -0.92736268, -0.928506017, -0.92964083, -0.93076694, -0.931884229, -0.932992756, -0.934092522, -0.935183465, -0.936265647, -0.937339008, -0.938403547, -0.939459205, -0.940506041, -0.941544056, -0.94257319, -0.943593442, -0.944604814, -0.945607305, -0.946600914, -0.947585583, -0.94856137, -0.949528217, -0.950486124, -0.95143503, -0.952375054, -0.953306079, -0.954228103, -0.955141187, -0.95604527, -0.956940353, -0.957826436, -0.958703518, -0.95957154, -0.960430562, -0.961280525, -0.962121427, -0.962953329, -0.963776112, -0.964589834, -0.965394497, -0.96619004, -0.966976523, -0.967753887, -0.968522131, -0.969281316, -0.970031321, -0.970772207, -0.971503973, -0.97222656, -0.972940028, -0.973644316, -0.974339426, -0.975025415, -0.975702226, -0.976369798, -0.977028191, -0.977677345, -0.97831732, -0.978948176, -0.979569733, -0.980182111, -0.980785251, -0.981379211, -0.981963873, -0.982539296, -0.983105481, -0.983662426, -0.984210074, -0.984748483, -0.985277653, -0.985797524, -0.986308098, -0.986809433, -0.987301409, -0.987784147, -0.988257587, -0.988721728, -0.989176512, -0.989622056, -0.990058243, -0.990485072, -0.990902662, -0.991310894, -0.991709769, -0.992099345, -0.992479563, -0.992850423, -0.993211985, -0.993564129, -0.993906975, -0.994240463, -0.994564593, -0.994879365, -0.99518472, -0.995480776, -0.995767415, -0.996044695, -0.996312618, -0.996571183, -0.996820331, -0.99706012, -0.997290492, -0.997511506, -0.997723103, -0.997925282, -0.998118103, -0.998301566, -0.998475611, -0.998640239, -0.99879545, -0.998941302, -0.999077737, -0.999204755, -0.999322355, -0.999430597, -0.999529421, -0.999618828, -0.999698818, -0.99976939, -0.999830604, -0.99988234, -0.999924719, -0.999957621, -0.999981165, -0.999995291, -1, -0.999995291, -0.999981165, -0.999957621, -0.999924719, -0.99988234, -0.999830604, -0.99976939, -0.999698818, -0.999618828, -0.999529421, -0.999430597, -0.999322355, -0.999204755, -0.999077737, -0.998941302, -0.99879545, -0.998640239, -0.998475552, -0.998301506, -0.998118103, -0.997925282, -0.997723043, -0.997511446, -0.997290432, -0.997060061, -0.996820271, -0.996571124, -0.996312618, -0.996044695, -0.995767415, -0.995480716, -0.99518472, -0.994879305, -0.994564533, -0.994240403, -0.993906915, -0.993564069, -0.993211925, -0.992850363, -0.992479503, -0.992099285, -0.991709769, -0.991310894, -0.990902662, -0.990485072, -0.990058243, -0.989621997, -0.989176512, -0.988721669, -0.988257587, -0.987784147, -0.987301409, -0.986809373, -0.986308098, -0.985797524, -0.985277653, -0.984748483, -0.984210074, -0.983662426, -0.983105481, -0.982539296, -0.981963873, -0.981379151, -0.980785251, -0.980182111, -0.979569733, -0.978948176, -0.97831732, -0.977677345, -0.977028131, -0.976369679, -0.975702107, -0.975025296, -0.974339366, -0.973644197, -0.972939909, -0.972226441, -0.971503854, -0.970772088, -0.970031202, -0.969281197, -0.968522012, -0.967753768, -0.966976404, -0.966189921, -0.965394378, -0.964589715, -0.963775992, -0.96295321, -0.962121308, -0.961280406, -0.960430443, -0.959571421, -0.958703399, -0.957826316, -0.956940234, -0.95604527, -0.955141187, -0.954228103, -0.953306079, -0.952375054, -0.95143503, -0.950486064, -0.949528217, -0.94856137, -0.947585583, -0.946600914, -0.945607305, -0.944604814, -0.943593442, -0.94257319, -0.941544056, -0.940506041, -0.939459205, -0.938403487, -0.937339008, -0.936265647, -0.935183465, -0.934092522, -0.932992756, -0.931884229, -0.93076694, -0.92964083, -0.928506017, -0.927362442, -0.926210165, -0.925049186, -0.923879445, -0.922701061, -0.921513975, -0.920318186, -0.919113755, -0.917900681, -0.916678965, -0.915448606, -0.914209664, -0.912962079, -0.911705911, -0.91044116, -0.909167886, -0.907885969, -0.906595588, -0.905296624, -0.903989136, -0.902673185, -0.90134871, -0.900015771, -0.898674309, -0.897324443, -0.895966113, -0.894599319, -0.89322412, -0.891840756, -0.890448749, -0.889048398, -0.887639642, -0.886222541, -0.884797096, -0.883363366, -0.881921291, -0.880470872, -0.879012227, -0.877545297, -0.876070082, -0.874586642, -0.873094976, -0.871595085, -0.870086968, -0.868570685, -0.867046237, -0.865513563, -0.863972843, -0.862423897, -0.860866904, -0.859301746, -0.857728541, -0.856147289, -0.854557931, -0.852960527, -0.851355135, -0.849741697, -0.848120272, -0.84649086, -0.844853461, -0.843208134, -0.84155488, -0.839893699, -0.83822459, -0.836547613, -0.834862769, -0.833170056, -0.831469476, -0.829761088, -0.828044891, -0.826320887, -0.824589133, -0.822849631, -0.821102321, -0.819347322, -0.817584634, -0.815814197, -0.814036131, -0.812250376, -0.810456991, -0.808655977, -0.806847334, -0.805031121, -0.803207576, -0.801376224, -0.799537301, -0.797690868, -0.795836926, -0.793975532, -0.792106569, -0.790230215, -0.78834641, -0.786455214, -0.784556568, -0.78265059, -0.780737221, -0.778816521, -0.77688843, -0.774953067, -0.773010433, -0.771060467, -0.769103289, -0.767138839, -0.765167236, -0.763188362, -0.761202335, -0.759209096, -0.757208765, -0.75520128, -0.753186703, -0.751165032, -0.749136269, -0.747100472, -0.745057642, -0.743007839, -0.740951002, -0.738887191, -0.736816406, -0.734738708, -0.732654095, -0.730562627, -0.728464246, -0.72635901, -0.724246919, -0.722128034, -0.720002294, -0.717869818, -0.715730608, -0.713584661, -0.71143198, -0.709272623, -0.707106531, -0.704933822, -0.702754498, -0.700568557, -0.698376, -0.696176887, -0.693971157, -0.691759348, -0.689540625, -0.687315404, -0.685083687, -0.682845592, -0.680601001, -0.678350091, -0.676092744, -0.673829019, -0.671558976, -0.669282615, -0.666999936, -0.664710939, -0.662415743, -0.660114288, -0.657806635, -0.655492783, -0.653172791, -0.650846601, -0.64851433, -0.646175921, -0.643831491, -0.641480923, -0.639124334, -0.636761785, -0.634393156, -0.632018626, -0.629638135, -0.627251685, -0.624859333, -0.62246114, -0.620057046, -0.617647171, -0.615231454, -0.612809896, -0.610382617, -0.607949615, -0.605510831, -0.603066385, -0.600616276, -0.598160505, -0.595699072, -0.593232095, -0.590759456, -0.588281333, -0.585797608, -0.583308399, -0.580813706, -0.578313529, -0.575807929, -0.573296905, -0.570780456, -0.568258643, -0.565731525, -0.563199043, -0.560661256, -0.558118582, -0.555570304, -0.553016782, -0.550458014, -0.54789412, -0.545325041, -0.542750776, -0.540171504, -0.537587106, -0.534997642, -0.532403111, -0.529803634, -0.52719909, -0.524589658, -0.521975279, -0.519355953, -0.516731739, -0.514102697, -0.511468768, -0.50883007, -0.506186545, -0.503538311, -0.500885308, -0.498227566, -0.495565146, -0.492898077, -0.490226358, -0.48755002, -0.484869093, -0.482183605, -0.479493588, -0.476799071, -0.474100024, -0.471396536, -0.468688637, -0.465976298, -0.463259578, -0.460538477, -0.457813084, -0.45508334, -0.452349335, -0.449611068, -0.446868569, -0.444121867, -0.441370994, -0.438615948, -0.435856789, -0.433093518, -0.430326164, -0.427554786, -0.424779356, -0.421999931, -0.419216543, -0.416429222, -0.413637966, -0.410843223, -0.408044219, -0.40524137, -0.402434707, -0.399624228, -0.396810025, -0.393992066, -0.391170382, -0.388345063, -0.385516047, -0.382683426, -0.379847199, -0.377007395, -0.374164015, -0.371317148, -0.368466765, -0.365612924, -0.362755656, -0.359894961, -0.357030869, -0.354163438, -0.35129264, -0.348418564, -0.345541209, -0.342660576, -0.339776754, -0.336889714, -0.333999485, -0.331106156, -0.328209668, -0.325310111, -0.322407484, -0.319501847, -0.31659317, -0.313681543, -0.310766935, -0.307849407, -0.304928988, -0.302005708, -0.299079567, -0.296150625, -0.293218881, -0.290284395, -0.287347168, -0.284407228, -0.281464636, -0.278519362, -0.275571495, -0.272621036, -0.269667983, -0.266712397, -0.263754308, -0.260793746, -0.257830739, -0.254865289, -0.251897871, -0.248927668, -0.245955095, -0.242980227, -0.240003064, -0.237023637, -0.234041974, -0.231058121, -0.228072077, -0.225083902, -0.222093612, -0.21910122, -0.216106758, -0.213110283, -0.210111782, -0.207111314, -0.204108894, -0.201104552, -0.198098332, -0.195090234, -0.192080289, -0.189068556, -0.186055034, -0.183039755, -0.180022761, -0.177004069, -0.173983723, -0.170961723, -0.167938128, -0.164912939, -0.1618862, -0.158857942, -0.155828193, -0.152796969, -0.149764314, -0.146730244, -0.143694788, -0.140657991, -0.137619868, -0.134580448, -0.131539747, -0.128497824, -0.125454694, -0.122410372, -0.119364902, -0.116318315, -0.113270625, -0.11022187, -0.107172079, -0.104121283, -0.101069503, -0.0980167687, -0.0949631184, -0.0919085667, -0.0888531581, -0.0857969075, -0.0827403218, -0.0796824917, -0.0766239017, -0.0735645965, -0.0705045983, -0.0674439371, -0.0643826351, -0.061320737, -0.0582582541, -0.0551952273, -0.0521316789, -0.0490676388, -0.0460031368, -0.0429382026, -0.0398728661, -0.0368071534, -0.0337410942, -0.0306747146, -0.02760805, -0.0245411228, -0.0214739665, -0.0184066072, -0.0153390747, -0.0122713987, -0.00920360629, -0.00613572728, -0.00306779053};
sine(f) = sinewave,int(os.phasor(2048,f)) : rdtable;
process = sine(440); | https://raw.githubusercontent.com/inria-emeraude/syfala/95ed6765d73520362f6a1ad35e4a3b2a5e16fbc9/examples/old/sinewaveLFO-400.dsp | faust | import("stdfaust.lib");
sinewave = waveform { 0, 0.00306795677, 0.00613588467, 0.00920375437, 0.0122715384, 0.0153392069, 0.0184067301, 0.021474082, 0.024541229, 0.027608145, 0.030674804, 0.0337411761, 0.0368072242, 0.0398729295, 0.0429382585, 0.0460031815, 0.0490676761, 0.0521317087, 0.0551952459, 0.0582582653, 0.0613207407, 0.0643826351, 0.0674439222, 0.070504576, 0.0735645667, 0.0766238645, 0.0796824396, 0.0827402696, 0.0857973173, 0.0888535529, 0.0919089541, 0.0949634984, 0.0980171412, 0.101069868, 0.10412164, 0.10717243, 0.110222206, 0.113270953, 0.116318636, 0.119365215, 0.122410677, 0.125454977, 0.128498122, 0.13154003, 0.134580716, 0.137620121, 0.140658244, 0.143695042, 0.146730468, 0.149764538, 0.152797192, 0.155828416, 0.15885815, 0.161886394, 0.164913133, 0.167938292, 0.170961902, 0.173983872, 0.177004218, 0.18002291, 0.183039889, 0.186055154, 0.18906866, 0.192080408, 0.195090324, 0.198098406, 0.201104641, 0.204108968, 0.207111388, 0.210111842, 0.213110328, 0.216106802, 0.219101235, 0.222093627, 0.225083917, 0.228072092, 0.231058121, 0.234041959, 0.237023607, 0.24000302, 0.242980197, 0.24595505, 0.248927608, 0.251897812, 0.254865676, 0.257831097, 0.260794133, 0.263754696, 0.266712785, 0.269668311, 0.272621363, 0.275571823, 0.27851969, 0.281464934, 0.284407556, 0.287347466, 0.290284663, 0.293219179, 0.296150893, 0.299079835, 0.302005947, 0.304929256, 0.307849675, 0.310767144, 0.313681751, 0.316593409, 0.319502026, 0.322407693, 0.32531032, 0.328209847, 0.331106305, 0.333999664, 0.336889863, 0.339776874, 0.342660725, 0.345541328, 0.348418683, 0.351292759, 0.354163527, 0.357030988, 0.359895051, 0.362755746, 0.365613014, 0.368466824, 0.371317208, 0.374164075, 0.377007425, 0.379847199, 0.382683456, 0.385516077, 0.388345033, 0.391170382, 0.393992066, 0.396809995, 0.399624199, 0.402434677, 0.40524134, 0.408044159, 0.410843194, 0.413638324, 0.416429579, 0.419216901, 0.422000289, 0.424779713, 0.427555084, 0.430326492, 0.433093846, 0.435857117, 0.438616246, 0.441371292, 0.444122165, 0.446868837, 0.449611336, 0.452349603, 0.455083579, 0.457813323, 0.460538715, 0.463259816, 0.465976506, 0.468688846, 0.471396744, 0.474100202, 0.47679925, 0.479493737, 0.482183754, 0.484869242, 0.487550169, 0.490226507, 0.492898226, 0.495565295, 0.498227656, 0.500885367, 0.50353837, 0.506186664, 0.50883019, 0.511468887, 0.514102757, 0.516731799, 0.519356012, 0.521975279, 0.524589717, 0.527199149, 0.529803634, 0.532403171, 0.534997642, 0.537587106, 0.540171504, 0.542750776, 0.545324981, 0.547894061, 0.550458014, 0.553016722, 0.555570245, 0.558118522, 0.560661614, 0.563199341, 0.565731823, 0.568259001, 0.570780754, 0.573297143, 0.575808227, 0.578313828, 0.580814004, 0.583308697, 0.585797906, 0.588281572, 0.590759695, 0.593232334, 0.59569931, 0.598160744, 0.600616515, 0.603066623, 0.60551101, 0.607949793, 0.610382795, 0.612810075, 0.615231633, 0.61764735, 0.620057225, 0.622461259, 0.624859512, 0.627251804, 0.629638255, 0.632018745, 0.634393334, 0.636761844, 0.639124453, 0.641481042, 0.643831551, 0.64617604, 0.64851445, 0.65084672, 0.653172851, 0.655492842, 0.657806695, 0.660114348, 0.662415802, 0.664710999, 0.666999936, 0.669282556, 0.671558976, 0.673829019, 0.676092744, 0.678350091, 0.680601001, 0.682845592, 0.685083687, 0.687315345, 0.689540565, 0.691759288, 0.693971455, 0.696177185, 0.698376298, 0.700568795, 0.702754736, 0.704934061, 0.707106769, 0.709272861, 0.711432219, 0.7135849, 0.715730846, 0.717870057, 0.720002532, 0.722128212, 0.724247098, 0.726359189, 0.728464425, 0.730562747, 0.732654274, 0.734738886, 0.736816585, 0.73888737, 0.74095118, 0.743007958, 0.745057762, 0.747100592, 0.749136388, 0.751165152, 0.753186822, 0.755201399, 0.757208884, 0.759209216, 0.761202395, 0.763188422, 0.765167296, 0.767138958, 0.769103348, 0.771060586, 0.773010433, 0.774953127, 0.77688849, 0.778816521, 0.780737281, 0.78265065, 0.784556627, 0.786455214, 0.78834641, 0.790230215, 0.792106569, 0.793975472, 0.795836926, 0.797690868, 0.799537301, 0.801376164, 0.803207517, 0.805031359, 0.806847572, 0.808656216, 0.81045717, 0.812250614, 0.81403631, 0.815814435, 0.817584813, 0.81934756, 0.82110256, 0.82284981, 0.824589312, 0.826321065, 0.82804507, 0.829761267, 0.831469655, 0.833170176, 0.834862888, 0.836547732, 0.838224709, 0.839893818, 0.84155494, 0.843208253, 0.84485358, 0.84649092, 0.848120332, 0.849741757, 0.851355195, 0.852960646, 0.854557991, 0.856147349, 0.85772866, 0.859301865, 0.860866964, 0.862424016, 0.863972843, 0.865513623, 0.867046237, 0.868570685, 0.870086968, 0.871595085, 0.873094976, 0.874586642, 0.876070142, 0.877545297, 0.879012287, 0.880470932, 0.881921291, 0.883363307, 0.884797096, 0.886222541, 0.887639642, 0.889048338, 0.890448749, 0.891840696, 0.893224299, 0.894599497, 0.895966291, 0.897324622, 0.898674488, 0.90001595, 0.901348889, 0.902673304, 0.903989315, 0.905296743, 0.906595707, 0.907886147, 0.909168005, 0.910441279, 0.91170603, 0.912962198, 0.914209783, 0.915448725, 0.916679084, 0.917900801, 0.919113874, 0.920318246, 0.921514034, 0.92270112, 0.923879504, 0.925049245, 0.926210225, 0.927362561, 0.928506076, 0.929640889, 0.930767, 0.931884289, 0.932992816, 0.934092581, 0.935183525, 0.936265647, 0.937339008, 0.938403547, 0.939459205, 0.940506101, 0.941544056, 0.94257319, 0.943593442, 0.944604874, 0.945607364, 0.946600914, 0.947585642, 0.94856137, 0.949528217, 0.950486064, 0.95143503, 0.952374995, 0.953306019, 0.954228103, 0.955141187, 0.95604527, 0.956940353, 0.957826436, 0.958703518, 0.95957154, 0.960430562, 0.961280525, 0.962121427, 0.962953269, 0.963776052, 0.964589775, 0.965394437, 0.966189981, 0.966976464, 0.967753828, 0.968522131, 0.969281256, 0.970031261, 0.970772147, 0.971503913, 0.972226501, 0.972939968, 0.973644257, 0.974339366, 0.975025356, 0.975702107, 0.976369739, 0.977028131, 0.977677345, 0.97831738, 0.978948176, 0.979569793, 0.980182171, 0.98078531, 0.981379211, 0.981963873, 0.982539296, 0.983105481, 0.983662426, 0.984210074, 0.984748483, 0.985277653, 0.985797524, 0.986308098, 0.986809433, 0.987301409, 0.987784147, 0.988257587, 0.988721728, 0.989176512, 0.989621997, 0.990058184, 0.990485072, 0.990902662, 0.991310835, 0.991709769, 0.992099345, 0.992479563, 0.992850423, 0.993211985, 0.993564129, 0.993906975, 0.994240463, 0.994564593, 0.994879305, 0.99518472, 0.995480776, 0.995767415, 0.996044695, 0.996312618, 0.996571124, 0.996820331, 0.997060061, 0.997290432, 0.997511446, 0.997723043, 0.997925282, 0.998118103, 0.998301566, 0.998475552, 0.998640239, 0.99879545, 0.998941302, 0.999077737, 0.999204755, 0.999322414, 0.999430597, 0.999529421, 0.999618828, 0.999698818, 0.99976939, 0.999830604, 0.99988234, 0.999924719, 0.999957621, 0.999981165, 0.999995291, 1, 0.999995291, 0.999981165, 0.999957621, 0.999924719, 0.99988234, 0.999830604, 0.99976939, 0.999698818, 0.999618828, 0.999529421, 0.999430597, 0.999322355, 0.999204755, 0.999077737, 0.998941302, 0.99879545, 0.998640239, 0.998475552, 0.998301566, 0.998118103, 0.997925282, 0.997723043, 0.997511446, 0.997290432, 0.997060061, 0.996820271, 0.996571124, 0.996312618, 0.996044695, 0.995767415, 0.995480776, 0.99518472, 0.994879305, 0.994564533, 0.994240463, 0.993906975, 0.993564129, 0.993211925, 0.992850423, 0.992479503, 0.992099285, 0.991709769, 0.991310835, 0.990902603, 0.990485072, 0.990058184, 0.989621997, 0.989176512, 0.988721669, 0.988257587, 0.987784147, 0.987301409, 0.986809373, 0.986308098, 0.985797524, 0.985277653, 0.984748483, 0.984210074, 0.983662426, 0.983105481, 0.982539296, 0.981963873, 0.981379211, 0.980785251, 0.980182111, 0.979569733, 0.978948176, 0.97831738, 0.977677345, 0.977028131, 0.976369739, 0.975702107, 0.975025356, 0.974339366, 0.973644257, 0.972939909, 0.972226501, 0.971503913, 0.970772147, 0.970031261, 0.969281256, 0.968522072, 0.967753828, 0.966976464, 0.966189981, 0.965394437, 0.964589775, 0.963776052, 0.96295321, 0.962121427, 0.961280465, 0.960430503, 0.959571481, 0.958703458, 0.957826376, 0.956940293, 0.95604521, 0.955141127, 0.954228103, 0.953306019, 0.952374995, 0.95143497, 0.950486064, 0.949528158, 0.94856137, 0.947585583, 0.946600914, 0.945607305, 0.944604814, 0.943593442, 0.94257319, 0.941544056, 0.940506041, 0.939459205, 0.938403487, 0.937338948, 0.936265647, 0.935183525, 0.934092522, 0.932992816, 0.931884229, 0.93076694, 0.929640889, 0.928506076, 0.927362502, 0.926210225, 0.925049186, 0.923879504, 0.92270112, 0.921513975, 0.920318246, 0.919113874, 0.917900801, 0.916679025, 0.915448725, 0.914209723, 0.912962198, 0.91170603, 0.910441279, 0.909168005, 0.907886147, 0.906595707, 0.905296743, 0.903989315, 0.902673304, 0.901348829, 0.900015891, 0.898674428, 0.897324562, 0.895966232, 0.894599438, 0.893224299, 0.891840696, 0.890448689, 0.889048338, 0.887639582, 0.886222482, 0.884797037, 0.883363307, 0.881921232, 0.880470812, 0.879012167, 0.877545238, 0.876070023, 0.874586582, 0.873094916, 0.871595085, 0.870087028, 0.868570745, 0.867046237, 0.865513623, 0.863972843, 0.862423956, 0.860866964, 0.859301805, 0.857728601, 0.856147289, 0.854557991, 0.852960587, 0.851355135, 0.849741757, 0.848120332, 0.84649092, 0.84485352, 0.843208194, 0.84155494, 0.839893758, 0.838224649, 0.836547673, 0.834862769, 0.833170056, 0.831469536, 0.829761147, 0.82804507, 0.826321065, 0.824589312, 0.82284981, 0.8211025, 0.819347501, 0.817584813, 0.815814435, 0.81403631, 0.812250555, 0.81045717, 0.808656156, 0.806847513, 0.8050313, 0.803207517, 0.801376104, 0.799537241, 0.797690809, 0.795836866, 0.793975413, 0.792106509, 0.790230155, 0.78834635, 0.786455154, 0.784556508, 0.782650471, 0.780737102, 0.778816402, 0.77688849, 0.774953127, 0.773010492, 0.771060526, 0.769103348, 0.767138898, 0.765167236, 0.763188422, 0.761202395, 0.759209156, 0.757208824, 0.75520134, 0.753186762, 0.751165092, 0.749136329, 0.747100532, 0.745057702, 0.743007898, 0.740951061, 0.73888725, 0.736816466, 0.734738767, 0.732654154, 0.730562687, 0.728464305, 0.726359069, 0.724246979, 0.722128093, 0.720002532, 0.717870057, 0.715730846, 0.7135849, 0.711432219, 0.709272802, 0.707106769, 0.704934061, 0.702754736, 0.700568795, 0.698376238, 0.696177125, 0.693971395, 0.691759229, 0.689540505, 0.687315285, 0.685083628, 0.682845473, 0.680600941, 0.678349972, 0.676092625, 0.6738289, 0.671558857, 0.669282496, 0.666999817, 0.664710879, 0.662415624, 0.660114408, 0.657806695, 0.655492902, 0.653172851, 0.65084672, 0.64851439, 0.64617604, 0.643831551, 0.641480982, 0.639124393, 0.636761844, 0.634393275, 0.632018685, 0.629638195, 0.627251744, 0.624859452, 0.6224612, 0.620057106, 0.617647231, 0.615231514, 0.612809956, 0.610382676, 0.607949674, 0.60551095, 0.603066444, 0.600616336, 0.598160565, 0.595699131, 0.593232334, 0.590759754, 0.588281572, 0.585797846, 0.583308637, 0.580813944, 0.578313768, 0.575808167, 0.573297143, 0.570780694, 0.568258941, 0.565731764, 0.563199282, 0.560661495, 0.558118463, 0.555570185, 0.553016603, 0.550457895, 0.547893941, 0.545324862, 0.542750657, 0.540171385, 0.537586927, 0.534997463, 0.532402992, 0.529803455, 0.52719897, 0.524589539, 0.521975338, 0.519356012, 0.516731799, 0.514102757, 0.511468828, 0.50883013, 0.506186604, 0.50353837, 0.500885367, 0.498227626, 0.495565206, 0.492898136, 0.490226418, 0.48755011, 0.484869182, 0.482183695, 0.479493678, 0.47679913, 0.474100113, 0.471396625, 0.468688697, 0.465976357, 0.463259637, 0.460538566, 0.457813144, 0.45508343, 0.452349424, 0.449611366, 0.446868867, 0.444122165, 0.441371292, 0.438616246, 0.435857087, 0.433093816, 0.430326462, 0.427555054, 0.424779654, 0.422000229, 0.419216841, 0.41642949, 0.413638234, 0.410843104, 0.40804407, 0.405241221, 0.402434558, 0.399624109, 0.396809876, 0.393991917, 0.391170263, 0.388344914, 0.385515898, 0.382683277, 0.37984705, 0.377007246, 0.374163896, 0.371317238, 0.368466854, 0.365613014, 0.362755746, 0.359895051, 0.357030958, 0.354163498, 0.351292729, 0.348418653, 0.345541298, 0.342660666, 0.339776844, 0.336889803, 0.333999574, 0.331106216, 0.328209758, 0.3253102, 0.322407573, 0.319501907, 0.31659326, 0.313681602, 0.310767025, 0.307849497, 0.304929078, 0.302005798, 0.299079657, 0.296150714, 0.29321897, 0.290284723, 0.287347496, 0.284407556, 0.281464934, 0.27851969, 0.275571823, 0.272621334, 0.269668311, 0.266712725, 0.263754636, 0.260794073, 0.257831037, 0.254865587, 0.251897752, 0.248927519, 0.245954961, 0.242980078, 0.240002915, 0.237023488, 0.234041825, 0.231057972, 0.228071943, 0.225083753, 0.222093463, 0.219101071, 0.216106623, 0.213110134, 0.210111871, 0.207111403, 0.204108983, 0.201104641, 0.198098406, 0.195090309, 0.192080379, 0.189068645, 0.186055124, 0.183039844, 0.180022851, 0.177004158, 0.173983812, 0.170961812, 0.167938218, 0.164913028, 0.16188629, 0.158858031, 0.155828282, 0.152797058, 0.149764404, 0.146730334, 0.143694878, 0.140658081, 0.137619957, 0.134580523, 0.131539837, 0.128497913, 0.125455007, 0.1224107, 0.11936523, 0.116318636, 0.113270946, 0.110222198, 0.107172407, 0.104121603, 0.101069823, 0.0980170965, 0.0949634388, 0.0919088945, 0.0888534784, 0.0857972279, 0.0827401727, 0.0796823353, 0.0766237527, 0.0735644475, 0.0705044493, 0.0674437881, 0.064382486, 0.0613205843, 0.0582581051, 0.0551950745, 0.0521315262, 0.0490674861, 0.0460029878, 0.0429380536, 0.0398729518, 0.0368072391, 0.0337411799, 0.0306748021, 0.0276081376, 0.0245412104, 0.0214740541, 0.0184066948, 0.0153391622, 0.0122714853, 0.00920369383, 0.00613581482, 0.00306787807, -8.74227766e-08, -0.00306805293, -0.00613598945, -0.00920386799, -0.0122716604, -0.0153393373, -0.0184068698, -0.0214742292, -0.0245413855, -0.0276083108, -0.0306749772, -0.0337413549, -0.0368074141, -0.0398731269, -0.0429382287, -0.0460031629, -0.0490676612, -0.0521317013, -0.0551952496, -0.0582582802, -0.0613207594, -0.0643826649, -0.0674439594, -0.0705046207, -0.0735646188, -0.0766239241, -0.0796825141, -0.0827403516, -0.0857974067, -0.0888536498, -0.0919090658, -0.0949636102, -0.0980172679, -0.101070002, -0.104121774, -0.107172579, -0.110222369, -0.113271125, -0.116318807, -0.119365402, -0.122410871, -0.125455186, -0.128498092, -0.131540015, -0.134580702, -0.137620121, -0.140658244, -0.143695056, -0.146730497, -0.149764568, -0.152797237, -0.155828446, -0.15885821, -0.161886469, -0.164913192, -0.167938381, -0.170961991, -0.173983976, -0.177004337, -0.180023029, -0.183040023, -0.186055288, -0.189068809, -0.192080557, -0.195090488, -0.198098585, -0.20110482, -0.204109162, -0.207111567, -0.21011205, -0.213110298, -0.216106787, -0.219101235, -0.222093627, -0.225083932, -0.228072107, -0.231058136, -0.234042004, -0.237023652, -0.240003079, -0.242980242, -0.245955124, -0.248927683, -0.251897901, -0.254865766, -0.257831216, -0.260794222, -0.263754815, -0.266712904, -0.26966846, -0.272621512, -0.275571972, -0.278519869, -0.281465113, -0.284407705, -0.287347645, -0.290284872, -0.293219149, -0.296150863, -0.299079835, -0.302005947, -0.304929256, -0.307849646, -0.310767174, -0.313681781, -0.316593409, -0.319502085, -0.322407752, -0.325310349, -0.328209907, -0.331106395, -0.333999753, -0.336889952, -0.339776993, -0.342660844, -0.345541447, -0.348418802, -0.351292908, -0.354163677, -0.357031107, -0.3598952, -0.362755895, -0.365613192, -0.368467033, -0.371317387, -0.374164045, -0.377007395, -0.379847199, -0.382683426, -0.385516077, -0.388345063, -0.391170412, -0.393992066, -0.396810025, -0.399624258, -0.402434707, -0.4052414, -0.408044249, -0.410843253, -0.413638413, -0.416429669, -0.41921699, -0.422000378, -0.424779803, -0.427555233, -0.430326611, -0.433093965, -0.435857236, -0.438616395, -0.441371441, -0.444122314, -0.446869016, -0.449611515, -0.452349573, -0.455083579, -0.457813323, -0.460538715, -0.463259816, -0.465976536, -0.468688846, -0.471396774, -0.474100262, -0.476799279, -0.479493827, -0.482183844, -0.484869331, -0.487550259, -0.490226567, -0.492898285, -0.495565385, -0.498227775, -0.500885487, -0.503538489, -0.506186783, -0.508830309, -0.511469007, -0.514102876, -0.516731977, -0.519356191, -0.521975458, -0.524589658, -0.527199149, -0.529803634, -0.532403111, -0.534997642, -0.537587106, -0.540171504, -0.542750835, -0.545325041, -0.54789412, -0.550458014, -0.553016782, -0.555570304, -0.558118641, -0.560661674, -0.563199461, -0.565731883, -0.56825906, -0.570780873, -0.573297262, -0.575808346, -0.578313947, -0.580814123, -0.583308816, -0.585798025, -0.588281691, -0.590759873, -0.593232453, -0.59569931, -0.598160684, -0.600616515, -0.603066623, -0.605511069, -0.607949793, -0.610382855, -0.612810135, -0.615231633, -0.61764735, -0.620057285, -0.622461319, -0.624859571, -0.627251923, -0.629638314, -0.632018805, -0.634393394, -0.636761963, -0.639124572, -0.641481161, -0.64383167, -0.646176159, -0.648514509, -0.650846839, -0.65317297, -0.655493021, -0.657806873, -0.660114527, -0.662415802, -0.664710999, -0.666999936, -0.669282615, -0.671558976, -0.673829019, -0.676092744, -0.678350091, -0.68060106, -0.682845592, -0.685083747, -0.687315404, -0.689540625, -0.691759348, -0.693971574, -0.696177244, -0.698376358, -0.700568914, -0.702754855, -0.70493418, -0.707106888, -0.709272981, -0.711432338, -0.713585019, -0.715730965, -0.717870176, -0.720002651, -0.722128212, -0.724247098, -0.726359189, -0.728464425, -0.730562806, -0.732654274, -0.734738886, -0.736816585, -0.73888737, -0.74095118, -0.743008018, -0.745057821, -0.747100651, -0.749136448, -0.751165211, -0.753186882, -0.755201459, -0.757208765, -0.759209156, -0.761202335, -0.763188362, -0.765167236, -0.767138898, -0.769103289, -0.771060526, -0.773010433, -0.774953067, -0.77688843, -0.778816521, -0.780737221, -0.78265059, -0.784556627, -0.786455214, -0.788346469, -0.790230274, -0.792106628, -0.793975532, -0.795836926, -0.797690868, -0.799537301, -0.801376224, -0.803207576, -0.805031419, -0.806847632, -0.808656275, -0.810457289, -0.812250674, -0.814036429, -0.815814495, -0.817584932, -0.81934762, -0.821102619, -0.82284987, -0.824589431, -0.826321185, -0.828045189, -0.829761386, -0.831469774, -0.833170295, -0.834863007, -0.836547852, -0.838224888, -0.839893937, -0.841555119, -0.843208432, -0.844853759, -0.846491098, -0.848120511, -0.849741936, -0.851355374, -0.852960527, -0.854557931, -0.856147289, -0.857728541, -0.859301805, -0.860866904, -0.862423897, -0.863972843, -0.865513623, -0.867046237, -0.868570685, -0.870086968, -0.871595085, -0.873094976, -0.874586642, -0.876070082, -0.877545297, -0.879012227, -0.880470932, -0.881921291, -0.883363366, -0.884797156, -0.886222541, -0.887639642, -0.889048398, -0.890448749, -0.891840756, -0.893224359, -0.894599557, -0.895966291, -0.897324622, -0.898674548, -0.90001595, -0.901348948, -0.902673423, -0.903989375, -0.905296862, -0.906595767, -0.907886207, -0.909168065, -0.910441399, -0.91170615, -0.912962317, -0.914209843, -0.915448844, -0.916679144, -0.91790086, -0.919113994, -0.920318425, -0.921514153, -0.92270124, -0.923879683, -0.925049365, -0.926210344, -0.92736268, -0.928506017, -0.92964083, -0.93076694, -0.931884229, -0.932992756, -0.934092522, -0.935183465, -0.936265647, -0.937339008, -0.938403547, -0.939459205, -0.940506041, -0.941544056, -0.94257319, -0.943593442, -0.944604814, -0.945607305, -0.946600914, -0.947585583, -0.94856137, -0.949528217, -0.950486124, -0.95143503, -0.952375054, -0.953306079, -0.954228103, -0.955141187, -0.95604527, -0.956940353, -0.957826436, -0.958703518, -0.95957154, -0.960430562, -0.961280525, -0.962121427, -0.962953329, -0.963776112, -0.964589834, -0.965394497, -0.96619004, -0.966976523, -0.967753887, -0.968522131, -0.969281316, -0.970031321, -0.970772207, -0.971503973, -0.97222656, -0.972940028, -0.973644316, -0.974339426, -0.975025415, -0.975702226, -0.976369798, -0.977028191, -0.977677345, -0.97831732, -0.978948176, -0.979569733, -0.980182111, -0.980785251, -0.981379211, -0.981963873, -0.982539296, -0.983105481, -0.983662426, -0.984210074, -0.984748483, -0.985277653, -0.985797524, -0.986308098, -0.986809433, -0.987301409, -0.987784147, -0.988257587, -0.988721728, -0.989176512, -0.989622056, -0.990058243, -0.990485072, -0.990902662, -0.991310894, -0.991709769, -0.992099345, -0.992479563, -0.992850423, -0.993211985, -0.993564129, -0.993906975, -0.994240463, -0.994564593, -0.994879365, -0.99518472, -0.995480776, -0.995767415, -0.996044695, -0.996312618, -0.996571183, -0.996820331, -0.99706012, -0.997290492, -0.997511506, -0.997723103, -0.997925282, -0.998118103, -0.998301566, -0.998475611, -0.998640239, -0.99879545, -0.998941302, -0.999077737, -0.999204755, -0.999322355, -0.999430597, -0.999529421, -0.999618828, -0.999698818, -0.99976939, -0.999830604, -0.99988234, -0.999924719, -0.999957621, -0.999981165, -0.999995291, -1, -0.999995291, -0.999981165, -0.999957621, -0.999924719, -0.99988234, -0.999830604, -0.99976939, -0.999698818, -0.999618828, -0.999529421, -0.999430597, -0.999322355, -0.999204755, -0.999077737, -0.998941302, -0.99879545, -0.998640239, -0.998475552, -0.998301506, -0.998118103, -0.997925282, -0.997723043, -0.997511446, -0.997290432, -0.997060061, -0.996820271, -0.996571124, -0.996312618, -0.996044695, -0.995767415, -0.995480716, -0.99518472, -0.994879305, -0.994564533, -0.994240403, -0.993906915, -0.993564069, -0.993211925, -0.992850363, -0.992479503, -0.992099285, -0.991709769, -0.991310894, -0.990902662, -0.990485072, -0.990058243, -0.989621997, -0.989176512, -0.988721669, -0.988257587, -0.987784147, -0.987301409, -0.986809373, -0.986308098, -0.985797524, -0.985277653, -0.984748483, -0.984210074, -0.983662426, -0.983105481, -0.982539296, -0.981963873, -0.981379151, -0.980785251, -0.980182111, -0.979569733, -0.978948176, -0.97831732, -0.977677345, -0.977028131, -0.976369679, -0.975702107, -0.975025296, -0.974339366, -0.973644197, -0.972939909, -0.972226441, -0.971503854, -0.970772088, -0.970031202, -0.969281197, -0.968522012, -0.967753768, -0.966976404, -0.966189921, -0.965394378, -0.964589715, -0.963775992, -0.96295321, -0.962121308, -0.961280406, -0.960430443, -0.959571421, -0.958703399, -0.957826316, -0.956940234, -0.95604527, -0.955141187, -0.954228103, -0.953306079, -0.952375054, -0.95143503, -0.950486064, -0.949528217, -0.94856137, -0.947585583, -0.946600914, -0.945607305, -0.944604814, -0.943593442, -0.94257319, -0.941544056, -0.940506041, -0.939459205, -0.938403487, -0.937339008, -0.936265647, -0.935183465, -0.934092522, -0.932992756, -0.931884229, -0.93076694, -0.92964083, -0.928506017, -0.927362442, -0.926210165, -0.925049186, -0.923879445, -0.922701061, -0.921513975, -0.920318186, -0.919113755, -0.917900681, -0.916678965, -0.915448606, -0.914209664, -0.912962079, -0.911705911, -0.91044116, -0.909167886, -0.907885969, -0.906595588, -0.905296624, -0.903989136, -0.902673185, -0.90134871, -0.900015771, -0.898674309, -0.897324443, -0.895966113, -0.894599319, -0.89322412, -0.891840756, -0.890448749, -0.889048398, -0.887639642, -0.886222541, -0.884797096, -0.883363366, -0.881921291, -0.880470872, -0.879012227, -0.877545297, -0.876070082, -0.874586642, -0.873094976, -0.871595085, -0.870086968, -0.868570685, -0.867046237, -0.865513563, -0.863972843, -0.862423897, -0.860866904, -0.859301746, -0.857728541, -0.856147289, -0.854557931, -0.852960527, -0.851355135, -0.849741697, -0.848120272, -0.84649086, -0.844853461, -0.843208134, -0.84155488, -0.839893699, -0.83822459, -0.836547613, -0.834862769, -0.833170056, -0.831469476, -0.829761088, -0.828044891, -0.826320887, -0.824589133, -0.822849631, -0.821102321, -0.819347322, -0.817584634, -0.815814197, -0.814036131, -0.812250376, -0.810456991, -0.808655977, -0.806847334, -0.805031121, -0.803207576, -0.801376224, -0.799537301, -0.797690868, -0.795836926, -0.793975532, -0.792106569, -0.790230215, -0.78834641, -0.786455214, -0.784556568, -0.78265059, -0.780737221, -0.778816521, -0.77688843, -0.774953067, -0.773010433, -0.771060467, -0.769103289, -0.767138839, -0.765167236, -0.763188362, -0.761202335, -0.759209096, -0.757208765, -0.75520128, -0.753186703, -0.751165032, -0.749136269, -0.747100472, -0.745057642, -0.743007839, -0.740951002, -0.738887191, -0.736816406, -0.734738708, -0.732654095, -0.730562627, -0.728464246, -0.72635901, -0.724246919, -0.722128034, -0.720002294, -0.717869818, -0.715730608, -0.713584661, -0.71143198, -0.709272623, -0.707106531, -0.704933822, -0.702754498, -0.700568557, -0.698376, -0.696176887, -0.693971157, -0.691759348, -0.689540625, -0.687315404, -0.685083687, -0.682845592, -0.680601001, -0.678350091, -0.676092744, -0.673829019, -0.671558976, -0.669282615, -0.666999936, -0.664710939, -0.662415743, -0.660114288, -0.657806635, -0.655492783, -0.653172791, -0.650846601, -0.64851433, -0.646175921, -0.643831491, -0.641480923, -0.639124334, -0.636761785, -0.634393156, -0.632018626, -0.629638135, -0.627251685, -0.624859333, -0.62246114, -0.620057046, -0.617647171, -0.615231454, -0.612809896, -0.610382617, -0.607949615, -0.605510831, -0.603066385, -0.600616276, -0.598160505, -0.595699072, -0.593232095, -0.590759456, -0.588281333, -0.585797608, -0.583308399, -0.580813706, -0.578313529, -0.575807929, -0.573296905, -0.570780456, -0.568258643, -0.565731525, -0.563199043, -0.560661256, -0.558118582, -0.555570304, -0.553016782, -0.550458014, -0.54789412, -0.545325041, -0.542750776, -0.540171504, -0.537587106, -0.534997642, -0.532403111, -0.529803634, -0.52719909, -0.524589658, -0.521975279, -0.519355953, -0.516731739, -0.514102697, -0.511468768, -0.50883007, -0.506186545, -0.503538311, -0.500885308, -0.498227566, -0.495565146, -0.492898077, -0.490226358, -0.48755002, -0.484869093, -0.482183605, -0.479493588, -0.476799071, -0.474100024, -0.471396536, -0.468688637, -0.465976298, -0.463259578, -0.460538477, -0.457813084, -0.45508334, -0.452349335, -0.449611068, -0.446868569, -0.444121867, -0.441370994, -0.438615948, -0.435856789, -0.433093518, -0.430326164, -0.427554786, -0.424779356, -0.421999931, -0.419216543, -0.416429222, -0.413637966, -0.410843223, -0.408044219, -0.40524137, -0.402434707, -0.399624228, -0.396810025, -0.393992066, -0.391170382, -0.388345063, -0.385516047, -0.382683426, -0.379847199, -0.377007395, -0.374164015, -0.371317148, -0.368466765, -0.365612924, -0.362755656, -0.359894961, -0.357030869, -0.354163438, -0.35129264, -0.348418564, -0.345541209, -0.342660576, -0.339776754, -0.336889714, -0.333999485, -0.331106156, -0.328209668, -0.325310111, -0.322407484, -0.319501847, -0.31659317, -0.313681543, -0.310766935, -0.307849407, -0.304928988, -0.302005708, -0.299079567, -0.296150625, -0.293218881, -0.290284395, -0.287347168, -0.284407228, -0.281464636, -0.278519362, -0.275571495, -0.272621036, -0.269667983, -0.266712397, -0.263754308, -0.260793746, -0.257830739, -0.254865289, -0.251897871, -0.248927668, -0.245955095, -0.242980227, -0.240003064, -0.237023637, -0.234041974, -0.231058121, -0.228072077, -0.225083902, -0.222093612, -0.21910122, -0.216106758, -0.213110283, -0.210111782, -0.207111314, -0.204108894, -0.201104552, -0.198098332, -0.195090234, -0.192080289, -0.189068556, -0.186055034, -0.183039755, -0.180022761, -0.177004069, -0.173983723, -0.170961723, -0.167938128, -0.164912939, -0.1618862, -0.158857942, -0.155828193, -0.152796969, -0.149764314, -0.146730244, -0.143694788, -0.140657991, -0.137619868, -0.134580448, -0.131539747, -0.128497824, -0.125454694, -0.122410372, -0.119364902, -0.116318315, -0.113270625, -0.11022187, -0.107172079, -0.104121283, -0.101069503, -0.0980167687, -0.0949631184, -0.0919085667, -0.0888531581, -0.0857969075, -0.0827403218, -0.0796824917, -0.0766239017, -0.0735645965, -0.0705045983, -0.0674439371, -0.0643826351, -0.061320737, -0.0582582541, -0.0551952273, -0.0521316789, -0.0490676388, -0.0460031368, -0.0429382026, -0.0398728661, -0.0368071534, -0.0337410942, -0.0306747146, -0.02760805, -0.0245411228, -0.0214739665, -0.0184066072, -0.0153390747, -0.0122713987, -0.00920360629, -0.00613572728, -0.00306779053};
sine(f) = sinewave,int(os.phasor(2048,f)) : rdtable;
process = sine(440); |
|
391e4bd0441903fcabc774283ffefa3e9ce64d80a4abd58a430b71e1f2830a30 | trummerschlunk/master_me_legcy | master_me_gui.dsp | /* automatic mastering processor for live streaming events.*/
/* originally developed for the ccrma 'Quarantine Sessions'*/
/*
* Copyright (C) 2021 Klaus Scheuermann, [email protected]
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
/* some building blocks where taken from or inspired by Dario Sanfilippo <sanfilippo.dario at gmail dot com>
* some building blocks by Stéphane Letz
* some building blocks by Julius Smith
* some building blocks by Yann Orlarey
* a lot of help came from the faust community, especially sletz, magnetophone, Dario Sanphilippo, Julius Smith, Juan Carlos Blancas, Yann Orlarey
*/
declare name "master_me_gui";
declare author "Klaus Scheuermann";
declare version "2.0";
declare copyright "(C) 2021 Klaus Scheuermann";
import("stdfaust.lib");
// init values
Nch = 2; //number of channels (must be even!)
init_noisegate_threshold = -70;
init_leveler_target = -18;
init_leveler_maxboost = 3;
init_leveler_maxcut = 3;
init_leveler_gatethreshold = -45;
init_leveler_speed = .005;
init_mbmscomp_thresh = -10;
init_limiter_lad_ceil = -2;
init_brickwall_ceiling = -0.7;
// main
process =
si.bus(Nch) :
hgroup("MASTER_ME", hgroup("[0]INPUT",peak_meter(Nch))) :
// hgroup("MASTER_ME", hgroup("[0]INPUT",lufs_any(Nch))) :
dc_filter(Nch) :
hgroup("MASTER_ME", hgroup("[1.5]NOISEGATE",noisegate(Nch))):
hgroup("MASTER_ME", hgroup("[2]LEVELER",leveler(Nch))) :
hgroup("MASTER_ME", hgroup("[3]MULTIBAND MID-SIDE COMPRESSOR", mbmscomp(Nch))) :
hgroup("MASTER_ME", hgroup("[7]LIMITER", limiter(Nch))) :
hgroup("MASTER_ME", hgroup("[8]BRICKWALL",brickwall(Nch))) :
hgroup("MASTER_ME", hgroup("[9]OUTPUT",lufs_any(Nch))) :
hgroup("MASTER_ME", hgroup("[9]OUTPUT",peak_meter(Nch))) :
si.bus(Nch)
;
// DC FILTER
dc_filter(N) = par(i,N,fi.dcblocker);
// NOISE GATE
noisegate(N) = gate_any(N,noisegate_thresh,noisegate_attack,noisegate_hold,noisegate_release) with {
noisegate_thresh = vslider("[0]threshold",init_noisegate_threshold, -95, 0, 1);
noisegate_attack = 0.01;
noisegate_hold = 1;
noisegate_release = 2;
gate_any(N,thresh,att,hold,rel) = B <: B, (B :> ggm <: attach(_,(1-_) : vbargraph("[2]gate level",0,1)) <: B) : ro.interleave(N,2) : par(i,N,*)
with {
B = si.bus(N);
ggm = gate_gain_mono(thresh,att,hold,rel);
};
gate_gain_mono(thresh,att,hold,rel,x) = x : extendedrawgate : an.amp_follower_ar(att,rel) with {
extendedrawgate(x) = max(float(rawgatesig(x)),holdsig(x));
rawgatesig(x) = inlevel(x) > ba.db2linear(thresh);
minrate = min(att,rel);
inlevel = an.amp_follower_ar(minrate,minrate);
holdcounter(x) = (max(holdreset(x) * holdsamps,_) ~-(1));
holdsig(x) = holdcounter(x) > 0;
holdreset(x) = rawgatesig(x) < rawgatesig(x)'; // reset hold when raw gate falls
holdsamps = int(hold*ma.SR);
};
};
// LEVELER
leveler(N) = B <: B, (B :> _ <: _,_ : calc : _ <: B) : ro.interleave(N,2) : par(i,N,*)
with {
B = si.bus(N);
calc(mono,sc) = (mono : Lk : vbargraph("[1]in LUFS S",-40,0) : (target - _) : lp1p(leveler_speed_gated(sc)) : limit(limit_neg,limit_pos) : vbargraph("[2]gain",-50,50) : ba.db2linear) , sc : _,!;
target = vslider("[3]target LUFS[unit:dB]", init_leveler_target,-50,0,1);
limit_pos = vslider("[5]max boost", init_leveler_maxboost, 0, 50, 1);
limit_neg = vslider("[6]max cut", init_leveler_maxcut, 0, 50, 1) : ma.neg;
limit(lo,hi) = min(hi) : max(lo);
leveler_speed = vslider("[4]speed", init_leveler_speed, .005, 0.1, .005);
leveler_speed_gated(sc) = (gate_gain_mono(leveler_gate_thresh,0.1,0,0.1,abs(sc)) <: attach(_, (1-_) : vbargraph("[7]leveler gate",0,1))) : _ * leveler_speed;
leveler_gate_thresh = vslider("[8]lev gate thresh[unit:dB]", init_leveler_gatethreshold,-90,0,1);
// from library:
gate_gain_mono(thresh,att,hold,rel,x) = x : extendedrawgate : an.amp_follower_ar(att,rel) with {
extendedrawgate(x) = max(float(rawgatesig(x)),holdsig(x));
rawgatesig(x) = inlevel(x) > ba.db2linear(thresh);
minrate = min(att,rel);
inlevel = an.amp_follower_ar(minrate,minrate);
holdcounter(x) = (max(holdreset(x) * holdsamps,_) ~-(1));
holdsig(x) = holdcounter(x) > 0;
holdreset(x) = rawgatesig(x) < rawgatesig(x)'; // reset hold when raw gate falls
holdsamps = int(hold*ma.SR);
};
};
// MULTIBAND MS COMPRESSOR
mbmscomp(N) = par(i,N /2, ms_enc : split3) : comp_Nch(N) : par(i,N /2, join3 : ms_dec) : post_gain with{
mbmscomp_thresh = vslider("[1]threshold",init_mbmscomp_thresh,-60,0,1);
// stereo to m/s encoder
ms_enc = _*0.5,_*0.5 <: +, -;
// m/s to stereo decoder
ms_dec = _,_ <: +, -;
// 3-band splitter stereo
split3 = _,_ : par(i,2,fi.filterbank(3, (xo1,xo2))) : _,_,_,_,_,_ with {
xo1 = 250;
xo2 = 2500;
};
// 3-band joiner stereo
join3 = (si.bus(3) :> _) , (si.bus(3) :> _);
// Nch FB compressor
comp_Nch(N) = co.FBcompressor_N_chan(0.6,mbmscomp_thresh,0.02,0.5,6,0,0.3,meter_comp,N *3);
meter_comp = _<:attach( ba.linear2db : abs : vbargraph("[2][unit:db]", 0,6));
//post_gain
post_gain = par(i,N,_ * g) with {
g = vslider("[9]makeup[unit:dB]", 0,-10,+10,0.5) : ba.db2linear;
};
};
// LIMITER
limiter(N) = limiter_lad_N(N,limiter_lad_lookahead, init_limiter_lad_ceil : ba.db2linear, limiter_lad_attack, limiter_lad_hold, limiter_lad_release) : post_gain with{
limiter_lad_lookahead = 0.01;
limiter_lad_attack = 0.01;
limiter_lad_hold = 0.05;
limiter_lad_release = 0.2;
// lookahead limiter (N-channel)
limiter_lad_N(N, LD, ceiling, attack, hold, release) =
si.bus(N) <: par(i, N, @ (LD * ma.SR)),
(scaling <: si.bus(N)) : ro.interleave(N, 2) : par(i, N, *)
with {
scaling = ceiling / max(amp_profile, ma.EPSILON) : min(1) : meter_limiter_lad_N;
amp_profile = par(i, N, abs) : maxN(N) : ba.peakholder(hold * ma.SR) : att_smooth(attack) : rel_smooth(release);
att_smooth(time, in) = si.smooth(ba.tau2pole(time), in);
rel_smooth(time, in) = an.peak_envelope(time, in);
maxN(1) = _;
maxN(2) = max;
maxN(N) = max(maxN(N - 1));
};
// post_gain
post_gain = par(i,Nch,_ * g) with {
g = vslider("[9]post gain[unit:dB]", 0,-10,+10,0.5) : ba.db2linear;
};
// metering
//meter_limiter_lad_N = _ <: attach(ba.linear2db : vbargraph("[8][unit:dB]GR",-12,0));
meter_limiter_lad_N = _ <: attach(ba.linear2db : abs : vbargraph("[8][unit:dB]GR",0,12));
};
// BRICKWALL
brickwall(N) = limiter_lad_N(N, limiter_lad_lookahead, limiter_lad_ceil, limiter_lad_attack, limiter_lad_hold, limiter_lad_release)
with{
twopi = 2 * ma.PI;
limiter_lad_lookahead = 0.01;
limiter_lad_ceil = init_brickwall_ceiling : ba.db2linear;
limiter_lad_attack = .01 / twopi;
limiter_lad_hold = .1;
limiter_lad_release = 1 / twopi;
// lookahead limiter (N-channel)
limiter_lad_N(N, LD, ceiling, attack, hold, release) =
si.bus(N) <: par(i, N, @ (LD * ma.SR)),
(scaling <: si.bus(N)) : ro.interleave(N, 2) : par(i, N, *)
with {
scaling = ceiling / max(amp_profile, ma.EPSILON) : min(1) : meter_limiter_lad_N;
amp_profile = par(i, N, abs) : maxN(N) : ba.peakholder(hold * ma.SR) : att_smooth(attack) : rel_smooth(release);
att_smooth(time, in) = si.smooth(ba.tau2pole(time), in);
rel_smooth(time, in) = an.peak_envelope(time, in);
maxN(1) = _;
maxN(2) = max;
maxN(N) = max(maxN(N - 1));
};
// metering
meter_limiter_lad_N = _ <: attach(ba.linear2db : abs : vbargraph("[8][unit:dB]GR",0,12));
};
// METERING
peak_meter(N) = par(i, N, (_ <: attach(_, envelop : vbargraph("[unit:dB]CH %i", -70, 0)))) with{
vmeter(x) = attach(x, envelop(x) : vbargraph("[unit:dB]", -70, 0));
envelop = abs : max(ba.db2linear(-70)) : ba.linear2db : min(10) : max ~ -(40.0/ma.SR);
};
// METERING
peak_meter(N) = par(i, N, (_ <: attach(_, envelop : vbargraph("[unit:dB]CH %i", -70, 0)))) with{
vmeter(x) = attach(x, envelop(x) : vbargraph("[unit:dB]", -70, 0));
envelop = abs : max(ba.db2linear(-70)) : ba.linear2db : min(10) : max ~ -(40.0/ma.SR);
};
// LUFS metering (without channel weighting)
Tg = 3; // 3 second window for 'short-term' measurement
// zi = an.ms_envelope_rect(Tg); // mean square: average power = energy/Tg = integral of squared signal / Tg
//k-filter by Julius Smith
highpass = fi.highpass(2, 40);
boostDB = 4;
boostFreqHz = 1430; // a little too high - they should give us this!
highshelf = fi.high_shelf(boostDB, boostFreqHz); // Looks very close, but 1 kHz gain has to be nailed
kfilter = highshelf : highpass;
//envelope via lp by Dario Sanphilippo
lp1p(cf, x) = fi.pole(b, x * (1 - b)) with {
b = exp(-2 * ma.PI * cf / ma.SR);
};
zi_lp(x) = lp1p(1 / Tg, x * x);
// one channel
Lk = kfilter: zi_lp : 10 * log10(max(ma.EPSILON)) : -(0.691);
// N-channel
LkN = par(i,Nch,kfilter : zi_lp) :> 10 * log10(max(ma.EPSILON)) : -(0.691);
// N-channel by Yann Orlarey
lufs_any(N) = B <: B, (B :> Lk : vbargraph("LUFS S",-40,0)) : si.bus(N-1), attach(_,_)
with {
B = si.bus(N);
};
LUFS_in_meter(x,y) = x,y <: x, attach(y, (LkN : hgroup("MASTER_ME", hgroup("[0]INPUT",vbargraph("LUFS S",-40,0))))) : _,_;
LUFS_out_meter(x,y) = x,y <: x, attach(y, (LkN : hgroup("MASTER_ME", hgroup("[9]OUTPUT",vbargraph("LUFS S",-40,0))))) : _,_; | https://raw.githubusercontent.com/trummerschlunk/master_me_legcy/174515b7e272e4294bdca1705d11603bc1ee922a/master_me_gui.dsp | faust | automatic mastering processor for live streaming events.
originally developed for the ccrma 'Quarantine Sessions'
* Copyright (C) 2021 Klaus Scheuermann, [email protected]
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
some building blocks where taken from or inspired by Dario Sanfilippo <sanfilippo.dario at gmail dot com>
* some building blocks by Stéphane Letz
* some building blocks by Julius Smith
* some building blocks by Yann Orlarey
* a lot of help came from the faust community, especially sletz, magnetophone, Dario Sanphilippo, Julius Smith, Juan Carlos Blancas, Yann Orlarey
init values
number of channels (must be even!)
main
hgroup("MASTER_ME", hgroup("[0]INPUT",lufs_any(Nch))) :
DC FILTER
NOISE GATE
reset hold when raw gate falls
LEVELER
from library:
reset hold when raw gate falls
MULTIBAND MS COMPRESSOR
stereo to m/s encoder
m/s to stereo decoder
3-band splitter stereo
3-band joiner stereo
Nch FB compressor
post_gain
LIMITER
lookahead limiter (N-channel)
post_gain
metering
meter_limiter_lad_N = _ <: attach(ba.linear2db : vbargraph("[8][unit:dB]GR",-12,0));
BRICKWALL
lookahead limiter (N-channel)
metering
METERING
METERING
LUFS metering (without channel weighting)
3 second window for 'short-term' measurement
zi = an.ms_envelope_rect(Tg); // mean square: average power = energy/Tg = integral of squared signal / Tg
k-filter by Julius Smith
a little too high - they should give us this!
Looks very close, but 1 kHz gain has to be nailed
envelope via lp by Dario Sanphilippo
one channel
N-channel
N-channel by Yann Orlarey | declare name "master_me_gui";
declare author "Klaus Scheuermann";
declare version "2.0";
declare copyright "(C) 2021 Klaus Scheuermann";
import("stdfaust.lib");
init_noisegate_threshold = -70;
init_leveler_target = -18;
init_leveler_maxboost = 3;
init_leveler_maxcut = 3;
init_leveler_gatethreshold = -45;
init_leveler_speed = .005;
init_mbmscomp_thresh = -10;
init_limiter_lad_ceil = -2;
init_brickwall_ceiling = -0.7;
process =
si.bus(Nch) :
hgroup("MASTER_ME", hgroup("[0]INPUT",peak_meter(Nch))) :
dc_filter(Nch) :
hgroup("MASTER_ME", hgroup("[1.5]NOISEGATE",noisegate(Nch))):
hgroup("MASTER_ME", hgroup("[2]LEVELER",leveler(Nch))) :
hgroup("MASTER_ME", hgroup("[3]MULTIBAND MID-SIDE COMPRESSOR", mbmscomp(Nch))) :
hgroup("MASTER_ME", hgroup("[7]LIMITER", limiter(Nch))) :
hgroup("MASTER_ME", hgroup("[8]BRICKWALL",brickwall(Nch))) :
hgroup("MASTER_ME", hgroup("[9]OUTPUT",lufs_any(Nch))) :
hgroup("MASTER_ME", hgroup("[9]OUTPUT",peak_meter(Nch))) :
si.bus(Nch)
;
dc_filter(N) = par(i,N,fi.dcblocker);
noisegate(N) = gate_any(N,noisegate_thresh,noisegate_attack,noisegate_hold,noisegate_release) with {
noisegate_thresh = vslider("[0]threshold",init_noisegate_threshold, -95, 0, 1);
noisegate_attack = 0.01;
noisegate_hold = 1;
noisegate_release = 2;
gate_any(N,thresh,att,hold,rel) = B <: B, (B :> ggm <: attach(_,(1-_) : vbargraph("[2]gate level",0,1)) <: B) : ro.interleave(N,2) : par(i,N,*)
with {
B = si.bus(N);
ggm = gate_gain_mono(thresh,att,hold,rel);
};
gate_gain_mono(thresh,att,hold,rel,x) = x : extendedrawgate : an.amp_follower_ar(att,rel) with {
extendedrawgate(x) = max(float(rawgatesig(x)),holdsig(x));
rawgatesig(x) = inlevel(x) > ba.db2linear(thresh);
minrate = min(att,rel);
inlevel = an.amp_follower_ar(minrate,minrate);
holdcounter(x) = (max(holdreset(x) * holdsamps,_) ~-(1));
holdsig(x) = holdcounter(x) > 0;
holdsamps = int(hold*ma.SR);
};
};
leveler(N) = B <: B, (B :> _ <: _,_ : calc : _ <: B) : ro.interleave(N,2) : par(i,N,*)
with {
B = si.bus(N);
calc(mono,sc) = (mono : Lk : vbargraph("[1]in LUFS S",-40,0) : (target - _) : lp1p(leveler_speed_gated(sc)) : limit(limit_neg,limit_pos) : vbargraph("[2]gain",-50,50) : ba.db2linear) , sc : _,!;
target = vslider("[3]target LUFS[unit:dB]", init_leveler_target,-50,0,1);
limit_pos = vslider("[5]max boost", init_leveler_maxboost, 0, 50, 1);
limit_neg = vslider("[6]max cut", init_leveler_maxcut, 0, 50, 1) : ma.neg;
limit(lo,hi) = min(hi) : max(lo);
leveler_speed = vslider("[4]speed", init_leveler_speed, .005, 0.1, .005);
leveler_speed_gated(sc) = (gate_gain_mono(leveler_gate_thresh,0.1,0,0.1,abs(sc)) <: attach(_, (1-_) : vbargraph("[7]leveler gate",0,1))) : _ * leveler_speed;
leveler_gate_thresh = vslider("[8]lev gate thresh[unit:dB]", init_leveler_gatethreshold,-90,0,1);
gate_gain_mono(thresh,att,hold,rel,x) = x : extendedrawgate : an.amp_follower_ar(att,rel) with {
extendedrawgate(x) = max(float(rawgatesig(x)),holdsig(x));
rawgatesig(x) = inlevel(x) > ba.db2linear(thresh);
minrate = min(att,rel);
inlevel = an.amp_follower_ar(minrate,minrate);
holdcounter(x) = (max(holdreset(x) * holdsamps,_) ~-(1));
holdsig(x) = holdcounter(x) > 0;
holdsamps = int(hold*ma.SR);
};
};
mbmscomp(N) = par(i,N /2, ms_enc : split3) : comp_Nch(N) : par(i,N /2, join3 : ms_dec) : post_gain with{
mbmscomp_thresh = vslider("[1]threshold",init_mbmscomp_thresh,-60,0,1);
ms_enc = _*0.5,_*0.5 <: +, -;
ms_dec = _,_ <: +, -;
split3 = _,_ : par(i,2,fi.filterbank(3, (xo1,xo2))) : _,_,_,_,_,_ with {
xo1 = 250;
xo2 = 2500;
};
join3 = (si.bus(3) :> _) , (si.bus(3) :> _);
comp_Nch(N) = co.FBcompressor_N_chan(0.6,mbmscomp_thresh,0.02,0.5,6,0,0.3,meter_comp,N *3);
meter_comp = _<:attach( ba.linear2db : abs : vbargraph("[2][unit:db]", 0,6));
post_gain = par(i,N,_ * g) with {
g = vslider("[9]makeup[unit:dB]", 0,-10,+10,0.5) : ba.db2linear;
};
};
limiter(N) = limiter_lad_N(N,limiter_lad_lookahead, init_limiter_lad_ceil : ba.db2linear, limiter_lad_attack, limiter_lad_hold, limiter_lad_release) : post_gain with{
limiter_lad_lookahead = 0.01;
limiter_lad_attack = 0.01;
limiter_lad_hold = 0.05;
limiter_lad_release = 0.2;
limiter_lad_N(N, LD, ceiling, attack, hold, release) =
si.bus(N) <: par(i, N, @ (LD * ma.SR)),
(scaling <: si.bus(N)) : ro.interleave(N, 2) : par(i, N, *)
with {
scaling = ceiling / max(amp_profile, ma.EPSILON) : min(1) : meter_limiter_lad_N;
amp_profile = par(i, N, abs) : maxN(N) : ba.peakholder(hold * ma.SR) : att_smooth(attack) : rel_smooth(release);
att_smooth(time, in) = si.smooth(ba.tau2pole(time), in);
rel_smooth(time, in) = an.peak_envelope(time, in);
maxN(1) = _;
maxN(2) = max;
maxN(N) = max(maxN(N - 1));
};
post_gain = par(i,Nch,_ * g) with {
g = vslider("[9]post gain[unit:dB]", 0,-10,+10,0.5) : ba.db2linear;
};
meter_limiter_lad_N = _ <: attach(ba.linear2db : abs : vbargraph("[8][unit:dB]GR",0,12));
};
brickwall(N) = limiter_lad_N(N, limiter_lad_lookahead, limiter_lad_ceil, limiter_lad_attack, limiter_lad_hold, limiter_lad_release)
with{
twopi = 2 * ma.PI;
limiter_lad_lookahead = 0.01;
limiter_lad_ceil = init_brickwall_ceiling : ba.db2linear;
limiter_lad_attack = .01 / twopi;
limiter_lad_hold = .1;
limiter_lad_release = 1 / twopi;
limiter_lad_N(N, LD, ceiling, attack, hold, release) =
si.bus(N) <: par(i, N, @ (LD * ma.SR)),
(scaling <: si.bus(N)) : ro.interleave(N, 2) : par(i, N, *)
with {
scaling = ceiling / max(amp_profile, ma.EPSILON) : min(1) : meter_limiter_lad_N;
amp_profile = par(i, N, abs) : maxN(N) : ba.peakholder(hold * ma.SR) : att_smooth(attack) : rel_smooth(release);
att_smooth(time, in) = si.smooth(ba.tau2pole(time), in);
rel_smooth(time, in) = an.peak_envelope(time, in);
maxN(1) = _;
maxN(2) = max;
maxN(N) = max(maxN(N - 1));
};
meter_limiter_lad_N = _ <: attach(ba.linear2db : abs : vbargraph("[8][unit:dB]GR",0,12));
};
peak_meter(N) = par(i, N, (_ <: attach(_, envelop : vbargraph("[unit:dB]CH %i", -70, 0)))) with{
vmeter(x) = attach(x, envelop(x) : vbargraph("[unit:dB]", -70, 0));
envelop = abs : max(ba.db2linear(-70)) : ba.linear2db : min(10) : max ~ -(40.0/ma.SR);
};
peak_meter(N) = par(i, N, (_ <: attach(_, envelop : vbargraph("[unit:dB]CH %i", -70, 0)))) with{
vmeter(x) = attach(x, envelop(x) : vbargraph("[unit:dB]", -70, 0));
envelop = abs : max(ba.db2linear(-70)) : ba.linear2db : min(10) : max ~ -(40.0/ma.SR);
};
highpass = fi.highpass(2, 40);
boostDB = 4;
kfilter = highshelf : highpass;
lp1p(cf, x) = fi.pole(b, x * (1 - b)) with {
b = exp(-2 * ma.PI * cf / ma.SR);
};
zi_lp(x) = lp1p(1 / Tg, x * x);
Lk = kfilter: zi_lp : 10 * log10(max(ma.EPSILON)) : -(0.691);
LkN = par(i,Nch,kfilter : zi_lp) :> 10 * log10(max(ma.EPSILON)) : -(0.691);
lufs_any(N) = B <: B, (B :> Lk : vbargraph("LUFS S",-40,0)) : si.bus(N-1), attach(_,_)
with {
B = si.bus(N);
};
LUFS_in_meter(x,y) = x,y <: x, attach(y, (LkN : hgroup("MASTER_ME", hgroup("[0]INPUT",vbargraph("LUFS S",-40,0))))) : _,_;
LUFS_out_meter(x,y) = x,y <: x, attach(y, (LkN : hgroup("MASTER_ME", hgroup("[9]OUTPUT",vbargraph("LUFS S",-40,0))))) : _,_; |
85b783d6e331f36083f6f897d94f2ffe3951d3199210fc6265f56e929c93e463 | trummerschlunk/master_me_legcy | master_me_jacktrip.dsp | // double precision -double needed!
import("stdfaust.lib");
// init values
Nch = 2; //number of channels
init_noisegate_threshold = -70;
init_leveler_target = -16;
init_leveler_maxboost = 6;
init_leveler_maxcut = 6;
init_leveler_gatethreshold = -45;
init_leveler_speed = .03;
init_mbmscomp_thresh = -10; // not used in voc version
init_comp_thresh = -22;
init_comp_thresh_tilt = -4;
init_comp_makeup = 0;
init_limiter_lad_ceil = -5;
init_limiter_postgain = 0;
init_brickwall_ceiling = -3;
target = hslider("../../[1]TARGET[unit:dB]", init_leveler_target,-50,0,1);
// main
process =
// ba.bypass2(checkbox("bypass all"),
hgroup("row1",
si.bus(2) :
//hgroup("MASTER_ME", hgroup("[0]INPUT",peak_meter(Nch))) :
//hgroup("MASTER_ME", hgroup("[0]INPUT",lufs_any(Nch))) :
//hgroup("MASTER_ME", hgroup("[1]STEREO CORRECT",correlate_meter)) :
//hgroup("[1]STEREO CORRECT",correlate_correct_bp) :
dc_filter(2) :
hgroup("[2]NOISEGATE",noisegate(2)):
hgroup("[3]LEVELER",leveler(target))
// hgroup("MASTER_ME", vgroup("[3]MULTIBAND COMPRESSOR", mbcomp(Nch))) :
) : // end vgroup row1
hgroup("row2",hgroup("[3]MSCOMP10", mscomp10(target)) ) :
hgroup("row3",
// hgroup("[3]5-BAND COMPRESSOR", comp5st) :
// hgroup("[3]MULTIBAND MID-SIDE COMPRESSOR", mbmscomp(Nch)) :
hgroup("[4]KNEECOMP",kneecomp(target)) :
hgroup("[7]LIMITER", limiter) :
hgroup("[8]BRICKWALL",brickwall) :
hgroup("[9]OUTPUT",lufs_any(Nch)) :
//hgroup("MASTER_ME", hgroup("[9]OUTPUT",peak_meter(Nch))) :
si.bus(2)
) // end vgroup row2
//) // hgroup MASTER_Me end
// ) // bypass end
;
// DC FILTER
dc_filter(N) = par(i,N,fi.dcblocker);
// NOISE GATE
noisegate(N) = gate_any(N,noisegate_thresh,noisegate_attack,noisegate_hold,noisegate_release) with {
noisegate_thresh = vslider("[0]threshold",init_noisegate_threshold, -95, 0, 1);
noisegate_attack = 0.01;
noisegate_hold = 1;
noisegate_release = 2;
gate_any(N,thresh,att,hold,rel) = B <: B, (B :> ggm : vbargraph("[2]gate level",0,1) <: B) : ro.interleave(N,2) : par(i,N,*)
with {
B = si.bus(N);
ggm = gate_gain_mono(thresh,att,hold,rel);
};
gate_gain_mono(thresh,att,hold,rel,x) = x : extendedrawgate : an.amp_follower_ar(att,rel) with {
extendedrawgate(x) = max(float(rawgatesig(x)),holdsig(x));
rawgatesig(x) = inlevel(x) > ba.db2linear(thresh);
minrate = min(att,rel);
inlevel = an.amp_follower_ar(minrate,minrate);
holdcounter(x) = (max(holdreset(x) * holdsamps,_) ~-(1));
holdsig(x) = holdcounter(x) > 0;
holdreset(x) = rawgatesig(x) < rawgatesig(x)'; // reset hold when raw gate falls
holdsamps = int(hold*ma.SR);
};
};
// LEVELER
leveler(target) = B <: B , (B <: B,B : LkN, + : calc : _ <: B) : ro.interleave(N,2) : par(i,N,*)
with {
N = 2;
B = si.bus(N);
calc(lufs,sc) = (lufs : vbargraph("[1][unit:dB]LUFS",-70,0) : (target - _) : lp1p(leveler_speed_gated(sc)) : limit(limit_neg,limit_pos) : vbargraph("[2]gain",-50,50) : ba.db2linear) , sc : _,!;
// target = vslider("[3]target[unit:dB]", init_leveler_target,-50,0,1);
limit_pos = vslider("[5]max +", init_leveler_maxboost, 0, 60, 1);
limit_neg = vslider("[6]max -", init_leveler_maxcut, 0, 60, 1) : ma.neg;
limit(lo,hi) = min(hi) : max(lo);
leveler_speed = vslider("[4]speed", init_leveler_speed, .005, 0.15, .005);
leveler_speed_gated(sc) = (gate_gain_mono(leveler_gate_thresh,0.1,0,0.1,abs(sc)) <: attach(_, (1-_) : vbargraph("[7]leveler gate",0,1))) : _ * leveler_speed;
leveler_gate_thresh = vslider("[8]lev gate thresh[unit:dB]", init_leveler_gatethreshold,-90,0,1);
// from library:
gate_gain_mono(thresh,att,hold,rel,x) = x : extendedrawgate : an.amp_follower_ar(att,rel) with {
extendedrawgate(x) = max(float(rawgatesig(x)),holdsig(x));
rawgatesig(x) = inlevel(x) > ba.db2linear(thresh);
minrate = min(att,rel);
inlevel = an.amp_follower_ar(minrate,minrate);
holdcounter(x) = (max(holdreset(x) * holdsamps,_) ~-(1));
holdsig(x) = holdcounter(x) > 0;
holdreset(x) = rawgatesig(x) < rawgatesig(x)'; // reset hold when raw gate falls
holdsamps = int(hold*ma.SR);
};
};
// 10BAND MID-SIDE COMPRESSOR
mscomp10(target) = _,_ : ms_enc : par(i,2,fibank_mono) : ro.interleave(N,2) : par(i,N,compst(rdtable(thresh_offset,i))) : par(i,N,ms_dec) :> _,_ : post_gain with{
// threshold offset (high freq to low freq)
thresh_offset = waveform{-25,-17,-14,-13,-11,-10,-8,0,0,-6};
M = 1;
ftop = 10000;
N = 10 * M;
fibank_mono = fi.mth_octave_filterbank_default(M,ftop,N);
// stereo to m/s encoder
ms_enc = _*0.5,_*0.5 <: +, -;
// m/s to stereo decoder
ms_dec = _,_ <: +, -;
// stereo compressor
compst(thr_os) = co.FBcompressor_N_chan(strength,thresh+thr_os,att,rel,knee,prePost,link,meter,2) with {
strength = 0.1;
thresh = target + vslider("[unit:dB]tar-thr",-2,-10,10,1);
att = 0.015;
rel = 0.6;
knee = 12;
prePost = 1;
link = 0.5;
meter = _ <: (_, (ba.linear2db : ma.neg : vbargraph("[unit:dB]",0,3))) : attach;
};
//post_gain
post_gain = par(i,2,_ * g) with {
g = vslider("post gain[unit:dB]", 0,-10,+10,0.5) : ba.db2linear;
};
};
// KNEE COMPRESSOR
kneecomp(target) = ms_enc : co.RMS_FBcompressor_peak_limiter_N_chan(strength,thresh,threshLim,att,rel,knee,link,meter,meterLim,2) : ms_dec : post_gain with {
strength = 0.1; //vslider("strength", 0.1, 0, 1, 0.1);
thresh = target + vslider("[unit:dB]tar-thr",-6,-12,6,1);
threshLim = +3; //vslider("threshLim",3,-12,3,1);
att = 0.4; //vslider("att",0.4,0.001,1,0.001);
rel = 0.8; //vslider("rel",0.8,0.01,1,0.001);
knee = 12; //vslider("knee",12,0,12,1);
link = 0.5; //vslider("link", 0.5, 0, 1, 0.1);
meter = _<: _,(ba.linear2db : ma.neg : vbargraph("[unit:dB]",0,3)) : attach;
meterLim = _<: _,(ba.linear2db : ma.neg : vbargraph("[unit:dB]",0,3)) : attach;
// stereo to m/s encoder
ms_enc = _*0.5,_*0.5 <: +, -;
// m/s to stereo decoder
ms_dec = _,_ <: +, -;
//post_gain
post_gain = par(i,2,_ * g) with {
g = vslider("post gain[unit:dB]", 0,-10,+10,0.5) : ba.db2linear;
};
};
// LIMITER
limiter = limiter_lad_N(2,limiter_lad_lookahead, init_limiter_lad_ceil : ba.db2linear, limiter_lad_attack, limiter_lad_hold, limiter_lad_release) : post_gain with{
N=2;
limiter_lad_lookahead = 0;
limiter_lad_attack = 0.001;
limiter_lad_hold = 0.05;
limiter_lad_release = 0.2;
// lookahead limiter (N-channel)
limiter_lad_N(N, LD, ceiling, attack, hold, release) =
si.bus(N) <: par(i, N, @ (LD * ma.SR)),
(scaling <: si.bus(N)) : ro.interleave(N, 2) : par(i, N, *)
with {
scaling = ceiling / max(amp_profile, ma.EPSILON) : min(1) : meter_limiter_lad_N;
amp_profile = par(i, N, abs) : maxN(N) : ba.peakholder(hold * ma.SR) : att_smooth(attack) : rel_smooth(release);
att_smooth(time, in) = si.smooth(ba.tau2pole(time), in);
rel_smooth(time, in) = an.peak_envelope(time, in);
maxN(1) = _;
maxN(2) = max;
maxN(N) = max(maxN(N - 1));
};
// post_gain
post_gain = par(i,Nch,_ * g) with {
g = vslider("[9]post gain[unit:dB]", init_limiter_postgain,-10,+10,0.5) : ba.db2linear;
};
// metering
//meter_limiter_lad_N = _ <: attach(ba.linear2db : vbargraph("[8][unit:dB]GR",-12,0));
meter_limiter_lad_N = _ <: attach(ba.linear2db : abs : vbargraph("[8][unit:dB]GR",0,12));
};
// BRICKWALL
brickwall = limiter_lad_N(N, limiter_lad_lookahead, limiter_lad_ceil, limiter_lad_attack, limiter_lad_hold, limiter_lad_release)
with{
N=2;
twopi = 2 * ma.PI;
limiter_lad_lookahead = 0.01;
limiter_lad_ceil = init_brickwall_ceiling : ba.db2linear;
limiter_lad_attack = .01 / twopi;
limiter_lad_hold = .1;
limiter_lad_release = 1 / twopi;
// lookahead limiter (N-channel)
limiter_lad_N(N, LD, ceiling, attack, hold, release) =
si.bus(N) <: par(i, N, @ (LD * ma.SR)),
(scaling <: si.bus(N)) : ro.interleave(N, 2) : par(i, N, *)
with {
scaling = ceiling / max(amp_profile, ma.EPSILON) : min(1) : meter_limiter_lad_N;
amp_profile = par(i, N, abs) : maxN(N) : ba.peakholder(hold * ma.SR) : att_smooth(attack) : rel_smooth(release);
att_smooth(time, in) = si.smooth(ba.tau2pole(time), in);
rel_smooth(time, in) = an.peak_envelope(time, in);
maxN(1) = _;
maxN(2) = max;
maxN(N) = max(maxN(N - 1));
};
// metering
meter_limiter_lad_N = _ <: attach(ba.linear2db : abs : vbargraph("[8][unit:dB]GR",0,12));
};
// METERING
peak_meter(N) = par(i, N, (_ <: attach(_, envelop : vbargraph("[unit:dB]CH%i", -70, 0)))) with{
vmeter(x) = attach(x, envelop(x) : vbargraph("[unit:dB]", -70, 0));
envelop = abs : max(ba.db2linear(-70)) : ba.linear2db : min(10) : max ~ -(40.0/ma.SR);
};
// +++++++++++++++++++++++++ LUFS METER +++++++++++++++++++++++++
Tg = 3; // 3 second window for 'short-term' measurement
zi = an.ms_envelope_rect(Tg); // mean square: average power = energy/Tg = integral of squared signal / Tg
kfilter = fi.highpass(1, 60) : fi.high_shelf(4, 1800);
// 2-channel
lk2 = par(i,2,kfilter : zi) :> 10 * log10(max(ma.EPSILON)) : -(0.691);
//envelope via lp by Dario Sanphilippo
lp1p(cf, x) = fi.pole(b, x * (1 - b)) with {
b = exp(-2 * ma.PI * cf / ma.SR);
};
// zi_lp(x) = lp1p(1 / Tg, x * x);
// one channel
Lk = kfilter : zi : 10 * log10(max(ma.EPSILON)) : -(0.691);
// N-channel
LkN = par(i,Nch, kfilter : zi) :> 10 * log10(max(ma.EPSILON)) : -(0.691);
// N-channel by Yann Orlarey
lufs_any(N) = B <: B, (B : par(i,N,kfilter:zi) :> 10 * log10(max(ma.EPSILON)) : -(0.691) : vbargraph("[unit:dB]LUFS",-70,0)) : si.bus(N-1), attach(_,_)
with {
B = si.bus(N);
};
// correlation meter
correlate_meter(x,y) = x,y <: x , attach(y, (corr(t) : vbargraph("correlation",-1,1))) : _,_ with {
t = .2; // averaging period in seconds
avg(t, x) = fi.pole(p, (1 - p) * x) // 1-pole lowpass as average
with {
p = exp((((-2.0 * ma.PI) / t) / ma.SR));
};
var(t, x) = avg(t, (x - avg(t, x)) ^ 2); // variance
sd(t, x) = sqrt(var(t, x)); // standard deviation
cov(t, x1, x2) = avg(t, (x1 - avg(t, x1)) * (x2 - avg(t, x2))); // covariance
corr(t, x1, x2) = cov(t, x1, x2) / max(ma.EPSILON, (sd(t, x1) * sd(t, x2))); // correlation
};
// stereo correction based on correlation
correlate_correct(l,r) = out_pos1, out_neg1, out_0, out_pos, out_neg :> _,_ with {
t = .2; // averaging period in seconds
avg(t, x) = fi.pole(p, (1 - p) * x) // 1-pole lowpass as average
with {
p = exp((((-2.0 * ma.PI) / t) / ma.SR));
};
var(t, x) = avg(t, (x - avg(t, x)) ^ 2); // variance
sd(t, x) = sqrt(var(t, x)); // standard deviation
cov(t, x1, x2) = avg(t, (x1 - avg(t, x1)) * (x2 - avg(t, x2))); // covariance
corr(t, x1, x2) = cov(t, x1, x2) / max(ma.EPSILON, (sd(t, x1) * sd(t, x2))); // correlation
th =.0001;
corr_pos1 = avg(t, (corr(t,l,r) > (1-th))) : smoothing /*: vbargraph("[5]1",0,1)*/;
corr_neg1 = avg(t, corr(t,l,r) < (-1+th)) : smoothing /*: vbargraph("[9]-1",0,1)*/;
corr_0 = avg(t, ((corr(t,l,r) < th) & (corr(t,l,r) > (0-th)))) : smoothing /*: vbargraph("[7]0",0,1)*/;
corr_pos = avg(t, ((corr(t,l,r) > (0+th)) & (corr(t,l,r) < (1-th)))) : smoothing /*: vbargraph("[6]>0,<1",0,1)*/;
corr_neg = avg(t, ((corr(t,l,r) > (-1+th)) & (corr(t,l,r) < (0-th)))) : smoothing /*: vbargraph("[8]>-1,<0",0,1)*/;
smoothing = lp1p(2) ;
out_pos1 = ((l * corr_pos1 + r * corr_pos1) /2) , ((l * corr_pos1 + r * corr_pos1) /2);
out_neg1 = ((l * corr_neg1 + (-r) * corr_neg1) /2) , ((l * corr_neg1 + (-r) * corr_neg1) /2);
out_0 = (l * corr_0 + r * corr_0) , (l * corr_0 + r * corr_0);
out_pos = l * corr_pos , r * corr_pos;
out_neg = l * corr_neg , r * corr_neg; // old: out_neg = l * corr_neg , (0-(r * corr_neg));
};
// stereo correction bypass checkbox
correlate_correct_bp = ba.bypass2(checkbox("bypass"), correlate_correct);
| https://raw.githubusercontent.com/trummerschlunk/master_me_legcy/524781f69c6ffa91c22d5ed48fe77cd203f34198/master_me_jacktrip.dsp | faust | double precision -double needed!
init values
number of channels
not used in voc version
main
ba.bypass2(checkbox("bypass all"),
hgroup("MASTER_ME", hgroup("[0]INPUT",peak_meter(Nch))) :
hgroup("MASTER_ME", hgroup("[0]INPUT",lufs_any(Nch))) :
hgroup("MASTER_ME", hgroup("[1]STEREO CORRECT",correlate_meter)) :
hgroup("[1]STEREO CORRECT",correlate_correct_bp) :
hgroup("MASTER_ME", vgroup("[3]MULTIBAND COMPRESSOR", mbcomp(Nch))) :
end vgroup row1
hgroup("[3]5-BAND COMPRESSOR", comp5st) :
hgroup("[3]MULTIBAND MID-SIDE COMPRESSOR", mbmscomp(Nch)) :
hgroup("MASTER_ME", hgroup("[9]OUTPUT",peak_meter(Nch))) :
end vgroup row2
) // hgroup MASTER_Me end
) // bypass end
DC FILTER
NOISE GATE
reset hold when raw gate falls
LEVELER
target = vslider("[3]target[unit:dB]", init_leveler_target,-50,0,1);
from library:
reset hold when raw gate falls
10BAND MID-SIDE COMPRESSOR
threshold offset (high freq to low freq)
stereo to m/s encoder
m/s to stereo decoder
stereo compressor
post_gain
KNEE COMPRESSOR
vslider("strength", 0.1, 0, 1, 0.1);
vslider("threshLim",3,-12,3,1);
vslider("att",0.4,0.001,1,0.001);
vslider("rel",0.8,0.01,1,0.001);
vslider("knee",12,0,12,1);
vslider("link", 0.5, 0, 1, 0.1);
stereo to m/s encoder
m/s to stereo decoder
post_gain
LIMITER
lookahead limiter (N-channel)
post_gain
metering
meter_limiter_lad_N = _ <: attach(ba.linear2db : vbargraph("[8][unit:dB]GR",-12,0));
BRICKWALL
lookahead limiter (N-channel)
metering
METERING
+++++++++++++++++++++++++ LUFS METER +++++++++++++++++++++++++
3 second window for 'short-term' measurement
mean square: average power = energy/Tg = integral of squared signal / Tg
2-channel
envelope via lp by Dario Sanphilippo
zi_lp(x) = lp1p(1 / Tg, x * x);
one channel
N-channel
N-channel by Yann Orlarey
correlation meter
averaging period in seconds
1-pole lowpass as average
variance
standard deviation
covariance
correlation
stereo correction based on correlation
averaging period in seconds
1-pole lowpass as average
variance
standard deviation
covariance
correlation
: vbargraph("[5]1",0,1)
: vbargraph("[9]-1",0,1)
: vbargraph("[7]0",0,1)
: vbargraph("[6]>0,<1",0,1)
: vbargraph("[8]>-1,<0",0,1)
old: out_neg = l * corr_neg , (0-(r * corr_neg));
stereo correction bypass checkbox |
import("stdfaust.lib");
init_noisegate_threshold = -70;
init_leveler_target = -16;
init_leveler_maxboost = 6;
init_leveler_maxcut = 6;
init_leveler_gatethreshold = -45;
init_leveler_speed = .03;
init_comp_thresh = -22;
init_comp_thresh_tilt = -4;
init_comp_makeup = 0;
init_limiter_lad_ceil = -5;
init_limiter_postgain = 0;
init_brickwall_ceiling = -3;
target = hslider("../../[1]TARGET[unit:dB]", init_leveler_target,-50,0,1);
process =
hgroup("row1",
si.bus(2) :
dc_filter(2) :
hgroup("[2]NOISEGATE",noisegate(2)):
hgroup("[3]LEVELER",leveler(target))
hgroup("row2",hgroup("[3]MSCOMP10", mscomp10(target)) ) :
hgroup("row3",
hgroup("[4]KNEECOMP",kneecomp(target)) :
hgroup("[7]LIMITER", limiter) :
hgroup("[8]BRICKWALL",brickwall) :
hgroup("[9]OUTPUT",lufs_any(Nch)) :
si.bus(2)
;
dc_filter(N) = par(i,N,fi.dcblocker);
noisegate(N) = gate_any(N,noisegate_thresh,noisegate_attack,noisegate_hold,noisegate_release) with {
noisegate_thresh = vslider("[0]threshold",init_noisegate_threshold, -95, 0, 1);
noisegate_attack = 0.01;
noisegate_hold = 1;
noisegate_release = 2;
gate_any(N,thresh,att,hold,rel) = B <: B, (B :> ggm : vbargraph("[2]gate level",0,1) <: B) : ro.interleave(N,2) : par(i,N,*)
with {
B = si.bus(N);
ggm = gate_gain_mono(thresh,att,hold,rel);
};
gate_gain_mono(thresh,att,hold,rel,x) = x : extendedrawgate : an.amp_follower_ar(att,rel) with {
extendedrawgate(x) = max(float(rawgatesig(x)),holdsig(x));
rawgatesig(x) = inlevel(x) > ba.db2linear(thresh);
minrate = min(att,rel);
inlevel = an.amp_follower_ar(minrate,minrate);
holdcounter(x) = (max(holdreset(x) * holdsamps,_) ~-(1));
holdsig(x) = holdcounter(x) > 0;
holdsamps = int(hold*ma.SR);
};
};
leveler(target) = B <: B , (B <: B,B : LkN, + : calc : _ <: B) : ro.interleave(N,2) : par(i,N,*)
with {
N = 2;
B = si.bus(N);
calc(lufs,sc) = (lufs : vbargraph("[1][unit:dB]LUFS",-70,0) : (target - _) : lp1p(leveler_speed_gated(sc)) : limit(limit_neg,limit_pos) : vbargraph("[2]gain",-50,50) : ba.db2linear) , sc : _,!;
limit_pos = vslider("[5]max +", init_leveler_maxboost, 0, 60, 1);
limit_neg = vslider("[6]max -", init_leveler_maxcut, 0, 60, 1) : ma.neg;
limit(lo,hi) = min(hi) : max(lo);
leveler_speed = vslider("[4]speed", init_leveler_speed, .005, 0.15, .005);
leveler_speed_gated(sc) = (gate_gain_mono(leveler_gate_thresh,0.1,0,0.1,abs(sc)) <: attach(_, (1-_) : vbargraph("[7]leveler gate",0,1))) : _ * leveler_speed;
leveler_gate_thresh = vslider("[8]lev gate thresh[unit:dB]", init_leveler_gatethreshold,-90,0,1);
gate_gain_mono(thresh,att,hold,rel,x) = x : extendedrawgate : an.amp_follower_ar(att,rel) with {
extendedrawgate(x) = max(float(rawgatesig(x)),holdsig(x));
rawgatesig(x) = inlevel(x) > ba.db2linear(thresh);
minrate = min(att,rel);
inlevel = an.amp_follower_ar(minrate,minrate);
holdcounter(x) = (max(holdreset(x) * holdsamps,_) ~-(1));
holdsig(x) = holdcounter(x) > 0;
holdsamps = int(hold*ma.SR);
};
};
mscomp10(target) = _,_ : ms_enc : par(i,2,fibank_mono) : ro.interleave(N,2) : par(i,N,compst(rdtable(thresh_offset,i))) : par(i,N,ms_dec) :> _,_ : post_gain with{
thresh_offset = waveform{-25,-17,-14,-13,-11,-10,-8,0,0,-6};
M = 1;
ftop = 10000;
N = 10 * M;
fibank_mono = fi.mth_octave_filterbank_default(M,ftop,N);
ms_enc = _*0.5,_*0.5 <: +, -;
ms_dec = _,_ <: +, -;
compst(thr_os) = co.FBcompressor_N_chan(strength,thresh+thr_os,att,rel,knee,prePost,link,meter,2) with {
strength = 0.1;
thresh = target + vslider("[unit:dB]tar-thr",-2,-10,10,1);
att = 0.015;
rel = 0.6;
knee = 12;
prePost = 1;
link = 0.5;
meter = _ <: (_, (ba.linear2db : ma.neg : vbargraph("[unit:dB]",0,3))) : attach;
};
post_gain = par(i,2,_ * g) with {
g = vslider("post gain[unit:dB]", 0,-10,+10,0.5) : ba.db2linear;
};
};
kneecomp(target) = ms_enc : co.RMS_FBcompressor_peak_limiter_N_chan(strength,thresh,threshLim,att,rel,knee,link,meter,meterLim,2) : ms_dec : post_gain with {
thresh = target + vslider("[unit:dB]tar-thr",-6,-12,6,1);
meter = _<: _,(ba.linear2db : ma.neg : vbargraph("[unit:dB]",0,3)) : attach;
meterLim = _<: _,(ba.linear2db : ma.neg : vbargraph("[unit:dB]",0,3)) : attach;
ms_enc = _*0.5,_*0.5 <: +, -;
ms_dec = _,_ <: +, -;
post_gain = par(i,2,_ * g) with {
g = vslider("post gain[unit:dB]", 0,-10,+10,0.5) : ba.db2linear;
};
};
limiter = limiter_lad_N(2,limiter_lad_lookahead, init_limiter_lad_ceil : ba.db2linear, limiter_lad_attack, limiter_lad_hold, limiter_lad_release) : post_gain with{
N=2;
limiter_lad_lookahead = 0;
limiter_lad_attack = 0.001;
limiter_lad_hold = 0.05;
limiter_lad_release = 0.2;
limiter_lad_N(N, LD, ceiling, attack, hold, release) =
si.bus(N) <: par(i, N, @ (LD * ma.SR)),
(scaling <: si.bus(N)) : ro.interleave(N, 2) : par(i, N, *)
with {
scaling = ceiling / max(amp_profile, ma.EPSILON) : min(1) : meter_limiter_lad_N;
amp_profile = par(i, N, abs) : maxN(N) : ba.peakholder(hold * ma.SR) : att_smooth(attack) : rel_smooth(release);
att_smooth(time, in) = si.smooth(ba.tau2pole(time), in);
rel_smooth(time, in) = an.peak_envelope(time, in);
maxN(1) = _;
maxN(2) = max;
maxN(N) = max(maxN(N - 1));
};
post_gain = par(i,Nch,_ * g) with {
g = vslider("[9]post gain[unit:dB]", init_limiter_postgain,-10,+10,0.5) : ba.db2linear;
};
meter_limiter_lad_N = _ <: attach(ba.linear2db : abs : vbargraph("[8][unit:dB]GR",0,12));
};
brickwall = limiter_lad_N(N, limiter_lad_lookahead, limiter_lad_ceil, limiter_lad_attack, limiter_lad_hold, limiter_lad_release)
with{
N=2;
twopi = 2 * ma.PI;
limiter_lad_lookahead = 0.01;
limiter_lad_ceil = init_brickwall_ceiling : ba.db2linear;
limiter_lad_attack = .01 / twopi;
limiter_lad_hold = .1;
limiter_lad_release = 1 / twopi;
limiter_lad_N(N, LD, ceiling, attack, hold, release) =
si.bus(N) <: par(i, N, @ (LD * ma.SR)),
(scaling <: si.bus(N)) : ro.interleave(N, 2) : par(i, N, *)
with {
scaling = ceiling / max(amp_profile, ma.EPSILON) : min(1) : meter_limiter_lad_N;
amp_profile = par(i, N, abs) : maxN(N) : ba.peakholder(hold * ma.SR) : att_smooth(attack) : rel_smooth(release);
att_smooth(time, in) = si.smooth(ba.tau2pole(time), in);
rel_smooth(time, in) = an.peak_envelope(time, in);
maxN(1) = _;
maxN(2) = max;
maxN(N) = max(maxN(N - 1));
};
meter_limiter_lad_N = _ <: attach(ba.linear2db : abs : vbargraph("[8][unit:dB]GR",0,12));
};
peak_meter(N) = par(i, N, (_ <: attach(_, envelop : vbargraph("[unit:dB]CH%i", -70, 0)))) with{
vmeter(x) = attach(x, envelop(x) : vbargraph("[unit:dB]", -70, 0));
envelop = abs : max(ba.db2linear(-70)) : ba.linear2db : min(10) : max ~ -(40.0/ma.SR);
};
kfilter = fi.highpass(1, 60) : fi.high_shelf(4, 1800);
lk2 = par(i,2,kfilter : zi) :> 10 * log10(max(ma.EPSILON)) : -(0.691);
lp1p(cf, x) = fi.pole(b, x * (1 - b)) with {
b = exp(-2 * ma.PI * cf / ma.SR);
};
Lk = kfilter : zi : 10 * log10(max(ma.EPSILON)) : -(0.691);
LkN = par(i,Nch, kfilter : zi) :> 10 * log10(max(ma.EPSILON)) : -(0.691);
lufs_any(N) = B <: B, (B : par(i,N,kfilter:zi) :> 10 * log10(max(ma.EPSILON)) : -(0.691) : vbargraph("[unit:dB]LUFS",-70,0)) : si.bus(N-1), attach(_,_)
with {
B = si.bus(N);
};
correlate_meter(x,y) = x,y <: x , attach(y, (corr(t) : vbargraph("correlation",-1,1))) : _,_ with {
with {
p = exp((((-2.0 * ma.PI) / t) / ma.SR));
};
};
correlate_correct(l,r) = out_pos1, out_neg1, out_0, out_pos, out_neg :> _,_ with {
with {
p = exp((((-2.0 * ma.PI) / t) / ma.SR));
};
th =.0001;
smoothing = lp1p(2) ;
out_pos1 = ((l * corr_pos1 + r * corr_pos1) /2) , ((l * corr_pos1 + r * corr_pos1) /2);
out_neg1 = ((l * corr_neg1 + (-r) * corr_neg1) /2) , ((l * corr_neg1 + (-r) * corr_neg1) /2);
out_0 = (l * corr_0 + r * corr_0) , (l * corr_0 + r * corr_0);
out_pos = l * corr_pos , r * corr_pos;
};
correlate_correct_bp = ba.bypass2(checkbox("bypass"), correlate_correct);
|
c94d52f5cce31bda057a08b93ceeef55950925ba7e6f22f091cee7e2c0f65fbe | trummerschlunk/master_me_legcy | soundsgood09.dsp | // double precision -double needed!
import("stdfaust.lib");
// init values
Nch = 2; //number of channels
init_noisegate_threshold = -70; // not used in voc version
init_leveler_target = -18;
init_leveler_maxboost = 40;
init_leveler_maxcut = 40;
init_leveler_gatethreshold = -45;
init_leveler_speed = .03;
init_mbmscomp_thresh = -10; // not used in voc version
init_comp_thresh = -22;
init_comp_thresh_tilt = -4;
init_comp_makeup = 0;
init_limiter_lad_ceil = -5;
init_limiter_postgain = 0;
init_brickwall_ceiling = -3;
target = hslider("../../[1]TARGET[unit:dB]", init_leveler_target,-50,0,1);
// main
process =
// ba.bypass2(checkbox("bypass all"),
hgroup("row1",
si.bus(2) :
//hgroup("MASTER_ME", hgroup("[0]INPUT",peak_meter(Nch))) :
//hgroup("MASTER_ME", hgroup("[0]INPUT",lufs_any(Nch))) :
//hgroup("MASTER_ME", hgroup("[1]STEREO CORRECT",correlate_meter)) :
//hgroup("[1]STEREO CORRECT",correlate_correct_bp) :
dc_filter(2) :
hgroup("[2]NOISEGATE",noisegate(2)):
hgroup("[3]LEVELER",leveler(target))
// hgroup("MASTER_ME", vgroup("[3]MULTIBAND COMPRESSOR", mbcomp(Nch))) :
) : // end vgroup row1
hgroup("row2",hgroup("[3]MSCOMP10", mscomp10(target)) ) :
hgroup("row3",
// hgroup("[3]5-BAND COMPRESSOR", comp5st) :
// hgroup("[3]MULTIBAND MID-SIDE COMPRESSOR", mbmscomp(Nch)) :
hgroup("[4]KNEECOMP",kneecomp(target)) :
hgroup("[7]LIMITER", limiter) :
hgroup("[8]BRICKWALL",brickwall) :
hgroup("[9]OUTPUT",lufs_any(Nch)) :
//hgroup("MASTER_ME", hgroup("[9]OUTPUT",peak_meter(Nch))) :
si.bus(2)
) // end vgroup row2
//) // hgroup MASTER_Me end
// ) // bypass end
;
// DC FILTER
dc_filter(N) = par(i,N,fi.dcblocker);
// NOISE GATE
noisegate(N) = gate_any(N,noisegate_thresh,noisegate_attack,noisegate_hold,noisegate_release) with {
noisegate_thresh = vslider("[0]threshold",init_noisegate_threshold, -95, 0, 1);
noisegate_attack = 0.01;
noisegate_hold = 1;
noisegate_release = 2;
gate_any(N,thresh,att,hold,rel) = B <: B, (B :> ggm : vbargraph("[2]gate level",0,1) <: B) : ro.interleave(N,2) : par(i,N,*)
with {
B = si.bus(N);
ggm = gate_gain_mono(thresh,att,hold,rel);
};
gate_gain_mono(thresh,att,hold,rel,x) = x : extendedrawgate : an.amp_follower_ar(att,rel) with {
extendedrawgate(x) = max(float(rawgatesig(x)),holdsig(x));
rawgatesig(x) = inlevel(x) > ba.db2linear(thresh);
minrate = min(att,rel);
inlevel = an.amp_follower_ar(minrate,minrate);
holdcounter(x) = (max(holdreset(x) * holdsamps,_) ~-(1));
holdsig(x) = holdcounter(x) > 0;
holdreset(x) = rawgatesig(x) < rawgatesig(x)'; // reset hold when raw gate falls
holdsamps = int(hold*ma.SR);
};
};
// LEVELER
leveler(target) = B <: B , (B <: B,B : LkN, + : calc : _ <: B) : ro.interleave(N,2) : par(i,N,*)
with {
N = 2;
B = si.bus(N);
calc(lufs,sc) = (lufs : vbargraph("[1][unit:dB]LUFS",-70,0) : (target - _) : lp1p(leveler_speed_gated(sc)) : limit(limit_neg,limit_pos) : vbargraph("[2]gain",-50,50) : ba.db2linear) , sc : _,!;
// target = vslider("[3]target[unit:dB]", init_leveler_target,-50,0,1);
limit_pos = vslider("[5]max +", init_leveler_maxboost, 0, 60, 1);
limit_neg = vslider("[6]max -", init_leveler_maxcut, 0, 60, 1) : ma.neg;
limit(lo,hi) = min(hi) : max(lo);
leveler_speed = vslider("[4]speed", init_leveler_speed, .005, 0.15, .005);
leveler_speed_gated(sc) = (gate_gain_mono(leveler_gate_thresh,0.1,0,0.1,abs(sc)) <: attach(_, (1-_) : vbargraph("[7]leveler gate",0,1))) : _ * leveler_speed;
leveler_gate_thresh = vslider("[8]lev gate thresh[unit:dB]", init_leveler_gatethreshold,-90,0,1);
// from library:
gate_gain_mono(thresh,att,hold,rel,x) = x : extendedrawgate : an.amp_follower_ar(att,rel) with {
extendedrawgate(x) = max(float(rawgatesig(x)),holdsig(x));
rawgatesig(x) = inlevel(x) > ba.db2linear(thresh);
minrate = min(att,rel);
inlevel = an.amp_follower_ar(minrate,minrate);
holdcounter(x) = (max(holdreset(x) * holdsamps,_) ~-(1));
holdsig(x) = holdcounter(x) > 0;
holdreset(x) = rawgatesig(x) < rawgatesig(x)'; // reset hold when raw gate falls
holdsamps = int(hold*ma.SR);
};
};
// 10BAND MID-SIDE COMPRESSOR
mscomp10(target) = _,_ : ms_enc : par(i,2,fibank_mono) : ro.interleave(N,2) : par(i,N,compst(rdtable(thresh_offset,i))) : par(i,N,ms_dec) :> _,_ : post_gain with{
// threshold offset (high freq to low freq)
thresh_offset = waveform{-25,-17,-14,-13,-11,-10,-8,0,0,-6};
M = 1;
ftop = 10000;
N = 10 * M;
fibank_mono = fi.mth_octave_filterbank_default(M,ftop,N);
// stereo to m/s encoder
ms_enc = _*0.5,_*0.5 <: +, -;
// m/s to stereo decoder
ms_dec = _,_ <: +, -;
// stereo compressor
compst(thr_os) = co.FBcompressor_N_chan(strength,thresh+thr_os,att,rel,knee,prePost,link,meter,2) with {
strength = 0.1;
thresh = target + vslider("[unit:dB]tar-thr",-2,-10,10,1);
att = 0.015;
rel = 0.6;
knee = 12;
prePost = 1;
link = 0.5;
meter = _ <: (_, (ba.linear2db : ma.neg : vbargraph("[unit:dB]",0,3))) : attach;
};
//post_gain
post_gain = par(i,2,_ * g) with {
g = vslider("post gain[unit:dB]", 0,-10,+10,0.5) : ba.db2linear;
};
};
// KNEE COMPRESSOR
kneecomp(target) = ms_enc : co.RMS_FBcompressor_peak_limiter_N_chan(strength,thresh,threshLim,att,rel,knee,link,meter,meterLim,2) : ms_dec : post_gain with {
strength = 0.1; //vslider("strength", 0.1, 0, 1, 0.1);
thresh = target + vslider("[unit:dB]tar-thr",-12,-12,6,1);
threshLim = +3; //vslider("threshLim",3,-12,3,1);
att = 0.4; //vslider("att",0.4,0.001,1,0.001);
rel = 0.8; //vslider("rel",0.8,0.01,1,0.001);
knee = 12; //vslider("knee",12,0,12,1);
link = 0.5; //vslider("link", 0.5, 0, 1, 0.1);
meter = _<: _,(ba.linear2db : ma.neg : vbargraph("[unit:dB]",0,3)) : attach;
meterLim = _<: _,(ba.linear2db : ma.neg : vbargraph("[unit:dB]",0,3)) : attach;
// stereo to m/s encoder
ms_enc = _*0.5,_*0.5 <: +, -;
// m/s to stereo decoder
ms_dec = _,_ <: +, -;
//post_gain
post_gain = par(i,2,_ * g) with {
g = vslider("post gain[unit:dB]", 0,-10,+10,0.5) : ba.db2linear;
};
};
// LIMITER
limiter = limiter_lad_N(2,limiter_lad_lookahead, init_limiter_lad_ceil : ba.db2linear, limiter_lad_attack, limiter_lad_hold, limiter_lad_release) : post_gain with{
N=2;
limiter_lad_lookahead = 0;
limiter_lad_attack = 0.001;
limiter_lad_hold = 0.05;
limiter_lad_release = 0.2;
// lookahead limiter (N-channel)
limiter_lad_N(N, LD, ceiling, attack, hold, release) =
si.bus(N) <: par(i, N, @ (LD * ma.SR)),
(scaling <: si.bus(N)) : ro.interleave(N, 2) : par(i, N, *)
with {
scaling = ceiling / max(amp_profile, ma.EPSILON) : min(1) : meter_limiter_lad_N;
amp_profile = par(i, N, abs) : maxN(N) : ba.peakholder(hold * ma.SR) : att_smooth(attack) : rel_smooth(release);
att_smooth(time, in) = si.smooth(ba.tau2pole(time), in);
rel_smooth(time, in) = an.peak_envelope(time, in);
maxN(1) = _;
maxN(2) = max;
maxN(N) = max(maxN(N - 1));
};
// post_gain
post_gain = par(i,Nch,_ * g) with {
g = vslider("[9]post gain[unit:dB]", init_limiter_postgain,-10,+10,0.5) : ba.db2linear;
};
// metering
//meter_limiter_lad_N = _ <: attach(ba.linear2db : vbargraph("[8][unit:dB]GR",-12,0));
meter_limiter_lad_N = _ <: attach(ba.linear2db : abs : vbargraph("[8][unit:dB]GR",0,12));
};
// BRICKWALL
brickwall = limiter_lad_N(N, limiter_lad_lookahead, limiter_lad_ceil, limiter_lad_attack, limiter_lad_hold, limiter_lad_release)
with{
N=2;
twopi = 2 * ma.PI;
limiter_lad_lookahead = 0.01;
limiter_lad_ceil = init_brickwall_ceiling : ba.db2linear;
limiter_lad_attack = .01 / twopi;
limiter_lad_hold = .1;
limiter_lad_release = 1 / twopi;
// lookahead limiter (N-channel)
limiter_lad_N(N, LD, ceiling, attack, hold, release) =
si.bus(N) <: par(i, N, @ (LD * ma.SR)),
(scaling <: si.bus(N)) : ro.interleave(N, 2) : par(i, N, *)
with {
scaling = ceiling / max(amp_profile, ma.EPSILON) : min(1) : meter_limiter_lad_N;
amp_profile = par(i, N, abs) : maxN(N) : ba.peakholder(hold * ma.SR) : att_smooth(attack) : rel_smooth(release);
att_smooth(time, in) = si.smooth(ba.tau2pole(time), in);
rel_smooth(time, in) = an.peak_envelope(time, in);
maxN(1) = _;
maxN(2) = max;
maxN(N) = max(maxN(N - 1));
};
// metering
meter_limiter_lad_N = _ <: attach(ba.linear2db : abs : vbargraph("[8][unit:dB]GR",0,12));
};
// METERING
peak_meter(N) = par(i, N, (_ <: attach(_, envelop : vbargraph("[unit:dB]CH%i", -70, 0)))) with{
vmeter(x) = attach(x, envelop(x) : vbargraph("[unit:dB]", -70, 0));
envelop = abs : max(ba.db2linear(-70)) : ba.linear2db : min(10) : max ~ -(40.0/ma.SR);
};
// +++++++++++++++++++++++++ LUFS METER +++++++++++++++++++++++++
Tg = 3; // 3 second window for 'short-term' measurement
zi = an.ms_envelope_rect(Tg); // mean square: average power = energy/Tg = integral of squared signal / Tg
kfilter = fi.highpass(1, 60) : fi.high_shelf(4, 1800);
// 2-channel
lk2 = par(i,2,kfilter : zi) :> 10 * log10(max(ma.EPSILON)) : -(0.691);
//envelope via lp by Dario Sanphilippo
lp1p(cf, x) = fi.pole(b, x * (1 - b)) with {
b = exp(-2 * ma.PI * cf / ma.SR);
};
// zi_lp(x) = lp1p(1 / Tg, x * x);
// one channel
Lk = kfilter : zi : 10 * log10(max(ma.EPSILON)) : -(0.691);
// N-channel
LkN = par(i,Nch, kfilter : zi) :> 10 * log10(max(ma.EPSILON)) : -(0.691);
// N-channel by Yann Orlarey
lufs_any(N) = B <: B, (B : par(i,N,kfilter:zi) :> 10 * log10(max(ma.EPSILON)) : -(0.691) : vbargraph("[unit:dB]LUFS",-70,0)) : si.bus(N-1), attach(_,_)
with {
B = si.bus(N);
};
// correlation meter
correlate_meter(x,y) = x,y <: x , attach(y, (corr(t) : vbargraph("correlation",-1,1))) : _,_ with {
t = .2; // averaging period in seconds
avg(t, x) = fi.pole(p, (1 - p) * x) // 1-pole lowpass as average
with {
p = exp((((-2.0 * ma.PI) / t) / ma.SR));
};
var(t, x) = avg(t, (x - avg(t, x)) ^ 2); // variance
sd(t, x) = sqrt(var(t, x)); // standard deviation
cov(t, x1, x2) = avg(t, (x1 - avg(t, x1)) * (x2 - avg(t, x2))); // covariance
corr(t, x1, x2) = cov(t, x1, x2) / max(ma.EPSILON, (sd(t, x1) * sd(t, x2))); // correlation
};
// stereo correction based on correlation
correlate_correct(l,r) = out_pos1, out_neg1, out_0, out_pos, out_neg :> _,_ with {
t = .2; // averaging period in seconds
avg(t, x) = fi.pole(p, (1 - p) * x) // 1-pole lowpass as average
with {
p = exp((((-2.0 * ma.PI) / t) / ma.SR));
};
var(t, x) = avg(t, (x - avg(t, x)) ^ 2); // variance
sd(t, x) = sqrt(var(t, x)); // standard deviation
cov(t, x1, x2) = avg(t, (x1 - avg(t, x1)) * (x2 - avg(t, x2))); // covariance
corr(t, x1, x2) = cov(t, x1, x2) / max(ma.EPSILON, (sd(t, x1) * sd(t, x2))); // correlation
th =.0001;
corr_pos1 = avg(t, (corr(t,l,r) > (1-th))) : smoothing /*: vbargraph("[5]1",0,1)*/;
corr_neg1 = avg(t, corr(t,l,r) < (-1+th)) : smoothing /*: vbargraph("[9]-1",0,1)*/;
corr_0 = avg(t, ((corr(t,l,r) < th) & (corr(t,l,r) > (0-th)))) : smoothing /*: vbargraph("[7]0",0,1)*/;
corr_pos = avg(t, ((corr(t,l,r) > (0+th)) & (corr(t,l,r) < (1-th)))) : smoothing /*: vbargraph("[6]>0,<1",0,1)*/;
corr_neg = avg(t, ((corr(t,l,r) > (-1+th)) & (corr(t,l,r) < (0-th)))) : smoothing /*: vbargraph("[8]>-1,<0",0,1)*/;
smoothing = lp1p(2) ;
out_pos1 = ((l * corr_pos1 + r * corr_pos1) /2) , ((l * corr_pos1 + r * corr_pos1) /2);
out_neg1 = ((l * corr_neg1 + (-r) * corr_neg1) /2) , ((l * corr_neg1 + (-r) * corr_neg1) /2);
out_0 = (l * corr_0 + r * corr_0) , (l * corr_0 + r * corr_0);
out_pos = l * corr_pos , r * corr_pos;
out_neg = l * corr_neg , r * corr_neg; // old: out_neg = l * corr_neg , (0-(r * corr_neg));
};
// stereo correction bypass checkbox
correlate_correct_bp = ba.bypass2(checkbox("bypass"), correlate_correct);
| https://raw.githubusercontent.com/trummerschlunk/master_me_legcy/da31e049aef0de7a8909c906b58009cce6675938/soundsgood09.dsp | faust | double precision -double needed!
init values
number of channels
not used in voc version
not used in voc version
main
ba.bypass2(checkbox("bypass all"),
hgroup("MASTER_ME", hgroup("[0]INPUT",peak_meter(Nch))) :
hgroup("MASTER_ME", hgroup("[0]INPUT",lufs_any(Nch))) :
hgroup("MASTER_ME", hgroup("[1]STEREO CORRECT",correlate_meter)) :
hgroup("[1]STEREO CORRECT",correlate_correct_bp) :
hgroup("MASTER_ME", vgroup("[3]MULTIBAND COMPRESSOR", mbcomp(Nch))) :
end vgroup row1
hgroup("[3]5-BAND COMPRESSOR", comp5st) :
hgroup("[3]MULTIBAND MID-SIDE COMPRESSOR", mbmscomp(Nch)) :
hgroup("MASTER_ME", hgroup("[9]OUTPUT",peak_meter(Nch))) :
end vgroup row2
) // hgroup MASTER_Me end
) // bypass end
DC FILTER
NOISE GATE
reset hold when raw gate falls
LEVELER
target = vslider("[3]target[unit:dB]", init_leveler_target,-50,0,1);
from library:
reset hold when raw gate falls
10BAND MID-SIDE COMPRESSOR
threshold offset (high freq to low freq)
stereo to m/s encoder
m/s to stereo decoder
stereo compressor
post_gain
KNEE COMPRESSOR
vslider("strength", 0.1, 0, 1, 0.1);
vslider("threshLim",3,-12,3,1);
vslider("att",0.4,0.001,1,0.001);
vslider("rel",0.8,0.01,1,0.001);
vslider("knee",12,0,12,1);
vslider("link", 0.5, 0, 1, 0.1);
stereo to m/s encoder
m/s to stereo decoder
post_gain
LIMITER
lookahead limiter (N-channel)
post_gain
metering
meter_limiter_lad_N = _ <: attach(ba.linear2db : vbargraph("[8][unit:dB]GR",-12,0));
BRICKWALL
lookahead limiter (N-channel)
metering
METERING
+++++++++++++++++++++++++ LUFS METER +++++++++++++++++++++++++
3 second window for 'short-term' measurement
mean square: average power = energy/Tg = integral of squared signal / Tg
2-channel
envelope via lp by Dario Sanphilippo
zi_lp(x) = lp1p(1 / Tg, x * x);
one channel
N-channel
N-channel by Yann Orlarey
correlation meter
averaging period in seconds
1-pole lowpass as average
variance
standard deviation
covariance
correlation
stereo correction based on correlation
averaging period in seconds
1-pole lowpass as average
variance
standard deviation
covariance
correlation
: vbargraph("[5]1",0,1)
: vbargraph("[9]-1",0,1)
: vbargraph("[7]0",0,1)
: vbargraph("[6]>0,<1",0,1)
: vbargraph("[8]>-1,<0",0,1)
old: out_neg = l * corr_neg , (0-(r * corr_neg));
stereo correction bypass checkbox |
import("stdfaust.lib");
init_leveler_target = -18;
init_leveler_maxboost = 40;
init_leveler_maxcut = 40;
init_leveler_gatethreshold = -45;
init_leveler_speed = .03;
init_comp_thresh = -22;
init_comp_thresh_tilt = -4;
init_comp_makeup = 0;
init_limiter_lad_ceil = -5;
init_limiter_postgain = 0;
init_brickwall_ceiling = -3;
target = hslider("../../[1]TARGET[unit:dB]", init_leveler_target,-50,0,1);
process =
hgroup("row1",
si.bus(2) :
dc_filter(2) :
hgroup("[2]NOISEGATE",noisegate(2)):
hgroup("[3]LEVELER",leveler(target))
hgroup("row2",hgroup("[3]MSCOMP10", mscomp10(target)) ) :
hgroup("row3",
hgroup("[4]KNEECOMP",kneecomp(target)) :
hgroup("[7]LIMITER", limiter) :
hgroup("[8]BRICKWALL",brickwall) :
hgroup("[9]OUTPUT",lufs_any(Nch)) :
si.bus(2)
;
dc_filter(N) = par(i,N,fi.dcblocker);
noisegate(N) = gate_any(N,noisegate_thresh,noisegate_attack,noisegate_hold,noisegate_release) with {
noisegate_thresh = vslider("[0]threshold",init_noisegate_threshold, -95, 0, 1);
noisegate_attack = 0.01;
noisegate_hold = 1;
noisegate_release = 2;
gate_any(N,thresh,att,hold,rel) = B <: B, (B :> ggm : vbargraph("[2]gate level",0,1) <: B) : ro.interleave(N,2) : par(i,N,*)
with {
B = si.bus(N);
ggm = gate_gain_mono(thresh,att,hold,rel);
};
gate_gain_mono(thresh,att,hold,rel,x) = x : extendedrawgate : an.amp_follower_ar(att,rel) with {
extendedrawgate(x) = max(float(rawgatesig(x)),holdsig(x));
rawgatesig(x) = inlevel(x) > ba.db2linear(thresh);
minrate = min(att,rel);
inlevel = an.amp_follower_ar(minrate,minrate);
holdcounter(x) = (max(holdreset(x) * holdsamps,_) ~-(1));
holdsig(x) = holdcounter(x) > 0;
holdsamps = int(hold*ma.SR);
};
};
leveler(target) = B <: B , (B <: B,B : LkN, + : calc : _ <: B) : ro.interleave(N,2) : par(i,N,*)
with {
N = 2;
B = si.bus(N);
calc(lufs,sc) = (lufs : vbargraph("[1][unit:dB]LUFS",-70,0) : (target - _) : lp1p(leveler_speed_gated(sc)) : limit(limit_neg,limit_pos) : vbargraph("[2]gain",-50,50) : ba.db2linear) , sc : _,!;
limit_pos = vslider("[5]max +", init_leveler_maxboost, 0, 60, 1);
limit_neg = vslider("[6]max -", init_leveler_maxcut, 0, 60, 1) : ma.neg;
limit(lo,hi) = min(hi) : max(lo);
leveler_speed = vslider("[4]speed", init_leveler_speed, .005, 0.15, .005);
leveler_speed_gated(sc) = (gate_gain_mono(leveler_gate_thresh,0.1,0,0.1,abs(sc)) <: attach(_, (1-_) : vbargraph("[7]leveler gate",0,1))) : _ * leveler_speed;
leveler_gate_thresh = vslider("[8]lev gate thresh[unit:dB]", init_leveler_gatethreshold,-90,0,1);
gate_gain_mono(thresh,att,hold,rel,x) = x : extendedrawgate : an.amp_follower_ar(att,rel) with {
extendedrawgate(x) = max(float(rawgatesig(x)),holdsig(x));
rawgatesig(x) = inlevel(x) > ba.db2linear(thresh);
minrate = min(att,rel);
inlevel = an.amp_follower_ar(minrate,minrate);
holdcounter(x) = (max(holdreset(x) * holdsamps,_) ~-(1));
holdsig(x) = holdcounter(x) > 0;
holdsamps = int(hold*ma.SR);
};
};
mscomp10(target) = _,_ : ms_enc : par(i,2,fibank_mono) : ro.interleave(N,2) : par(i,N,compst(rdtable(thresh_offset,i))) : par(i,N,ms_dec) :> _,_ : post_gain with{
thresh_offset = waveform{-25,-17,-14,-13,-11,-10,-8,0,0,-6};
M = 1;
ftop = 10000;
N = 10 * M;
fibank_mono = fi.mth_octave_filterbank_default(M,ftop,N);
ms_enc = _*0.5,_*0.5 <: +, -;
ms_dec = _,_ <: +, -;
compst(thr_os) = co.FBcompressor_N_chan(strength,thresh+thr_os,att,rel,knee,prePost,link,meter,2) with {
strength = 0.1;
thresh = target + vslider("[unit:dB]tar-thr",-2,-10,10,1);
att = 0.015;
rel = 0.6;
knee = 12;
prePost = 1;
link = 0.5;
meter = _ <: (_, (ba.linear2db : ma.neg : vbargraph("[unit:dB]",0,3))) : attach;
};
post_gain = par(i,2,_ * g) with {
g = vslider("post gain[unit:dB]", 0,-10,+10,0.5) : ba.db2linear;
};
};
kneecomp(target) = ms_enc : co.RMS_FBcompressor_peak_limiter_N_chan(strength,thresh,threshLim,att,rel,knee,link,meter,meterLim,2) : ms_dec : post_gain with {
thresh = target + vslider("[unit:dB]tar-thr",-12,-12,6,1);
meter = _<: _,(ba.linear2db : ma.neg : vbargraph("[unit:dB]",0,3)) : attach;
meterLim = _<: _,(ba.linear2db : ma.neg : vbargraph("[unit:dB]",0,3)) : attach;
ms_enc = _*0.5,_*0.5 <: +, -;
ms_dec = _,_ <: +, -;
post_gain = par(i,2,_ * g) with {
g = vslider("post gain[unit:dB]", 0,-10,+10,0.5) : ba.db2linear;
};
};
limiter = limiter_lad_N(2,limiter_lad_lookahead, init_limiter_lad_ceil : ba.db2linear, limiter_lad_attack, limiter_lad_hold, limiter_lad_release) : post_gain with{
N=2;
limiter_lad_lookahead = 0;
limiter_lad_attack = 0.001;
limiter_lad_hold = 0.05;
limiter_lad_release = 0.2;
limiter_lad_N(N, LD, ceiling, attack, hold, release) =
si.bus(N) <: par(i, N, @ (LD * ma.SR)),
(scaling <: si.bus(N)) : ro.interleave(N, 2) : par(i, N, *)
with {
scaling = ceiling / max(amp_profile, ma.EPSILON) : min(1) : meter_limiter_lad_N;
amp_profile = par(i, N, abs) : maxN(N) : ba.peakholder(hold * ma.SR) : att_smooth(attack) : rel_smooth(release);
att_smooth(time, in) = si.smooth(ba.tau2pole(time), in);
rel_smooth(time, in) = an.peak_envelope(time, in);
maxN(1) = _;
maxN(2) = max;
maxN(N) = max(maxN(N - 1));
};
post_gain = par(i,Nch,_ * g) with {
g = vslider("[9]post gain[unit:dB]", init_limiter_postgain,-10,+10,0.5) : ba.db2linear;
};
meter_limiter_lad_N = _ <: attach(ba.linear2db : abs : vbargraph("[8][unit:dB]GR",0,12));
};
brickwall = limiter_lad_N(N, limiter_lad_lookahead, limiter_lad_ceil, limiter_lad_attack, limiter_lad_hold, limiter_lad_release)
with{
N=2;
twopi = 2 * ma.PI;
limiter_lad_lookahead = 0.01;
limiter_lad_ceil = init_brickwall_ceiling : ba.db2linear;
limiter_lad_attack = .01 / twopi;
limiter_lad_hold = .1;
limiter_lad_release = 1 / twopi;
limiter_lad_N(N, LD, ceiling, attack, hold, release) =
si.bus(N) <: par(i, N, @ (LD * ma.SR)),
(scaling <: si.bus(N)) : ro.interleave(N, 2) : par(i, N, *)
with {
scaling = ceiling / max(amp_profile, ma.EPSILON) : min(1) : meter_limiter_lad_N;
amp_profile = par(i, N, abs) : maxN(N) : ba.peakholder(hold * ma.SR) : att_smooth(attack) : rel_smooth(release);
att_smooth(time, in) = si.smooth(ba.tau2pole(time), in);
rel_smooth(time, in) = an.peak_envelope(time, in);
maxN(1) = _;
maxN(2) = max;
maxN(N) = max(maxN(N - 1));
};
meter_limiter_lad_N = _ <: attach(ba.linear2db : abs : vbargraph("[8][unit:dB]GR",0,12));
};
peak_meter(N) = par(i, N, (_ <: attach(_, envelop : vbargraph("[unit:dB]CH%i", -70, 0)))) with{
vmeter(x) = attach(x, envelop(x) : vbargraph("[unit:dB]", -70, 0));
envelop = abs : max(ba.db2linear(-70)) : ba.linear2db : min(10) : max ~ -(40.0/ma.SR);
};
kfilter = fi.highpass(1, 60) : fi.high_shelf(4, 1800);
lk2 = par(i,2,kfilter : zi) :> 10 * log10(max(ma.EPSILON)) : -(0.691);
lp1p(cf, x) = fi.pole(b, x * (1 - b)) with {
b = exp(-2 * ma.PI * cf / ma.SR);
};
Lk = kfilter : zi : 10 * log10(max(ma.EPSILON)) : -(0.691);
LkN = par(i,Nch, kfilter : zi) :> 10 * log10(max(ma.EPSILON)) : -(0.691);
lufs_any(N) = B <: B, (B : par(i,N,kfilter:zi) :> 10 * log10(max(ma.EPSILON)) : -(0.691) : vbargraph("[unit:dB]LUFS",-70,0)) : si.bus(N-1), attach(_,_)
with {
B = si.bus(N);
};
correlate_meter(x,y) = x,y <: x , attach(y, (corr(t) : vbargraph("correlation",-1,1))) : _,_ with {
with {
p = exp((((-2.0 * ma.PI) / t) / ma.SR));
};
};
correlate_correct(l,r) = out_pos1, out_neg1, out_0, out_pos, out_neg :> _,_ with {
with {
p = exp((((-2.0 * ma.PI) / t) / ma.SR));
};
th =.0001;
smoothing = lp1p(2) ;
out_pos1 = ((l * corr_pos1 + r * corr_pos1) /2) , ((l * corr_pos1 + r * corr_pos1) /2);
out_neg1 = ((l * corr_neg1 + (-r) * corr_neg1) /2) , ((l * corr_neg1 + (-r) * corr_neg1) /2);
out_0 = (l * corr_0 + r * corr_0) , (l * corr_0 + r * corr_0);
out_pos = l * corr_pos , r * corr_pos;
};
correlate_correct_bp = ba.bypass2(checkbox("bypass"), correlate_correct);
|
ce2947a8c7f3bcf0801a331a0541853a06b911526c96ba37ac8083a3e7cd132d | trummerschlunk/master_me_legcy | master_me_voc.dsp | /* automatic mastering processor for live streaming events.*/
/* originally developed for the ccrma 'Quarantine Sessions'*/
/*
* Copyright (C) 2021 Klaus Scheuermann, [email protected]
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
/* some building blocks where taken from or inspired by Dario Sanfilippo <sanfilippo.dario at gmail dot com>
* some building blocks by Stéphane Letz
* some building blocks by Julius Smith
* some building blocks by Yann Orlarey
* a lot of help came from the faust community, especially sletz, magnetophone, Dario Sanphilippo, Julius Smith, Juan Carlos Blancas, Yann Orlarey
*/
declare name "master_me_gui";
declare author "Klaus Scheuermann";
declare version "2.0";
declare copyright "(C) 2021 Klaus Scheuermann";
import("stdfaust.lib");
// init values
Nch = 2; //number of channels (must be 2 in voc version)
init_noisegate_threshold = -70; // not used in voc version
init_leveler_target = -18;
init_leveler_maxboost = 55;
init_leveler_maxcut = 55;
init_leveler_gatethreshold = -50;
init_leveler_speed = .095;
init_mbmscomp_thresh = -10; // not used in voc version
init_comp_thresh = -22;
init_comp_thresh_tilt = -4;
init_comp_xo1 = 150;
init_comp_xo2 = 500;
init_comp_xo3 = 2000;
init_comp_xo4 = 6000;
init_comp_makeup = 2;
init_limiter_lad_ceil = -5;
init_limiter_postgain = 2;
init_brickwall_ceiling = -3;
// main
process =
ba.bypass2(checkbox("bypass all"),
si.bus(Nch) :
hgroup("MASTER_ME", hgroup("[0]INPUT",peak_meter(Nch))) :
hgroup("MASTER_ME", hgroup("[1]STEREO CORRECT",correlate_meter)) :
hgroup("MASTER_ME", hgroup("[1]STEREO CORRECT",correlate_correct_bp)) :
// hgroup("MASTER_ME", hgroup("[0]INPUT",lufs_any(Nch))) :
dc_filter(Nch) :
// hgroup("MASTER_ME", hgroup("[1.5]NOISEGATE",noisegate(Nch))):
hgroup("MASTER_ME", hgroup("[2]LEVELER",leveler(Nch))) :
// hgroup("MASTER_ME", vgroup("[3]MULTIBAND MID-SIDE COMPRESSOR", mbmscomp(Nch))) :
// hgroup("MASTER_ME", vgroup("[3]MULTIBAND COMPRESSOR", mbcomp(Nch))) :
hgroup("MASTER_ME", hgroup("[3]5-BAND COMPRESSOR", comp5st)) :
hgroup("MASTER_ME", hgroup("[7]LIMITER", limiter(Nch))) :
hgroup("MASTER_ME", hgroup("[8]BRICKWALL",brickwall(Nch))) :
hgroup("MASTER_ME", hgroup("[9]OUTPUT",lufs_any(Nch))) :
hgroup("MASTER_ME", hgroup("[9]OUTPUT",peak_meter(Nch))) :
si.bus(Nch)
) // bypass end
;
// DC FILTER
dc_filter(N) = par(i,N,fi.dcblocker);
// NOISE GATE
noisegate(N) = gate_any(N,noisegate_thresh,noisegate_attack,noisegate_hold,noisegate_release) with {
noisegate_thresh = vslider("[0]threshold",init_noisegate_threshold, -95, 0, 1);
noisegate_attack = 0.01;
noisegate_hold = 1;
noisegate_release = 2;
gate_any(N,thresh,att,hold,rel) = B <: B, (B :> ggm : vbargraph("[2]gate level",0,1) <: B) : ro.interleave(N,2) : par(i,N,*)
with {
B = si.bus(N);
ggm = gate_gain_mono(thresh,att,hold,rel);
};
gate_gain_mono(thresh,att,hold,rel,x) = x : extendedrawgate : an.amp_follower_ar(att,rel) with {
extendedrawgate(x) = max(float(rawgatesig(x)),holdsig(x));
rawgatesig(x) = inlevel(x) > ba.db2linear(thresh);
minrate = min(att,rel);
inlevel = an.amp_follower_ar(minrate,minrate);
holdcounter(x) = (max(holdreset(x) * holdsamps,_) ~-(1));
holdsig(x) = holdcounter(x) > 0;
holdreset(x) = rawgatesig(x) < rawgatesig(x)'; // reset hold when raw gate falls
holdsamps = int(hold*ma.SR);
};
};
// LEVELER
leveler(N) = B <: B, (B :> _ <: _,_ : calc : _ <: B) : ro.interleave(N,2) : par(i,N,*)
with {
B = si.bus(N);
calc(mono,sc) = (mono : Lk : vbargraph("[1]in LUFS S",-40,0) : (target - _) : lp1p(leveler_speed_gated(sc)) : limit(limit_neg,limit_pos) : vbargraph("[2]gain",-50,50) : ba.db2linear) , sc : _,!;
target = vslider("[3]target LUFS[unit:dB]", init_leveler_target,-50,0,1);
limit_pos = vslider("[5]max boost", init_leveler_maxboost, 0, 60, 1);
limit_neg = vslider("[6]max cut", init_leveler_maxcut, 0, 60, 1) : ma.neg;
limit(lo,hi) = min(hi) : max(lo);
leveler_speed = vslider("[4]speed", init_leveler_speed, .005, 0.15, .005);
leveler_speed_gated(sc) = (gate_gain_mono(leveler_gate_thresh,0.1,0,0.1,abs(sc)) <: attach(_, (1-_) : vbargraph("[7]leveler gate",0,1))) : _ * leveler_speed;
leveler_gate_thresh = vslider("[8]lev gate thresh[unit:dB]", init_leveler_gatethreshold,-90,0,1);
// from library:
gate_gain_mono(thresh,att,hold,rel,x) = x : extendedrawgate : an.amp_follower_ar(att,rel) with {
extendedrawgate(x) = max(float(rawgatesig(x)),holdsig(x));
rawgatesig(x) = inlevel(x) > ba.db2linear(thresh);
minrate = min(att,rel);
inlevel = an.amp_follower_ar(minrate,minrate);
holdcounter(x) = (max(holdreset(x) * holdsamps,_) ~-(1));
holdsig(x) = holdcounter(x) > 0;
holdreset(x) = rawgatesig(x) < rawgatesig(x)'; // reset hold when raw gate falls
holdsamps = int(hold*ma.SR);
};
};
// MULTIBAND MS COMPRESSOR
mbmscomp(N) = par(i,N /2, ms_enc : split3) : comp_Nch(N) : par(i,N /2, join3 : ms_dec) : post_gain with{
// stereo to m/s encoder
ms_enc = _*0.5,_*0.5 <: +, -;
// m/s to stereo decoder
ms_dec = _,_ <: +, -;
// 3-band splitter stereo
split3 = _,_ : par(i,2,fi.filterbank(3, (xo1,xo2))) : _,_,_,_,_,_ with {
xo1 = 250;
xo2 = 2500;
};
// 3-band joiner stereo
join3 = (si.bus(3) :> _) , (si.bus(3) :> _);
// Nch FB compressor
comp_Nch(N) = co.FBcompressor_N_chan(0.6,init_mbmscomp_thresh,0.02,0.5,6,0,0.3,meter_comp,N *3);
meter_comp = _<:attach( ba.linear2db : hbargraph("[1][unit:db]", -6,0));
//post_gain
post_gain = par(i,N,_ * g) with {
g = hslider("[9]post gain[unit:dB]", 0,-10,+10,0.5) : ba.db2linear;
};
};
// MULTIBAND COMPRESSOR
mbcomp(N) = par(i,N /2, split3) : comp_Nch(N) : par(i,N /2, join3 ) : post_gain with{
// stereo to m/s encoder
ms_enc = _*0.5,_*0.5 <: +, -;
// m/s to stereo decoder
ms_dec = _,_ <: +, -;
// 3-band splitter stereo
split3 = _,_ : par(i,2,fi.filterbank(3, (xo1,xo2))) : _,_,_,_,_,_ with {
xo1 = 250;
xo2 = 2500;
};
// 3-band joiner stereo
join3 = (si.bus(3) :> _) , (si.bus(3) :> _);
// Nch FB compressor
comp_Nch(N) = co.FBcompressor_N_chan(0.6,init_mbmscomp_thresh,0.02,0.5,6,0,0.3,meter_comp,N *3);
meter_comp = _<:attach( ba.linear2db : hbargraph("[1][unit:db]", -6,0));
//post_gain
post_gain = par(i,N,_ * g) with {
g = hslider("[9]post gain[unit:dB]", 0,-10,+10,0.5) : ba.db2linear;
};
};
// 5 BAND STEREO COMPRESSOR
comp5st = _,_ : split5 : route(10,10, 1,1, 2,3, 3,5, 4,7, 5,9, 6,2, 7,4, 8,6, 9,8, 10,10) : comp_hi,comp_himid,comp_mid,comp_lomid,comp_lo :> _,_ : makeup(Nch) with {
split5 = _,_ : par(i,2,fi.filterbank(3, (xo1,xo2,xo3,xo4))) : si.bus(10) with {
xo1 = vslider("xo1",init_comp_xo1,50,350,1);
xo2 = vslider("xo2",init_comp_xo2,351,1000,1);
xo3 = vslider("xo3",init_comp_xo3,1001,4000,1);
xo4 = vslider("xo4",init_comp_xo4,4001,10000,1);
};
join4 = (si.bus(5) :> _) , (si.bus(5) :> _);
comp_strength = 0.6;
comp_att = 0.02;
comp_rel = 0.05;
comp_knee = 6;
comp_prepost = 0;
comp_thresh = vslider("[1]threshold (db)",init_comp_thresh,-60,0,1);
comp_thresh_tilt = vslider("[2]threshold tilt",init_comp_thresh_tilt,-6,6,0.5);
comp_lo = _,_ : co.FBcompressor_N_chan(comp_strength, comp_thresh - comp_thresh_tilt, comp_att, comp_rel, comp_knee, comp_prepost, 1, meter_comp,2) with {
meter_comp = _<:attach( ba.linear2db : abs : vbargraph("[4]GR lo[unit:db]", 0,12));
};
comp_lomid = _,_ : co.FBcompressor_N_chan(comp_strength, comp_thresh - comp_thresh_tilt / 2, comp_att, comp_rel, comp_knee, comp_prepost, 1, meter_comp,2) with {
meter_comp = _<:attach( ba.linear2db : abs : vbargraph("[5]GR lo-mid[unit:db]", 0,12));
};
comp_mid = _,_ : co.FBcompressor_N_chan(comp_strength, comp_thresh, comp_att, comp_rel, comp_knee, comp_prepost, 1, meter_comp,2) with {
meter_comp = _<:attach( ba.linear2db : abs : vbargraph("[6]GR mid[unit:db]", 0,12));
};
comp_himid = _,_ : co.FBcompressor_N_chan(comp_strength, comp_thresh + comp_thresh_tilt / 2, comp_att, comp_rel, comp_knee, comp_prepost, 1, meter_comp,2) with {
meter_comp = _<:attach( ba.linear2db : abs : vbargraph("[7]GR hi-mid[unit:db]", 0,12));
};
comp_hi = _,_ : co.FBcompressor_N_chan(comp_strength, comp_thresh + comp_thresh_tilt, comp_att, comp_rel, comp_knee, comp_prepost, 1, meter_comp,2) with {
meter_comp = _<:attach( ba.linear2db : abs : vbargraph("[8]GR hi[unit:db]", 0,12));
};
//post_gain
makeup(n) = par(i,n,_ * g) with {
g = vslider("[9]makeup[unit:dB]",init_comp_makeup,-10,+10,0.5) : ba.db2linear;
};
meter_comp = _<:attach( ba.linear2db : vbargraph("[1][unit:db]", -6,0));
};
// LIMITER
limiter(N) = limiter_lad_N(N,limiter_lad_lookahead, init_limiter_lad_ceil : ba.db2linear, limiter_lad_attack, limiter_lad_hold, limiter_lad_release) : post_gain with{
limiter_lad_lookahead = 0.01;
limiter_lad_attack = 0.01;
limiter_lad_hold = 0.05;
limiter_lad_release = 0.2;
// lookahead limiter (N-channel)
limiter_lad_N(N, LD, ceiling, attack, hold, release) =
si.bus(N) <: par(i, N, @ (LD * ma.SR)),
(scaling <: si.bus(N)) : ro.interleave(N, 2) : par(i, N, *)
with {
scaling = ceiling / max(amp_profile, ma.EPSILON) : min(1) : meter_limiter_lad_N;
amp_profile = par(i, N, abs) : maxN(N) : ba.peakholder(hold * ma.SR) : att_smooth(attack) : rel_smooth(release);
att_smooth(time, in) = si.smooth(ba.tau2pole(time), in);
rel_smooth(time, in) = an.peak_envelope(time, in);
maxN(1) = _;
maxN(2) = max;
maxN(N) = max(maxN(N - 1));
};
// post_gain
post_gain = par(i,Nch,_ * g) with {
g = vslider("[9]post gain[unit:dB]", init_limiter_postgain,-10,+10,0.5) : ba.db2linear;
};
// metering
//meter_limiter_lad_N = _ <: attach(ba.linear2db : vbargraph("[8][unit:dB]GR",-12,0));
meter_limiter_lad_N = _ <: attach(ba.linear2db : abs : vbargraph("[8][unit:dB]GR",0,12));
};
// BRICKWALL
brickwall(N) = limiter_lad_N(N, limiter_lad_lookahead, limiter_lad_ceil, limiter_lad_attack, limiter_lad_hold, limiter_lad_release)
with{
twopi = 2 * ma.PI;
limiter_lad_lookahead = 0.01;
limiter_lad_ceil = init_brickwall_ceiling : ba.db2linear;
limiter_lad_attack = .01 / twopi;
limiter_lad_hold = .1;
limiter_lad_release = 1 / twopi;
// lookahead limiter (N-channel)
limiter_lad_N(N, LD, ceiling, attack, hold, release) =
si.bus(N) <: par(i, N, @ (LD * ma.SR)),
(scaling <: si.bus(N)) : ro.interleave(N, 2) : par(i, N, *)
with {
scaling = ceiling / max(amp_profile, ma.EPSILON) : min(1) : meter_limiter_lad_N;
amp_profile = par(i, N, abs) : maxN(N) : ba.peakholder(hold * ma.SR) : att_smooth(attack) : rel_smooth(release);
att_smooth(time, in) = si.smooth(ba.tau2pole(time), in);
rel_smooth(time, in) = an.peak_envelope(time, in);
maxN(1) = _;
maxN(2) = max;
maxN(N) = max(maxN(N - 1));
};
// metering
meter_limiter_lad_N = _ <: attach(ba.linear2db : abs : vbargraph("[8][unit:dB]GR",0,12));
};
// METERING
peak_meter(N) = par(i, N, (_ <: attach(_, envelop : vbargraph("[unit:dB]CH %i", -70, 0)))) with{
vmeter(x) = attach(x, envelop(x) : vbargraph("[unit:dB]", -70, 0));
envelop = abs : max(ba.db2linear(-70)) : ba.linear2db : min(10) : max ~ -(40.0/ma.SR);
};
// LUFS metering (without channel weighting)
Tg = 3; // 3 second window for 'short-term' measurement
// zi = an.ms_envelope_rect(Tg); // mean square: average power = energy/Tg = integral of squared signal / Tg
//k-filter by Julius Smith
highpass = fi.highpass(2, 40);
boostDB = 4;
boostFreqHz = 1430; // a little too high - they should give us this!
highshelf = fi.high_shelf(boostDB, boostFreqHz); // Looks very close, but 1 kHz gain has to be nailed
kfilter = highshelf : highpass;
//envelope via lp by Dario Sanphilippo
lp1p(cf, x) = fi.pole(b, x * (1 - b)) with {
b = exp(-2 * ma.PI * cf / ma.SR);
};
zi_lp(x) = lp1p(1 / Tg, x * x);
// one channel
Lk = kfilter: zi_lp : 10 * log10(max(ma.EPSILON)) : -(0.691);
// N-channel
LkN = par(i,Nch,kfilter : zi_lp) :> 10 * log10(max(ma.EPSILON)) : -(0.691);
// N-channel by Yann Orlarey
lufs_any(N) = B <: B, (B :> Lk : vbargraph("LUFS S",-40,0)) : si.bus(N-1), attach(_,_)
with {
B = si.bus(N);
};
// correlation meter
correlate_meter(x,y) = x,y <: x , attach(y, (corr(t) : vbargraph("correlation",-1,1))) : _,_ with {
t = .2; // averaging period in seconds
avg(t, x) = fi.pole(p, (1 - p) * x) // 1-pole lowpass as average
with {
p = exp((((-2.0 * ma.PI) / t) / ma.SR));
};
var(t, x) = avg(t, (x - avg(t, x)) ^ 2); // variance
sd(t, x) = sqrt(var(t, x)); // standard deviation
cov(t, x1, x2) = avg(t, (x1 - avg(t, x1)) * (x2 - avg(t, x2))); // covariance
corr(t, x1, x2) = cov(t, x1, x2) / max(ma.EPSILON, (sd(t, x1) * sd(t, x2))); // correlation
};
// stereo correction based on correlation
correlate_correct(l,r) = out_pos1, out_neg1, out_0, out_pos, out_neg :> _,_ with {
t = .2; // averaging period in seconds
avg(t, x) = fi.pole(p, (1 - p) * x) // 1-pole lowpass as average
with {
p = exp((((-2.0 * ma.PI) / t) / ma.SR));
};
var(t, x) = avg(t, (x - avg(t, x)) ^ 2); // variance
sd(t, x) = sqrt(var(t, x)); // standard deviation
cov(t, x1, x2) = avg(t, (x1 - avg(t, x1)) * (x2 - avg(t, x2))); // covariance
corr(t, x1, x2) = cov(t, x1, x2) / max(ma.EPSILON, (sd(t, x1) * sd(t, x2))); // correlation
th =.0001;
corr_pos1 = avg(t, (corr(t,l,r) > (1-th))) : smoothing : vbargraph("[5]1",0,1);
corr_neg1 = avg(t, corr(t,l,r) < (-1+th)) : smoothing : vbargraph("[9]-1",0,1);
corr_0 = avg(t, ((corr(t,l,r) < th) & (corr(t,l,r) > (0-th)))) : smoothing: vbargraph("[7]0",0,1);
corr_pos = avg(t, ((corr(t,l,r) > (0+th)) & (corr(t,l,r) < (1-th)))) : smoothing: vbargraph("[6]>0,<1",0,1);
corr_neg = avg(t, ((corr(t,l,r) > (-1+th)) & (corr(t,l,r) < (0-th)))) : smoothing: vbargraph("[8]>-1,<0",0,1);
smoothing = lp1p(2) ;
corr_meter = vbargraph("[9]",0,1);
out_pos1 = ((l * corr_pos1 + r * corr_pos1) /2) , ((l * corr_pos1 + r * corr_pos1) /2);
out_neg1 = ((l * corr_neg1 + (-r) * corr_neg1) /2) , ((l * corr_neg1 + (-r) * corr_neg1) /2);
out_0 = (l * corr_0 + r * corr_0) , (l * corr_0 + r * corr_0);
out_pos = l * corr_pos , r * corr_pos;
out_neg = l * corr_neg , r * corr_neg; // old: out_neg = l * corr_neg , (0-(r * corr_neg));
};
// stereo correction bypass checkbox
correlate_correct_bp = ba.bypass2(checkbox("bypass"), correlate_correct); | https://raw.githubusercontent.com/trummerschlunk/master_me_legcy/928261035a002734d523718592481fcf4f4bd4d5/master_me_voc.dsp | faust | automatic mastering processor for live streaming events.
originally developed for the ccrma 'Quarantine Sessions'
* Copyright (C) 2021 Klaus Scheuermann, [email protected]
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
some building blocks where taken from or inspired by Dario Sanfilippo <sanfilippo.dario at gmail dot com>
* some building blocks by Stéphane Letz
* some building blocks by Julius Smith
* some building blocks by Yann Orlarey
* a lot of help came from the faust community, especially sletz, magnetophone, Dario Sanphilippo, Julius Smith, Juan Carlos Blancas, Yann Orlarey
init values
number of channels (must be 2 in voc version)
not used in voc version
not used in voc version
main
hgroup("MASTER_ME", hgroup("[0]INPUT",lufs_any(Nch))) :
hgroup("MASTER_ME", hgroup("[1.5]NOISEGATE",noisegate(Nch))):
hgroup("MASTER_ME", vgroup("[3]MULTIBAND MID-SIDE COMPRESSOR", mbmscomp(Nch))) :
hgroup("MASTER_ME", vgroup("[3]MULTIBAND COMPRESSOR", mbcomp(Nch))) :
bypass end
DC FILTER
NOISE GATE
reset hold when raw gate falls
LEVELER
from library:
reset hold when raw gate falls
MULTIBAND MS COMPRESSOR
stereo to m/s encoder
m/s to stereo decoder
3-band splitter stereo
3-band joiner stereo
Nch FB compressor
post_gain
MULTIBAND COMPRESSOR
stereo to m/s encoder
m/s to stereo decoder
3-band splitter stereo
3-band joiner stereo
Nch FB compressor
post_gain
5 BAND STEREO COMPRESSOR
post_gain
LIMITER
lookahead limiter (N-channel)
post_gain
metering
meter_limiter_lad_N = _ <: attach(ba.linear2db : vbargraph("[8][unit:dB]GR",-12,0));
BRICKWALL
lookahead limiter (N-channel)
metering
METERING
LUFS metering (without channel weighting)
3 second window for 'short-term' measurement
zi = an.ms_envelope_rect(Tg); // mean square: average power = energy/Tg = integral of squared signal / Tg
k-filter by Julius Smith
a little too high - they should give us this!
Looks very close, but 1 kHz gain has to be nailed
envelope via lp by Dario Sanphilippo
one channel
N-channel
N-channel by Yann Orlarey
correlation meter
averaging period in seconds
1-pole lowpass as average
variance
standard deviation
covariance
correlation
stereo correction based on correlation
averaging period in seconds
1-pole lowpass as average
variance
standard deviation
covariance
correlation
old: out_neg = l * corr_neg , (0-(r * corr_neg));
stereo correction bypass checkbox | declare name "master_me_gui";
declare author "Klaus Scheuermann";
declare version "2.0";
declare copyright "(C) 2021 Klaus Scheuermann";
import("stdfaust.lib");
init_leveler_target = -18;
init_leveler_maxboost = 55;
init_leveler_maxcut = 55;
init_leveler_gatethreshold = -50;
init_leveler_speed = .095;
init_comp_thresh = -22;
init_comp_thresh_tilt = -4;
init_comp_xo1 = 150;
init_comp_xo2 = 500;
init_comp_xo3 = 2000;
init_comp_xo4 = 6000;
init_comp_makeup = 2;
init_limiter_lad_ceil = -5;
init_limiter_postgain = 2;
init_brickwall_ceiling = -3;
process =
ba.bypass2(checkbox("bypass all"),
si.bus(Nch) :
hgroup("MASTER_ME", hgroup("[0]INPUT",peak_meter(Nch))) :
hgroup("MASTER_ME", hgroup("[1]STEREO CORRECT",correlate_meter)) :
hgroup("MASTER_ME", hgroup("[1]STEREO CORRECT",correlate_correct_bp)) :
dc_filter(Nch) :
hgroup("MASTER_ME", hgroup("[2]LEVELER",leveler(Nch))) :
hgroup("MASTER_ME", hgroup("[3]5-BAND COMPRESSOR", comp5st)) :
hgroup("MASTER_ME", hgroup("[7]LIMITER", limiter(Nch))) :
hgroup("MASTER_ME", hgroup("[8]BRICKWALL",brickwall(Nch))) :
hgroup("MASTER_ME", hgroup("[9]OUTPUT",lufs_any(Nch))) :
hgroup("MASTER_ME", hgroup("[9]OUTPUT",peak_meter(Nch))) :
si.bus(Nch)
;
dc_filter(N) = par(i,N,fi.dcblocker);
noisegate(N) = gate_any(N,noisegate_thresh,noisegate_attack,noisegate_hold,noisegate_release) with {
noisegate_thresh = vslider("[0]threshold",init_noisegate_threshold, -95, 0, 1);
noisegate_attack = 0.01;
noisegate_hold = 1;
noisegate_release = 2;
gate_any(N,thresh,att,hold,rel) = B <: B, (B :> ggm : vbargraph("[2]gate level",0,1) <: B) : ro.interleave(N,2) : par(i,N,*)
with {
B = si.bus(N);
ggm = gate_gain_mono(thresh,att,hold,rel);
};
gate_gain_mono(thresh,att,hold,rel,x) = x : extendedrawgate : an.amp_follower_ar(att,rel) with {
extendedrawgate(x) = max(float(rawgatesig(x)),holdsig(x));
rawgatesig(x) = inlevel(x) > ba.db2linear(thresh);
minrate = min(att,rel);
inlevel = an.amp_follower_ar(minrate,minrate);
holdcounter(x) = (max(holdreset(x) * holdsamps,_) ~-(1));
holdsig(x) = holdcounter(x) > 0;
holdsamps = int(hold*ma.SR);
};
};
leveler(N) = B <: B, (B :> _ <: _,_ : calc : _ <: B) : ro.interleave(N,2) : par(i,N,*)
with {
B = si.bus(N);
calc(mono,sc) = (mono : Lk : vbargraph("[1]in LUFS S",-40,0) : (target - _) : lp1p(leveler_speed_gated(sc)) : limit(limit_neg,limit_pos) : vbargraph("[2]gain",-50,50) : ba.db2linear) , sc : _,!;
target = vslider("[3]target LUFS[unit:dB]", init_leveler_target,-50,0,1);
limit_pos = vslider("[5]max boost", init_leveler_maxboost, 0, 60, 1);
limit_neg = vslider("[6]max cut", init_leveler_maxcut, 0, 60, 1) : ma.neg;
limit(lo,hi) = min(hi) : max(lo);
leveler_speed = vslider("[4]speed", init_leveler_speed, .005, 0.15, .005);
leveler_speed_gated(sc) = (gate_gain_mono(leveler_gate_thresh,0.1,0,0.1,abs(sc)) <: attach(_, (1-_) : vbargraph("[7]leveler gate",0,1))) : _ * leveler_speed;
leveler_gate_thresh = vslider("[8]lev gate thresh[unit:dB]", init_leveler_gatethreshold,-90,0,1);
gate_gain_mono(thresh,att,hold,rel,x) = x : extendedrawgate : an.amp_follower_ar(att,rel) with {
extendedrawgate(x) = max(float(rawgatesig(x)),holdsig(x));
rawgatesig(x) = inlevel(x) > ba.db2linear(thresh);
minrate = min(att,rel);
inlevel = an.amp_follower_ar(minrate,minrate);
holdcounter(x) = (max(holdreset(x) * holdsamps,_) ~-(1));
holdsig(x) = holdcounter(x) > 0;
holdsamps = int(hold*ma.SR);
};
};
mbmscomp(N) = par(i,N /2, ms_enc : split3) : comp_Nch(N) : par(i,N /2, join3 : ms_dec) : post_gain with{
ms_enc = _*0.5,_*0.5 <: +, -;
ms_dec = _,_ <: +, -;
split3 = _,_ : par(i,2,fi.filterbank(3, (xo1,xo2))) : _,_,_,_,_,_ with {
xo1 = 250;
xo2 = 2500;
};
join3 = (si.bus(3) :> _) , (si.bus(3) :> _);
comp_Nch(N) = co.FBcompressor_N_chan(0.6,init_mbmscomp_thresh,0.02,0.5,6,0,0.3,meter_comp,N *3);
meter_comp = _<:attach( ba.linear2db : hbargraph("[1][unit:db]", -6,0));
post_gain = par(i,N,_ * g) with {
g = hslider("[9]post gain[unit:dB]", 0,-10,+10,0.5) : ba.db2linear;
};
};
mbcomp(N) = par(i,N /2, split3) : comp_Nch(N) : par(i,N /2, join3 ) : post_gain with{
ms_enc = _*0.5,_*0.5 <: +, -;
ms_dec = _,_ <: +, -;
split3 = _,_ : par(i,2,fi.filterbank(3, (xo1,xo2))) : _,_,_,_,_,_ with {
xo1 = 250;
xo2 = 2500;
};
join3 = (si.bus(3) :> _) , (si.bus(3) :> _);
comp_Nch(N) = co.FBcompressor_N_chan(0.6,init_mbmscomp_thresh,0.02,0.5,6,0,0.3,meter_comp,N *3);
meter_comp = _<:attach( ba.linear2db : hbargraph("[1][unit:db]", -6,0));
post_gain = par(i,N,_ * g) with {
g = hslider("[9]post gain[unit:dB]", 0,-10,+10,0.5) : ba.db2linear;
};
};
comp5st = _,_ : split5 : route(10,10, 1,1, 2,3, 3,5, 4,7, 5,9, 6,2, 7,4, 8,6, 9,8, 10,10) : comp_hi,comp_himid,comp_mid,comp_lomid,comp_lo :> _,_ : makeup(Nch) with {
split5 = _,_ : par(i,2,fi.filterbank(3, (xo1,xo2,xo3,xo4))) : si.bus(10) with {
xo1 = vslider("xo1",init_comp_xo1,50,350,1);
xo2 = vslider("xo2",init_comp_xo2,351,1000,1);
xo3 = vslider("xo3",init_comp_xo3,1001,4000,1);
xo4 = vslider("xo4",init_comp_xo4,4001,10000,1);
};
join4 = (si.bus(5) :> _) , (si.bus(5) :> _);
comp_strength = 0.6;
comp_att = 0.02;
comp_rel = 0.05;
comp_knee = 6;
comp_prepost = 0;
comp_thresh = vslider("[1]threshold (db)",init_comp_thresh,-60,0,1);
comp_thresh_tilt = vslider("[2]threshold tilt",init_comp_thresh_tilt,-6,6,0.5);
comp_lo = _,_ : co.FBcompressor_N_chan(comp_strength, comp_thresh - comp_thresh_tilt, comp_att, comp_rel, comp_knee, comp_prepost, 1, meter_comp,2) with {
meter_comp = _<:attach( ba.linear2db : abs : vbargraph("[4]GR lo[unit:db]", 0,12));
};
comp_lomid = _,_ : co.FBcompressor_N_chan(comp_strength, comp_thresh - comp_thresh_tilt / 2, comp_att, comp_rel, comp_knee, comp_prepost, 1, meter_comp,2) with {
meter_comp = _<:attach( ba.linear2db : abs : vbargraph("[5]GR lo-mid[unit:db]", 0,12));
};
comp_mid = _,_ : co.FBcompressor_N_chan(comp_strength, comp_thresh, comp_att, comp_rel, comp_knee, comp_prepost, 1, meter_comp,2) with {
meter_comp = _<:attach( ba.linear2db : abs : vbargraph("[6]GR mid[unit:db]", 0,12));
};
comp_himid = _,_ : co.FBcompressor_N_chan(comp_strength, comp_thresh + comp_thresh_tilt / 2, comp_att, comp_rel, comp_knee, comp_prepost, 1, meter_comp,2) with {
meter_comp = _<:attach( ba.linear2db : abs : vbargraph("[7]GR hi-mid[unit:db]", 0,12));
};
comp_hi = _,_ : co.FBcompressor_N_chan(comp_strength, comp_thresh + comp_thresh_tilt, comp_att, comp_rel, comp_knee, comp_prepost, 1, meter_comp,2) with {
meter_comp = _<:attach( ba.linear2db : abs : vbargraph("[8]GR hi[unit:db]", 0,12));
};
makeup(n) = par(i,n,_ * g) with {
g = vslider("[9]makeup[unit:dB]",init_comp_makeup,-10,+10,0.5) : ba.db2linear;
};
meter_comp = _<:attach( ba.linear2db : vbargraph("[1][unit:db]", -6,0));
};
limiter(N) = limiter_lad_N(N,limiter_lad_lookahead, init_limiter_lad_ceil : ba.db2linear, limiter_lad_attack, limiter_lad_hold, limiter_lad_release) : post_gain with{
limiter_lad_lookahead = 0.01;
limiter_lad_attack = 0.01;
limiter_lad_hold = 0.05;
limiter_lad_release = 0.2;
limiter_lad_N(N, LD, ceiling, attack, hold, release) =
si.bus(N) <: par(i, N, @ (LD * ma.SR)),
(scaling <: si.bus(N)) : ro.interleave(N, 2) : par(i, N, *)
with {
scaling = ceiling / max(amp_profile, ma.EPSILON) : min(1) : meter_limiter_lad_N;
amp_profile = par(i, N, abs) : maxN(N) : ba.peakholder(hold * ma.SR) : att_smooth(attack) : rel_smooth(release);
att_smooth(time, in) = si.smooth(ba.tau2pole(time), in);
rel_smooth(time, in) = an.peak_envelope(time, in);
maxN(1) = _;
maxN(2) = max;
maxN(N) = max(maxN(N - 1));
};
post_gain = par(i,Nch,_ * g) with {
g = vslider("[9]post gain[unit:dB]", init_limiter_postgain,-10,+10,0.5) : ba.db2linear;
};
meter_limiter_lad_N = _ <: attach(ba.linear2db : abs : vbargraph("[8][unit:dB]GR",0,12));
};
brickwall(N) = limiter_lad_N(N, limiter_lad_lookahead, limiter_lad_ceil, limiter_lad_attack, limiter_lad_hold, limiter_lad_release)
with{
twopi = 2 * ma.PI;
limiter_lad_lookahead = 0.01;
limiter_lad_ceil = init_brickwall_ceiling : ba.db2linear;
limiter_lad_attack = .01 / twopi;
limiter_lad_hold = .1;
limiter_lad_release = 1 / twopi;
limiter_lad_N(N, LD, ceiling, attack, hold, release) =
si.bus(N) <: par(i, N, @ (LD * ma.SR)),
(scaling <: si.bus(N)) : ro.interleave(N, 2) : par(i, N, *)
with {
scaling = ceiling / max(amp_profile, ma.EPSILON) : min(1) : meter_limiter_lad_N;
amp_profile = par(i, N, abs) : maxN(N) : ba.peakholder(hold * ma.SR) : att_smooth(attack) : rel_smooth(release);
att_smooth(time, in) = si.smooth(ba.tau2pole(time), in);
rel_smooth(time, in) = an.peak_envelope(time, in);
maxN(1) = _;
maxN(2) = max;
maxN(N) = max(maxN(N - 1));
};
meter_limiter_lad_N = _ <: attach(ba.linear2db : abs : vbargraph("[8][unit:dB]GR",0,12));
};
peak_meter(N) = par(i, N, (_ <: attach(_, envelop : vbargraph("[unit:dB]CH %i", -70, 0)))) with{
vmeter(x) = attach(x, envelop(x) : vbargraph("[unit:dB]", -70, 0));
envelop = abs : max(ba.db2linear(-70)) : ba.linear2db : min(10) : max ~ -(40.0/ma.SR);
};
highpass = fi.highpass(2, 40);
boostDB = 4;
kfilter = highshelf : highpass;
lp1p(cf, x) = fi.pole(b, x * (1 - b)) with {
b = exp(-2 * ma.PI * cf / ma.SR);
};
zi_lp(x) = lp1p(1 / Tg, x * x);
Lk = kfilter: zi_lp : 10 * log10(max(ma.EPSILON)) : -(0.691);
LkN = par(i,Nch,kfilter : zi_lp) :> 10 * log10(max(ma.EPSILON)) : -(0.691);
lufs_any(N) = B <: B, (B :> Lk : vbargraph("LUFS S",-40,0)) : si.bus(N-1), attach(_,_)
with {
B = si.bus(N);
};
correlate_meter(x,y) = x,y <: x , attach(y, (corr(t) : vbargraph("correlation",-1,1))) : _,_ with {
with {
p = exp((((-2.0 * ma.PI) / t) / ma.SR));
};
};
correlate_correct(l,r) = out_pos1, out_neg1, out_0, out_pos, out_neg :> _,_ with {
with {
p = exp((((-2.0 * ma.PI) / t) / ma.SR));
};
th =.0001;
corr_pos1 = avg(t, (corr(t,l,r) > (1-th))) : smoothing : vbargraph("[5]1",0,1);
corr_neg1 = avg(t, corr(t,l,r) < (-1+th)) : smoothing : vbargraph("[9]-1",0,1);
corr_0 = avg(t, ((corr(t,l,r) < th) & (corr(t,l,r) > (0-th)))) : smoothing: vbargraph("[7]0",0,1);
corr_pos = avg(t, ((corr(t,l,r) > (0+th)) & (corr(t,l,r) < (1-th)))) : smoothing: vbargraph("[6]>0,<1",0,1);
corr_neg = avg(t, ((corr(t,l,r) > (-1+th)) & (corr(t,l,r) < (0-th)))) : smoothing: vbargraph("[8]>-1,<0",0,1);
smoothing = lp1p(2) ;
corr_meter = vbargraph("[9]",0,1);
out_pos1 = ((l * corr_pos1 + r * corr_pos1) /2) , ((l * corr_pos1 + r * corr_pos1) /2);
out_neg1 = ((l * corr_neg1 + (-r) * corr_neg1) /2) , ((l * corr_neg1 + (-r) * corr_neg1) /2);
out_0 = (l * corr_0 + r * corr_0) , (l * corr_0 + r * corr_0);
out_pos = l * corr_pos , r * corr_pos;
};
correlate_correct_bp = ba.bypass2(checkbox("bypass"), correlate_correct); |
3235213193bcbd76a3706957e4ce10e8afd786e891307176d79973c490db3b40 | trummerschlunk/master_me | master_me.dsp | // -*-Faust-*-
declare name "master_me";
declare version "1.0";
declare author "Klaus Scheuermann";
declare license "GPLv3";
// double precision -double needed!
ebu = library("lib/ebur128.dsp");
ex = library("expanders.lib");
import("stdfaust.lib");
// init values
Nch = 2; //number of channels
Nba = 8; //number of bands of the multiband compressor
init_noisegate_threshold = -70; // not used in voc version
init_leveler_target = -18;
init_leveler_maxboost = 20;
init_leveler_maxcut = 20;
init_leveler_brake_threshold = -14;
init_leveler_speed = 20;
init_kneecomp_thresh = -6;
init_kneecomp_postgain = 0;
init_limiter_lad_ceil = -2;
init_limiter_postgain = 0;
init_brickwall_ceiling = -1;
init_brickwall_release = 75;
target = vslider("v:master_me/h:easy/[3]Target[unit:dB][symbol:target][integer]", init_leveler_target,-50,-2,1);
// main
process =
bp2(checkbox("[symbol:global_bypass]global bypass"),(
in_gain
: peakmeter_in
: lufs_meter_in
: dc_blocker_bp
: (phase_invert_L , phase_invert_R)
: mono_bp
//: correlate_meter
: correlate_correct_bp
: gate_bp
: eq_bp
: (
leveler_sc(target)
: ( sc_compressor
: mscomp_bp
: limiter_rms_bp
: brickwall_no_latency_bp
)~(si.bus(2))
)~(si.bus(2))
))
: lufs_meter_out
: peakmeter_out
;
// stereo bypass with si.smoo fading
bp2(sw,pr) = _,_ <: _,_,pr : (_*sm,_*sm),(_*(1-sm),_*(1-sm)) :> _,_ with {
sm = sw : si.smoo;
};
// DC FILTER
dc_blocker_bp = bp2(sw,dc_blocker(2)) with {
sw = 1 - checkbox("v:master_me/t:expert/h:[1]pre-processing/[5][symbol:dc_blocker]dc blocker");
};
dc_blocker(N) = par(i,N,fi.dcblockerat(dc_filter_freq))
with {
dc_filter_freq = 10.0;
};
// phase switches
phase_invert_L = _ <: _,_ : (_ : *(-1)),_ : _*sw,_*(1-sw) :> _ with{
sw = checkbox("v:master_me/t:expert/h:[1]pre-processing/[2][symbol:phase_l]phase L");
};
phase_invert_R = _ <: _,_ : (_ : *(-1)),_ : _*sw,_*(1-sw) :> _ with{
sw = checkbox("v:master_me/t:expert/h:[1]pre-processing/[3][symbol:phase_r]phase R");
};
// Mono Switch
mono_bp = bp2(1 - checkbox("v:master_me/t:expert/h:[1]pre-processing/[4][symbol:mono]mono"),mono);
mono = _*0.5,_*0.5 <: +, +;
// input gain
in_gain = par(i,2,(_*g)) with{
g = vslider("v:master_me/t:expert/h:[1]pre-processing/[1][symbol:in_gain][unit:dB]input gain",0,-100,24,1) : ba.db2linear :si.smoo;
};
// stereo to m/s encoder
ms_enc = _*0.5,_*0.5 <: +, -;
// m/s to stereo decoder
ms_dec = _,_ <: +, -;
// peak meters
peakmeter_in = in_meter_l,in_meter_r with {
envelop = abs : max(ba.db2linear(-70)) : ba.linear2db : min(10) : max ~ -(80.0/ma.SR);
in_meter_l(x) = attach(x, envelop(x) : vbargraph("v:master_me/h:easy/[0][symbol:peakmeter_in_l]in L[unit:dB]", -70, 0));
in_meter_r(x) = attach(x, envelop(x) : vbargraph("v:master_me/h:easy/[1][symbol:peakmeter_in_r]in R[unit:dB]", -70, 0));
};
peakmeter_out = out_meter_l,out_meter_r with {
envelop = abs : max(ba.db2linear(-70)) : ba.linear2db : min(10) : max ~ -(80.0/ma.SR);
out_meter_l(x) = attach(x, envelop(x) : vbargraph("v:master_me/h:easy/[8][symbol:peakmeter_out_l]out L[unit:dB]", -70, 0));
out_meter_r(x) = attach(x, envelop(x) : vbargraph("v:master_me/h:easy/[9][symbol:peakmeter_out_r]out R[unit:dB]", -70, 0));
};
// GATE
gate_bp = bp2(checkbox("v:master_me/t:expert/h:[2]gate/[1][symbol:gate_bypass]gate bypass"),gate);
gate(x,y) = attach(x,gateview(abs(x)+abs(y))),y : ef.gate_stereo(gate_thresh,gate_att,gate_hold,gate_rel) with{
gate_thresh = vslider("v:master_me/t:expert/h:[2]gate/[2][symbol:gate_threshold][unit:dB]gate threshold",-90,-90,0,1);
gate_att = vslider("v:master_me/t:expert/h:[2]gate/[3][symbol:gate_attack][unit:ms]gate attack",0,0,100,1) *0.001;
gate_hold = vslider("v:master_me/t:expert/h:[2]gate/[4][symbol:gate_hold][unit:ms]gate hold",50,0,500,1) *0.001;
gate_rel = vslider("v:master_me/t:expert/h:[2]gate/[5][symbol:gate_release][unit:ms]gate release",500,50,5000,1) *0.001;
gateview = ef.gate_gain_mono(gate_thresh,gate_att,gate_hold,gate_rel) : ba.linear2db : max(-70) :
vbargraph("v:master_me/t:expert/h:[2]gate/[6][symbol:gate_meter][unit:dB]gate meter", -70,0);
};
// correlation meter
correlate_meter(x,y) = x,y <: x , attach(y, (corr(t) : meter_correlate_meter )) : _,_ with {
t = .2; // averaging period in seconds
avg(t, x) = fi.pole(p, (1 - p) * x) // 1-pole lowpass as average
with {
p = exp((((-2.0 * ma.PI) / t) / ma.SR));
};
var(t, x) = avg(t, (x - avg(t, x)) ^ 2); // variance
sd(t, x) = sqrt(var(t, x)); // standard deviation
cov(t, x1, x2) = avg(t, (x1 - avg(t, x1)) * (x2 - avg(t, x2))); // covariance
corr(t, x1, x2) = cov(t, x1, x2) / max(ma.EPSILON, (sd(t, x1) * sd(t, x2))); // correlation
meter_correlate_meter = vbargraph("v:master_me/t:expert/h:[1]pre-processing/correlation meter[symbol:correlation_meter]",-1,1);
};
// stereo correction based on correlation
correlate_correct_bp = bp2(1 - checkbox("v:master_me/t:expert/h:[1]pre-processing/[6][symbol:stereo_correct]stereo correct"), correlate_correct);
correlate_correct(l,r) = out_pos1, out_neg1, out_0, out_pos, out_neg :> _,_ with {
t = .2; // averaging period in seconds
avg(t, x) = fi.pole(p, (1 - p) * x) // 1-pole lowpass as average
with {
p = exp((((-2.0 * ma.PI) / t) / ma.SR));
};
var(t, x) = avg(t, (x - avg(t, x)) ^ 2); // variance
sd(t, x) = sqrt(var(t, x)); // standard deviation
cov(t, x1, x2) = avg(t, (x1 - avg(t, x1)) * (x2 - avg(t, x2))); // covariance
corr(t, x1, x2) = cov(t, x1, x2) / max(ma.EPSILON, (sd(t, x1) * sd(t, x2))); // correlation
th =.0001;
corr_pos1 = avg(t, (corr(t,l,r) > (1-th))) : smoothing /*: vbargraph("[5]1[symbol:corr_pos1]",0,1)*/;
corr_neg1 = avg(t, corr(t,l,r) < (-1+th)) : smoothing /*: vbargraph("[9]-1[symbol:]corr_neg1",0,1)*/;
corr_0 = avg(t, ((corr(t,l,r) < th) & (corr(t,l,r) > (0-th)))) : smoothing /*: vbargraph("[7]0[symbol:corr_0]",0,1)*/;
corr_pos = avg(t, ((corr(t,l,r) > (0+th)) & (corr(t,l,r) < (1-th)))) : smoothing /*: vbargraph("[6]>0,<1[symbol:corr_pos]",0,1)*/;
corr_neg = avg(t, ((corr(t,l,r) > (-1+th)) & (corr(t,l,r) < (0-th)))) : smoothing /*: vbargraph("[8]>-1,<0[symbol:corr_neg]",0,1)*/;
smoothing = lp1p(2) ;
out_pos1 = ((l * corr_pos1 + r * corr_pos1) /2) , ((l * corr_pos1 + r * corr_pos1) /2);
out_neg1 = ((l * corr_neg1 + (-r) * corr_neg1) /2) , ((l * corr_neg1 + (-r) * corr_neg1) /2);
out_0 = (l * corr_0 + r * corr_0) , (l * corr_0 + r * corr_0);
out_pos = l * corr_pos , r * corr_pos;
out_neg = l * corr_neg , r * corr_neg; // old: out_neg = l * corr_neg , (0-(r * corr_neg));
lp1p(cf) = si.smooth(ba.tau2pole(1/(2*ma.PI*cf)));
};
// EQ with bypass
eq_bp = bp2(checkbox("v:master_me/t:expert/h:[3]eq/[1][symbol:eq_bypass]eq bypass"),eq);
eq = hp_eq : tilt_eq : side_eq_b with{
// HIGHPASS
hp_eq = par(i,2,fi.highpass(1,freq)) with {
freq = vslider("v:master_me/t:expert/h:[3]eq/h:[1]highpass/[1]eq highpass freq [unit:Hz] [scale:log] [symbol:eq_highpass_freq]", 5, 5, 1000,1);
};
// TILT EQ STEREO
tilt_eq = par(i,2,_) : par(i,2, fi.lowshelf(N, -gain, freq) : fi.highshelf(N, gain, freq)) with{
N = 1;
gain = vslider("v:master_me/t:expert/h:[3]eq/h:[2]tilt eq/[1]eq tilt gain [unit:dB] [symbol:eq_tilt_gain]",0,-6,6,0.5):si.smoo;
freq = 630; //vslider("v:master_me/t:expert/h:[3]eq/h:[2]tilt eq/[2]eq tilt freq [unit:Hz] [scale:log] [symbol:eq_tilt_freq]", 630, 200, 2000,1);
};
// SIDE EQ
side_eq_b = ms_enc : _,band_shelf(freq_low,freq_high,eq_side_gain) : ms_dec with{
//band_shelf(freq1 ,freq2 ,gain) = fi.low_shelf(0-gain,freq1): fi.low_shelf(gain,freq2);
band_shelf(freq1 ,freq2 ,gain) = fi.svf.ls(freq1,0.7,0-gain): fi.svf.ls(freq2,0.7,gain);
freq_low = eq_side_freq - eq_side_freq*eq_side_width : max(50);
freq_high = eq_side_freq + eq_side_freq*eq_side_width : min(8000);
eq_side_gain = vslider("v:master_me/t:expert/h:[3]eq/h:[3]side eq/[1]eq side gain [unit:dB] [symbol:eq_side_gain]",0,0,12,0.5):si.smoo;
eq_side_freq = vslider("v:master_me/t:expert/h:[3]eq/h:[3]side eq/[2]eq side freq [unit:Hz] [scale:log] [symbol:eq_side_freq]", 600,200,5000,1);
eq_side_width = vslider("v:master_me/t:expert/h:[3]eq/h:[3]side eq/[3]eq side bandwidth [symbol:eq_side_bandwidth]", 1,0.5,4,0.5);
};
};
// LEVELER
leveler_sc(target,fl,fr,l,r) =
(calc(lk2_short(fl,fr))*(1-bp)+bp)
<: (_*l,_*r)
with {
lp1p(cf) = si.smooth(ba.tau2pole(1/(2*ma.PI*cf)));
calc(lufs) = FB(lufs)~_: ba.db2linear;
FB(lufs,prev_gain) =
(target - lufs)
+(prev_gain )
: limit(limit_neg,limit_pos)
: lp1p(leveler_speed_brake(abs(l)+abs(r)))
: leveler_meter_gain;
bp = checkbox("v:master_me/t:expert/h:[3]leveler/[1]leveler bypass[symbol:leveler_bypass]") : si.smoo;
leveler_meter_gain = vbargraph("v:master_me/h:easy/[4][unit:dB][symbol:leveler_gain]leveler gain",-50,50);
meter_leveler_brake = _*100 : vbargraph("v:master_me/t:expert/h:[3]leveler/[6][unit:%][integer]leveler brake[symbol:leveler_brake]",0,100);
leveler_speed = vslider("v:master_me/t:expert/h:[3]leveler/[4][unit:%][integer][symbol:leveler_speed]leveler speed", init_leveler_speed, 0, 100, 1) * 0.0015; //.005, 0.15, .005);
leveler_brake_thresh = /*target + */vslider("v:master_me/t:expert/h:[3]leveler/[5][unit:dB][symbol:leveler_brake_threshold]leveler brake threshold", init_leveler_brake_threshold,-90,0,1);
limit_pos = vslider("v:master_me/t:expert/h:[3]leveler/[7][symbol:leveler_max_plus][unit:dB]leveler max +", init_leveler_maxboost, 0, 60, 1);
limit_neg = vslider("v:master_me/t:expert/h:[3]leveler/[8][symbol:leveler_max_minus][unit:dB]leveler max -", init_leveler_maxcut, 0, 60, 1) : ma.neg;
limit(lo,hi) = min(hi) : max(lo);
leveler_speed_brake(sc) = (expander(sc) <: attach(_, (1-_) : meter_leveler_brake)) : _ * leveler_speed;
expander(x) = (ex.peak_expansion_gain_mono_db(maxHold,strength,leveler_brake_thresh,range,gate_att,hold,gate_rel,knee,prePost,x)
: ba.db2linear
:max(0)
:min(1));
maxHold = hold*192000;
strength = 2;
range = -120;
gate_att = 0.05;
hold = 0.1;
gate_rel = 0.3;
knee = 12;
prePost = 1;
};
// SIDE CHAIN COMPRESSOR
sc_compressor(fl,fr,l,r) =
(fl,fr,l,r)
: feedforward_feedback
: (ms_enc,ms_enc):
(((RMS_compression_gain_N_chan_db(strength,thresh,att,rel,knee,0,link,N)),si.bus(N) )
: ro.interleave(N,2) : par(i,N,(meter(i) : post_gain : ba.db2linear*(1-bypass)+bypass)*_))
: ms_dec
: ((l,_,r,_):par(i, 2, it.interpolate_linear(dw)))
with {
N = 2;
B = si.bus(2);
bypass = checkbox("v:master_me/t:expert/h:[5]kneecomp/[0][symbol:kneecomp_bypass]kneecomp bypass"):si.smoo;
strength = vslider("v:master_me/t:expert/h:[5]kneecomp/[1][unit:%][integer][symbol:kneecomp_strength]kneecomp strength", 20, 0, 100, 1) * 0.01;
thresh = target + vslider("v:master_me/t:expert/h:[5]kneecomp/[2][symbol:kneecomp_threshold][unit:dB]kneecomp tar-thresh",init_kneecomp_thresh,-12,6,1);
att = vslider("v:master_me/t:expert/h:[5]kneecomp/[3][symbol:kneecomp_attack][unit:ms]kneecomp attack",20,1,100,1)*0.001;
rel = vslider("v:master_me/t:expert/h:[5]kneecomp/[4][symbol:kneecomp_release][unit:ms]kneecomp release",200,1,1000,1)*0.001;
knee = vslider("v:master_me/t:expert/h:[5]kneecomp/[5][unit:dB][symbol:kneecomp_knee]kneecomp knee",6,0,30,1);
link = vslider("v:master_me/t:expert/h:[5]kneecomp/[6][unit:%][integer][symbol:kneecomp_link]kneecomp link", 60, 0, 100, 1) *0.01;
fffb = vslider ("v:master_me/t:expert/h:[5]kneecomp/[7][unit:%][integer][symbol:kneecomp_fffb]kneecomp ff-fb",50,0,100,1) *0.01;
dw = vslider ("v:master_me/t:expert/h:[5]kneecomp/[9][unit:%][integer][symbol:kneecomp_drywet]kneecomp dry/wet",100,0,100,1) * 0.01:si.smoo;
meter(i) =
_<: attach(_, (max(-6):min(0):vbargraph(
"v:master_me/t:expert/h:[5]kneecomp/[symbol:kneecomp_meter_%i][unit:dB]kneecomp meter %i", -6, 0)
));
feedforward_feedback = B,(B<:B,B) : par(i,2,_*fffb), par(i,2,_* (1-fffb)),B : (_,_,_,_:>_,_),_,_;
// dev version of faust has this in the libs, TODO, use co.RMS_compression_gain_N_chan_db
RMS_compression_gain_N_chan_db(strength,thresh,att,rel,knee,prePost,link,1) =
RMS_compression_gain_mono_db(strength,thresh,att,rel,knee,prePost);
RMS_compression_gain_N_chan_db(strength,thresh,att,rel,knee,prePost,link,N) =
par(i,N,RMS_compression_gain_mono_db(strength,thresh,att,rel,knee,prePost))
<: (si.bus(N),(ba.parallelMin(N) <: si.bus(N))) : ro.interleave(N,2) : par(i,N,(it.interpolate_linear(link)));
RMS_compression_gain_mono_db(strength,thresh,att,rel,knee,prePost) =
RMS(rel) : ba.bypass1(prePost,si.onePoleSwitching(att,0)) : ba.linear2db : gain_computer(strength,thresh,knee) : ba.bypass1((prePost!=1),si.onePoleSwitching(0,att))
with {
gain_computer(strength,thresh,knee,level) =
select3((level>(thresh-(knee/2)))+(level>(thresh+(knee/2))),
0,
((level-thresh+(knee/2)) : pow(2)/(2*max(ma.EPSILON,knee))),
(level-thresh))
: max(0)*-strength;
RMS(time) = ba.slidingRMS(s) with {
s = ba.sec2samp(time):int:max(1);
};
};
//post_gain
post_gain =
_+
(vslider("v:master_me/t:expert/h:[5]kneecomp/[8][unit:dB][symbol:kneecomp_makeup]kneecomp makeup", init_kneecomp_postgain,-10,+10,0.5) :si.smoo);
};
// MSCOMP Interpolated (Bart Brouns)
mscomp_bp = bp2(checkbox("v:master_me/t:expert/h:[5]mscomp/h:[0]bypass/[0][symbol:mscomp_bypass]mscomp bypass"),
ms_enc
: B_band_Compressor_N_chan(Nba,Nch)
: ms_dec
) ;
B_band_Compressor_N_chan(B,N) =
si.bus (N) <: si.bus (2 * N)
: ( (crossover:gain_calc), si.bus(N) )
: apply_gain
: outputGain
with {
crossover =
par(i, N, an.analyzer (6, crossoverFreqs)
: ro.cross (B)
);
apply_gain =
(ro.interleave(N, B+1))
: par(i, N, ro.cross(B),_)
: par(i, N, shelfcascade ((crossoverFreqs)))
;
// TODO: use co.peak_compression_gain_N_chan_db when it arrives in the current faust version
compressor(N,prePost,strength,thresh,att,rel,knee,link) = peak_compression_gain_N_chan_db (strength,thresh,att,rel,knee,prePost,link,N);
gain_calc = (strength_array, thresh_array, att_array, rel_array, knee_array, link_array, si.bus(N*B))
: ro.interleave(B,6+N)
: par(i, B, compressor(N,prePost)) // : si.bus (N * Nr_bands)
: par(b, B, par(c, N, meter(b+1, c+1)));
outputGain = par(i, N, _*mscomp_outGain);
/* TODO: separate %b%c in symbol name so that it is a valid C/C++ variable-name (ideally an underscore) %b_%c
* meanwhile this is safe since there are only 8 bands (1..9) and 2 channels.
*/
meter(b,c) =
_<: attach(_, (max(-6):min(0):vbargraph(
// "v:master_me/t:expert/h:[6]mscomp_meter/[%b.%c][unit:dB][tooltip: gain reduction in db][symbol:msredux%b%c]mscomp redux band %b chn %c", -3, 0)
"v:master_me/t:expert/h:[6]mscomp_meter/[%b.%c][unit:dB][tooltip: gain reduction in db][symbol:msredux%b%c]", -6, 0)
));
/* higher order low, band and hi shelf filter primitives */
ls3(f,g) = fi.svf.ls (f, .5, g3) : fi.svf.ls (f, .707, g3) : fi.svf.ls (f, 2, g3) with {g3 = g/3;};
bs3(f1,f2,g) = ls3(f1,-g) : ls3(f2,g);
hs3(f,g) = fi.svf.hs (f, .5, g3) : fi.svf.hs (f, .707, g3) : fi.svf.hs (f, 2, g3) with {g3 = g/3;};
/* Cascade of shelving filters to apply gain per band.
*
* `lf` : list of frequencies
* followed by (count(lf) +1) gain parameters
*/
shelfcascade(lf) = fbus(lf), ls3(first(lf)) : sc(lf)
with {
sc((f1, f2, lf)) = fbus((f2,lf)), bs3(f1,f2) : sc((f2,lf)); // recursive pattern
sc((f1, f2)) = _, bs3(f1,f2) : hs3(f2); // halting pattern
fbus(l) = par(i, outputs(l), _); // a bus of the size of a list
first((x,xs)) = x; // first element of a list
};
/* Cross over frequency range */
fl = vslider("v:master_me/t:expert/h:[5]mscomp/h:[1]low band/[7][symbol:mscomp_low_crossover][scale:log][unit:Hz]low crossover", 60, 20, 4000, 1);
fh = vslider("v:master_me/t:expert/h:[5]mscomp/h:[2]high band/[7][symbol:mscomp_high_crossover][scale:log][unit:Hz]high crossover", 8000, 5000, 20000, 1);
/* Compressor settings */
strength_array = vslider("v:master_me/t:expert/h:[5]mscomp/h:[1]low band/[1][unit:%][integer][symbol:mscomp_low_strength]low strength", 10, 0, 100, 1)*0.01,vslider("v:master_me/t:expert/h:[5]mscomp/h:[2]high band/[1][unit:%][integer][symbol:mscomp_high_strength]high strength", 10, 0, 100, 1)*0.01:LinArray(B);
thresh_array = target + vslider("v:master_me/t:expert/h:[5]mscomp/h:[1]low band/[2][unit:dB][symbol:mscomp_low_threshold]low tar-thresh", -6, -12, 12, 0.5),target + vslider("v:master_me/t:expert/h:[5]mscomp/h:[2]high band/[2][unit:dB][symbol:mscomp_high_threshold]high tar-thresh", -12, -12, 12, 0.5):LinArray(B);
att_array = (vslider("v:master_me/t:expert/h:[5]mscomp/h:[1]low band/[3][unit:ms][symbol:mscomp_low_attack]low attack", 15, 0, 100, 0.1)*0.001,vslider("v:master_me/t:expert/h:[5]mscomp/h:[2]high band/[3][unit:ms][symbol:mscomp_high_attack]high attack", 3, 0, 100, 0.1)*0.001):LogArray(B);
rel_array = (vslider("v:master_me/t:expert/h:[5]mscomp/h:[1]low band/[4][unit:ms][symbol:mscomp_low_release]low release", 150, 1, 1000, 1)*0.001,vslider("v:master_me/t:expert/h:[5]mscomp/h:[2]high band/[4][unit:ms][symbol:mscomp_high_release]high release", 30, 1, 1000, 1)*0.001):LogArray(B);
knee_array = (vslider("v:master_me/t:expert/h:[5]mscomp/h:[1]low band/[5][unit:dB][symbol:mscomp_low_knee]low knee", 12, 0, 30, 0.1),vslider("v:master_me/t:expert/h:[5]mscomp/h:[2]high band/[5][unit:dB][symbol:mscomp_high_knee]high knee", 12, 0, 30, 0.1)):LinArray(B);
link_array = (vslider("v:master_me/t:expert/h:[5]mscomp/h:[1]low band/[6][unit:%][integer][symbol:mscomp_low_link]low link", 60, 0, 100, 1)*0.01,vslider("v:master_me/t:expert/h:[5]mscomp/h:[2]high band/[6][unit:%][integer][symbol:mscomp_high_link]high link", 30, 0, 100, 1)*0.01):LinArray(B);
crossoverFreqs = LogArray(B-1,fl,fh);
mscomp_outGain = vslider("v:master_me/t:expert/h:[5]mscomp/h:[3]out/[3][unit:dB][symbol:mscomp_output_gain]makeup", 1, -6, 6, 0.5):ba.db2linear:si.smoo;
// make a linear array of values, from bottom to top
LinArray(N,bottom,top) = par(i,N, ((top-bottom)*(i/(N-1)))+bottom);
// make a log array of values, from bottom to top
LogArray(N,bottom,top) = par(i,N, pow((pow((t/b),1/(N-1))),i)*b)
with {
b = bottom:max(ma.EPSILON);
t = top:max(ma.EPSILON);
};
prePost = 1;
};
// LIMITER
limiter_rms_bp = bp2(checkbox("v:master_me/t:expert/h:[7]limiter/[0]limiter bypass[symbol:limiter_bypass]"),limiter_rms);
limiter_rms = co.RMS_FBFFcompressor_N_chan(strength,thresh,att,rel,knee,0,1,fffb,limiter_meter,2) : post_gain with{
strength = vslider("v:master_me/t:expert/h:[7]limiter/[1][unit:%][integer][symbol:limiter_strength]limiter strength", 80, 0, 100, 1) *0.01;
thresh = target + vslider("v:master_me/t:expert/h:[7]limiter/[2][symbol:limiter_threshold][unit:dB]limiter tar-thresh",6,-12,12,1);
att = vslider("v:master_me/t:expert/h:[7]limiter/[3][unit:ms][symbol:limiter_attack]limiter attack",1,0,100,1)*0.001;
rel = vslider("v:master_me/t:expert/h:[7]limiter/[4][unit:ms][symbol:limiter_release]limiter release",40,1,400,1)*0.001;
knee = vslider("v:master_me/t:expert/h:[7]limiter/[5][symbol:limiter_knee][unit:dB]limiter knee",8,0,12,1);
fffb = vslider ("v:master_me/t:expert/h:[7]limiter/[6][unit:%][integer][symbol:limiter_fffb]limiter ff-fb",50,0,100,1)*0.01;
// post_gain
post_gain = par(i,Nch,_ * limiter_postgain) with {
};
limiter_postgain = vslider("v:master_me/t:expert/h:[7]limiter/[8][unit:dB][symbol:limiter_makeup]limiter makeup", init_limiter_postgain,-10,+10,0.5) : ba.db2linear:si.smoo;
limiter_meter = _ <: attach(ba.linear2db : vbargraph("v:master_me/t:expert/h:[7]limiter/[9][unit:dB][symbol:limiter_gain_reduction]limiter gain reduction",-12,0));
};
// LIMITER NO LATENCY
brickwall_no_latency_bp = bp2(checkbox("v:master_me/t:expert/h:[8]brickwall/[1][symbol:brickwall_bypass]brickwall bypass"),brickwall_no_latency);
brickwall_no_latency =
co.FFcompressor_N_chan(1,threshLim,att,rel,knee,0,link,meter_brickwall,2)
with {
threshLim = vslider("v:master_me/t:expert/h:[8]brickwall/[3]brickwall ceiling[unit:dB][symbol:brickwall_ceiling]",init_brickwall_ceiling,-6,-0,0.1);
att = 0;
rel = vslider("v:master_me/t:expert/h:[8]brickwall/[4]brickwall release[unit:ms][symbol:brickwall_release]",init_brickwall_release,5,100,1) *0.001;
knee = 0;
link = 1;
meter_brickwall =
_<: _,( ba.linear2db:vbargraph("v:master_me/t:expert/h:[8]brickwall/lim[unit:dB][symbol:brickwall_limit]",-20,0)) : attach;
// The following code is in the libraries in the dev version of faust, but not yet in the latest release:
// TODO: use co.FFcompressor_N_chan
FFcompressor_N_chan(strength,thresh,att,rel,knee,prePost,link,meter,N) =
si.bus(N) <: (peak_compression_gain_N_chan_db(strength,thresh,att,rel,knee,prePost,link,N),si.bus(N)) : ro.interleave(N,2) : par(i,N,(meter: ba.db2linear)*_);
};
// +++++++++++++++++++++++++ LUFS METER +++++++++++++++++++++++++
lk2_var(Tg)= par(i,2,kfilter : zi) :> 4.342944819 * log(max(1e-12)) : -(0.691) with {
// maximum assumed sample rate is 192k
maxSR = 192000;
sump(n) = ba.slidingSump(n, Tg*maxSR)/max(n,ma.EPSILON);
envelope(period, x) = x * x : sump(rint(period * ma.SR));
zi = envelope(Tg); // mean square: average power = energy/Tg = integral of squared signal / Tg
kfilter = ebu.prefilter;
};
lk2 = lk2_var(3);
lk2_short = lk2_var(0.4);
lufs_meter_in(l,r) = l,r <: l, attach(r, (lk2 : vbargraph("v:master_me/h:easy/[2][unit:dB][symbol:lufs_in]in lufs-s",-70,0))) : _,_;
lufs_meter_out(l,r) = l,r <: l, attach(r, (lk2 : vbargraph("v:master_me/h:easy/[7][unit:dB][symbol:lufs_out]out lufs-s",-70,0))) : _,_;
/* ******* 8< *******/
// TODO: use co.peak_compression_gain_N_chan_db when it arrives in the current faust version
peak_compression_gain_mono_db(strength,thresh,att,rel,knee,prePost) =
abs : ba.bypass1(prePost,si.onePoleSwitching(att,rel)) : ba.linear2db : gain_computer(strength,thresh,knee) : ba.bypass1((prePost !=1),si.onePoleSwitching(rel,att))
with {
gain_computer(strength,thresh,knee,level) =
select3((level>(thresh-(knee/2)))+(level>(thresh+(knee/2))),
0,
((level-thresh+(knee/2)) : pow(2)/(2*max(ma.EPSILON,knee))),
(level-thresh))
: max(0)*-strength;
};
peak_compression_gain_N_chan_db(strength,thresh,att,rel,knee,prePost,link,1) =
peak_compression_gain_mono_db(strength,thresh,att,rel,knee,prePost);
peak_compression_gain_N_chan_db(strength,thresh,att,rel,knee,prePost,link,N) =
par(i, N, peak_compression_gain_mono_db(strength,thresh,att,rel,knee,prePost))
<: (si.bus(N),(ba.parallelMin(N) <: si.bus(N))) : ro.interleave(N,2) : par(i,N,(it.interpolate_linear(link)));
/* ******* >8 *******/
| https://raw.githubusercontent.com/trummerschlunk/master_me/40f6032f13955cd829a42af26508ef364f3cecf3/master_me.dsp | faust | -*-Faust-*-
double precision -double needed!
init values
number of channels
number of bands of the multiband compressor
not used in voc version
main
: correlate_meter
stereo bypass with si.smoo fading
DC FILTER
phase switches
Mono Switch
input gain
stereo to m/s encoder
m/s to stereo decoder
peak meters
GATE
correlation meter
averaging period in seconds
1-pole lowpass as average
variance
standard deviation
covariance
correlation
stereo correction based on correlation
averaging period in seconds
1-pole lowpass as average
variance
standard deviation
covariance
correlation
: vbargraph("[5]1[symbol:corr_pos1]",0,1)
: vbargraph("[9]-1[symbol:]corr_neg1",0,1)
: vbargraph("[7]0[symbol:corr_0]",0,1)
: vbargraph("[6]>0,<1[symbol:corr_pos]",0,1)
: vbargraph("[8]>-1,<0[symbol:corr_neg]",0,1)
old: out_neg = l * corr_neg , (0-(r * corr_neg));
EQ with bypass
HIGHPASS
TILT EQ STEREO
vslider("v:master_me/t:expert/h:[3]eq/h:[2]tilt eq/[2]eq tilt freq [unit:Hz] [scale:log] [symbol:eq_tilt_freq]", 630, 200, 2000,1);
SIDE EQ
band_shelf(freq1 ,freq2 ,gain) = fi.low_shelf(0-gain,freq1): fi.low_shelf(gain,freq2);
LEVELER
.005, 0.15, .005);
target +
SIDE CHAIN COMPRESSOR
dev version of faust has this in the libs, TODO, use co.RMS_compression_gain_N_chan_db
post_gain
MSCOMP Interpolated (Bart Brouns)
TODO: use co.peak_compression_gain_N_chan_db when it arrives in the current faust version
: si.bus (N * Nr_bands)
TODO: separate %b%c in symbol name so that it is a valid C/C++ variable-name (ideally an underscore) %b_%c
* meanwhile this is safe since there are only 8 bands (1..9) and 2 channels.
"v:master_me/t:expert/h:[6]mscomp_meter/[%b.%c][unit:dB][tooltip: gain reduction in db][symbol:msredux%b%c]mscomp redux band %b chn %c", -3, 0)
higher order low, band and hi shelf filter primitives
Cascade of shelving filters to apply gain per band.
*
* `lf` : list of frequencies
* followed by (count(lf) +1) gain parameters
recursive pattern
halting pattern
a bus of the size of a list
first element of a list
Cross over frequency range
Compressor settings
make a linear array of values, from bottom to top
make a log array of values, from bottom to top
LIMITER
post_gain
LIMITER NO LATENCY
The following code is in the libraries in the dev version of faust, but not yet in the latest release:
TODO: use co.FFcompressor_N_chan
+++++++++++++++++++++++++ LUFS METER +++++++++++++++++++++++++
maximum assumed sample rate is 192k
mean square: average power = energy/Tg = integral of squared signal / Tg
******* 8< ******
TODO: use co.peak_compression_gain_N_chan_db when it arrives in the current faust version
******* >8 ****** |
declare name "master_me";
declare version "1.0";
declare author "Klaus Scheuermann";
declare license "GPLv3";
ebu = library("lib/ebur128.dsp");
ex = library("expanders.lib");
import("stdfaust.lib");
init_leveler_target = -18;
init_leveler_maxboost = 20;
init_leveler_maxcut = 20;
init_leveler_brake_threshold = -14;
init_leveler_speed = 20;
init_kneecomp_thresh = -6;
init_kneecomp_postgain = 0;
init_limiter_lad_ceil = -2;
init_limiter_postgain = 0;
init_brickwall_ceiling = -1;
init_brickwall_release = 75;
target = vslider("v:master_me/h:easy/[3]Target[unit:dB][symbol:target][integer]", init_leveler_target,-50,-2,1);
process =
bp2(checkbox("[symbol:global_bypass]global bypass"),(
in_gain
: peakmeter_in
: lufs_meter_in
: dc_blocker_bp
: (phase_invert_L , phase_invert_R)
: mono_bp
: correlate_correct_bp
: gate_bp
: eq_bp
: (
leveler_sc(target)
: ( sc_compressor
: mscomp_bp
: limiter_rms_bp
: brickwall_no_latency_bp
)~(si.bus(2))
)~(si.bus(2))
))
: lufs_meter_out
: peakmeter_out
;
bp2(sw,pr) = _,_ <: _,_,pr : (_*sm,_*sm),(_*(1-sm),_*(1-sm)) :> _,_ with {
sm = sw : si.smoo;
};
dc_blocker_bp = bp2(sw,dc_blocker(2)) with {
sw = 1 - checkbox("v:master_me/t:expert/h:[1]pre-processing/[5][symbol:dc_blocker]dc blocker");
};
dc_blocker(N) = par(i,N,fi.dcblockerat(dc_filter_freq))
with {
dc_filter_freq = 10.0;
};
phase_invert_L = _ <: _,_ : (_ : *(-1)),_ : _*sw,_*(1-sw) :> _ with{
sw = checkbox("v:master_me/t:expert/h:[1]pre-processing/[2][symbol:phase_l]phase L");
};
phase_invert_R = _ <: _,_ : (_ : *(-1)),_ : _*sw,_*(1-sw) :> _ with{
sw = checkbox("v:master_me/t:expert/h:[1]pre-processing/[3][symbol:phase_r]phase R");
};
mono_bp = bp2(1 - checkbox("v:master_me/t:expert/h:[1]pre-processing/[4][symbol:mono]mono"),mono);
mono = _*0.5,_*0.5 <: +, +;
in_gain = par(i,2,(_*g)) with{
g = vslider("v:master_me/t:expert/h:[1]pre-processing/[1][symbol:in_gain][unit:dB]input gain",0,-100,24,1) : ba.db2linear :si.smoo;
};
ms_enc = _*0.5,_*0.5 <: +, -;
ms_dec = _,_ <: +, -;
peakmeter_in = in_meter_l,in_meter_r with {
envelop = abs : max(ba.db2linear(-70)) : ba.linear2db : min(10) : max ~ -(80.0/ma.SR);
in_meter_l(x) = attach(x, envelop(x) : vbargraph("v:master_me/h:easy/[0][symbol:peakmeter_in_l]in L[unit:dB]", -70, 0));
in_meter_r(x) = attach(x, envelop(x) : vbargraph("v:master_me/h:easy/[1][symbol:peakmeter_in_r]in R[unit:dB]", -70, 0));
};
peakmeter_out = out_meter_l,out_meter_r with {
envelop = abs : max(ba.db2linear(-70)) : ba.linear2db : min(10) : max ~ -(80.0/ma.SR);
out_meter_l(x) = attach(x, envelop(x) : vbargraph("v:master_me/h:easy/[8][symbol:peakmeter_out_l]out L[unit:dB]", -70, 0));
out_meter_r(x) = attach(x, envelop(x) : vbargraph("v:master_me/h:easy/[9][symbol:peakmeter_out_r]out R[unit:dB]", -70, 0));
};
gate_bp = bp2(checkbox("v:master_me/t:expert/h:[2]gate/[1][symbol:gate_bypass]gate bypass"),gate);
gate(x,y) = attach(x,gateview(abs(x)+abs(y))),y : ef.gate_stereo(gate_thresh,gate_att,gate_hold,gate_rel) with{
gate_thresh = vslider("v:master_me/t:expert/h:[2]gate/[2][symbol:gate_threshold][unit:dB]gate threshold",-90,-90,0,1);
gate_att = vslider("v:master_me/t:expert/h:[2]gate/[3][symbol:gate_attack][unit:ms]gate attack",0,0,100,1) *0.001;
gate_hold = vslider("v:master_me/t:expert/h:[2]gate/[4][symbol:gate_hold][unit:ms]gate hold",50,0,500,1) *0.001;
gate_rel = vslider("v:master_me/t:expert/h:[2]gate/[5][symbol:gate_release][unit:ms]gate release",500,50,5000,1) *0.001;
gateview = ef.gate_gain_mono(gate_thresh,gate_att,gate_hold,gate_rel) : ba.linear2db : max(-70) :
vbargraph("v:master_me/t:expert/h:[2]gate/[6][symbol:gate_meter][unit:dB]gate meter", -70,0);
};
correlate_meter(x,y) = x,y <: x , attach(y, (corr(t) : meter_correlate_meter )) : _,_ with {
with {
p = exp((((-2.0 * ma.PI) / t) / ma.SR));
};
meter_correlate_meter = vbargraph("v:master_me/t:expert/h:[1]pre-processing/correlation meter[symbol:correlation_meter]",-1,1);
};
correlate_correct_bp = bp2(1 - checkbox("v:master_me/t:expert/h:[1]pre-processing/[6][symbol:stereo_correct]stereo correct"), correlate_correct);
correlate_correct(l,r) = out_pos1, out_neg1, out_0, out_pos, out_neg :> _,_ with {
with {
p = exp((((-2.0 * ma.PI) / t) / ma.SR));
};
th =.0001;
smoothing = lp1p(2) ;
out_pos1 = ((l * corr_pos1 + r * corr_pos1) /2) , ((l * corr_pos1 + r * corr_pos1) /2);
out_neg1 = ((l * corr_neg1 + (-r) * corr_neg1) /2) , ((l * corr_neg1 + (-r) * corr_neg1) /2);
out_0 = (l * corr_0 + r * corr_0) , (l * corr_0 + r * corr_0);
out_pos = l * corr_pos , r * corr_pos;
lp1p(cf) = si.smooth(ba.tau2pole(1/(2*ma.PI*cf)));
};
eq_bp = bp2(checkbox("v:master_me/t:expert/h:[3]eq/[1][symbol:eq_bypass]eq bypass"),eq);
eq = hp_eq : tilt_eq : side_eq_b with{
hp_eq = par(i,2,fi.highpass(1,freq)) with {
freq = vslider("v:master_me/t:expert/h:[3]eq/h:[1]highpass/[1]eq highpass freq [unit:Hz] [scale:log] [symbol:eq_highpass_freq]", 5, 5, 1000,1);
};
tilt_eq = par(i,2,_) : par(i,2, fi.lowshelf(N, -gain, freq) : fi.highshelf(N, gain, freq)) with{
N = 1;
gain = vslider("v:master_me/t:expert/h:[3]eq/h:[2]tilt eq/[1]eq tilt gain [unit:dB] [symbol:eq_tilt_gain]",0,-6,6,0.5):si.smoo;
};
side_eq_b = ms_enc : _,band_shelf(freq_low,freq_high,eq_side_gain) : ms_dec with{
band_shelf(freq1 ,freq2 ,gain) = fi.svf.ls(freq1,0.7,0-gain): fi.svf.ls(freq2,0.7,gain);
freq_low = eq_side_freq - eq_side_freq*eq_side_width : max(50);
freq_high = eq_side_freq + eq_side_freq*eq_side_width : min(8000);
eq_side_gain = vslider("v:master_me/t:expert/h:[3]eq/h:[3]side eq/[1]eq side gain [unit:dB] [symbol:eq_side_gain]",0,0,12,0.5):si.smoo;
eq_side_freq = vslider("v:master_me/t:expert/h:[3]eq/h:[3]side eq/[2]eq side freq [unit:Hz] [scale:log] [symbol:eq_side_freq]", 600,200,5000,1);
eq_side_width = vslider("v:master_me/t:expert/h:[3]eq/h:[3]side eq/[3]eq side bandwidth [symbol:eq_side_bandwidth]", 1,0.5,4,0.5);
};
};
leveler_sc(target,fl,fr,l,r) =
(calc(lk2_short(fl,fr))*(1-bp)+bp)
<: (_*l,_*r)
with {
lp1p(cf) = si.smooth(ba.tau2pole(1/(2*ma.PI*cf)));
calc(lufs) = FB(lufs)~_: ba.db2linear;
FB(lufs,prev_gain) =
(target - lufs)
+(prev_gain )
: limit(limit_neg,limit_pos)
: lp1p(leveler_speed_brake(abs(l)+abs(r)))
: leveler_meter_gain;
bp = checkbox("v:master_me/t:expert/h:[3]leveler/[1]leveler bypass[symbol:leveler_bypass]") : si.smoo;
leveler_meter_gain = vbargraph("v:master_me/h:easy/[4][unit:dB][symbol:leveler_gain]leveler gain",-50,50);
meter_leveler_brake = _*100 : vbargraph("v:master_me/t:expert/h:[3]leveler/[6][unit:%][integer]leveler brake[symbol:leveler_brake]",0,100);
limit_pos = vslider("v:master_me/t:expert/h:[3]leveler/[7][symbol:leveler_max_plus][unit:dB]leveler max +", init_leveler_maxboost, 0, 60, 1);
limit_neg = vslider("v:master_me/t:expert/h:[3]leveler/[8][symbol:leveler_max_minus][unit:dB]leveler max -", init_leveler_maxcut, 0, 60, 1) : ma.neg;
limit(lo,hi) = min(hi) : max(lo);
leveler_speed_brake(sc) = (expander(sc) <: attach(_, (1-_) : meter_leveler_brake)) : _ * leveler_speed;
expander(x) = (ex.peak_expansion_gain_mono_db(maxHold,strength,leveler_brake_thresh,range,gate_att,hold,gate_rel,knee,prePost,x)
: ba.db2linear
:max(0)
:min(1));
maxHold = hold*192000;
strength = 2;
range = -120;
gate_att = 0.05;
hold = 0.1;
gate_rel = 0.3;
knee = 12;
prePost = 1;
};
sc_compressor(fl,fr,l,r) =
(fl,fr,l,r)
: feedforward_feedback
: (ms_enc,ms_enc):
(((RMS_compression_gain_N_chan_db(strength,thresh,att,rel,knee,0,link,N)),si.bus(N) )
: ro.interleave(N,2) : par(i,N,(meter(i) : post_gain : ba.db2linear*(1-bypass)+bypass)*_))
: ms_dec
: ((l,_,r,_):par(i, 2, it.interpolate_linear(dw)))
with {
N = 2;
B = si.bus(2);
bypass = checkbox("v:master_me/t:expert/h:[5]kneecomp/[0][symbol:kneecomp_bypass]kneecomp bypass"):si.smoo;
strength = vslider("v:master_me/t:expert/h:[5]kneecomp/[1][unit:%][integer][symbol:kneecomp_strength]kneecomp strength", 20, 0, 100, 1) * 0.01;
thresh = target + vslider("v:master_me/t:expert/h:[5]kneecomp/[2][symbol:kneecomp_threshold][unit:dB]kneecomp tar-thresh",init_kneecomp_thresh,-12,6,1);
att = vslider("v:master_me/t:expert/h:[5]kneecomp/[3][symbol:kneecomp_attack][unit:ms]kneecomp attack",20,1,100,1)*0.001;
rel = vslider("v:master_me/t:expert/h:[5]kneecomp/[4][symbol:kneecomp_release][unit:ms]kneecomp release",200,1,1000,1)*0.001;
knee = vslider("v:master_me/t:expert/h:[5]kneecomp/[5][unit:dB][symbol:kneecomp_knee]kneecomp knee",6,0,30,1);
link = vslider("v:master_me/t:expert/h:[5]kneecomp/[6][unit:%][integer][symbol:kneecomp_link]kneecomp link", 60, 0, 100, 1) *0.01;
fffb = vslider ("v:master_me/t:expert/h:[5]kneecomp/[7][unit:%][integer][symbol:kneecomp_fffb]kneecomp ff-fb",50,0,100,1) *0.01;
dw = vslider ("v:master_me/t:expert/h:[5]kneecomp/[9][unit:%][integer][symbol:kneecomp_drywet]kneecomp dry/wet",100,0,100,1) * 0.01:si.smoo;
meter(i) =
_<: attach(_, (max(-6):min(0):vbargraph(
"v:master_me/t:expert/h:[5]kneecomp/[symbol:kneecomp_meter_%i][unit:dB]kneecomp meter %i", -6, 0)
));
feedforward_feedback = B,(B<:B,B) : par(i,2,_*fffb), par(i,2,_* (1-fffb)),B : (_,_,_,_:>_,_),_,_;
RMS_compression_gain_N_chan_db(strength,thresh,att,rel,knee,prePost,link,1) =
RMS_compression_gain_mono_db(strength,thresh,att,rel,knee,prePost);
RMS_compression_gain_N_chan_db(strength,thresh,att,rel,knee,prePost,link,N) =
par(i,N,RMS_compression_gain_mono_db(strength,thresh,att,rel,knee,prePost))
<: (si.bus(N),(ba.parallelMin(N) <: si.bus(N))) : ro.interleave(N,2) : par(i,N,(it.interpolate_linear(link)));
RMS_compression_gain_mono_db(strength,thresh,att,rel,knee,prePost) =
RMS(rel) : ba.bypass1(prePost,si.onePoleSwitching(att,0)) : ba.linear2db : gain_computer(strength,thresh,knee) : ba.bypass1((prePost!=1),si.onePoleSwitching(0,att))
with {
gain_computer(strength,thresh,knee,level) =
select3((level>(thresh-(knee/2)))+(level>(thresh+(knee/2))),
0,
((level-thresh+(knee/2)) : pow(2)/(2*max(ma.EPSILON,knee))),
(level-thresh))
: max(0)*-strength;
RMS(time) = ba.slidingRMS(s) with {
s = ba.sec2samp(time):int:max(1);
};
};
post_gain =
_+
(vslider("v:master_me/t:expert/h:[5]kneecomp/[8][unit:dB][symbol:kneecomp_makeup]kneecomp makeup", init_kneecomp_postgain,-10,+10,0.5) :si.smoo);
};
mscomp_bp = bp2(checkbox("v:master_me/t:expert/h:[5]mscomp/h:[0]bypass/[0][symbol:mscomp_bypass]mscomp bypass"),
ms_enc
: B_band_Compressor_N_chan(Nba,Nch)
: ms_dec
) ;
B_band_Compressor_N_chan(B,N) =
si.bus (N) <: si.bus (2 * N)
: ( (crossover:gain_calc), si.bus(N) )
: apply_gain
: outputGain
with {
crossover =
par(i, N, an.analyzer (6, crossoverFreqs)
: ro.cross (B)
);
apply_gain =
(ro.interleave(N, B+1))
: par(i, N, ro.cross(B),_)
: par(i, N, shelfcascade ((crossoverFreqs)))
;
compressor(N,prePost,strength,thresh,att,rel,knee,link) = peak_compression_gain_N_chan_db (strength,thresh,att,rel,knee,prePost,link,N);
gain_calc = (strength_array, thresh_array, att_array, rel_array, knee_array, link_array, si.bus(N*B))
: ro.interleave(B,6+N)
: par(b, B, par(c, N, meter(b+1, c+1)));
outputGain = par(i, N, _*mscomp_outGain);
meter(b,c) =
_<: attach(_, (max(-6):min(0):vbargraph(
"v:master_me/t:expert/h:[6]mscomp_meter/[%b.%c][unit:dB][tooltip: gain reduction in db][symbol:msredux%b%c]", -6, 0)
));
ls3(f,g) = fi.svf.ls (f, .5, g3) : fi.svf.ls (f, .707, g3) : fi.svf.ls (f, 2, g3) with {g3 = g/3;};
bs3(f1,f2,g) = ls3(f1,-g) : ls3(f2,g);
hs3(f,g) = fi.svf.hs (f, .5, g3) : fi.svf.hs (f, .707, g3) : fi.svf.hs (f, 2, g3) with {g3 = g/3;};
shelfcascade(lf) = fbus(lf), ls3(first(lf)) : sc(lf)
with {
};
fl = vslider("v:master_me/t:expert/h:[5]mscomp/h:[1]low band/[7][symbol:mscomp_low_crossover][scale:log][unit:Hz]low crossover", 60, 20, 4000, 1);
fh = vslider("v:master_me/t:expert/h:[5]mscomp/h:[2]high band/[7][symbol:mscomp_high_crossover][scale:log][unit:Hz]high crossover", 8000, 5000, 20000, 1);
strength_array = vslider("v:master_me/t:expert/h:[5]mscomp/h:[1]low band/[1][unit:%][integer][symbol:mscomp_low_strength]low strength", 10, 0, 100, 1)*0.01,vslider("v:master_me/t:expert/h:[5]mscomp/h:[2]high band/[1][unit:%][integer][symbol:mscomp_high_strength]high strength", 10, 0, 100, 1)*0.01:LinArray(B);
thresh_array = target + vslider("v:master_me/t:expert/h:[5]mscomp/h:[1]low band/[2][unit:dB][symbol:mscomp_low_threshold]low tar-thresh", -6, -12, 12, 0.5),target + vslider("v:master_me/t:expert/h:[5]mscomp/h:[2]high band/[2][unit:dB][symbol:mscomp_high_threshold]high tar-thresh", -12, -12, 12, 0.5):LinArray(B);
att_array = (vslider("v:master_me/t:expert/h:[5]mscomp/h:[1]low band/[3][unit:ms][symbol:mscomp_low_attack]low attack", 15, 0, 100, 0.1)*0.001,vslider("v:master_me/t:expert/h:[5]mscomp/h:[2]high band/[3][unit:ms][symbol:mscomp_high_attack]high attack", 3, 0, 100, 0.1)*0.001):LogArray(B);
rel_array = (vslider("v:master_me/t:expert/h:[5]mscomp/h:[1]low band/[4][unit:ms][symbol:mscomp_low_release]low release", 150, 1, 1000, 1)*0.001,vslider("v:master_me/t:expert/h:[5]mscomp/h:[2]high band/[4][unit:ms][symbol:mscomp_high_release]high release", 30, 1, 1000, 1)*0.001):LogArray(B);
knee_array = (vslider("v:master_me/t:expert/h:[5]mscomp/h:[1]low band/[5][unit:dB][symbol:mscomp_low_knee]low knee", 12, 0, 30, 0.1),vslider("v:master_me/t:expert/h:[5]mscomp/h:[2]high band/[5][unit:dB][symbol:mscomp_high_knee]high knee", 12, 0, 30, 0.1)):LinArray(B);
link_array = (vslider("v:master_me/t:expert/h:[5]mscomp/h:[1]low band/[6][unit:%][integer][symbol:mscomp_low_link]low link", 60, 0, 100, 1)*0.01,vslider("v:master_me/t:expert/h:[5]mscomp/h:[2]high band/[6][unit:%][integer][symbol:mscomp_high_link]high link", 30, 0, 100, 1)*0.01):LinArray(B);
crossoverFreqs = LogArray(B-1,fl,fh);
mscomp_outGain = vslider("v:master_me/t:expert/h:[5]mscomp/h:[3]out/[3][unit:dB][symbol:mscomp_output_gain]makeup", 1, -6, 6, 0.5):ba.db2linear:si.smoo;
LinArray(N,bottom,top) = par(i,N, ((top-bottom)*(i/(N-1)))+bottom);
LogArray(N,bottom,top) = par(i,N, pow((pow((t/b),1/(N-1))),i)*b)
with {
b = bottom:max(ma.EPSILON);
t = top:max(ma.EPSILON);
};
prePost = 1;
};
limiter_rms_bp = bp2(checkbox("v:master_me/t:expert/h:[7]limiter/[0]limiter bypass[symbol:limiter_bypass]"),limiter_rms);
limiter_rms = co.RMS_FBFFcompressor_N_chan(strength,thresh,att,rel,knee,0,1,fffb,limiter_meter,2) : post_gain with{
strength = vslider("v:master_me/t:expert/h:[7]limiter/[1][unit:%][integer][symbol:limiter_strength]limiter strength", 80, 0, 100, 1) *0.01;
thresh = target + vslider("v:master_me/t:expert/h:[7]limiter/[2][symbol:limiter_threshold][unit:dB]limiter tar-thresh",6,-12,12,1);
att = vslider("v:master_me/t:expert/h:[7]limiter/[3][unit:ms][symbol:limiter_attack]limiter attack",1,0,100,1)*0.001;
rel = vslider("v:master_me/t:expert/h:[7]limiter/[4][unit:ms][symbol:limiter_release]limiter release",40,1,400,1)*0.001;
knee = vslider("v:master_me/t:expert/h:[7]limiter/[5][symbol:limiter_knee][unit:dB]limiter knee",8,0,12,1);
fffb = vslider ("v:master_me/t:expert/h:[7]limiter/[6][unit:%][integer][symbol:limiter_fffb]limiter ff-fb",50,0,100,1)*0.01;
post_gain = par(i,Nch,_ * limiter_postgain) with {
};
limiter_postgain = vslider("v:master_me/t:expert/h:[7]limiter/[8][unit:dB][symbol:limiter_makeup]limiter makeup", init_limiter_postgain,-10,+10,0.5) : ba.db2linear:si.smoo;
limiter_meter = _ <: attach(ba.linear2db : vbargraph("v:master_me/t:expert/h:[7]limiter/[9][unit:dB][symbol:limiter_gain_reduction]limiter gain reduction",-12,0));
};
brickwall_no_latency_bp = bp2(checkbox("v:master_me/t:expert/h:[8]brickwall/[1][symbol:brickwall_bypass]brickwall bypass"),brickwall_no_latency);
brickwall_no_latency =
co.FFcompressor_N_chan(1,threshLim,att,rel,knee,0,link,meter_brickwall,2)
with {
threshLim = vslider("v:master_me/t:expert/h:[8]brickwall/[3]brickwall ceiling[unit:dB][symbol:brickwall_ceiling]",init_brickwall_ceiling,-6,-0,0.1);
att = 0;
rel = vslider("v:master_me/t:expert/h:[8]brickwall/[4]brickwall release[unit:ms][symbol:brickwall_release]",init_brickwall_release,5,100,1) *0.001;
knee = 0;
link = 1;
meter_brickwall =
_<: _,( ba.linear2db:vbargraph("v:master_me/t:expert/h:[8]brickwall/lim[unit:dB][symbol:brickwall_limit]",-20,0)) : attach;
FFcompressor_N_chan(strength,thresh,att,rel,knee,prePost,link,meter,N) =
si.bus(N) <: (peak_compression_gain_N_chan_db(strength,thresh,att,rel,knee,prePost,link,N),si.bus(N)) : ro.interleave(N,2) : par(i,N,(meter: ba.db2linear)*_);
};
lk2_var(Tg)= par(i,2,kfilter : zi) :> 4.342944819 * log(max(1e-12)) : -(0.691) with {
maxSR = 192000;
sump(n) = ba.slidingSump(n, Tg*maxSR)/max(n,ma.EPSILON);
envelope(period, x) = x * x : sump(rint(period * ma.SR));
kfilter = ebu.prefilter;
};
lk2 = lk2_var(3);
lk2_short = lk2_var(0.4);
lufs_meter_in(l,r) = l,r <: l, attach(r, (lk2 : vbargraph("v:master_me/h:easy/[2][unit:dB][symbol:lufs_in]in lufs-s",-70,0))) : _,_;
lufs_meter_out(l,r) = l,r <: l, attach(r, (lk2 : vbargraph("v:master_me/h:easy/[7][unit:dB][symbol:lufs_out]out lufs-s",-70,0))) : _,_;
peak_compression_gain_mono_db(strength,thresh,att,rel,knee,prePost) =
abs : ba.bypass1(prePost,si.onePoleSwitching(att,rel)) : ba.linear2db : gain_computer(strength,thresh,knee) : ba.bypass1((prePost !=1),si.onePoleSwitching(rel,att))
with {
gain_computer(strength,thresh,knee,level) =
select3((level>(thresh-(knee/2)))+(level>(thresh+(knee/2))),
0,
((level-thresh+(knee/2)) : pow(2)/(2*max(ma.EPSILON,knee))),
(level-thresh))
: max(0)*-strength;
};
peak_compression_gain_N_chan_db(strength,thresh,att,rel,knee,prePost,link,1) =
peak_compression_gain_mono_db(strength,thresh,att,rel,knee,prePost);
peak_compression_gain_N_chan_db(strength,thresh,att,rel,knee,prePost,link,N) =
par(i, N, peak_compression_gain_mono_db(strength,thresh,att,rel,knee,prePost))
<: (si.bus(N),(ba.parallelMin(N) <: si.bus(N))) : ro.interleave(N,2) : par(i,N,(it.interpolate_linear(link)));
|
9b37f13c48a8639aa1f9ad5faed99479796f9512d0df87dc9090db993a7ec126 | s-e-a-m/faust-libraries | dcblocker.dsp | import("stdfaust.lib");
process = no.noise : fi.dcblocker;
| https://raw.githubusercontent.com/s-e-a-m/faust-libraries/9120cccb9335f42407062eb4bf149188d8018b07/examples/app/dcblocker.dsp | faust | import("stdfaust.lib");
process = no.noise : fi.dcblocker;
|
|
d87ff7fd74b6d845f71569772ca4b00692ac4d77a399b8bb8c053982ad8fbcf4 | s-e-a-m/faust-libraries | csound-tone.dsp | import("stdfaust.lib");
tone(cf) = _*c1 : (+~_ *(c2))
with{
b = 2 - (cos(2*ma.PI*(cf/ma.SR)));
c1 = 1-c2;
c2 = b - sqrt((b*b)-1.0);
};
process = no.noise : tone(1000);
| https://raw.githubusercontent.com/s-e-a-m/faust-libraries/9120cccb9335f42407062eb4bf149188d8018b07/examples/app/csound-tone.dsp | faust | import("stdfaust.lib");
tone(cf) = _*c1 : (+~_ *(c2))
with{
b = 2 - (cos(2*ma.PI*(cf/ma.SR)));
c1 = 1-c2;
c2 = b - sqrt((b*b)-1.0);
};
process = no.noise : tone(1000);
|
|
c4bd3ad477cd0f306a96c94b2285420f9fbd6b31700ad7165d0c1c639b88498c | s-e-a-m/faust-libraries | balance.dsp | import("stdfaust.lib");
p = hslider("balance", 0.5,0,1,0.01);
psweep = ba.sweep(1001,1)/1000;
linbal(p) = _*(1-p),_*(p);
quadbal(p) = _*sqrt(1-p),_*sqrt(p);
normbal(p) = _*(min(1,2*(1-p))),_*(min(1,2*(p)));
norqbal(p) = _*(min(1,2*sqrt(1-p))),_*(min(1,2*sqrt(p)));
//process = 2*(1-p) : min(1);
process = 1<:linbal(psweep),quadbal(psweep),normbal(psweep) : +,+,+;
| https://raw.githubusercontent.com/s-e-a-m/faust-libraries/9120cccb9335f42407062eb4bf149188d8018b07/examples/app/balance.dsp | faust | process = 2*(1-p) : min(1); | import("stdfaust.lib");
p = hslider("balance", 0.5,0,1,0.01);
psweep = ba.sweep(1001,1)/1000;
linbal(p) = _*(1-p),_*(p);
quadbal(p) = _*sqrt(1-p),_*sqrt(p);
normbal(p) = _*(min(1,2*(1-p))),_*(min(1,2*(p)));
norqbal(p) = _*(min(1,2*sqrt(1-p))),_*(min(1,2*sqrt(p)));
process = 1<:linbal(psweep),quadbal(psweep),normbal(psweep) : +,+,+;
|
b8a7d907907741ca6cdbeabc18bda39bb74954c68c61ec211b2399277176d5a1 | s-e-a-m/faust-libraries | ChopperRM.dsp | import("stdfaust.lib");
//process = os.osc(100)*(0.1), os.osc(1000) : ba.peakholder(150),_;
// t = threshold (peakholder)
overdrive(x,t) = x <: ma.tanh((_*t))+(1-t)*_;
// c = carrier
// m = modulator
// t = envelope follower time sec
choppeRM(t,c,m) = c * overdrive(m,ba.peakholder(ba.sec2samp(t)));
process = os.osc(500), os.osc(0.01) : choppeRM(0.45);
| https://raw.githubusercontent.com/s-e-a-m/faust-libraries/631badbcb942c9ecec9a8628f7b66f0cb181b4e2/examples/ChopperRM.dsp | faust | process = os.osc(100)*(0.1), os.osc(1000) : ba.peakholder(150),_;
t = threshold (peakholder)
c = carrier
m = modulator
t = envelope follower time sec | import("stdfaust.lib");
overdrive(x,t) = x <: ma.tanh((_*t))+(1-t)*_;
choppeRM(t,c,m) = c * overdrive(m,ba.peakholder(ba.sec2samp(t)));
process = os.osc(500), os.osc(0.01) : choppeRM(0.45);
|
6d075d4bc0ff133970fffdb35337feefb04ef6730f7b6a2dddd82224a846e832 | s-e-a-m/faust-libraries | iid.dsp | import("stdfaust.lib");
iid(f,rad) = 1.0+pow((f/1000),0.8)*sin(rad);
deg2rad = *(ma.PI/180);
f = hslider("freq", 1000,1,22000,1);
rad = hslider("deg", 0,-45,45,1) : deg2rad;
iidlin = iid(f,rad) : ba.log2LinGain;
process = no.noise:fi.lowpass(4,f):fi.highpass(4,f)<:_*(ba.db2linear(-iid(f,rad))),_*(ba.db2linear(iid(f,rad))) : *(0.25),*(0.25);
| https://raw.githubusercontent.com/s-e-a-m/faust-libraries/9120cccb9335f42407062eb4bf149188d8018b07/examples/app/iid.dsp | faust | import("stdfaust.lib");
iid(f,rad) = 1.0+pow((f/1000),0.8)*sin(rad);
deg2rad = *(ma.PI/180);
f = hslider("freq", 1000,1,22000,1);
rad = hslider("deg", 0,-45,45,1) : deg2rad;
iidlin = iid(f,rad) : ba.log2LinGain;
process = no.noise:fi.lowpass(4,f):fi.highpass(4,f)<:_*(ba.db2linear(-iid(f,rad))),_*(ba.db2linear(iid(f,rad))) : *(0.25),*(0.25);
|
|
b49afef86174ebde707f538219ca285408964cb6d825c1e1692ad0e74e3e7505 | s-e-a-m/faust-libraries | analogosc.dsp | import("stdfaust.lib");
//import("../../seam.lib");
f = 1000;
a = 21000;
analsaw(f,a) = saw(f,a)
with{
p(f) = os.lf_sawpos(f);
t(f) = abs(p(f) *(2) - (1)) -(0.5);
q(x) = x*x;
d(x) = x-x';
saw(f,a) = q(t(f)) <: q-_ : d : /(f/2) : *(a);
};
analtri(f,a) = tri(f,a)
with{
p(f) = os.lf_sawpos(f);
t(f) = abs(p(f) *(2) - (1)) -(0.5);
q(x) = x*x;
d(x) = x-x';
tri(f,a) = (t(f)) <: _-(abs*_) : d : /(f) : *(a);
};
analsquare(f,a) = square(f,a)
with{
p(f) = os.lf_sawpos(f);
t(f) = abs(p(f) *(2) - (1)) -(0.5);
q(x) = x*x;
d(x) = x-x';
square(f,a) = (t(f)) <: _-(abs*_) : /(f) : *(a) : d : /(f) : *(5000) : d : /(f) : *(4000) ;
};
process = analsaw(f,a), analtri(f,a), analsquare(f,a);
| https://raw.githubusercontent.com/s-e-a-m/faust-libraries/9120cccb9335f42407062eb4bf149188d8018b07/examples/app/analogosc.dsp | faust | import("../../seam.lib"); | import("stdfaust.lib");
f = 1000;
a = 21000;
analsaw(f,a) = saw(f,a)
with{
p(f) = os.lf_sawpos(f);
t(f) = abs(p(f) *(2) - (1)) -(0.5);
q(x) = x*x;
d(x) = x-x';
saw(f,a) = q(t(f)) <: q-_ : d : /(f/2) : *(a);
};
analtri(f,a) = tri(f,a)
with{
p(f) = os.lf_sawpos(f);
t(f) = abs(p(f) *(2) - (1)) -(0.5);
q(x) = x*x;
d(x) = x-x';
tri(f,a) = (t(f)) <: _-(abs*_) : d : /(f) : *(a);
};
analsquare(f,a) = square(f,a)
with{
p(f) = os.lf_sawpos(f);
t(f) = abs(p(f) *(2) - (1)) -(0.5);
q(x) = x*x;
d(x) = x-x';
square(f,a) = (t(f)) <: _-(abs*_) : /(f) : *(a) : d : /(f) : *(5000) : d : /(f) : *(4000) ;
};
process = analsaw(f,a), analtri(f,a), analsquare(f,a);
|
73111d911b15383d014293da2af68e936bcf20f9ce01b9906c8a9b2050ff889a | s-e-a-m/faust-libraries | oscillators.dsp | import("stdfaust.lib");
//import("../../seam.lib");
f = 10000;
vcs3osc1(f,s,sl,pl) = shaped, saw
with{
phasor = os.lf_sawpos(f);
sine = sin(phasor*2*ma.PI) : *(0.5*sin(s*(ma.PI)));
wsine = sin(phasor*(-1)*ma.PI) : +(0.5) : *(cos(s*(ma.PI)));
shaped = (sine+wsine)*sl;
saw = (phasor-(0.5))*pl;
};
process = os.osc(f),os.osci(f),os.oscrs(f),os.quadosc(f), vcs3osc1(f,0.5,1,1);
| https://raw.githubusercontent.com/s-e-a-m/faust-libraries/9120cccb9335f42407062eb4bf149188d8018b07/examples/app/oscillators.dsp | faust | import("../../seam.lib"); | import("stdfaust.lib");
f = 10000;
vcs3osc1(f,s,sl,pl) = shaped, saw
with{
phasor = os.lf_sawpos(f);
sine = sin(phasor*2*ma.PI) : *(0.5*sin(s*(ma.PI)));
wsine = sin(phasor*(-1)*ma.PI) : +(0.5) : *(cos(s*(ma.PI)));
shaped = (sine+wsine)*sl;
saw = (phasor-(0.5))*pl;
};
process = os.osc(f),os.osci(f),os.oscrs(f),os.quadosc(f), vcs3osc1(f,0.5,1,1);
|
d6f3407322af51cbf608d9a6b462b3fb386a1316f2b6841f758aba311567b900 | s-e-a-m/faust-libraries | crossover.dsp | import("stdfaust.lib");
crossover(freq) = _ <: low,high
with{
freqtorad = freq*2*ma.PI/ma.SR;
fcoeff1 = (sin(freqtorad)-1)/(cos(freqtorad));
fcoeff2 = (fcoeff1+1)/2;
block1(x) = loop~_: *(fcoeff1),_: +
with{
loop = _ <: *(fcoeff1),_: x-_,_;
};
block2(x) = loop~_: !,_
with{
loop = _ <: x-_,_ : *(fcoeff2),_ <:_+_,_,! <: +,_,!;
};
low = block2 : block2;
high = _ <: block1 - low;
};
process = os.osc(ba.sweep((ma.SR/2)-1,1)) : crossover(15000) <: _,_,+;
| https://raw.githubusercontent.com/s-e-a-m/faust-libraries/9120cccb9335f42407062eb4bf149188d8018b07/examples/app/crossover.dsp | faust | import("stdfaust.lib");
crossover(freq) = _ <: low,high
with{
freqtorad = freq*2*ma.PI/ma.SR;
fcoeff1 = (sin(freqtorad)-1)/(cos(freqtorad));
fcoeff2 = (fcoeff1+1)/2;
block1(x) = loop~_: *(fcoeff1),_: +
with{
loop = _ <: *(fcoeff1),_: x-_,_;
};
block2(x) = loop~_: !,_
with{
loop = _ <: x-_,_ : *(fcoeff2),_ <:_+_,_,! <: +,_,!;
};
low = block2 : block2;
high = _ <: block1 - low;
};
process = os.osc(ba.sweep((ma.SR/2)-1,1)) : crossover(15000) <: _,_,+;
|
|
f24d8556de408c424e23b29dd812b09d47a0d5df3694259118070ed33d7abfc6 | s-e-a-m/faust-libraries | phaser.dsp | import("stdfaust.lib");
import("../../seam.lib");
p_g(x) = hgroup("PHASER",x);
freq = p_g(vslider("[01]LFO[scale:exp][style:knob]", 0.001, 0, 30, 0.001)) : si.smoo;
fb = p_g(vslider("[02]FBACK[style:knob]", 0.0, 0, 1, 0.01) : si.smoo);
alseq(D,g) = seq(i,4,ap(D,g))
with{
ap(D,g) = (+ <: de.fdelay((ma.SR/2),D),*(-g)) ~ *(g) : mem,_ : +;
};
lfo = sin(phasor*2*ma.PI)
with{
phasor = os.lf_sawpos(freq);
};
process = phaser(_,1,lfo);
| https://raw.githubusercontent.com/s-e-a-m/faust-libraries/9120cccb9335f42407062eb4bf149188d8018b07/examples/nono/phaser.dsp | faust | import("stdfaust.lib");
import("../../seam.lib");
p_g(x) = hgroup("PHASER",x);
freq = p_g(vslider("[01]LFO[scale:exp][style:knob]", 0.001, 0, 30, 0.001)) : si.smoo;
fb = p_g(vslider("[02]FBACK[style:knob]", 0.0, 0, 1, 0.01) : si.smoo);
alseq(D,g) = seq(i,4,ap(D,g))
with{
ap(D,g) = (+ <: de.fdelay((ma.SR/2),D),*(-g)) ~ *(g) : mem,_ : +;
};
lfo = sin(phasor*2*ma.PI)
with{
phasor = os.lf_sawpos(freq);
};
process = phaser(_,1,lfo);
|
|
7d010ca1797e9bb8a8eece5b4ae2766e95d748472a8114a10ff35f6c900c77ba | s-e-a-m/faust-libraries | upt.dsp | import("stdfaust.lib");
// Universal Pitch Tracker
// From faust documentation
a = hslider("n cycles", 1, 1, 100, 1);
upt(a,x) = a*ma.SR / max(M,1) - a * ma.SR * (M == 0)
with{
// positive zero crossing
xcr = (x' < 0) & (x >= 0);
// counts of crossing
xcnt = +(xcr)~ %(int(a));
// windows of counts
wnd = xcr & (xcnt == a);
// counting samples inside windows
N = (+(1) : *(1 - wnd)) ~ _;
// sample and hold the number of cycles
M = ba.sAndH(N == 0, N' + 1);
};
ptrack(x,a) = x : fi.dcblockerat(80) : (fi.lowpass(1) : upt(a)) ~ max(100);
process = ptrack;
| https://raw.githubusercontent.com/s-e-a-m/faust-libraries/9120cccb9335f42407062eb4bf149188d8018b07/examples/max-objects/upt.dsp | faust | Universal Pitch Tracker
From faust documentation
positive zero crossing
counts of crossing
windows of counts
counting samples inside windows
sample and hold the number of cycles | import("stdfaust.lib");
a = hslider("n cycles", 1, 1, 100, 1);
upt(a,x) = a*ma.SR / max(M,1) - a * ma.SR * (M == 0)
with{
xcr = (x' < 0) & (x >= 0);
xcnt = +(xcr)~ %(int(a));
wnd = xcr & (xcnt == a);
N = (+(1) : *(1 - wnd)) ~ _;
M = ba.sAndH(N == 0, N' + 1);
};
ptrack(x,a) = x : fi.dcblockerat(80) : (fi.lowpass(1) : upt(a)) ~ max(100);
process = ptrack;
|
edd8b5519455619040d2dadb6beffdce9db85655a385eed548f68054905def85 | s-e-a-m/faust-libraries | hrtf.dsp | import("stdfaust.lib");
f = hslider("Band Pass & IID Frequency", 1000,1,22000,1) : si.smoo;
r = hslider("Angle", 0,-90,90,1) : deg2rad : si.smoo;
deg2rad = *(ma.PI/180);
iid(f,r) = (pow((f/1000),0.8)*sin(r)); // manca il +1
itd(r) = 0.09*(r+sin(r))/344 : ba.sec2samp;
//itdpan(r) = _ <: de.fdelayltv(16,256,max(itd(r),0)), de.fdelayltv(16,256,(max(-itd(r),0)));
itdpan(r) = _ <: de.delay(256,int(max(itd(r),0))), de.delay(256,int((max(-itd(r),0))));
iidpan(f,r) = _*(ba.db2linear(-iid(f,r))), _*(ba.db2linear(iid(f,r)));
process = no.noise*0.25 : fi.lowpass(4,f) : fi.highpass(4,f) : itdpan(r) : iidpan(f,r)
| https://raw.githubusercontent.com/s-e-a-m/faust-libraries/9120cccb9335f42407062eb4bf149188d8018b07/examples/app/hrtf.dsp | faust | manca il +1
itdpan(r) = _ <: de.fdelayltv(16,256,max(itd(r),0)), de.fdelayltv(16,256,(max(-itd(r),0))); | import("stdfaust.lib");
f = hslider("Band Pass & IID Frequency", 1000,1,22000,1) : si.smoo;
r = hslider("Angle", 0,-90,90,1) : deg2rad : si.smoo;
deg2rad = *(ma.PI/180);
itd(r) = 0.09*(r+sin(r))/344 : ba.sec2samp;
itdpan(r) = _ <: de.delay(256,int(max(itd(r),0))), de.delay(256,int((max(-itd(r),0))));
iidpan(f,r) = _*(ba.db2linear(-iid(f,r))), _*(ba.db2linear(iid(f,r)));
process = no.noise*0.25 : fi.lowpass(4,f) : fi.highpass(4,f) : itdpan(r) : iidpan(f,r)
|
949fe76fe38796f6963e6052fd636b5e762d004e891ed5c02587f124af3187ef | s-e-a-m/faust-libraries | phasersinth.dsp | import("stdfaust.lib");
p_g(x) = hgroup("PHASER",x);
lff = p_g(vslider("[01]LFO[style:knob]", 0.358, 0, 42, 0.001)) : si.smoo;
fbk = p_g(vslider("[02]FBACK[style:knob]", -0.689, -0.999, 0.999, 0.001) : si.smoo);
del = p_g(nentry("[03]DELAY[style:knob]", 1, 0, 100, 1));
phaser(N,x,d,g,fb) = x <: _,(+:alseq(N,d,g))~*(fb):> _
with{
ap(d,g) = (+ <: de.fdelay((ma.SR/2),d),*(-g)) ~ *(g) : mem,_ : +;
alseq(N,d,g) = seq(i,N,ap(d,g));
};
oscf = hslider("[01]SAWTOOTH", 16, 1, 1000, 1) : si.smoo;
lfo = os.osc(lff);
chopper = min(0.707) : max(-0.707);
process = os.sawtooth(oscf)*(0.25) : fi.lowpass(8,10000) : phaser(16,_,del,lfo,fbk) : chopper : fi.lowpass(8,15000) : chopper : fi.lowpass6e(20000) <:_,_;
| https://raw.githubusercontent.com/s-e-a-m/faust-libraries/9120cccb9335f42407062eb4bf149188d8018b07/examples/nono/phasersinth.dsp | faust | import("stdfaust.lib");
p_g(x) = hgroup("PHASER",x);
lff = p_g(vslider("[01]LFO[style:knob]", 0.358, 0, 42, 0.001)) : si.smoo;
fbk = p_g(vslider("[02]FBACK[style:knob]", -0.689, -0.999, 0.999, 0.001) : si.smoo);
del = p_g(nentry("[03]DELAY[style:knob]", 1, 0, 100, 1));
phaser(N,x,d,g,fb) = x <: _,(+:alseq(N,d,g))~*(fb):> _
with{
ap(d,g) = (+ <: de.fdelay((ma.SR/2),d),*(-g)) ~ *(g) : mem,_ : +;
alseq(N,d,g) = seq(i,N,ap(d,g));
};
oscf = hslider("[01]SAWTOOTH", 16, 1, 1000, 1) : si.smoo;
lfo = os.osc(lff);
chopper = min(0.707) : max(-0.707);
process = os.sawtooth(oscf)*(0.25) : fi.lowpass(8,10000) : phaser(16,_,del,lfo,fbk) : chopper : fi.lowpass(8,15000) : chopper : fi.lowpass6e(20000) <:_,_;
|
|
26ee82c62397653902aa58626d9316d79fb5ae00c1cc27f1640fe08acba278ab | s-e-a-m/faust-libraries | aweight.dsp | import("stdfaust.lib");
// %Sampling Rate
// Fs = 48000;
//
// %Analog A-weighting filter according to IEC/CD 1672.
f1 = 20.598997;
f2 = 107.65265;
f3 = 737.86223;
f4 = 12194.217;
A1000 = 1.9997;
// pi = 3.14159265358979;
// NUM = [ (2*pi*f4)^2*(10^(A1000/20)) 0 0 0 0 ];
// DEN = conv([1 +4*pi*f4 (2*pi*f4)^2],[1 +4*pi*f1 (2*pi*f1)^2]);
// DEN = conv(conv(DEN,[1 2*pi*f3]),[1 2*pi*f2]);
//
// %Bilinear transformation of analog design to get the digital filter.
// [b,a] = bilinear(NUM,DEN,Fs);
// _ : tf2s(b2,b1,b0,a1,a0,w1) : _
b0 = pow(2*ma.PI*f4,2)*pow(10,(A1000/20));
b1 = 0;
b2 = 0;
w1 = ma.PI*ma.SR/2;
//process = b0;
process = fi.tf2s(b2,b1,b0,a1,a0,w1);
| https://raw.githubusercontent.com/s-e-a-m/faust-libraries/9120cccb9335f42407062eb4bf149188d8018b07/examples/app/aweight.dsp | faust | %Sampling Rate
Fs = 48000;
%Analog A-weighting filter according to IEC/CD 1672.
pi = 3.14159265358979;
NUM = [ (2*pi*f4)^2*(10^(A1000/20)) 0 0 0 0 ];
DEN = conv([1 +4*pi*f4 (2*pi*f4)^2],[1 +4*pi*f1 (2*pi*f1)^2]);
DEN = conv(conv(DEN,[1 2*pi*f3]),[1 2*pi*f2]);
%Bilinear transformation of analog design to get the digital filter.
[b,a] = bilinear(NUM,DEN,Fs);
_ : tf2s(b2,b1,b0,a1,a0,w1) : _
process = b0; | import("stdfaust.lib");
f1 = 20.598997;
f2 = 107.65265;
f3 = 737.86223;
f4 = 12194.217;
A1000 = 1.9997;
b0 = pow(2*ma.PI*f4,2)*pow(10,(A1000/20));
b1 = 0;
b2 = 0;
w1 = ma.PI*ma.SR/2;
process = fi.tf2s(b2,b1,b0,a1,a0,w1);
|
077ccab40141609f5a060cff550241d6d1a8b69efb79afb9ef36244e6c70e645 | s-e-a-m/faust-libraries | filtri.dsp | import("stdfaust.lib");
tone(freq) = _*c1 : (+~*(c2))
with{
b = 2 - (cos(2*ma.PI*(freq/ma.SR)));
c1 = 1-c2;
c2 = b - sqrt((b*b)-1.0);
};
g = 0.9;
freq = hslider("freq", 100,1,2000,1);
a(fc) = cos((2*ma.PI*fc)/ma.SR)-1+sqrt((0.5*(1+cos(2*((2*ma.PI*fc)/ma.SR))))-4*cos((2*ma.PI*fc)/ma.SR)+3);
onesample = (_<:mem+_)/2;
cy_onepole(fc) = *(a) : +~*(ac)
with{
a= sin(abs(fc)*2*ma.PI/ma.SR);
ac = 1-a;
clip(a,b) = max(a) : min(b);
};
onepole(fc) = *(a) : +~*(1-a)
with{
a = cos((2*ma.PI*fc)/ma.SR)-1+sqrt((0.5*(1+cos(2*((2*ma.PI*fc)/ma.SR))))-4*cos((2*ma.PI*fc)/ma.SR)+3);
};
process = no.noise <: _, fi.pole(g), fi.zero(g),onesample,tone(freq),cy_onepole(freq),onepole(freq);
| https://raw.githubusercontent.com/s-e-a-m/faust-libraries/9120cccb9335f42407062eb4bf149188d8018b07/examples/app/filtri.dsp | faust | import("stdfaust.lib");
tone(freq) = _*c1 : (+~*(c2))
with{
b = 2 - (cos(2*ma.PI*(freq/ma.SR)));
c1 = 1-c2;
c2 = b - sqrt((b*b)-1.0);
};
g = 0.9;
freq = hslider("freq", 100,1,2000,1);
a(fc) = cos((2*ma.PI*fc)/ma.SR)-1+sqrt((0.5*(1+cos(2*((2*ma.PI*fc)/ma.SR))))-4*cos((2*ma.PI*fc)/ma.SR)+3);
onesample = (_<:mem+_)/2;
cy_onepole(fc) = *(a) : +~*(ac)
with{
a= sin(abs(fc)*2*ma.PI/ma.SR);
ac = 1-a;
clip(a,b) = max(a) : min(b);
};
onepole(fc) = *(a) : +~*(1-a)
with{
a = cos((2*ma.PI*fc)/ma.SR)-1+sqrt((0.5*(1+cos(2*((2*ma.PI*fc)/ma.SR))))-4*cos((2*ma.PI*fc)/ma.SR)+3);
};
process = no.noise <: _, fi.pole(g), fi.zero(g),onesample,tone(freq),cy_onepole(freq),onepole(freq);
|
|
d687a63629479d458fb188bc1839c709910e23956e7df660f3596a7b7b0731a3 | s-e-a-m/1987-nono-risonanze-erranti | 1987nlre-main.dsp | import("stdfaust.lib");
import("../faust-libraries/seam.lib");
// ----------------------------------------------------------------- INSTRUMENTS
contr = vgroup("[01] CONTRALTO", chstrip);// <: hgroup("[90] CONTRALTO", (*(fader) : vmeter), sends));
flaut = vgroup("[02] FLAUTI", chstrip);// <: hgroup("[90] FLAUTI", (*(fader) : vmeter), sends));
btuba = vgroup("[03] TUBA", chstrip);// <: hgroup("[90] TUBA", (*(fader) : vmeter), sends));
csard = vgroup("[04] CAMPANE SARDE", chstrip);// <: hgroup("[90] CAMPANE SARDE", (*(fader) : vmeter), sends));
bongo = vgroup("[05] BONGOS", chstrip);// <: hgroup("[90] BONGOS", (*(fader) : vmeter), sends));
crota = vgroup("[06] CROTALI", chstrip);// <: hgroup("[90] CROTALI", (*(fader) : vmeter), sends));
instruments = si.bus(18) <: hgroup("[01] INSTRUMENTS", contr, flaut, btuba, csard, bongo, crota);// :> si.bus(8) ;
// ----------------------------------------------------------------------- SENDS
adel = checkbox("[01] DELAY") : si.smoo;
are4 = checkbox("[02] REVERB 4 SEC") : si.smoo;
ar80 = checkbox("[03] REVERB 10~80 SEC") : si.smoo;
ahar = checkbox("[04] HARMONIZER") : si.smoo;
aha1 = checkbox("[05] HALAPHON 1") : si.smoo;
aha2 = checkbox("[06] HALAPHON 2") : si.smoo;
aha3 = checkbox("[07] HALAPHON 3") : si.smoo;
dire = checkbox("[08] DIRECT") : si.smoo;
sends = vgroup("[99] SENDS" , *(adel), *(are4), *(ar80), *(ahar), *(aha1), *(aha2), *(aha3), *(dire)) ;
// ----------------------------------------------------------------- ELECTRONICS
// ---------------------------------------------------------------------- DELAYS
fbgroup(x) = hgroup("Feedback Delay", x);
fbgain1 = fbgroup(vslider("Fb 1", 0.,0.,1.,0.1) : si.smoo);
fbgain2 = fbgroup(vslider("Fb 3", 0.,0.,1.,0.1) : si.smoo);
fbgain3 = fbgroup(vslider("Fb 5", 0.,0.,1.,0.1) : si.smoo);
fbgain4 = fbgroup(vslider("Fb 7", 0.,0.,1.,0.1) : si.smoo);
D1 = ba.sec2samp(5.0);
D2 = ba.sec2samp(5.5);
D3 = ba.sec2samp(6.2);
D4 = ba.sec2samp(6.6);
D5 = ba.sec2samp(7.3);
D6 = ba.sec2samp(7.7);
D7 = ba.sec2samp(8.2);
D8 = ba.sec2samp(9.1);
dlbk = delbank : _, ro.cross(2), _, _, ro.cross(3) : si.bus(5), ro.cross(2), _; // route the delayed signal to 1 3 2 4 5 7 8 6
// ----------------------------------------------------------------- HALAPHON x3
// ---------------------------------- gli halaphon dovvrebbero stare in nono.lib
h1ramp = os.lf_sawpos(1.0/(hslider("[01] h1 time", 3.0, -23.0, 23.0, 0.01)));
h2ramp = os.lf_sawpos(1.0/(hslider("[01] h2 time", 3.0, -23.0, 23.0, 0.01)));
h3ramp = os.lf_sawpos(1.0/(hslider("[01] h3 time", 3.0, -23.0, 23.0, 0.01)));
h1dist = hslider("[02] h1 distance", 1, 0, 1, 0.01);
h2dist = hslider("[02] h2 distance", 1, 0, 1, 0.01);
h3dist = hslider("[02] h3 distance", 1, 0, 1, 0.01);
//gain = vslider("[1]", 0, -70, +0, 0.1) : ba.db2linear : si.smoo;
h1(v) = vgroup("Ch %v", hmeter);
h2(v) = vgroup("Ch %v", hmeter);
h3(v) = vgroup("Ch %v", hmeter);
h1meters = vgroup("h1 meters", par(i, 4, h1(i)));
h2meters = vgroup("h2 meters", par(i, 4, h2(i)));
h3meters = vgroup("h3 meters", par(i, 4, h3(i)));
hal1 = vgroup("h1", sp.spat(4, h1ramp, h1dist) : h1meters);
hal2 = vgroup("h2", sp.spat(4, h2ramp, h2dist) : h2meters);
hal3 = vgroup("h3", sp.spat(4, h3ramp, h3dist) : h3meters);
hals = hgroup("HALAPHONS", hal1, hal2, hal3 :> si.bus(4));
rev4 = _ <: rev_quattro(16,5,3);
rev80 = _ <: rev_ottanta(16,5,3);
ch1a8 = delbank, rev80 :> si.bus(8);
main = vgroup("[03] MAIN", sends, sends, sends, sends, sends, sends :> dlbk, rev4, rev80, harm, hals, direct);
outs = si.bus(10);
harm = harmonizer;
direct = _;
process = tgroup("PANELS", instruments <: main);// : meterbridge : main);
vmeter(x) = attach(x, envelop(x) : vbargraph("[02][unit:dB] Meter", -70, +5));
hmeter(x) = attach(x, envelop(x) : hbargraph("[05][unit:dB] Meter", -70, +5));
envelop = abs : max ~ -(1.0/ma.SR) : max(ba.db2linear(-70)) : ba.linear2db;
fader = vslider("[01] Volume", -96, -96, +12, 0.1) : ba.db2linear : si.smoo ;
| https://raw.githubusercontent.com/s-e-a-m/1987-nono-risonanze-erranti/ed20c3e3e67c65d778339a0883ab9aa7e78a418f/src/1987nlre-main.dsp | faust | ----------------------------------------------------------------- INSTRUMENTS
<: hgroup("[90] CONTRALTO", (*(fader) : vmeter), sends));
<: hgroup("[90] FLAUTI", (*(fader) : vmeter), sends));
<: hgroup("[90] TUBA", (*(fader) : vmeter), sends));
<: hgroup("[90] CAMPANE SARDE", (*(fader) : vmeter), sends));
<: hgroup("[90] BONGOS", (*(fader) : vmeter), sends));
<: hgroup("[90] CROTALI", (*(fader) : vmeter), sends));
:> si.bus(8) ;
----------------------------------------------------------------------- SENDS
----------------------------------------------------------------- ELECTRONICS
---------------------------------------------------------------------- DELAYS
route the delayed signal to 1 3 2 4 5 7 8 6
----------------------------------------------------------------- HALAPHON x3
---------------------------------- gli halaphon dovvrebbero stare in nono.lib
gain = vslider("[1]", 0, -70, +0, 0.1) : ba.db2linear : si.smoo;
: meterbridge : main); | import("stdfaust.lib");
import("../faust-libraries/seam.lib");
adel = checkbox("[01] DELAY") : si.smoo;
are4 = checkbox("[02] REVERB 4 SEC") : si.smoo;
ar80 = checkbox("[03] REVERB 10~80 SEC") : si.smoo;
ahar = checkbox("[04] HARMONIZER") : si.smoo;
aha1 = checkbox("[05] HALAPHON 1") : si.smoo;
aha2 = checkbox("[06] HALAPHON 2") : si.smoo;
aha3 = checkbox("[07] HALAPHON 3") : si.smoo;
dire = checkbox("[08] DIRECT") : si.smoo;
sends = vgroup("[99] SENDS" , *(adel), *(are4), *(ar80), *(ahar), *(aha1), *(aha2), *(aha3), *(dire)) ;
fbgroup(x) = hgroup("Feedback Delay", x);
fbgain1 = fbgroup(vslider("Fb 1", 0.,0.,1.,0.1) : si.smoo);
fbgain2 = fbgroup(vslider("Fb 3", 0.,0.,1.,0.1) : si.smoo);
fbgain3 = fbgroup(vslider("Fb 5", 0.,0.,1.,0.1) : si.smoo);
fbgain4 = fbgroup(vslider("Fb 7", 0.,0.,1.,0.1) : si.smoo);
D1 = ba.sec2samp(5.0);
D2 = ba.sec2samp(5.5);
D3 = ba.sec2samp(6.2);
D4 = ba.sec2samp(6.6);
D5 = ba.sec2samp(7.3);
D6 = ba.sec2samp(7.7);
D7 = ba.sec2samp(8.2);
D8 = ba.sec2samp(9.1);
h1ramp = os.lf_sawpos(1.0/(hslider("[01] h1 time", 3.0, -23.0, 23.0, 0.01)));
h2ramp = os.lf_sawpos(1.0/(hslider("[01] h2 time", 3.0, -23.0, 23.0, 0.01)));
h3ramp = os.lf_sawpos(1.0/(hslider("[01] h3 time", 3.0, -23.0, 23.0, 0.01)));
h1dist = hslider("[02] h1 distance", 1, 0, 1, 0.01);
h2dist = hslider("[02] h2 distance", 1, 0, 1, 0.01);
h3dist = hslider("[02] h3 distance", 1, 0, 1, 0.01);
h1(v) = vgroup("Ch %v", hmeter);
h2(v) = vgroup("Ch %v", hmeter);
h3(v) = vgroup("Ch %v", hmeter);
h1meters = vgroup("h1 meters", par(i, 4, h1(i)));
h2meters = vgroup("h2 meters", par(i, 4, h2(i)));
h3meters = vgroup("h3 meters", par(i, 4, h3(i)));
hal1 = vgroup("h1", sp.spat(4, h1ramp, h1dist) : h1meters);
hal2 = vgroup("h2", sp.spat(4, h2ramp, h2dist) : h2meters);
hal3 = vgroup("h3", sp.spat(4, h3ramp, h3dist) : h3meters);
hals = hgroup("HALAPHONS", hal1, hal2, hal3 :> si.bus(4));
rev4 = _ <: rev_quattro(16,5,3);
rev80 = _ <: rev_ottanta(16,5,3);
ch1a8 = delbank, rev80 :> si.bus(8);
main = vgroup("[03] MAIN", sends, sends, sends, sends, sends, sends :> dlbk, rev4, rev80, harm, hals, direct);
outs = si.bus(10);
harm = harmonizer;
direct = _;
vmeter(x) = attach(x, envelop(x) : vbargraph("[02][unit:dB] Meter", -70, +5));
hmeter(x) = attach(x, envelop(x) : hbargraph("[05][unit:dB] Meter", -70, +5));
envelop = abs : max ~ -(1.0/ma.SR) : max(ba.db2linear(-70)) : ba.linear2db;
fader = vslider("[01] Volume", -96, -96, +12, 0.1) : ba.db2linear : si.smoo ;
|
da78ed2f57846eee5dddd1e4dae14a35ebb3a3c68a201dea1f3048abf4ba5ed9 | s-e-a-m/faust-libraries | apcoeffcalc.dsp | import("stdfaust.lib");
// REFERENCES:
// https://www.dsprelated.com/showcode/182.php
// The following Matlab function generates allpass coefficients for an IIR filter.
// In this design, the magnitude response is unchanged but the phase response is very different.
// This code only supports 1st order or 2nd order variants.
// 1st order allpass filters shift the phase by 180 degrees, while the 2nd order shifts the phase by 360 degrees.
// The "center frequency" of Fc defines where the phase response should be halfway to the max shift.
// For example,
// If order=2 and Fc = 2000Hz, there would be a 180deg shift at 2kHz
// If order=1 and Fc = 5000Hz, there would be a 90deg shift at 5kHz
// Returns allpass filter coefficients.
// Currently only 1st and 2nd orders are supported.
// N is the order of the allpass
// FC is the frequency a the 90deg phase shift point
// FS is the sampling rate
// Q is quality factor describing the slope of phase shift
// Bilinear transform
// g(fc) = tan(ma.PI*(fc/ma.SR));
process = (ap1coeff(freq,qq) : ap1inspec), (ap2coeff(freq,qq) : ap2inspec) :> _ *(0.00001);
ap2coeff(fc,q) = g(fc), b0(fc,q), b1(fc,q), b2, a1(fc,q), a2(fc,q)
with{
g(fc) = tan(ma.PI*(fc/ma.SR));
d(q) = 1/q;
k(fc,q) = 1/(1 + (d(q)*g(fc)) + (g(fc)*g(fc)));
b0(fc,q) = (1 - (g(fc)*d(q)) + (g(fc)*g(fc))) * k(fc,q);
b1(fc,q) = 2 * ((g(fc)*g(fc)) - 1) * k(fc,q);
b2 = 1;
a1 = b1;
a2 = b0;
};
ap1coeff(fc,q) = g(fc), b0(fc,q), b1, b2, a1(fc,q), a2
with{
g(fc) = tan(ma.PI*(fc/ma.SR));
b0(fc,q) = (g(fc)-1)/(g(fc)+1);
b1 = 1;
b2 = 0;
a1 = b0;
a2 = 0;
};
freq = hslider("[01]Center Frequency", 2000,1,24000,1);
qq = hslider("[02]Q slope", 1,0.01,2,0.001);
graph_g(x) = hgroup("[03]COEFFICIENTS",x);
ap1inspec = graph_g(vgroup("[01]1st ORDER ALLPASS",
hbargraph("[00]g[style:numerical]", 0,10),
hbargraph("[01]b0[style:numerical]", -2,2),
hbargraph("[02]b1[style:numerical]", -2,2),
hbargraph("[03]b2[style:numerical]", -2,2),
hbargraph("[04]a1[style:numerical]", -2,2),
hbargraph("[05]a2[style:numerical]", -2,2)));
ap2inspec = graph_g(vgroup("[02]2nd ORDER ALLPASS",
hbargraph("[00]g[style:numerical]", 0,10),
hbargraph("[01]b0[style:numerical]", -2,2),
hbargraph("[02]b1[style:numerical]", -2,2),
hbargraph("[03]b2[style:numerical]", -2,2),
hbargraph("[04]a1[style:numerical]", -2,2),
hbargraph("[05]a2[style:numerical]", -2,2)));
| https://raw.githubusercontent.com/s-e-a-m/faust-libraries/9120cccb9335f42407062eb4bf149188d8018b07/examples/app/apcoeffcalc.dsp | faust | REFERENCES:
https://www.dsprelated.com/showcode/182.php
The following Matlab function generates allpass coefficients for an IIR filter.
In this design, the magnitude response is unchanged but the phase response is very different.
This code only supports 1st order or 2nd order variants.
1st order allpass filters shift the phase by 180 degrees, while the 2nd order shifts the phase by 360 degrees.
The "center frequency" of Fc defines where the phase response should be halfway to the max shift.
For example,
If order=2 and Fc = 2000Hz, there would be a 180deg shift at 2kHz
If order=1 and Fc = 5000Hz, there would be a 90deg shift at 5kHz
Returns allpass filter coefficients.
Currently only 1st and 2nd orders are supported.
N is the order of the allpass
FC is the frequency a the 90deg phase shift point
FS is the sampling rate
Q is quality factor describing the slope of phase shift
Bilinear transform
g(fc) = tan(ma.PI*(fc/ma.SR)); | import("stdfaust.lib");
process = (ap1coeff(freq,qq) : ap1inspec), (ap2coeff(freq,qq) : ap2inspec) :> _ *(0.00001);
ap2coeff(fc,q) = g(fc), b0(fc,q), b1(fc,q), b2, a1(fc,q), a2(fc,q)
with{
g(fc) = tan(ma.PI*(fc/ma.SR));
d(q) = 1/q;
k(fc,q) = 1/(1 + (d(q)*g(fc)) + (g(fc)*g(fc)));
b0(fc,q) = (1 - (g(fc)*d(q)) + (g(fc)*g(fc))) * k(fc,q);
b1(fc,q) = 2 * ((g(fc)*g(fc)) - 1) * k(fc,q);
b2 = 1;
a1 = b1;
a2 = b0;
};
ap1coeff(fc,q) = g(fc), b0(fc,q), b1, b2, a1(fc,q), a2
with{
g(fc) = tan(ma.PI*(fc/ma.SR));
b0(fc,q) = (g(fc)-1)/(g(fc)+1);
b1 = 1;
b2 = 0;
a1 = b0;
a2 = 0;
};
freq = hslider("[01]Center Frequency", 2000,1,24000,1);
qq = hslider("[02]Q slope", 1,0.01,2,0.001);
graph_g(x) = hgroup("[03]COEFFICIENTS",x);
ap1inspec = graph_g(vgroup("[01]1st ORDER ALLPASS",
hbargraph("[00]g[style:numerical]", 0,10),
hbargraph("[01]b0[style:numerical]", -2,2),
hbargraph("[02]b1[style:numerical]", -2,2),
hbargraph("[03]b2[style:numerical]", -2,2),
hbargraph("[04]a1[style:numerical]", -2,2),
hbargraph("[05]a2[style:numerical]", -2,2)));
ap2inspec = graph_g(vgroup("[02]2nd ORDER ALLPASS",
hbargraph("[00]g[style:numerical]", 0,10),
hbargraph("[01]b0[style:numerical]", -2,2),
hbargraph("[02]b1[style:numerical]", -2,2),
hbargraph("[03]b2[style:numerical]", -2,2),
hbargraph("[04]a1[style:numerical]", -2,2),
hbargraph("[05]a2[style:numerical]", -2,2)));
|
2e650a4560d7eae1807f59c8973f54166944716a9e17d997a0fa218e75e8876e | s-e-a-m/faust-libraries | BrickWall_FIR.dsp | import("stdfaust.lib");
process = no.noise*(1/sqrt(2)) <: fi.conv(fcoeff128), fi.conv(fcoeff512);
// 128 tap 0~20000 -0.01dB // 30000~96000 -151.58dB
fcoeff128 = (-9.468533418842961e-8,
-9.685596554535031e-7,
-0.000004208841192266951,
-0.000012392180684628816,
-0.000027937654411978685,
-0.00005064289903990197,
-0.0000747362056755014,
-0.00008774188407583004,
-0.0000738554480125488,
-0.000022806293000197887,
0.00005875131017904519,
0.00014051842764912514,
0.00017479735513695012,
0.00011903081917168253,
-0.00003262957210676914,
-0.00022688602647315349,
-0.0003589169560648292,
-0.0003193102359130598,
-0.00006532073186479516,
0.0003228842810824802,
0.0006466583070128328,
0.0006755871696714762,
0.00028874520213369105,
-0.00040603602792652034,
-0.0010643895682888947,
-0.0012534079518758063,
-0.0007077746110673444,
0.0004434510191751198,
0.0016411302227311,
0.0021340179707160963,
0.001413213513295285,
-0.000388863741045951,
-0.002409321699967528,
-0.0034192552145367555,
-0.002523022590015627,
0.0001793309559456949,
0.00340916346496241,
0.0052441555142615824,
0.00419760533447464,
0.0002720320985795238,
-0.0046996163811689525,
-0.007807817026985446,
-0.0066774719816107605,
-0.0010946978488655876,
0.006384611803980304,
0.01145022303310558,
0.010379723438582922,
0.002510578839477507,
-0.008681999211993799,
-0.016864477349388556,
-0.01617665145030371,
-0.0049870021285975145,
0.012136324200740308,
0.02580178394925959,
0.026389781943375788,
0.009831548223328235,
-0.01850863585000349,
-0.04438260114330496,
-0.05012939804956271,
-0.02296828203994639,
0.03776037787238254,
0.11819046409140928,
0.19407130089951088,
0.2400451270880761,
0.2400451270880761,
0.19407130089951088,
0.11819046409140928,
0.03776037787238254,
-0.02296828203994639,
-0.05012939804956271,
-0.04438260114330496,
-0.01850863585000349,
0.009831548223328235,
0.026389781943375788,
0.02580178394925959,
0.012136324200740308,
-0.0049870021285975145,
-0.01617665145030371,
-0.016864477349388556,
-0.008681999211993799,
0.002510578839477507,
0.010379723438582922,
0.01145022303310558,
0.006384611803980304,
-0.0010946978488655876,
-0.0066774719816107605,
-0.007807817026985446,
-0.0046996163811689525,
0.0002720320985795238,
0.00419760533447464,
0.0052441555142615824,
0.00340916346496241,
0.0001793309559456949,
-0.002523022590015627,
-0.0034192552145367555,
-0.002409321699967528,
-0.000388863741045951,
0.001413213513295285,
0.0021340179707160963,
0.0016411302227311,
0.0004434510191751198,
-0.0007077746110673444,
-0.0012534079518758063,
-0.0010643895682888947,
-0.00040603602792652034,
0.00028874520213369105,
0.0006755871696714762,
0.0006466583070128328,
0.0003228842810824802,
-0.00006532073186479516,
-0.0003193102359130598,
-0.0003589169560648292,
-0.00022688602647315349,
-0.00003262957210676914,
0.00011903081917168253,
0.00017479735513695012,
0.00014051842764912514,
0.00005875131017904519,
-0.000022806293000197887,
-0.0000738554480125488,
-0.00008774188407583004,
-0.0000747362056755014,
-0.00005064289903990197,
-0.000027937654411978685,
-0.000012392180684628816,
-0.000004208841192266951,
-9.685596554535031e-7,
-9.468533418842961e-8);
// 512 tap 0~18000 -0.04dB // 20000~96000 -135.52dB
fcoeff512 = (6.5611120064741e-7,
0.0000024990413731060313,
0.000006709920019249853,
0.000014665485299706218,
0.000027759704113872594,
0.000046947123632940436,
0.00007219435110212107,
0.00010197045406799998,
0.00013296506405692025,
0.00016021966428594149,
0.0001777869397054776,
0.0001798983240233683,
0.0001624486838485872,
0.00012444885432572164,
0.00006900978014466542,
0.0000034548240117805463,
-0.00006167158341210529,
-0.0001146451854465505,
-0.0001452690258833084,
-0.00014758726520648616,
-0.00012182742201373023,
-0.0000748978714507466,
-0.00001910206548282819,
0.00003077578645232895,
0.00006134224479067903,
0.00006437676016596034,
0.00003938568152421362,
-0.000005951721060197305,
-0.00005775556510002483,
-0.00009991546633670767,
-0.0001189673696850863,
-0.00010840375511591261,
-0.00007100640542380898,
-0.000018322278191029778,
0.0000327292572722894,
0.00006518525962369516,
0.00006766213767459673,
0.00003841683819271467,
-0.000013612554606404697,
-0.00007132334905165914,
-0.00011488357144091307,
-0.00012840606753886815,
-0.00010564221751856481,
-0.00005266744013449131,
0.000013560774449206102,
0.00007052689993241687,
0.00009774441090392897,
0.00008408472748209093,
0.000032250986897577404,
-0.000041364381438849736,
-0.00011168176218105508,
-0.00015333048529977397,
-0.0001496693437298784,
-0.00009925566765097429,
-0.00001728865956342608,
0.00006881213187054002,
0.00012848576122249548,
0.00013880706336768587,
0.00009319802925686154,
0.000004805952128765003,
-0.00009701086269343048,
-0.00017626360049875499,
-0.00020290859224957454,
-0.00016406448423612055,
-0.00006972704505325081,
0.000049436340227195394,
0.00015191473192178938,
0.00019972192606696856,
0.00017237742379412106,
0.00007540018501277732,
-0.00006011283147977699,
-0.00018722467176768293,
-0.0002592482990683307,
-0.00024672558024133625,
-0.00014916878711638596,
0.000003032282577070967,
0.00015783112157413697,
0.00025918630959279515,
0.0002672325694196327,
0.00017375267635776997,
0.000007022564198116264,
-0.00017637136128863514,
-0.0003105254783280246,
-0.0003437206985666062,
-0.0002581081136312849,
-0.00007815978790389977,
0.00013585760980564868,
0.0003078643082470205,
0.0003728668079691373,
0.0003013267516592681,
0.00011193522001692501,
-0.00013254092512085633,
-0.00034577288734576186,
-0.00044814652306295223,
-0.00039625350218119236,
-0.00020074649441636518,
0.00007462819966279779,
0.00033349975614660677,
0.0004804040995529165,
0.00045579061487961725,
0.0002597440524087602,
-0.000044888518868950086,
-0.0003522164558194607,
-0.0005498518220032638,
-0.000559762673576442,
-0.0003686640544183455,
-0.000036239279694773266,
0.00032298672613826685,
0.0005788367843337743,
0.0006324312027730721,
0.00045405230523244645,
0.00009754683067488191,
-0.0003152241457482461,
-0.000635697009066903,
-0.000741801258348637,
-0.0005840865664185766,
-0.0002074716379722719,
0.00026059811298902576,
0.0006529006557137737,
0.0008219070787467884,
0.0006949269505895832,
0.0003044375266428588,
-0.00021877084225296994,
-0.000688922002081253,
-0.0009308845659317073,
-0.0008450386855041387,
-0.00044747757496758857,
0.00013042880657316742,
0.0006848862369229648,
0.0010111921309236573,
0.0009789535340545706,
0.0005834989433038773,
-0.00004655720970004229,
-0.0006904347947454804,
-0.001112128529647035,
-0.0011465109882953795,
-0.0007633240597847718,
-0.00008447849929857735,
0.0006538566388984201,
0.0011829493029413614,
0.001298905297959102,
0.0009406234907619334,
0.0002187143439839522,
-0.0006174899088277837,
-0.001265481866601203,
-0.00147854327407189,
-0.0011590449825712723,
-0.0004010157259882568,
0.0005359684742953369,
0.001315019648396165,
0.0016425565437941608,
0.0013783095569863582,
0.0005937163615131093,
-0.0004450883113208817,
-0.001366745819781136,
-0.0018268345571406308,
-0.001635900462226738,
-0.0008359985290231839,
0.00030470991886776715,
0.0013809008316847267,
0.001993441695362199,
0.0018967055064711817,
0.0010957275397486916,
-0.0001447817423371247,
-0.0013867230601602464,
-0.0021725345634200617,
-0.002192965907128954,
-0.0014074665189446152,
-0.00007076086069161776,
0.0013482540495408121,
0.002330066921305953,
0.002493857784355748,
0.0017438911244038267,
0.00031717314015613574,
-0.0012894822226075051,
-0.002491335649985195,
-0.0028274990249135133,
-0.0021362778890800242,
-0.0006278548865703581,
0.001176962325252346,
0.0026252073573151537,
0.0031667820352596285,
0.0025618862528111854,
0.0009831676080882252,
-0.0010297114694697164,
-0.00275286866174477,
-0.003537064702653459,
-0.003050588207539906,
-0.0014159074450005127,
0.0008150501970854479,
0.0028451386432172504,
0.003915039510995009,
0.0035852518772708404,
0.0019130206056427517,
-0.0005458363313298912,
-0.0029189421756346235,
-0.004324636867467832,
-0.004197078398962952,
-0.002510164701362271,
0.0001870430769625692,
0.002945412953226249,
0.00474689213991561,
0.004877186450890394,
0.003204631010660143,
0.00025787152154486276,
-0.0029362277907309955,
-0.005206691931028917,
-0.005663757985536049,
-0.004042326162741832,
-0.000832787309105563,
0.002860037614144054,
0.005692203886720774,
0.006564451422918256,
0.005042205205406679,
0.0015536328772254742,
-0.0027194578697420056,
-0.006234998043634213,
-0.007639779159462229,
-0.006281324068599404,
-0.002492045759421111,
0.0024724297480081627,
0.006839191351687776,
0.008940450642469941,
0.007837544410444519,
0.0037175807141864364,
-0.002097763670208974,
-0.007560619368740735,
-0.010601562470295747,
-0.009893435657140707,
-0.005399286280765232,
0.0015117009217628155,
0.008455339872564104,
0.012827651472205171,
0.012747287869350683,
0.007815223099430644,
-0.0005989095897443972,
-0.009688641348557946,
-0.016096949451513607,
-0.017090757048537655,
-0.011632055519078107,
-0.0009551271348762997,
0.01160418396582514,
0.021546160822924616,
0.024670059319148844,
0.018619954133524873,
0.004002919259576986,
-0.015335957854545971,
-0.03305881270986717,
-0.0419645123435617,
-0.036075371195295525,
-0.01257931819370945,
0.026971001326459777,
0.07661199315572478,
0.12716217272131602,
0.1683777440092382,
0.1915010760866921,
0.1915010760866921,
0.1683777440092382,
0.12716217272131602,
0.07661199315572478,
0.026971001326459777,
-0.01257931819370945,
-0.036075371195295525,
-0.0419645123435617,
-0.03305881270986717,
-0.015335957854545971,
0.004002919259576986,
0.018619954133524873,
0.024670059319148844,
0.021546160822924616,
0.01160418396582514,
-0.0009551271348762997,
-0.011632055519078107,
-0.017090757048537655,
-0.016096949451513607,
-0.009688641348557946,
-0.0005989095897443972,
0.007815223099430644,
0.012747287869350683,
0.012827651472205171,
0.008455339872564104,
0.0015117009217628155,
-0.005399286280765232,
-0.009893435657140707,
-0.010601562470295747,
-0.007560619368740735,
-0.002097763670208974,
0.0037175807141864364,
0.007837544410444519,
0.008940450642469941,
0.006839191351687776,
0.0024724297480081627,
-0.002492045759421111,
-0.006281324068599404,
-0.007639779159462229,
-0.006234998043634213,
-0.0027194578697420056,
0.0015536328772254742,
0.005042205205406679,
0.006564451422918256,
0.005692203886720774,
0.002860037614144054,
-0.000832787309105563,
-0.004042326162741832,
-0.005663757985536049,
-0.005206691931028917,
-0.0029362277907309955,
0.00025787152154486276,
0.003204631010660143,
0.004877186450890394,
0.00474689213991561,
0.002945412953226249,
0.0001870430769625692,
-0.002510164701362271,
-0.004197078398962952,
-0.004324636867467832,
-0.0029189421756346235,
-0.0005458363313298912,
0.0019130206056427517,
0.0035852518772708404,
0.003915039510995009,
0.0028451386432172504,
0.0008150501970854479,
-0.0014159074450005127,
-0.003050588207539906,
-0.003537064702653459,
-0.00275286866174477,
-0.0010297114694697164,
0.0009831676080882252,
0.0025618862528111854,
0.0031667820352596285,
0.0026252073573151537,
0.001176962325252346,
-0.0006278548865703581,
-0.0021362778890800242,
-0.0028274990249135133,
-0.002491335649985195,
-0.0012894822226075051,
0.00031717314015613574,
0.0017438911244038267,
0.002493857784355748,
0.002330066921305953,
0.0013482540495408121,
-0.00007076086069161776,
-0.0014074665189446152,
-0.002192965907128954,
-0.0021725345634200617,
-0.0013867230601602464,
-0.0001447817423371247,
0.0010957275397486916,
0.0018967055064711817,
0.001993441695362199,
0.0013809008316847267,
0.00030470991886776715,
-0.0008359985290231839,
-0.001635900462226738,
-0.0018268345571406308,
-0.001366745819781136,
-0.0004450883113208817,
0.0005937163615131093,
0.0013783095569863582,
0.0016425565437941608,
0.001315019648396165,
0.0005359684742953369,
-0.0004010157259882568,
-0.0011590449825712723,
-0.00147854327407189,
-0.001265481866601203,
-0.0006174899088277837,
0.0002187143439839522,
0.0009406234907619334,
0.001298905297959102,
0.0011829493029413614,
0.0006538566388984201,
-0.00008447849929857735,
-0.0007633240597847718,
-0.0011465109882953795,
-0.001112128529647035,
-0.0006904347947454804,
-0.00004655720970004229,
0.0005834989433038773,
0.0009789535340545706,
0.0010111921309236573,
0.0006848862369229648,
0.00013042880657316742,
-0.00044747757496758857,
-0.0008450386855041387,
-0.0009308845659317073,
-0.000688922002081253,
-0.00021877084225296994,
0.0003044375266428588,
0.0006949269505895832,
0.0008219070787467884,
0.0006529006557137737,
0.00026059811298902576,
-0.0002074716379722719,
-0.0005840865664185766,
-0.000741801258348637,
-0.000635697009066903,
-0.0003152241457482461,
0.00009754683067488191,
0.00045405230523244645,
0.0006324312027730721,
0.0005788367843337743,
0.00032298672613826685,
-0.000036239279694773266,
-0.0003686640544183455,
-0.000559762673576442,
-0.0005498518220032638,
-0.0003522164558194607,
-0.000044888518868950086,
0.0002597440524087602,
0.00045579061487961725,
0.0004804040995529165,
0.00033349975614660677,
0.00007462819966279779,
-0.00020074649441636518,
-0.00039625350218119236,
-0.00044814652306295223,
-0.00034577288734576186,
-0.00013254092512085633,
0.00011193522001692501,
0.0003013267516592681,
0.0003728668079691373,
0.0003078643082470205,
0.00013585760980564868,
-0.00007815978790389977,
-0.0002581081136312849,
-0.0003437206985666062,
-0.0003105254783280246,
-0.00017637136128863514,
0.000007022564198116264,
0.00017375267635776997,
0.0002672325694196327,
0.00025918630959279515,
0.00015783112157413697,
0.000003032282577070967,
-0.00014916878711638596,
-0.00024672558024133625,
-0.0002592482990683307,
-0.00018722467176768293,
-0.00006011283147977699,
0.00007540018501277732,
0.00017237742379412106,
0.00019972192606696856,
0.00015191473192178938,
0.000049436340227195394,
-0.00006972704505325081,
-0.00016406448423612055,
-0.00020290859224957454,
-0.00017626360049875499,
-0.00009701086269343048,
0.000004805952128765003,
0.00009319802925686154,
0.00013880706336768587,
0.00012848576122249548,
0.00006881213187054002,
-0.00001728865956342608,
-0.00009925566765097429,
-0.0001496693437298784,
-0.00015333048529977397,
-0.00011168176218105508,
-0.000041364381438849736,
0.000032250986897577404,
0.00008408472748209093,
0.00009774441090392897,
0.00007052689993241687,
0.000013560774449206102,
-0.00005266744013449131,
-0.00010564221751856481,
-0.00012840606753886815,
-0.00011488357144091307,
-0.00007132334905165914,
-0.000013612554606404697,
0.00003841683819271467,
0.00006766213767459673,
0.00006518525962369516,
0.0000327292572722894,
-0.000018322278191029778,
-0.00007100640542380898,
-0.00010840375511591261,
-0.0001189673696850863,
-0.00009991546633670767,
-0.00005775556510002483,
-0.000005951721060197305,
0.00003938568152421362,
0.00006437676016596034,
0.00006134224479067903,
0.00003077578645232895,
-0.00001910206548282819,
-0.0000748978714507466,
-0.00012182742201373023,
-0.00014758726520648616,
-0.0001452690258833084,
-0.0001146451854465505,
-0.00006167158341210529,
0.0000034548240117805463,
0.00006900978014466542,
0.00012444885432572164,
0.0001624486838485872,
0.0001798983240233683,
0.0001777869397054776,
0.00016021966428594149,
0.00013296506405692025,
0.00010197045406799998,
0.00007219435110212107,
0.000046947123632940436,
0.000027759704113872594,
0.000014665485299706218,
0.000006709920019249853,
0.0000024990413731060313,
6.5611120064741e-7);
| https://raw.githubusercontent.com/s-e-a-m/faust-libraries/9120cccb9335f42407062eb4bf149188d8018b07/examples/fir/BrickWall_FIR.dsp | faust | 128 tap 0~20000 -0.01dB // 30000~96000 -151.58dB
512 tap 0~18000 -0.04dB // 20000~96000 -135.52dB | import("stdfaust.lib");
process = no.noise*(1/sqrt(2)) <: fi.conv(fcoeff128), fi.conv(fcoeff512);
fcoeff128 = (-9.468533418842961e-8,
-9.685596554535031e-7,
-0.000004208841192266951,
-0.000012392180684628816,
-0.000027937654411978685,
-0.00005064289903990197,
-0.0000747362056755014,
-0.00008774188407583004,
-0.0000738554480125488,
-0.000022806293000197887,
0.00005875131017904519,
0.00014051842764912514,
0.00017479735513695012,
0.00011903081917168253,
-0.00003262957210676914,
-0.00022688602647315349,
-0.0003589169560648292,
-0.0003193102359130598,
-0.00006532073186479516,
0.0003228842810824802,
0.0006466583070128328,
0.0006755871696714762,
0.00028874520213369105,
-0.00040603602792652034,
-0.0010643895682888947,
-0.0012534079518758063,
-0.0007077746110673444,
0.0004434510191751198,
0.0016411302227311,
0.0021340179707160963,
0.001413213513295285,
-0.000388863741045951,
-0.002409321699967528,
-0.0034192552145367555,
-0.002523022590015627,
0.0001793309559456949,
0.00340916346496241,
0.0052441555142615824,
0.00419760533447464,
0.0002720320985795238,
-0.0046996163811689525,
-0.007807817026985446,
-0.0066774719816107605,
-0.0010946978488655876,
0.006384611803980304,
0.01145022303310558,
0.010379723438582922,
0.002510578839477507,
-0.008681999211993799,
-0.016864477349388556,
-0.01617665145030371,
-0.0049870021285975145,
0.012136324200740308,
0.02580178394925959,
0.026389781943375788,
0.009831548223328235,
-0.01850863585000349,
-0.04438260114330496,
-0.05012939804956271,
-0.02296828203994639,
0.03776037787238254,
0.11819046409140928,
0.19407130089951088,
0.2400451270880761,
0.2400451270880761,
0.19407130089951088,
0.11819046409140928,
0.03776037787238254,
-0.02296828203994639,
-0.05012939804956271,
-0.04438260114330496,
-0.01850863585000349,
0.009831548223328235,
0.026389781943375788,
0.02580178394925959,
0.012136324200740308,
-0.0049870021285975145,
-0.01617665145030371,
-0.016864477349388556,
-0.008681999211993799,
0.002510578839477507,
0.010379723438582922,
0.01145022303310558,
0.006384611803980304,
-0.0010946978488655876,
-0.0066774719816107605,
-0.007807817026985446,
-0.0046996163811689525,
0.0002720320985795238,
0.00419760533447464,
0.0052441555142615824,
0.00340916346496241,
0.0001793309559456949,
-0.002523022590015627,
-0.0034192552145367555,
-0.002409321699967528,
-0.000388863741045951,
0.001413213513295285,
0.0021340179707160963,
0.0016411302227311,
0.0004434510191751198,
-0.0007077746110673444,
-0.0012534079518758063,
-0.0010643895682888947,
-0.00040603602792652034,
0.00028874520213369105,
0.0006755871696714762,
0.0006466583070128328,
0.0003228842810824802,
-0.00006532073186479516,
-0.0003193102359130598,
-0.0003589169560648292,
-0.00022688602647315349,
-0.00003262957210676914,
0.00011903081917168253,
0.00017479735513695012,
0.00014051842764912514,
0.00005875131017904519,
-0.000022806293000197887,
-0.0000738554480125488,
-0.00008774188407583004,
-0.0000747362056755014,
-0.00005064289903990197,
-0.000027937654411978685,
-0.000012392180684628816,
-0.000004208841192266951,
-9.685596554535031e-7,
-9.468533418842961e-8);
fcoeff512 = (6.5611120064741e-7,
0.0000024990413731060313,
0.000006709920019249853,
0.000014665485299706218,
0.000027759704113872594,
0.000046947123632940436,
0.00007219435110212107,
0.00010197045406799998,
0.00013296506405692025,
0.00016021966428594149,
0.0001777869397054776,
0.0001798983240233683,
0.0001624486838485872,
0.00012444885432572164,
0.00006900978014466542,
0.0000034548240117805463,
-0.00006167158341210529,
-0.0001146451854465505,
-0.0001452690258833084,
-0.00014758726520648616,
-0.00012182742201373023,
-0.0000748978714507466,
-0.00001910206548282819,
0.00003077578645232895,
0.00006134224479067903,
0.00006437676016596034,
0.00003938568152421362,
-0.000005951721060197305,
-0.00005775556510002483,
-0.00009991546633670767,
-0.0001189673696850863,
-0.00010840375511591261,
-0.00007100640542380898,
-0.000018322278191029778,
0.0000327292572722894,
0.00006518525962369516,
0.00006766213767459673,
0.00003841683819271467,
-0.000013612554606404697,
-0.00007132334905165914,
-0.00011488357144091307,
-0.00012840606753886815,
-0.00010564221751856481,
-0.00005266744013449131,
0.000013560774449206102,
0.00007052689993241687,
0.00009774441090392897,
0.00008408472748209093,
0.000032250986897577404,
-0.000041364381438849736,
-0.00011168176218105508,
-0.00015333048529977397,
-0.0001496693437298784,
-0.00009925566765097429,
-0.00001728865956342608,
0.00006881213187054002,
0.00012848576122249548,
0.00013880706336768587,
0.00009319802925686154,
0.000004805952128765003,
-0.00009701086269343048,
-0.00017626360049875499,
-0.00020290859224957454,
-0.00016406448423612055,
-0.00006972704505325081,
0.000049436340227195394,
0.00015191473192178938,
0.00019972192606696856,
0.00017237742379412106,
0.00007540018501277732,
-0.00006011283147977699,
-0.00018722467176768293,
-0.0002592482990683307,
-0.00024672558024133625,
-0.00014916878711638596,
0.000003032282577070967,
0.00015783112157413697,
0.00025918630959279515,
0.0002672325694196327,
0.00017375267635776997,
0.000007022564198116264,
-0.00017637136128863514,
-0.0003105254783280246,
-0.0003437206985666062,
-0.0002581081136312849,
-0.00007815978790389977,
0.00013585760980564868,
0.0003078643082470205,
0.0003728668079691373,
0.0003013267516592681,
0.00011193522001692501,
-0.00013254092512085633,
-0.00034577288734576186,
-0.00044814652306295223,
-0.00039625350218119236,
-0.00020074649441636518,
0.00007462819966279779,
0.00033349975614660677,
0.0004804040995529165,
0.00045579061487961725,
0.0002597440524087602,
-0.000044888518868950086,
-0.0003522164558194607,
-0.0005498518220032638,
-0.000559762673576442,
-0.0003686640544183455,
-0.000036239279694773266,
0.00032298672613826685,
0.0005788367843337743,
0.0006324312027730721,
0.00045405230523244645,
0.00009754683067488191,
-0.0003152241457482461,
-0.000635697009066903,
-0.000741801258348637,
-0.0005840865664185766,
-0.0002074716379722719,
0.00026059811298902576,
0.0006529006557137737,
0.0008219070787467884,
0.0006949269505895832,
0.0003044375266428588,
-0.00021877084225296994,
-0.000688922002081253,
-0.0009308845659317073,
-0.0008450386855041387,
-0.00044747757496758857,
0.00013042880657316742,
0.0006848862369229648,
0.0010111921309236573,
0.0009789535340545706,
0.0005834989433038773,
-0.00004655720970004229,
-0.0006904347947454804,
-0.001112128529647035,
-0.0011465109882953795,
-0.0007633240597847718,
-0.00008447849929857735,
0.0006538566388984201,
0.0011829493029413614,
0.001298905297959102,
0.0009406234907619334,
0.0002187143439839522,
-0.0006174899088277837,
-0.001265481866601203,
-0.00147854327407189,
-0.0011590449825712723,
-0.0004010157259882568,
0.0005359684742953369,
0.001315019648396165,
0.0016425565437941608,
0.0013783095569863582,
0.0005937163615131093,
-0.0004450883113208817,
-0.001366745819781136,
-0.0018268345571406308,
-0.001635900462226738,
-0.0008359985290231839,
0.00030470991886776715,
0.0013809008316847267,
0.001993441695362199,
0.0018967055064711817,
0.0010957275397486916,
-0.0001447817423371247,
-0.0013867230601602464,
-0.0021725345634200617,
-0.002192965907128954,
-0.0014074665189446152,
-0.00007076086069161776,
0.0013482540495408121,
0.002330066921305953,
0.002493857784355748,
0.0017438911244038267,
0.00031717314015613574,
-0.0012894822226075051,
-0.002491335649985195,
-0.0028274990249135133,
-0.0021362778890800242,
-0.0006278548865703581,
0.001176962325252346,
0.0026252073573151537,
0.0031667820352596285,
0.0025618862528111854,
0.0009831676080882252,
-0.0010297114694697164,
-0.00275286866174477,
-0.003537064702653459,
-0.003050588207539906,
-0.0014159074450005127,
0.0008150501970854479,
0.0028451386432172504,
0.003915039510995009,
0.0035852518772708404,
0.0019130206056427517,
-0.0005458363313298912,
-0.0029189421756346235,
-0.004324636867467832,
-0.004197078398962952,
-0.002510164701362271,
0.0001870430769625692,
0.002945412953226249,
0.00474689213991561,
0.004877186450890394,
0.003204631010660143,
0.00025787152154486276,
-0.0029362277907309955,
-0.005206691931028917,
-0.005663757985536049,
-0.004042326162741832,
-0.000832787309105563,
0.002860037614144054,
0.005692203886720774,
0.006564451422918256,
0.005042205205406679,
0.0015536328772254742,
-0.0027194578697420056,
-0.006234998043634213,
-0.007639779159462229,
-0.006281324068599404,
-0.002492045759421111,
0.0024724297480081627,
0.006839191351687776,
0.008940450642469941,
0.007837544410444519,
0.0037175807141864364,
-0.002097763670208974,
-0.007560619368740735,
-0.010601562470295747,
-0.009893435657140707,
-0.005399286280765232,
0.0015117009217628155,
0.008455339872564104,
0.012827651472205171,
0.012747287869350683,
0.007815223099430644,
-0.0005989095897443972,
-0.009688641348557946,
-0.016096949451513607,
-0.017090757048537655,
-0.011632055519078107,
-0.0009551271348762997,
0.01160418396582514,
0.021546160822924616,
0.024670059319148844,
0.018619954133524873,
0.004002919259576986,
-0.015335957854545971,
-0.03305881270986717,
-0.0419645123435617,
-0.036075371195295525,
-0.01257931819370945,
0.026971001326459777,
0.07661199315572478,
0.12716217272131602,
0.1683777440092382,
0.1915010760866921,
0.1915010760866921,
0.1683777440092382,
0.12716217272131602,
0.07661199315572478,
0.026971001326459777,
-0.01257931819370945,
-0.036075371195295525,
-0.0419645123435617,
-0.03305881270986717,
-0.015335957854545971,
0.004002919259576986,
0.018619954133524873,
0.024670059319148844,
0.021546160822924616,
0.01160418396582514,
-0.0009551271348762997,
-0.011632055519078107,
-0.017090757048537655,
-0.016096949451513607,
-0.009688641348557946,
-0.0005989095897443972,
0.007815223099430644,
0.012747287869350683,
0.012827651472205171,
0.008455339872564104,
0.0015117009217628155,
-0.005399286280765232,
-0.009893435657140707,
-0.010601562470295747,
-0.007560619368740735,
-0.002097763670208974,
0.0037175807141864364,
0.007837544410444519,
0.008940450642469941,
0.006839191351687776,
0.0024724297480081627,
-0.002492045759421111,
-0.006281324068599404,
-0.007639779159462229,
-0.006234998043634213,
-0.0027194578697420056,
0.0015536328772254742,
0.005042205205406679,
0.006564451422918256,
0.005692203886720774,
0.002860037614144054,
-0.000832787309105563,
-0.004042326162741832,
-0.005663757985536049,
-0.005206691931028917,
-0.0029362277907309955,
0.00025787152154486276,
0.003204631010660143,
0.004877186450890394,
0.00474689213991561,
0.002945412953226249,
0.0001870430769625692,
-0.002510164701362271,
-0.004197078398962952,
-0.004324636867467832,
-0.0029189421756346235,
-0.0005458363313298912,
0.0019130206056427517,
0.0035852518772708404,
0.003915039510995009,
0.0028451386432172504,
0.0008150501970854479,
-0.0014159074450005127,
-0.003050588207539906,
-0.003537064702653459,
-0.00275286866174477,
-0.0010297114694697164,
0.0009831676080882252,
0.0025618862528111854,
0.0031667820352596285,
0.0026252073573151537,
0.001176962325252346,
-0.0006278548865703581,
-0.0021362778890800242,
-0.0028274990249135133,
-0.002491335649985195,
-0.0012894822226075051,
0.00031717314015613574,
0.0017438911244038267,
0.002493857784355748,
0.002330066921305953,
0.0013482540495408121,
-0.00007076086069161776,
-0.0014074665189446152,
-0.002192965907128954,
-0.0021725345634200617,
-0.0013867230601602464,
-0.0001447817423371247,
0.0010957275397486916,
0.0018967055064711817,
0.001993441695362199,
0.0013809008316847267,
0.00030470991886776715,
-0.0008359985290231839,
-0.001635900462226738,
-0.0018268345571406308,
-0.001366745819781136,
-0.0004450883113208817,
0.0005937163615131093,
0.0013783095569863582,
0.0016425565437941608,
0.001315019648396165,
0.0005359684742953369,
-0.0004010157259882568,
-0.0011590449825712723,
-0.00147854327407189,
-0.001265481866601203,
-0.0006174899088277837,
0.0002187143439839522,
0.0009406234907619334,
0.001298905297959102,
0.0011829493029413614,
0.0006538566388984201,
-0.00008447849929857735,
-0.0007633240597847718,
-0.0011465109882953795,
-0.001112128529647035,
-0.0006904347947454804,
-0.00004655720970004229,
0.0005834989433038773,
0.0009789535340545706,
0.0010111921309236573,
0.0006848862369229648,
0.00013042880657316742,
-0.00044747757496758857,
-0.0008450386855041387,
-0.0009308845659317073,
-0.000688922002081253,
-0.00021877084225296994,
0.0003044375266428588,
0.0006949269505895832,
0.0008219070787467884,
0.0006529006557137737,
0.00026059811298902576,
-0.0002074716379722719,
-0.0005840865664185766,
-0.000741801258348637,
-0.000635697009066903,
-0.0003152241457482461,
0.00009754683067488191,
0.00045405230523244645,
0.0006324312027730721,
0.0005788367843337743,
0.00032298672613826685,
-0.000036239279694773266,
-0.0003686640544183455,
-0.000559762673576442,
-0.0005498518220032638,
-0.0003522164558194607,
-0.000044888518868950086,
0.0002597440524087602,
0.00045579061487961725,
0.0004804040995529165,
0.00033349975614660677,
0.00007462819966279779,
-0.00020074649441636518,
-0.00039625350218119236,
-0.00044814652306295223,
-0.00034577288734576186,
-0.00013254092512085633,
0.00011193522001692501,
0.0003013267516592681,
0.0003728668079691373,
0.0003078643082470205,
0.00013585760980564868,
-0.00007815978790389977,
-0.0002581081136312849,
-0.0003437206985666062,
-0.0003105254783280246,
-0.00017637136128863514,
0.000007022564198116264,
0.00017375267635776997,
0.0002672325694196327,
0.00025918630959279515,
0.00015783112157413697,
0.000003032282577070967,
-0.00014916878711638596,
-0.00024672558024133625,
-0.0002592482990683307,
-0.00018722467176768293,
-0.00006011283147977699,
0.00007540018501277732,
0.00017237742379412106,
0.00019972192606696856,
0.00015191473192178938,
0.000049436340227195394,
-0.00006972704505325081,
-0.00016406448423612055,
-0.00020290859224957454,
-0.00017626360049875499,
-0.00009701086269343048,
0.000004805952128765003,
0.00009319802925686154,
0.00013880706336768587,
0.00012848576122249548,
0.00006881213187054002,
-0.00001728865956342608,
-0.00009925566765097429,
-0.0001496693437298784,
-0.00015333048529977397,
-0.00011168176218105508,
-0.000041364381438849736,
0.000032250986897577404,
0.00008408472748209093,
0.00009774441090392897,
0.00007052689993241687,
0.000013560774449206102,
-0.00005266744013449131,
-0.00010564221751856481,
-0.00012840606753886815,
-0.00011488357144091307,
-0.00007132334905165914,
-0.000013612554606404697,
0.00003841683819271467,
0.00006766213767459673,
0.00006518525962369516,
0.0000327292572722894,
-0.000018322278191029778,
-0.00007100640542380898,
-0.00010840375511591261,
-0.0001189673696850863,
-0.00009991546633670767,
-0.00005775556510002483,
-0.000005951721060197305,
0.00003938568152421362,
0.00006437676016596034,
0.00006134224479067903,
0.00003077578645232895,
-0.00001910206548282819,
-0.0000748978714507466,
-0.00012182742201373023,
-0.00014758726520648616,
-0.0001452690258833084,
-0.0001146451854465505,
-0.00006167158341210529,
0.0000034548240117805463,
0.00006900978014466542,
0.00012444885432572164,
0.0001624486838485872,
0.0001798983240233683,
0.0001777869397054776,
0.00016021966428594149,
0.00013296506405692025,
0.00010197045406799998,
0.00007219435110212107,
0.000046947123632940436,
0.000027759704113872594,
0.000014665485299706218,
0.000006709920019249853,
0.0000024990413731060313,
6.5611120064741e-7);
|
e62cd08c0c963756d533b0059305a9f53c9f537da305bfb31871c43ee6d75793 | s-e-a-m/faust-libraries | irconv_live.dsp | import("stdfaust.lib");
process = fi.conv(fcoeff);
// 128 tap 0~20000 -0.01dB // 30000~96000 -151.58dB
fcoeff = (0.200000003,
0.288000017,
0.332159996,
-0.449740797,
-0.283178478,
-0.16342932,
0.240353137,
-0.41975674,
0.155493334,
0.0965716988,
-0.174218506,
0.239860371,
-0.00281400839,
0.0510703847,
0.168975979,
0.0204230584,
0.130352408,
0.0969458893,
0.0651003644,
0.114502527,
0.0625997037,
0.0764238387,
0.0731616467,
0.0470526591,
0.0579451993,
0.0388748273,
0.0322872028,
0.0305418763,
0.0162300617,
0.0152165042,
0.00799270067,
0.00153163006,
-1.40097573e-05,
-0.00596009754,
-0.00787918642,
-0.00994974934,
-0.0126295742,
-0.012849981,
-0.0141066117,
-0.0143387746,
-0.0139447004,
-0.0139183998,
-0.0129893292,
-0.0121967439,
-0.0112597253,
-0.00999523699,
-0.00892739929,
-0.00766506512,
-0.0064438819,
-0.00531965215,
-0.00415151473,
-0.0031326164,
-0.00217067846,
-0.00128929946,
-0.000543868286,
0.000131288136,
0.000686885498,
0.00114130671,
0.00151168357,
0.00177911855,
0.00197251653,
0.00208992092,
0.0021380221,
0.00213410938,
0.00207799906,
0.00198350288,
0.00185823196,
0.00170723256,
0.00154107576,
0.00136366789,
0.00118142623,
0.000999963144,
0.000822166156,
0.000652579765,
0.000493461033,
0.000346784131,
0.000214474669,
9.70076653e-05,
-4.91265655e-06,
-9.12891555e-05,
-0.000162603988,
-0.000219318623,
-0.000262437825,
-0.000292988785,
-0.000312126387,
-0.000321192492,
-0.000321448373,
-0.000314238307,
-0.000300863467,
-0.000282541761,
-0.000260464818,
-0.000235698259,
-0.000209220612,
-0.000181909214,
-0.000154512731,
-0.000127682724,
-0.000101952442,
-7.77486639e-05,
-5.54033977e-05,
-3.51500203e-05,
-1.71418578e-05,
-1.45654781e-06,
1.18951857e-05,
2.29559319e-05,
3.18165221e-05,
3.86042884e-05,
4.3474909e-05,
4.66056881e-05,
4.818659e-05,
4.84151606e-05,
4.74903463e-05,
4.56074849e-05,
4.29548418e-05,
3.97098884e-05,
3.60369922e-05,
3.20857434e-05,
2.79893902e-05,
2.38645553e-05,
1.98108792e-05,
1.59112642e-05,
1.2232631e-05,
8.82660333e-06,
5.73075431e-06,
2.96982671e-06,
5.57043109e-07,
-1.50436949e-06,
-3.21981747e-06,
-4.60188767e-06,
-5.66895642e-06,
-6.44392048e-06,
-6.95296558e-06,
-7.22446703e-06,
-7.28801615e-06,
-7.17353032e-06,
-6.91053583e-06,
-6.52753079e-06,
-6.05147989e-06,
-5.50743698e-06,
-4.91823721e-06,
-4.30431282e-06,
-3.68359315e-06,
-3.07143819e-06,
-2.48071296e-06,
-1.92183097e-06,
-1.40290047e-06,
-9.29887221e-07,
-5.06788354e-07,
-1.35849433e-07,
1.822321e-07,
4.48083483e-07,
6.63445292e-07,
8.30962904e-07,
9.53985932e-07,
1.03638968e-06,
1.08240056e-06,
1.09644941e-06,
1.08303675e-06,
1.04661785e-06,
9.91507818e-07,
9.21801984e-07,
8.41314545e-07,
7.5353347e-07,
6.61588672e-07,
5.68233304e-07,
4.75838618e-07,
3.8639422e-07,
3.01522448e-07,
2.22494435e-07,
1.5025428e-07,
8.54471693e-08,
2.84485342e-08,
-2.06029647e-08,
-6.17733207e-08,
-9.53008907e-08,
-1.21564483e-07,
-1.41053704e-07,
-1.54340825e-07,
-1.62055002e-07,
-1.64859259e-07,
-1.63430016e-07,
-1.58439349e-07,
-1.5054033e-07,
-1.40354501e-07,
-1.28462517e-07,
-1.1539678e-07,
-1.01636452e-07,
-8.7604441e-08,
-7.36660439e-08,
-6.01292243e-08,
-4.72463135e-08,
-3.52162601e-08,
-2.41883917e-08,
-1.42662628e-08,
-5.51229951e-09,
2.04755612e-09,
8.41884873e-09,
1.36337253e-08,
1.7746272e-08,
2.08278284e-08,
2.29628156e-08,
2.42448017e-08,
2.47729055e-08,
2.46487524e-08,
2.39736657e-08,
2.2846411e-08,
2.13613216e-08,
1.96067198e-08,
1.76638526e-08,
1.56060445e-08,
1.34982043e-08,
1.13966019e-08,
9.34886746e-09,
7.39419415e-09,
5.56370816e-09,
3.8809711e-09,
2.36256836e-09,
1.01878006e-09,
-1.4568953e-10,
-1.13100262e-09,
-1.94143235e-09,
-2.58464672e-09,
-3.07102543e-09,
-3.41300321e-09,
-3.62447428e-09,
-3.72025299e-09,
-3.71559317e-09,
-3.62576169e-09,
-3.46569462e-09,
-3.24969274e-09,
-2.99119374e-09,
-2.7025866e-09,
-2.39508613e-09,
-2.07865236e-09,
-1.76194737e-09,
-1.45233048e-09,
-1.15588827e-09,
-8.7748353e-10,
-6.2082639e-10,
-3.88567095e-10,
-1.82389173e-10,
-3.12107284e-12,
1.49156312e-10,
2.7499869e-10,
3.75487641e-10,
4.52128612e-10,
5.06750197e-10,
5.4141408e-10,
5.58332214e-10,
5.59792102e-10,
5.48094126e-10,
5.25494537e-10,
4.94161601e-10,
4.56137933e-10,
4.13312051e-10,
3.67399111e-10,
3.19925947e-10,
2.72225381e-10,
2.25434268e-10,
1.80496604e-10,
1.38171252e-10,
9.90420732e-11,
6.35308611e-11,
3.19121916e-11,
4.32918371e-12,
-1.91898754e-11,
-3.87149479e-11,
-5.4397719e-11,
-6.64557506e-11,
-7.51575746e-11,
-8.08087486e-11,
-8.37391684e-11,
-8.42918443e-11,
-8.28129926e-11,
-7.96434169e-11,
-7.51116461e-11,
-6.95280222e-11,
-6.31804054e-11,
-5.63308566e-11,
-4.92134181e-11,
-4.20330125e-11,
-3.49651419e-11,
-2.81561441e-11,
-2.17243064e-11,
-1.5761354e-11,
-1.03342977e-11,
-5.48768583e-12,
-1.24589477e-12,
2.38434164e-12,
5.411443e-12,
7.85650191e-12,
9.75086852e-12,
1.11339037e-11,
1.20508273e-11,
1.25508128e-11,
1.26852556e-11,
1.25062183e-11,
1.20651726e-11,
1.14118628e-11,
1.05934246e-11,
9.65371619e-12,
8.63274556e-12,
7.56639022e-12,
6.48613932e-12,
5.4190619e-12,
4.38782864e-12,
3.41085883e-12,
2.50254743e-12,
1.67351636e-12,
9.30959303e-13,
2.78985954e-13,
-2.81014063e-13,
-7.49979614e-13,
-1.13081582e-12,
-1.42802588e-12,
-1.64736345e-12,
-1.79551686e-12,
-1.87980729e-12,
-1.90792716e-12,
-1.88770679e-12,
-1.82691058e-12,
-1.73306974e-12,
-1.61334054e-12,
-1.47439938e-12,
-1.3223565e-12,
-1.16270557e-12,
-1.00028243e-12,
-8.39261495e-13,
-6.83151777e-13,
-5.34819693e-13,
-3.96519704e-13,
-2.69933571e-13,
-1.56218205e-13,
-5.60593408e-14,
3.02750378e-14,
1.02876563e-13,
1.62140307e-13,
2.08710138e-13,
2.43426102e-13,
2.67275189e-13,
2.8134694e-13,
2.86791776e-13,
2.84786571e-13,
2.7650202e-13,
2.63077917e-13,
2.45599954e-13,
2.25084315e-13,
2.02463778e-13,
1.78578682e-13,
1.54172139e-13,
1.29886892e-13,
1.06265813e-13,
8.37547127e-14,
6.27061472e-14,
4.33859152e-14,
2.59795711e-14,
1.06004767e-14,
-2.7019307e-15,
-1.3933753e-14,
-2.31479603e-14,
-3.04361808e-14,
-3.59207293e-14,
-3.97471295e-14,
-4.20772629e-14,
-4.3083162e-14,
-4.29414838e-14,
-4.18287434e-14,
-3.99172543e-14,
-3.73717746e-14,
-3.43468235e-14,
-3.09847498e-14,
-2.74140655e-14,
-2.37488557e-14,
-2.00880877e-14,
-1.65156551e-14,
-1.31008443e-14,
-9.89875482e-15,
-6.95126651e-15,
-4.28810006e-15,
-1.92785292e-15,
1.20639117e-16,
1.85709581e-15,
3.28849869e-15,
4.42780671e-15,
5.29278956e-15,
5.90486912e-15,
6.28807444e-15,
6.46810367e-15,
6.4714664e-15,
6.32475351e-15,
6.05401552e-15,
5.6842255e-15,
5.23889285e-15,
4.73970584e-15,
4.20633428e-15,
3.65626769e-15,
3.10473701e-15,
2.56470925e-15,
2.04693262e-15,
1.56001075e-15,
1.11054151e-15,
7.03259057e-16,
3.41206418e-16,
2.59247404e-17,
-2.42360849e-16,
-4.64544103e-16,
-6.42449662e-16,
-7.78650177e-16,
-8.76293859e-16,
-9.38944281e-16,
-9.70436119e-16,
-9.74745822e-16,
-9.55876469e-16,
-9.1776401e-16,
-8.64193835e-16,
-7.98737829e-16,
-7.24702914e-16,
-6.45095528e-16,
-5.62596478e-16,
-4.79548974e-16,
-3.97955481e-16,
-3.19481875e-16,
-2.45471233e-16,
-1.76959913e-16,
-1.14701509e-16,
-5.91908013e-17,
-1.06919894e-17,
3.07323207e-17,
6.51929363e-17,
9.29446077e-17,
1.14358633e-16,
1.29897042e-16,
1.40087523e-16,
1.45501996e-16,
1.46736308e-16,
1.44392926e-16,
1.39066174e-16,
1.31329534e-16,
1.21725503e-16,
1.10758134e-16,
9.88865306e-17,
8.65216759e-17,
7.40238173e-17,
6.17017842e-17,
4.98139282e-17,
3.85693806e-17,
2.81309171e-17,
1.86181465e-17,
1.0111115e-17,
2.65463786e-18,
-3.73752544e-18,
-9.07836016e-18,
-1.34031053e-17,
-1.67652024e-17,
-1.92322967e-17,
-2.08824475e-17,
-2.18008645e-17,
-2.20767855e-17,
-2.18008149e-17,
-2.10626554e-17,
-1.99491363e-17,
-1.8542653e-17,
-1.69199497e-17,
-1.51511563e-17,
-1.32992196e-17,
-1.14194906e-17,
-9.5595973e-18,
-7.75954393e-18,
-6.05189366e-18,
-4.46216212e-18,
-3.00929237e-18,
-1.70620167e-18,
-5.60393358e-19,
4.2539164e-19,
1.25253064e-18,
1.92585369e-18,
2.45302189e-18,
2.84391312e-18,
3.11006737e-18,
3.26416451e-18,
3.31955728e-18,
3.2898677e-18,
3.18862575e-18,
3.02897328e-18,
2.82341621e-18,
2.58363826e-18,
2.3203446e-18,
2.04317127e-18,
1.7606194e-18,
1.48003146e-18,
1.20759529e-18,
9.48377151e-19,
7.06372797e-19,
4.84575689e-19,
2.85062828e-19,
1.09080178e-19,
-4.28567704e-20,
-1.70866421e-19,
-2.75602621e-19,
-3.58157754e-19,
-4.19972832e-19,
-4.62749753e-19,
-4.88374154e-19,
-4.98842952e-19,
-4.96202333e-19,
-4.82492332e-19,
-4.59700611e-19,
-4.29725369e-19,
-3.9434339e-19,
-3.55188744e-19,
-3.13736216e-19,
-2.71290167e-19,
-2.28982076e-19,
-1.87768655e-19,
-1.48437251e-19,
-1.11612824e-19,
-7.77678183e-20,
-4.72348467e-20,
-2.02195221e-20,
3.18489739e-21,
2.29824346e-20,
3.92601988e-20,
5.21732539e-20,
6.19310965e-20,
6.87845787e-20,
7.30136946e-20,
7.4916908e-20,
7.48013353e-20,
7.29744553e-20,
6.97367863e-20,
6.53761357e-20,
6.01628493e-20,
5.43460894e-20,
4.81514081e-20,
4.1779051e-20,
3.5403062e-20,
2.91713999e-20,
2.3206271e-20,
1.76053147e-20,
1.24430082e-20,
7.77242168e-21,
3.62729604e-21,
2.40827449e-23,
-3.03573447e-21,
-5.5634722e-21,
-7.58104084e-21,
-9.11881888e-21,
-1.02137031e-20,
-1.09072423e-20,
-1.12440034e-20,
-1.12700531e-20,
-1.10317031e-20,
-1.05743716e-20,
-9.9416883e-21,
-9.1747505e-21,
-8.31154068e-21,
-7.38655566e-21,
-6.43048916e-21,
-5.47013125e-21,
-4.52833039e-21,
-3.62404669e-21,
-2.77251595e-21,
-1.98545925e-21,
-1.27132874e-21,
-6.35623526e-22,
-8.11949539e-23,
3.91413066e-22,
7.83628119e-22,
1.09852312e-21,
1.34049243e-21,
1.51495201e-21,
1.62806219e-21,
1.6864692e-21,
1.6970822e-21,
1.66687051e-21,
1.60269535e-21,
1.51116719e-21,
1.39853088e-21,
1.27057557e-21,
1.13257182e-21,
9.89225719e-22,
8.44656318e-22,
7.02390239e-22,
5.65367649e-22,
4.35963462e-22,
3.16018486e-22,
2.06877144e-22,
1.09430558e-22,
2.41655816e-23,
-4.87860204e-23,
-1.09597354e-22,
-1.58695363e-22,
-1.96713788e-22,
-2.24446503e-22,
-2.42805202e-22,
-2.52780948e-22,
-2.55408422e-22,
-2.5173637e-22,
-2.42800633e-22,
-2.2960222e-22,
-2.13089885e-22,
-1.94145371e-22,
-1.73573671e-22,
-1.52096018e-22,
-1.30345406e-22,
-1.08865872e-22,
-8.81128286e-23,
-6.84562513e-23,
-5.01849737e-23,
-3.35120545e-23,
-1.85816186e-23,
-5.47566143e-24,
5.77836117e-24,
1.5199895e-23,
2.28478447e-23,
2.88131951e-23,
3.32120791e-23,
3.61793068e-23,
3.78624394e-23,
3.84164091e-23,
3.79988808e-23,
3.67661783e-23,
3.48698293e-23,
3.24538575e-23,
2.96525525e-23,
2.65887935e-23,
2.33730572e-23,
2.01025772e-23,
1.68612045e-23,
1.37194681e-23,
1.07349375e-23,
7.95284915e-24,
5.40695125e-24,
3.12042254e-24,
1.10695309e-24,
-6.28141934e-25,
-2.08678539e-24,
-3.27700117e-24,
-4.21180213e-24,
-4.90814109e-24,
-5.38592495e-24,
-5.66710298e-24,
-5.77485823e-24,
-5.73288018e-24,
-5.56474079e-24,
-5.2933754e-24,
-4.94063506e-24,
-4.52695837e-24,
-4.07110839e-24,
-3.58998213e-24,
-3.09851626e-24,
-2.60963411e-24,
-2.13423853e-24,
-1.68128485e-24,
-1.25785311e-24,
-8.69271272e-25,
-5.19260838e-25,
-2.10087538e-25,
5.72678874e-26,
2.82939212e-25,
4.68003466e-25,
6.14313893e-25,
7.24339035e-25,
8.01013948e-25,
8.47600869e-25,
8.67565755e-25,
8.64465532e-25,
8.41854116e-25,
8.03199734e-25,
7.51817032e-25,
6.90815503e-25,
6.23057134e-25,
5.51127712e-25,
4.7731947e-25,
4.03621545e-25,
3.31721188e-25,
2.63008198e-25,
1.98589656e-25,
1.39306328e-25,
8.57526995e-26,
3.83019025e-26,
-2.87091867e-27,
-3.77618717e-26,
-6.65128257e-26,
-8.93863037e-26,
-1.0674088e-25,
-1.19008555e-25,
-1.26673867e-25,
-1.30254321e-25,
-1.30283842e-25,
-1.27297868e-25,
-1.21820573e-25,
-1.14354645e-25,
-1.05372897e-25,
-9.53116537e-26,
-8.45665115e-26,
-7.34889631e-26,
-6.23852774e-26,
-5.15159698e-26,
-4.10968983e-26,
-3.13009037e-26,
-2.22603035e-26,
-1.40700153e-26,
-6.79097073e-27,
-4.5383711e-28,
4.93712873e-27,
9.40014898e-27,
1.29721736e-26,
1.57051513e-26,
1.76625756e-26,
1.89162944e-26,
1.95435636e-26,
1.96244481e-26,
1.92395764e-26,
1.84681428e-26,
1.7386331e-26,
1.60660136e-26,
1.45736937e-26,
1.29698378e-26,
1.13083504e-26,
9.63632037e-27,
7.99400133e-27,
6.41485125e-27,
4.92583161e-27,
3.5477594e-27,
2.2957239e-27,
1.17964162e-27,
2.04782927e-28,
-6.27644295e-28,
-1.31989892e-27,
-1.87714518e-27,
-2.30688447e-27,
-2.61843272e-27,
-2.82243339e-27,
-2.93040622e-27,
-2.95435304e-27,
-2.90640432e-27,
-2.79852219e-27,
-2.642248e-27,
-2.44849714e-27,
-2.22740808e-27,
-1.98821452e-27,
-1.73918003e-27,
-1.48754486e-27,
-1.23951638e-27,
-1.00028449e-27,
-7.74048867e-28,
-5.64076521e-28,
-3.72765715e-28,
-2.01719615e-28,
-5.18335216e-29,
7.66237608e-29,
1.83918088e-28,
2.70763939e-28,
3.38242072e-28,
3.87715963e-28,
4.20760371e-28,
4.39092094e-28,
4.44507953e-28,
4.38833056e-28,
4.23872721e-28,
4.01374249e-28,
3.72995888e-28,
3.40280958e-28,
3.04640228e-28,
2.6733925e-28,
2.2949049e-28,
1.92051688e-28,
1.55825969e-28,
1.21467583e-28,
8.9488708e-29,
6.02691489e-29,
3.40677658e-29,
1.10343771e-29,
-8.77683741e-30,
-2.53944666e-29,
-3.89165803e-29,
-4.94979102e-29,
-5.73379016e-29,
-6.26691766e-29,
-6.57472279e-29,
-6.68410899e-29,
-6.6225015e-29,
-6.41713478e-29,
-6.09446086e-29,
-5.67964565e-29,
-5.19618427e-29,
-4.66561585e-29,
-4.10731132e-29,
-3.53836303e-29,
-2.9735281e-29,
-2.42523646e-29,
-1.90366544e-29,
-1.41683624e-29,
-9.70752124e-30,
-5.69574823e-30,
-2.15796952e-30,
8.9562833e-31,
3.46753718e-30,
5.57104953e-30,
7.22825883e-30,
8.4682267e-30,
9.32530013e-30,
9.83745982e-30,
1.00449434e-29,
9.98895001e-30,
9.71054706e-30,
9.24974424e-30,
8.64473366e-30,
7.93125185e-30,
7.14218255e-30,
6.30716365e-30,
5.45242691e-30,
4.60071411e-30,
3.77124242e-30,
2.97983248e-30,
2.23902653e-30,
1.55830358e-30,
9.44332352e-31,
4.01219873e-31,
-6.9175421e-32,
-4.66959441e-31,
-7.93902459e-31,
-1.05313987e-30,
-1.24890266e-30,
-1.38624883e-30,
-1.47082188e-30,
-1.50863528e-30,
-1.50587259e-30,
-1.46872339e-30,
-1.40323839e-30,
-1.3152075e-30,
-1.21006874e-30,
-1.09283669e-30,
-9.68043578e-31,
-8.39716552e-31,
-7.1135539e-31,
-5.85930472e-31,
-4.65898581e-31,
-3.53219055e-31,
-2.49386275e-31,
-1.55464759e-31,
-7.21286096e-32,
2.93915212e-34,
6.1776601e-32,
1.12549987e-31,
1.53057287e-31,
1.83912133e-31,
2.05858495e-31,
2.19734125e-31,
2.26436582e-31,
2.26893896e-31,
2.22038282e-31,
2.12783991e-31,
2.00008953e-31,
1.84539941e-31,
1.67141073e-31,
1.48505914e-31,
1.29251705e-31,
1.09916891e-31,
9.09606345e-32,
7.27636939e-32,
5.56321568e-32,
3.98011014e-32,
2.543999e-32,
1.26589765e-32,
1.51479326e-33,
-7.98204378e-33,
-1.58607249e-32,
-2.21834798e-32,
-2.70390179e-32,
-3.05366543e-32,
-3.28005212e-32,
-3.39645486e-32,
-3.41678827e-32,
-3.35508363e-32,
-3.2251536e-32,
-3.04029741e-32,
-2.81308258e-32,
-2.55515267e-32,
-2.27710697e-32,
-1.98840747e-32,
-1.69733479e-32,
-1.41097555e-32,
-1.13523462e-32,
-8.74883858e-33,
-6.33615994e-33,
-4.14125448e-33,
-2.18199853e-33,
-4.68077396e-34,
9.97924633e-34,
2.21954658e-33,
3.20545922e-33,
3.96844946e-33,
4.52453984e-33,
4.89211288e-33,
5.09113069e-33,
5.14243918e-33,
5.06715244e-33,
4.88612153e-33,
4.61949003e-33,
4.28634721e-33,
3.90443277e-33,
3.48993216e-33,
3.0573495e-33,
2.61940806e-33,
2.1870414e-33,
1.76939983e-33,
1.37391063e-33,
1.0063735e-33,
6.71061302e-34,
3.70857953e-34,
1.07404356e-34,
-1.18761124e-34,
-3.08039397e-34,
-4.61623887e-34,
-5.81354828e-34,
-6.69574347e-34,
-7.29001051e-34,
-7.6260848e-34,
-7.73516976e-34,
-7.64901521e-34,
-7.39908537e-34,
-7.01587834e-34,
-6.52837374e-34,
-5.96358131e-34,
-5.34622315e-34,
-4.69850143e-34,
-4.0399725e-34,
-3.38748337e-34,
-2.75520631e-34,
-2.15470089e-34,
-1.59505033e-34,
-1.08302129e-34,
-6.23258469e-35,
-2.18498184e-35,
1.30208772e-35,
4.23264894e-35,
6.62298313e-35,
8.49939985e-35,
9.89611271e-35,
1.08532578e-34,
1.14150764e-34,
1.16282576e-34,
1.15405099e-34,
1.1199286e-34,
1.06507411e-34,
9.93884721e-35,
9.10471975e-35,
8.18608871e-35,
7.21694011e-35,
6.22730186e-35,
5.24313643e-35,
4.28636496e-35,
3.37496596e-35,
2.5231507e-35,
1.74161312e-35,
1.03780754e-35,
4.15883466e-36,
-1.2096576e-36,
-5.74537895e-36,
-9.46420033e-36,
-1.23977331e-35,
-1.46073511e-35,
-1.61430573e-35,
-1.70734183e-35,
-1.74709197e-35,
-1.74024104e-35,
-1.69432444e-35,
-1.6161776e-35,
-1.51240636e-35,
-1.38942844e-35,
-1.25284969e-35,
-1.10794669e-35,
-9.59330023e-36,
-8.10947107e-36,
-6.66246579e-36,
-5.27981854e-36,
-3.98383997e-36,
-2.79153703e-36,
-1.71460405e-36,
-7.60679154e-37,
6.68246335e-38,
7.67894429e-37,
1.34534069e-36,
1.8045501e-36,
2.1527225e-36,
2.39857204e-36,
2.55188782e-36,
2.62306804e-36,
2.62288383e-36,
2.5621099e-36,
2.45129082e-36,
2.30055415e-36,
2.11939734e-36,
1.91660842e-36,
1.70013781e-36,
1.47329947e-36,
1.25350547e-36,
1.03202632e-36,
8.35885072e-37,
6.26748069e-37,
4.52820832e-37,
2.90700712e-37,
1.37651544e-37,
1.75613498e-38,
-9.31470218e-38,
-1.83368603e-37,
-2.55508749e-37,
-3.12914745e-37,
-3.50669403e-37,
-3.74898212e-37,
-3.91221097e-37,
-3.90172791e-37,
-3.8383955e-37,
-3.69601864e-37,
-3.46572454e-37,
-3.21729652e-37,
-2.91612363e-37,
-2.59435994e-37,
-2.20869906e-37,
-1.93076463e-37,
-1.56172651e-37,
-1.26157679e-37,
-9.70814419e-38,
-7.20257097e-38,
-4.18243815e-38,
-2.7094784e-38,
0,
2.06254585e-38,
3.61299614e-38,
5.56228834e-38,
4.54192978e-38,
5.28723699e-38,
6.73720704e-38,
6.26510342e-38,
7.34737891e-38,
6.06567567e-38,
8.38406961e-38,
6.24955573e-38,
6.51334456e-38,
6.9009241e-38,
4.01827295e-38,
5.40878002e-38,
4.81495681e-38,
3.78293945e-38,
1.92069619e-38,
3.09810891e-38,
2.28133156e-38,
0,
1.30052885e-38,
0);
| https://raw.githubusercontent.com/s-e-a-m/faust-libraries/9120cccb9335f42407062eb4bf149188d8018b07/examples/fir/irconv_live.dsp | faust | 128 tap 0~20000 -0.01dB // 30000~96000 -151.58dB | import("stdfaust.lib");
process = fi.conv(fcoeff);
fcoeff = (0.200000003,
0.288000017,
0.332159996,
-0.449740797,
-0.283178478,
-0.16342932,
0.240353137,
-0.41975674,
0.155493334,
0.0965716988,
-0.174218506,
0.239860371,
-0.00281400839,
0.0510703847,
0.168975979,
0.0204230584,
0.130352408,
0.0969458893,
0.0651003644,
0.114502527,
0.0625997037,
0.0764238387,
0.0731616467,
0.0470526591,
0.0579451993,
0.0388748273,
0.0322872028,
0.0305418763,
0.0162300617,
0.0152165042,
0.00799270067,
0.00153163006,
-1.40097573e-05,
-0.00596009754,
-0.00787918642,
-0.00994974934,
-0.0126295742,
-0.012849981,
-0.0141066117,
-0.0143387746,
-0.0139447004,
-0.0139183998,
-0.0129893292,
-0.0121967439,
-0.0112597253,
-0.00999523699,
-0.00892739929,
-0.00766506512,
-0.0064438819,
-0.00531965215,
-0.00415151473,
-0.0031326164,
-0.00217067846,
-0.00128929946,
-0.000543868286,
0.000131288136,
0.000686885498,
0.00114130671,
0.00151168357,
0.00177911855,
0.00197251653,
0.00208992092,
0.0021380221,
0.00213410938,
0.00207799906,
0.00198350288,
0.00185823196,
0.00170723256,
0.00154107576,
0.00136366789,
0.00118142623,
0.000999963144,
0.000822166156,
0.000652579765,
0.000493461033,
0.000346784131,
0.000214474669,
9.70076653e-05,
-4.91265655e-06,
-9.12891555e-05,
-0.000162603988,
-0.000219318623,
-0.000262437825,
-0.000292988785,
-0.000312126387,
-0.000321192492,
-0.000321448373,
-0.000314238307,
-0.000300863467,
-0.000282541761,
-0.000260464818,
-0.000235698259,
-0.000209220612,
-0.000181909214,
-0.000154512731,
-0.000127682724,
-0.000101952442,
-7.77486639e-05,
-5.54033977e-05,
-3.51500203e-05,
-1.71418578e-05,
-1.45654781e-06,
1.18951857e-05,
2.29559319e-05,
3.18165221e-05,
3.86042884e-05,
4.3474909e-05,
4.66056881e-05,
4.818659e-05,
4.84151606e-05,
4.74903463e-05,
4.56074849e-05,
4.29548418e-05,
3.97098884e-05,
3.60369922e-05,
3.20857434e-05,
2.79893902e-05,
2.38645553e-05,
1.98108792e-05,
1.59112642e-05,
1.2232631e-05,
8.82660333e-06,
5.73075431e-06,
2.96982671e-06,
5.57043109e-07,
-1.50436949e-06,
-3.21981747e-06,
-4.60188767e-06,
-5.66895642e-06,
-6.44392048e-06,
-6.95296558e-06,
-7.22446703e-06,
-7.28801615e-06,
-7.17353032e-06,
-6.91053583e-06,
-6.52753079e-06,
-6.05147989e-06,
-5.50743698e-06,
-4.91823721e-06,
-4.30431282e-06,
-3.68359315e-06,
-3.07143819e-06,
-2.48071296e-06,
-1.92183097e-06,
-1.40290047e-06,
-9.29887221e-07,
-5.06788354e-07,
-1.35849433e-07,
1.822321e-07,
4.48083483e-07,
6.63445292e-07,
8.30962904e-07,
9.53985932e-07,
1.03638968e-06,
1.08240056e-06,
1.09644941e-06,
1.08303675e-06,
1.04661785e-06,
9.91507818e-07,
9.21801984e-07,
8.41314545e-07,
7.5353347e-07,
6.61588672e-07,
5.68233304e-07,
4.75838618e-07,
3.8639422e-07,
3.01522448e-07,
2.22494435e-07,
1.5025428e-07,
8.54471693e-08,
2.84485342e-08,
-2.06029647e-08,
-6.17733207e-08,
-9.53008907e-08,
-1.21564483e-07,
-1.41053704e-07,
-1.54340825e-07,
-1.62055002e-07,
-1.64859259e-07,
-1.63430016e-07,
-1.58439349e-07,
-1.5054033e-07,
-1.40354501e-07,
-1.28462517e-07,
-1.1539678e-07,
-1.01636452e-07,
-8.7604441e-08,
-7.36660439e-08,
-6.01292243e-08,
-4.72463135e-08,
-3.52162601e-08,
-2.41883917e-08,
-1.42662628e-08,
-5.51229951e-09,
2.04755612e-09,
8.41884873e-09,
1.36337253e-08,
1.7746272e-08,
2.08278284e-08,
2.29628156e-08,
2.42448017e-08,
2.47729055e-08,
2.46487524e-08,
2.39736657e-08,
2.2846411e-08,
2.13613216e-08,
1.96067198e-08,
1.76638526e-08,
1.56060445e-08,
1.34982043e-08,
1.13966019e-08,
9.34886746e-09,
7.39419415e-09,
5.56370816e-09,
3.8809711e-09,
2.36256836e-09,
1.01878006e-09,
-1.4568953e-10,
-1.13100262e-09,
-1.94143235e-09,
-2.58464672e-09,
-3.07102543e-09,
-3.41300321e-09,
-3.62447428e-09,
-3.72025299e-09,
-3.71559317e-09,
-3.62576169e-09,
-3.46569462e-09,
-3.24969274e-09,
-2.99119374e-09,
-2.7025866e-09,
-2.39508613e-09,
-2.07865236e-09,
-1.76194737e-09,
-1.45233048e-09,
-1.15588827e-09,
-8.7748353e-10,
-6.2082639e-10,
-3.88567095e-10,
-1.82389173e-10,
-3.12107284e-12,
1.49156312e-10,
2.7499869e-10,
3.75487641e-10,
4.52128612e-10,
5.06750197e-10,
5.4141408e-10,
5.58332214e-10,
5.59792102e-10,
5.48094126e-10,
5.25494537e-10,
4.94161601e-10,
4.56137933e-10,
4.13312051e-10,
3.67399111e-10,
3.19925947e-10,
2.72225381e-10,
2.25434268e-10,
1.80496604e-10,
1.38171252e-10,
9.90420732e-11,
6.35308611e-11,
3.19121916e-11,
4.32918371e-12,
-1.91898754e-11,
-3.87149479e-11,
-5.4397719e-11,
-6.64557506e-11,
-7.51575746e-11,
-8.08087486e-11,
-8.37391684e-11,
-8.42918443e-11,
-8.28129926e-11,
-7.96434169e-11,
-7.51116461e-11,
-6.95280222e-11,
-6.31804054e-11,
-5.63308566e-11,
-4.92134181e-11,
-4.20330125e-11,
-3.49651419e-11,
-2.81561441e-11,
-2.17243064e-11,
-1.5761354e-11,
-1.03342977e-11,
-5.48768583e-12,
-1.24589477e-12,
2.38434164e-12,
5.411443e-12,
7.85650191e-12,
9.75086852e-12,
1.11339037e-11,
1.20508273e-11,
1.25508128e-11,
1.26852556e-11,
1.25062183e-11,
1.20651726e-11,
1.14118628e-11,
1.05934246e-11,
9.65371619e-12,
8.63274556e-12,
7.56639022e-12,
6.48613932e-12,
5.4190619e-12,
4.38782864e-12,
3.41085883e-12,
2.50254743e-12,
1.67351636e-12,
9.30959303e-13,
2.78985954e-13,
-2.81014063e-13,
-7.49979614e-13,
-1.13081582e-12,
-1.42802588e-12,
-1.64736345e-12,
-1.79551686e-12,
-1.87980729e-12,
-1.90792716e-12,
-1.88770679e-12,
-1.82691058e-12,
-1.73306974e-12,
-1.61334054e-12,
-1.47439938e-12,
-1.3223565e-12,
-1.16270557e-12,
-1.00028243e-12,
-8.39261495e-13,
-6.83151777e-13,
-5.34819693e-13,
-3.96519704e-13,
-2.69933571e-13,
-1.56218205e-13,
-5.60593408e-14,
3.02750378e-14,
1.02876563e-13,
1.62140307e-13,
2.08710138e-13,
2.43426102e-13,
2.67275189e-13,
2.8134694e-13,
2.86791776e-13,
2.84786571e-13,
2.7650202e-13,
2.63077917e-13,
2.45599954e-13,
2.25084315e-13,
2.02463778e-13,
1.78578682e-13,
1.54172139e-13,
1.29886892e-13,
1.06265813e-13,
8.37547127e-14,
6.27061472e-14,
4.33859152e-14,
2.59795711e-14,
1.06004767e-14,
-2.7019307e-15,
-1.3933753e-14,
-2.31479603e-14,
-3.04361808e-14,
-3.59207293e-14,
-3.97471295e-14,
-4.20772629e-14,
-4.3083162e-14,
-4.29414838e-14,
-4.18287434e-14,
-3.99172543e-14,
-3.73717746e-14,
-3.43468235e-14,
-3.09847498e-14,
-2.74140655e-14,
-2.37488557e-14,
-2.00880877e-14,
-1.65156551e-14,
-1.31008443e-14,
-9.89875482e-15,
-6.95126651e-15,
-4.28810006e-15,
-1.92785292e-15,
1.20639117e-16,
1.85709581e-15,
3.28849869e-15,
4.42780671e-15,
5.29278956e-15,
5.90486912e-15,
6.28807444e-15,
6.46810367e-15,
6.4714664e-15,
6.32475351e-15,
6.05401552e-15,
5.6842255e-15,
5.23889285e-15,
4.73970584e-15,
4.20633428e-15,
3.65626769e-15,
3.10473701e-15,
2.56470925e-15,
2.04693262e-15,
1.56001075e-15,
1.11054151e-15,
7.03259057e-16,
3.41206418e-16,
2.59247404e-17,
-2.42360849e-16,
-4.64544103e-16,
-6.42449662e-16,
-7.78650177e-16,
-8.76293859e-16,
-9.38944281e-16,
-9.70436119e-16,
-9.74745822e-16,
-9.55876469e-16,
-9.1776401e-16,
-8.64193835e-16,
-7.98737829e-16,
-7.24702914e-16,
-6.45095528e-16,
-5.62596478e-16,
-4.79548974e-16,
-3.97955481e-16,
-3.19481875e-16,
-2.45471233e-16,
-1.76959913e-16,
-1.14701509e-16,
-5.91908013e-17,
-1.06919894e-17,
3.07323207e-17,
6.51929363e-17,
9.29446077e-17,
1.14358633e-16,
1.29897042e-16,
1.40087523e-16,
1.45501996e-16,
1.46736308e-16,
1.44392926e-16,
1.39066174e-16,
1.31329534e-16,
1.21725503e-16,
1.10758134e-16,
9.88865306e-17,
8.65216759e-17,
7.40238173e-17,
6.17017842e-17,
4.98139282e-17,
3.85693806e-17,
2.81309171e-17,
1.86181465e-17,
1.0111115e-17,
2.65463786e-18,
-3.73752544e-18,
-9.07836016e-18,
-1.34031053e-17,
-1.67652024e-17,
-1.92322967e-17,
-2.08824475e-17,
-2.18008645e-17,
-2.20767855e-17,
-2.18008149e-17,
-2.10626554e-17,
-1.99491363e-17,
-1.8542653e-17,
-1.69199497e-17,
-1.51511563e-17,
-1.32992196e-17,
-1.14194906e-17,
-9.5595973e-18,
-7.75954393e-18,
-6.05189366e-18,
-4.46216212e-18,
-3.00929237e-18,
-1.70620167e-18,
-5.60393358e-19,
4.2539164e-19,
1.25253064e-18,
1.92585369e-18,
2.45302189e-18,
2.84391312e-18,
3.11006737e-18,
3.26416451e-18,
3.31955728e-18,
3.2898677e-18,
3.18862575e-18,
3.02897328e-18,
2.82341621e-18,
2.58363826e-18,
2.3203446e-18,
2.04317127e-18,
1.7606194e-18,
1.48003146e-18,
1.20759529e-18,
9.48377151e-19,
7.06372797e-19,
4.84575689e-19,
2.85062828e-19,
1.09080178e-19,
-4.28567704e-20,
-1.70866421e-19,
-2.75602621e-19,
-3.58157754e-19,
-4.19972832e-19,
-4.62749753e-19,
-4.88374154e-19,
-4.98842952e-19,
-4.96202333e-19,
-4.82492332e-19,
-4.59700611e-19,
-4.29725369e-19,
-3.9434339e-19,
-3.55188744e-19,
-3.13736216e-19,
-2.71290167e-19,
-2.28982076e-19,
-1.87768655e-19,
-1.48437251e-19,
-1.11612824e-19,
-7.77678183e-20,
-4.72348467e-20,
-2.02195221e-20,
3.18489739e-21,
2.29824346e-20,
3.92601988e-20,
5.21732539e-20,
6.19310965e-20,
6.87845787e-20,
7.30136946e-20,
7.4916908e-20,
7.48013353e-20,
7.29744553e-20,
6.97367863e-20,
6.53761357e-20,
6.01628493e-20,
5.43460894e-20,
4.81514081e-20,
4.1779051e-20,
3.5403062e-20,
2.91713999e-20,
2.3206271e-20,
1.76053147e-20,
1.24430082e-20,
7.77242168e-21,
3.62729604e-21,
2.40827449e-23,
-3.03573447e-21,
-5.5634722e-21,
-7.58104084e-21,
-9.11881888e-21,
-1.02137031e-20,
-1.09072423e-20,
-1.12440034e-20,
-1.12700531e-20,
-1.10317031e-20,
-1.05743716e-20,
-9.9416883e-21,
-9.1747505e-21,
-8.31154068e-21,
-7.38655566e-21,
-6.43048916e-21,
-5.47013125e-21,
-4.52833039e-21,
-3.62404669e-21,
-2.77251595e-21,
-1.98545925e-21,
-1.27132874e-21,
-6.35623526e-22,
-8.11949539e-23,
3.91413066e-22,
7.83628119e-22,
1.09852312e-21,
1.34049243e-21,
1.51495201e-21,
1.62806219e-21,
1.6864692e-21,
1.6970822e-21,
1.66687051e-21,
1.60269535e-21,
1.51116719e-21,
1.39853088e-21,
1.27057557e-21,
1.13257182e-21,
9.89225719e-22,
8.44656318e-22,
7.02390239e-22,
5.65367649e-22,
4.35963462e-22,
3.16018486e-22,
2.06877144e-22,
1.09430558e-22,
2.41655816e-23,
-4.87860204e-23,
-1.09597354e-22,
-1.58695363e-22,
-1.96713788e-22,
-2.24446503e-22,
-2.42805202e-22,
-2.52780948e-22,
-2.55408422e-22,
-2.5173637e-22,
-2.42800633e-22,
-2.2960222e-22,
-2.13089885e-22,
-1.94145371e-22,
-1.73573671e-22,
-1.52096018e-22,
-1.30345406e-22,
-1.08865872e-22,
-8.81128286e-23,
-6.84562513e-23,
-5.01849737e-23,
-3.35120545e-23,
-1.85816186e-23,
-5.47566143e-24,
5.77836117e-24,
1.5199895e-23,
2.28478447e-23,
2.88131951e-23,
3.32120791e-23,
3.61793068e-23,
3.78624394e-23,
3.84164091e-23,
3.79988808e-23,
3.67661783e-23,
3.48698293e-23,
3.24538575e-23,
2.96525525e-23,
2.65887935e-23,
2.33730572e-23,
2.01025772e-23,
1.68612045e-23,
1.37194681e-23,
1.07349375e-23,
7.95284915e-24,
5.40695125e-24,
3.12042254e-24,
1.10695309e-24,
-6.28141934e-25,
-2.08678539e-24,
-3.27700117e-24,
-4.21180213e-24,
-4.90814109e-24,
-5.38592495e-24,
-5.66710298e-24,
-5.77485823e-24,
-5.73288018e-24,
-5.56474079e-24,
-5.2933754e-24,
-4.94063506e-24,
-4.52695837e-24,
-4.07110839e-24,
-3.58998213e-24,
-3.09851626e-24,
-2.60963411e-24,
-2.13423853e-24,
-1.68128485e-24,
-1.25785311e-24,
-8.69271272e-25,
-5.19260838e-25,
-2.10087538e-25,
5.72678874e-26,
2.82939212e-25,
4.68003466e-25,
6.14313893e-25,
7.24339035e-25,
8.01013948e-25,
8.47600869e-25,
8.67565755e-25,
8.64465532e-25,
8.41854116e-25,
8.03199734e-25,
7.51817032e-25,
6.90815503e-25,
6.23057134e-25,
5.51127712e-25,
4.7731947e-25,
4.03621545e-25,
3.31721188e-25,
2.63008198e-25,
1.98589656e-25,
1.39306328e-25,
8.57526995e-26,
3.83019025e-26,
-2.87091867e-27,
-3.77618717e-26,
-6.65128257e-26,
-8.93863037e-26,
-1.0674088e-25,
-1.19008555e-25,
-1.26673867e-25,
-1.30254321e-25,
-1.30283842e-25,
-1.27297868e-25,
-1.21820573e-25,
-1.14354645e-25,
-1.05372897e-25,
-9.53116537e-26,
-8.45665115e-26,
-7.34889631e-26,
-6.23852774e-26,
-5.15159698e-26,
-4.10968983e-26,
-3.13009037e-26,
-2.22603035e-26,
-1.40700153e-26,
-6.79097073e-27,
-4.5383711e-28,
4.93712873e-27,
9.40014898e-27,
1.29721736e-26,
1.57051513e-26,
1.76625756e-26,
1.89162944e-26,
1.95435636e-26,
1.96244481e-26,
1.92395764e-26,
1.84681428e-26,
1.7386331e-26,
1.60660136e-26,
1.45736937e-26,
1.29698378e-26,
1.13083504e-26,
9.63632037e-27,
7.99400133e-27,
6.41485125e-27,
4.92583161e-27,
3.5477594e-27,
2.2957239e-27,
1.17964162e-27,
2.04782927e-28,
-6.27644295e-28,
-1.31989892e-27,
-1.87714518e-27,
-2.30688447e-27,
-2.61843272e-27,
-2.82243339e-27,
-2.93040622e-27,
-2.95435304e-27,
-2.90640432e-27,
-2.79852219e-27,
-2.642248e-27,
-2.44849714e-27,
-2.22740808e-27,
-1.98821452e-27,
-1.73918003e-27,
-1.48754486e-27,
-1.23951638e-27,
-1.00028449e-27,
-7.74048867e-28,
-5.64076521e-28,
-3.72765715e-28,
-2.01719615e-28,
-5.18335216e-29,
7.66237608e-29,
1.83918088e-28,
2.70763939e-28,
3.38242072e-28,
3.87715963e-28,
4.20760371e-28,
4.39092094e-28,
4.44507953e-28,
4.38833056e-28,
4.23872721e-28,
4.01374249e-28,
3.72995888e-28,
3.40280958e-28,
3.04640228e-28,
2.6733925e-28,
2.2949049e-28,
1.92051688e-28,
1.55825969e-28,
1.21467583e-28,
8.9488708e-29,
6.02691489e-29,
3.40677658e-29,
1.10343771e-29,
-8.77683741e-30,
-2.53944666e-29,
-3.89165803e-29,
-4.94979102e-29,
-5.73379016e-29,
-6.26691766e-29,
-6.57472279e-29,
-6.68410899e-29,
-6.6225015e-29,
-6.41713478e-29,
-6.09446086e-29,
-5.67964565e-29,
-5.19618427e-29,
-4.66561585e-29,
-4.10731132e-29,
-3.53836303e-29,
-2.9735281e-29,
-2.42523646e-29,
-1.90366544e-29,
-1.41683624e-29,
-9.70752124e-30,
-5.69574823e-30,
-2.15796952e-30,
8.9562833e-31,
3.46753718e-30,
5.57104953e-30,
7.22825883e-30,
8.4682267e-30,
9.32530013e-30,
9.83745982e-30,
1.00449434e-29,
9.98895001e-30,
9.71054706e-30,
9.24974424e-30,
8.64473366e-30,
7.93125185e-30,
7.14218255e-30,
6.30716365e-30,
5.45242691e-30,
4.60071411e-30,
3.77124242e-30,
2.97983248e-30,
2.23902653e-30,
1.55830358e-30,
9.44332352e-31,
4.01219873e-31,
-6.9175421e-32,
-4.66959441e-31,
-7.93902459e-31,
-1.05313987e-30,
-1.24890266e-30,
-1.38624883e-30,
-1.47082188e-30,
-1.50863528e-30,
-1.50587259e-30,
-1.46872339e-30,
-1.40323839e-30,
-1.3152075e-30,
-1.21006874e-30,
-1.09283669e-30,
-9.68043578e-31,
-8.39716552e-31,
-7.1135539e-31,
-5.85930472e-31,
-4.65898581e-31,
-3.53219055e-31,
-2.49386275e-31,
-1.55464759e-31,
-7.21286096e-32,
2.93915212e-34,
6.1776601e-32,
1.12549987e-31,
1.53057287e-31,
1.83912133e-31,
2.05858495e-31,
2.19734125e-31,
2.26436582e-31,
2.26893896e-31,
2.22038282e-31,
2.12783991e-31,
2.00008953e-31,
1.84539941e-31,
1.67141073e-31,
1.48505914e-31,
1.29251705e-31,
1.09916891e-31,
9.09606345e-32,
7.27636939e-32,
5.56321568e-32,
3.98011014e-32,
2.543999e-32,
1.26589765e-32,
1.51479326e-33,
-7.98204378e-33,
-1.58607249e-32,
-2.21834798e-32,
-2.70390179e-32,
-3.05366543e-32,
-3.28005212e-32,
-3.39645486e-32,
-3.41678827e-32,
-3.35508363e-32,
-3.2251536e-32,
-3.04029741e-32,
-2.81308258e-32,
-2.55515267e-32,
-2.27710697e-32,
-1.98840747e-32,
-1.69733479e-32,
-1.41097555e-32,
-1.13523462e-32,
-8.74883858e-33,
-6.33615994e-33,
-4.14125448e-33,
-2.18199853e-33,
-4.68077396e-34,
9.97924633e-34,
2.21954658e-33,
3.20545922e-33,
3.96844946e-33,
4.52453984e-33,
4.89211288e-33,
5.09113069e-33,
5.14243918e-33,
5.06715244e-33,
4.88612153e-33,
4.61949003e-33,
4.28634721e-33,
3.90443277e-33,
3.48993216e-33,
3.0573495e-33,
2.61940806e-33,
2.1870414e-33,
1.76939983e-33,
1.37391063e-33,
1.0063735e-33,
6.71061302e-34,
3.70857953e-34,
1.07404356e-34,
-1.18761124e-34,
-3.08039397e-34,
-4.61623887e-34,
-5.81354828e-34,
-6.69574347e-34,
-7.29001051e-34,
-7.6260848e-34,
-7.73516976e-34,
-7.64901521e-34,
-7.39908537e-34,
-7.01587834e-34,
-6.52837374e-34,
-5.96358131e-34,
-5.34622315e-34,
-4.69850143e-34,
-4.0399725e-34,
-3.38748337e-34,
-2.75520631e-34,
-2.15470089e-34,
-1.59505033e-34,
-1.08302129e-34,
-6.23258469e-35,
-2.18498184e-35,
1.30208772e-35,
4.23264894e-35,
6.62298313e-35,
8.49939985e-35,
9.89611271e-35,
1.08532578e-34,
1.14150764e-34,
1.16282576e-34,
1.15405099e-34,
1.1199286e-34,
1.06507411e-34,
9.93884721e-35,
9.10471975e-35,
8.18608871e-35,
7.21694011e-35,
6.22730186e-35,
5.24313643e-35,
4.28636496e-35,
3.37496596e-35,
2.5231507e-35,
1.74161312e-35,
1.03780754e-35,
4.15883466e-36,
-1.2096576e-36,
-5.74537895e-36,
-9.46420033e-36,
-1.23977331e-35,
-1.46073511e-35,
-1.61430573e-35,
-1.70734183e-35,
-1.74709197e-35,
-1.74024104e-35,
-1.69432444e-35,
-1.6161776e-35,
-1.51240636e-35,
-1.38942844e-35,
-1.25284969e-35,
-1.10794669e-35,
-9.59330023e-36,
-8.10947107e-36,
-6.66246579e-36,
-5.27981854e-36,
-3.98383997e-36,
-2.79153703e-36,
-1.71460405e-36,
-7.60679154e-37,
6.68246335e-38,
7.67894429e-37,
1.34534069e-36,
1.8045501e-36,
2.1527225e-36,
2.39857204e-36,
2.55188782e-36,
2.62306804e-36,
2.62288383e-36,
2.5621099e-36,
2.45129082e-36,
2.30055415e-36,
2.11939734e-36,
1.91660842e-36,
1.70013781e-36,
1.47329947e-36,
1.25350547e-36,
1.03202632e-36,
8.35885072e-37,
6.26748069e-37,
4.52820832e-37,
2.90700712e-37,
1.37651544e-37,
1.75613498e-38,
-9.31470218e-38,
-1.83368603e-37,
-2.55508749e-37,
-3.12914745e-37,
-3.50669403e-37,
-3.74898212e-37,
-3.91221097e-37,
-3.90172791e-37,
-3.8383955e-37,
-3.69601864e-37,
-3.46572454e-37,
-3.21729652e-37,
-2.91612363e-37,
-2.59435994e-37,
-2.20869906e-37,
-1.93076463e-37,
-1.56172651e-37,
-1.26157679e-37,
-9.70814419e-38,
-7.20257097e-38,
-4.18243815e-38,
-2.7094784e-38,
0,
2.06254585e-38,
3.61299614e-38,
5.56228834e-38,
4.54192978e-38,
5.28723699e-38,
6.73720704e-38,
6.26510342e-38,
7.34737891e-38,
6.06567567e-38,
8.38406961e-38,
6.24955573e-38,
6.51334456e-38,
6.9009241e-38,
4.01827295e-38,
5.40878002e-38,
4.81495681e-38,
3.78293945e-38,
1.92069619e-38,
3.09810891e-38,
2.28133156e-38,
0,
1.30052885e-38,
0);
|
ef675745cf94c83d3994483a5d585ab0bdf9c32fb5a92e1a100fc713b9e0ce4c | s-e-a-m/faust-libraries | irconv.dsp | import("stdfaust.lib");
process = ba.pulsen(1, ma.SR) : fi.conv(fcoeff);
// 128 tap 0~20000 -0.01dB // 30000~96000 -151.58dB
fcoeff = (0.200000003,
0.288000017,
0.332159996,
-0.449740797,
-0.283178478,
-0.16342932,
0.240353137,
-0.41975674,
0.155493334,
0.0965716988,
-0.174218506,
0.239860371,
-0.00281400839,
0.0510703847,
0.168975979,
0.0204230584,
0.130352408,
0.0969458893,
0.0651003644,
0.114502527,
0.0625997037,
0.0764238387,
0.0731616467,
0.0470526591,
0.0579451993,
0.0388748273,
0.0322872028,
0.0305418763,
0.0162300617,
0.0152165042,
0.00799270067,
0.00153163006,
-1.40097573e-05,
-0.00596009754,
-0.00787918642,
-0.00994974934,
-0.0126295742,
-0.012849981,
-0.0141066117,
-0.0143387746,
-0.0139447004,
-0.0139183998,
-0.0129893292,
-0.0121967439,
-0.0112597253,
-0.00999523699,
-0.00892739929,
-0.00766506512,
-0.0064438819,
-0.00531965215,
-0.00415151473,
-0.0031326164,
-0.00217067846,
-0.00128929946,
-0.000543868286,
0.000131288136,
0.000686885498,
0.00114130671,
0.00151168357,
0.00177911855,
0.00197251653,
0.00208992092,
0.0021380221,
0.00213410938,
0.00207799906,
0.00198350288,
0.00185823196,
0.00170723256,
0.00154107576,
0.00136366789,
0.00118142623,
0.000999963144,
0.000822166156,
0.000652579765,
0.000493461033,
0.000346784131,
0.000214474669,
9.70076653e-05,
-4.91265655e-06,
-9.12891555e-05,
-0.000162603988,
-0.000219318623,
-0.000262437825,
-0.000292988785,
-0.000312126387,
-0.000321192492,
-0.000321448373,
-0.000314238307,
-0.000300863467,
-0.000282541761,
-0.000260464818,
-0.000235698259,
-0.000209220612,
-0.000181909214,
-0.000154512731,
-0.000127682724,
-0.000101952442,
-7.77486639e-05,
-5.54033977e-05,
-3.51500203e-05,
-1.71418578e-05,
-1.45654781e-06,
1.18951857e-05,
2.29559319e-05,
3.18165221e-05,
3.86042884e-05,
4.3474909e-05,
4.66056881e-05,
4.818659e-05,
4.84151606e-05,
4.74903463e-05,
4.56074849e-05,
4.29548418e-05,
3.97098884e-05,
3.60369922e-05,
3.20857434e-05,
2.79893902e-05,
2.38645553e-05,
1.98108792e-05,
1.59112642e-05,
1.2232631e-05,
8.82660333e-06,
5.73075431e-06,
2.96982671e-06,
5.57043109e-07,
-1.50436949e-06,
-3.21981747e-06,
-4.60188767e-06,
-5.66895642e-06,
-6.44392048e-06,
-6.95296558e-06,
-7.22446703e-06,
-7.28801615e-06,
-7.17353032e-06,
-6.91053583e-06,
-6.52753079e-06,
-6.05147989e-06,
-5.50743698e-06,
-4.91823721e-06,
-4.30431282e-06,
-3.68359315e-06,
-3.07143819e-06,
-2.48071296e-06,
-1.92183097e-06,
-1.40290047e-06,
-9.29887221e-07,
-5.06788354e-07,
-1.35849433e-07,
1.822321e-07,
4.48083483e-07,
6.63445292e-07,
8.30962904e-07,
9.53985932e-07,
1.03638968e-06,
1.08240056e-06,
1.09644941e-06,
1.08303675e-06,
1.04661785e-06,
9.91507818e-07,
9.21801984e-07,
8.41314545e-07,
7.5353347e-07,
6.61588672e-07,
5.68233304e-07,
4.75838618e-07,
3.8639422e-07,
3.01522448e-07,
2.22494435e-07,
1.5025428e-07,
8.54471693e-08,
2.84485342e-08,
-2.06029647e-08,
-6.17733207e-08,
-9.53008907e-08,
-1.21564483e-07,
-1.41053704e-07,
-1.54340825e-07,
-1.62055002e-07,
-1.64859259e-07,
-1.63430016e-07,
-1.58439349e-07,
-1.5054033e-07,
-1.40354501e-07,
-1.28462517e-07,
-1.1539678e-07,
-1.01636452e-07,
-8.7604441e-08,
-7.36660439e-08,
-6.01292243e-08,
-4.72463135e-08,
-3.52162601e-08,
-2.41883917e-08,
-1.42662628e-08,
-5.51229951e-09,
2.04755612e-09,
8.41884873e-09,
1.36337253e-08,
1.7746272e-08,
2.08278284e-08,
2.29628156e-08,
2.42448017e-08,
2.47729055e-08,
2.46487524e-08,
2.39736657e-08,
2.2846411e-08,
2.13613216e-08,
1.96067198e-08,
1.76638526e-08,
1.56060445e-08,
1.34982043e-08,
1.13966019e-08,
9.34886746e-09,
7.39419415e-09,
5.56370816e-09,
3.8809711e-09,
2.36256836e-09,
1.01878006e-09,
-1.4568953e-10,
-1.13100262e-09,
-1.94143235e-09,
-2.58464672e-09,
-3.07102543e-09,
-3.41300321e-09,
-3.62447428e-09,
-3.72025299e-09,
-3.71559317e-09,
-3.62576169e-09,
-3.46569462e-09,
-3.24969274e-09,
-2.99119374e-09,
-2.7025866e-09,
-2.39508613e-09,
-2.07865236e-09,
-1.76194737e-09,
-1.45233048e-09,
-1.15588827e-09,
-8.7748353e-10,
-6.2082639e-10,
-3.88567095e-10,
-1.82389173e-10,
-3.12107284e-12,
1.49156312e-10,
2.7499869e-10,
3.75487641e-10,
4.52128612e-10,
5.06750197e-10,
5.4141408e-10,
5.58332214e-10,
5.59792102e-10,
5.48094126e-10,
5.25494537e-10,
4.94161601e-10,
4.56137933e-10,
4.13312051e-10,
3.67399111e-10,
3.19925947e-10,
2.72225381e-10,
2.25434268e-10,
1.80496604e-10,
1.38171252e-10,
9.90420732e-11,
6.35308611e-11,
3.19121916e-11,
4.32918371e-12,
-1.91898754e-11,
-3.87149479e-11,
-5.4397719e-11,
-6.64557506e-11,
-7.51575746e-11,
-8.08087486e-11,
-8.37391684e-11,
-8.42918443e-11,
-8.28129926e-11,
-7.96434169e-11,
-7.51116461e-11,
-6.95280222e-11,
-6.31804054e-11,
-5.63308566e-11,
-4.92134181e-11,
-4.20330125e-11,
-3.49651419e-11,
-2.81561441e-11,
-2.17243064e-11,
-1.5761354e-11,
-1.03342977e-11,
-5.48768583e-12,
-1.24589477e-12,
2.38434164e-12,
5.411443e-12,
7.85650191e-12,
9.75086852e-12,
1.11339037e-11,
1.20508273e-11,
1.25508128e-11,
1.26852556e-11,
1.25062183e-11,
1.20651726e-11,
1.14118628e-11,
1.05934246e-11,
9.65371619e-12,
8.63274556e-12,
7.56639022e-12,
6.48613932e-12,
5.4190619e-12,
4.38782864e-12,
3.41085883e-12,
2.50254743e-12,
1.67351636e-12,
9.30959303e-13,
2.78985954e-13,
-2.81014063e-13,
-7.49979614e-13,
-1.13081582e-12,
-1.42802588e-12,
-1.64736345e-12,
-1.79551686e-12,
-1.87980729e-12,
-1.90792716e-12,
-1.88770679e-12,
-1.82691058e-12,
-1.73306974e-12,
-1.61334054e-12,
-1.47439938e-12,
-1.3223565e-12,
-1.16270557e-12,
-1.00028243e-12,
-8.39261495e-13,
-6.83151777e-13,
-5.34819693e-13,
-3.96519704e-13,
-2.69933571e-13,
-1.56218205e-13,
-5.60593408e-14,
3.02750378e-14,
1.02876563e-13,
1.62140307e-13,
2.08710138e-13,
2.43426102e-13,
2.67275189e-13,
2.8134694e-13,
2.86791776e-13,
2.84786571e-13,
2.7650202e-13,
2.63077917e-13,
2.45599954e-13,
2.25084315e-13,
2.02463778e-13,
1.78578682e-13,
1.54172139e-13,
1.29886892e-13,
1.06265813e-13,
8.37547127e-14,
6.27061472e-14,
4.33859152e-14,
2.59795711e-14,
1.06004767e-14,
-2.7019307e-15,
-1.3933753e-14,
-2.31479603e-14,
-3.04361808e-14,
-3.59207293e-14,
-3.97471295e-14,
-4.20772629e-14,
-4.3083162e-14,
-4.29414838e-14,
-4.18287434e-14,
-3.99172543e-14,
-3.73717746e-14,
-3.43468235e-14,
-3.09847498e-14,
-2.74140655e-14,
-2.37488557e-14,
-2.00880877e-14,
-1.65156551e-14,
-1.31008443e-14,
-9.89875482e-15,
-6.95126651e-15,
-4.28810006e-15,
-1.92785292e-15,
1.20639117e-16,
1.85709581e-15,
3.28849869e-15,
4.42780671e-15,
5.29278956e-15,
5.90486912e-15,
6.28807444e-15,
6.46810367e-15,
6.4714664e-15,
6.32475351e-15,
6.05401552e-15,
5.6842255e-15,
5.23889285e-15,
4.73970584e-15,
4.20633428e-15,
3.65626769e-15,
3.10473701e-15,
2.56470925e-15,
2.04693262e-15,
1.56001075e-15,
1.11054151e-15,
7.03259057e-16,
3.41206418e-16,
2.59247404e-17,
-2.42360849e-16,
-4.64544103e-16,
-6.42449662e-16,
-7.78650177e-16,
-8.76293859e-16,
-9.38944281e-16,
-9.70436119e-16,
-9.74745822e-16,
-9.55876469e-16,
-9.1776401e-16,
-8.64193835e-16,
-7.98737829e-16,
-7.24702914e-16,
-6.45095528e-16,
-5.62596478e-16,
-4.79548974e-16,
-3.97955481e-16,
-3.19481875e-16,
-2.45471233e-16,
-1.76959913e-16,
-1.14701509e-16,
-5.91908013e-17,
-1.06919894e-17,
3.07323207e-17,
6.51929363e-17,
9.29446077e-17,
1.14358633e-16,
1.29897042e-16,
1.40087523e-16,
1.45501996e-16,
1.46736308e-16,
1.44392926e-16,
1.39066174e-16,
1.31329534e-16,
1.21725503e-16,
1.10758134e-16,
9.88865306e-17,
8.65216759e-17,
7.40238173e-17,
6.17017842e-17,
4.98139282e-17,
3.85693806e-17,
2.81309171e-17,
1.86181465e-17,
1.0111115e-17,
2.65463786e-18,
-3.73752544e-18,
-9.07836016e-18,
-1.34031053e-17,
-1.67652024e-17,
-1.92322967e-17,
-2.08824475e-17,
-2.18008645e-17,
-2.20767855e-17,
-2.18008149e-17,
-2.10626554e-17,
-1.99491363e-17,
-1.8542653e-17,
-1.69199497e-17,
-1.51511563e-17,
-1.32992196e-17,
-1.14194906e-17,
-9.5595973e-18,
-7.75954393e-18,
-6.05189366e-18,
-4.46216212e-18,
-3.00929237e-18,
-1.70620167e-18,
-5.60393358e-19,
4.2539164e-19,
1.25253064e-18,
1.92585369e-18,
2.45302189e-18,
2.84391312e-18,
3.11006737e-18,
3.26416451e-18,
3.31955728e-18,
3.2898677e-18,
3.18862575e-18,
3.02897328e-18,
2.82341621e-18,
2.58363826e-18,
2.3203446e-18,
2.04317127e-18,
1.7606194e-18,
1.48003146e-18,
1.20759529e-18,
9.48377151e-19,
7.06372797e-19,
4.84575689e-19,
2.85062828e-19,
1.09080178e-19,
-4.28567704e-20,
-1.70866421e-19,
-2.75602621e-19,
-3.58157754e-19,
-4.19972832e-19,
-4.62749753e-19,
-4.88374154e-19,
-4.98842952e-19,
-4.96202333e-19,
-4.82492332e-19,
-4.59700611e-19,
-4.29725369e-19,
-3.9434339e-19,
-3.55188744e-19,
-3.13736216e-19,
-2.71290167e-19,
-2.28982076e-19,
-1.87768655e-19,
-1.48437251e-19,
-1.11612824e-19,
-7.77678183e-20,
-4.72348467e-20,
-2.02195221e-20,
3.18489739e-21,
2.29824346e-20,
3.92601988e-20,
5.21732539e-20,
6.19310965e-20,
6.87845787e-20,
7.30136946e-20,
7.4916908e-20,
7.48013353e-20,
7.29744553e-20,
6.97367863e-20,
6.53761357e-20,
6.01628493e-20,
5.43460894e-20,
4.81514081e-20,
4.1779051e-20,
3.5403062e-20,
2.91713999e-20,
2.3206271e-20,
1.76053147e-20,
1.24430082e-20,
7.77242168e-21,
3.62729604e-21,
2.40827449e-23,
-3.03573447e-21,
-5.5634722e-21,
-7.58104084e-21,
-9.11881888e-21,
-1.02137031e-20,
-1.09072423e-20,
-1.12440034e-20,
-1.12700531e-20,
-1.10317031e-20,
-1.05743716e-20,
-9.9416883e-21,
-9.1747505e-21,
-8.31154068e-21,
-7.38655566e-21,
-6.43048916e-21,
-5.47013125e-21,
-4.52833039e-21,
-3.62404669e-21,
-2.77251595e-21,
-1.98545925e-21,
-1.27132874e-21,
-6.35623526e-22,
-8.11949539e-23,
3.91413066e-22,
7.83628119e-22,
1.09852312e-21,
1.34049243e-21,
1.51495201e-21,
1.62806219e-21,
1.6864692e-21,
1.6970822e-21,
1.66687051e-21,
1.60269535e-21,
1.51116719e-21,
1.39853088e-21,
1.27057557e-21,
1.13257182e-21,
9.89225719e-22,
8.44656318e-22,
7.02390239e-22,
5.65367649e-22,
4.35963462e-22,
3.16018486e-22,
2.06877144e-22,
1.09430558e-22,
2.41655816e-23,
-4.87860204e-23,
-1.09597354e-22,
-1.58695363e-22,
-1.96713788e-22,
-2.24446503e-22,
-2.42805202e-22,
-2.52780948e-22,
-2.55408422e-22,
-2.5173637e-22,
-2.42800633e-22,
-2.2960222e-22,
-2.13089885e-22,
-1.94145371e-22,
-1.73573671e-22,
-1.52096018e-22,
-1.30345406e-22,
-1.08865872e-22,
-8.81128286e-23,
-6.84562513e-23,
-5.01849737e-23,
-3.35120545e-23,
-1.85816186e-23,
-5.47566143e-24,
5.77836117e-24,
1.5199895e-23,
2.28478447e-23,
2.88131951e-23,
3.32120791e-23,
3.61793068e-23,
3.78624394e-23,
3.84164091e-23,
3.79988808e-23,
3.67661783e-23,
3.48698293e-23,
3.24538575e-23,
2.96525525e-23,
2.65887935e-23,
2.33730572e-23,
2.01025772e-23,
1.68612045e-23,
1.37194681e-23,
1.07349375e-23,
7.95284915e-24,
5.40695125e-24,
3.12042254e-24,
1.10695309e-24,
-6.28141934e-25,
-2.08678539e-24,
-3.27700117e-24,
-4.21180213e-24,
-4.90814109e-24,
-5.38592495e-24,
-5.66710298e-24,
-5.77485823e-24,
-5.73288018e-24,
-5.56474079e-24,
-5.2933754e-24,
-4.94063506e-24,
-4.52695837e-24,
-4.07110839e-24,
-3.58998213e-24,
-3.09851626e-24,
-2.60963411e-24,
-2.13423853e-24,
-1.68128485e-24,
-1.25785311e-24,
-8.69271272e-25,
-5.19260838e-25,
-2.10087538e-25,
5.72678874e-26,
2.82939212e-25,
4.68003466e-25,
6.14313893e-25,
7.24339035e-25,
8.01013948e-25,
8.47600869e-25,
8.67565755e-25,
8.64465532e-25,
8.41854116e-25,
8.03199734e-25,
7.51817032e-25,
6.90815503e-25,
6.23057134e-25,
5.51127712e-25,
4.7731947e-25,
4.03621545e-25,
3.31721188e-25,
2.63008198e-25,
1.98589656e-25,
1.39306328e-25,
8.57526995e-26,
3.83019025e-26,
-2.87091867e-27,
-3.77618717e-26,
-6.65128257e-26,
-8.93863037e-26,
-1.0674088e-25,
-1.19008555e-25,
-1.26673867e-25,
-1.30254321e-25,
-1.30283842e-25,
-1.27297868e-25,
-1.21820573e-25,
-1.14354645e-25,
-1.05372897e-25,
-9.53116537e-26,
-8.45665115e-26,
-7.34889631e-26,
-6.23852774e-26,
-5.15159698e-26,
-4.10968983e-26,
-3.13009037e-26,
-2.22603035e-26,
-1.40700153e-26,
-6.79097073e-27,
-4.5383711e-28,
4.93712873e-27,
9.40014898e-27,
1.29721736e-26,
1.57051513e-26,
1.76625756e-26,
1.89162944e-26,
1.95435636e-26,
1.96244481e-26,
1.92395764e-26,
1.84681428e-26,
1.7386331e-26,
1.60660136e-26,
1.45736937e-26,
1.29698378e-26,
1.13083504e-26,
9.63632037e-27,
7.99400133e-27,
6.41485125e-27,
4.92583161e-27,
3.5477594e-27,
2.2957239e-27,
1.17964162e-27,
2.04782927e-28,
-6.27644295e-28,
-1.31989892e-27,
-1.87714518e-27,
-2.30688447e-27,
-2.61843272e-27,
-2.82243339e-27,
-2.93040622e-27,
-2.95435304e-27,
-2.90640432e-27,
-2.79852219e-27,
-2.642248e-27,
-2.44849714e-27,
-2.22740808e-27,
-1.98821452e-27,
-1.73918003e-27,
-1.48754486e-27,
-1.23951638e-27,
-1.00028449e-27,
-7.74048867e-28,
-5.64076521e-28,
-3.72765715e-28,
-2.01719615e-28,
-5.18335216e-29,
7.66237608e-29,
1.83918088e-28,
2.70763939e-28,
3.38242072e-28,
3.87715963e-28,
4.20760371e-28,
4.39092094e-28,
4.44507953e-28,
4.38833056e-28,
4.23872721e-28,
4.01374249e-28,
3.72995888e-28,
3.40280958e-28,
3.04640228e-28,
2.6733925e-28,
2.2949049e-28,
1.92051688e-28,
1.55825969e-28,
1.21467583e-28,
8.9488708e-29,
6.02691489e-29,
3.40677658e-29,
1.10343771e-29,
-8.77683741e-30,
-2.53944666e-29,
-3.89165803e-29,
-4.94979102e-29,
-5.73379016e-29,
-6.26691766e-29,
-6.57472279e-29,
-6.68410899e-29,
-6.6225015e-29,
-6.41713478e-29,
-6.09446086e-29,
-5.67964565e-29,
-5.19618427e-29,
-4.66561585e-29,
-4.10731132e-29,
-3.53836303e-29,
-2.9735281e-29,
-2.42523646e-29,
-1.90366544e-29,
-1.41683624e-29,
-9.70752124e-30,
-5.69574823e-30,
-2.15796952e-30,
8.9562833e-31,
3.46753718e-30,
5.57104953e-30,
7.22825883e-30,
8.4682267e-30,
9.32530013e-30,
9.83745982e-30,
1.00449434e-29,
9.98895001e-30,
9.71054706e-30,
9.24974424e-30,
8.64473366e-30,
7.93125185e-30,
7.14218255e-30,
6.30716365e-30,
5.45242691e-30,
4.60071411e-30,
3.77124242e-30,
2.97983248e-30,
2.23902653e-30,
1.55830358e-30,
9.44332352e-31,
4.01219873e-31,
-6.9175421e-32,
-4.66959441e-31,
-7.93902459e-31,
-1.05313987e-30,
-1.24890266e-30,
-1.38624883e-30,
-1.47082188e-30,
-1.50863528e-30,
-1.50587259e-30,
-1.46872339e-30,
-1.40323839e-30,
-1.3152075e-30,
-1.21006874e-30,
-1.09283669e-30,
-9.68043578e-31,
-8.39716552e-31,
-7.1135539e-31,
-5.85930472e-31,
-4.65898581e-31,
-3.53219055e-31,
-2.49386275e-31,
-1.55464759e-31,
-7.21286096e-32,
2.93915212e-34,
6.1776601e-32,
1.12549987e-31,
1.53057287e-31,
1.83912133e-31,
2.05858495e-31,
2.19734125e-31,
2.26436582e-31,
2.26893896e-31,
2.22038282e-31,
2.12783991e-31,
2.00008953e-31,
1.84539941e-31,
1.67141073e-31,
1.48505914e-31,
1.29251705e-31,
1.09916891e-31,
9.09606345e-32,
7.27636939e-32,
5.56321568e-32,
3.98011014e-32,
2.543999e-32,
1.26589765e-32,
1.51479326e-33,
-7.98204378e-33,
-1.58607249e-32,
-2.21834798e-32,
-2.70390179e-32,
-3.05366543e-32,
-3.28005212e-32,
-3.39645486e-32,
-3.41678827e-32,
-3.35508363e-32,
-3.2251536e-32,
-3.04029741e-32,
-2.81308258e-32,
-2.55515267e-32,
-2.27710697e-32,
-1.98840747e-32,
-1.69733479e-32,
-1.41097555e-32,
-1.13523462e-32,
-8.74883858e-33,
-6.33615994e-33,
-4.14125448e-33,
-2.18199853e-33,
-4.68077396e-34,
9.97924633e-34,
2.21954658e-33,
3.20545922e-33,
3.96844946e-33,
4.52453984e-33,
4.89211288e-33,
5.09113069e-33,
5.14243918e-33,
5.06715244e-33,
4.88612153e-33,
4.61949003e-33,
4.28634721e-33,
3.90443277e-33,
3.48993216e-33,
3.0573495e-33,
2.61940806e-33,
2.1870414e-33,
1.76939983e-33,
1.37391063e-33,
1.0063735e-33,
6.71061302e-34,
3.70857953e-34,
1.07404356e-34,
-1.18761124e-34,
-3.08039397e-34,
-4.61623887e-34,
-5.81354828e-34,
-6.69574347e-34,
-7.29001051e-34,
-7.6260848e-34,
-7.73516976e-34,
-7.64901521e-34,
-7.39908537e-34,
-7.01587834e-34,
-6.52837374e-34,
-5.96358131e-34,
-5.34622315e-34,
-4.69850143e-34,
-4.0399725e-34,
-3.38748337e-34,
-2.75520631e-34,
-2.15470089e-34,
-1.59505033e-34,
-1.08302129e-34,
-6.23258469e-35,
-2.18498184e-35,
1.30208772e-35,
4.23264894e-35,
6.62298313e-35,
8.49939985e-35,
9.89611271e-35,
1.08532578e-34,
1.14150764e-34,
1.16282576e-34,
1.15405099e-34,
1.1199286e-34,
1.06507411e-34,
9.93884721e-35,
9.10471975e-35,
8.18608871e-35,
7.21694011e-35,
6.22730186e-35,
5.24313643e-35,
4.28636496e-35,
3.37496596e-35,
2.5231507e-35,
1.74161312e-35,
1.03780754e-35,
4.15883466e-36,
-1.2096576e-36,
-5.74537895e-36,
-9.46420033e-36,
-1.23977331e-35,
-1.46073511e-35,
-1.61430573e-35,
-1.70734183e-35,
-1.74709197e-35,
-1.74024104e-35,
-1.69432444e-35,
-1.6161776e-35,
-1.51240636e-35,
-1.38942844e-35,
-1.25284969e-35,
-1.10794669e-35,
-9.59330023e-36,
-8.10947107e-36,
-6.66246579e-36,
-5.27981854e-36,
-3.98383997e-36,
-2.79153703e-36,
-1.71460405e-36,
-7.60679154e-37,
6.68246335e-38,
7.67894429e-37,
1.34534069e-36,
1.8045501e-36,
2.1527225e-36,
2.39857204e-36,
2.55188782e-36,
2.62306804e-36,
2.62288383e-36,
2.5621099e-36,
2.45129082e-36,
2.30055415e-36,
2.11939734e-36,
1.91660842e-36,
1.70013781e-36,
1.47329947e-36,
1.25350547e-36,
1.03202632e-36,
8.35885072e-37,
6.26748069e-37,
4.52820832e-37,
2.90700712e-37,
1.37651544e-37,
1.75613498e-38,
-9.31470218e-38,
-1.83368603e-37,
-2.55508749e-37,
-3.12914745e-37,
-3.50669403e-37,
-3.74898212e-37,
-3.91221097e-37,
-3.90172791e-37,
-3.8383955e-37,
-3.69601864e-37,
-3.46572454e-37,
-3.21729652e-37,
-2.91612363e-37,
-2.59435994e-37,
-2.20869906e-37,
-1.93076463e-37,
-1.56172651e-37,
-1.26157679e-37,
-9.70814419e-38,
-7.20257097e-38,
-4.18243815e-38,
-2.7094784e-38,
0,
2.06254585e-38,
3.61299614e-38,
5.56228834e-38,
4.54192978e-38,
5.28723699e-38,
6.73720704e-38,
6.26510342e-38,
7.34737891e-38,
6.06567567e-38,
8.38406961e-38,
6.24955573e-38,
6.51334456e-38,
6.9009241e-38,
4.01827295e-38,
5.40878002e-38,
4.81495681e-38,
3.78293945e-38,
1.92069619e-38,
3.09810891e-38,
2.28133156e-38,
0,
1.30052885e-38,
0);
| https://raw.githubusercontent.com/s-e-a-m/faust-libraries/9120cccb9335f42407062eb4bf149188d8018b07/examples/fir/irconv.dsp | faust | 128 tap 0~20000 -0.01dB // 30000~96000 -151.58dB | import("stdfaust.lib");
process = ba.pulsen(1, ma.SR) : fi.conv(fcoeff);
fcoeff = (0.200000003,
0.288000017,
0.332159996,
-0.449740797,
-0.283178478,
-0.16342932,
0.240353137,
-0.41975674,
0.155493334,
0.0965716988,
-0.174218506,
0.239860371,
-0.00281400839,
0.0510703847,
0.168975979,
0.0204230584,
0.130352408,
0.0969458893,
0.0651003644,
0.114502527,
0.0625997037,
0.0764238387,
0.0731616467,
0.0470526591,
0.0579451993,
0.0388748273,
0.0322872028,
0.0305418763,
0.0162300617,
0.0152165042,
0.00799270067,
0.00153163006,
-1.40097573e-05,
-0.00596009754,
-0.00787918642,
-0.00994974934,
-0.0126295742,
-0.012849981,
-0.0141066117,
-0.0143387746,
-0.0139447004,
-0.0139183998,
-0.0129893292,
-0.0121967439,
-0.0112597253,
-0.00999523699,
-0.00892739929,
-0.00766506512,
-0.0064438819,
-0.00531965215,
-0.00415151473,
-0.0031326164,
-0.00217067846,
-0.00128929946,
-0.000543868286,
0.000131288136,
0.000686885498,
0.00114130671,
0.00151168357,
0.00177911855,
0.00197251653,
0.00208992092,
0.0021380221,
0.00213410938,
0.00207799906,
0.00198350288,
0.00185823196,
0.00170723256,
0.00154107576,
0.00136366789,
0.00118142623,
0.000999963144,
0.000822166156,
0.000652579765,
0.000493461033,
0.000346784131,
0.000214474669,
9.70076653e-05,
-4.91265655e-06,
-9.12891555e-05,
-0.000162603988,
-0.000219318623,
-0.000262437825,
-0.000292988785,
-0.000312126387,
-0.000321192492,
-0.000321448373,
-0.000314238307,
-0.000300863467,
-0.000282541761,
-0.000260464818,
-0.000235698259,
-0.000209220612,
-0.000181909214,
-0.000154512731,
-0.000127682724,
-0.000101952442,
-7.77486639e-05,
-5.54033977e-05,
-3.51500203e-05,
-1.71418578e-05,
-1.45654781e-06,
1.18951857e-05,
2.29559319e-05,
3.18165221e-05,
3.86042884e-05,
4.3474909e-05,
4.66056881e-05,
4.818659e-05,
4.84151606e-05,
4.74903463e-05,
4.56074849e-05,
4.29548418e-05,
3.97098884e-05,
3.60369922e-05,
3.20857434e-05,
2.79893902e-05,
2.38645553e-05,
1.98108792e-05,
1.59112642e-05,
1.2232631e-05,
8.82660333e-06,
5.73075431e-06,
2.96982671e-06,
5.57043109e-07,
-1.50436949e-06,
-3.21981747e-06,
-4.60188767e-06,
-5.66895642e-06,
-6.44392048e-06,
-6.95296558e-06,
-7.22446703e-06,
-7.28801615e-06,
-7.17353032e-06,
-6.91053583e-06,
-6.52753079e-06,
-6.05147989e-06,
-5.50743698e-06,
-4.91823721e-06,
-4.30431282e-06,
-3.68359315e-06,
-3.07143819e-06,
-2.48071296e-06,
-1.92183097e-06,
-1.40290047e-06,
-9.29887221e-07,
-5.06788354e-07,
-1.35849433e-07,
1.822321e-07,
4.48083483e-07,
6.63445292e-07,
8.30962904e-07,
9.53985932e-07,
1.03638968e-06,
1.08240056e-06,
1.09644941e-06,
1.08303675e-06,
1.04661785e-06,
9.91507818e-07,
9.21801984e-07,
8.41314545e-07,
7.5353347e-07,
6.61588672e-07,
5.68233304e-07,
4.75838618e-07,
3.8639422e-07,
3.01522448e-07,
2.22494435e-07,
1.5025428e-07,
8.54471693e-08,
2.84485342e-08,
-2.06029647e-08,
-6.17733207e-08,
-9.53008907e-08,
-1.21564483e-07,
-1.41053704e-07,
-1.54340825e-07,
-1.62055002e-07,
-1.64859259e-07,
-1.63430016e-07,
-1.58439349e-07,
-1.5054033e-07,
-1.40354501e-07,
-1.28462517e-07,
-1.1539678e-07,
-1.01636452e-07,
-8.7604441e-08,
-7.36660439e-08,
-6.01292243e-08,
-4.72463135e-08,
-3.52162601e-08,
-2.41883917e-08,
-1.42662628e-08,
-5.51229951e-09,
2.04755612e-09,
8.41884873e-09,
1.36337253e-08,
1.7746272e-08,
2.08278284e-08,
2.29628156e-08,
2.42448017e-08,
2.47729055e-08,
2.46487524e-08,
2.39736657e-08,
2.2846411e-08,
2.13613216e-08,
1.96067198e-08,
1.76638526e-08,
1.56060445e-08,
1.34982043e-08,
1.13966019e-08,
9.34886746e-09,
7.39419415e-09,
5.56370816e-09,
3.8809711e-09,
2.36256836e-09,
1.01878006e-09,
-1.4568953e-10,
-1.13100262e-09,
-1.94143235e-09,
-2.58464672e-09,
-3.07102543e-09,
-3.41300321e-09,
-3.62447428e-09,
-3.72025299e-09,
-3.71559317e-09,
-3.62576169e-09,
-3.46569462e-09,
-3.24969274e-09,
-2.99119374e-09,
-2.7025866e-09,
-2.39508613e-09,
-2.07865236e-09,
-1.76194737e-09,
-1.45233048e-09,
-1.15588827e-09,
-8.7748353e-10,
-6.2082639e-10,
-3.88567095e-10,
-1.82389173e-10,
-3.12107284e-12,
1.49156312e-10,
2.7499869e-10,
3.75487641e-10,
4.52128612e-10,
5.06750197e-10,
5.4141408e-10,
5.58332214e-10,
5.59792102e-10,
5.48094126e-10,
5.25494537e-10,
4.94161601e-10,
4.56137933e-10,
4.13312051e-10,
3.67399111e-10,
3.19925947e-10,
2.72225381e-10,
2.25434268e-10,
1.80496604e-10,
1.38171252e-10,
9.90420732e-11,
6.35308611e-11,
3.19121916e-11,
4.32918371e-12,
-1.91898754e-11,
-3.87149479e-11,
-5.4397719e-11,
-6.64557506e-11,
-7.51575746e-11,
-8.08087486e-11,
-8.37391684e-11,
-8.42918443e-11,
-8.28129926e-11,
-7.96434169e-11,
-7.51116461e-11,
-6.95280222e-11,
-6.31804054e-11,
-5.63308566e-11,
-4.92134181e-11,
-4.20330125e-11,
-3.49651419e-11,
-2.81561441e-11,
-2.17243064e-11,
-1.5761354e-11,
-1.03342977e-11,
-5.48768583e-12,
-1.24589477e-12,
2.38434164e-12,
5.411443e-12,
7.85650191e-12,
9.75086852e-12,
1.11339037e-11,
1.20508273e-11,
1.25508128e-11,
1.26852556e-11,
1.25062183e-11,
1.20651726e-11,
1.14118628e-11,
1.05934246e-11,
9.65371619e-12,
8.63274556e-12,
7.56639022e-12,
6.48613932e-12,
5.4190619e-12,
4.38782864e-12,
3.41085883e-12,
2.50254743e-12,
1.67351636e-12,
9.30959303e-13,
2.78985954e-13,
-2.81014063e-13,
-7.49979614e-13,
-1.13081582e-12,
-1.42802588e-12,
-1.64736345e-12,
-1.79551686e-12,
-1.87980729e-12,
-1.90792716e-12,
-1.88770679e-12,
-1.82691058e-12,
-1.73306974e-12,
-1.61334054e-12,
-1.47439938e-12,
-1.3223565e-12,
-1.16270557e-12,
-1.00028243e-12,
-8.39261495e-13,
-6.83151777e-13,
-5.34819693e-13,
-3.96519704e-13,
-2.69933571e-13,
-1.56218205e-13,
-5.60593408e-14,
3.02750378e-14,
1.02876563e-13,
1.62140307e-13,
2.08710138e-13,
2.43426102e-13,
2.67275189e-13,
2.8134694e-13,
2.86791776e-13,
2.84786571e-13,
2.7650202e-13,
2.63077917e-13,
2.45599954e-13,
2.25084315e-13,
2.02463778e-13,
1.78578682e-13,
1.54172139e-13,
1.29886892e-13,
1.06265813e-13,
8.37547127e-14,
6.27061472e-14,
4.33859152e-14,
2.59795711e-14,
1.06004767e-14,
-2.7019307e-15,
-1.3933753e-14,
-2.31479603e-14,
-3.04361808e-14,
-3.59207293e-14,
-3.97471295e-14,
-4.20772629e-14,
-4.3083162e-14,
-4.29414838e-14,
-4.18287434e-14,
-3.99172543e-14,
-3.73717746e-14,
-3.43468235e-14,
-3.09847498e-14,
-2.74140655e-14,
-2.37488557e-14,
-2.00880877e-14,
-1.65156551e-14,
-1.31008443e-14,
-9.89875482e-15,
-6.95126651e-15,
-4.28810006e-15,
-1.92785292e-15,
1.20639117e-16,
1.85709581e-15,
3.28849869e-15,
4.42780671e-15,
5.29278956e-15,
5.90486912e-15,
6.28807444e-15,
6.46810367e-15,
6.4714664e-15,
6.32475351e-15,
6.05401552e-15,
5.6842255e-15,
5.23889285e-15,
4.73970584e-15,
4.20633428e-15,
3.65626769e-15,
3.10473701e-15,
2.56470925e-15,
2.04693262e-15,
1.56001075e-15,
1.11054151e-15,
7.03259057e-16,
3.41206418e-16,
2.59247404e-17,
-2.42360849e-16,
-4.64544103e-16,
-6.42449662e-16,
-7.78650177e-16,
-8.76293859e-16,
-9.38944281e-16,
-9.70436119e-16,
-9.74745822e-16,
-9.55876469e-16,
-9.1776401e-16,
-8.64193835e-16,
-7.98737829e-16,
-7.24702914e-16,
-6.45095528e-16,
-5.62596478e-16,
-4.79548974e-16,
-3.97955481e-16,
-3.19481875e-16,
-2.45471233e-16,
-1.76959913e-16,
-1.14701509e-16,
-5.91908013e-17,
-1.06919894e-17,
3.07323207e-17,
6.51929363e-17,
9.29446077e-17,
1.14358633e-16,
1.29897042e-16,
1.40087523e-16,
1.45501996e-16,
1.46736308e-16,
1.44392926e-16,
1.39066174e-16,
1.31329534e-16,
1.21725503e-16,
1.10758134e-16,
9.88865306e-17,
8.65216759e-17,
7.40238173e-17,
6.17017842e-17,
4.98139282e-17,
3.85693806e-17,
2.81309171e-17,
1.86181465e-17,
1.0111115e-17,
2.65463786e-18,
-3.73752544e-18,
-9.07836016e-18,
-1.34031053e-17,
-1.67652024e-17,
-1.92322967e-17,
-2.08824475e-17,
-2.18008645e-17,
-2.20767855e-17,
-2.18008149e-17,
-2.10626554e-17,
-1.99491363e-17,
-1.8542653e-17,
-1.69199497e-17,
-1.51511563e-17,
-1.32992196e-17,
-1.14194906e-17,
-9.5595973e-18,
-7.75954393e-18,
-6.05189366e-18,
-4.46216212e-18,
-3.00929237e-18,
-1.70620167e-18,
-5.60393358e-19,
4.2539164e-19,
1.25253064e-18,
1.92585369e-18,
2.45302189e-18,
2.84391312e-18,
3.11006737e-18,
3.26416451e-18,
3.31955728e-18,
3.2898677e-18,
3.18862575e-18,
3.02897328e-18,
2.82341621e-18,
2.58363826e-18,
2.3203446e-18,
2.04317127e-18,
1.7606194e-18,
1.48003146e-18,
1.20759529e-18,
9.48377151e-19,
7.06372797e-19,
4.84575689e-19,
2.85062828e-19,
1.09080178e-19,
-4.28567704e-20,
-1.70866421e-19,
-2.75602621e-19,
-3.58157754e-19,
-4.19972832e-19,
-4.62749753e-19,
-4.88374154e-19,
-4.98842952e-19,
-4.96202333e-19,
-4.82492332e-19,
-4.59700611e-19,
-4.29725369e-19,
-3.9434339e-19,
-3.55188744e-19,
-3.13736216e-19,
-2.71290167e-19,
-2.28982076e-19,
-1.87768655e-19,
-1.48437251e-19,
-1.11612824e-19,
-7.77678183e-20,
-4.72348467e-20,
-2.02195221e-20,
3.18489739e-21,
2.29824346e-20,
3.92601988e-20,
5.21732539e-20,
6.19310965e-20,
6.87845787e-20,
7.30136946e-20,
7.4916908e-20,
7.48013353e-20,
7.29744553e-20,
6.97367863e-20,
6.53761357e-20,
6.01628493e-20,
5.43460894e-20,
4.81514081e-20,
4.1779051e-20,
3.5403062e-20,
2.91713999e-20,
2.3206271e-20,
1.76053147e-20,
1.24430082e-20,
7.77242168e-21,
3.62729604e-21,
2.40827449e-23,
-3.03573447e-21,
-5.5634722e-21,
-7.58104084e-21,
-9.11881888e-21,
-1.02137031e-20,
-1.09072423e-20,
-1.12440034e-20,
-1.12700531e-20,
-1.10317031e-20,
-1.05743716e-20,
-9.9416883e-21,
-9.1747505e-21,
-8.31154068e-21,
-7.38655566e-21,
-6.43048916e-21,
-5.47013125e-21,
-4.52833039e-21,
-3.62404669e-21,
-2.77251595e-21,
-1.98545925e-21,
-1.27132874e-21,
-6.35623526e-22,
-8.11949539e-23,
3.91413066e-22,
7.83628119e-22,
1.09852312e-21,
1.34049243e-21,
1.51495201e-21,
1.62806219e-21,
1.6864692e-21,
1.6970822e-21,
1.66687051e-21,
1.60269535e-21,
1.51116719e-21,
1.39853088e-21,
1.27057557e-21,
1.13257182e-21,
9.89225719e-22,
8.44656318e-22,
7.02390239e-22,
5.65367649e-22,
4.35963462e-22,
3.16018486e-22,
2.06877144e-22,
1.09430558e-22,
2.41655816e-23,
-4.87860204e-23,
-1.09597354e-22,
-1.58695363e-22,
-1.96713788e-22,
-2.24446503e-22,
-2.42805202e-22,
-2.52780948e-22,
-2.55408422e-22,
-2.5173637e-22,
-2.42800633e-22,
-2.2960222e-22,
-2.13089885e-22,
-1.94145371e-22,
-1.73573671e-22,
-1.52096018e-22,
-1.30345406e-22,
-1.08865872e-22,
-8.81128286e-23,
-6.84562513e-23,
-5.01849737e-23,
-3.35120545e-23,
-1.85816186e-23,
-5.47566143e-24,
5.77836117e-24,
1.5199895e-23,
2.28478447e-23,
2.88131951e-23,
3.32120791e-23,
3.61793068e-23,
3.78624394e-23,
3.84164091e-23,
3.79988808e-23,
3.67661783e-23,
3.48698293e-23,
3.24538575e-23,
2.96525525e-23,
2.65887935e-23,
2.33730572e-23,
2.01025772e-23,
1.68612045e-23,
1.37194681e-23,
1.07349375e-23,
7.95284915e-24,
5.40695125e-24,
3.12042254e-24,
1.10695309e-24,
-6.28141934e-25,
-2.08678539e-24,
-3.27700117e-24,
-4.21180213e-24,
-4.90814109e-24,
-5.38592495e-24,
-5.66710298e-24,
-5.77485823e-24,
-5.73288018e-24,
-5.56474079e-24,
-5.2933754e-24,
-4.94063506e-24,
-4.52695837e-24,
-4.07110839e-24,
-3.58998213e-24,
-3.09851626e-24,
-2.60963411e-24,
-2.13423853e-24,
-1.68128485e-24,
-1.25785311e-24,
-8.69271272e-25,
-5.19260838e-25,
-2.10087538e-25,
5.72678874e-26,
2.82939212e-25,
4.68003466e-25,
6.14313893e-25,
7.24339035e-25,
8.01013948e-25,
8.47600869e-25,
8.67565755e-25,
8.64465532e-25,
8.41854116e-25,
8.03199734e-25,
7.51817032e-25,
6.90815503e-25,
6.23057134e-25,
5.51127712e-25,
4.7731947e-25,
4.03621545e-25,
3.31721188e-25,
2.63008198e-25,
1.98589656e-25,
1.39306328e-25,
8.57526995e-26,
3.83019025e-26,
-2.87091867e-27,
-3.77618717e-26,
-6.65128257e-26,
-8.93863037e-26,
-1.0674088e-25,
-1.19008555e-25,
-1.26673867e-25,
-1.30254321e-25,
-1.30283842e-25,
-1.27297868e-25,
-1.21820573e-25,
-1.14354645e-25,
-1.05372897e-25,
-9.53116537e-26,
-8.45665115e-26,
-7.34889631e-26,
-6.23852774e-26,
-5.15159698e-26,
-4.10968983e-26,
-3.13009037e-26,
-2.22603035e-26,
-1.40700153e-26,
-6.79097073e-27,
-4.5383711e-28,
4.93712873e-27,
9.40014898e-27,
1.29721736e-26,
1.57051513e-26,
1.76625756e-26,
1.89162944e-26,
1.95435636e-26,
1.96244481e-26,
1.92395764e-26,
1.84681428e-26,
1.7386331e-26,
1.60660136e-26,
1.45736937e-26,
1.29698378e-26,
1.13083504e-26,
9.63632037e-27,
7.99400133e-27,
6.41485125e-27,
4.92583161e-27,
3.5477594e-27,
2.2957239e-27,
1.17964162e-27,
2.04782927e-28,
-6.27644295e-28,
-1.31989892e-27,
-1.87714518e-27,
-2.30688447e-27,
-2.61843272e-27,
-2.82243339e-27,
-2.93040622e-27,
-2.95435304e-27,
-2.90640432e-27,
-2.79852219e-27,
-2.642248e-27,
-2.44849714e-27,
-2.22740808e-27,
-1.98821452e-27,
-1.73918003e-27,
-1.48754486e-27,
-1.23951638e-27,
-1.00028449e-27,
-7.74048867e-28,
-5.64076521e-28,
-3.72765715e-28,
-2.01719615e-28,
-5.18335216e-29,
7.66237608e-29,
1.83918088e-28,
2.70763939e-28,
3.38242072e-28,
3.87715963e-28,
4.20760371e-28,
4.39092094e-28,
4.44507953e-28,
4.38833056e-28,
4.23872721e-28,
4.01374249e-28,
3.72995888e-28,
3.40280958e-28,
3.04640228e-28,
2.6733925e-28,
2.2949049e-28,
1.92051688e-28,
1.55825969e-28,
1.21467583e-28,
8.9488708e-29,
6.02691489e-29,
3.40677658e-29,
1.10343771e-29,
-8.77683741e-30,
-2.53944666e-29,
-3.89165803e-29,
-4.94979102e-29,
-5.73379016e-29,
-6.26691766e-29,
-6.57472279e-29,
-6.68410899e-29,
-6.6225015e-29,
-6.41713478e-29,
-6.09446086e-29,
-5.67964565e-29,
-5.19618427e-29,
-4.66561585e-29,
-4.10731132e-29,
-3.53836303e-29,
-2.9735281e-29,
-2.42523646e-29,
-1.90366544e-29,
-1.41683624e-29,
-9.70752124e-30,
-5.69574823e-30,
-2.15796952e-30,
8.9562833e-31,
3.46753718e-30,
5.57104953e-30,
7.22825883e-30,
8.4682267e-30,
9.32530013e-30,
9.83745982e-30,
1.00449434e-29,
9.98895001e-30,
9.71054706e-30,
9.24974424e-30,
8.64473366e-30,
7.93125185e-30,
7.14218255e-30,
6.30716365e-30,
5.45242691e-30,
4.60071411e-30,
3.77124242e-30,
2.97983248e-30,
2.23902653e-30,
1.55830358e-30,
9.44332352e-31,
4.01219873e-31,
-6.9175421e-32,
-4.66959441e-31,
-7.93902459e-31,
-1.05313987e-30,
-1.24890266e-30,
-1.38624883e-30,
-1.47082188e-30,
-1.50863528e-30,
-1.50587259e-30,
-1.46872339e-30,
-1.40323839e-30,
-1.3152075e-30,
-1.21006874e-30,
-1.09283669e-30,
-9.68043578e-31,
-8.39716552e-31,
-7.1135539e-31,
-5.85930472e-31,
-4.65898581e-31,
-3.53219055e-31,
-2.49386275e-31,
-1.55464759e-31,
-7.21286096e-32,
2.93915212e-34,
6.1776601e-32,
1.12549987e-31,
1.53057287e-31,
1.83912133e-31,
2.05858495e-31,
2.19734125e-31,
2.26436582e-31,
2.26893896e-31,
2.22038282e-31,
2.12783991e-31,
2.00008953e-31,
1.84539941e-31,
1.67141073e-31,
1.48505914e-31,
1.29251705e-31,
1.09916891e-31,
9.09606345e-32,
7.27636939e-32,
5.56321568e-32,
3.98011014e-32,
2.543999e-32,
1.26589765e-32,
1.51479326e-33,
-7.98204378e-33,
-1.58607249e-32,
-2.21834798e-32,
-2.70390179e-32,
-3.05366543e-32,
-3.28005212e-32,
-3.39645486e-32,
-3.41678827e-32,
-3.35508363e-32,
-3.2251536e-32,
-3.04029741e-32,
-2.81308258e-32,
-2.55515267e-32,
-2.27710697e-32,
-1.98840747e-32,
-1.69733479e-32,
-1.41097555e-32,
-1.13523462e-32,
-8.74883858e-33,
-6.33615994e-33,
-4.14125448e-33,
-2.18199853e-33,
-4.68077396e-34,
9.97924633e-34,
2.21954658e-33,
3.20545922e-33,
3.96844946e-33,
4.52453984e-33,
4.89211288e-33,
5.09113069e-33,
5.14243918e-33,
5.06715244e-33,
4.88612153e-33,
4.61949003e-33,
4.28634721e-33,
3.90443277e-33,
3.48993216e-33,
3.0573495e-33,
2.61940806e-33,
2.1870414e-33,
1.76939983e-33,
1.37391063e-33,
1.0063735e-33,
6.71061302e-34,
3.70857953e-34,
1.07404356e-34,
-1.18761124e-34,
-3.08039397e-34,
-4.61623887e-34,
-5.81354828e-34,
-6.69574347e-34,
-7.29001051e-34,
-7.6260848e-34,
-7.73516976e-34,
-7.64901521e-34,
-7.39908537e-34,
-7.01587834e-34,
-6.52837374e-34,
-5.96358131e-34,
-5.34622315e-34,
-4.69850143e-34,
-4.0399725e-34,
-3.38748337e-34,
-2.75520631e-34,
-2.15470089e-34,
-1.59505033e-34,
-1.08302129e-34,
-6.23258469e-35,
-2.18498184e-35,
1.30208772e-35,
4.23264894e-35,
6.62298313e-35,
8.49939985e-35,
9.89611271e-35,
1.08532578e-34,
1.14150764e-34,
1.16282576e-34,
1.15405099e-34,
1.1199286e-34,
1.06507411e-34,
9.93884721e-35,
9.10471975e-35,
8.18608871e-35,
7.21694011e-35,
6.22730186e-35,
5.24313643e-35,
4.28636496e-35,
3.37496596e-35,
2.5231507e-35,
1.74161312e-35,
1.03780754e-35,
4.15883466e-36,
-1.2096576e-36,
-5.74537895e-36,
-9.46420033e-36,
-1.23977331e-35,
-1.46073511e-35,
-1.61430573e-35,
-1.70734183e-35,
-1.74709197e-35,
-1.74024104e-35,
-1.69432444e-35,
-1.6161776e-35,
-1.51240636e-35,
-1.38942844e-35,
-1.25284969e-35,
-1.10794669e-35,
-9.59330023e-36,
-8.10947107e-36,
-6.66246579e-36,
-5.27981854e-36,
-3.98383997e-36,
-2.79153703e-36,
-1.71460405e-36,
-7.60679154e-37,
6.68246335e-38,
7.67894429e-37,
1.34534069e-36,
1.8045501e-36,
2.1527225e-36,
2.39857204e-36,
2.55188782e-36,
2.62306804e-36,
2.62288383e-36,
2.5621099e-36,
2.45129082e-36,
2.30055415e-36,
2.11939734e-36,
1.91660842e-36,
1.70013781e-36,
1.47329947e-36,
1.25350547e-36,
1.03202632e-36,
8.35885072e-37,
6.26748069e-37,
4.52820832e-37,
2.90700712e-37,
1.37651544e-37,
1.75613498e-38,
-9.31470218e-38,
-1.83368603e-37,
-2.55508749e-37,
-3.12914745e-37,
-3.50669403e-37,
-3.74898212e-37,
-3.91221097e-37,
-3.90172791e-37,
-3.8383955e-37,
-3.69601864e-37,
-3.46572454e-37,
-3.21729652e-37,
-2.91612363e-37,
-2.59435994e-37,
-2.20869906e-37,
-1.93076463e-37,
-1.56172651e-37,
-1.26157679e-37,
-9.70814419e-38,
-7.20257097e-38,
-4.18243815e-38,
-2.7094784e-38,
0,
2.06254585e-38,
3.61299614e-38,
5.56228834e-38,
4.54192978e-38,
5.28723699e-38,
6.73720704e-38,
6.26510342e-38,
7.34737891e-38,
6.06567567e-38,
8.38406961e-38,
6.24955573e-38,
6.51334456e-38,
6.9009241e-38,
4.01827295e-38,
5.40878002e-38,
4.81495681e-38,
3.78293945e-38,
1.92069619e-38,
3.09810891e-38,
2.28133156e-38,
0,
1.30052885e-38,
0);
|
e1388e60c7da8fa9d88f9534faa2b1987964cab84eea7cb7e5fa4aef471be20d | s-e-a-m/faust-libraries | schroeder-aprev.dsp | import("stdfaust.lib");
// It truly counts from 0
// process = sba.gsweep(max+1,trigger)
gsweep(m,t) = m : %(int(*(t):max(1)))~+(1');
//----------------------------------------------- LINEAR SWEEP UP TO NYQUIST ---
lsweep(sec,t) = (ma.SR/2) : %(int(*(t):max(1)))~+((1/sec)');
//------------------------------------------------------ ZERO PADDING SWEEP ---
zsweep(m) = (gsweep((m*2+1),1)<(m)) : gsweep(m);
// delay feedback in loop
dfl(t,g) = (+ : de.delay(ma.SR/2,int(t)))~*(min(0.999,g));
//process = dfl(1,0.5);
// correzione di un campione
dflc(t,g) = (+ : de.delay(ma.SR/2,int(t-1)))~*(min(0.999,g)):mem;
//process = os.osc(lsweep(1,1)) : dflc(12,0.708);
// all-pass filter
apf(t,g) = _ <: *(ma.neg(min(0.999,g))) + (dflc(t,g)*(1-(g*g)));
//process = os.impulse : apf(1,0.5);
//process = os.impulse : apf(1,0.5) : apf(2,0.5);
//process = os.impulse <: (apf(1,0.5) : apf(2,0.6)), (apf(2,0.6) : apf(1,0.5)); // ordine non sortisce effetto
//process = os.impulse <: seq(i, 16, apf(1,0.5)), seq(i, 128, apf(1,0.5)); //Una sequenza di allpass uguali ne cambia solo il ritardo complessivo
//process = os.impulse : apf()
// dimostrazione che i blocchi er e diff possono essere invertiti senza differenze
// process = os.impulse <: _, (dflc(4801,0.6), dflc(5009,0.4),dflc(8969,0.7),dflc(9173,0.3) :> apf(743,0.7) : apf(353,0.3)),
// (apf(743,0.7) : apf(353,0.3) <: (dflc(4801,0.6), dflc(5009,0.4),dflc(8969,0.7),dflc(9173,0.3) :> _ ));
//process = os.impulse <: _, (dflc(4801,0.6), dflc(5009,0.4),dflc(8969,0.7),dflc(9173,0.3) :> apf(743,0.7) : apf(353,0.3)) : +;
//process = apf(1001,0.7) : apf(1003,0.3) <: (dflc(1009,0.6), dflc(1013,0.4),dflc(1019,0.7),dflc(1021,0.3)) <: par(i,4,_<:_,ma.neg(_)) <: matrix;
matrix = apf(2,0.708), apf(3,0.708), apf(5,0.708), apf(7,0.708),
apf(11,0.708), apf(13,0.708), apf(17,0.708), apf(19,0.708),
apf(23,0.708), apf(29,0.708), apf(31,0.708), apf(37,0.708),
apf(41,0.708), apf(43,0.708), apf(47,0.708), apf(53,0.708) :> _,_; // : ro.hadamard(4);
eavga(a) = *(a) : +~*(1-a);
//process = fi.allpass_comb(512,1,-0.5), apf(512,0.5);
V = 2740;
k = 0.161;
A = 75.5;
RT60 = k*V/A;
//process = RT60;
rt(t,g) = (-3*t)/(log10(g)) : ba.samp2sec;
t = int(ba.sec2samp(0.01));
g = 0.85;
//process = os.impulse : dfl(t,g), rt(t,g);
primes50 = (2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229);
primes20000 = (2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997,1009,1013,1019,1021,1031,1033,1039,1049,1051,1061,1063,1069,1087,1091,1093,1097,1103,1109,1117,1123,1129,1151,1153,1163,1171,1181,1187,1193,1201,1213,1217,1223,1229,1231,1237,1249,1259,1277,1279,1283,1289,1291,1297,1301,1303,1307,1319,1321,1327,1361,1367,1373,1381,1399,1409,1423,1427,1429,1433,1439,1447,1451,1453,1459,1471,1481,1483,1487,1489,1493,1499,1511,1523,1531,1543,1549,1553,1559,1567,1571,1579,1583,1597,1601,1607,1609,1613,1619,1621,1627,1637,1657,1663,1667,1669,1693,1697,1699,1709,1721,1723,1733,1741,1747,1753,1759,1777,1783,1787,1789,1801,1811,1823,1831,1847,1861,1867,1871,1873,1877,1879,1889,1901,1907,1913,1931,1933,1949,1951,1973,1979,1987,1993,1997,1999,2003,2011,2017,2027,2029,2039,2053,2063,2069,2081,2083,2087,2089,2099,2111,2113,2129,2131,2137,2141,2143,2153,2161,2179,2203,2207,2213,2221,2237,2239,2243,2251,2267,2269,2273,2281,2287,2293,2297,2309,2311,2333,2339,2341,2347,2351,2357,2371,2377,2381,2383,2389,2393,2399,2411,2417,2423,2437,2441,2447,2459,2467,2473,2477,2503,2521,2531,2539,2543,2549,2551,2557,2579,2591,2593,2609,2617,2621,2633,2647,2657,2659,2663,2671,2677,2683,2687,2689,2693,2699,2707,2711,2713,2719,2729,2731,2741,2749,2753,2767,2777,2789,2791,2797,2801,2803,2819,2833,2837,2843,2851,2857,2861,2879,2887,2897,2903,2909,2917,2927,2939,2953,2957,2963,2969,2971,2999,3001,3011,3019,3023,3037,3041,3049,3061,3067,3079,3083,3089,3109,3119,3121,3137,3163,3167,3169,3181,3187,3191,3203,3209,3217,3221,3229,3251,3253,3257,3259,3271,3299,3301,3307,3313,3319,3323,3329,3331,3343,3347,3359,3361,3371,3373,3389,3391,3407,3413,3433,3449,3457,3461,3463,3467,3469,3491,3499,3511,3517,3527,3529,3533,3539,3541,3547,3557,3559,3571,3581,3583,3593,3607,3613,3617,3623,3631,3637,3643,3659,3671,3673,3677,3691,3697,3701,3709,3719,3727,3733,3739,3761,3767,3769,3779,3793,3797,3803,3821,3823,3833,3847,3851,3853,3863,3877,3881,3889,3907,3911,3917,3919,3923,3929,3931,3943,3947,3967,3989,4001,4003,4007,4013,4019,4021,4027,4049,4051,4057,4073,4079,4091,4093,4099,4111,4127,4129,4133,4139,4153,4157,4159,4177,4201,4211,4217,4219,4229,4231,4241,4243,4253,4259,4261,4271,4273,4283,4289,4297,4327,4337,4339,4349,4357,4363,4373,4391,4397,4409,4421,4423,4441,4447,4451,4457,4463,4481,4483,4493,4507,4513,4517,4519,4523,4547,4549,4561,4567,4583,4591,4597,4603,4621,4637,4639,4643,4649,4651,4657,4663,4673,4679,4691,4703,4721,4723,4729,4733,4751,4759,4783,4787,4789,4793,4799,4801,4813,4817,4831,4861,4871,4877,4889,4903,4909,4919,4931,4933,4937,4943,4951,4957,4967,4969,4973,4987,4993,4999,5003,5009,5011,5021,5023,5039,5051,5059,5077,5081,5087,5099,5101,5107,5113,5119,5147,5153,5167,5171,5179,5189,5197,5209,5227,5231,5233,5237,5261,5273,5279,5281,5297,5303,5309,5323,5333,5347,5351,5381,5387,5393,5399,5407,5413,5417,5419,5431,5437,5441,5443,5449,5471,5477,5479,5483,5501,5503,5507,5519,5521,5527,5531,5557,5563,5569,5573,5581,5591,5623,5639,5641,5647,5651,5653,5657,5659,5669,5683,5689,5693,5701,5711,5717,5737,5741,5743,5749,5779,5783,5791,5801,5807,5813,5821,5827,5839,5843,5849,5851,5857,5861,5867,5869,5879,5881,5897,5903,5923,5927,5939,5953,5981,5987,6007,6011,6029,6037,6043,6047,6053,6067,6073,6079,6089,6091,6101,6113,6121,6131,6133,6143,6151,6163,6173,6197,6199,6203,6211,6217,6221,6229,6247,6257,6263,6269,6271,6277,6287,6299,6301,6311,6317,6323,6329,6337,6343,6353,6359,6361,6367,6373,6379,6389,6397,6421,6427,6449,6451,6469,6473,6481,6491,6521,6529,6547,6551,6553,6563,6569,6571,6577,6581,6599,6607,6619,6637,6653,6659,6661,6673,6679,6689,6691,6701,6703,6709,6719,6733,6737,6761,6763,6779,6781,6791,6793,6803,6823,6827,6829,6833,6841,6857,6863,6869,6871,6883,6899,6907,6911,6917,6947,6949,6959,6961,6967,6971,6977,6983,6991,6997,7001,7013,7019,7027,7039,7043,7057,7069,7079,7103,7109,7121,7127,7129,7151,7159,7177,7187,7193,7207,7211,7213,7219,7229,7237,7243,7247,7253,7283,7297,7307,7309,7321,7331,7333,7349,7351,7369,7393,7411,7417,7433,7451,7457,7459,7477,7481,7487,7489,7499,7507,7517,7523,7529,7537,7541,7547,7549,7559,7561,7573,7577,7583,7589,7591,7603,7607,7621,7639,7643,7649,7669,7673,7681,7687,7691,7699,7703,7717,7723,7727,7741,7753,7757,7759,7789,7793,7817,7823,7829,7841,7853,7867,7873,7877,7879,7883,7901,7907,7919,7927,7933,7937,7949,7951,7963,7993,8009,8011,8017,8039,8053,8059,8069,8081,8087,8089,8093,8101,8111,8117,8123,8147,8161,8167,8171,8179,8191,8209,8219,8221,8231,8233,8237,8243,8263,8269,8273,8287,8291,8293,8297,8311,8317,8329,8353,8363,8369,8377,8387,8389,8419,8423,8429,8431,8443,8447,8461,8467,8501,8513,8521,8527,8537,8539,8543,8563,8573,8581,8597,8599,8609,8623,8627,8629,8641,8647,8663,8669,8677,8681,8689,8693,8699,8707,8713,8719,8731,8737,8741,8747,8753,8761,8779,8783,8803,8807,8819,8821,8831,8837,8839,8849,8861,8863,8867,8887,8893,8923,8929,8933,8941,8951,8963,8969,8971,8999,9001,9007,9011,9013,9029,9041,9043,9049,9059,9067,9091,9103,9109,9127,9133,9137,9151,9157,9161,9173,9181,9187,9199,9203,9209,9221,9227,9239,9241,9257,9277,9281,9283,9293,9311,9319,9323,9337,9341,9343,9349,9371,9377,9391,9397,9403,9413,9419,9421,9431,9433,9437,9439,9461,9463,9467,9473,9479,9491,9497,9511,9521,9533,9539,9547,9551,9587,9601,9613,9619,9623,9629,9631,9643,9649,9661,9677,9679,9689,9697,9719,9721,9733,9739,9743,9749,9767,9769,9781,9787,9791,9803,9811,9817,9829,9833,9839,9851,9857,9859,9871,9883,9887,9901,9907,9923,9929,9931,9941,9949,9967,9973,10007,10009,10037,10039,10061,10067,10069,10079,10091,10093,10099,10103,10111,10133,10139,10141,10151,10159,10163,10169,10177,10181,10193,10211,10223,10243,10247,10253,10259,10267,10271,10273,10289,10301,10303,10313,10321,10331,10333,10337,10343,10357,10369,10391,10399,10427,10429,10433,10453,10457,10459,10463,10477,10487,10499,10501,10513,10529,10531,10559,10567,10589,10597,10601,10607,10613,10627,10631,10639,10651,10657,10663,10667,10687,10691,10709,10711,10723,10729,10733,10739,10753,10771,10781,10789,10799,10831,10837,10847,10853,10859,10861,10867,10883,10889,10891,10903,10909,10937,10939,10949,10957,10973,10979,10987,10993,11003,11027,11047,11057,11059,11069,11071,11083,11087,11093,11113,11117,11119,11131,11149,11159,11161,11171,11173,11177,11197,11213,11239,11243,11251,11257,11261,11273,11279,11287,11299,11311,11317,11321,11329,11351,11353,11369,11383,11393,11399,11411,11423,11437,11443,11447,11467,11471,11483,11489,11491,11497,11503,11519,11527,11549,11551,11579,11587,11593,11597,11617,11621,11633,11657,11677,11681,11689,11699,11701,11717,11719,11731,11743,11777,11779,11783,11789,11801,11807,11813,11821,11827,11831,11833,11839,11863,11867,11887,11897,11903,11909,11923,11927,11933,11939,11941,11953,11959,11969,11971,11981,11987,12007,12011,12037,12041,12043,12049,12071,12073,12097,12101,12107,12109,12113,12119,12143,12149,12157,12161,12163,12197,12203,12211,12227,12239,12241,12251,12253,12263,12269,12277,12281,12289,12301,12323,12329,12343,12347,12373,12377,12379,12391,12401,12409,12413,12421,12433,12437,12451,12457,12473,12479,12487,12491,12497,12503,12511,12517,12527,12539,12541,12547,12553,12569,12577,12583,12589,12601,12611,12613,12619,12637,12641,12647,12653,12659,12671,12689,12697,12703,12713,12721,12739,12743,12757,12763,12781,12791,12799,12809,12821,12823,12829,12841,12853,12889,12893,12899,12907,12911,12917,12919,12923,12941,12953,12959,12967,12973,12979,12983,13001,13003,13007,13009,13033,13037,13043,13049,13063,13093,13099,13103,13109,13121,13127,13147,13151,13159,13163,13171,13177,13183,13187,13217,13219,13229,13241,13249,13259,13267,13291,13297,13309,13313,13327,13331,13337,13339,13367,13381,13397,13399,13411,13417,13421,13441,13451,13457,13463,13469,13477,13487,13499,13513,13523,13537,13553,13567,13577,13591,13597,13613,13619,13627,13633,13649,13669,13679,13681,13687,13691,13693,13697,13709,13711,13721,13723,13729,13751,13757,13759,13763,13781,13789,13799,13807,13829,13831,13841,13859,13873,13877,13879,13883,13901,13903,13907,13913,13921,13931,13933,13963,13967,13997,13999,14009,14011,14029,14033,14051,14057,14071,14081,14083,14087,14107,14143,14149,14153,14159,14173,14177,14197,14207,14221,14243,14249,14251,14281,14293,14303,14321,14323,14327,14341,14347,14369,14387,14389,14401,14407,14411,14419,14423,14431,14437,14447,14449,14461,14479,14489,14503,14519,14533,14537,14543,14549,14551,14557,14561,14563,14591,14593,14621,14627,14629,14633,14639,14653,14657,14669,14683,14699,14713,14717,14723,14731,14737,14741,14747,14753,14759,14767,14771,14779,14783,14797,14813,14821,14827,14831,14843,14851,14867,14869,14879,14887,14891,14897,14923,14929,14939,14947,14951,14957,14969,14983,15013,15017,15031,15053,15061,15073,15077,15083,15091,15101,15107,15121,15131,15137,15139,15149,15161,15173,15187,15193,15199,15217,15227,15233,15241,15259,15263,15269,15271,15277,15287,15289,15299,15307,15313,15319,15329,15331,15349,15359,15361,15373,15377,15383,15391,15401,15413,15427,15439,15443,15451,15461,15467,15473,15493,15497,15511,15527,15541,15551,15559,15569,15581,15583,15601,15607,15619,15629,15641,15643,15647,15649,15661,15667,15671,15679,15683,15727,15731,15733,15737,15739,15749,15761,15767,15773,15787,15791,15797,15803,15809,15817,15823,15859,15877,15881,15887,15889,15901,15907,15913,15919,15923,15937,15959,15971,15973,15991,16001,16007,16033,16057,16061,16063,16067,16069,16073,16087,16091,16097,16103,16111,16127,16139,16141,16183,16187,16189,16193,16217,16223,16229,16231,16249,16253,16267,16273,16301,16319,16333,16339,16349,16361,16363,16369,16381,16411,16417,16421,16427,16433,16447,16451,16453,16477,16481,16487,16493,16519,16529,16547,16553,16561,16567,16573,16603,16607,16619,16631,16633,16649,16651,16657,16661,16673,16691,16693,16699,16703,16729,16741,16747,16759,16763,16787,16811,16823,16829,16831,16843,16871,16879,16883,16889,16901,16903,16921,16927,16931,16937,16943,16963,16979,16981,16987,16993,17011,17021,17027,17029,17033,17041,17047,17053,17077,17093,17099,17107,17117,17123,17137,17159,17167,17183,17189,17191,17203,17207,17209,17231,17239,17257,17291,17293,17299,17317,17321,17327,17333,17341,17351,17359,17377,17383,17387,17389,17393,17401,17417,17419,17431,17443,17449,17467,17471,17477,17483,17489,17491,17497,17509,17519,17539,17551,17569,17573,17579,17581,17597,17599,17609,17623,17627,17657,17659,17669,17681,17683,17707,17713,17729,17737,17747,17749,17761,17783,17789,17791,17807,17827,17837,17839,17851,17863,17881,17891,17903,17909,17911,17921,17923,17929,17939,17957,17959,17971,17977,17981,17987,17989,18013,18041,18043,18047,18049,18059,18061,18077,18089,18097,18119,18121,18127,18131,18133,18143,18149,18169,18181,18191,18199,18211,18217,18223,18229,18233,18251,18253,18257,18269,18287,18289,18301,18307,18311,18313,18329,18341,18353,18367,18371,18379,18397,18401,18413,18427,18433,18439,18443,18451,18457,18461,18481,18493,18503,18517,18521,18523,18539,18541,18553,18583,18587,18593,18617,18637,18661,18671,18679,18691,18701,18713,18719,18731,18743,18749,18757,18773,18787,18793,18797,18803,18839,18859,18869,18899,18911,18913,18917,18919,18947,18959,18973,18979,19001,19009,19013,19031,19037,19051,19069,19073,19079,19081,19087,19121,19139,19141,19157,19163,19181,19183,19207,19211,19213,19219,19231,19237,19249,19259,19267,19273,19289,19301,19309,19319,19333,19373,19379,19381,19387,19391,19403,19417,19421,19423,19427,19429,19433,19441,19447,19457,19463,19469,19471,19477,19483,19489,19501,19507,19531,19541,19543,19553,19559,19571,19577,19583,19597,19603,19609,19661,19681,19687,19697,19699,19709,19717,19727,19739,19751,19753,19759,19763,19777,19793,19801,19813,19819,19841,19843,19853,19861,19867,19889,19891,19913,19919,19927,19937,19949,19961,19963,19973,19979,19991,19993,19997);
sums(n) = (n*(n+1))/2;
list(N,d,o) = par(i,N,ba.take((i*d)+1+o,primes20000));
//process = list(16,3,4);
density = hslider("DENSITY", 1,1,100,1) : int;
distance = hslider("DISTANCE", 0,0,100,1) : int;
aprev(N,d,o) = seq(i,N,apf(ba.take((i*d)+1+o,primes20000),0.708));
process = _ <: aprev(16,101,99), aprev(16,99,101);
earlyr(N,o) = _;
| https://raw.githubusercontent.com/s-e-a-m/faust-libraries/9120cccb9335f42407062eb4bf149188d8018b07/examples/schroeder-aprev.dsp | faust | It truly counts from 0
process = sba.gsweep(max+1,trigger)
----------------------------------------------- LINEAR SWEEP UP TO NYQUIST ---
------------------------------------------------------ ZERO PADDING SWEEP ---
delay feedback in loop
process = dfl(1,0.5);
correzione di un campione
process = os.osc(lsweep(1,1)) : dflc(12,0.708);
all-pass filter
process = os.impulse : apf(1,0.5);
process = os.impulse : apf(1,0.5) : apf(2,0.5);
process = os.impulse <: (apf(1,0.5) : apf(2,0.6)), (apf(2,0.6) : apf(1,0.5)); // ordine non sortisce effetto
process = os.impulse <: seq(i, 16, apf(1,0.5)), seq(i, 128, apf(1,0.5)); //Una sequenza di allpass uguali ne cambia solo il ritardo complessivo
process = os.impulse : apf()
dimostrazione che i blocchi er e diff possono essere invertiti senza differenze
process = os.impulse <: _, (dflc(4801,0.6), dflc(5009,0.4),dflc(8969,0.7),dflc(9173,0.3) :> apf(743,0.7) : apf(353,0.3)),
(apf(743,0.7) : apf(353,0.3) <: (dflc(4801,0.6), dflc(5009,0.4),dflc(8969,0.7),dflc(9173,0.3) :> _ ));
process = os.impulse <: _, (dflc(4801,0.6), dflc(5009,0.4),dflc(8969,0.7),dflc(9173,0.3) :> apf(743,0.7) : apf(353,0.3)) : +;
process = apf(1001,0.7) : apf(1003,0.3) <: (dflc(1009,0.6), dflc(1013,0.4),dflc(1019,0.7),dflc(1021,0.3)) <: par(i,4,_<:_,ma.neg(_)) <: matrix;
: ro.hadamard(4);
process = fi.allpass_comb(512,1,-0.5), apf(512,0.5);
process = RT60;
process = os.impulse : dfl(t,g), rt(t,g);
process = list(16,3,4); | import("stdfaust.lib");
gsweep(m,t) = m : %(int(*(t):max(1)))~+(1');
lsweep(sec,t) = (ma.SR/2) : %(int(*(t):max(1)))~+((1/sec)');
zsweep(m) = (gsweep((m*2+1),1)<(m)) : gsweep(m);
dfl(t,g) = (+ : de.delay(ma.SR/2,int(t)))~*(min(0.999,g));
dflc(t,g) = (+ : de.delay(ma.SR/2,int(t-1)))~*(min(0.999,g)):mem;
apf(t,g) = _ <: *(ma.neg(min(0.999,g))) + (dflc(t,g)*(1-(g*g)));
matrix = apf(2,0.708), apf(3,0.708), apf(5,0.708), apf(7,0.708),
apf(11,0.708), apf(13,0.708), apf(17,0.708), apf(19,0.708),
apf(23,0.708), apf(29,0.708), apf(31,0.708), apf(37,0.708),
eavga(a) = *(a) : +~*(1-a);
V = 2740;
k = 0.161;
A = 75.5;
RT60 = k*V/A;
rt(t,g) = (-3*t)/(log10(g)) : ba.samp2sec;
t = int(ba.sec2samp(0.01));
g = 0.85;
primes50 = (2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229);
primes20000 = (2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997,1009,1013,1019,1021,1031,1033,1039,1049,1051,1061,1063,1069,1087,1091,1093,1097,1103,1109,1117,1123,1129,1151,1153,1163,1171,1181,1187,1193,1201,1213,1217,1223,1229,1231,1237,1249,1259,1277,1279,1283,1289,1291,1297,1301,1303,1307,1319,1321,1327,1361,1367,1373,1381,1399,1409,1423,1427,1429,1433,1439,1447,1451,1453,1459,1471,1481,1483,1487,1489,1493,1499,1511,1523,1531,1543,1549,1553,1559,1567,1571,1579,1583,1597,1601,1607,1609,1613,1619,1621,1627,1637,1657,1663,1667,1669,1693,1697,1699,1709,1721,1723,1733,1741,1747,1753,1759,1777,1783,1787,1789,1801,1811,1823,1831,1847,1861,1867,1871,1873,1877,1879,1889,1901,1907,1913,1931,1933,1949,1951,1973,1979,1987,1993,1997,1999,2003,2011,2017,2027,2029,2039,2053,2063,2069,2081,2083,2087,2089,2099,2111,2113,2129,2131,2137,2141,2143,2153,2161,2179,2203,2207,2213,2221,2237,2239,2243,2251,2267,2269,2273,2281,2287,2293,2297,2309,2311,2333,2339,2341,2347,2351,2357,2371,2377,2381,2383,2389,2393,2399,2411,2417,2423,2437,2441,2447,2459,2467,2473,2477,2503,2521,2531,2539,2543,2549,2551,2557,2579,2591,2593,2609,2617,2621,2633,2647,2657,2659,2663,2671,2677,2683,2687,2689,2693,2699,2707,2711,2713,2719,2729,2731,2741,2749,2753,2767,2777,2789,2791,2797,2801,2803,2819,2833,2837,2843,2851,2857,2861,2879,2887,2897,2903,2909,2917,2927,2939,2953,2957,2963,2969,2971,2999,3001,3011,3019,3023,3037,3041,3049,3061,3067,3079,3083,3089,3109,3119,3121,3137,3163,3167,3169,3181,3187,3191,3203,3209,3217,3221,3229,3251,3253,3257,3259,3271,3299,3301,3307,3313,3319,3323,3329,3331,3343,3347,3359,3361,3371,3373,3389,3391,3407,3413,3433,3449,3457,3461,3463,3467,3469,3491,3499,3511,3517,3527,3529,3533,3539,3541,3547,3557,3559,3571,3581,3583,3593,3607,3613,3617,3623,3631,3637,3643,3659,3671,3673,3677,3691,3697,3701,3709,3719,3727,3733,3739,3761,3767,3769,3779,3793,3797,3803,3821,3823,3833,3847,3851,3853,3863,3877,3881,3889,3907,3911,3917,3919,3923,3929,3931,3943,3947,3967,3989,4001,4003,4007,4013,4019,4021,4027,4049,4051,4057,4073,4079,4091,4093,4099,4111,4127,4129,4133,4139,4153,4157,4159,4177,4201,4211,4217,4219,4229,4231,4241,4243,4253,4259,4261,4271,4273,4283,4289,4297,4327,4337,4339,4349,4357,4363,4373,4391,4397,4409,4421,4423,4441,4447,4451,4457,4463,4481,4483,4493,4507,4513,4517,4519,4523,4547,4549,4561,4567,4583,4591,4597,4603,4621,4637,4639,4643,4649,4651,4657,4663,4673,4679,4691,4703,4721,4723,4729,4733,4751,4759,4783,4787,4789,4793,4799,4801,4813,4817,4831,4861,4871,4877,4889,4903,4909,4919,4931,4933,4937,4943,4951,4957,4967,4969,4973,4987,4993,4999,5003,5009,5011,5021,5023,5039,5051,5059,5077,5081,5087,5099,5101,5107,5113,5119,5147,5153,5167,5171,5179,5189,5197,5209,5227,5231,5233,5237,5261,5273,5279,5281,5297,5303,5309,5323,5333,5347,5351,5381,5387,5393,5399,5407,5413,5417,5419,5431,5437,5441,5443,5449,5471,5477,5479,5483,5501,5503,5507,5519,5521,5527,5531,5557,5563,5569,5573,5581,5591,5623,5639,5641,5647,5651,5653,5657,5659,5669,5683,5689,5693,5701,5711,5717,5737,5741,5743,5749,5779,5783,5791,5801,5807,5813,5821,5827,5839,5843,5849,5851,5857,5861,5867,5869,5879,5881,5897,5903,5923,5927,5939,5953,5981,5987,6007,6011,6029,6037,6043,6047,6053,6067,6073,6079,6089,6091,6101,6113,6121,6131,6133,6143,6151,6163,6173,6197,6199,6203,6211,6217,6221,6229,6247,6257,6263,6269,6271,6277,6287,6299,6301,6311,6317,6323,6329,6337,6343,6353,6359,6361,6367,6373,6379,6389,6397,6421,6427,6449,6451,6469,6473,6481,6491,6521,6529,6547,6551,6553,6563,6569,6571,6577,6581,6599,6607,6619,6637,6653,6659,6661,6673,6679,6689,6691,6701,6703,6709,6719,6733,6737,6761,6763,6779,6781,6791,6793,6803,6823,6827,6829,6833,6841,6857,6863,6869,6871,6883,6899,6907,6911,6917,6947,6949,6959,6961,6967,6971,6977,6983,6991,6997,7001,7013,7019,7027,7039,7043,7057,7069,7079,7103,7109,7121,7127,7129,7151,7159,7177,7187,7193,7207,7211,7213,7219,7229,7237,7243,7247,7253,7283,7297,7307,7309,7321,7331,7333,7349,7351,7369,7393,7411,7417,7433,7451,7457,7459,7477,7481,7487,7489,7499,7507,7517,7523,7529,7537,7541,7547,7549,7559,7561,7573,7577,7583,7589,7591,7603,7607,7621,7639,7643,7649,7669,7673,7681,7687,7691,7699,7703,7717,7723,7727,7741,7753,7757,7759,7789,7793,7817,7823,7829,7841,7853,7867,7873,7877,7879,7883,7901,7907,7919,7927,7933,7937,7949,7951,7963,7993,8009,8011,8017,8039,8053,8059,8069,8081,8087,8089,8093,8101,8111,8117,8123,8147,8161,8167,8171,8179,8191,8209,8219,8221,8231,8233,8237,8243,8263,8269,8273,8287,8291,8293,8297,8311,8317,8329,8353,8363,8369,8377,8387,8389,8419,8423,8429,8431,8443,8447,8461,8467,8501,8513,8521,8527,8537,8539,8543,8563,8573,8581,8597,8599,8609,8623,8627,8629,8641,8647,8663,8669,8677,8681,8689,8693,8699,8707,8713,8719,8731,8737,8741,8747,8753,8761,8779,8783,8803,8807,8819,8821,8831,8837,8839,8849,8861,8863,8867,8887,8893,8923,8929,8933,8941,8951,8963,8969,8971,8999,9001,9007,9011,9013,9029,9041,9043,9049,9059,9067,9091,9103,9109,9127,9133,9137,9151,9157,9161,9173,9181,9187,9199,9203,9209,9221,9227,9239,9241,9257,9277,9281,9283,9293,9311,9319,9323,9337,9341,9343,9349,9371,9377,9391,9397,9403,9413,9419,9421,9431,9433,9437,9439,9461,9463,9467,9473,9479,9491,9497,9511,9521,9533,9539,9547,9551,9587,9601,9613,9619,9623,9629,9631,9643,9649,9661,9677,9679,9689,9697,9719,9721,9733,9739,9743,9749,9767,9769,9781,9787,9791,9803,9811,9817,9829,9833,9839,9851,9857,9859,9871,9883,9887,9901,9907,9923,9929,9931,9941,9949,9967,9973,10007,10009,10037,10039,10061,10067,10069,10079,10091,10093,10099,10103,10111,10133,10139,10141,10151,10159,10163,10169,10177,10181,10193,10211,10223,10243,10247,10253,10259,10267,10271,10273,10289,10301,10303,10313,10321,10331,10333,10337,10343,10357,10369,10391,10399,10427,10429,10433,10453,10457,10459,10463,10477,10487,10499,10501,10513,10529,10531,10559,10567,10589,10597,10601,10607,10613,10627,10631,10639,10651,10657,10663,10667,10687,10691,10709,10711,10723,10729,10733,10739,10753,10771,10781,10789,10799,10831,10837,10847,10853,10859,10861,10867,10883,10889,10891,10903,10909,10937,10939,10949,10957,10973,10979,10987,10993,11003,11027,11047,11057,11059,11069,11071,11083,11087,11093,11113,11117,11119,11131,11149,11159,11161,11171,11173,11177,11197,11213,11239,11243,11251,11257,11261,11273,11279,11287,11299,11311,11317,11321,11329,11351,11353,11369,11383,11393,11399,11411,11423,11437,11443,11447,11467,11471,11483,11489,11491,11497,11503,11519,11527,11549,11551,11579,11587,11593,11597,11617,11621,11633,11657,11677,11681,11689,11699,11701,11717,11719,11731,11743,11777,11779,11783,11789,11801,11807,11813,11821,11827,11831,11833,11839,11863,11867,11887,11897,11903,11909,11923,11927,11933,11939,11941,11953,11959,11969,11971,11981,11987,12007,12011,12037,12041,12043,12049,12071,12073,12097,12101,12107,12109,12113,12119,12143,12149,12157,12161,12163,12197,12203,12211,12227,12239,12241,12251,12253,12263,12269,12277,12281,12289,12301,12323,12329,12343,12347,12373,12377,12379,12391,12401,12409,12413,12421,12433,12437,12451,12457,12473,12479,12487,12491,12497,12503,12511,12517,12527,12539,12541,12547,12553,12569,12577,12583,12589,12601,12611,12613,12619,12637,12641,12647,12653,12659,12671,12689,12697,12703,12713,12721,12739,12743,12757,12763,12781,12791,12799,12809,12821,12823,12829,12841,12853,12889,12893,12899,12907,12911,12917,12919,12923,12941,12953,12959,12967,12973,12979,12983,13001,13003,13007,13009,13033,13037,13043,13049,13063,13093,13099,13103,13109,13121,13127,13147,13151,13159,13163,13171,13177,13183,13187,13217,13219,13229,13241,13249,13259,13267,13291,13297,13309,13313,13327,13331,13337,13339,13367,13381,13397,13399,13411,13417,13421,13441,13451,13457,13463,13469,13477,13487,13499,13513,13523,13537,13553,13567,13577,13591,13597,13613,13619,13627,13633,13649,13669,13679,13681,13687,13691,13693,13697,13709,13711,13721,13723,13729,13751,13757,13759,13763,13781,13789,13799,13807,13829,13831,13841,13859,13873,13877,13879,13883,13901,13903,13907,13913,13921,13931,13933,13963,13967,13997,13999,14009,14011,14029,14033,14051,14057,14071,14081,14083,14087,14107,14143,14149,14153,14159,14173,14177,14197,14207,14221,14243,14249,14251,14281,14293,14303,14321,14323,14327,14341,14347,14369,14387,14389,14401,14407,14411,14419,14423,14431,14437,14447,14449,14461,14479,14489,14503,14519,14533,14537,14543,14549,14551,14557,14561,14563,14591,14593,14621,14627,14629,14633,14639,14653,14657,14669,14683,14699,14713,14717,14723,14731,14737,14741,14747,14753,14759,14767,14771,14779,14783,14797,14813,14821,14827,14831,14843,14851,14867,14869,14879,14887,14891,14897,14923,14929,14939,14947,14951,14957,14969,14983,15013,15017,15031,15053,15061,15073,15077,15083,15091,15101,15107,15121,15131,15137,15139,15149,15161,15173,15187,15193,15199,15217,15227,15233,15241,15259,15263,15269,15271,15277,15287,15289,15299,15307,15313,15319,15329,15331,15349,15359,15361,15373,15377,15383,15391,15401,15413,15427,15439,15443,15451,15461,15467,15473,15493,15497,15511,15527,15541,15551,15559,15569,15581,15583,15601,15607,15619,15629,15641,15643,15647,15649,15661,15667,15671,15679,15683,15727,15731,15733,15737,15739,15749,15761,15767,15773,15787,15791,15797,15803,15809,15817,15823,15859,15877,15881,15887,15889,15901,15907,15913,15919,15923,15937,15959,15971,15973,15991,16001,16007,16033,16057,16061,16063,16067,16069,16073,16087,16091,16097,16103,16111,16127,16139,16141,16183,16187,16189,16193,16217,16223,16229,16231,16249,16253,16267,16273,16301,16319,16333,16339,16349,16361,16363,16369,16381,16411,16417,16421,16427,16433,16447,16451,16453,16477,16481,16487,16493,16519,16529,16547,16553,16561,16567,16573,16603,16607,16619,16631,16633,16649,16651,16657,16661,16673,16691,16693,16699,16703,16729,16741,16747,16759,16763,16787,16811,16823,16829,16831,16843,16871,16879,16883,16889,16901,16903,16921,16927,16931,16937,16943,16963,16979,16981,16987,16993,17011,17021,17027,17029,17033,17041,17047,17053,17077,17093,17099,17107,17117,17123,17137,17159,17167,17183,17189,17191,17203,17207,17209,17231,17239,17257,17291,17293,17299,17317,17321,17327,17333,17341,17351,17359,17377,17383,17387,17389,17393,17401,17417,17419,17431,17443,17449,17467,17471,17477,17483,17489,17491,17497,17509,17519,17539,17551,17569,17573,17579,17581,17597,17599,17609,17623,17627,17657,17659,17669,17681,17683,17707,17713,17729,17737,17747,17749,17761,17783,17789,17791,17807,17827,17837,17839,17851,17863,17881,17891,17903,17909,17911,17921,17923,17929,17939,17957,17959,17971,17977,17981,17987,17989,18013,18041,18043,18047,18049,18059,18061,18077,18089,18097,18119,18121,18127,18131,18133,18143,18149,18169,18181,18191,18199,18211,18217,18223,18229,18233,18251,18253,18257,18269,18287,18289,18301,18307,18311,18313,18329,18341,18353,18367,18371,18379,18397,18401,18413,18427,18433,18439,18443,18451,18457,18461,18481,18493,18503,18517,18521,18523,18539,18541,18553,18583,18587,18593,18617,18637,18661,18671,18679,18691,18701,18713,18719,18731,18743,18749,18757,18773,18787,18793,18797,18803,18839,18859,18869,18899,18911,18913,18917,18919,18947,18959,18973,18979,19001,19009,19013,19031,19037,19051,19069,19073,19079,19081,19087,19121,19139,19141,19157,19163,19181,19183,19207,19211,19213,19219,19231,19237,19249,19259,19267,19273,19289,19301,19309,19319,19333,19373,19379,19381,19387,19391,19403,19417,19421,19423,19427,19429,19433,19441,19447,19457,19463,19469,19471,19477,19483,19489,19501,19507,19531,19541,19543,19553,19559,19571,19577,19583,19597,19603,19609,19661,19681,19687,19697,19699,19709,19717,19727,19739,19751,19753,19759,19763,19777,19793,19801,19813,19819,19841,19843,19853,19861,19867,19889,19891,19913,19919,19927,19937,19949,19961,19963,19973,19979,19991,19993,19997);
sums(n) = (n*(n+1))/2;
list(N,d,o) = par(i,N,ba.take((i*d)+1+o,primes20000));
density = hslider("DENSITY", 1,1,100,1) : int;
distance = hslider("DISTANCE", 0,0,100,1) : int;
aprev(N,d,o) = seq(i,N,apf(ba.take((i*d)+1+o,primes20000),0.708));
process = _ <: aprev(16,101,99), aprev(16,99,101);
earlyr(N,o) = _;
|
bee21dfe087a3c99e897229e3addfa77970aadd957cfe33e8064d3770647ec37 | s-e-a-m/faust-libraries | irconv2.dsp | import("stdfaust.lib");
process = ba.pulsen(1, ma.SR) : fi.conv(fcoeff);
// 128 tap 0~20000 -0.01dB // 30000~96000 -151.58dB
fcoeff = ( -8.031702041625977e-02,
-6.119704246520996e-02,
6.487882137298584e-02,
1.519786119461060e-01,
1.391460895538330e-01,
6.688344478607178e-02,
3.468430042266846e-02,
4.473912715911865e-02,
2.957773208618164e-02,
3.152477741241455e-02,
6.014704704284668e-03,
-3.092753887176514e-02,
-3.032672405242920e-02,
-4.378354549407959e-02,
-3.611135482788086e-02,
-2.634370326995850e-02,
-3.631913661956787e-02,
-1.330399513244629e-02,
4.097342491149902e-02,
5.946350097656250e-02,
5.272006988525391e-02,
6.297695636749268e-02,
7.285535335540771e-02,
1.084927320480347e-01,
1.261693239212036e-01,
6.113779544830322e-02,
-1.092457771301270e-02,
-3.841650485992432e-02,
-3.320670127868652e-02,
-3.182649612426758e-02,
-6.585037708282471e-02,
-1.022051572799683e-01,
-1.138334274291992e-01,
-1.066131591796875e-01,
-9.279680252075195e-02,
-8.884251117706299e-02,
-9.681046009063721e-02,
-1.250512599945068e-01,
-1.328966617584229e-01,
-1.137355566024780e-01,
-1.166243553161621e-01,
-1.291166543960571e-01,
-1.182435750961304e-01,
-9.263372421264648e-02,
-5.898058414459229e-02,
-4.252898693084717e-02,
-6.191921234130859e-02,
-6.389343738555908e-02,
-4.249060153961182e-02,
4.056310653686523e-02,
7.430100440979004e-02,
4.937362670898438e-02,
4.940629005432129e-02,
1.038172245025635e-01,
1.153175830841064e-01,
5.441808700561523e-02,
1.118719577789307e-02,
1.538395881652832e-03,
1.260018348693848e-02,
2.850651741027832e-03,
-6.542670726776123e-02,
-1.648871898651123e-01,
-1.847909688949585e-01,
-8.371746540069580e-02,
-6.213963031768799e-02,
-1.345129013061523e-01,
-1.059463024139404e-01,
8.215320110321045e-02,
1.946704387664795e-01,
1.480975151062012e-01,
8.367443084716797e-02,
4.817008972167969e-02,
4.743432998657227e-02,
9.427642822265625e-02,
1.319798231124878e-01,
5.981457233428955e-02,
-4.753541946411133e-02,
-4.327285289764404e-02,
5.664110183715820e-03,
4.520058631896973e-02,
3.814506530761719e-02,
6.582379341125488e-03,
1.770853996276855e-03,
3.491330146789551e-02,
8.326053619384766e-02,
1.255071163177490e-01,
1.107587814331055e-01,
8.059930801391602e-02,
5.964279174804688e-02,
4.385030269622803e-02,
4.177629947662354e-02,
3.528904914855957e-02,
2.511930465698242e-02,
2.885019779205322e-02,
6.020283699035645e-02,
7.685673236846924e-02,
7.614493370056152e-02,
7.512211799621582e-02,
7.443439960479736e-02,
4.816448688507080e-02,
8.881568908691406e-03,
2.621769905090332e-03,
3.722476959228516e-02,
5.855691432952881e-02,
5.092895030975342e-02,
2.546751499176025e-02,
9.191513061523438e-03,
5.648732185363770e-03,
2.177739143371582e-02,
6.881189346313477e-02,
1.096007823944092e-01,
1.273907423019409e-01,
1.169677972793579e-01,
7.764387130737305e-02,
3.812944889068604e-02,
4.714822769165039e-02,
7.216310501098633e-02,
8.468079566955566e-02,
8.889460563659668e-02,
7.382178306579590e-02,
4.785692691802979e-02,
3.100109100341797e-02,
3.130149841308594e-02,
3.052604198455811e-02,
4.917562007904053e-02,
6.012439727783203e-02,
6.120836734771729e-02,
5.872559547424316e-02,
5.808877944946289e-02,
6.193852424621582e-02,
6.643795967102051e-02,
8.074414730072021e-02,
7.910382747650146e-02,
7.392585277557373e-02,
9.064757823944092e-02,
7.813978195190430e-02,
6.213688850402832e-02,
7.546973228454590e-02,
7.619690895080566e-02,
7.885217666625977e-02,
8.107876777648926e-02,
7.710611820220947e-02,
7.003140449523926e-02,
5.077672004699707e-02,
2.737689018249512e-02,
1.351869106292725e-02,
1.388967037200928e-02,
1.392853260040283e-02,
1.828265190124512e-02,
1.260340213775635e-02,
-1.862406730651855e-03,
-1.281905174255371e-02,
-2.753460407257080e-02,
8.428812026977539e-03,
3.966534137725830e-02,
2.615451812744141e-04,
1.035881042480469e-02,
6.961643695831299e-02,
9.959375858306885e-02,
6.329607963562012e-02,
3.831183910369873e-02,
5.004739761352539e-02,
5.438804626464844e-02,
4.115772247314453e-02,
3.480362892150879e-02,
1.028370857238770e-02,
-1.825714111328125e-02,
-1.974046230316162e-02,
-1.656997203826904e-02,
-3.396153450012207e-02,
-4.748511314392090e-02,
-7.566809654235840e-03,
7.564783096313477e-03,
-1.844978332519531e-02,
-4.681026935577393e-02,
-5.388343334197998e-02,
-5.359184741973877e-02,
-4.703819751739502e-02,
-3.498196601867676e-02,
-4.247581958770752e-02,
-5.230617523193359e-02,
-3.825473785400391e-02,
-1.893854141235352e-02,
-3.446924686431885e-02,
-4.752123355865479e-02,
-5.448067188262939e-02,
-5.400943756103516e-02,
-3.554499149322510e-02,
-3.153026103973389e-02,
-5.353701114654541e-02,
-6.117200851440430e-02,
-5.666875839233398e-02,
-7.283914089202881e-02,
-8.983254432678223e-02,
-7.253956794738770e-02,
-5.325508117675781e-02,
-6.221652030944824e-02,
-5.882561206817627e-02,
-4.741334915161133e-02,
-4.641270637512207e-02,
-4.940819740295410e-02,
-4.046273231506348e-02,
-3.461444377899170e-02,
-3.574264049530029e-02,
-5.004036426544189e-02,
-6.450366973876953e-02,
-6.727659702301025e-02,
-6.844723224639893e-02,
-6.304693222045898e-02,
-5.696582794189453e-02,
-6.540787220001221e-02,
-8.048069477081299e-02,
-7.288801670074463e-02,
-6.781005859375000e-02,
-9.229803085327148e-02,
-1.102265119552612e-01,
-8.886814117431641e-02,
-6.226313114166260e-02,
-5.960023403167725e-02,
-6.651604175567627e-02,
-6.698632240295410e-02,
-3.844630718231201e-02,
-1.313447952270508e-03,
1.695084571838379e-02,
1.070654392242432e-02,
-1.171422004699707e-02,
-2.675759792327881e-02,
-9.063839912414551e-03,
7.017493247985840e-03,
3.567218780517578e-03,
-3.885746002197266e-03,
-7.615804672241211e-03,
6.287217140197754e-03,
2.375674247741699e-02,
2.609598636627197e-02,
2.357995510101318e-02,
2.219951152801514e-02,
2.005529403686523e-02,
2.644801139831543e-02,
2.211165428161621e-02,
-1.763343811035156e-03,
-6.347060203552246e-03,
2.128708362579346e-02,
1.022088527679443e-02,
-2.813839912414551e-02,
-3.157567977905273e-02,
-1.123166084289551e-02,
5.404710769653320e-03,
-3.138303756713867e-03,
5.960464477539062e-06,
2.254688739776611e-02,
2.829754352569580e-02,
1.266753673553467e-02,
-6.999969482421875e-03,
-6.956815719604492e-03,
1.413869857788086e-02,
3.942799568176270e-02,
3.902328014373779e-02,
1.271152496337891e-02,
2.573609352111816e-03,
2.974689006805420e-02,
5.825972557067871e-02,
4.152023792266846e-02,
-7.865667343139648e-03,
-2.875661849975586e-02,
-7.740855216979980e-03,
-1.253950595855713e-02,
-9.763240814208984e-04,
5.746841430664062e-03,
-1.260828971862793e-02,
-1.417446136474609e-02,
-2.850687503814697e-02,
-2.147996425628662e-02,
1.450061798095703e-03,
9.935379028320312e-03,
1.565003395080566e-02,
-3.583788871765137e-03,
-1.906669139862061e-02,
-1.436471939086914e-04,
4.725694656372070e-03,
5.975961685180664e-03,
1.347482204437256e-02,
1.782464981079102e-02,
2.321994304656982e-02,
1.978671550750732e-02,
1.562774181365967e-02,
1.181864738464355e-02,
-9.040236473083496e-03,
-1.549756526947021e-02,
4.518866539001465e-03,
-6.092190742492676e-03,
-4.430019855499268e-02,
-8.397269248962402e-02,
-5.973470211029053e-02,
-1.721024513244629e-03,
2.166652679443359e-02,
9.495496749877930e-03,
-7.220745086669922e-03,
-1.313710212707520e-02,
5.892515182495117e-03,
2.795135974884033e-02,
3.888058662414551e-02,
2.763056755065918e-02,
-3.612875938415527e-03,
-1.674032211303711e-02,
8.883118629455566e-03,
5.893540382385254e-02,
7.521498203277588e-02,
5.232501029968262e-02,
2.057099342346191e-02,
1.057243347167969e-02,
2.780437469482422e-02,
4.416918754577637e-02,
5.176460742950439e-02,
4.026627540588379e-02,
1.064503192901611e-02,
4.908680915832520e-03,
1.487517356872559e-02,
9.680509567260742e-03,
7.522106170654297e-05,
-4.830360412597656e-04,
8.033514022827148e-04,
-1.838135719299316e-02,
-3.073430061340332e-02,
-1.891207695007324e-02,
-3.924489021301270e-03,
-3.498315811157227e-03,
-1.155197620391846e-02,
-1.925528049468994e-02,
-6.966948509216309e-03,
1.548910140991211e-02,
1.736736297607422e-02,
2.035260200500488e-03,
-8.094668388366699e-03,
-2.877354621887207e-03,
4.649996757507324e-03,
-1.651287078857422e-03,
-1.518607139587402e-02,
-1.338112354278564e-02,
-4.768848419189453e-03,
-7.210373878479004e-03,
-2.242934703826904e-02,
-2.789759635925293e-02,
-2.250742912292480e-02,
-2.160489559173584e-02,
-4.396939277648926e-02,
-7.102704048156738e-02,
-6.871592998504639e-02,
-3.350901603698730e-02,
-9.314537048339844e-03,
-2.158713340759277e-02,
-4.306674003601074e-02,
-3.989958763122559e-02,
-2.303838729858398e-02,
-8.735299110412598e-03,
-1.178669929504395e-02,
-1.941251754760742e-02,
-2.143263816833496e-02,
-1.281130313873291e-02,
-2.186655998229980e-03,
-5.851149559020996e-03,
-1.186323165893555e-02,
-2.200293540954590e-02,
-1.581192016601562e-02,
-7.279276847839355e-03,
-1.989018917083740e-02,
-4.240095615386963e-02,
-4.382348060607910e-02,
-2.434968948364258e-02,
-1.029765605926514e-02,
-1.740491390228271e-02,
-3.055799007415771e-02,
-2.924644947052002e-02,
-2.627766132354736e-02,
-1.706457138061523e-02,
-1.636624336242676e-03,
1.209354400634766e-02,
1.126873493194580e-02,
1.286840438842773e-02,
1.021611690521240e-02,
-1.191699504852295e-02,
-2.447938919067383e-02,
-1.308107376098633e-02,
2.275228500366211e-03,
-5.137801170349121e-03,
-2.151763439178467e-02,
-2.068984508514404e-02,
-1.463115215301514e-02,
-1.236271858215332e-02,
-1.037168502807617e-02,
-1.306533813476562e-02,
-1.605749130249023e-02,
-2.085292339324951e-02,
-2.662539482116699e-02,
-3.531622886657715e-02,
-2.589952945709229e-02,
-1.678824424743652e-03,
-1.689577102661133e-02,
-3.141415119171143e-02,
-1.358556747436523e-02,
8.597254753112793e-03,
2.195847034454346e-02,
2.031803131103516e-02,
-1.312255859375000e-03,
-1.457428932189941e-02,
-7.713675498962402e-03,
6.259322166442871e-03,
9.516000747680664e-03,
-6.206274032592773e-03,
-5.291581153869629e-03,
9.541153907775879e-03,
2.450609207153320e-02,
1.895129680633545e-02,
1.145100593566895e-02,
1.541292667388916e-02,
1.766753196716309e-02,
1.698446273803711e-02,
1.614451408386230e-02,
5.934596061706543e-03,
1.658320426940918e-03,
8.041858673095703e-03,
-1.063013076782227e-02,
-3.064835071563721e-02,
-4.054963588714600e-02,
-3.380668163299561e-02,
-5.848169326782227e-03,
2.074670791625977e-02,
2.953338623046875e-02,
2.641975879669189e-02,
1.443588733673096e-02,
1.306545734405518e-02,
2.686285972595215e-02,
3.450107574462891e-02,
1.542687416076660e-02,
-7.027864456176758e-03,
-2.090334892272949e-03,
1.414859294891357e-02,
1.231086254119873e-02,
-2.671122550964355e-03,
-1.050257682800293e-02,
-2.298235893249512e-03,
1.156663894653320e-02,
7.742881774902344e-03,
-1.900959014892578e-02,
-2.119588851928711e-02,
-1.371264457702637e-03,
3.067493438720703e-03,
-7.866263389587402e-03,
-2.029883861541748e-02,
-1.821243762969971e-02,
-1.009035110473633e-02,
-3.800272941589355e-03,
8.134841918945312e-04,
-1.319921016693115e-02,
-1.035046577453613e-02,
1.566815376281738e-02,
2.298188209533691e-02,
1.845550537109375e-02,
2.169585227966309e-02,
3.672182559967041e-02,
4.498279094696045e-02,
3.437316417694092e-02,
2.374589443206787e-02,
2.674174308776855e-02,
2.643561363220215e-02,
5.613803863525391e-03,
-1.299571990966797e-02,
-1.399731636047363e-02,
-1.053774356842041e-02,
-1.925468444824219e-03,
3.890872001647949e-03,
1.220464706420898e-03,
1.167404651641846e-02,
2.041184902191162e-02,
2.597784996032715e-02,
2.466905117034912e-02,
1.847648620605469e-02,
1.294958591461182e-02,
8.187294006347656e-03,
5.975604057312012e-03,
-4.456400871276855e-03,
-7.551193237304688e-03,
6.878852844238281e-03,
2.168345451354980e-02,
2.390038967132568e-02,
2.949619293212891e-02,
2.606976032257080e-02,
1.490962505340576e-02,
1.242005825042725e-02,
1.115071773529053e-02,
5.573272705078125e-03,
-4.608392715454102e-03,
-1.187443733215332e-02,
-1.357817649841309e-02,
-2.136659622192383e-02,
-3.281879425048828e-02,
-2.811098098754883e-02,
-5.083203315734863e-03,
7.967829704284668e-03,
9.992241859436035e-03,
9.083867073059082e-03,
1.330614089965820e-02,
1.144027709960938e-02,
1.030969619750977e-02,
2.288579940795898e-03,
-1.722776889801025e-02,
-2.877581119537354e-02,
-1.552212238311768e-02,
4.662275314331055e-03,
-3.569245338439941e-03,
-3.061521053314209e-02,
-4.907262325286865e-02,
-3.612685203552246e-02,
-9.698867797851562e-03,
1.428842544555664e-03,
-5.987882614135742e-03,
-1.520562171936035e-02,
-1.278471946716309e-02,
-1.406049728393555e-02,
-3.194451332092285e-02,
-4.919016361236572e-02,
-4.202985763549805e-02,
-1.891529560089111e-02,
2.592802047729492e-04,
2.747654914855957e-03,
-8.995890617370605e-03,
-1.499378681182861e-02,
-2.555131912231445e-03,
1.007080078125000e-03,
-8.972644805908203e-03,
-1.035833358764648e-02,
-4.166960716247559e-03,
2.220392227172852e-03,
-5.856275558471680e-03,
-2.666819095611572e-02,
-3.462505340576172e-02,
-2.889752388000488e-02,
-2.629745006561279e-02,
-3.335356712341309e-02,
-3.857684135437012e-02,
-2.962613105773926e-02,
-1.561939716339111e-02,
-1.234281063079834e-02,
-1.489841938018799e-02,
-2.071082592010498e-02,
-2.537071704864502e-02,
-2.271974086761475e-02,
-1.225304603576660e-02,
-7.003188133239746e-03,
-8.289813995361328e-03,
-1.103746891021729e-02,
-8.499145507812500e-03,
-3.259778022766113e-03,
-1.012790203094482e-02,
-1.865649223327637e-02,
-5.171060562133789e-03,
5.697965621948242e-03,
8.987188339233398e-04,
5.803108215332031e-03,
9.943842887878418e-03,
1.067316532135010e-02,
1.689982414245605e-02,
2.177023887634277e-02,
1.964974403381348e-02,
7.713794708251953e-03,
1.413464546203613e-03,
1.259148120880127e-02,
2.982306480407715e-02,
3.761887550354004e-02,
3.192949295043945e-02,
1.975393295288086e-02,
1.069951057434082e-02,
1.611971855163574e-02,
3.072893619537354e-02,
3.807532787322998e-02,
2.645814418792725e-02,
1.247107982635498e-02,
1.497960090637207e-02,
2.338552474975586e-02,
2.422773838043213e-02,
2.012050151824951e-02,
7.266283035278320e-03,
2.784967422485352e-03,
4.936933517456055e-03,
2.692222595214844e-03,
3.550887107849121e-03,
5.202054977416992e-03,
2.925634384155273e-03,
5.690455436706543e-03,
9.898781776428223e-03,
1.321578025817871e-02,
1.323187351226807e-02,
8.024692535400391e-03,
4.610538482666016e-03,
-1.568078994750977e-03,
-8.021116256713867e-03,
-7.052183151245117e-03,
4.863500595092773e-03,
8.134484291076660e-03,
2.278089523315430e-03,
-6.555318832397461e-04,
-5.369067192077637e-03,
-1.409649848937988e-02,
-1.460003852844238e-02,
3.871917724609375e-03,
7.925629615783691e-03,
-4.758238792419434e-03,
-5.967020988464355e-03,
1.244783401489258e-03,
2.953290939331055e-03,
2.757549285888672e-03,
1.246464252471924e-02,
1.750028133392334e-02,
1.176238059997559e-02,
1.574182510375977e-02,
3.093469142913818e-02,
3.679049015045166e-02,
3.308796882629395e-02,
3.393685817718506e-02,
3.125953674316406e-02,
2.255809307098389e-02,
2.392625808715820e-02,
2.049827575683594e-02,
1.037466526031494e-02,
2.751588821411133e-03,
3.370165824890137e-03,
7.005453109741211e-03,
4.104375839233398e-04,
1.338243484497070e-03,
1.279580593109131e-02,
2.709913253784180e-02,
3.382706642150879e-02,
3.561031818389893e-02,
3.868341445922852e-02,
4.358386993408203e-02,
4.669308662414551e-02,
4.338395595550537e-02,
3.063821792602539e-02,
2.032411098480225e-02,
2.307486534118652e-02,
3.172302246093750e-02,
3.044891357421875e-02,
2.586793899536133e-02,
2.339720726013184e-02,
1.300346851348877e-02,
1.332640647888184e-03,
-2.410411834716797e-04,
4.106402397155762e-03,
4.179000854492188e-03,
-4.150986671447754e-03,
-7.019042968750000e-03,
-3.261804580688477e-03,
9.747743606567383e-03,
2.095127105712891e-02,
2.214348316192627e-02,
1.796460151672363e-02,
1.374697685241699e-02,
1.415753364562988e-02,
1.790368556976318e-02,
1.503634452819824e-02,
9.703159332275391e-03,
1.728165149688721e-02,
2.986884117126465e-02,
3.724586963653564e-02,
3.484380245208740e-02,
2.310037612915039e-02,
2.401709556579590e-03,
-6.646633148193359e-03,
-8.190035820007324e-03,
-8.096814155578613e-03,
-1.906728744506836e-02,
-3.826022148132324e-02,
-4.898846149444580e-02,
-4.064178466796875e-02,
-2.752482891082764e-02,
-2.672231197357178e-02,
-3.104352951049805e-02,
-2.988302707672119e-02,
-9.568214416503906e-03,
8.698463439941406e-03,
2.294659614562988e-03,
-2.572059631347656e-03,
9.411573410034180e-03,
2.102398872375488e-02,
1.831173896789551e-02,
4.255414009094238e-03,
-9.202361106872559e-03,
-1.060199737548828e-02,
-1.048278808593750e-02,
-1.898193359375000e-02,
-3.299856185913086e-02,
-4.220855236053467e-02,
-4.331302642822266e-02,
-4.088056087493896e-02,
-3.905749320983887e-02,
-4.199290275573730e-02,
-3.601670265197754e-02,
-2.010095119476318e-02,
-2.030587196350098e-02,
-3.184580802917480e-02,
-2.993369102478027e-02,
-2.230167388916016e-02,
-2.296304702758789e-02,
-2.635896205902100e-02,
-2.292072772979736e-02,
-1.496016979217529e-02,
-1.397585868835449e-02,
-2.162170410156250e-02,
-2.317595481872559e-02,
-1.455295085906982e-02,
-9.038686752319336e-03,
-1.211285591125488e-02,
-2.723395824432373e-02,
-3.866159915924072e-02,
-2.932059764862061e-02,
-1.432561874389648e-02,
-5.021929740905762e-03,
4.032492637634277e-03,
7.182955741882324e-03,
-5.243897438049316e-03,
-1.520884037017822e-02,
-8.504867553710938e-03,
4.966139793395996e-03,
1.711630821228027e-02,
1.880693435668945e-02,
1.300311088562012e-02,
4.417777061462402e-03,
1.749753952026367e-03,
5.226612091064453e-03,
2.374291419982910e-03,
-7.220149040222168e-03,
-1.296722888946533e-02,
-1.053786277770996e-02,
-4.654169082641602e-03,
4.931926727294922e-03,
1.205706596374512e-02,
1.405799388885498e-02,
1.095092296600342e-02,
1.298999786376953e-02,
1.805984973907471e-02,
1.496636867523193e-02,
1.495242118835449e-02,
2.617895603179932e-02,
3.911685943603516e-02,
3.863489627838135e-02,
2.759540081024170e-02,
2.080881595611572e-02,
2.261126041412354e-02,
2.423608303070068e-02,
1.506209373474121e-02,
1.763105392456055e-04,
-1.267099380493164e-02,
-1.245427131652832e-02,
-2.331137657165527e-03,
-5.519866943359375e-03,
-2.006065845489502e-02,
-2.986001968383789e-02,
-2.526080608367920e-02,
-1.463270187377930e-02,
-1.178872585296631e-02,
-8.902549743652344e-03,
-2.937197685241699e-03,
5.065083503723145e-03,
1.531064510345459e-02,
1.314938068389893e-02,
7.576823234558105e-03,
9.135246276855469e-03,
1.286900043487549e-02,
9.787201881408691e-03,
-3.756284713745117e-04,
-1.215171813964844e-02,
-1.735436916351318e-02,
-1.780736446380615e-02,
-2.079117298126221e-02,
-2.223384380340576e-02,
-2.081382274627686e-02,
-2.487277984619141e-02,
-3.158795833587646e-02,
-2.883803844451904e-02,
-1.973819732666016e-02,
-1.950883865356445e-02,
-2.470850944519043e-02,
-2.709901332855225e-02,
-3.482031822204590e-02,
-5.255055427551270e-02,
-6.992614269256592e-02,
-6.055068969726562e-02,
-3.949069976806641e-02,
-2.981007099151611e-02,
-3.257608413696289e-02,
-3.773319721221924e-02,
-3.022241592407227e-02,
-1.473629474639893e-02,
-4.364252090454102e-03,
-5.210995674133301e-03,
-1.017928123474121e-02,
-4.892587661743164e-03,
1.010441780090332e-02,
9.529352188110352e-03,
-4.632472991943359e-04,
-7.112860679626465e-03,
-3.254532814025879e-03,
1.671314239501953e-04,
1.741051673889160e-03,
1.333069801330566e-02,
2.738320827484131e-02,
3.467047214508057e-02,
3.430724143981934e-02,
3.501868247985840e-02,
3.440475463867188e-02,
3.485810756683350e-02,
3.708589076995850e-02,
3.471517562866211e-02,
2.641034126281738e-02,
2.518510818481445e-02,
2.935814857482910e-02,
2.968609333038330e-02,
3.529822826385498e-02,
4.026973247528076e-02,
4.796802997589111e-02,
4.939496517181396e-02,
3.899061679840088e-02,
3.082513809204102e-02,
3.234887123107910e-02,
3.236532211303711e-02,
2.697598934173584e-02,
2.218914031982422e-02,
2.175581455230713e-02,
3.452432155609131e-02,
4.385411739349365e-02,
3.607618808746338e-02,
3.439211845397949e-02,
4.016041755676270e-02,
4.098784923553467e-02,
2.923047542572021e-02,
1.498639583587646e-02,
1.583862304687500e-02,
2.402532100677490e-02,
3.073644638061523e-02,
2.202212810516357e-02,
4.159927368164062e-03,
5.959272384643555e-03,
2.826941013336182e-02,
3.954315185546875e-02,
2.852284908294678e-02,
9.017825126647949e-03,
1.446962356567383e-03,
4.853487014770508e-03,
7.262587547302246e-03,
5.150318145751953e-03,
-1.649737358093262e-03,
-1.342177391052246e-03,
6.498694419860840e-03,
2.002847194671631e-02,
2.501916885375977e-02,
2.070617675781250e-02,
2.045512199401855e-02,
1.799440383911133e-02,
8.466601371765137e-03,
8.689284324645996e-03,
1.046407222747803e-02,
2.009868621826172e-04,
-6.382942199707031e-03,
-5.806088447570801e-03,
-3.037691116333008e-03,
-2.623200416564941e-03,
1.471877098083496e-03,
7.733106613159180e-04,
-9.983301162719727e-03,
-1.242864131927490e-02,
-3.361701965332031e-03,
-2.954840660095215e-03,
-7.535099983215332e-03,
-5.148649215698242e-03,
-2.350807189941406e-04,
-7.311463356018066e-03,
-2.422177791595459e-02,
-3.202867507934570e-02,
-2.657270431518555e-02,
-2.077829837799072e-02,
-2.407550811767578e-02,
-3.424882888793945e-02,
-3.809857368469238e-02,
-2.734863758087158e-02,
-8.522748947143555e-03,
-1.804709434509277e-03,
-8.231878280639648e-03,
-1.174509525299072e-02,
-2.706885337829590e-03,
1.259553432464600e-02,
1.038730144500732e-02,
-9.080648422241211e-03,
-2.138853073120117e-02,
-1.645696163177490e-02,
1.537442207336426e-03,
9.954929351806641e-03,
2.079129219055176e-03,
-2.119064331054688e-03,
-1.435875892639160e-03,
-1.378417015075684e-03,
-2.411842346191406e-03,
-8.628487586975098e-03,
-1.266944408416748e-02,
-1.292335987091064e-02,
-1.278400421142578e-02,
-6.896376609802246e-03,
-5.089044570922852e-04,
-3.536701202392578e-03,
-5.183219909667969e-03,
3.232479095458984e-03,
7.004261016845703e-03,
6.338000297546387e-03,
7.960438728332520e-03,
8.716225624084473e-03,
5.500793457031250e-03,
1.267790794372559e-03,
5.040168762207031e-04,
-4.088401794433594e-03,
-1.102304458618164e-02,
-1.240158081054688e-02,
-9.763956069946289e-03,
-6.460189819335938e-03,
-8.921623229980469e-03,
-1.511836051940918e-02,
-1.496601104736328e-02,
-1.105678081512451e-02,
-9.454250335693359e-03,
-1.319396495819092e-02,
-2.541959285736084e-02,
-3.471112251281738e-02,
-3.069019317626953e-02,
-2.220988273620605e-02,
-2.254176139831543e-02,
-2.905964851379395e-02,
-2.959012985229492e-02,
-1.639854907989502e-02,
-1.403331756591797e-03,
3.899812698364258e-03,
1.560688018798828e-03,
-5.151271820068359e-03,
-8.532524108886719e-03,
-1.001191139221191e-02,
-1.077711582183838e-02,
-1.098895072937012e-02,
-8.899331092834473e-03,
-1.347064971923828e-03,
-6.409049034118652e-03,
-2.268624305725098e-02,
-2.348029613494873e-02,
-8.453726768493652e-03,
-3.633856773376465e-03,
-6.043791770935059e-03,
-8.942127227783203e-03,
-1.384663581848145e-02,
-1.000225543975830e-02,
3.099441528320312e-05,
6.654024124145508e-03,
1.491546630859375e-03,
-6.946325302124023e-04,
8.716225624084473e-03,
1.322627067565918e-02,
9.342670440673828e-03,
6.081461906433105e-03,
2.501130104064941e-03,
-4.505991935729980e-03,
-1.012277603149414e-02,
-3.244876861572266e-03,
8.764982223510742e-03,
1.088297367095947e-02,
6.918668746948242e-03,
8.782386779785156e-03,
1.992619037628174e-02,
2.420747280120850e-02,
2.570128440856934e-02,
3.100514411926270e-02,
3.367316722869873e-02,
2.825248241424561e-02,
1.734912395477295e-02,
1.124703884124756e-02,
7.748961448669434e-03,
4.405498504638672e-03,
-4.507303237915039e-03,
-1.247608661651611e-02,
-1.051759719848633e-02,
-3.244996070861816e-03,
1.710414886474609e-03,
5.320191383361816e-03,
5.837678909301758e-03,
7.318735122680664e-03,
9.054541587829590e-03,
9.412288665771484e-03,
1.328778266906738e-02,
1.091837882995605e-02,
2.310752868652344e-03,
-1.375079154968262e-03,
-4.572868347167969e-03,
-1.041555404663086e-02,
-1.192104816436768e-02,
-1.226842403411865e-02,
-8.038878440856934e-03,
5.440711975097656e-04,
1.740455627441406e-05,
-5.438089370727539e-03,
-5.895972251892090e-03,
-4.526853561401367e-03,
-6.907939910888672e-03,
-1.145923137664795e-02,
-1.344060897827148e-02,
-1.658761501312256e-02,
-2.209138870239258e-02,
-1.704180240631104e-02,
-8.967876434326172e-03,
-1.048934459686279e-02,
-1.405465602874756e-02,
-1.297020912170410e-02,
-1.048982143402100e-02,
-6.251096725463867e-03,
-2.339482307434082e-03,
4.460811614990234e-04,
4.394769668579102e-03,
5.920171737670898e-03,
3.120779991149902e-03,
-1.324892044067383e-03,
9.701251983642578e-04,
1.169109344482422e-02,
1.462864875793457e-02,
2.027511596679688e-03,
-1.195228099822998e-02,
-1.027262210845947e-02,
1.286268234252930e-03,
7.237315177917480e-03,
2.100586891174316e-03,
-4.851222038269043e-03,
-4.063963890075684e-03,
2.852916717529297e-03,
6.701946258544922e-03,
6.807923316955566e-03,
7.081389427185059e-03,
1.934409141540527e-03,
-3.753542900085449e-03,
-6.509184837341309e-03,
-7.293343544006348e-03,
-6.758928298950195e-03,
-7.048249244689941e-03,
-1.084887981414795e-02,
-1.598727703094482e-02,
-1.495611667633057e-02,
-7.038950920104980e-03,
3.981590270996094e-03,
1.093745231628418e-02,
7.673144340515137e-03,
-2.217292785644531e-04,
-2.807736396789551e-03,
-5.463719367980957e-03,
-9.691357612609863e-03,
-7.835268974304199e-03,
-3.416776657104492e-03,
-3.793835639953613e-03,
-5.163788795471191e-03,
6.829500198364258e-04,
8.510708808898926e-03,
1.698386669158936e-02,
2.697110176086426e-02,
3.236722946166992e-02,
3.226482868194580e-02,
2.546823024749756e-02,
1.628875732421875e-02,
1.334345340728760e-02,
1.374661922454834e-02,
7.826209068298340e-03,
-2.023935317993164e-03,
-7.197380065917969e-03,
-8.316874504089355e-03,
-1.208734512329102e-02,
-2.185189723968506e-02,
-2.829360961914062e-02,
-2.902328968048096e-02,
-2.431118488311768e-02,
-1.458489894866943e-02,
-1.121854782104492e-02,
-1.121807098388672e-02,
-2.698898315429688e-03,
7.054209709167480e-03,
8.300542831420898e-03,
5.058646202087402e-03,
1.029169559478760e-02,
1.775264739990234e-02,
1.423811912536621e-02,
3.270864486694336e-03,
-5.556821823120117e-03,
-4.770755767822266e-03,
1.583576202392578e-03,
5.668640136718750e-03,
3.983736038208008e-03,
-3.234386444091797e-03,
-7.479667663574219e-03,
-3.165721893310547e-03,
5.180835723876953e-04,
-8.768677711486816e-03,
-1.889550685882568e-02,
-1.907837390899658e-02,
-1.867592334747314e-02,
-1.794576644897461e-02,
-1.269161701202393e-02,
-2.384185791015625e-03,
4.204988479614258e-03,
1.035821437835693e-02,
2.072381973266602e-02,
2.790033817291260e-02,
2.562785148620605e-02,
2.157139778137207e-02,
2.524042129516602e-02,
2.739346027374268e-02,
1.966869831085205e-02,
7.018327713012695e-03,
-9.649991989135742e-04,
-3.435015678405762e-03,
-3.244757652282715e-03,
-3.948211669921875e-03,
-7.121086120605469e-03,
-7.697463035583496e-03,
-1.217722892761230e-03,
4.713416099548340e-03,
2.580285072326660e-03,
-2.676129341125488e-03,
-4.557490348815918e-03,
-1.077413558959961e-03,
4.415035247802734e-03,
3.061532974243164e-03,
3.629922866821289e-04,
5.418062210083008e-04,
-5.101203918457031e-03,
-1.111793518066406e-02,
-9.557127952575684e-03,
-2.729773521423340e-03,
2.968072891235352e-03,
7.296919822692871e-03,
9.844064712524414e-03,
1.087832450866699e-02,
9.525179862976074e-03,
9.393215179443359e-03,
1.120233535766602e-02,
8.905887603759766e-03,
3.674387931823730e-03,
8.724927902221680e-04,
1.364588737487793e-03,
2.542138099670410e-03,
2.277731895446777e-03,
-4.479169845581055e-03,
-1.162576675415039e-02,
-1.349842548370361e-02,
-9.850621223449707e-03,
-6.064057350158691e-03,
-9.044051170349121e-03,
-1.518988609313965e-02,
-1.410210132598877e-02,
-1.012682914733887e-02,
-7.826209068298340e-03,
-7.054924964904785e-03,
-8.989691734313965e-03,
-1.258420944213867e-02,
-1.329278945922852e-02,
-1.008999347686768e-02,
-6.150841712951660e-03,
-5.555629730224609e-03,
-9.286284446716309e-03,
-7.799148559570312e-03,
-2.860426902770996e-03,
3.973722457885742e-03,
8.062243461608887e-03,
8.532285690307617e-03,
7.359504699707031e-03,
8.577585220336914e-03,
1.326727867126465e-02,
9.750008583068848e-03,
8.975267410278320e-04,
-5.828738212585449e-03,
-1.272284984588623e-02,
-1.505696773529053e-02,
-1.205253601074219e-02,
-9.830832481384277e-03,
-9.151697158813477e-03,
-5.499482154846191e-03,
2.072215080261230e-03,
7.211089134216309e-03,
6.786108016967773e-03,
4.819154739379883e-03,
4.982709884643555e-03,
4.510283470153809e-03,
5.858778953552246e-03,
1.153755187988281e-02,
1.781618595123291e-02,
2.174139022827148e-02,
2.079522609710693e-02,
1.596212387084961e-02,
1.043188571929932e-02,
8.083343505859375e-03,
8.649230003356934e-03,
8.667111396789551e-03,
5.231857299804688e-03,
1.966953277587891e-05,
-2.894163131713867e-03,
-2.438902854919434e-03,
-2.263784408569336e-03,
-5.469202995300293e-03,
-7.346391677856445e-03,
-7.598400115966797e-03,
-3.875255584716797e-03,
5.259275436401367e-03,
1.412022113800049e-02,
1.389718055725098e-02,
1.093494892120361e-02,
1.201784610748291e-02,
1.234090328216553e-02,
1.319420337677002e-02,
1.188385486602783e-02,
1.083481311798096e-02,
9.281992912292480e-03,
4.065275192260742e-03,
-3.021717071533203e-03,
-7.464170455932617e-03,
-8.735656738281250e-03,
-8.645176887512207e-03,
-7.127881050109863e-03,
-6.472229957580566e-03,
-6.531357765197754e-03,
-6.738424301147461e-03,
-8.109092712402344e-03,
-1.159262657165527e-02,
-1.499605178833008e-02,
-1.469850540161133e-02,
-1.152551174163818e-02,
-9.363174438476562e-03,
-7.833957672119141e-03,
-7.111430168151855e-03,
-3.857135772705078e-03,
-4.695892333984375e-03,
-5.352735519409180e-03,
-4.018545150756836e-03,
-5.416870117187500e-03,
-8.266687393188477e-03,
-9.894251823425293e-03,
-9.445786476135254e-03,
-7.411718368530273e-03,
-8.111953735351562e-03,
-1.203811168670654e-02,
-1.211071014404297e-02,
-8.524775505065918e-03,
-5.364418029785156e-03,
-4.845857620239258e-03,
-5.949616432189941e-03,
-7.291913032531738e-03,
-7.013082504272461e-03,
-7.585644721984863e-03,
-9.511828422546387e-03,
-9.842991828918457e-03,
-6.667375564575195e-03,
-5.620718002319336e-04,
1.946687698364258e-04,
-6.858110427856445e-03,
-8.634448051452637e-03,
-2.267360687255859e-03,
4.425764083862305e-03,
6.279230117797852e-03,
5.563020706176758e-03,
6.467938423156738e-03,
1.111280918121338e-02,
1.777017116546631e-02,
1.986670494079590e-02,
1.530432701110840e-02,
1.010012626647949e-02,
9.919881820678711e-03,
8.881568908691406e-03,
3.662824630737305e-03,
-2.628564834594727e-03,
-2.550601959228516e-03,
7.774829864501953e-04,
-1.777410507202148e-03,
-9.270191192626953e-03,
-1.072382926940918e-02,
-3.418803215026855e-03,
3.054261207580566e-03,
5.352020263671875e-03,
2.259373664855957e-03,
-1.091122627258301e-03,
-4.353523254394531e-04,
4.980325698852539e-03,
1.016044616699219e-02,
1.094055175781250e-02,
6.733179092407227e-03,
-1.122355461120605e-03,
-6.086111068725586e-03,
-4.858970642089844e-04,
7.001876831054688e-03,
4.797577857971191e-03,
-4.319190979003906e-03,
-1.019477844238281e-02,
-5.918502807617188e-03,
-1.362681388854980e-03,
-2.815842628479004e-03,
-6.663084030151367e-03,
-6.865262985229492e-03,
-3.603577613830566e-03,
8.106231689453125e-06,
1.366734504699707e-03,
-2.456188201904297e-03,
-4.279971122741699e-03,
6.226301193237305e-04,
5.472183227539062e-03,
3.568410873413086e-03,
-1.473069190979004e-03,
-1.697063446044922e-03,
2.303361892700195e-03,
5.079269409179688e-03,
4.049539566040039e-03,
1.519918441772461e-04,
6.531476974487305e-04,
4.534721374511719e-03,
9.927511215209961e-03,
1.269149780273438e-02,
7.991552352905273e-03,
4.173994064331055e-03,
5.474686622619629e-03,
1.008927822113037e-02,
1.170599460601807e-02,
7.795572280883789e-03,
7.020235061645508e-04,
-3.803730010986328e-03,
-8.159875869750977e-04,
3.063797950744629e-03,
2.154469490051270e-03,
1.206398010253906e-04,
2.195954322814941e-03,
1.772522926330566e-03,
-2.283096313476562e-03,
-1.081824302673340e-03,
3.966450691223145e-03,
8.092164993286133e-03,
1.023328304290771e-02,
1.011633872985840e-02,
1.134443283081055e-02,
1.560842990875244e-02,
1.894021034240723e-02,
1.786482334136963e-02,
1.504504680633545e-02,
1.609611511230469e-02,
1.876652240753174e-02,
1.855647563934326e-02,
1.244938373565674e-02,
7.936835289001465e-03,
1.338541507720947e-02,
1.708710193634033e-02,
9.329795837402344e-03,
1.008391380310059e-03,
3.777384757995605e-03,
1.264238357543945e-02,
1.579391956329346e-02,
1.123070716857910e-02,
5.796551704406738e-03,
5.041122436523438e-03,
6.413102149963379e-03,
5.085468292236328e-03,
-3.100633621215820e-04,
-4.072070121765137e-03,
-3.919601440429688e-04,
5.053281784057617e-03,
-2.729892730712891e-05,
-8.672475814819336e-03,
-8.557558059692383e-03,
-1.225471496582031e-04,
3.348946571350098e-03,
-3.653883934020996e-03,
-9.659051895141602e-03,
-1.036071777343750e-02,
-7.421612739562988e-03,
-6.589889526367188e-03,
-9.283542633056641e-03,
-1.251232624053955e-02,
-1.545822620391846e-02,
-1.685297489166260e-02,
-1.456165313720703e-02,
-1.077604293823242e-02,
-7.862210273742676e-03,
-8.843541145324707e-03,
-1.013648509979248e-02,
-1.013839244842529e-02,
-9.074091911315918e-03,
-5.890130996704102e-03,
-3.896474838256836e-03,
-5.473256111145020e-03,
-9.047508239746094e-03,
-1.067280769348145e-02,
-9.959101676940918e-03,
-9.220719337463379e-03,
-4.687309265136719e-03,
1.407384872436523e-03,
3.253221511840820e-03,
-7.685422897338867e-04,
-3.103733062744141e-03,
1.173734664916992e-03,
5.962371826171875e-03,
7.929921150207520e-03,
6.728410720825195e-03,
2.728581428527832e-03,
-1.911520957946777e-03,
-1.503944396972656e-03,
2.353310585021973e-03,
3.617525100708008e-03,
1.690268516540527e-03,
8.739233016967773e-04,
8.130073547363281e-04,
-1.380443572998047e-04,
1.922845840454102e-04,
1.805067062377930e-03,
1.756668090820312e-03,
1.168251037597656e-05,
1.186132431030273e-03,
2.858042716979980e-03,
2.445340156555176e-03,
1.295447349548340e-03,
-7.027387619018555e-04,
-3.306865692138672e-03,
-2.088427543640137e-03,
3.200292587280273e-03,
5.128622055053711e-03,
3.610134124755859e-03,
3.251075744628906e-03,
6.020426750183105e-03,
9.482741355895996e-03,
1.044547557830811e-02,
8.915185928344727e-03,
6.010532379150391e-03,
4.068851470947266e-03,
4.667758941650391e-03,
5.916237831115723e-03,
6.026387214660645e-03,
3.660559654235840e-03,
4.853010177612305e-04,
-3.720283508300781e-03,
-7.048606872558594e-03,
-6.017327308654785e-03,
-3.186941146850586e-03,
-1.777291297912598e-03,
-1.737833023071289e-03,
-2.056360244750977e-03,
-1.615524291992188e-03,
-7.748603820800781e-04,
-1.198172569274902e-03,
-2.842545509338379e-03,
-3.151774406433105e-03,
-1.989006996154785e-03,
-7.162094116210938e-04,
-5.898475646972656e-04,
-1.600265502929688e-03,
-1.518487930297852e-03,
-1.367092132568359e-03,
-2.934336662292480e-03,
-2.706050872802734e-03,
4.671812057495117e-04,
2.451181411743164e-03,
9.417533874511719e-06,
-4.024386405944824e-03,
-5.180954933166504e-03,
-4.099726676940918e-03,
-3.147244453430176e-03,
-3.742456436157227e-03,
-4.945397377014160e-03,
-4.505634307861328e-03,
-1.124501228332520e-03,
2.030849456787109e-03,
4.764795303344727e-04,
-4.489064216613770e-03,
-7.759451866149902e-03,
-6.449460983276367e-03,
-1.875996589660645e-03,
3.008842468261719e-04,
-2.245783805847168e-03,
-4.784703254699707e-03,
-3.638505935668945e-03,
-9.821653366088867e-04,
6.071329116821289e-04,
-1.946687698364258e-04,
-2.727746963500977e-03,
-3.190398216247559e-03,
-1.831769943237305e-03,
-1.029253005981445e-03,
-2.472639083862305e-03,
-5.356192588806152e-03,
-6.260156631469727e-03,
-5.943059921264648e-03,
-6.075620651245117e-03,
-5.822300910949707e-03,
-4.737138748168945e-03,
-4.248619079589844e-03,
-4.656076431274414e-03,
-4.453420639038086e-03,
-3.424525260925293e-03,
-3.177762031555176e-03,
-2.483010292053223e-03,
-8.668899536132812e-04,
-1.120567321777344e-04,
-3.421306610107422e-05,
1.272320747375488e-03,
2.922296524047852e-03,
3.691315650939941e-03,
4.741907119750977e-03,
5.427002906799316e-03,
5.107045173645020e-03,
3.765583038330078e-03,
2.761602401733398e-03,
2.826213836669922e-03,
2.387046813964844e-03,
1.901388168334961e-04,
-2.209186553955078e-03,
-3.258824348449707e-03,
-2.953648567199707e-03,
-1.005172729492188e-03,
7.510185241699219e-04,
-3.535747528076172e-04,
-2.333879470825195e-03,
-2.650737762451172e-03,
-2.385377883911133e-03,
-1.396059989929199e-03,
1.130104064941406e-04,
3.625154495239258e-04,
-2.503395080566406e-05,
2.479553222656250e-05,
-5.757808685302734e-05,
-7.069110870361328e-05,
2.807378768920898e-04,
1.389622688293457e-03,
2.159476280212402e-03,
1.663208007812500e-03,
-9.860992431640625e-04,
-2.994537353515625e-03,
-2.014756202697754e-03,
-4.130601882934570e-04,
1.109957695007324e-03,
1.514792442321777e-03,
1.162290573120117e-03,
2.570152282714844e-04,
-3.855228424072266e-04,
8.209943771362305e-04,
2.729773521423340e-03,
3.637433052062988e-03,
2.529263496398926e-03,
2.522468566894531e-04,
-1.840591430664062e-04,
4.272460937500000e-04,
-8.958578109741211e-04,
-2.354145050048828e-03,
-1.101374626159668e-03,
9.022951126098633e-04,
1.700282096862793e-03,
1.944303512573242e-03,
1.585125923156738e-03,
1.946687698364258e-03,
2.331852912902832e-03,
1.271247863769531e-03,
-5.358457565307617e-04,
-5.512237548828125e-04,
4.526376724243164e-04,
1.955032348632812e-05,
-1.959800720214844e-03,
-4.609346389770508e-03,
-5.888223648071289e-03,
-5.280613899230957e-03,
-4.638552665710449e-03,
-4.914164543151855e-03,
-5.069375038146973e-03,
-3.102421760559082e-03,
-6.312131881713867e-04,
5.218982696533203e-04,
1.277923583984375e-04,
-1.219034194946289e-03,
-1.664161682128906e-03,
-9.664297103881836e-04,
-4.291534423828125e-06,
2.062320709228516e-05,
-9.979009628295898e-04,
-1.348257064819336e-03,
-2.055168151855469e-04,
9.000301361083984e-04,
1.597285270690918e-03,
1.027941703796387e-03,
-1.561641693115234e-04,
-6.481409072875977e-04,
-5.319118499755859e-04,
-5.725622177124023e-04,
-1.338720321655273e-03,
-1.768708229064941e-03,
-1.512050628662109e-03,
-1.002073287963867e-03,
-6.902217864990234e-04,
1.795291900634766e-04,
1.025795936584473e-03,
4.489421844482422e-04,
-2.791881561279297e-04,
-5.972385406494141e-05,
1.409530639648438e-03,
3.581762313842773e-03,
4.398941993713379e-03,
3.466129302978516e-03,
2.645134925842285e-03,
3.563165664672852e-03,
5.083441734313965e-03,
4.875540733337402e-03,
2.929329872131348e-03,
1.302719116210938e-03,
1.162648200988770e-03,
1.548647880554199e-03,
1.387357711791992e-03,
5.964040756225586e-04,
-1.504421234130859e-04,
-1.425743103027344e-04,
1.393556594848633e-04,
-3.424882888793945e-04,
-9.139776229858398e-04,
-7.542371749877930e-04,
2.319812774658203e-04,
9.258985519409180e-04,
4.396438598632812e-04,
-3.640651702880859e-04,
-2.316236495971680e-04,
8.159875869750977e-04,
1.602888107299805e-03,
1.346349716186523e-03,
7.568597793579102e-04,
7.408857345581055e-04,
1.245975494384766e-03,
1.171231269836426e-03,
8.285045623779297e-05,
-8.342266082763672e-04,
-9.239912033081055e-04,
-5.505084991455078e-04,
-5.124807357788086e-04,
-6.881952285766602e-04,
-6.070137023925781e-04,
-3.203153610229492e-04,
-6.687641143798828e-05,
9.059906005859375e-05,
-2.110004425048828e-05,
-4.748106002807617e-04,
-8.137226104736328e-04,
-8.771419525146484e-04,
-9.132623672485352e-04,
-8.666515350341797e-04,
-6.223917007446289e-04,
-4.100799560546875e-04,
-4.841089248657227e-04,
-6.160736083984375e-04,
-2.839565277099609e-04,
1.646280288696289e-04,
6.347894668579102e-04,
1.235723495483398e-03,
1.585006713867188e-03,
1.522183418273926e-03,
1.182556152343750e-03,
5.433559417724609e-04,
3.027915954589844e-05,
2.050399780273438e-05,
1.251697540283203e-04,
1.072883605957031e-04,
-1.668930053710938e-05,
-2.015829086303711e-04,
-2.485513687133789e-04,
-2.291202545166016e-04,
-3.801584243774414e-04,
-5.816221237182617e-04,
-8.103847503662109e-04,
-1.291513442993164e-03,
-1.477003097534180e-03,
-1.199722290039062e-03,
-1.214027404785156e-03,
-1.405477523803711e-03,
-1.174926757812500e-03,
-6.712675094604492e-04,
-3.696680068969727e-04,
-1.800060272216797e-04,
1.579523086547852e-04,
5.633831024169922e-04,
7.079839706420898e-04,
6.492137908935547e-04,
6.394386291503906e-04,
8.043050765991211e-04,
9.399652481079102e-04,
7.435083389282227e-04,
3.585815429687500e-04,
7.963180541992188e-05,
-6.961822509765625e-05,
-2.905130386352539e-04,
-7.065534591674805e-04,
-9.919404983520508e-04,
-8.771419525146484e-04,
-6.294250488281250e-04,
-5.719661712646484e-04,
-8.343458175659180e-04,
-1.012563705444336e-03,
-7.568597793579102e-04,
-3.601312637329102e-04,
-2.334117889404297e-04,
-3.163814544677734e-04,
-1.763105392456055e-04,
2.003908157348633e-04,
4.010200500488281e-04,
3.876686096191406e-04,
2.667903900146484e-04,
2.781152725219727e-04,
3.736019134521484e-04,
3.975629806518555e-04,
2.335309982299805e-04,
3.695487976074219e-06,
-7.295608520507812e-05,
-1.114606857299805e-04,
-1.925230026245117e-04,
-3.571510314941406e-04,
-3.823041915893555e-04,
-2.830028533935547e-04,
-2.386569976806641e-04,
-3.166198730468750e-04,
-3.827810287475586e-04,
-3.920793533325195e-04,
-3.137588500976562e-04,
-2.459287643432617e-04,
-2.782344818115234e-04,
-3.376007080078125e-04,
-3.263950347900391e-04,
-2.365112304687500e-04,
-1.347064971923828e-04,
-8.022785186767578e-05,
-3.492832183837891e-05,
6.580352783203125e-05,
1.029968261718750e-04,
3.266334533691406e-05,
-1.776218414306641e-05,
-7.867813110351562e-06,
5.125999450683594e-06,
7.987022399902344e-06,
9.894371032714844e-06,
2.861022949218750e-06,
-1.120567321777344e-05,
-1.001358032226562e-05,
0.000000000000000e+00,
-2.741813659667969e-06,
-5.245208740234375e-06,
-8.106231689453125e-06,
-1.299381256103516e-05,
-1.299381256103516e-05,
-6.914138793945312e-06,
-1.549720764160156e-06,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
1.192092895507812e-07,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
1.192092895507812e-07,
-1.192092895507812e-07,
0.000000000000000e+00,
1.192092895507812e-07,
1.192092895507812e-07,
1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
1.192092895507812e-07,
0.000000000000000e+00,
1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
1.192092895507812e-07,
0.000000000000000e+00,
1.192092895507812e-07,
0.000000000000000e+00,
1.192092895507812e-07,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
1.192092895507812e-07,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
1.192092895507812e-07,
1.192092895507812e-07,
1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
1.192092895507812e-07,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
1.192092895507812e-07,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
-1.192092895507812e-07,
1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
1.192092895507812e-07,
1.192092895507812e-07,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
1.192092895507812e-07,
1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
1.192092895507812e-07,
0.000000000000000e+00,
1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
1.192092895507812e-07,
1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
-1.192092895507812e-07,
1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
1.192092895507812e-07,
0.000000000000000e+00,
1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
1.192092895507812e-07,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00);
| https://raw.githubusercontent.com/s-e-a-m/faust-libraries/9120cccb9335f42407062eb4bf149188d8018b07/examples/fir/irconv2.dsp | faust | 128 tap 0~20000 -0.01dB // 30000~96000 -151.58dB | import("stdfaust.lib");
process = ba.pulsen(1, ma.SR) : fi.conv(fcoeff);
fcoeff = ( -8.031702041625977e-02,
-6.119704246520996e-02,
6.487882137298584e-02,
1.519786119461060e-01,
1.391460895538330e-01,
6.688344478607178e-02,
3.468430042266846e-02,
4.473912715911865e-02,
2.957773208618164e-02,
3.152477741241455e-02,
6.014704704284668e-03,
-3.092753887176514e-02,
-3.032672405242920e-02,
-4.378354549407959e-02,
-3.611135482788086e-02,
-2.634370326995850e-02,
-3.631913661956787e-02,
-1.330399513244629e-02,
4.097342491149902e-02,
5.946350097656250e-02,
5.272006988525391e-02,
6.297695636749268e-02,
7.285535335540771e-02,
1.084927320480347e-01,
1.261693239212036e-01,
6.113779544830322e-02,
-1.092457771301270e-02,
-3.841650485992432e-02,
-3.320670127868652e-02,
-3.182649612426758e-02,
-6.585037708282471e-02,
-1.022051572799683e-01,
-1.138334274291992e-01,
-1.066131591796875e-01,
-9.279680252075195e-02,
-8.884251117706299e-02,
-9.681046009063721e-02,
-1.250512599945068e-01,
-1.328966617584229e-01,
-1.137355566024780e-01,
-1.166243553161621e-01,
-1.291166543960571e-01,
-1.182435750961304e-01,
-9.263372421264648e-02,
-5.898058414459229e-02,
-4.252898693084717e-02,
-6.191921234130859e-02,
-6.389343738555908e-02,
-4.249060153961182e-02,
4.056310653686523e-02,
7.430100440979004e-02,
4.937362670898438e-02,
4.940629005432129e-02,
1.038172245025635e-01,
1.153175830841064e-01,
5.441808700561523e-02,
1.118719577789307e-02,
1.538395881652832e-03,
1.260018348693848e-02,
2.850651741027832e-03,
-6.542670726776123e-02,
-1.648871898651123e-01,
-1.847909688949585e-01,
-8.371746540069580e-02,
-6.213963031768799e-02,
-1.345129013061523e-01,
-1.059463024139404e-01,
8.215320110321045e-02,
1.946704387664795e-01,
1.480975151062012e-01,
8.367443084716797e-02,
4.817008972167969e-02,
4.743432998657227e-02,
9.427642822265625e-02,
1.319798231124878e-01,
5.981457233428955e-02,
-4.753541946411133e-02,
-4.327285289764404e-02,
5.664110183715820e-03,
4.520058631896973e-02,
3.814506530761719e-02,
6.582379341125488e-03,
1.770853996276855e-03,
3.491330146789551e-02,
8.326053619384766e-02,
1.255071163177490e-01,
1.107587814331055e-01,
8.059930801391602e-02,
5.964279174804688e-02,
4.385030269622803e-02,
4.177629947662354e-02,
3.528904914855957e-02,
2.511930465698242e-02,
2.885019779205322e-02,
6.020283699035645e-02,
7.685673236846924e-02,
7.614493370056152e-02,
7.512211799621582e-02,
7.443439960479736e-02,
4.816448688507080e-02,
8.881568908691406e-03,
2.621769905090332e-03,
3.722476959228516e-02,
5.855691432952881e-02,
5.092895030975342e-02,
2.546751499176025e-02,
9.191513061523438e-03,
5.648732185363770e-03,
2.177739143371582e-02,
6.881189346313477e-02,
1.096007823944092e-01,
1.273907423019409e-01,
1.169677972793579e-01,
7.764387130737305e-02,
3.812944889068604e-02,
4.714822769165039e-02,
7.216310501098633e-02,
8.468079566955566e-02,
8.889460563659668e-02,
7.382178306579590e-02,
4.785692691802979e-02,
3.100109100341797e-02,
3.130149841308594e-02,
3.052604198455811e-02,
4.917562007904053e-02,
6.012439727783203e-02,
6.120836734771729e-02,
5.872559547424316e-02,
5.808877944946289e-02,
6.193852424621582e-02,
6.643795967102051e-02,
8.074414730072021e-02,
7.910382747650146e-02,
7.392585277557373e-02,
9.064757823944092e-02,
7.813978195190430e-02,
6.213688850402832e-02,
7.546973228454590e-02,
7.619690895080566e-02,
7.885217666625977e-02,
8.107876777648926e-02,
7.710611820220947e-02,
7.003140449523926e-02,
5.077672004699707e-02,
2.737689018249512e-02,
1.351869106292725e-02,
1.388967037200928e-02,
1.392853260040283e-02,
1.828265190124512e-02,
1.260340213775635e-02,
-1.862406730651855e-03,
-1.281905174255371e-02,
-2.753460407257080e-02,
8.428812026977539e-03,
3.966534137725830e-02,
2.615451812744141e-04,
1.035881042480469e-02,
6.961643695831299e-02,
9.959375858306885e-02,
6.329607963562012e-02,
3.831183910369873e-02,
5.004739761352539e-02,
5.438804626464844e-02,
4.115772247314453e-02,
3.480362892150879e-02,
1.028370857238770e-02,
-1.825714111328125e-02,
-1.974046230316162e-02,
-1.656997203826904e-02,
-3.396153450012207e-02,
-4.748511314392090e-02,
-7.566809654235840e-03,
7.564783096313477e-03,
-1.844978332519531e-02,
-4.681026935577393e-02,
-5.388343334197998e-02,
-5.359184741973877e-02,
-4.703819751739502e-02,
-3.498196601867676e-02,
-4.247581958770752e-02,
-5.230617523193359e-02,
-3.825473785400391e-02,
-1.893854141235352e-02,
-3.446924686431885e-02,
-4.752123355865479e-02,
-5.448067188262939e-02,
-5.400943756103516e-02,
-3.554499149322510e-02,
-3.153026103973389e-02,
-5.353701114654541e-02,
-6.117200851440430e-02,
-5.666875839233398e-02,
-7.283914089202881e-02,
-8.983254432678223e-02,
-7.253956794738770e-02,
-5.325508117675781e-02,
-6.221652030944824e-02,
-5.882561206817627e-02,
-4.741334915161133e-02,
-4.641270637512207e-02,
-4.940819740295410e-02,
-4.046273231506348e-02,
-3.461444377899170e-02,
-3.574264049530029e-02,
-5.004036426544189e-02,
-6.450366973876953e-02,
-6.727659702301025e-02,
-6.844723224639893e-02,
-6.304693222045898e-02,
-5.696582794189453e-02,
-6.540787220001221e-02,
-8.048069477081299e-02,
-7.288801670074463e-02,
-6.781005859375000e-02,
-9.229803085327148e-02,
-1.102265119552612e-01,
-8.886814117431641e-02,
-6.226313114166260e-02,
-5.960023403167725e-02,
-6.651604175567627e-02,
-6.698632240295410e-02,
-3.844630718231201e-02,
-1.313447952270508e-03,
1.695084571838379e-02,
1.070654392242432e-02,
-1.171422004699707e-02,
-2.675759792327881e-02,
-9.063839912414551e-03,
7.017493247985840e-03,
3.567218780517578e-03,
-3.885746002197266e-03,
-7.615804672241211e-03,
6.287217140197754e-03,
2.375674247741699e-02,
2.609598636627197e-02,
2.357995510101318e-02,
2.219951152801514e-02,
2.005529403686523e-02,
2.644801139831543e-02,
2.211165428161621e-02,
-1.763343811035156e-03,
-6.347060203552246e-03,
2.128708362579346e-02,
1.022088527679443e-02,
-2.813839912414551e-02,
-3.157567977905273e-02,
-1.123166084289551e-02,
5.404710769653320e-03,
-3.138303756713867e-03,
5.960464477539062e-06,
2.254688739776611e-02,
2.829754352569580e-02,
1.266753673553467e-02,
-6.999969482421875e-03,
-6.956815719604492e-03,
1.413869857788086e-02,
3.942799568176270e-02,
3.902328014373779e-02,
1.271152496337891e-02,
2.573609352111816e-03,
2.974689006805420e-02,
5.825972557067871e-02,
4.152023792266846e-02,
-7.865667343139648e-03,
-2.875661849975586e-02,
-7.740855216979980e-03,
-1.253950595855713e-02,
-9.763240814208984e-04,
5.746841430664062e-03,
-1.260828971862793e-02,
-1.417446136474609e-02,
-2.850687503814697e-02,
-2.147996425628662e-02,
1.450061798095703e-03,
9.935379028320312e-03,
1.565003395080566e-02,
-3.583788871765137e-03,
-1.906669139862061e-02,
-1.436471939086914e-04,
4.725694656372070e-03,
5.975961685180664e-03,
1.347482204437256e-02,
1.782464981079102e-02,
2.321994304656982e-02,
1.978671550750732e-02,
1.562774181365967e-02,
1.181864738464355e-02,
-9.040236473083496e-03,
-1.549756526947021e-02,
4.518866539001465e-03,
-6.092190742492676e-03,
-4.430019855499268e-02,
-8.397269248962402e-02,
-5.973470211029053e-02,
-1.721024513244629e-03,
2.166652679443359e-02,
9.495496749877930e-03,
-7.220745086669922e-03,
-1.313710212707520e-02,
5.892515182495117e-03,
2.795135974884033e-02,
3.888058662414551e-02,
2.763056755065918e-02,
-3.612875938415527e-03,
-1.674032211303711e-02,
8.883118629455566e-03,
5.893540382385254e-02,
7.521498203277588e-02,
5.232501029968262e-02,
2.057099342346191e-02,
1.057243347167969e-02,
2.780437469482422e-02,
4.416918754577637e-02,
5.176460742950439e-02,
4.026627540588379e-02,
1.064503192901611e-02,
4.908680915832520e-03,
1.487517356872559e-02,
9.680509567260742e-03,
7.522106170654297e-05,
-4.830360412597656e-04,
8.033514022827148e-04,
-1.838135719299316e-02,
-3.073430061340332e-02,
-1.891207695007324e-02,
-3.924489021301270e-03,
-3.498315811157227e-03,
-1.155197620391846e-02,
-1.925528049468994e-02,
-6.966948509216309e-03,
1.548910140991211e-02,
1.736736297607422e-02,
2.035260200500488e-03,
-8.094668388366699e-03,
-2.877354621887207e-03,
4.649996757507324e-03,
-1.651287078857422e-03,
-1.518607139587402e-02,
-1.338112354278564e-02,
-4.768848419189453e-03,
-7.210373878479004e-03,
-2.242934703826904e-02,
-2.789759635925293e-02,
-2.250742912292480e-02,
-2.160489559173584e-02,
-4.396939277648926e-02,
-7.102704048156738e-02,
-6.871592998504639e-02,
-3.350901603698730e-02,
-9.314537048339844e-03,
-2.158713340759277e-02,
-4.306674003601074e-02,
-3.989958763122559e-02,
-2.303838729858398e-02,
-8.735299110412598e-03,
-1.178669929504395e-02,
-1.941251754760742e-02,
-2.143263816833496e-02,
-1.281130313873291e-02,
-2.186655998229980e-03,
-5.851149559020996e-03,
-1.186323165893555e-02,
-2.200293540954590e-02,
-1.581192016601562e-02,
-7.279276847839355e-03,
-1.989018917083740e-02,
-4.240095615386963e-02,
-4.382348060607910e-02,
-2.434968948364258e-02,
-1.029765605926514e-02,
-1.740491390228271e-02,
-3.055799007415771e-02,
-2.924644947052002e-02,
-2.627766132354736e-02,
-1.706457138061523e-02,
-1.636624336242676e-03,
1.209354400634766e-02,
1.126873493194580e-02,
1.286840438842773e-02,
1.021611690521240e-02,
-1.191699504852295e-02,
-2.447938919067383e-02,
-1.308107376098633e-02,
2.275228500366211e-03,
-5.137801170349121e-03,
-2.151763439178467e-02,
-2.068984508514404e-02,
-1.463115215301514e-02,
-1.236271858215332e-02,
-1.037168502807617e-02,
-1.306533813476562e-02,
-1.605749130249023e-02,
-2.085292339324951e-02,
-2.662539482116699e-02,
-3.531622886657715e-02,
-2.589952945709229e-02,
-1.678824424743652e-03,
-1.689577102661133e-02,
-3.141415119171143e-02,
-1.358556747436523e-02,
8.597254753112793e-03,
2.195847034454346e-02,
2.031803131103516e-02,
-1.312255859375000e-03,
-1.457428932189941e-02,
-7.713675498962402e-03,
6.259322166442871e-03,
9.516000747680664e-03,
-6.206274032592773e-03,
-5.291581153869629e-03,
9.541153907775879e-03,
2.450609207153320e-02,
1.895129680633545e-02,
1.145100593566895e-02,
1.541292667388916e-02,
1.766753196716309e-02,
1.698446273803711e-02,
1.614451408386230e-02,
5.934596061706543e-03,
1.658320426940918e-03,
8.041858673095703e-03,
-1.063013076782227e-02,
-3.064835071563721e-02,
-4.054963588714600e-02,
-3.380668163299561e-02,
-5.848169326782227e-03,
2.074670791625977e-02,
2.953338623046875e-02,
2.641975879669189e-02,
1.443588733673096e-02,
1.306545734405518e-02,
2.686285972595215e-02,
3.450107574462891e-02,
1.542687416076660e-02,
-7.027864456176758e-03,
-2.090334892272949e-03,
1.414859294891357e-02,
1.231086254119873e-02,
-2.671122550964355e-03,
-1.050257682800293e-02,
-2.298235893249512e-03,
1.156663894653320e-02,
7.742881774902344e-03,
-1.900959014892578e-02,
-2.119588851928711e-02,
-1.371264457702637e-03,
3.067493438720703e-03,
-7.866263389587402e-03,
-2.029883861541748e-02,
-1.821243762969971e-02,
-1.009035110473633e-02,
-3.800272941589355e-03,
8.134841918945312e-04,
-1.319921016693115e-02,
-1.035046577453613e-02,
1.566815376281738e-02,
2.298188209533691e-02,
1.845550537109375e-02,
2.169585227966309e-02,
3.672182559967041e-02,
4.498279094696045e-02,
3.437316417694092e-02,
2.374589443206787e-02,
2.674174308776855e-02,
2.643561363220215e-02,
5.613803863525391e-03,
-1.299571990966797e-02,
-1.399731636047363e-02,
-1.053774356842041e-02,
-1.925468444824219e-03,
3.890872001647949e-03,
1.220464706420898e-03,
1.167404651641846e-02,
2.041184902191162e-02,
2.597784996032715e-02,
2.466905117034912e-02,
1.847648620605469e-02,
1.294958591461182e-02,
8.187294006347656e-03,
5.975604057312012e-03,
-4.456400871276855e-03,
-7.551193237304688e-03,
6.878852844238281e-03,
2.168345451354980e-02,
2.390038967132568e-02,
2.949619293212891e-02,
2.606976032257080e-02,
1.490962505340576e-02,
1.242005825042725e-02,
1.115071773529053e-02,
5.573272705078125e-03,
-4.608392715454102e-03,
-1.187443733215332e-02,
-1.357817649841309e-02,
-2.136659622192383e-02,
-3.281879425048828e-02,
-2.811098098754883e-02,
-5.083203315734863e-03,
7.967829704284668e-03,
9.992241859436035e-03,
9.083867073059082e-03,
1.330614089965820e-02,
1.144027709960938e-02,
1.030969619750977e-02,
2.288579940795898e-03,
-1.722776889801025e-02,
-2.877581119537354e-02,
-1.552212238311768e-02,
4.662275314331055e-03,
-3.569245338439941e-03,
-3.061521053314209e-02,
-4.907262325286865e-02,
-3.612685203552246e-02,
-9.698867797851562e-03,
1.428842544555664e-03,
-5.987882614135742e-03,
-1.520562171936035e-02,
-1.278471946716309e-02,
-1.406049728393555e-02,
-3.194451332092285e-02,
-4.919016361236572e-02,
-4.202985763549805e-02,
-1.891529560089111e-02,
2.592802047729492e-04,
2.747654914855957e-03,
-8.995890617370605e-03,
-1.499378681182861e-02,
-2.555131912231445e-03,
1.007080078125000e-03,
-8.972644805908203e-03,
-1.035833358764648e-02,
-4.166960716247559e-03,
2.220392227172852e-03,
-5.856275558471680e-03,
-2.666819095611572e-02,
-3.462505340576172e-02,
-2.889752388000488e-02,
-2.629745006561279e-02,
-3.335356712341309e-02,
-3.857684135437012e-02,
-2.962613105773926e-02,
-1.561939716339111e-02,
-1.234281063079834e-02,
-1.489841938018799e-02,
-2.071082592010498e-02,
-2.537071704864502e-02,
-2.271974086761475e-02,
-1.225304603576660e-02,
-7.003188133239746e-03,
-8.289813995361328e-03,
-1.103746891021729e-02,
-8.499145507812500e-03,
-3.259778022766113e-03,
-1.012790203094482e-02,
-1.865649223327637e-02,
-5.171060562133789e-03,
5.697965621948242e-03,
8.987188339233398e-04,
5.803108215332031e-03,
9.943842887878418e-03,
1.067316532135010e-02,
1.689982414245605e-02,
2.177023887634277e-02,
1.964974403381348e-02,
7.713794708251953e-03,
1.413464546203613e-03,
1.259148120880127e-02,
2.982306480407715e-02,
3.761887550354004e-02,
3.192949295043945e-02,
1.975393295288086e-02,
1.069951057434082e-02,
1.611971855163574e-02,
3.072893619537354e-02,
3.807532787322998e-02,
2.645814418792725e-02,
1.247107982635498e-02,
1.497960090637207e-02,
2.338552474975586e-02,
2.422773838043213e-02,
2.012050151824951e-02,
7.266283035278320e-03,
2.784967422485352e-03,
4.936933517456055e-03,
2.692222595214844e-03,
3.550887107849121e-03,
5.202054977416992e-03,
2.925634384155273e-03,
5.690455436706543e-03,
9.898781776428223e-03,
1.321578025817871e-02,
1.323187351226807e-02,
8.024692535400391e-03,
4.610538482666016e-03,
-1.568078994750977e-03,
-8.021116256713867e-03,
-7.052183151245117e-03,
4.863500595092773e-03,
8.134484291076660e-03,
2.278089523315430e-03,
-6.555318832397461e-04,
-5.369067192077637e-03,
-1.409649848937988e-02,
-1.460003852844238e-02,
3.871917724609375e-03,
7.925629615783691e-03,
-4.758238792419434e-03,
-5.967020988464355e-03,
1.244783401489258e-03,
2.953290939331055e-03,
2.757549285888672e-03,
1.246464252471924e-02,
1.750028133392334e-02,
1.176238059997559e-02,
1.574182510375977e-02,
3.093469142913818e-02,
3.679049015045166e-02,
3.308796882629395e-02,
3.393685817718506e-02,
3.125953674316406e-02,
2.255809307098389e-02,
2.392625808715820e-02,
2.049827575683594e-02,
1.037466526031494e-02,
2.751588821411133e-03,
3.370165824890137e-03,
7.005453109741211e-03,
4.104375839233398e-04,
1.338243484497070e-03,
1.279580593109131e-02,
2.709913253784180e-02,
3.382706642150879e-02,
3.561031818389893e-02,
3.868341445922852e-02,
4.358386993408203e-02,
4.669308662414551e-02,
4.338395595550537e-02,
3.063821792602539e-02,
2.032411098480225e-02,
2.307486534118652e-02,
3.172302246093750e-02,
3.044891357421875e-02,
2.586793899536133e-02,
2.339720726013184e-02,
1.300346851348877e-02,
1.332640647888184e-03,
-2.410411834716797e-04,
4.106402397155762e-03,
4.179000854492188e-03,
-4.150986671447754e-03,
-7.019042968750000e-03,
-3.261804580688477e-03,
9.747743606567383e-03,
2.095127105712891e-02,
2.214348316192627e-02,
1.796460151672363e-02,
1.374697685241699e-02,
1.415753364562988e-02,
1.790368556976318e-02,
1.503634452819824e-02,
9.703159332275391e-03,
1.728165149688721e-02,
2.986884117126465e-02,
3.724586963653564e-02,
3.484380245208740e-02,
2.310037612915039e-02,
2.401709556579590e-03,
-6.646633148193359e-03,
-8.190035820007324e-03,
-8.096814155578613e-03,
-1.906728744506836e-02,
-3.826022148132324e-02,
-4.898846149444580e-02,
-4.064178466796875e-02,
-2.752482891082764e-02,
-2.672231197357178e-02,
-3.104352951049805e-02,
-2.988302707672119e-02,
-9.568214416503906e-03,
8.698463439941406e-03,
2.294659614562988e-03,
-2.572059631347656e-03,
9.411573410034180e-03,
2.102398872375488e-02,
1.831173896789551e-02,
4.255414009094238e-03,
-9.202361106872559e-03,
-1.060199737548828e-02,
-1.048278808593750e-02,
-1.898193359375000e-02,
-3.299856185913086e-02,
-4.220855236053467e-02,
-4.331302642822266e-02,
-4.088056087493896e-02,
-3.905749320983887e-02,
-4.199290275573730e-02,
-3.601670265197754e-02,
-2.010095119476318e-02,
-2.030587196350098e-02,
-3.184580802917480e-02,
-2.993369102478027e-02,
-2.230167388916016e-02,
-2.296304702758789e-02,
-2.635896205902100e-02,
-2.292072772979736e-02,
-1.496016979217529e-02,
-1.397585868835449e-02,
-2.162170410156250e-02,
-2.317595481872559e-02,
-1.455295085906982e-02,
-9.038686752319336e-03,
-1.211285591125488e-02,
-2.723395824432373e-02,
-3.866159915924072e-02,
-2.932059764862061e-02,
-1.432561874389648e-02,
-5.021929740905762e-03,
4.032492637634277e-03,
7.182955741882324e-03,
-5.243897438049316e-03,
-1.520884037017822e-02,
-8.504867553710938e-03,
4.966139793395996e-03,
1.711630821228027e-02,
1.880693435668945e-02,
1.300311088562012e-02,
4.417777061462402e-03,
1.749753952026367e-03,
5.226612091064453e-03,
2.374291419982910e-03,
-7.220149040222168e-03,
-1.296722888946533e-02,
-1.053786277770996e-02,
-4.654169082641602e-03,
4.931926727294922e-03,
1.205706596374512e-02,
1.405799388885498e-02,
1.095092296600342e-02,
1.298999786376953e-02,
1.805984973907471e-02,
1.496636867523193e-02,
1.495242118835449e-02,
2.617895603179932e-02,
3.911685943603516e-02,
3.863489627838135e-02,
2.759540081024170e-02,
2.080881595611572e-02,
2.261126041412354e-02,
2.423608303070068e-02,
1.506209373474121e-02,
1.763105392456055e-04,
-1.267099380493164e-02,
-1.245427131652832e-02,
-2.331137657165527e-03,
-5.519866943359375e-03,
-2.006065845489502e-02,
-2.986001968383789e-02,
-2.526080608367920e-02,
-1.463270187377930e-02,
-1.178872585296631e-02,
-8.902549743652344e-03,
-2.937197685241699e-03,
5.065083503723145e-03,
1.531064510345459e-02,
1.314938068389893e-02,
7.576823234558105e-03,
9.135246276855469e-03,
1.286900043487549e-02,
9.787201881408691e-03,
-3.756284713745117e-04,
-1.215171813964844e-02,
-1.735436916351318e-02,
-1.780736446380615e-02,
-2.079117298126221e-02,
-2.223384380340576e-02,
-2.081382274627686e-02,
-2.487277984619141e-02,
-3.158795833587646e-02,
-2.883803844451904e-02,
-1.973819732666016e-02,
-1.950883865356445e-02,
-2.470850944519043e-02,
-2.709901332855225e-02,
-3.482031822204590e-02,
-5.255055427551270e-02,
-6.992614269256592e-02,
-6.055068969726562e-02,
-3.949069976806641e-02,
-2.981007099151611e-02,
-3.257608413696289e-02,
-3.773319721221924e-02,
-3.022241592407227e-02,
-1.473629474639893e-02,
-4.364252090454102e-03,
-5.210995674133301e-03,
-1.017928123474121e-02,
-4.892587661743164e-03,
1.010441780090332e-02,
9.529352188110352e-03,
-4.632472991943359e-04,
-7.112860679626465e-03,
-3.254532814025879e-03,
1.671314239501953e-04,
1.741051673889160e-03,
1.333069801330566e-02,
2.738320827484131e-02,
3.467047214508057e-02,
3.430724143981934e-02,
3.501868247985840e-02,
3.440475463867188e-02,
3.485810756683350e-02,
3.708589076995850e-02,
3.471517562866211e-02,
2.641034126281738e-02,
2.518510818481445e-02,
2.935814857482910e-02,
2.968609333038330e-02,
3.529822826385498e-02,
4.026973247528076e-02,
4.796802997589111e-02,
4.939496517181396e-02,
3.899061679840088e-02,
3.082513809204102e-02,
3.234887123107910e-02,
3.236532211303711e-02,
2.697598934173584e-02,
2.218914031982422e-02,
2.175581455230713e-02,
3.452432155609131e-02,
4.385411739349365e-02,
3.607618808746338e-02,
3.439211845397949e-02,
4.016041755676270e-02,
4.098784923553467e-02,
2.923047542572021e-02,
1.498639583587646e-02,
1.583862304687500e-02,
2.402532100677490e-02,
3.073644638061523e-02,
2.202212810516357e-02,
4.159927368164062e-03,
5.959272384643555e-03,
2.826941013336182e-02,
3.954315185546875e-02,
2.852284908294678e-02,
9.017825126647949e-03,
1.446962356567383e-03,
4.853487014770508e-03,
7.262587547302246e-03,
5.150318145751953e-03,
-1.649737358093262e-03,
-1.342177391052246e-03,
6.498694419860840e-03,
2.002847194671631e-02,
2.501916885375977e-02,
2.070617675781250e-02,
2.045512199401855e-02,
1.799440383911133e-02,
8.466601371765137e-03,
8.689284324645996e-03,
1.046407222747803e-02,
2.009868621826172e-04,
-6.382942199707031e-03,
-5.806088447570801e-03,
-3.037691116333008e-03,
-2.623200416564941e-03,
1.471877098083496e-03,
7.733106613159180e-04,
-9.983301162719727e-03,
-1.242864131927490e-02,
-3.361701965332031e-03,
-2.954840660095215e-03,
-7.535099983215332e-03,
-5.148649215698242e-03,
-2.350807189941406e-04,
-7.311463356018066e-03,
-2.422177791595459e-02,
-3.202867507934570e-02,
-2.657270431518555e-02,
-2.077829837799072e-02,
-2.407550811767578e-02,
-3.424882888793945e-02,
-3.809857368469238e-02,
-2.734863758087158e-02,
-8.522748947143555e-03,
-1.804709434509277e-03,
-8.231878280639648e-03,
-1.174509525299072e-02,
-2.706885337829590e-03,
1.259553432464600e-02,
1.038730144500732e-02,
-9.080648422241211e-03,
-2.138853073120117e-02,
-1.645696163177490e-02,
1.537442207336426e-03,
9.954929351806641e-03,
2.079129219055176e-03,
-2.119064331054688e-03,
-1.435875892639160e-03,
-1.378417015075684e-03,
-2.411842346191406e-03,
-8.628487586975098e-03,
-1.266944408416748e-02,
-1.292335987091064e-02,
-1.278400421142578e-02,
-6.896376609802246e-03,
-5.089044570922852e-04,
-3.536701202392578e-03,
-5.183219909667969e-03,
3.232479095458984e-03,
7.004261016845703e-03,
6.338000297546387e-03,
7.960438728332520e-03,
8.716225624084473e-03,
5.500793457031250e-03,
1.267790794372559e-03,
5.040168762207031e-04,
-4.088401794433594e-03,
-1.102304458618164e-02,
-1.240158081054688e-02,
-9.763956069946289e-03,
-6.460189819335938e-03,
-8.921623229980469e-03,
-1.511836051940918e-02,
-1.496601104736328e-02,
-1.105678081512451e-02,
-9.454250335693359e-03,
-1.319396495819092e-02,
-2.541959285736084e-02,
-3.471112251281738e-02,
-3.069019317626953e-02,
-2.220988273620605e-02,
-2.254176139831543e-02,
-2.905964851379395e-02,
-2.959012985229492e-02,
-1.639854907989502e-02,
-1.403331756591797e-03,
3.899812698364258e-03,
1.560688018798828e-03,
-5.151271820068359e-03,
-8.532524108886719e-03,
-1.001191139221191e-02,
-1.077711582183838e-02,
-1.098895072937012e-02,
-8.899331092834473e-03,
-1.347064971923828e-03,
-6.409049034118652e-03,
-2.268624305725098e-02,
-2.348029613494873e-02,
-8.453726768493652e-03,
-3.633856773376465e-03,
-6.043791770935059e-03,
-8.942127227783203e-03,
-1.384663581848145e-02,
-1.000225543975830e-02,
3.099441528320312e-05,
6.654024124145508e-03,
1.491546630859375e-03,
-6.946325302124023e-04,
8.716225624084473e-03,
1.322627067565918e-02,
9.342670440673828e-03,
6.081461906433105e-03,
2.501130104064941e-03,
-4.505991935729980e-03,
-1.012277603149414e-02,
-3.244876861572266e-03,
8.764982223510742e-03,
1.088297367095947e-02,
6.918668746948242e-03,
8.782386779785156e-03,
1.992619037628174e-02,
2.420747280120850e-02,
2.570128440856934e-02,
3.100514411926270e-02,
3.367316722869873e-02,
2.825248241424561e-02,
1.734912395477295e-02,
1.124703884124756e-02,
7.748961448669434e-03,
4.405498504638672e-03,
-4.507303237915039e-03,
-1.247608661651611e-02,
-1.051759719848633e-02,
-3.244996070861816e-03,
1.710414886474609e-03,
5.320191383361816e-03,
5.837678909301758e-03,
7.318735122680664e-03,
9.054541587829590e-03,
9.412288665771484e-03,
1.328778266906738e-02,
1.091837882995605e-02,
2.310752868652344e-03,
-1.375079154968262e-03,
-4.572868347167969e-03,
-1.041555404663086e-02,
-1.192104816436768e-02,
-1.226842403411865e-02,
-8.038878440856934e-03,
5.440711975097656e-04,
1.740455627441406e-05,
-5.438089370727539e-03,
-5.895972251892090e-03,
-4.526853561401367e-03,
-6.907939910888672e-03,
-1.145923137664795e-02,
-1.344060897827148e-02,
-1.658761501312256e-02,
-2.209138870239258e-02,
-1.704180240631104e-02,
-8.967876434326172e-03,
-1.048934459686279e-02,
-1.405465602874756e-02,
-1.297020912170410e-02,
-1.048982143402100e-02,
-6.251096725463867e-03,
-2.339482307434082e-03,
4.460811614990234e-04,
4.394769668579102e-03,
5.920171737670898e-03,
3.120779991149902e-03,
-1.324892044067383e-03,
9.701251983642578e-04,
1.169109344482422e-02,
1.462864875793457e-02,
2.027511596679688e-03,
-1.195228099822998e-02,
-1.027262210845947e-02,
1.286268234252930e-03,
7.237315177917480e-03,
2.100586891174316e-03,
-4.851222038269043e-03,
-4.063963890075684e-03,
2.852916717529297e-03,
6.701946258544922e-03,
6.807923316955566e-03,
7.081389427185059e-03,
1.934409141540527e-03,
-3.753542900085449e-03,
-6.509184837341309e-03,
-7.293343544006348e-03,
-6.758928298950195e-03,
-7.048249244689941e-03,
-1.084887981414795e-02,
-1.598727703094482e-02,
-1.495611667633057e-02,
-7.038950920104980e-03,
3.981590270996094e-03,
1.093745231628418e-02,
7.673144340515137e-03,
-2.217292785644531e-04,
-2.807736396789551e-03,
-5.463719367980957e-03,
-9.691357612609863e-03,
-7.835268974304199e-03,
-3.416776657104492e-03,
-3.793835639953613e-03,
-5.163788795471191e-03,
6.829500198364258e-04,
8.510708808898926e-03,
1.698386669158936e-02,
2.697110176086426e-02,
3.236722946166992e-02,
3.226482868194580e-02,
2.546823024749756e-02,
1.628875732421875e-02,
1.334345340728760e-02,
1.374661922454834e-02,
7.826209068298340e-03,
-2.023935317993164e-03,
-7.197380065917969e-03,
-8.316874504089355e-03,
-1.208734512329102e-02,
-2.185189723968506e-02,
-2.829360961914062e-02,
-2.902328968048096e-02,
-2.431118488311768e-02,
-1.458489894866943e-02,
-1.121854782104492e-02,
-1.121807098388672e-02,
-2.698898315429688e-03,
7.054209709167480e-03,
8.300542831420898e-03,
5.058646202087402e-03,
1.029169559478760e-02,
1.775264739990234e-02,
1.423811912536621e-02,
3.270864486694336e-03,
-5.556821823120117e-03,
-4.770755767822266e-03,
1.583576202392578e-03,
5.668640136718750e-03,
3.983736038208008e-03,
-3.234386444091797e-03,
-7.479667663574219e-03,
-3.165721893310547e-03,
5.180835723876953e-04,
-8.768677711486816e-03,
-1.889550685882568e-02,
-1.907837390899658e-02,
-1.867592334747314e-02,
-1.794576644897461e-02,
-1.269161701202393e-02,
-2.384185791015625e-03,
4.204988479614258e-03,
1.035821437835693e-02,
2.072381973266602e-02,
2.790033817291260e-02,
2.562785148620605e-02,
2.157139778137207e-02,
2.524042129516602e-02,
2.739346027374268e-02,
1.966869831085205e-02,
7.018327713012695e-03,
-9.649991989135742e-04,
-3.435015678405762e-03,
-3.244757652282715e-03,
-3.948211669921875e-03,
-7.121086120605469e-03,
-7.697463035583496e-03,
-1.217722892761230e-03,
4.713416099548340e-03,
2.580285072326660e-03,
-2.676129341125488e-03,
-4.557490348815918e-03,
-1.077413558959961e-03,
4.415035247802734e-03,
3.061532974243164e-03,
3.629922866821289e-04,
5.418062210083008e-04,
-5.101203918457031e-03,
-1.111793518066406e-02,
-9.557127952575684e-03,
-2.729773521423340e-03,
2.968072891235352e-03,
7.296919822692871e-03,
9.844064712524414e-03,
1.087832450866699e-02,
9.525179862976074e-03,
9.393215179443359e-03,
1.120233535766602e-02,
8.905887603759766e-03,
3.674387931823730e-03,
8.724927902221680e-04,
1.364588737487793e-03,
2.542138099670410e-03,
2.277731895446777e-03,
-4.479169845581055e-03,
-1.162576675415039e-02,
-1.349842548370361e-02,
-9.850621223449707e-03,
-6.064057350158691e-03,
-9.044051170349121e-03,
-1.518988609313965e-02,
-1.410210132598877e-02,
-1.012682914733887e-02,
-7.826209068298340e-03,
-7.054924964904785e-03,
-8.989691734313965e-03,
-1.258420944213867e-02,
-1.329278945922852e-02,
-1.008999347686768e-02,
-6.150841712951660e-03,
-5.555629730224609e-03,
-9.286284446716309e-03,
-7.799148559570312e-03,
-2.860426902770996e-03,
3.973722457885742e-03,
8.062243461608887e-03,
8.532285690307617e-03,
7.359504699707031e-03,
8.577585220336914e-03,
1.326727867126465e-02,
9.750008583068848e-03,
8.975267410278320e-04,
-5.828738212585449e-03,
-1.272284984588623e-02,
-1.505696773529053e-02,
-1.205253601074219e-02,
-9.830832481384277e-03,
-9.151697158813477e-03,
-5.499482154846191e-03,
2.072215080261230e-03,
7.211089134216309e-03,
6.786108016967773e-03,
4.819154739379883e-03,
4.982709884643555e-03,
4.510283470153809e-03,
5.858778953552246e-03,
1.153755187988281e-02,
1.781618595123291e-02,
2.174139022827148e-02,
2.079522609710693e-02,
1.596212387084961e-02,
1.043188571929932e-02,
8.083343505859375e-03,
8.649230003356934e-03,
8.667111396789551e-03,
5.231857299804688e-03,
1.966953277587891e-05,
-2.894163131713867e-03,
-2.438902854919434e-03,
-2.263784408569336e-03,
-5.469202995300293e-03,
-7.346391677856445e-03,
-7.598400115966797e-03,
-3.875255584716797e-03,
5.259275436401367e-03,
1.412022113800049e-02,
1.389718055725098e-02,
1.093494892120361e-02,
1.201784610748291e-02,
1.234090328216553e-02,
1.319420337677002e-02,
1.188385486602783e-02,
1.083481311798096e-02,
9.281992912292480e-03,
4.065275192260742e-03,
-3.021717071533203e-03,
-7.464170455932617e-03,
-8.735656738281250e-03,
-8.645176887512207e-03,
-7.127881050109863e-03,
-6.472229957580566e-03,
-6.531357765197754e-03,
-6.738424301147461e-03,
-8.109092712402344e-03,
-1.159262657165527e-02,
-1.499605178833008e-02,
-1.469850540161133e-02,
-1.152551174163818e-02,
-9.363174438476562e-03,
-7.833957672119141e-03,
-7.111430168151855e-03,
-3.857135772705078e-03,
-4.695892333984375e-03,
-5.352735519409180e-03,
-4.018545150756836e-03,
-5.416870117187500e-03,
-8.266687393188477e-03,
-9.894251823425293e-03,
-9.445786476135254e-03,
-7.411718368530273e-03,
-8.111953735351562e-03,
-1.203811168670654e-02,
-1.211071014404297e-02,
-8.524775505065918e-03,
-5.364418029785156e-03,
-4.845857620239258e-03,
-5.949616432189941e-03,
-7.291913032531738e-03,
-7.013082504272461e-03,
-7.585644721984863e-03,
-9.511828422546387e-03,
-9.842991828918457e-03,
-6.667375564575195e-03,
-5.620718002319336e-04,
1.946687698364258e-04,
-6.858110427856445e-03,
-8.634448051452637e-03,
-2.267360687255859e-03,
4.425764083862305e-03,
6.279230117797852e-03,
5.563020706176758e-03,
6.467938423156738e-03,
1.111280918121338e-02,
1.777017116546631e-02,
1.986670494079590e-02,
1.530432701110840e-02,
1.010012626647949e-02,
9.919881820678711e-03,
8.881568908691406e-03,
3.662824630737305e-03,
-2.628564834594727e-03,
-2.550601959228516e-03,
7.774829864501953e-04,
-1.777410507202148e-03,
-9.270191192626953e-03,
-1.072382926940918e-02,
-3.418803215026855e-03,
3.054261207580566e-03,
5.352020263671875e-03,
2.259373664855957e-03,
-1.091122627258301e-03,
-4.353523254394531e-04,
4.980325698852539e-03,
1.016044616699219e-02,
1.094055175781250e-02,
6.733179092407227e-03,
-1.122355461120605e-03,
-6.086111068725586e-03,
-4.858970642089844e-04,
7.001876831054688e-03,
4.797577857971191e-03,
-4.319190979003906e-03,
-1.019477844238281e-02,
-5.918502807617188e-03,
-1.362681388854980e-03,
-2.815842628479004e-03,
-6.663084030151367e-03,
-6.865262985229492e-03,
-3.603577613830566e-03,
8.106231689453125e-06,
1.366734504699707e-03,
-2.456188201904297e-03,
-4.279971122741699e-03,
6.226301193237305e-04,
5.472183227539062e-03,
3.568410873413086e-03,
-1.473069190979004e-03,
-1.697063446044922e-03,
2.303361892700195e-03,
5.079269409179688e-03,
4.049539566040039e-03,
1.519918441772461e-04,
6.531476974487305e-04,
4.534721374511719e-03,
9.927511215209961e-03,
1.269149780273438e-02,
7.991552352905273e-03,
4.173994064331055e-03,
5.474686622619629e-03,
1.008927822113037e-02,
1.170599460601807e-02,
7.795572280883789e-03,
7.020235061645508e-04,
-3.803730010986328e-03,
-8.159875869750977e-04,
3.063797950744629e-03,
2.154469490051270e-03,
1.206398010253906e-04,
2.195954322814941e-03,
1.772522926330566e-03,
-2.283096313476562e-03,
-1.081824302673340e-03,
3.966450691223145e-03,
8.092164993286133e-03,
1.023328304290771e-02,
1.011633872985840e-02,
1.134443283081055e-02,
1.560842990875244e-02,
1.894021034240723e-02,
1.786482334136963e-02,
1.504504680633545e-02,
1.609611511230469e-02,
1.876652240753174e-02,
1.855647563934326e-02,
1.244938373565674e-02,
7.936835289001465e-03,
1.338541507720947e-02,
1.708710193634033e-02,
9.329795837402344e-03,
1.008391380310059e-03,
3.777384757995605e-03,
1.264238357543945e-02,
1.579391956329346e-02,
1.123070716857910e-02,
5.796551704406738e-03,
5.041122436523438e-03,
6.413102149963379e-03,
5.085468292236328e-03,
-3.100633621215820e-04,
-4.072070121765137e-03,
-3.919601440429688e-04,
5.053281784057617e-03,
-2.729892730712891e-05,
-8.672475814819336e-03,
-8.557558059692383e-03,
-1.225471496582031e-04,
3.348946571350098e-03,
-3.653883934020996e-03,
-9.659051895141602e-03,
-1.036071777343750e-02,
-7.421612739562988e-03,
-6.589889526367188e-03,
-9.283542633056641e-03,
-1.251232624053955e-02,
-1.545822620391846e-02,
-1.685297489166260e-02,
-1.456165313720703e-02,
-1.077604293823242e-02,
-7.862210273742676e-03,
-8.843541145324707e-03,
-1.013648509979248e-02,
-1.013839244842529e-02,
-9.074091911315918e-03,
-5.890130996704102e-03,
-3.896474838256836e-03,
-5.473256111145020e-03,
-9.047508239746094e-03,
-1.067280769348145e-02,
-9.959101676940918e-03,
-9.220719337463379e-03,
-4.687309265136719e-03,
1.407384872436523e-03,
3.253221511840820e-03,
-7.685422897338867e-04,
-3.103733062744141e-03,
1.173734664916992e-03,
5.962371826171875e-03,
7.929921150207520e-03,
6.728410720825195e-03,
2.728581428527832e-03,
-1.911520957946777e-03,
-1.503944396972656e-03,
2.353310585021973e-03,
3.617525100708008e-03,
1.690268516540527e-03,
8.739233016967773e-04,
8.130073547363281e-04,
-1.380443572998047e-04,
1.922845840454102e-04,
1.805067062377930e-03,
1.756668090820312e-03,
1.168251037597656e-05,
1.186132431030273e-03,
2.858042716979980e-03,
2.445340156555176e-03,
1.295447349548340e-03,
-7.027387619018555e-04,
-3.306865692138672e-03,
-2.088427543640137e-03,
3.200292587280273e-03,
5.128622055053711e-03,
3.610134124755859e-03,
3.251075744628906e-03,
6.020426750183105e-03,
9.482741355895996e-03,
1.044547557830811e-02,
8.915185928344727e-03,
6.010532379150391e-03,
4.068851470947266e-03,
4.667758941650391e-03,
5.916237831115723e-03,
6.026387214660645e-03,
3.660559654235840e-03,
4.853010177612305e-04,
-3.720283508300781e-03,
-7.048606872558594e-03,
-6.017327308654785e-03,
-3.186941146850586e-03,
-1.777291297912598e-03,
-1.737833023071289e-03,
-2.056360244750977e-03,
-1.615524291992188e-03,
-7.748603820800781e-04,
-1.198172569274902e-03,
-2.842545509338379e-03,
-3.151774406433105e-03,
-1.989006996154785e-03,
-7.162094116210938e-04,
-5.898475646972656e-04,
-1.600265502929688e-03,
-1.518487930297852e-03,
-1.367092132568359e-03,
-2.934336662292480e-03,
-2.706050872802734e-03,
4.671812057495117e-04,
2.451181411743164e-03,
9.417533874511719e-06,
-4.024386405944824e-03,
-5.180954933166504e-03,
-4.099726676940918e-03,
-3.147244453430176e-03,
-3.742456436157227e-03,
-4.945397377014160e-03,
-4.505634307861328e-03,
-1.124501228332520e-03,
2.030849456787109e-03,
4.764795303344727e-04,
-4.489064216613770e-03,
-7.759451866149902e-03,
-6.449460983276367e-03,
-1.875996589660645e-03,
3.008842468261719e-04,
-2.245783805847168e-03,
-4.784703254699707e-03,
-3.638505935668945e-03,
-9.821653366088867e-04,
6.071329116821289e-04,
-1.946687698364258e-04,
-2.727746963500977e-03,
-3.190398216247559e-03,
-1.831769943237305e-03,
-1.029253005981445e-03,
-2.472639083862305e-03,
-5.356192588806152e-03,
-6.260156631469727e-03,
-5.943059921264648e-03,
-6.075620651245117e-03,
-5.822300910949707e-03,
-4.737138748168945e-03,
-4.248619079589844e-03,
-4.656076431274414e-03,
-4.453420639038086e-03,
-3.424525260925293e-03,
-3.177762031555176e-03,
-2.483010292053223e-03,
-8.668899536132812e-04,
-1.120567321777344e-04,
-3.421306610107422e-05,
1.272320747375488e-03,
2.922296524047852e-03,
3.691315650939941e-03,
4.741907119750977e-03,
5.427002906799316e-03,
5.107045173645020e-03,
3.765583038330078e-03,
2.761602401733398e-03,
2.826213836669922e-03,
2.387046813964844e-03,
1.901388168334961e-04,
-2.209186553955078e-03,
-3.258824348449707e-03,
-2.953648567199707e-03,
-1.005172729492188e-03,
7.510185241699219e-04,
-3.535747528076172e-04,
-2.333879470825195e-03,
-2.650737762451172e-03,
-2.385377883911133e-03,
-1.396059989929199e-03,
1.130104064941406e-04,
3.625154495239258e-04,
-2.503395080566406e-05,
2.479553222656250e-05,
-5.757808685302734e-05,
-7.069110870361328e-05,
2.807378768920898e-04,
1.389622688293457e-03,
2.159476280212402e-03,
1.663208007812500e-03,
-9.860992431640625e-04,
-2.994537353515625e-03,
-2.014756202697754e-03,
-4.130601882934570e-04,
1.109957695007324e-03,
1.514792442321777e-03,
1.162290573120117e-03,
2.570152282714844e-04,
-3.855228424072266e-04,
8.209943771362305e-04,
2.729773521423340e-03,
3.637433052062988e-03,
2.529263496398926e-03,
2.522468566894531e-04,
-1.840591430664062e-04,
4.272460937500000e-04,
-8.958578109741211e-04,
-2.354145050048828e-03,
-1.101374626159668e-03,
9.022951126098633e-04,
1.700282096862793e-03,
1.944303512573242e-03,
1.585125923156738e-03,
1.946687698364258e-03,
2.331852912902832e-03,
1.271247863769531e-03,
-5.358457565307617e-04,
-5.512237548828125e-04,
4.526376724243164e-04,
1.955032348632812e-05,
-1.959800720214844e-03,
-4.609346389770508e-03,
-5.888223648071289e-03,
-5.280613899230957e-03,
-4.638552665710449e-03,
-4.914164543151855e-03,
-5.069375038146973e-03,
-3.102421760559082e-03,
-6.312131881713867e-04,
5.218982696533203e-04,
1.277923583984375e-04,
-1.219034194946289e-03,
-1.664161682128906e-03,
-9.664297103881836e-04,
-4.291534423828125e-06,
2.062320709228516e-05,
-9.979009628295898e-04,
-1.348257064819336e-03,
-2.055168151855469e-04,
9.000301361083984e-04,
1.597285270690918e-03,
1.027941703796387e-03,
-1.561641693115234e-04,
-6.481409072875977e-04,
-5.319118499755859e-04,
-5.725622177124023e-04,
-1.338720321655273e-03,
-1.768708229064941e-03,
-1.512050628662109e-03,
-1.002073287963867e-03,
-6.902217864990234e-04,
1.795291900634766e-04,
1.025795936584473e-03,
4.489421844482422e-04,
-2.791881561279297e-04,
-5.972385406494141e-05,
1.409530639648438e-03,
3.581762313842773e-03,
4.398941993713379e-03,
3.466129302978516e-03,
2.645134925842285e-03,
3.563165664672852e-03,
5.083441734313965e-03,
4.875540733337402e-03,
2.929329872131348e-03,
1.302719116210938e-03,
1.162648200988770e-03,
1.548647880554199e-03,
1.387357711791992e-03,
5.964040756225586e-04,
-1.504421234130859e-04,
-1.425743103027344e-04,
1.393556594848633e-04,
-3.424882888793945e-04,
-9.139776229858398e-04,
-7.542371749877930e-04,
2.319812774658203e-04,
9.258985519409180e-04,
4.396438598632812e-04,
-3.640651702880859e-04,
-2.316236495971680e-04,
8.159875869750977e-04,
1.602888107299805e-03,
1.346349716186523e-03,
7.568597793579102e-04,
7.408857345581055e-04,
1.245975494384766e-03,
1.171231269836426e-03,
8.285045623779297e-05,
-8.342266082763672e-04,
-9.239912033081055e-04,
-5.505084991455078e-04,
-5.124807357788086e-04,
-6.881952285766602e-04,
-6.070137023925781e-04,
-3.203153610229492e-04,
-6.687641143798828e-05,
9.059906005859375e-05,
-2.110004425048828e-05,
-4.748106002807617e-04,
-8.137226104736328e-04,
-8.771419525146484e-04,
-9.132623672485352e-04,
-8.666515350341797e-04,
-6.223917007446289e-04,
-4.100799560546875e-04,
-4.841089248657227e-04,
-6.160736083984375e-04,
-2.839565277099609e-04,
1.646280288696289e-04,
6.347894668579102e-04,
1.235723495483398e-03,
1.585006713867188e-03,
1.522183418273926e-03,
1.182556152343750e-03,
5.433559417724609e-04,
3.027915954589844e-05,
2.050399780273438e-05,
1.251697540283203e-04,
1.072883605957031e-04,
-1.668930053710938e-05,
-2.015829086303711e-04,
-2.485513687133789e-04,
-2.291202545166016e-04,
-3.801584243774414e-04,
-5.816221237182617e-04,
-8.103847503662109e-04,
-1.291513442993164e-03,
-1.477003097534180e-03,
-1.199722290039062e-03,
-1.214027404785156e-03,
-1.405477523803711e-03,
-1.174926757812500e-03,
-6.712675094604492e-04,
-3.696680068969727e-04,
-1.800060272216797e-04,
1.579523086547852e-04,
5.633831024169922e-04,
7.079839706420898e-04,
6.492137908935547e-04,
6.394386291503906e-04,
8.043050765991211e-04,
9.399652481079102e-04,
7.435083389282227e-04,
3.585815429687500e-04,
7.963180541992188e-05,
-6.961822509765625e-05,
-2.905130386352539e-04,
-7.065534591674805e-04,
-9.919404983520508e-04,
-8.771419525146484e-04,
-6.294250488281250e-04,
-5.719661712646484e-04,
-8.343458175659180e-04,
-1.012563705444336e-03,
-7.568597793579102e-04,
-3.601312637329102e-04,
-2.334117889404297e-04,
-3.163814544677734e-04,
-1.763105392456055e-04,
2.003908157348633e-04,
4.010200500488281e-04,
3.876686096191406e-04,
2.667903900146484e-04,
2.781152725219727e-04,
3.736019134521484e-04,
3.975629806518555e-04,
2.335309982299805e-04,
3.695487976074219e-06,
-7.295608520507812e-05,
-1.114606857299805e-04,
-1.925230026245117e-04,
-3.571510314941406e-04,
-3.823041915893555e-04,
-2.830028533935547e-04,
-2.386569976806641e-04,
-3.166198730468750e-04,
-3.827810287475586e-04,
-3.920793533325195e-04,
-3.137588500976562e-04,
-2.459287643432617e-04,
-2.782344818115234e-04,
-3.376007080078125e-04,
-3.263950347900391e-04,
-2.365112304687500e-04,
-1.347064971923828e-04,
-8.022785186767578e-05,
-3.492832183837891e-05,
6.580352783203125e-05,
1.029968261718750e-04,
3.266334533691406e-05,
-1.776218414306641e-05,
-7.867813110351562e-06,
5.125999450683594e-06,
7.987022399902344e-06,
9.894371032714844e-06,
2.861022949218750e-06,
-1.120567321777344e-05,
-1.001358032226562e-05,
0.000000000000000e+00,
-2.741813659667969e-06,
-5.245208740234375e-06,
-8.106231689453125e-06,
-1.299381256103516e-05,
-1.299381256103516e-05,
-6.914138793945312e-06,
-1.549720764160156e-06,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
1.192092895507812e-07,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
1.192092895507812e-07,
-1.192092895507812e-07,
0.000000000000000e+00,
1.192092895507812e-07,
1.192092895507812e-07,
1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
1.192092895507812e-07,
0.000000000000000e+00,
1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
1.192092895507812e-07,
0.000000000000000e+00,
1.192092895507812e-07,
0.000000000000000e+00,
1.192092895507812e-07,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
1.192092895507812e-07,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
1.192092895507812e-07,
1.192092895507812e-07,
1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
1.192092895507812e-07,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
1.192092895507812e-07,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
-1.192092895507812e-07,
1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
1.192092895507812e-07,
1.192092895507812e-07,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
1.192092895507812e-07,
1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
1.192092895507812e-07,
0.000000000000000e+00,
1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
1.192092895507812e-07,
1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
-1.192092895507812e-07,
1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
1.192092895507812e-07,
0.000000000000000e+00,
1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
1.192092895507812e-07,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00);
|
a63f1cb81a175261b027e04177e04acdbe1acdc3abdf7185243157fabdf5f15a | s-e-a-m/faust-libraries | irconv3.dsp | import("stdfaust.lib");
process = fi.conv(fcoeff);
// 128 tap 0~20000 -0.01dB // 30000~96000 -151.58dB
fcoeff = ( -8.031702041625977e-02,
-6.119704246520996e-02,
6.487882137298584e-02,
1.519786119461060e-01,
1.391460895538330e-01,
6.688344478607178e-02,
3.468430042266846e-02,
4.473912715911865e-02,
2.957773208618164e-02,
3.152477741241455e-02,
6.014704704284668e-03,
-3.092753887176514e-02,
-3.032672405242920e-02,
-4.378354549407959e-02,
-3.611135482788086e-02,
-2.634370326995850e-02,
-3.631913661956787e-02,
-1.330399513244629e-02,
4.097342491149902e-02,
5.946350097656250e-02,
5.272006988525391e-02,
6.297695636749268e-02,
7.285535335540771e-02,
1.084927320480347e-01,
1.261693239212036e-01,
6.113779544830322e-02,
-1.092457771301270e-02,
-3.841650485992432e-02,
-3.320670127868652e-02,
-3.182649612426758e-02,
-6.585037708282471e-02,
-1.022051572799683e-01,
-1.138334274291992e-01,
-1.066131591796875e-01,
-9.279680252075195e-02,
-8.884251117706299e-02,
-9.681046009063721e-02,
-1.250512599945068e-01,
-1.328966617584229e-01,
-1.137355566024780e-01,
-1.166243553161621e-01,
-1.291166543960571e-01,
-1.182435750961304e-01,
-9.263372421264648e-02,
-5.898058414459229e-02,
-4.252898693084717e-02,
-6.191921234130859e-02,
-6.389343738555908e-02,
-4.249060153961182e-02,
4.056310653686523e-02,
7.430100440979004e-02,
4.937362670898438e-02,
4.940629005432129e-02,
1.038172245025635e-01,
1.153175830841064e-01,
5.441808700561523e-02,
1.118719577789307e-02,
1.538395881652832e-03,
1.260018348693848e-02,
2.850651741027832e-03,
-6.542670726776123e-02,
-1.648871898651123e-01,
-1.847909688949585e-01,
-8.371746540069580e-02,
-6.213963031768799e-02,
-1.345129013061523e-01,
-1.059463024139404e-01,
8.215320110321045e-02,
1.946704387664795e-01,
1.480975151062012e-01,
8.367443084716797e-02,
4.817008972167969e-02,
4.743432998657227e-02,
9.427642822265625e-02,
1.319798231124878e-01,
5.981457233428955e-02,
-4.753541946411133e-02,
-4.327285289764404e-02,
5.664110183715820e-03,
4.520058631896973e-02,
3.814506530761719e-02,
6.582379341125488e-03,
1.770853996276855e-03,
3.491330146789551e-02,
8.326053619384766e-02,
1.255071163177490e-01,
1.107587814331055e-01,
8.059930801391602e-02,
5.964279174804688e-02,
4.385030269622803e-02,
4.177629947662354e-02,
3.528904914855957e-02,
2.511930465698242e-02,
2.885019779205322e-02,
6.020283699035645e-02,
7.685673236846924e-02,
7.614493370056152e-02,
7.512211799621582e-02,
7.443439960479736e-02,
4.816448688507080e-02,
8.881568908691406e-03,
2.621769905090332e-03,
3.722476959228516e-02,
5.855691432952881e-02,
5.092895030975342e-02,
2.546751499176025e-02,
9.191513061523438e-03,
5.648732185363770e-03,
2.177739143371582e-02,
6.881189346313477e-02,
1.096007823944092e-01,
1.273907423019409e-01,
1.169677972793579e-01,
7.764387130737305e-02,
3.812944889068604e-02,
4.714822769165039e-02,
7.216310501098633e-02,
8.468079566955566e-02,
8.889460563659668e-02,
7.382178306579590e-02,
4.785692691802979e-02,
3.100109100341797e-02,
3.130149841308594e-02,
3.052604198455811e-02,
4.917562007904053e-02,
6.012439727783203e-02,
6.120836734771729e-02,
5.872559547424316e-02,
5.808877944946289e-02,
6.193852424621582e-02,
6.643795967102051e-02,
8.074414730072021e-02,
7.910382747650146e-02,
7.392585277557373e-02,
9.064757823944092e-02,
7.813978195190430e-02,
6.213688850402832e-02,
7.546973228454590e-02,
7.619690895080566e-02,
7.885217666625977e-02,
8.107876777648926e-02,
7.710611820220947e-02,
7.003140449523926e-02,
5.077672004699707e-02,
2.737689018249512e-02,
1.351869106292725e-02,
1.388967037200928e-02,
1.392853260040283e-02,
1.828265190124512e-02,
1.260340213775635e-02,
-1.862406730651855e-03,
-1.281905174255371e-02,
-2.753460407257080e-02,
8.428812026977539e-03,
3.966534137725830e-02,
2.615451812744141e-04,
1.035881042480469e-02,
6.961643695831299e-02,
9.959375858306885e-02,
6.329607963562012e-02,
3.831183910369873e-02,
5.004739761352539e-02,
5.438804626464844e-02,
4.115772247314453e-02,
3.480362892150879e-02,
1.028370857238770e-02,
-1.825714111328125e-02,
-1.974046230316162e-02,
-1.656997203826904e-02,
-3.396153450012207e-02,
-4.748511314392090e-02,
-7.566809654235840e-03,
7.564783096313477e-03,
-1.844978332519531e-02,
-4.681026935577393e-02,
-5.388343334197998e-02,
-5.359184741973877e-02,
-4.703819751739502e-02,
-3.498196601867676e-02,
-4.247581958770752e-02,
-5.230617523193359e-02,
-3.825473785400391e-02,
-1.893854141235352e-02,
-3.446924686431885e-02,
-4.752123355865479e-02,
-5.448067188262939e-02,
-5.400943756103516e-02,
-3.554499149322510e-02,
-3.153026103973389e-02,
-5.353701114654541e-02,
-6.117200851440430e-02,
-5.666875839233398e-02,
-7.283914089202881e-02,
-8.983254432678223e-02,
-7.253956794738770e-02,
-5.325508117675781e-02,
-6.221652030944824e-02,
-5.882561206817627e-02,
-4.741334915161133e-02,
-4.641270637512207e-02,
-4.940819740295410e-02,
-4.046273231506348e-02,
-3.461444377899170e-02,
-3.574264049530029e-02,
-5.004036426544189e-02,
-6.450366973876953e-02,
-6.727659702301025e-02,
-6.844723224639893e-02,
-6.304693222045898e-02,
-5.696582794189453e-02,
-6.540787220001221e-02,
-8.048069477081299e-02,
-7.288801670074463e-02,
-6.781005859375000e-02,
-9.229803085327148e-02,
-1.102265119552612e-01,
-8.886814117431641e-02,
-6.226313114166260e-02,
-5.960023403167725e-02,
-6.651604175567627e-02,
-6.698632240295410e-02,
-3.844630718231201e-02,
-1.313447952270508e-03,
1.695084571838379e-02,
1.070654392242432e-02,
-1.171422004699707e-02,
-2.675759792327881e-02,
-9.063839912414551e-03,
7.017493247985840e-03,
3.567218780517578e-03,
-3.885746002197266e-03,
-7.615804672241211e-03,
6.287217140197754e-03,
2.375674247741699e-02,
2.609598636627197e-02,
2.357995510101318e-02,
2.219951152801514e-02,
2.005529403686523e-02,
2.644801139831543e-02,
2.211165428161621e-02,
-1.763343811035156e-03,
-6.347060203552246e-03,
2.128708362579346e-02,
1.022088527679443e-02,
-2.813839912414551e-02,
-3.157567977905273e-02,
-1.123166084289551e-02,
5.404710769653320e-03,
-3.138303756713867e-03,
5.960464477539062e-06,
2.254688739776611e-02,
2.829754352569580e-02,
1.266753673553467e-02,
-6.999969482421875e-03,
-6.956815719604492e-03,
1.413869857788086e-02,
3.942799568176270e-02,
3.902328014373779e-02,
1.271152496337891e-02,
2.573609352111816e-03,
2.974689006805420e-02,
5.825972557067871e-02,
4.152023792266846e-02,
-7.865667343139648e-03,
-2.875661849975586e-02,
-7.740855216979980e-03,
-1.253950595855713e-02,
-9.763240814208984e-04,
5.746841430664062e-03,
-1.260828971862793e-02,
-1.417446136474609e-02,
-2.850687503814697e-02,
-2.147996425628662e-02,
1.450061798095703e-03,
9.935379028320312e-03,
1.565003395080566e-02,
-3.583788871765137e-03,
-1.906669139862061e-02,
-1.436471939086914e-04,
4.725694656372070e-03,
5.975961685180664e-03,
1.347482204437256e-02,
1.782464981079102e-02,
2.321994304656982e-02,
1.978671550750732e-02,
1.562774181365967e-02,
1.181864738464355e-02,
-9.040236473083496e-03,
-1.549756526947021e-02,
4.518866539001465e-03,
-6.092190742492676e-03,
-4.430019855499268e-02,
-8.397269248962402e-02,
-5.973470211029053e-02,
-1.721024513244629e-03,
2.166652679443359e-02,
9.495496749877930e-03,
-7.220745086669922e-03,
-1.313710212707520e-02,
5.892515182495117e-03,
2.795135974884033e-02,
3.888058662414551e-02,
2.763056755065918e-02,
-3.612875938415527e-03,
-1.674032211303711e-02,
8.883118629455566e-03,
5.893540382385254e-02,
7.521498203277588e-02,
5.232501029968262e-02,
2.057099342346191e-02,
1.057243347167969e-02,
2.780437469482422e-02,
4.416918754577637e-02,
5.176460742950439e-02,
4.026627540588379e-02,
1.064503192901611e-02,
4.908680915832520e-03,
1.487517356872559e-02,
9.680509567260742e-03,
7.522106170654297e-05,
-4.830360412597656e-04,
8.033514022827148e-04,
-1.838135719299316e-02,
-3.073430061340332e-02,
-1.891207695007324e-02,
-3.924489021301270e-03,
-3.498315811157227e-03,
-1.155197620391846e-02,
-1.925528049468994e-02,
-6.966948509216309e-03,
1.548910140991211e-02,
1.736736297607422e-02,
2.035260200500488e-03,
-8.094668388366699e-03,
-2.877354621887207e-03,
4.649996757507324e-03,
-1.651287078857422e-03,
-1.518607139587402e-02,
-1.338112354278564e-02,
-4.768848419189453e-03,
-7.210373878479004e-03,
-2.242934703826904e-02,
-2.789759635925293e-02,
-2.250742912292480e-02,
-2.160489559173584e-02,
-4.396939277648926e-02,
-7.102704048156738e-02,
-6.871592998504639e-02,
-3.350901603698730e-02,
-9.314537048339844e-03,
-2.158713340759277e-02,
-4.306674003601074e-02,
-3.989958763122559e-02,
-2.303838729858398e-02,
-8.735299110412598e-03,
-1.178669929504395e-02,
-1.941251754760742e-02,
-2.143263816833496e-02,
-1.281130313873291e-02,
-2.186655998229980e-03,
-5.851149559020996e-03,
-1.186323165893555e-02,
-2.200293540954590e-02,
-1.581192016601562e-02,
-7.279276847839355e-03,
-1.989018917083740e-02,
-4.240095615386963e-02,
-4.382348060607910e-02,
-2.434968948364258e-02,
-1.029765605926514e-02,
-1.740491390228271e-02,
-3.055799007415771e-02,
-2.924644947052002e-02,
-2.627766132354736e-02,
-1.706457138061523e-02,
-1.636624336242676e-03,
1.209354400634766e-02,
1.126873493194580e-02,
1.286840438842773e-02,
1.021611690521240e-02,
-1.191699504852295e-02,
-2.447938919067383e-02,
-1.308107376098633e-02,
2.275228500366211e-03,
-5.137801170349121e-03,
-2.151763439178467e-02,
-2.068984508514404e-02,
-1.463115215301514e-02,
-1.236271858215332e-02,
-1.037168502807617e-02,
-1.306533813476562e-02,
-1.605749130249023e-02,
-2.085292339324951e-02,
-2.662539482116699e-02,
-3.531622886657715e-02,
-2.589952945709229e-02,
-1.678824424743652e-03,
-1.689577102661133e-02,
-3.141415119171143e-02,
-1.358556747436523e-02,
8.597254753112793e-03,
2.195847034454346e-02,
2.031803131103516e-02,
-1.312255859375000e-03,
-1.457428932189941e-02,
-7.713675498962402e-03,
6.259322166442871e-03,
9.516000747680664e-03,
-6.206274032592773e-03,
-5.291581153869629e-03,
9.541153907775879e-03,
2.450609207153320e-02,
1.895129680633545e-02,
1.145100593566895e-02,
1.541292667388916e-02,
1.766753196716309e-02,
1.698446273803711e-02,
1.614451408386230e-02,
5.934596061706543e-03,
1.658320426940918e-03,
8.041858673095703e-03,
-1.063013076782227e-02,
-3.064835071563721e-02,
-4.054963588714600e-02,
-3.380668163299561e-02,
-5.848169326782227e-03,
2.074670791625977e-02,
2.953338623046875e-02,
2.641975879669189e-02,
1.443588733673096e-02,
1.306545734405518e-02,
2.686285972595215e-02,
3.450107574462891e-02,
1.542687416076660e-02,
-7.027864456176758e-03,
-2.090334892272949e-03,
1.414859294891357e-02,
1.231086254119873e-02,
-2.671122550964355e-03,
-1.050257682800293e-02,
-2.298235893249512e-03,
1.156663894653320e-02,
7.742881774902344e-03,
-1.900959014892578e-02,
-2.119588851928711e-02,
-1.371264457702637e-03,
3.067493438720703e-03,
-7.866263389587402e-03,
-2.029883861541748e-02,
-1.821243762969971e-02,
-1.009035110473633e-02,
-3.800272941589355e-03,
8.134841918945312e-04,
-1.319921016693115e-02,
-1.035046577453613e-02,
1.566815376281738e-02,
2.298188209533691e-02,
1.845550537109375e-02,
2.169585227966309e-02,
3.672182559967041e-02,
4.498279094696045e-02,
3.437316417694092e-02,
2.374589443206787e-02,
2.674174308776855e-02,
2.643561363220215e-02,
5.613803863525391e-03,
-1.299571990966797e-02,
-1.399731636047363e-02,
-1.053774356842041e-02,
-1.925468444824219e-03,
3.890872001647949e-03,
1.220464706420898e-03,
1.167404651641846e-02,
2.041184902191162e-02,
2.597784996032715e-02,
2.466905117034912e-02,
1.847648620605469e-02,
1.294958591461182e-02,
8.187294006347656e-03,
5.975604057312012e-03,
-4.456400871276855e-03,
-7.551193237304688e-03,
6.878852844238281e-03,
2.168345451354980e-02,
2.390038967132568e-02,
2.949619293212891e-02,
2.606976032257080e-02,
1.490962505340576e-02,
1.242005825042725e-02,
1.115071773529053e-02,
5.573272705078125e-03,
-4.608392715454102e-03,
-1.187443733215332e-02,
-1.357817649841309e-02,
-2.136659622192383e-02,
-3.281879425048828e-02,
-2.811098098754883e-02,
-5.083203315734863e-03,
7.967829704284668e-03,
9.992241859436035e-03,
9.083867073059082e-03,
1.330614089965820e-02,
1.144027709960938e-02,
1.030969619750977e-02,
2.288579940795898e-03,
-1.722776889801025e-02,
-2.877581119537354e-02,
-1.552212238311768e-02,
4.662275314331055e-03,
-3.569245338439941e-03,
-3.061521053314209e-02,
-4.907262325286865e-02,
-3.612685203552246e-02,
-9.698867797851562e-03,
1.428842544555664e-03,
-5.987882614135742e-03,
-1.520562171936035e-02,
-1.278471946716309e-02,
-1.406049728393555e-02,
-3.194451332092285e-02,
-4.919016361236572e-02,
-4.202985763549805e-02,
-1.891529560089111e-02,
2.592802047729492e-04,
2.747654914855957e-03,
-8.995890617370605e-03,
-1.499378681182861e-02,
-2.555131912231445e-03,
1.007080078125000e-03,
-8.972644805908203e-03,
-1.035833358764648e-02,
-4.166960716247559e-03,
2.220392227172852e-03,
-5.856275558471680e-03,
-2.666819095611572e-02,
-3.462505340576172e-02,
-2.889752388000488e-02,
-2.629745006561279e-02,
-3.335356712341309e-02,
-3.857684135437012e-02,
-2.962613105773926e-02,
-1.561939716339111e-02,
-1.234281063079834e-02,
-1.489841938018799e-02,
-2.071082592010498e-02,
-2.537071704864502e-02,
-2.271974086761475e-02,
-1.225304603576660e-02,
-7.003188133239746e-03,
-8.289813995361328e-03,
-1.103746891021729e-02,
-8.499145507812500e-03,
-3.259778022766113e-03,
-1.012790203094482e-02,
-1.865649223327637e-02,
-5.171060562133789e-03,
5.697965621948242e-03,
8.987188339233398e-04,
5.803108215332031e-03,
9.943842887878418e-03,
1.067316532135010e-02,
1.689982414245605e-02,
2.177023887634277e-02,
1.964974403381348e-02,
7.713794708251953e-03,
1.413464546203613e-03,
1.259148120880127e-02,
2.982306480407715e-02,
3.761887550354004e-02,
3.192949295043945e-02,
1.975393295288086e-02,
1.069951057434082e-02,
1.611971855163574e-02,
3.072893619537354e-02,
3.807532787322998e-02,
2.645814418792725e-02,
1.247107982635498e-02,
1.497960090637207e-02,
2.338552474975586e-02,
2.422773838043213e-02,
2.012050151824951e-02,
7.266283035278320e-03,
2.784967422485352e-03,
4.936933517456055e-03,
2.692222595214844e-03,
3.550887107849121e-03,
5.202054977416992e-03,
2.925634384155273e-03,
5.690455436706543e-03,
9.898781776428223e-03,
1.321578025817871e-02,
1.323187351226807e-02,
8.024692535400391e-03,
4.610538482666016e-03,
-1.568078994750977e-03,
-8.021116256713867e-03,
-7.052183151245117e-03,
4.863500595092773e-03,
8.134484291076660e-03,
2.278089523315430e-03,
-6.555318832397461e-04,
-5.369067192077637e-03,
-1.409649848937988e-02,
-1.460003852844238e-02,
3.871917724609375e-03,
7.925629615783691e-03,
-4.758238792419434e-03,
-5.967020988464355e-03,
1.244783401489258e-03,
2.953290939331055e-03,
2.757549285888672e-03,
1.246464252471924e-02,
1.750028133392334e-02,
1.176238059997559e-02,
1.574182510375977e-02,
3.093469142913818e-02,
3.679049015045166e-02,
3.308796882629395e-02,
3.393685817718506e-02,
3.125953674316406e-02,
2.255809307098389e-02,
2.392625808715820e-02,
2.049827575683594e-02,
1.037466526031494e-02,
2.751588821411133e-03,
3.370165824890137e-03,
7.005453109741211e-03,
4.104375839233398e-04,
1.338243484497070e-03,
1.279580593109131e-02,
2.709913253784180e-02,
3.382706642150879e-02,
3.561031818389893e-02,
3.868341445922852e-02,
4.358386993408203e-02,
4.669308662414551e-02,
4.338395595550537e-02,
3.063821792602539e-02,
2.032411098480225e-02,
2.307486534118652e-02,
3.172302246093750e-02,
3.044891357421875e-02,
2.586793899536133e-02,
2.339720726013184e-02,
1.300346851348877e-02,
1.332640647888184e-03,
-2.410411834716797e-04,
4.106402397155762e-03,
4.179000854492188e-03,
-4.150986671447754e-03,
-7.019042968750000e-03,
-3.261804580688477e-03,
9.747743606567383e-03,
2.095127105712891e-02,
2.214348316192627e-02,
1.796460151672363e-02,
1.374697685241699e-02,
1.415753364562988e-02,
1.790368556976318e-02,
1.503634452819824e-02,
9.703159332275391e-03,
1.728165149688721e-02,
2.986884117126465e-02,
3.724586963653564e-02,
3.484380245208740e-02,
2.310037612915039e-02,
2.401709556579590e-03,
-6.646633148193359e-03,
-8.190035820007324e-03,
-8.096814155578613e-03,
-1.906728744506836e-02,
-3.826022148132324e-02,
-4.898846149444580e-02,
-4.064178466796875e-02,
-2.752482891082764e-02,
-2.672231197357178e-02,
-3.104352951049805e-02,
-2.988302707672119e-02,
-9.568214416503906e-03,
8.698463439941406e-03,
2.294659614562988e-03,
-2.572059631347656e-03,
9.411573410034180e-03,
2.102398872375488e-02,
1.831173896789551e-02,
4.255414009094238e-03,
-9.202361106872559e-03,
-1.060199737548828e-02,
-1.048278808593750e-02,
-1.898193359375000e-02,
-3.299856185913086e-02,
-4.220855236053467e-02,
-4.331302642822266e-02,
-4.088056087493896e-02,
-3.905749320983887e-02,
-4.199290275573730e-02,
-3.601670265197754e-02,
-2.010095119476318e-02,
-2.030587196350098e-02,
-3.184580802917480e-02,
-2.993369102478027e-02,
-2.230167388916016e-02,
-2.296304702758789e-02,
-2.635896205902100e-02,
-2.292072772979736e-02,
-1.496016979217529e-02,
-1.397585868835449e-02,
-2.162170410156250e-02,
-2.317595481872559e-02,
-1.455295085906982e-02,
-9.038686752319336e-03,
-1.211285591125488e-02,
-2.723395824432373e-02,
-3.866159915924072e-02,
-2.932059764862061e-02,
-1.432561874389648e-02,
-5.021929740905762e-03,
4.032492637634277e-03,
7.182955741882324e-03,
-5.243897438049316e-03,
-1.520884037017822e-02,
-8.504867553710938e-03,
4.966139793395996e-03,
1.711630821228027e-02,
1.880693435668945e-02,
1.300311088562012e-02,
4.417777061462402e-03,
1.749753952026367e-03,
5.226612091064453e-03,
2.374291419982910e-03,
-7.220149040222168e-03,
-1.296722888946533e-02,
-1.053786277770996e-02,
-4.654169082641602e-03,
4.931926727294922e-03,
1.205706596374512e-02,
1.405799388885498e-02,
1.095092296600342e-02,
1.298999786376953e-02,
1.805984973907471e-02,
1.496636867523193e-02,
1.495242118835449e-02,
2.617895603179932e-02,
3.911685943603516e-02,
3.863489627838135e-02,
2.759540081024170e-02,
2.080881595611572e-02,
2.261126041412354e-02,
2.423608303070068e-02,
1.506209373474121e-02,
1.763105392456055e-04,
-1.267099380493164e-02,
-1.245427131652832e-02,
-2.331137657165527e-03,
-5.519866943359375e-03,
-2.006065845489502e-02,
-2.986001968383789e-02,
-2.526080608367920e-02,
-1.463270187377930e-02,
-1.178872585296631e-02,
-8.902549743652344e-03,
-2.937197685241699e-03,
5.065083503723145e-03,
1.531064510345459e-02,
1.314938068389893e-02,
7.576823234558105e-03,
9.135246276855469e-03,
1.286900043487549e-02,
9.787201881408691e-03,
-3.756284713745117e-04,
-1.215171813964844e-02,
-1.735436916351318e-02,
-1.780736446380615e-02,
-2.079117298126221e-02,
-2.223384380340576e-02,
-2.081382274627686e-02,
-2.487277984619141e-02,
-3.158795833587646e-02,
-2.883803844451904e-02,
-1.973819732666016e-02,
-1.950883865356445e-02,
-2.470850944519043e-02,
-2.709901332855225e-02,
-3.482031822204590e-02,
-5.255055427551270e-02,
-6.992614269256592e-02,
-6.055068969726562e-02,
-3.949069976806641e-02,
-2.981007099151611e-02,
-3.257608413696289e-02,
-3.773319721221924e-02,
-3.022241592407227e-02,
-1.473629474639893e-02,
-4.364252090454102e-03,
-5.210995674133301e-03,
-1.017928123474121e-02,
-4.892587661743164e-03,
1.010441780090332e-02,
9.529352188110352e-03,
-4.632472991943359e-04,
-7.112860679626465e-03,
-3.254532814025879e-03,
1.671314239501953e-04,
1.741051673889160e-03,
1.333069801330566e-02,
2.738320827484131e-02,
3.467047214508057e-02,
3.430724143981934e-02,
3.501868247985840e-02,
3.440475463867188e-02,
3.485810756683350e-02,
3.708589076995850e-02,
3.471517562866211e-02,
2.641034126281738e-02,
2.518510818481445e-02,
2.935814857482910e-02,
2.968609333038330e-02,
3.529822826385498e-02,
4.026973247528076e-02,
4.796802997589111e-02,
4.939496517181396e-02,
3.899061679840088e-02,
3.082513809204102e-02,
3.234887123107910e-02,
3.236532211303711e-02,
2.697598934173584e-02,
2.218914031982422e-02,
2.175581455230713e-02,
3.452432155609131e-02,
4.385411739349365e-02,
3.607618808746338e-02,
3.439211845397949e-02,
4.016041755676270e-02,
4.098784923553467e-02,
2.923047542572021e-02,
1.498639583587646e-02,
1.583862304687500e-02,
2.402532100677490e-02,
3.073644638061523e-02,
2.202212810516357e-02,
4.159927368164062e-03,
5.959272384643555e-03,
2.826941013336182e-02,
3.954315185546875e-02,
2.852284908294678e-02,
9.017825126647949e-03,
1.446962356567383e-03,
4.853487014770508e-03,
7.262587547302246e-03,
5.150318145751953e-03,
-1.649737358093262e-03,
-1.342177391052246e-03,
6.498694419860840e-03,
2.002847194671631e-02,
2.501916885375977e-02,
2.070617675781250e-02,
2.045512199401855e-02,
1.799440383911133e-02,
8.466601371765137e-03,
8.689284324645996e-03,
1.046407222747803e-02,
2.009868621826172e-04,
-6.382942199707031e-03,
-5.806088447570801e-03,
-3.037691116333008e-03,
-2.623200416564941e-03,
1.471877098083496e-03,
7.733106613159180e-04,
-9.983301162719727e-03,
-1.242864131927490e-02,
-3.361701965332031e-03,
-2.954840660095215e-03,
-7.535099983215332e-03,
-5.148649215698242e-03,
-2.350807189941406e-04,
-7.311463356018066e-03,
-2.422177791595459e-02,
-3.202867507934570e-02,
-2.657270431518555e-02,
-2.077829837799072e-02,
-2.407550811767578e-02,
-3.424882888793945e-02,
-3.809857368469238e-02,
-2.734863758087158e-02,
-8.522748947143555e-03,
-1.804709434509277e-03,
-8.231878280639648e-03,
-1.174509525299072e-02,
-2.706885337829590e-03,
1.259553432464600e-02,
1.038730144500732e-02,
-9.080648422241211e-03,
-2.138853073120117e-02,
-1.645696163177490e-02,
1.537442207336426e-03,
9.954929351806641e-03,
2.079129219055176e-03,
-2.119064331054688e-03,
-1.435875892639160e-03,
-1.378417015075684e-03,
-2.411842346191406e-03,
-8.628487586975098e-03,
-1.266944408416748e-02,
-1.292335987091064e-02,
-1.278400421142578e-02,
-6.896376609802246e-03,
-5.089044570922852e-04,
-3.536701202392578e-03,
-5.183219909667969e-03,
3.232479095458984e-03,
7.004261016845703e-03,
6.338000297546387e-03,
7.960438728332520e-03,
8.716225624084473e-03,
5.500793457031250e-03,
1.267790794372559e-03,
5.040168762207031e-04,
-4.088401794433594e-03,
-1.102304458618164e-02,
-1.240158081054688e-02,
-9.763956069946289e-03,
-6.460189819335938e-03,
-8.921623229980469e-03,
-1.511836051940918e-02,
-1.496601104736328e-02,
-1.105678081512451e-02,
-9.454250335693359e-03,
-1.319396495819092e-02,
-2.541959285736084e-02,
-3.471112251281738e-02,
-3.069019317626953e-02,
-2.220988273620605e-02,
-2.254176139831543e-02,
-2.905964851379395e-02,
-2.959012985229492e-02,
-1.639854907989502e-02,
-1.403331756591797e-03,
3.899812698364258e-03,
1.560688018798828e-03,
-5.151271820068359e-03,
-8.532524108886719e-03,
-1.001191139221191e-02,
-1.077711582183838e-02,
-1.098895072937012e-02,
-8.899331092834473e-03,
-1.347064971923828e-03,
-6.409049034118652e-03,
-2.268624305725098e-02,
-2.348029613494873e-02,
-8.453726768493652e-03,
-3.633856773376465e-03,
-6.043791770935059e-03,
-8.942127227783203e-03,
-1.384663581848145e-02,
-1.000225543975830e-02,
3.099441528320312e-05,
6.654024124145508e-03,
1.491546630859375e-03,
-6.946325302124023e-04,
8.716225624084473e-03,
1.322627067565918e-02,
9.342670440673828e-03,
6.081461906433105e-03,
2.501130104064941e-03,
-4.505991935729980e-03,
-1.012277603149414e-02,
-3.244876861572266e-03,
8.764982223510742e-03,
1.088297367095947e-02,
6.918668746948242e-03,
8.782386779785156e-03,
1.992619037628174e-02,
2.420747280120850e-02,
2.570128440856934e-02,
3.100514411926270e-02,
3.367316722869873e-02,
2.825248241424561e-02,
1.734912395477295e-02,
1.124703884124756e-02,
7.748961448669434e-03,
4.405498504638672e-03,
-4.507303237915039e-03,
-1.247608661651611e-02,
-1.051759719848633e-02,
-3.244996070861816e-03,
1.710414886474609e-03,
5.320191383361816e-03,
5.837678909301758e-03,
7.318735122680664e-03,
9.054541587829590e-03,
9.412288665771484e-03,
1.328778266906738e-02,
1.091837882995605e-02,
2.310752868652344e-03,
-1.375079154968262e-03,
-4.572868347167969e-03,
-1.041555404663086e-02,
-1.192104816436768e-02,
-1.226842403411865e-02,
-8.038878440856934e-03,
5.440711975097656e-04,
1.740455627441406e-05,
-5.438089370727539e-03,
-5.895972251892090e-03,
-4.526853561401367e-03,
-6.907939910888672e-03,
-1.145923137664795e-02,
-1.344060897827148e-02,
-1.658761501312256e-02,
-2.209138870239258e-02,
-1.704180240631104e-02,
-8.967876434326172e-03,
-1.048934459686279e-02,
-1.405465602874756e-02,
-1.297020912170410e-02,
-1.048982143402100e-02,
-6.251096725463867e-03,
-2.339482307434082e-03,
4.460811614990234e-04,
4.394769668579102e-03,
5.920171737670898e-03,
3.120779991149902e-03,
-1.324892044067383e-03,
9.701251983642578e-04,
1.169109344482422e-02,
1.462864875793457e-02,
2.027511596679688e-03,
-1.195228099822998e-02,
-1.027262210845947e-02,
1.286268234252930e-03,
7.237315177917480e-03,
2.100586891174316e-03,
-4.851222038269043e-03,
-4.063963890075684e-03,
2.852916717529297e-03,
6.701946258544922e-03,
6.807923316955566e-03,
7.081389427185059e-03,
1.934409141540527e-03,
-3.753542900085449e-03,
-6.509184837341309e-03,
-7.293343544006348e-03,
-6.758928298950195e-03,
-7.048249244689941e-03,
-1.084887981414795e-02,
-1.598727703094482e-02,
-1.495611667633057e-02,
-7.038950920104980e-03,
3.981590270996094e-03,
1.093745231628418e-02,
7.673144340515137e-03,
-2.217292785644531e-04,
-2.807736396789551e-03,
-5.463719367980957e-03,
-9.691357612609863e-03,
-7.835268974304199e-03,
-3.416776657104492e-03,
-3.793835639953613e-03,
-5.163788795471191e-03,
6.829500198364258e-04,
8.510708808898926e-03,
1.698386669158936e-02,
2.697110176086426e-02,
3.236722946166992e-02,
3.226482868194580e-02,
2.546823024749756e-02,
1.628875732421875e-02,
1.334345340728760e-02,
1.374661922454834e-02,
7.826209068298340e-03,
-2.023935317993164e-03,
-7.197380065917969e-03,
-8.316874504089355e-03,
-1.208734512329102e-02,
-2.185189723968506e-02,
-2.829360961914062e-02,
-2.902328968048096e-02,
-2.431118488311768e-02,
-1.458489894866943e-02,
-1.121854782104492e-02,
-1.121807098388672e-02,
-2.698898315429688e-03,
7.054209709167480e-03,
8.300542831420898e-03,
5.058646202087402e-03,
1.029169559478760e-02,
1.775264739990234e-02,
1.423811912536621e-02,
3.270864486694336e-03,
-5.556821823120117e-03,
-4.770755767822266e-03,
1.583576202392578e-03,
5.668640136718750e-03,
3.983736038208008e-03,
-3.234386444091797e-03,
-7.479667663574219e-03,
-3.165721893310547e-03,
5.180835723876953e-04,
-8.768677711486816e-03,
-1.889550685882568e-02,
-1.907837390899658e-02,
-1.867592334747314e-02,
-1.794576644897461e-02,
-1.269161701202393e-02,
-2.384185791015625e-03,
4.204988479614258e-03,
1.035821437835693e-02,
2.072381973266602e-02,
2.790033817291260e-02,
2.562785148620605e-02,
2.157139778137207e-02,
2.524042129516602e-02,
2.739346027374268e-02,
1.966869831085205e-02,
7.018327713012695e-03,
-9.649991989135742e-04,
-3.435015678405762e-03,
-3.244757652282715e-03,
-3.948211669921875e-03,
-7.121086120605469e-03,
-7.697463035583496e-03,
-1.217722892761230e-03,
4.713416099548340e-03,
2.580285072326660e-03,
-2.676129341125488e-03,
-4.557490348815918e-03,
-1.077413558959961e-03,
4.415035247802734e-03,
3.061532974243164e-03,
3.629922866821289e-04,
5.418062210083008e-04,
-5.101203918457031e-03,
-1.111793518066406e-02,
-9.557127952575684e-03,
-2.729773521423340e-03,
2.968072891235352e-03,
7.296919822692871e-03,
9.844064712524414e-03,
1.087832450866699e-02,
9.525179862976074e-03,
9.393215179443359e-03,
1.120233535766602e-02,
8.905887603759766e-03,
3.674387931823730e-03,
8.724927902221680e-04,
1.364588737487793e-03,
2.542138099670410e-03,
2.277731895446777e-03,
-4.479169845581055e-03,
-1.162576675415039e-02,
-1.349842548370361e-02,
-9.850621223449707e-03,
-6.064057350158691e-03,
-9.044051170349121e-03,
-1.518988609313965e-02,
-1.410210132598877e-02,
-1.012682914733887e-02,
-7.826209068298340e-03,
-7.054924964904785e-03,
-8.989691734313965e-03,
-1.258420944213867e-02,
-1.329278945922852e-02,
-1.008999347686768e-02,
-6.150841712951660e-03,
-5.555629730224609e-03,
-9.286284446716309e-03,
-7.799148559570312e-03,
-2.860426902770996e-03,
3.973722457885742e-03,
8.062243461608887e-03,
8.532285690307617e-03,
7.359504699707031e-03,
8.577585220336914e-03,
1.326727867126465e-02,
9.750008583068848e-03,
8.975267410278320e-04,
-5.828738212585449e-03,
-1.272284984588623e-02,
-1.505696773529053e-02,
-1.205253601074219e-02,
-9.830832481384277e-03,
-9.151697158813477e-03,
-5.499482154846191e-03,
2.072215080261230e-03,
7.211089134216309e-03,
6.786108016967773e-03,
4.819154739379883e-03,
4.982709884643555e-03,
4.510283470153809e-03,
5.858778953552246e-03,
1.153755187988281e-02,
1.781618595123291e-02,
2.174139022827148e-02,
2.079522609710693e-02,
1.596212387084961e-02,
1.043188571929932e-02,
8.083343505859375e-03,
8.649230003356934e-03,
8.667111396789551e-03,
5.231857299804688e-03,
1.966953277587891e-05,
-2.894163131713867e-03,
-2.438902854919434e-03,
-2.263784408569336e-03,
-5.469202995300293e-03,
-7.346391677856445e-03,
-7.598400115966797e-03,
-3.875255584716797e-03,
5.259275436401367e-03,
1.412022113800049e-02,
1.389718055725098e-02,
1.093494892120361e-02,
1.201784610748291e-02,
1.234090328216553e-02,
1.319420337677002e-02,
1.188385486602783e-02,
1.083481311798096e-02,
9.281992912292480e-03,
4.065275192260742e-03,
-3.021717071533203e-03,
-7.464170455932617e-03,
-8.735656738281250e-03,
-8.645176887512207e-03,
-7.127881050109863e-03,
-6.472229957580566e-03,
-6.531357765197754e-03,
-6.738424301147461e-03,
-8.109092712402344e-03,
-1.159262657165527e-02,
-1.499605178833008e-02,
-1.469850540161133e-02,
-1.152551174163818e-02,
-9.363174438476562e-03,
-7.833957672119141e-03,
-7.111430168151855e-03,
-3.857135772705078e-03,
-4.695892333984375e-03,
-5.352735519409180e-03,
-4.018545150756836e-03,
-5.416870117187500e-03,
-8.266687393188477e-03,
-9.894251823425293e-03,
-9.445786476135254e-03,
-7.411718368530273e-03,
-8.111953735351562e-03,
-1.203811168670654e-02,
-1.211071014404297e-02,
-8.524775505065918e-03,
-5.364418029785156e-03,
-4.845857620239258e-03,
-5.949616432189941e-03,
-7.291913032531738e-03,
-7.013082504272461e-03,
-7.585644721984863e-03,
-9.511828422546387e-03,
-9.842991828918457e-03,
-6.667375564575195e-03,
-5.620718002319336e-04,
1.946687698364258e-04,
-6.858110427856445e-03,
-8.634448051452637e-03,
-2.267360687255859e-03,
4.425764083862305e-03,
6.279230117797852e-03,
5.563020706176758e-03,
6.467938423156738e-03,
1.111280918121338e-02,
1.777017116546631e-02,
1.986670494079590e-02,
1.530432701110840e-02,
1.010012626647949e-02,
9.919881820678711e-03,
8.881568908691406e-03,
3.662824630737305e-03,
-2.628564834594727e-03,
-2.550601959228516e-03,
7.774829864501953e-04,
-1.777410507202148e-03,
-9.270191192626953e-03,
-1.072382926940918e-02,
-3.418803215026855e-03,
3.054261207580566e-03,
5.352020263671875e-03,
2.259373664855957e-03,
-1.091122627258301e-03,
-4.353523254394531e-04,
4.980325698852539e-03,
1.016044616699219e-02,
1.094055175781250e-02,
6.733179092407227e-03,
-1.122355461120605e-03,
-6.086111068725586e-03,
-4.858970642089844e-04,
7.001876831054688e-03,
4.797577857971191e-03,
-4.319190979003906e-03,
-1.019477844238281e-02,
-5.918502807617188e-03,
-1.362681388854980e-03,
-2.815842628479004e-03,
-6.663084030151367e-03,
-6.865262985229492e-03,
-3.603577613830566e-03,
8.106231689453125e-06,
1.366734504699707e-03,
-2.456188201904297e-03,
-4.279971122741699e-03,
6.226301193237305e-04,
5.472183227539062e-03,
3.568410873413086e-03,
-1.473069190979004e-03,
-1.697063446044922e-03,
2.303361892700195e-03,
5.079269409179688e-03,
4.049539566040039e-03,
1.519918441772461e-04,
6.531476974487305e-04,
4.534721374511719e-03,
9.927511215209961e-03,
1.269149780273438e-02,
7.991552352905273e-03,
4.173994064331055e-03,
5.474686622619629e-03,
1.008927822113037e-02,
1.170599460601807e-02,
7.795572280883789e-03,
7.020235061645508e-04,
-3.803730010986328e-03,
-8.159875869750977e-04,
3.063797950744629e-03,
2.154469490051270e-03,
1.206398010253906e-04,
2.195954322814941e-03,
1.772522926330566e-03,
-2.283096313476562e-03,
-1.081824302673340e-03,
3.966450691223145e-03,
8.092164993286133e-03,
1.023328304290771e-02,
1.011633872985840e-02,
1.134443283081055e-02,
1.560842990875244e-02,
1.894021034240723e-02,
1.786482334136963e-02,
1.504504680633545e-02,
1.609611511230469e-02,
1.876652240753174e-02,
1.855647563934326e-02,
1.244938373565674e-02,
7.936835289001465e-03,
1.338541507720947e-02,
1.708710193634033e-02,
9.329795837402344e-03,
1.008391380310059e-03,
3.777384757995605e-03,
1.264238357543945e-02,
1.579391956329346e-02,
1.123070716857910e-02,
5.796551704406738e-03,
5.041122436523438e-03,
6.413102149963379e-03,
5.085468292236328e-03,
-3.100633621215820e-04,
-4.072070121765137e-03,
-3.919601440429688e-04,
5.053281784057617e-03,
-2.729892730712891e-05,
-8.672475814819336e-03,
-8.557558059692383e-03,
-1.225471496582031e-04,
3.348946571350098e-03,
-3.653883934020996e-03,
-9.659051895141602e-03,
-1.036071777343750e-02,
-7.421612739562988e-03,
-6.589889526367188e-03,
-9.283542633056641e-03,
-1.251232624053955e-02,
-1.545822620391846e-02,
-1.685297489166260e-02,
-1.456165313720703e-02,
-1.077604293823242e-02,
-7.862210273742676e-03,
-8.843541145324707e-03,
-1.013648509979248e-02,
-1.013839244842529e-02,
-9.074091911315918e-03,
-5.890130996704102e-03,
-3.896474838256836e-03,
-5.473256111145020e-03,
-9.047508239746094e-03,
-1.067280769348145e-02,
-9.959101676940918e-03,
-9.220719337463379e-03,
-4.687309265136719e-03,
1.407384872436523e-03,
3.253221511840820e-03,
-7.685422897338867e-04,
-3.103733062744141e-03,
1.173734664916992e-03,
5.962371826171875e-03,
7.929921150207520e-03,
6.728410720825195e-03,
2.728581428527832e-03,
-1.911520957946777e-03,
-1.503944396972656e-03,
2.353310585021973e-03,
3.617525100708008e-03,
1.690268516540527e-03,
8.739233016967773e-04,
8.130073547363281e-04,
-1.380443572998047e-04,
1.922845840454102e-04,
1.805067062377930e-03,
1.756668090820312e-03,
1.168251037597656e-05,
1.186132431030273e-03,
2.858042716979980e-03,
2.445340156555176e-03,
1.295447349548340e-03,
-7.027387619018555e-04,
-3.306865692138672e-03,
-2.088427543640137e-03,
3.200292587280273e-03,
5.128622055053711e-03,
3.610134124755859e-03,
3.251075744628906e-03,
6.020426750183105e-03,
9.482741355895996e-03,
1.044547557830811e-02,
8.915185928344727e-03,
6.010532379150391e-03,
4.068851470947266e-03,
4.667758941650391e-03,
5.916237831115723e-03,
6.026387214660645e-03,
3.660559654235840e-03,
4.853010177612305e-04,
-3.720283508300781e-03,
-7.048606872558594e-03,
-6.017327308654785e-03,
-3.186941146850586e-03,
-1.777291297912598e-03,
-1.737833023071289e-03,
-2.056360244750977e-03,
-1.615524291992188e-03,
-7.748603820800781e-04,
-1.198172569274902e-03,
-2.842545509338379e-03,
-3.151774406433105e-03,
-1.989006996154785e-03,
-7.162094116210938e-04,
-5.898475646972656e-04,
-1.600265502929688e-03,
-1.518487930297852e-03,
-1.367092132568359e-03,
-2.934336662292480e-03,
-2.706050872802734e-03,
4.671812057495117e-04,
2.451181411743164e-03,
9.417533874511719e-06,
-4.024386405944824e-03,
-5.180954933166504e-03,
-4.099726676940918e-03,
-3.147244453430176e-03,
-3.742456436157227e-03,
-4.945397377014160e-03,
-4.505634307861328e-03,
-1.124501228332520e-03,
2.030849456787109e-03,
4.764795303344727e-04,
-4.489064216613770e-03,
-7.759451866149902e-03,
-6.449460983276367e-03,
-1.875996589660645e-03,
3.008842468261719e-04,
-2.245783805847168e-03,
-4.784703254699707e-03,
-3.638505935668945e-03,
-9.821653366088867e-04,
6.071329116821289e-04,
-1.946687698364258e-04,
-2.727746963500977e-03,
-3.190398216247559e-03,
-1.831769943237305e-03,
-1.029253005981445e-03,
-2.472639083862305e-03,
-5.356192588806152e-03,
-6.260156631469727e-03,
-5.943059921264648e-03,
-6.075620651245117e-03,
-5.822300910949707e-03,
-4.737138748168945e-03,
-4.248619079589844e-03,
-4.656076431274414e-03,
-4.453420639038086e-03,
-3.424525260925293e-03,
-3.177762031555176e-03,
-2.483010292053223e-03,
-8.668899536132812e-04,
-1.120567321777344e-04,
-3.421306610107422e-05,
1.272320747375488e-03,
2.922296524047852e-03,
3.691315650939941e-03,
4.741907119750977e-03,
5.427002906799316e-03,
5.107045173645020e-03,
3.765583038330078e-03,
2.761602401733398e-03,
2.826213836669922e-03,
2.387046813964844e-03,
1.901388168334961e-04,
-2.209186553955078e-03,
-3.258824348449707e-03,
-2.953648567199707e-03,
-1.005172729492188e-03,
7.510185241699219e-04,
-3.535747528076172e-04,
-2.333879470825195e-03,
-2.650737762451172e-03,
-2.385377883911133e-03,
-1.396059989929199e-03,
1.130104064941406e-04,
3.625154495239258e-04,
-2.503395080566406e-05,
2.479553222656250e-05,
-5.757808685302734e-05,
-7.069110870361328e-05,
2.807378768920898e-04,
1.389622688293457e-03,
2.159476280212402e-03,
1.663208007812500e-03,
-9.860992431640625e-04,
-2.994537353515625e-03,
-2.014756202697754e-03,
-4.130601882934570e-04,
1.109957695007324e-03,
1.514792442321777e-03,
1.162290573120117e-03,
2.570152282714844e-04,
-3.855228424072266e-04,
8.209943771362305e-04,
2.729773521423340e-03,
3.637433052062988e-03,
2.529263496398926e-03,
2.522468566894531e-04,
-1.840591430664062e-04,
4.272460937500000e-04,
-8.958578109741211e-04,
-2.354145050048828e-03,
-1.101374626159668e-03,
9.022951126098633e-04,
1.700282096862793e-03,
1.944303512573242e-03,
1.585125923156738e-03,
1.946687698364258e-03,
2.331852912902832e-03,
1.271247863769531e-03,
-5.358457565307617e-04,
-5.512237548828125e-04,
4.526376724243164e-04,
1.955032348632812e-05,
-1.959800720214844e-03,
-4.609346389770508e-03,
-5.888223648071289e-03,
-5.280613899230957e-03,
-4.638552665710449e-03,
-4.914164543151855e-03,
-5.069375038146973e-03,
-3.102421760559082e-03,
-6.312131881713867e-04,
5.218982696533203e-04,
1.277923583984375e-04,
-1.219034194946289e-03,
-1.664161682128906e-03,
-9.664297103881836e-04,
-4.291534423828125e-06,
2.062320709228516e-05,
-9.979009628295898e-04,
-1.348257064819336e-03,
-2.055168151855469e-04,
9.000301361083984e-04,
1.597285270690918e-03,
1.027941703796387e-03,
-1.561641693115234e-04,
-6.481409072875977e-04,
-5.319118499755859e-04,
-5.725622177124023e-04,
-1.338720321655273e-03,
-1.768708229064941e-03,
-1.512050628662109e-03,
-1.002073287963867e-03,
-6.902217864990234e-04,
1.795291900634766e-04,
1.025795936584473e-03,
4.489421844482422e-04,
-2.791881561279297e-04,
-5.972385406494141e-05,
1.409530639648438e-03,
3.581762313842773e-03,
4.398941993713379e-03,
3.466129302978516e-03,
2.645134925842285e-03,
3.563165664672852e-03,
5.083441734313965e-03,
4.875540733337402e-03,
2.929329872131348e-03,
1.302719116210938e-03,
1.162648200988770e-03,
1.548647880554199e-03,
1.387357711791992e-03,
5.964040756225586e-04,
-1.504421234130859e-04,
-1.425743103027344e-04,
1.393556594848633e-04,
-3.424882888793945e-04,
-9.139776229858398e-04,
-7.542371749877930e-04,
2.319812774658203e-04,
9.258985519409180e-04,
4.396438598632812e-04,
-3.640651702880859e-04,
-2.316236495971680e-04,
8.159875869750977e-04,
1.602888107299805e-03,
1.346349716186523e-03,
7.568597793579102e-04,
7.408857345581055e-04,
1.245975494384766e-03,
1.171231269836426e-03,
8.285045623779297e-05,
-8.342266082763672e-04,
-9.239912033081055e-04,
-5.505084991455078e-04,
-5.124807357788086e-04,
-6.881952285766602e-04,
-6.070137023925781e-04,
-3.203153610229492e-04,
-6.687641143798828e-05,
9.059906005859375e-05,
-2.110004425048828e-05,
-4.748106002807617e-04,
-8.137226104736328e-04,
-8.771419525146484e-04,
-9.132623672485352e-04,
-8.666515350341797e-04,
-6.223917007446289e-04,
-4.100799560546875e-04,
-4.841089248657227e-04,
-6.160736083984375e-04,
-2.839565277099609e-04,
1.646280288696289e-04,
6.347894668579102e-04,
1.235723495483398e-03,
1.585006713867188e-03,
1.522183418273926e-03,
1.182556152343750e-03,
5.433559417724609e-04,
3.027915954589844e-05,
2.050399780273438e-05,
1.251697540283203e-04,
1.072883605957031e-04,
-1.668930053710938e-05,
-2.015829086303711e-04,
-2.485513687133789e-04,
-2.291202545166016e-04,
-3.801584243774414e-04,
-5.816221237182617e-04,
-8.103847503662109e-04,
-1.291513442993164e-03,
-1.477003097534180e-03,
-1.199722290039062e-03,
-1.214027404785156e-03,
-1.405477523803711e-03,
-1.174926757812500e-03,
-6.712675094604492e-04,
-3.696680068969727e-04,
-1.800060272216797e-04,
1.579523086547852e-04,
5.633831024169922e-04,
7.079839706420898e-04,
6.492137908935547e-04,
6.394386291503906e-04,
8.043050765991211e-04,
9.399652481079102e-04,
7.435083389282227e-04,
3.585815429687500e-04,
7.963180541992188e-05,
-6.961822509765625e-05,
-2.905130386352539e-04,
-7.065534591674805e-04,
-9.919404983520508e-04,
-8.771419525146484e-04,
-6.294250488281250e-04,
-5.719661712646484e-04,
-8.343458175659180e-04,
-1.012563705444336e-03,
-7.568597793579102e-04,
-3.601312637329102e-04,
-2.334117889404297e-04,
-3.163814544677734e-04,
-1.763105392456055e-04,
2.003908157348633e-04,
4.010200500488281e-04,
3.876686096191406e-04,
2.667903900146484e-04,
2.781152725219727e-04,
3.736019134521484e-04,
3.975629806518555e-04,
2.335309982299805e-04,
3.695487976074219e-06,
-7.295608520507812e-05,
-1.114606857299805e-04,
-1.925230026245117e-04,
-3.571510314941406e-04,
-3.823041915893555e-04,
-2.830028533935547e-04,
-2.386569976806641e-04,
-3.166198730468750e-04,
-3.827810287475586e-04,
-3.920793533325195e-04,
-3.137588500976562e-04,
-2.459287643432617e-04,
-2.782344818115234e-04,
-3.376007080078125e-04,
-3.263950347900391e-04,
-2.365112304687500e-04,
-1.347064971923828e-04,
-8.022785186767578e-05,
-3.492832183837891e-05,
6.580352783203125e-05,
1.029968261718750e-04,
3.266334533691406e-05,
-1.776218414306641e-05,
-7.867813110351562e-06,
5.125999450683594e-06,
7.987022399902344e-06,
9.894371032714844e-06,
2.861022949218750e-06,
-1.120567321777344e-05,
-1.001358032226562e-05,
0.000000000000000e+00,
-2.741813659667969e-06,
-5.245208740234375e-06,
-8.106231689453125e-06,
-1.299381256103516e-05,
-1.299381256103516e-05,
-6.914138793945312e-06,
-1.549720764160156e-06,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
1.192092895507812e-07,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
1.192092895507812e-07,
-1.192092895507812e-07,
0.000000000000000e+00,
1.192092895507812e-07,
1.192092895507812e-07,
1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
1.192092895507812e-07,
0.000000000000000e+00,
1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
1.192092895507812e-07,
0.000000000000000e+00,
1.192092895507812e-07,
0.000000000000000e+00,
1.192092895507812e-07,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
1.192092895507812e-07,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
1.192092895507812e-07,
1.192092895507812e-07,
1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
1.192092895507812e-07,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
1.192092895507812e-07,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
-1.192092895507812e-07,
1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
1.192092895507812e-07,
1.192092895507812e-07,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
1.192092895507812e-07,
1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
1.192092895507812e-07,
0.000000000000000e+00,
1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
1.192092895507812e-07,
1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
-1.192092895507812e-07,
1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
1.192092895507812e-07,
0.000000000000000e+00,
1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
1.192092895507812e-07,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00);
| https://raw.githubusercontent.com/s-e-a-m/faust-libraries/9120cccb9335f42407062eb4bf149188d8018b07/examples/fir/irconv3.dsp | faust | 128 tap 0~20000 -0.01dB // 30000~96000 -151.58dB | import("stdfaust.lib");
process = fi.conv(fcoeff);
fcoeff = ( -8.031702041625977e-02,
-6.119704246520996e-02,
6.487882137298584e-02,
1.519786119461060e-01,
1.391460895538330e-01,
6.688344478607178e-02,
3.468430042266846e-02,
4.473912715911865e-02,
2.957773208618164e-02,
3.152477741241455e-02,
6.014704704284668e-03,
-3.092753887176514e-02,
-3.032672405242920e-02,
-4.378354549407959e-02,
-3.611135482788086e-02,
-2.634370326995850e-02,
-3.631913661956787e-02,
-1.330399513244629e-02,
4.097342491149902e-02,
5.946350097656250e-02,
5.272006988525391e-02,
6.297695636749268e-02,
7.285535335540771e-02,
1.084927320480347e-01,
1.261693239212036e-01,
6.113779544830322e-02,
-1.092457771301270e-02,
-3.841650485992432e-02,
-3.320670127868652e-02,
-3.182649612426758e-02,
-6.585037708282471e-02,
-1.022051572799683e-01,
-1.138334274291992e-01,
-1.066131591796875e-01,
-9.279680252075195e-02,
-8.884251117706299e-02,
-9.681046009063721e-02,
-1.250512599945068e-01,
-1.328966617584229e-01,
-1.137355566024780e-01,
-1.166243553161621e-01,
-1.291166543960571e-01,
-1.182435750961304e-01,
-9.263372421264648e-02,
-5.898058414459229e-02,
-4.252898693084717e-02,
-6.191921234130859e-02,
-6.389343738555908e-02,
-4.249060153961182e-02,
4.056310653686523e-02,
7.430100440979004e-02,
4.937362670898438e-02,
4.940629005432129e-02,
1.038172245025635e-01,
1.153175830841064e-01,
5.441808700561523e-02,
1.118719577789307e-02,
1.538395881652832e-03,
1.260018348693848e-02,
2.850651741027832e-03,
-6.542670726776123e-02,
-1.648871898651123e-01,
-1.847909688949585e-01,
-8.371746540069580e-02,
-6.213963031768799e-02,
-1.345129013061523e-01,
-1.059463024139404e-01,
8.215320110321045e-02,
1.946704387664795e-01,
1.480975151062012e-01,
8.367443084716797e-02,
4.817008972167969e-02,
4.743432998657227e-02,
9.427642822265625e-02,
1.319798231124878e-01,
5.981457233428955e-02,
-4.753541946411133e-02,
-4.327285289764404e-02,
5.664110183715820e-03,
4.520058631896973e-02,
3.814506530761719e-02,
6.582379341125488e-03,
1.770853996276855e-03,
3.491330146789551e-02,
8.326053619384766e-02,
1.255071163177490e-01,
1.107587814331055e-01,
8.059930801391602e-02,
5.964279174804688e-02,
4.385030269622803e-02,
4.177629947662354e-02,
3.528904914855957e-02,
2.511930465698242e-02,
2.885019779205322e-02,
6.020283699035645e-02,
7.685673236846924e-02,
7.614493370056152e-02,
7.512211799621582e-02,
7.443439960479736e-02,
4.816448688507080e-02,
8.881568908691406e-03,
2.621769905090332e-03,
3.722476959228516e-02,
5.855691432952881e-02,
5.092895030975342e-02,
2.546751499176025e-02,
9.191513061523438e-03,
5.648732185363770e-03,
2.177739143371582e-02,
6.881189346313477e-02,
1.096007823944092e-01,
1.273907423019409e-01,
1.169677972793579e-01,
7.764387130737305e-02,
3.812944889068604e-02,
4.714822769165039e-02,
7.216310501098633e-02,
8.468079566955566e-02,
8.889460563659668e-02,
7.382178306579590e-02,
4.785692691802979e-02,
3.100109100341797e-02,
3.130149841308594e-02,
3.052604198455811e-02,
4.917562007904053e-02,
6.012439727783203e-02,
6.120836734771729e-02,
5.872559547424316e-02,
5.808877944946289e-02,
6.193852424621582e-02,
6.643795967102051e-02,
8.074414730072021e-02,
7.910382747650146e-02,
7.392585277557373e-02,
9.064757823944092e-02,
7.813978195190430e-02,
6.213688850402832e-02,
7.546973228454590e-02,
7.619690895080566e-02,
7.885217666625977e-02,
8.107876777648926e-02,
7.710611820220947e-02,
7.003140449523926e-02,
5.077672004699707e-02,
2.737689018249512e-02,
1.351869106292725e-02,
1.388967037200928e-02,
1.392853260040283e-02,
1.828265190124512e-02,
1.260340213775635e-02,
-1.862406730651855e-03,
-1.281905174255371e-02,
-2.753460407257080e-02,
8.428812026977539e-03,
3.966534137725830e-02,
2.615451812744141e-04,
1.035881042480469e-02,
6.961643695831299e-02,
9.959375858306885e-02,
6.329607963562012e-02,
3.831183910369873e-02,
5.004739761352539e-02,
5.438804626464844e-02,
4.115772247314453e-02,
3.480362892150879e-02,
1.028370857238770e-02,
-1.825714111328125e-02,
-1.974046230316162e-02,
-1.656997203826904e-02,
-3.396153450012207e-02,
-4.748511314392090e-02,
-7.566809654235840e-03,
7.564783096313477e-03,
-1.844978332519531e-02,
-4.681026935577393e-02,
-5.388343334197998e-02,
-5.359184741973877e-02,
-4.703819751739502e-02,
-3.498196601867676e-02,
-4.247581958770752e-02,
-5.230617523193359e-02,
-3.825473785400391e-02,
-1.893854141235352e-02,
-3.446924686431885e-02,
-4.752123355865479e-02,
-5.448067188262939e-02,
-5.400943756103516e-02,
-3.554499149322510e-02,
-3.153026103973389e-02,
-5.353701114654541e-02,
-6.117200851440430e-02,
-5.666875839233398e-02,
-7.283914089202881e-02,
-8.983254432678223e-02,
-7.253956794738770e-02,
-5.325508117675781e-02,
-6.221652030944824e-02,
-5.882561206817627e-02,
-4.741334915161133e-02,
-4.641270637512207e-02,
-4.940819740295410e-02,
-4.046273231506348e-02,
-3.461444377899170e-02,
-3.574264049530029e-02,
-5.004036426544189e-02,
-6.450366973876953e-02,
-6.727659702301025e-02,
-6.844723224639893e-02,
-6.304693222045898e-02,
-5.696582794189453e-02,
-6.540787220001221e-02,
-8.048069477081299e-02,
-7.288801670074463e-02,
-6.781005859375000e-02,
-9.229803085327148e-02,
-1.102265119552612e-01,
-8.886814117431641e-02,
-6.226313114166260e-02,
-5.960023403167725e-02,
-6.651604175567627e-02,
-6.698632240295410e-02,
-3.844630718231201e-02,
-1.313447952270508e-03,
1.695084571838379e-02,
1.070654392242432e-02,
-1.171422004699707e-02,
-2.675759792327881e-02,
-9.063839912414551e-03,
7.017493247985840e-03,
3.567218780517578e-03,
-3.885746002197266e-03,
-7.615804672241211e-03,
6.287217140197754e-03,
2.375674247741699e-02,
2.609598636627197e-02,
2.357995510101318e-02,
2.219951152801514e-02,
2.005529403686523e-02,
2.644801139831543e-02,
2.211165428161621e-02,
-1.763343811035156e-03,
-6.347060203552246e-03,
2.128708362579346e-02,
1.022088527679443e-02,
-2.813839912414551e-02,
-3.157567977905273e-02,
-1.123166084289551e-02,
5.404710769653320e-03,
-3.138303756713867e-03,
5.960464477539062e-06,
2.254688739776611e-02,
2.829754352569580e-02,
1.266753673553467e-02,
-6.999969482421875e-03,
-6.956815719604492e-03,
1.413869857788086e-02,
3.942799568176270e-02,
3.902328014373779e-02,
1.271152496337891e-02,
2.573609352111816e-03,
2.974689006805420e-02,
5.825972557067871e-02,
4.152023792266846e-02,
-7.865667343139648e-03,
-2.875661849975586e-02,
-7.740855216979980e-03,
-1.253950595855713e-02,
-9.763240814208984e-04,
5.746841430664062e-03,
-1.260828971862793e-02,
-1.417446136474609e-02,
-2.850687503814697e-02,
-2.147996425628662e-02,
1.450061798095703e-03,
9.935379028320312e-03,
1.565003395080566e-02,
-3.583788871765137e-03,
-1.906669139862061e-02,
-1.436471939086914e-04,
4.725694656372070e-03,
5.975961685180664e-03,
1.347482204437256e-02,
1.782464981079102e-02,
2.321994304656982e-02,
1.978671550750732e-02,
1.562774181365967e-02,
1.181864738464355e-02,
-9.040236473083496e-03,
-1.549756526947021e-02,
4.518866539001465e-03,
-6.092190742492676e-03,
-4.430019855499268e-02,
-8.397269248962402e-02,
-5.973470211029053e-02,
-1.721024513244629e-03,
2.166652679443359e-02,
9.495496749877930e-03,
-7.220745086669922e-03,
-1.313710212707520e-02,
5.892515182495117e-03,
2.795135974884033e-02,
3.888058662414551e-02,
2.763056755065918e-02,
-3.612875938415527e-03,
-1.674032211303711e-02,
8.883118629455566e-03,
5.893540382385254e-02,
7.521498203277588e-02,
5.232501029968262e-02,
2.057099342346191e-02,
1.057243347167969e-02,
2.780437469482422e-02,
4.416918754577637e-02,
5.176460742950439e-02,
4.026627540588379e-02,
1.064503192901611e-02,
4.908680915832520e-03,
1.487517356872559e-02,
9.680509567260742e-03,
7.522106170654297e-05,
-4.830360412597656e-04,
8.033514022827148e-04,
-1.838135719299316e-02,
-3.073430061340332e-02,
-1.891207695007324e-02,
-3.924489021301270e-03,
-3.498315811157227e-03,
-1.155197620391846e-02,
-1.925528049468994e-02,
-6.966948509216309e-03,
1.548910140991211e-02,
1.736736297607422e-02,
2.035260200500488e-03,
-8.094668388366699e-03,
-2.877354621887207e-03,
4.649996757507324e-03,
-1.651287078857422e-03,
-1.518607139587402e-02,
-1.338112354278564e-02,
-4.768848419189453e-03,
-7.210373878479004e-03,
-2.242934703826904e-02,
-2.789759635925293e-02,
-2.250742912292480e-02,
-2.160489559173584e-02,
-4.396939277648926e-02,
-7.102704048156738e-02,
-6.871592998504639e-02,
-3.350901603698730e-02,
-9.314537048339844e-03,
-2.158713340759277e-02,
-4.306674003601074e-02,
-3.989958763122559e-02,
-2.303838729858398e-02,
-8.735299110412598e-03,
-1.178669929504395e-02,
-1.941251754760742e-02,
-2.143263816833496e-02,
-1.281130313873291e-02,
-2.186655998229980e-03,
-5.851149559020996e-03,
-1.186323165893555e-02,
-2.200293540954590e-02,
-1.581192016601562e-02,
-7.279276847839355e-03,
-1.989018917083740e-02,
-4.240095615386963e-02,
-4.382348060607910e-02,
-2.434968948364258e-02,
-1.029765605926514e-02,
-1.740491390228271e-02,
-3.055799007415771e-02,
-2.924644947052002e-02,
-2.627766132354736e-02,
-1.706457138061523e-02,
-1.636624336242676e-03,
1.209354400634766e-02,
1.126873493194580e-02,
1.286840438842773e-02,
1.021611690521240e-02,
-1.191699504852295e-02,
-2.447938919067383e-02,
-1.308107376098633e-02,
2.275228500366211e-03,
-5.137801170349121e-03,
-2.151763439178467e-02,
-2.068984508514404e-02,
-1.463115215301514e-02,
-1.236271858215332e-02,
-1.037168502807617e-02,
-1.306533813476562e-02,
-1.605749130249023e-02,
-2.085292339324951e-02,
-2.662539482116699e-02,
-3.531622886657715e-02,
-2.589952945709229e-02,
-1.678824424743652e-03,
-1.689577102661133e-02,
-3.141415119171143e-02,
-1.358556747436523e-02,
8.597254753112793e-03,
2.195847034454346e-02,
2.031803131103516e-02,
-1.312255859375000e-03,
-1.457428932189941e-02,
-7.713675498962402e-03,
6.259322166442871e-03,
9.516000747680664e-03,
-6.206274032592773e-03,
-5.291581153869629e-03,
9.541153907775879e-03,
2.450609207153320e-02,
1.895129680633545e-02,
1.145100593566895e-02,
1.541292667388916e-02,
1.766753196716309e-02,
1.698446273803711e-02,
1.614451408386230e-02,
5.934596061706543e-03,
1.658320426940918e-03,
8.041858673095703e-03,
-1.063013076782227e-02,
-3.064835071563721e-02,
-4.054963588714600e-02,
-3.380668163299561e-02,
-5.848169326782227e-03,
2.074670791625977e-02,
2.953338623046875e-02,
2.641975879669189e-02,
1.443588733673096e-02,
1.306545734405518e-02,
2.686285972595215e-02,
3.450107574462891e-02,
1.542687416076660e-02,
-7.027864456176758e-03,
-2.090334892272949e-03,
1.414859294891357e-02,
1.231086254119873e-02,
-2.671122550964355e-03,
-1.050257682800293e-02,
-2.298235893249512e-03,
1.156663894653320e-02,
7.742881774902344e-03,
-1.900959014892578e-02,
-2.119588851928711e-02,
-1.371264457702637e-03,
3.067493438720703e-03,
-7.866263389587402e-03,
-2.029883861541748e-02,
-1.821243762969971e-02,
-1.009035110473633e-02,
-3.800272941589355e-03,
8.134841918945312e-04,
-1.319921016693115e-02,
-1.035046577453613e-02,
1.566815376281738e-02,
2.298188209533691e-02,
1.845550537109375e-02,
2.169585227966309e-02,
3.672182559967041e-02,
4.498279094696045e-02,
3.437316417694092e-02,
2.374589443206787e-02,
2.674174308776855e-02,
2.643561363220215e-02,
5.613803863525391e-03,
-1.299571990966797e-02,
-1.399731636047363e-02,
-1.053774356842041e-02,
-1.925468444824219e-03,
3.890872001647949e-03,
1.220464706420898e-03,
1.167404651641846e-02,
2.041184902191162e-02,
2.597784996032715e-02,
2.466905117034912e-02,
1.847648620605469e-02,
1.294958591461182e-02,
8.187294006347656e-03,
5.975604057312012e-03,
-4.456400871276855e-03,
-7.551193237304688e-03,
6.878852844238281e-03,
2.168345451354980e-02,
2.390038967132568e-02,
2.949619293212891e-02,
2.606976032257080e-02,
1.490962505340576e-02,
1.242005825042725e-02,
1.115071773529053e-02,
5.573272705078125e-03,
-4.608392715454102e-03,
-1.187443733215332e-02,
-1.357817649841309e-02,
-2.136659622192383e-02,
-3.281879425048828e-02,
-2.811098098754883e-02,
-5.083203315734863e-03,
7.967829704284668e-03,
9.992241859436035e-03,
9.083867073059082e-03,
1.330614089965820e-02,
1.144027709960938e-02,
1.030969619750977e-02,
2.288579940795898e-03,
-1.722776889801025e-02,
-2.877581119537354e-02,
-1.552212238311768e-02,
4.662275314331055e-03,
-3.569245338439941e-03,
-3.061521053314209e-02,
-4.907262325286865e-02,
-3.612685203552246e-02,
-9.698867797851562e-03,
1.428842544555664e-03,
-5.987882614135742e-03,
-1.520562171936035e-02,
-1.278471946716309e-02,
-1.406049728393555e-02,
-3.194451332092285e-02,
-4.919016361236572e-02,
-4.202985763549805e-02,
-1.891529560089111e-02,
2.592802047729492e-04,
2.747654914855957e-03,
-8.995890617370605e-03,
-1.499378681182861e-02,
-2.555131912231445e-03,
1.007080078125000e-03,
-8.972644805908203e-03,
-1.035833358764648e-02,
-4.166960716247559e-03,
2.220392227172852e-03,
-5.856275558471680e-03,
-2.666819095611572e-02,
-3.462505340576172e-02,
-2.889752388000488e-02,
-2.629745006561279e-02,
-3.335356712341309e-02,
-3.857684135437012e-02,
-2.962613105773926e-02,
-1.561939716339111e-02,
-1.234281063079834e-02,
-1.489841938018799e-02,
-2.071082592010498e-02,
-2.537071704864502e-02,
-2.271974086761475e-02,
-1.225304603576660e-02,
-7.003188133239746e-03,
-8.289813995361328e-03,
-1.103746891021729e-02,
-8.499145507812500e-03,
-3.259778022766113e-03,
-1.012790203094482e-02,
-1.865649223327637e-02,
-5.171060562133789e-03,
5.697965621948242e-03,
8.987188339233398e-04,
5.803108215332031e-03,
9.943842887878418e-03,
1.067316532135010e-02,
1.689982414245605e-02,
2.177023887634277e-02,
1.964974403381348e-02,
7.713794708251953e-03,
1.413464546203613e-03,
1.259148120880127e-02,
2.982306480407715e-02,
3.761887550354004e-02,
3.192949295043945e-02,
1.975393295288086e-02,
1.069951057434082e-02,
1.611971855163574e-02,
3.072893619537354e-02,
3.807532787322998e-02,
2.645814418792725e-02,
1.247107982635498e-02,
1.497960090637207e-02,
2.338552474975586e-02,
2.422773838043213e-02,
2.012050151824951e-02,
7.266283035278320e-03,
2.784967422485352e-03,
4.936933517456055e-03,
2.692222595214844e-03,
3.550887107849121e-03,
5.202054977416992e-03,
2.925634384155273e-03,
5.690455436706543e-03,
9.898781776428223e-03,
1.321578025817871e-02,
1.323187351226807e-02,
8.024692535400391e-03,
4.610538482666016e-03,
-1.568078994750977e-03,
-8.021116256713867e-03,
-7.052183151245117e-03,
4.863500595092773e-03,
8.134484291076660e-03,
2.278089523315430e-03,
-6.555318832397461e-04,
-5.369067192077637e-03,
-1.409649848937988e-02,
-1.460003852844238e-02,
3.871917724609375e-03,
7.925629615783691e-03,
-4.758238792419434e-03,
-5.967020988464355e-03,
1.244783401489258e-03,
2.953290939331055e-03,
2.757549285888672e-03,
1.246464252471924e-02,
1.750028133392334e-02,
1.176238059997559e-02,
1.574182510375977e-02,
3.093469142913818e-02,
3.679049015045166e-02,
3.308796882629395e-02,
3.393685817718506e-02,
3.125953674316406e-02,
2.255809307098389e-02,
2.392625808715820e-02,
2.049827575683594e-02,
1.037466526031494e-02,
2.751588821411133e-03,
3.370165824890137e-03,
7.005453109741211e-03,
4.104375839233398e-04,
1.338243484497070e-03,
1.279580593109131e-02,
2.709913253784180e-02,
3.382706642150879e-02,
3.561031818389893e-02,
3.868341445922852e-02,
4.358386993408203e-02,
4.669308662414551e-02,
4.338395595550537e-02,
3.063821792602539e-02,
2.032411098480225e-02,
2.307486534118652e-02,
3.172302246093750e-02,
3.044891357421875e-02,
2.586793899536133e-02,
2.339720726013184e-02,
1.300346851348877e-02,
1.332640647888184e-03,
-2.410411834716797e-04,
4.106402397155762e-03,
4.179000854492188e-03,
-4.150986671447754e-03,
-7.019042968750000e-03,
-3.261804580688477e-03,
9.747743606567383e-03,
2.095127105712891e-02,
2.214348316192627e-02,
1.796460151672363e-02,
1.374697685241699e-02,
1.415753364562988e-02,
1.790368556976318e-02,
1.503634452819824e-02,
9.703159332275391e-03,
1.728165149688721e-02,
2.986884117126465e-02,
3.724586963653564e-02,
3.484380245208740e-02,
2.310037612915039e-02,
2.401709556579590e-03,
-6.646633148193359e-03,
-8.190035820007324e-03,
-8.096814155578613e-03,
-1.906728744506836e-02,
-3.826022148132324e-02,
-4.898846149444580e-02,
-4.064178466796875e-02,
-2.752482891082764e-02,
-2.672231197357178e-02,
-3.104352951049805e-02,
-2.988302707672119e-02,
-9.568214416503906e-03,
8.698463439941406e-03,
2.294659614562988e-03,
-2.572059631347656e-03,
9.411573410034180e-03,
2.102398872375488e-02,
1.831173896789551e-02,
4.255414009094238e-03,
-9.202361106872559e-03,
-1.060199737548828e-02,
-1.048278808593750e-02,
-1.898193359375000e-02,
-3.299856185913086e-02,
-4.220855236053467e-02,
-4.331302642822266e-02,
-4.088056087493896e-02,
-3.905749320983887e-02,
-4.199290275573730e-02,
-3.601670265197754e-02,
-2.010095119476318e-02,
-2.030587196350098e-02,
-3.184580802917480e-02,
-2.993369102478027e-02,
-2.230167388916016e-02,
-2.296304702758789e-02,
-2.635896205902100e-02,
-2.292072772979736e-02,
-1.496016979217529e-02,
-1.397585868835449e-02,
-2.162170410156250e-02,
-2.317595481872559e-02,
-1.455295085906982e-02,
-9.038686752319336e-03,
-1.211285591125488e-02,
-2.723395824432373e-02,
-3.866159915924072e-02,
-2.932059764862061e-02,
-1.432561874389648e-02,
-5.021929740905762e-03,
4.032492637634277e-03,
7.182955741882324e-03,
-5.243897438049316e-03,
-1.520884037017822e-02,
-8.504867553710938e-03,
4.966139793395996e-03,
1.711630821228027e-02,
1.880693435668945e-02,
1.300311088562012e-02,
4.417777061462402e-03,
1.749753952026367e-03,
5.226612091064453e-03,
2.374291419982910e-03,
-7.220149040222168e-03,
-1.296722888946533e-02,
-1.053786277770996e-02,
-4.654169082641602e-03,
4.931926727294922e-03,
1.205706596374512e-02,
1.405799388885498e-02,
1.095092296600342e-02,
1.298999786376953e-02,
1.805984973907471e-02,
1.496636867523193e-02,
1.495242118835449e-02,
2.617895603179932e-02,
3.911685943603516e-02,
3.863489627838135e-02,
2.759540081024170e-02,
2.080881595611572e-02,
2.261126041412354e-02,
2.423608303070068e-02,
1.506209373474121e-02,
1.763105392456055e-04,
-1.267099380493164e-02,
-1.245427131652832e-02,
-2.331137657165527e-03,
-5.519866943359375e-03,
-2.006065845489502e-02,
-2.986001968383789e-02,
-2.526080608367920e-02,
-1.463270187377930e-02,
-1.178872585296631e-02,
-8.902549743652344e-03,
-2.937197685241699e-03,
5.065083503723145e-03,
1.531064510345459e-02,
1.314938068389893e-02,
7.576823234558105e-03,
9.135246276855469e-03,
1.286900043487549e-02,
9.787201881408691e-03,
-3.756284713745117e-04,
-1.215171813964844e-02,
-1.735436916351318e-02,
-1.780736446380615e-02,
-2.079117298126221e-02,
-2.223384380340576e-02,
-2.081382274627686e-02,
-2.487277984619141e-02,
-3.158795833587646e-02,
-2.883803844451904e-02,
-1.973819732666016e-02,
-1.950883865356445e-02,
-2.470850944519043e-02,
-2.709901332855225e-02,
-3.482031822204590e-02,
-5.255055427551270e-02,
-6.992614269256592e-02,
-6.055068969726562e-02,
-3.949069976806641e-02,
-2.981007099151611e-02,
-3.257608413696289e-02,
-3.773319721221924e-02,
-3.022241592407227e-02,
-1.473629474639893e-02,
-4.364252090454102e-03,
-5.210995674133301e-03,
-1.017928123474121e-02,
-4.892587661743164e-03,
1.010441780090332e-02,
9.529352188110352e-03,
-4.632472991943359e-04,
-7.112860679626465e-03,
-3.254532814025879e-03,
1.671314239501953e-04,
1.741051673889160e-03,
1.333069801330566e-02,
2.738320827484131e-02,
3.467047214508057e-02,
3.430724143981934e-02,
3.501868247985840e-02,
3.440475463867188e-02,
3.485810756683350e-02,
3.708589076995850e-02,
3.471517562866211e-02,
2.641034126281738e-02,
2.518510818481445e-02,
2.935814857482910e-02,
2.968609333038330e-02,
3.529822826385498e-02,
4.026973247528076e-02,
4.796802997589111e-02,
4.939496517181396e-02,
3.899061679840088e-02,
3.082513809204102e-02,
3.234887123107910e-02,
3.236532211303711e-02,
2.697598934173584e-02,
2.218914031982422e-02,
2.175581455230713e-02,
3.452432155609131e-02,
4.385411739349365e-02,
3.607618808746338e-02,
3.439211845397949e-02,
4.016041755676270e-02,
4.098784923553467e-02,
2.923047542572021e-02,
1.498639583587646e-02,
1.583862304687500e-02,
2.402532100677490e-02,
3.073644638061523e-02,
2.202212810516357e-02,
4.159927368164062e-03,
5.959272384643555e-03,
2.826941013336182e-02,
3.954315185546875e-02,
2.852284908294678e-02,
9.017825126647949e-03,
1.446962356567383e-03,
4.853487014770508e-03,
7.262587547302246e-03,
5.150318145751953e-03,
-1.649737358093262e-03,
-1.342177391052246e-03,
6.498694419860840e-03,
2.002847194671631e-02,
2.501916885375977e-02,
2.070617675781250e-02,
2.045512199401855e-02,
1.799440383911133e-02,
8.466601371765137e-03,
8.689284324645996e-03,
1.046407222747803e-02,
2.009868621826172e-04,
-6.382942199707031e-03,
-5.806088447570801e-03,
-3.037691116333008e-03,
-2.623200416564941e-03,
1.471877098083496e-03,
7.733106613159180e-04,
-9.983301162719727e-03,
-1.242864131927490e-02,
-3.361701965332031e-03,
-2.954840660095215e-03,
-7.535099983215332e-03,
-5.148649215698242e-03,
-2.350807189941406e-04,
-7.311463356018066e-03,
-2.422177791595459e-02,
-3.202867507934570e-02,
-2.657270431518555e-02,
-2.077829837799072e-02,
-2.407550811767578e-02,
-3.424882888793945e-02,
-3.809857368469238e-02,
-2.734863758087158e-02,
-8.522748947143555e-03,
-1.804709434509277e-03,
-8.231878280639648e-03,
-1.174509525299072e-02,
-2.706885337829590e-03,
1.259553432464600e-02,
1.038730144500732e-02,
-9.080648422241211e-03,
-2.138853073120117e-02,
-1.645696163177490e-02,
1.537442207336426e-03,
9.954929351806641e-03,
2.079129219055176e-03,
-2.119064331054688e-03,
-1.435875892639160e-03,
-1.378417015075684e-03,
-2.411842346191406e-03,
-8.628487586975098e-03,
-1.266944408416748e-02,
-1.292335987091064e-02,
-1.278400421142578e-02,
-6.896376609802246e-03,
-5.089044570922852e-04,
-3.536701202392578e-03,
-5.183219909667969e-03,
3.232479095458984e-03,
7.004261016845703e-03,
6.338000297546387e-03,
7.960438728332520e-03,
8.716225624084473e-03,
5.500793457031250e-03,
1.267790794372559e-03,
5.040168762207031e-04,
-4.088401794433594e-03,
-1.102304458618164e-02,
-1.240158081054688e-02,
-9.763956069946289e-03,
-6.460189819335938e-03,
-8.921623229980469e-03,
-1.511836051940918e-02,
-1.496601104736328e-02,
-1.105678081512451e-02,
-9.454250335693359e-03,
-1.319396495819092e-02,
-2.541959285736084e-02,
-3.471112251281738e-02,
-3.069019317626953e-02,
-2.220988273620605e-02,
-2.254176139831543e-02,
-2.905964851379395e-02,
-2.959012985229492e-02,
-1.639854907989502e-02,
-1.403331756591797e-03,
3.899812698364258e-03,
1.560688018798828e-03,
-5.151271820068359e-03,
-8.532524108886719e-03,
-1.001191139221191e-02,
-1.077711582183838e-02,
-1.098895072937012e-02,
-8.899331092834473e-03,
-1.347064971923828e-03,
-6.409049034118652e-03,
-2.268624305725098e-02,
-2.348029613494873e-02,
-8.453726768493652e-03,
-3.633856773376465e-03,
-6.043791770935059e-03,
-8.942127227783203e-03,
-1.384663581848145e-02,
-1.000225543975830e-02,
3.099441528320312e-05,
6.654024124145508e-03,
1.491546630859375e-03,
-6.946325302124023e-04,
8.716225624084473e-03,
1.322627067565918e-02,
9.342670440673828e-03,
6.081461906433105e-03,
2.501130104064941e-03,
-4.505991935729980e-03,
-1.012277603149414e-02,
-3.244876861572266e-03,
8.764982223510742e-03,
1.088297367095947e-02,
6.918668746948242e-03,
8.782386779785156e-03,
1.992619037628174e-02,
2.420747280120850e-02,
2.570128440856934e-02,
3.100514411926270e-02,
3.367316722869873e-02,
2.825248241424561e-02,
1.734912395477295e-02,
1.124703884124756e-02,
7.748961448669434e-03,
4.405498504638672e-03,
-4.507303237915039e-03,
-1.247608661651611e-02,
-1.051759719848633e-02,
-3.244996070861816e-03,
1.710414886474609e-03,
5.320191383361816e-03,
5.837678909301758e-03,
7.318735122680664e-03,
9.054541587829590e-03,
9.412288665771484e-03,
1.328778266906738e-02,
1.091837882995605e-02,
2.310752868652344e-03,
-1.375079154968262e-03,
-4.572868347167969e-03,
-1.041555404663086e-02,
-1.192104816436768e-02,
-1.226842403411865e-02,
-8.038878440856934e-03,
5.440711975097656e-04,
1.740455627441406e-05,
-5.438089370727539e-03,
-5.895972251892090e-03,
-4.526853561401367e-03,
-6.907939910888672e-03,
-1.145923137664795e-02,
-1.344060897827148e-02,
-1.658761501312256e-02,
-2.209138870239258e-02,
-1.704180240631104e-02,
-8.967876434326172e-03,
-1.048934459686279e-02,
-1.405465602874756e-02,
-1.297020912170410e-02,
-1.048982143402100e-02,
-6.251096725463867e-03,
-2.339482307434082e-03,
4.460811614990234e-04,
4.394769668579102e-03,
5.920171737670898e-03,
3.120779991149902e-03,
-1.324892044067383e-03,
9.701251983642578e-04,
1.169109344482422e-02,
1.462864875793457e-02,
2.027511596679688e-03,
-1.195228099822998e-02,
-1.027262210845947e-02,
1.286268234252930e-03,
7.237315177917480e-03,
2.100586891174316e-03,
-4.851222038269043e-03,
-4.063963890075684e-03,
2.852916717529297e-03,
6.701946258544922e-03,
6.807923316955566e-03,
7.081389427185059e-03,
1.934409141540527e-03,
-3.753542900085449e-03,
-6.509184837341309e-03,
-7.293343544006348e-03,
-6.758928298950195e-03,
-7.048249244689941e-03,
-1.084887981414795e-02,
-1.598727703094482e-02,
-1.495611667633057e-02,
-7.038950920104980e-03,
3.981590270996094e-03,
1.093745231628418e-02,
7.673144340515137e-03,
-2.217292785644531e-04,
-2.807736396789551e-03,
-5.463719367980957e-03,
-9.691357612609863e-03,
-7.835268974304199e-03,
-3.416776657104492e-03,
-3.793835639953613e-03,
-5.163788795471191e-03,
6.829500198364258e-04,
8.510708808898926e-03,
1.698386669158936e-02,
2.697110176086426e-02,
3.236722946166992e-02,
3.226482868194580e-02,
2.546823024749756e-02,
1.628875732421875e-02,
1.334345340728760e-02,
1.374661922454834e-02,
7.826209068298340e-03,
-2.023935317993164e-03,
-7.197380065917969e-03,
-8.316874504089355e-03,
-1.208734512329102e-02,
-2.185189723968506e-02,
-2.829360961914062e-02,
-2.902328968048096e-02,
-2.431118488311768e-02,
-1.458489894866943e-02,
-1.121854782104492e-02,
-1.121807098388672e-02,
-2.698898315429688e-03,
7.054209709167480e-03,
8.300542831420898e-03,
5.058646202087402e-03,
1.029169559478760e-02,
1.775264739990234e-02,
1.423811912536621e-02,
3.270864486694336e-03,
-5.556821823120117e-03,
-4.770755767822266e-03,
1.583576202392578e-03,
5.668640136718750e-03,
3.983736038208008e-03,
-3.234386444091797e-03,
-7.479667663574219e-03,
-3.165721893310547e-03,
5.180835723876953e-04,
-8.768677711486816e-03,
-1.889550685882568e-02,
-1.907837390899658e-02,
-1.867592334747314e-02,
-1.794576644897461e-02,
-1.269161701202393e-02,
-2.384185791015625e-03,
4.204988479614258e-03,
1.035821437835693e-02,
2.072381973266602e-02,
2.790033817291260e-02,
2.562785148620605e-02,
2.157139778137207e-02,
2.524042129516602e-02,
2.739346027374268e-02,
1.966869831085205e-02,
7.018327713012695e-03,
-9.649991989135742e-04,
-3.435015678405762e-03,
-3.244757652282715e-03,
-3.948211669921875e-03,
-7.121086120605469e-03,
-7.697463035583496e-03,
-1.217722892761230e-03,
4.713416099548340e-03,
2.580285072326660e-03,
-2.676129341125488e-03,
-4.557490348815918e-03,
-1.077413558959961e-03,
4.415035247802734e-03,
3.061532974243164e-03,
3.629922866821289e-04,
5.418062210083008e-04,
-5.101203918457031e-03,
-1.111793518066406e-02,
-9.557127952575684e-03,
-2.729773521423340e-03,
2.968072891235352e-03,
7.296919822692871e-03,
9.844064712524414e-03,
1.087832450866699e-02,
9.525179862976074e-03,
9.393215179443359e-03,
1.120233535766602e-02,
8.905887603759766e-03,
3.674387931823730e-03,
8.724927902221680e-04,
1.364588737487793e-03,
2.542138099670410e-03,
2.277731895446777e-03,
-4.479169845581055e-03,
-1.162576675415039e-02,
-1.349842548370361e-02,
-9.850621223449707e-03,
-6.064057350158691e-03,
-9.044051170349121e-03,
-1.518988609313965e-02,
-1.410210132598877e-02,
-1.012682914733887e-02,
-7.826209068298340e-03,
-7.054924964904785e-03,
-8.989691734313965e-03,
-1.258420944213867e-02,
-1.329278945922852e-02,
-1.008999347686768e-02,
-6.150841712951660e-03,
-5.555629730224609e-03,
-9.286284446716309e-03,
-7.799148559570312e-03,
-2.860426902770996e-03,
3.973722457885742e-03,
8.062243461608887e-03,
8.532285690307617e-03,
7.359504699707031e-03,
8.577585220336914e-03,
1.326727867126465e-02,
9.750008583068848e-03,
8.975267410278320e-04,
-5.828738212585449e-03,
-1.272284984588623e-02,
-1.505696773529053e-02,
-1.205253601074219e-02,
-9.830832481384277e-03,
-9.151697158813477e-03,
-5.499482154846191e-03,
2.072215080261230e-03,
7.211089134216309e-03,
6.786108016967773e-03,
4.819154739379883e-03,
4.982709884643555e-03,
4.510283470153809e-03,
5.858778953552246e-03,
1.153755187988281e-02,
1.781618595123291e-02,
2.174139022827148e-02,
2.079522609710693e-02,
1.596212387084961e-02,
1.043188571929932e-02,
8.083343505859375e-03,
8.649230003356934e-03,
8.667111396789551e-03,
5.231857299804688e-03,
1.966953277587891e-05,
-2.894163131713867e-03,
-2.438902854919434e-03,
-2.263784408569336e-03,
-5.469202995300293e-03,
-7.346391677856445e-03,
-7.598400115966797e-03,
-3.875255584716797e-03,
5.259275436401367e-03,
1.412022113800049e-02,
1.389718055725098e-02,
1.093494892120361e-02,
1.201784610748291e-02,
1.234090328216553e-02,
1.319420337677002e-02,
1.188385486602783e-02,
1.083481311798096e-02,
9.281992912292480e-03,
4.065275192260742e-03,
-3.021717071533203e-03,
-7.464170455932617e-03,
-8.735656738281250e-03,
-8.645176887512207e-03,
-7.127881050109863e-03,
-6.472229957580566e-03,
-6.531357765197754e-03,
-6.738424301147461e-03,
-8.109092712402344e-03,
-1.159262657165527e-02,
-1.499605178833008e-02,
-1.469850540161133e-02,
-1.152551174163818e-02,
-9.363174438476562e-03,
-7.833957672119141e-03,
-7.111430168151855e-03,
-3.857135772705078e-03,
-4.695892333984375e-03,
-5.352735519409180e-03,
-4.018545150756836e-03,
-5.416870117187500e-03,
-8.266687393188477e-03,
-9.894251823425293e-03,
-9.445786476135254e-03,
-7.411718368530273e-03,
-8.111953735351562e-03,
-1.203811168670654e-02,
-1.211071014404297e-02,
-8.524775505065918e-03,
-5.364418029785156e-03,
-4.845857620239258e-03,
-5.949616432189941e-03,
-7.291913032531738e-03,
-7.013082504272461e-03,
-7.585644721984863e-03,
-9.511828422546387e-03,
-9.842991828918457e-03,
-6.667375564575195e-03,
-5.620718002319336e-04,
1.946687698364258e-04,
-6.858110427856445e-03,
-8.634448051452637e-03,
-2.267360687255859e-03,
4.425764083862305e-03,
6.279230117797852e-03,
5.563020706176758e-03,
6.467938423156738e-03,
1.111280918121338e-02,
1.777017116546631e-02,
1.986670494079590e-02,
1.530432701110840e-02,
1.010012626647949e-02,
9.919881820678711e-03,
8.881568908691406e-03,
3.662824630737305e-03,
-2.628564834594727e-03,
-2.550601959228516e-03,
7.774829864501953e-04,
-1.777410507202148e-03,
-9.270191192626953e-03,
-1.072382926940918e-02,
-3.418803215026855e-03,
3.054261207580566e-03,
5.352020263671875e-03,
2.259373664855957e-03,
-1.091122627258301e-03,
-4.353523254394531e-04,
4.980325698852539e-03,
1.016044616699219e-02,
1.094055175781250e-02,
6.733179092407227e-03,
-1.122355461120605e-03,
-6.086111068725586e-03,
-4.858970642089844e-04,
7.001876831054688e-03,
4.797577857971191e-03,
-4.319190979003906e-03,
-1.019477844238281e-02,
-5.918502807617188e-03,
-1.362681388854980e-03,
-2.815842628479004e-03,
-6.663084030151367e-03,
-6.865262985229492e-03,
-3.603577613830566e-03,
8.106231689453125e-06,
1.366734504699707e-03,
-2.456188201904297e-03,
-4.279971122741699e-03,
6.226301193237305e-04,
5.472183227539062e-03,
3.568410873413086e-03,
-1.473069190979004e-03,
-1.697063446044922e-03,
2.303361892700195e-03,
5.079269409179688e-03,
4.049539566040039e-03,
1.519918441772461e-04,
6.531476974487305e-04,
4.534721374511719e-03,
9.927511215209961e-03,
1.269149780273438e-02,
7.991552352905273e-03,
4.173994064331055e-03,
5.474686622619629e-03,
1.008927822113037e-02,
1.170599460601807e-02,
7.795572280883789e-03,
7.020235061645508e-04,
-3.803730010986328e-03,
-8.159875869750977e-04,
3.063797950744629e-03,
2.154469490051270e-03,
1.206398010253906e-04,
2.195954322814941e-03,
1.772522926330566e-03,
-2.283096313476562e-03,
-1.081824302673340e-03,
3.966450691223145e-03,
8.092164993286133e-03,
1.023328304290771e-02,
1.011633872985840e-02,
1.134443283081055e-02,
1.560842990875244e-02,
1.894021034240723e-02,
1.786482334136963e-02,
1.504504680633545e-02,
1.609611511230469e-02,
1.876652240753174e-02,
1.855647563934326e-02,
1.244938373565674e-02,
7.936835289001465e-03,
1.338541507720947e-02,
1.708710193634033e-02,
9.329795837402344e-03,
1.008391380310059e-03,
3.777384757995605e-03,
1.264238357543945e-02,
1.579391956329346e-02,
1.123070716857910e-02,
5.796551704406738e-03,
5.041122436523438e-03,
6.413102149963379e-03,
5.085468292236328e-03,
-3.100633621215820e-04,
-4.072070121765137e-03,
-3.919601440429688e-04,
5.053281784057617e-03,
-2.729892730712891e-05,
-8.672475814819336e-03,
-8.557558059692383e-03,
-1.225471496582031e-04,
3.348946571350098e-03,
-3.653883934020996e-03,
-9.659051895141602e-03,
-1.036071777343750e-02,
-7.421612739562988e-03,
-6.589889526367188e-03,
-9.283542633056641e-03,
-1.251232624053955e-02,
-1.545822620391846e-02,
-1.685297489166260e-02,
-1.456165313720703e-02,
-1.077604293823242e-02,
-7.862210273742676e-03,
-8.843541145324707e-03,
-1.013648509979248e-02,
-1.013839244842529e-02,
-9.074091911315918e-03,
-5.890130996704102e-03,
-3.896474838256836e-03,
-5.473256111145020e-03,
-9.047508239746094e-03,
-1.067280769348145e-02,
-9.959101676940918e-03,
-9.220719337463379e-03,
-4.687309265136719e-03,
1.407384872436523e-03,
3.253221511840820e-03,
-7.685422897338867e-04,
-3.103733062744141e-03,
1.173734664916992e-03,
5.962371826171875e-03,
7.929921150207520e-03,
6.728410720825195e-03,
2.728581428527832e-03,
-1.911520957946777e-03,
-1.503944396972656e-03,
2.353310585021973e-03,
3.617525100708008e-03,
1.690268516540527e-03,
8.739233016967773e-04,
8.130073547363281e-04,
-1.380443572998047e-04,
1.922845840454102e-04,
1.805067062377930e-03,
1.756668090820312e-03,
1.168251037597656e-05,
1.186132431030273e-03,
2.858042716979980e-03,
2.445340156555176e-03,
1.295447349548340e-03,
-7.027387619018555e-04,
-3.306865692138672e-03,
-2.088427543640137e-03,
3.200292587280273e-03,
5.128622055053711e-03,
3.610134124755859e-03,
3.251075744628906e-03,
6.020426750183105e-03,
9.482741355895996e-03,
1.044547557830811e-02,
8.915185928344727e-03,
6.010532379150391e-03,
4.068851470947266e-03,
4.667758941650391e-03,
5.916237831115723e-03,
6.026387214660645e-03,
3.660559654235840e-03,
4.853010177612305e-04,
-3.720283508300781e-03,
-7.048606872558594e-03,
-6.017327308654785e-03,
-3.186941146850586e-03,
-1.777291297912598e-03,
-1.737833023071289e-03,
-2.056360244750977e-03,
-1.615524291992188e-03,
-7.748603820800781e-04,
-1.198172569274902e-03,
-2.842545509338379e-03,
-3.151774406433105e-03,
-1.989006996154785e-03,
-7.162094116210938e-04,
-5.898475646972656e-04,
-1.600265502929688e-03,
-1.518487930297852e-03,
-1.367092132568359e-03,
-2.934336662292480e-03,
-2.706050872802734e-03,
4.671812057495117e-04,
2.451181411743164e-03,
9.417533874511719e-06,
-4.024386405944824e-03,
-5.180954933166504e-03,
-4.099726676940918e-03,
-3.147244453430176e-03,
-3.742456436157227e-03,
-4.945397377014160e-03,
-4.505634307861328e-03,
-1.124501228332520e-03,
2.030849456787109e-03,
4.764795303344727e-04,
-4.489064216613770e-03,
-7.759451866149902e-03,
-6.449460983276367e-03,
-1.875996589660645e-03,
3.008842468261719e-04,
-2.245783805847168e-03,
-4.784703254699707e-03,
-3.638505935668945e-03,
-9.821653366088867e-04,
6.071329116821289e-04,
-1.946687698364258e-04,
-2.727746963500977e-03,
-3.190398216247559e-03,
-1.831769943237305e-03,
-1.029253005981445e-03,
-2.472639083862305e-03,
-5.356192588806152e-03,
-6.260156631469727e-03,
-5.943059921264648e-03,
-6.075620651245117e-03,
-5.822300910949707e-03,
-4.737138748168945e-03,
-4.248619079589844e-03,
-4.656076431274414e-03,
-4.453420639038086e-03,
-3.424525260925293e-03,
-3.177762031555176e-03,
-2.483010292053223e-03,
-8.668899536132812e-04,
-1.120567321777344e-04,
-3.421306610107422e-05,
1.272320747375488e-03,
2.922296524047852e-03,
3.691315650939941e-03,
4.741907119750977e-03,
5.427002906799316e-03,
5.107045173645020e-03,
3.765583038330078e-03,
2.761602401733398e-03,
2.826213836669922e-03,
2.387046813964844e-03,
1.901388168334961e-04,
-2.209186553955078e-03,
-3.258824348449707e-03,
-2.953648567199707e-03,
-1.005172729492188e-03,
7.510185241699219e-04,
-3.535747528076172e-04,
-2.333879470825195e-03,
-2.650737762451172e-03,
-2.385377883911133e-03,
-1.396059989929199e-03,
1.130104064941406e-04,
3.625154495239258e-04,
-2.503395080566406e-05,
2.479553222656250e-05,
-5.757808685302734e-05,
-7.069110870361328e-05,
2.807378768920898e-04,
1.389622688293457e-03,
2.159476280212402e-03,
1.663208007812500e-03,
-9.860992431640625e-04,
-2.994537353515625e-03,
-2.014756202697754e-03,
-4.130601882934570e-04,
1.109957695007324e-03,
1.514792442321777e-03,
1.162290573120117e-03,
2.570152282714844e-04,
-3.855228424072266e-04,
8.209943771362305e-04,
2.729773521423340e-03,
3.637433052062988e-03,
2.529263496398926e-03,
2.522468566894531e-04,
-1.840591430664062e-04,
4.272460937500000e-04,
-8.958578109741211e-04,
-2.354145050048828e-03,
-1.101374626159668e-03,
9.022951126098633e-04,
1.700282096862793e-03,
1.944303512573242e-03,
1.585125923156738e-03,
1.946687698364258e-03,
2.331852912902832e-03,
1.271247863769531e-03,
-5.358457565307617e-04,
-5.512237548828125e-04,
4.526376724243164e-04,
1.955032348632812e-05,
-1.959800720214844e-03,
-4.609346389770508e-03,
-5.888223648071289e-03,
-5.280613899230957e-03,
-4.638552665710449e-03,
-4.914164543151855e-03,
-5.069375038146973e-03,
-3.102421760559082e-03,
-6.312131881713867e-04,
5.218982696533203e-04,
1.277923583984375e-04,
-1.219034194946289e-03,
-1.664161682128906e-03,
-9.664297103881836e-04,
-4.291534423828125e-06,
2.062320709228516e-05,
-9.979009628295898e-04,
-1.348257064819336e-03,
-2.055168151855469e-04,
9.000301361083984e-04,
1.597285270690918e-03,
1.027941703796387e-03,
-1.561641693115234e-04,
-6.481409072875977e-04,
-5.319118499755859e-04,
-5.725622177124023e-04,
-1.338720321655273e-03,
-1.768708229064941e-03,
-1.512050628662109e-03,
-1.002073287963867e-03,
-6.902217864990234e-04,
1.795291900634766e-04,
1.025795936584473e-03,
4.489421844482422e-04,
-2.791881561279297e-04,
-5.972385406494141e-05,
1.409530639648438e-03,
3.581762313842773e-03,
4.398941993713379e-03,
3.466129302978516e-03,
2.645134925842285e-03,
3.563165664672852e-03,
5.083441734313965e-03,
4.875540733337402e-03,
2.929329872131348e-03,
1.302719116210938e-03,
1.162648200988770e-03,
1.548647880554199e-03,
1.387357711791992e-03,
5.964040756225586e-04,
-1.504421234130859e-04,
-1.425743103027344e-04,
1.393556594848633e-04,
-3.424882888793945e-04,
-9.139776229858398e-04,
-7.542371749877930e-04,
2.319812774658203e-04,
9.258985519409180e-04,
4.396438598632812e-04,
-3.640651702880859e-04,
-2.316236495971680e-04,
8.159875869750977e-04,
1.602888107299805e-03,
1.346349716186523e-03,
7.568597793579102e-04,
7.408857345581055e-04,
1.245975494384766e-03,
1.171231269836426e-03,
8.285045623779297e-05,
-8.342266082763672e-04,
-9.239912033081055e-04,
-5.505084991455078e-04,
-5.124807357788086e-04,
-6.881952285766602e-04,
-6.070137023925781e-04,
-3.203153610229492e-04,
-6.687641143798828e-05,
9.059906005859375e-05,
-2.110004425048828e-05,
-4.748106002807617e-04,
-8.137226104736328e-04,
-8.771419525146484e-04,
-9.132623672485352e-04,
-8.666515350341797e-04,
-6.223917007446289e-04,
-4.100799560546875e-04,
-4.841089248657227e-04,
-6.160736083984375e-04,
-2.839565277099609e-04,
1.646280288696289e-04,
6.347894668579102e-04,
1.235723495483398e-03,
1.585006713867188e-03,
1.522183418273926e-03,
1.182556152343750e-03,
5.433559417724609e-04,
3.027915954589844e-05,
2.050399780273438e-05,
1.251697540283203e-04,
1.072883605957031e-04,
-1.668930053710938e-05,
-2.015829086303711e-04,
-2.485513687133789e-04,
-2.291202545166016e-04,
-3.801584243774414e-04,
-5.816221237182617e-04,
-8.103847503662109e-04,
-1.291513442993164e-03,
-1.477003097534180e-03,
-1.199722290039062e-03,
-1.214027404785156e-03,
-1.405477523803711e-03,
-1.174926757812500e-03,
-6.712675094604492e-04,
-3.696680068969727e-04,
-1.800060272216797e-04,
1.579523086547852e-04,
5.633831024169922e-04,
7.079839706420898e-04,
6.492137908935547e-04,
6.394386291503906e-04,
8.043050765991211e-04,
9.399652481079102e-04,
7.435083389282227e-04,
3.585815429687500e-04,
7.963180541992188e-05,
-6.961822509765625e-05,
-2.905130386352539e-04,
-7.065534591674805e-04,
-9.919404983520508e-04,
-8.771419525146484e-04,
-6.294250488281250e-04,
-5.719661712646484e-04,
-8.343458175659180e-04,
-1.012563705444336e-03,
-7.568597793579102e-04,
-3.601312637329102e-04,
-2.334117889404297e-04,
-3.163814544677734e-04,
-1.763105392456055e-04,
2.003908157348633e-04,
4.010200500488281e-04,
3.876686096191406e-04,
2.667903900146484e-04,
2.781152725219727e-04,
3.736019134521484e-04,
3.975629806518555e-04,
2.335309982299805e-04,
3.695487976074219e-06,
-7.295608520507812e-05,
-1.114606857299805e-04,
-1.925230026245117e-04,
-3.571510314941406e-04,
-3.823041915893555e-04,
-2.830028533935547e-04,
-2.386569976806641e-04,
-3.166198730468750e-04,
-3.827810287475586e-04,
-3.920793533325195e-04,
-3.137588500976562e-04,
-2.459287643432617e-04,
-2.782344818115234e-04,
-3.376007080078125e-04,
-3.263950347900391e-04,
-2.365112304687500e-04,
-1.347064971923828e-04,
-8.022785186767578e-05,
-3.492832183837891e-05,
6.580352783203125e-05,
1.029968261718750e-04,
3.266334533691406e-05,
-1.776218414306641e-05,
-7.867813110351562e-06,
5.125999450683594e-06,
7.987022399902344e-06,
9.894371032714844e-06,
2.861022949218750e-06,
-1.120567321777344e-05,
-1.001358032226562e-05,
0.000000000000000e+00,
-2.741813659667969e-06,
-5.245208740234375e-06,
-8.106231689453125e-06,
-1.299381256103516e-05,
-1.299381256103516e-05,
-6.914138793945312e-06,
-1.549720764160156e-06,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
1.192092895507812e-07,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
1.192092895507812e-07,
-1.192092895507812e-07,
0.000000000000000e+00,
1.192092895507812e-07,
1.192092895507812e-07,
1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
1.192092895507812e-07,
0.000000000000000e+00,
1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
1.192092895507812e-07,
0.000000000000000e+00,
1.192092895507812e-07,
0.000000000000000e+00,
1.192092895507812e-07,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
1.192092895507812e-07,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
1.192092895507812e-07,
1.192092895507812e-07,
1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
1.192092895507812e-07,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
1.192092895507812e-07,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
-1.192092895507812e-07,
1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
1.192092895507812e-07,
1.192092895507812e-07,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
1.192092895507812e-07,
1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
1.192092895507812e-07,
0.000000000000000e+00,
1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
1.192092895507812e-07,
1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
-1.192092895507812e-07,
1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
1.192092895507812e-07,
0.000000000000000e+00,
1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
1.192092895507812e-07,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00,
0.000000000000000e+00,
-1.192092895507812e-07,
0.000000000000000e+00,
0.000000000000000e+00);
|
7c6d715d6e25f57b45c933636ea8100a164cb81f46897d50874a5ecfc038d1d2 | SuyashRamteke/FAUST---Real-time-Audio-Signal-Processing | Subtractive_Synthesis.dsp | import("stdfaust.lib");
waveGenerator = hgroup("[0]Wave Generator",no.noise,os.triangle(freq),os.square(freq),os.sawtooth(freq) : ba.selectn(4,wave))
with{
wave = nentry("[0]Waveform",3,0,3,1);
freq = hslider("[1]freq",440,50,2000,0.01);
};
subtractive = waveGenerator : hgroup("[1]Filter",fi.resonlp(resFreq,q,1)) : fi.bandpass(16,200,1000)
with{
ctFreq = hslider("[0]Cutoff Frequency[style:knob]",1600,50,10000,0.1);
q = hslider("[1]Q[style:knob]",5,1,30,0.1);
lfoFreq = hslider("[2]LFO Frequency[style:knob]",10,0.1,20,0.01);
lfoDepth = hslider("[3]LFO Depth[style:knob]",500,1,10000,1);
resFreq = os.osc(lfoFreq)*lfoDepth + ctFreq : max(30);
};
envelope = hgroup("[2]Envelope",en.adsr(attack,decay,sustain,release,gate)*gain*0.7)
with{
attack = hslider("[0]Attack[style:knob]",50,1,1000,1)*0.001;
decay = hslider("[1]Decay[style:knob]",50,1,1000,1)*0.001;
sustain = hslider("[2]Sustain[style:knob]",0.8,0.01,1,1);
release = hslider("[3]Release[style:knob]",50,1,1000,1)*0.001;
gain = hslider("[4]gain[style:knob]",1,0,1,0.01);
gate = button("[5]gate");
};
process = vgroup("Subtractive Synthesizer",subtractive*envelope) : dm.crybaby_demo <:_,_: dm.zita_light ;
//effect = dm.zita_light;
//process = subtractive; | https://raw.githubusercontent.com/SuyashRamteke/FAUST---Real-time-Audio-Signal-Processing/ca24b8d650b6d77435d8128b0aa8e4d8b6022c30/Subtractive_Synthesis.dsp | faust | effect = dm.zita_light;
process = subtractive; | import("stdfaust.lib");
waveGenerator = hgroup("[0]Wave Generator",no.noise,os.triangle(freq),os.square(freq),os.sawtooth(freq) : ba.selectn(4,wave))
with{
wave = nentry("[0]Waveform",3,0,3,1);
freq = hslider("[1]freq",440,50,2000,0.01);
};
subtractive = waveGenerator : hgroup("[1]Filter",fi.resonlp(resFreq,q,1)) : fi.bandpass(16,200,1000)
with{
ctFreq = hslider("[0]Cutoff Frequency[style:knob]",1600,50,10000,0.1);
q = hslider("[1]Q[style:knob]",5,1,30,0.1);
lfoFreq = hslider("[2]LFO Frequency[style:knob]",10,0.1,20,0.01);
lfoDepth = hslider("[3]LFO Depth[style:knob]",500,1,10000,1);
resFreq = os.osc(lfoFreq)*lfoDepth + ctFreq : max(30);
};
envelope = hgroup("[2]Envelope",en.adsr(attack,decay,sustain,release,gate)*gain*0.7)
with{
attack = hslider("[0]Attack[style:knob]",50,1,1000,1)*0.001;
decay = hslider("[1]Decay[style:knob]",50,1,1000,1)*0.001;
sustain = hslider("[2]Sustain[style:knob]",0.8,0.01,1,1);
release = hslider("[3]Release[style:knob]",50,1,1000,1)*0.001;
gain = hslider("[4]gain[style:knob]",1,0,1,0.01);
gate = button("[5]gate");
};
process = vgroup("Subtractive Synthesizer",subtractive*envelope) : dm.crybaby_demo <:_,_: dm.zita_light ; |
7b6a9970adfe6a2cd39f6872caccbf36fb44d23e3db0dd1102a14ebf32a9b311 | SuyashRamteke/FAUST---Real-time-Audio-Signal-Processing | PeakFilter.dsp | import("stdfaust.lib");
waveGenerator = hgroup("[0]Wave Generator",no.noise,os.triangle(freq),os.square(freq),os.sawtooth(freq) : ba.selectn(4,wave))
with{
wave = nentry("[0]Waveform",3,0,3,1);
freq = hslider("[1]freq",440,50,2000,0.01);
};
peakfilters(n) = seq(i,n,Filters(i))
with{
Filters(j) = vgroup("Bank %j", fi.peak_eq(Lfx, Fx, B))
with{
//freq = hslider("[1]freq",440,50,2000,0.01);
ctFreq = hslider("[0]Center Frequency[style:knob]",441,50,1000,0.1);
lfoFreq = hslider("[2]LFO Frequency[style:knob]",5,0.1,20,0.01);
B = hslider("[3]LFO Depth[style:knob]",500*(j+1),1,10000,1);
//ResFreq = os.osc(lfoFreq)*lfoDepth + ctFreq : max(30);
//B = Fx/hslider("[1]Q[style:knob]",5,1,30,0.1);
Fx = os.osc(lfoFreq)*B + ctFreq ;
Lfx = hslider("[0]Gain(dB)[style : knob]", 0, -20, 20, 0.1);
};
};
subtractive = waveGenerator : hgroup("[1]Filter", peakfilters(2));
envelope = hgroup("[2]Envelope",en.adsr(attack,decay,sustain,release,gate)*gain*0.7)
with{
attack = hslider("[0]Attack[style:knob]",50,1,1000,1)*0.001;
decay = hslider("[1]Decay[style:knob]",50,1,1000,1)*0.001;
sustain = hslider("[2]Sustain[style:knob]",0.8,0.01,1,1);
release = hslider("[3]Release[style:knob]",50,1,1000,1)*0.001;
gain = hslider("[4]gain[style:knob]",1,0,1,0.01);
gate = button("[5]gate");
};
process = vgroup("Subtractive Synthesizer",subtractive*envelope) ;
//effect = dm.zita_light;
//process = subtractive; | https://raw.githubusercontent.com/SuyashRamteke/FAUST---Real-time-Audio-Signal-Processing/ca24b8d650b6d77435d8128b0aa8e4d8b6022c30/PeakFilter.dsp | faust | freq = hslider("[1]freq",440,50,2000,0.01);
ResFreq = os.osc(lfoFreq)*lfoDepth + ctFreq : max(30);
B = Fx/hslider("[1]Q[style:knob]",5,1,30,0.1);
effect = dm.zita_light;
process = subtractive; | import("stdfaust.lib");
waveGenerator = hgroup("[0]Wave Generator",no.noise,os.triangle(freq),os.square(freq),os.sawtooth(freq) : ba.selectn(4,wave))
with{
wave = nentry("[0]Waveform",3,0,3,1);
freq = hslider("[1]freq",440,50,2000,0.01);
};
peakfilters(n) = seq(i,n,Filters(i))
with{
Filters(j) = vgroup("Bank %j", fi.peak_eq(Lfx, Fx, B))
with{
ctFreq = hslider("[0]Center Frequency[style:knob]",441,50,1000,0.1);
lfoFreq = hslider("[2]LFO Frequency[style:knob]",5,0.1,20,0.01);
B = hslider("[3]LFO Depth[style:knob]",500*(j+1),1,10000,1);
Fx = os.osc(lfoFreq)*B + ctFreq ;
Lfx = hslider("[0]Gain(dB)[style : knob]", 0, -20, 20, 0.1);
};
};
subtractive = waveGenerator : hgroup("[1]Filter", peakfilters(2));
envelope = hgroup("[2]Envelope",en.adsr(attack,decay,sustain,release,gate)*gain*0.7)
with{
attack = hslider("[0]Attack[style:knob]",50,1,1000,1)*0.001;
decay = hslider("[1]Decay[style:knob]",50,1,1000,1)*0.001;
sustain = hslider("[2]Sustain[style:knob]",0.8,0.01,1,1);
release = hslider("[3]Release[style:knob]",50,1,1000,1)*0.001;
gain = hslider("[4]gain[style:knob]",1,0,1,0.01);
gate = button("[5]gate");
};
process = vgroup("Subtractive Synthesizer",subtractive*envelope) ; |
d1a7cd64fc98ca8d2a646ad5a7cf15052b9f4de6a689314208bec956c0c29bd9 | SuyashRamteke/FAUST---Real-time-Audio-Signal-Processing | dx7.dsp | import("stdfaust.lib");
freq = hslider("freq", 440, 100, 1000, 0.01);
gain = hslider("gain", 0.5, 0, 1, 0.01);
gate = button("gate") ; //en.adsr(0.01, 0.01, 0.9, 0.1);
//timbre(f) = os.sawtooth(f)*0.5 + os.sawtooth(f*2)*0.25 + os.sawtooth(f*4)*0.125;
dxOsc(ctfreq, a, d, s, r) = os.osc(ctfreq)*envelope*0.5
with{
//freq = hslider("[0]Center Frequency[style:knob]",440,50,1000,0.1);
//mod = hslider("[1]Modulating Frequency[style:knob]",5,0.1,20,0.01);
//index = hslider("[2]Index", 2, 1, 10, 0.01);
//t = button("Gate");
envelope = hgroup("Envelope", en.adsr(a,d,s,r))
with{
a = hslider("[0]Attack [style:knob]", 0.01, 0.01, 1, 0.01) : si.smoo;
d = hslider("[1]Decay [style:knob]", 0.1, 0.01, 1, 0.01) : si.smoo;
s = hslider("[2]Sustain [style:knob]", 0.5, 0, 1, 0.01) : si.smoo;
r = hslider("[3]Release [style:knob]", 0.5, 0.01, 1, 0.01) : si.smoo;
};
};
simplepatch = dxOsc(freq, 0.01, 0.01, 1, 0.01) : dxOsc(freq, 0.01, 0.01, 1, 0.01) ;
peakfilters(n) = hgroup("PeakFIlters", seq(i,n,Filters(i)))
with{
Filters(j) = vgroup("Bank %j", fi.peak_eq(Lfx, Fx, B))
with{
//freq = hslider("[1]freq",440,50,2000,0.01);
ctFreq = hslider("[0]Center Frequency[style:knob]",441,50,1000,0.1);
lfoFreq = hslider("[1]LFO Frequency[style:knob]",5,0.1,20,0.01);
B = hslider("[2]LFO Depth[style:knob]",500*(j+1),1,10000,1);
//ResFreq = os.osc(lfoFreq)*lfoDepth + ctFreq : max(30);
//B = Fx/hslider("[1]Q[style:knob]",5,1,30,0.1);
Fx = os.osc(lfoFreq)*B + ctFreq ;
Lfx = hslider("[3]Gain(dB)[style : knob]", 0, -20, 20, 0.1);
};
};
envelope = hgroup("Env", en.adsr(a,d,s,r))
with{
a = hslider("[0]Attack [style:knob]", 0.01, 0.01, 1, 0.01) : si.smoo;
d = hslider("[1]Decay [style:knob]", 0.1, 0.01, 1, 0.01) : si.smoo;
s = hslider("[2]Sustain [style:knob]", 0.5, 0, 1, 0.01) : si.smoo;
r = hslider("[3]Release [style:knob]", 0.5, 0.01, 1, 0.01) : si.smoo;
};
};
process = gain*gate : simplepatch : peakfilters(2) ;
//effect = dm.zita_light;
| https://raw.githubusercontent.com/SuyashRamteke/FAUST---Real-time-Audio-Signal-Processing/ca24b8d650b6d77435d8128b0aa8e4d8b6022c30/dx7.dsp | faust | en.adsr(0.01, 0.01, 0.9, 0.1);
timbre(f) = os.sawtooth(f)*0.5 + os.sawtooth(f*2)*0.25 + os.sawtooth(f*4)*0.125;
freq = hslider("[0]Center Frequency[style:knob]",440,50,1000,0.1);
mod = hslider("[1]Modulating Frequency[style:knob]",5,0.1,20,0.01);
index = hslider("[2]Index", 2, 1, 10, 0.01);
t = button("Gate");
freq = hslider("[1]freq",440,50,2000,0.01);
ResFreq = os.osc(lfoFreq)*lfoDepth + ctFreq : max(30);
B = Fx/hslider("[1]Q[style:knob]",5,1,30,0.1);
effect = dm.zita_light; | import("stdfaust.lib");
freq = hslider("freq", 440, 100, 1000, 0.01);
gain = hslider("gain", 0.5, 0, 1, 0.01);
dxOsc(ctfreq, a, d, s, r) = os.osc(ctfreq)*envelope*0.5
with{
envelope = hgroup("Envelope", en.adsr(a,d,s,r))
with{
a = hslider("[0]Attack [style:knob]", 0.01, 0.01, 1, 0.01) : si.smoo;
d = hslider("[1]Decay [style:knob]", 0.1, 0.01, 1, 0.01) : si.smoo;
s = hslider("[2]Sustain [style:knob]", 0.5, 0, 1, 0.01) : si.smoo;
r = hslider("[3]Release [style:knob]", 0.5, 0.01, 1, 0.01) : si.smoo;
};
};
simplepatch = dxOsc(freq, 0.01, 0.01, 1, 0.01) : dxOsc(freq, 0.01, 0.01, 1, 0.01) ;
peakfilters(n) = hgroup("PeakFIlters", seq(i,n,Filters(i)))
with{
Filters(j) = vgroup("Bank %j", fi.peak_eq(Lfx, Fx, B))
with{
ctFreq = hslider("[0]Center Frequency[style:knob]",441,50,1000,0.1);
lfoFreq = hslider("[1]LFO Frequency[style:knob]",5,0.1,20,0.01);
B = hslider("[2]LFO Depth[style:knob]",500*(j+1),1,10000,1);
Fx = os.osc(lfoFreq)*B + ctFreq ;
Lfx = hslider("[3]Gain(dB)[style : knob]", 0, -20, 20, 0.1);
};
};
envelope = hgroup("Env", en.adsr(a,d,s,r))
with{
a = hslider("[0]Attack [style:knob]", 0.01, 0.01, 1, 0.01) : si.smoo;
d = hslider("[1]Decay [style:knob]", 0.1, 0.01, 1, 0.01) : si.smoo;
s = hslider("[2]Sustain [style:knob]", 0.5, 0, 1, 0.01) : si.smoo;
r = hslider("[3]Release [style:knob]", 0.5, 0.01, 1, 0.01) : si.smoo;
};
};
process = gain*gate : simplepatch : peakfilters(2) ;
|
8b3a05c8e63bb11de0432d6aca0f9ee08af987a0222591f16e8895e7adde4788 | brummer10/guitarix | phaser.dsp | declare id "phaser";
declare name "Phaser";
declare category "Modulation";
//phaser taken from effect.lib
// by Julius O. Smith III
import("stdfaust.lib");
import("stdfaust.lib");
vibrato_mono(sections,phase01,fb,width,frqmin,fratio,frqmax,speed) =
(+ : seq(i,sections,ap2p(R,th(i)))) ~ *(fb)
with {
// second-order resonant digital allpass given fi.pole radius and angle:
ap2p(R,th) = fi.tf2(a2,a1,1,a1,a2) with {
a2 = R^2;
a1 = -2*R*cos(th);
};
R = exp(-pi*width/ma.SR);
cososc = os.oscrc;
sinosc = os.oscrs;
osc = cososc(speed) * phase01 + sinosc(speed) * (1-phase01);
lfo = (1-osc)/2; // in [0,1]
pi = 4*atan(1);
thmin = 2*pi*frqmin/ma.SR;
thmax = 2*pi*frqmax/ma.SR;
th1 = thmin + (thmax-thmin)*lfo;
th(i) = (fratio^(i+1))*th1;
};
phaser_mono(Notches,phase01,width,frqmin,fratio,frqmax,speed,depth,fb,invert) =
_ <: *(g1) + g2mi*vibrato_mono(Notches,phase01,fb,width,frqmin,fratio,frqmax,speed)
with { // depth=0 => direct-signal only
g1 = 1-depth/2; // depth=1 => phaser mode (equal sum of direct and allpass-pm.chain)
g2 = depth/2; // depth=2 => vibrato mode (allpass-pm.chain signal only)
g2mi = select2(invert,g2,-g2); // inversion negates the allpass-pm.chain signal
};
phaser_stereo(Notches,width,frqmin,fratio,frqmax,speed,depth,fb,invert)
= phaser_mono(Notches,0,width,frqmin,fratio,frqmax,speed,depth,fb,invert),
phaser_mono(Notches,1,width,frqmin,fratio,frqmax,speed,depth,fb,invert);
phaser_stereogx = *(level),*(level) : phaser_stereo(Notches,width,frqmin,fratio,frqmax,freq,mdepth,fb,invert)
with {
Notches = 4;
freq = hslider("Speed [unit:Hz] ", 0.5, 0, 10, 0.01);
depth = hslider("depth", 1, 0, 1, 0.01);
fb = hslider("feedback gain", 0, 0, 1, 0.01);
width = hslider("Notch width [unit:Hz]", 1000, 10, 5000, 1);
vibr = checkbox("VibratoMode[enum:direct | vibrato]");
frqmin = hslider("MinNotch1Freq [unit:Hz] ", 100, 20, 5000, 1);
frqmax = hslider("MaxNotch1Freq [unit:Hz] ", 800, 20, 10000, 1) : max(frqmin);
fratio = hslider("NotchFreq", 1.5, 1.1, 4, 0.01);
mdepth = select2(vibr,depth,2);
invert = checkbox("invert[enum:linear|invert]");
level = hslider("level [unit:dB]", 0, -60, 10, 0.1) : ba.db2linear;
};
process = phaser_stereogx;
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/phaser.dsp | faust | phaser taken from effect.lib
by Julius O. Smith III
second-order resonant digital allpass given fi.pole radius and angle:
in [0,1]
depth=0 => direct-signal only
depth=1 => phaser mode (equal sum of direct and allpass-pm.chain)
depth=2 => vibrato mode (allpass-pm.chain signal only)
inversion negates the allpass-pm.chain signal | declare id "phaser";
declare name "Phaser";
declare category "Modulation";
import("stdfaust.lib");
import("stdfaust.lib");
vibrato_mono(sections,phase01,fb,width,frqmin,fratio,frqmax,speed) =
(+ : seq(i,sections,ap2p(R,th(i)))) ~ *(fb)
with {
ap2p(R,th) = fi.tf2(a2,a1,1,a1,a2) with {
a2 = R^2;
a1 = -2*R*cos(th);
};
R = exp(-pi*width/ma.SR);
cososc = os.oscrc;
sinosc = os.oscrs;
osc = cososc(speed) * phase01 + sinosc(speed) * (1-phase01);
pi = 4*atan(1);
thmin = 2*pi*frqmin/ma.SR;
thmax = 2*pi*frqmax/ma.SR;
th1 = thmin + (thmax-thmin)*lfo;
th(i) = (fratio^(i+1))*th1;
};
phaser_mono(Notches,phase01,width,frqmin,fratio,frqmax,speed,depth,fb,invert) =
_ <: *(g1) + g2mi*vibrato_mono(Notches,phase01,fb,width,frqmin,fratio,frqmax,speed)
};
phaser_stereo(Notches,width,frqmin,fratio,frqmax,speed,depth,fb,invert)
= phaser_mono(Notches,0,width,frqmin,fratio,frqmax,speed,depth,fb,invert),
phaser_mono(Notches,1,width,frqmin,fratio,frqmax,speed,depth,fb,invert);
phaser_stereogx = *(level),*(level) : phaser_stereo(Notches,width,frqmin,fratio,frqmax,freq,mdepth,fb,invert)
with {
Notches = 4;
freq = hslider("Speed [unit:Hz] ", 0.5, 0, 10, 0.01);
depth = hslider("depth", 1, 0, 1, 0.01);
fb = hslider("feedback gain", 0, 0, 1, 0.01);
width = hslider("Notch width [unit:Hz]", 1000, 10, 5000, 1);
vibr = checkbox("VibratoMode[enum:direct | vibrato]");
frqmin = hslider("MinNotch1Freq [unit:Hz] ", 100, 20, 5000, 1);
frqmax = hslider("MaxNotch1Freq [unit:Hz] ", 800, 20, 10000, 1) : max(frqmin);
fratio = hslider("NotchFreq", 1.5, 1.1, 4, 0.01);
mdepth = select2(vibr,depth,2);
invert = checkbox("invert[enum:linear|invert]");
level = hslider("level [unit:dB]", 0, -60, 10, 0.1) : ba.db2linear;
};
process = phaser_stereogx;
|
456e2ba534bc028d00ee4a7d8fe4cab6795385d2c3f35a0411bd6f547fa4e5a0 | brummer10/guitarix | noisegate.dsp | import("stdfaust.lib");
ngate = fvariable(float ngate, <math.h>);
process = *(ngate);
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/noisegate.dsp | faust | import("stdfaust.lib");
ngate = fvariable(float ngate, <math.h>);
process = *(ngate);
|
|
9fd1fe3eaee4fdc754cdee8c4451e37917228e86609893a8a344d8115e7a0d99 | brummer10/guitarix | balance1.dsp |
import("stdfaust.lib");
import("guitarix.lib");
process = _ <: balance(balance_ctrl.bal);
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/balance1.dsp | faust |
import("stdfaust.lib");
import("guitarix.lib");
process = _ <: balance(balance_ctrl.bal);
|
|
ffa53597cb0a90eaf4f41ec6bd0d9973af8ef263af061b11da2895abc5e602ee | brummer10/guitarix | balance.dsp |
import("stdfaust.lib");
import("guitarix.lib");
process = balance(balance_ctrl.bal);
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/balance.dsp | faust |
import("stdfaust.lib");
import("guitarix.lib");
process = balance(balance_ctrl.bal);
|
|
8701c2c33ad66c989ab58018035fb267f50a14c1ba870f1e1c7241cd139fe0a6 | brummer10/guitarix | tubevibrato.dsp | declare id "tube";
import("stdfaust.lib");
import("guitarix.lib");
vibrato = vslider("vibrato", 0, 0, 2, 0.02);
process = + ~ *(vibrato/2) : sym_clip(0.7);
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/tubevibrato.dsp | faust | declare id "tube";
import("stdfaust.lib");
import("guitarix.lib");
vibrato = vslider("vibrato", 0, 0, 2, 0.02);
process = + ~ *(vibrato/2) : sym_clip(0.7);
|
|
b26a107601cdcc4a342e8c49f4c85d254ac1ede4b39bae38cc7c432ab592f431 | brummer10/guitarix | vibe_mono_lfo_sine.dsp | import("guitarix.lib");
import("stdfaust.lib");
process = os.oscs(vibe_mono_lfo_ctrl.freq) : scale with {
scale = (1 + _) / 2;
};
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/vibe_mono_lfo_sine.dsp | faust | import("guitarix.lib");
import("stdfaust.lib");
process = os.oscs(vibe_mono_lfo_ctrl.freq) : scale with {
scale = (1 + _) / 2;
};
|
|
01e5609258387a099f1755d37b9bffcba2e33804e5a75dbe86653e2a47e4d450 | brummer10/guitarix | drive.dsp |
import("stdfaust.lib");
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/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/drive.dsp | faust |
import("stdfaust.lib");
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;
};
|
|
d9d75f6bf4a06bc1963d1b796aa750f302c732baa91c308a41352e0f8226e333 | brummer10/guitarix | tube.dsp |
import("stdfaust.lib");
import("guitarix.lib");
fuzzy = vslider("fuzzy[name:ba.count]", 1, -3, 10, 1);
process = fuzzy_tube(a,b,c,fuzzy)
with {
a = 2;
b = 1;
c = 0.5;
};
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/tube.dsp | faust |
import("stdfaust.lib");
import("guitarix.lib");
fuzzy = vslider("fuzzy[name:ba.count]", 1, -3, 10, 1);
process = fuzzy_tube(a,b,c,fuzzy)
with {
a = 2;
b = 1;
c = 0.5;
};
|
|
cf39c2c1a073127159550324af2a0554a60d47f92366a368d16c47fb3946c749 | brummer10/guitarix | AntiAlias.dsp |
import("stdfaust.lib");
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/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/AntiAlias.dsp | faust |
import("stdfaust.lib");
import("guitarix.lib");
faas1 = vgroup("anti_aliase", vslider("feedback[name:Feedback]", 0.3, 0.3, 0.9, 0.01));
process = add_dc : +~_''*faas1;
|
|
5f62c43a62e64a4ccaba066381ec62eacfeef489274de0343c5251755a05b2b1 | brummer10/guitarix | presence_level.dsp | declare id "con";
import("stdfaust.lib");
import("guitarix.lib");
gain = vslider("Level[alias]", 1, 0.5, 5, 0.5);
process = *(gain * pow(10, -0.1 * gain)); // FIXME
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/presence_level.dsp | faust | FIXME | declare id "con";
import("stdfaust.lib");
import("guitarix.lib");
gain = vslider("Level[alias]", 1, 0.5, 5, 0.5);
|
5545125c0b86a9fbd003be6421fea2dcecdb21773ca316db8f694a6516588ab3 | brummer10/guitarix | gx_outputlevel.dsp |
import("stdfaust.lib");
import("guitarix.lib");
gain = vslider(".amp.out_master[name:Level]", 0, -50, 4, 0.1) : ba.db2linear : smoothi(0.999);
process = *(gain), *(gain);
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/gx_outputlevel.dsp | faust |
import("stdfaust.lib");
import("guitarix.lib");
gain = vslider(".amp.out_master[name:Level]", 0, -50, 4, 0.1) : ba.db2linear : smoothi(0.999);
process = *(gain), *(gain);
|
|
4a1046b13cd1cb3df3630ff606af93d629c751fd64e977f81a0b7f9207aaf519 | brummer10/guitarix | gxnoamp.dsp | declare id "noamp"; // in amp tube ba.selector
declare name "---";
import("stdfaust.lib");
import("guitarix.lib");
process = *(gain1) with {
gain1 = ampctrl.gain1;
};
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/gxnoamp.dsp | faust | in amp tube ba.selector | declare name "---";
import("stdfaust.lib");
import("guitarix.lib");
process = *(gain1) with {
gain1 = ampctrl.gain1;
};
|
1e9aa60303d5921d76f2393bfd69431b5a5f99a67c9320338bc806fbe75bb545 | brummer10/guitarix | outputgain.dsp | declare name "amp";
import("stdfaust.lib");
import("guitarix.lib");
gain = vslider("out_master[name:out / master]", 0, -40, 40, 0.1) : ba.db2linear : smoothi(0.999);
process = *(gain);
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/outputgain.dsp | faust | declare name "amp";
import("stdfaust.lib");
import("guitarix.lib");
gain = vslider("out_master[name:out / master]", 0, -40, 40, 0.1) : ba.db2linear : smoothi(0.999);
process = *(gain);
|
|
c921ef148e3899589af3d947bbc4345199c7a7a6e1229dd4f709a417d22636cd | brummer10/guitarix | inputgain.dsp | declare name "amp";
import("stdfaust.lib");
import("guitarix.lib");
gain = vslider("in_level[name:in / level]", 0, -40, 40, 0.1) : ba.db2linear : smoothi(0.999);
process = *(gain);
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/inputgain.dsp | faust | declare name "amp";
import("stdfaust.lib");
import("guitarix.lib");
gain = vslider("in_level[name:in / level]", 0, -40, 40, 0.1) : ba.db2linear : smoothi(0.999);
process = *(gain);
|
|
adaa30baa30aa744864689ab782eaf51e5912560ad314b1cff0fe6e8313adfb9 | brummer10/guitarix | gx_outputlevel.dsp | import("stdfaust.lib");
import("guitarix.lib");
gain = vslider(".amp.out_master[name:Level][tooltip:Overall Rack output Volume]", 0, -50, 4, 0.1) : ba.db2linear : smoothi(0.999);
process = *(gain), *(gain);
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/gx_outputlevel.dsp | faust | import("stdfaust.lib");
import("guitarix.lib");
gain = vslider(".amp.out_master[name:Level][tooltip:Overall Rack output Volume]", 0, -50, 4, 0.1) : ba.db2linear : smoothi(0.999);
process = *(gain), *(gain);
|
|
9db285badde55b42289b9ea71255b5bf2643f8e3b39f62e0e7a0cc5c9d74c36e | brummer10/guitarix | gx_ampout.dsp | declare id "amp";
declare name "Amplifier";
import("stdfaust.lib");
import("guitarix.lib");
gain = vslider(".amp.out_amp[name:Level]", 0, -20, 4, 0.1) : ba.db2linear : smoothi(0.999);
process = *(gain);
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/gx_ampout.dsp | faust | declare id "amp";
declare name "Amplifier";
import("stdfaust.lib");
import("guitarix.lib");
gain = vslider(".amp.out_amp[name:Level]", 0, -20, 4, 0.1) : ba.db2linear : smoothi(0.999);
process = *(gain);
|
|
2f694f3555ba08d3846eff6006d9b54c4df0f48712752f8b050c39beb8ea4c09 | brummer10/guitarix | gxnoamp.dsp | declare id "noamp"; // in amp tube ba.selector
declare name "---";
import("stdfaust.lib");
import("guitarix.lib");
process = *(preamp) : *(gain1) with {
gain1 = ampctrl.gain1;
preamp = ampctrl.preamp;
};
| https://raw.githubusercontent.com/brummer10/guitarix/b3ebbb628b61a72cd8cbd5c4a753c35723e262a0/trunk/src/LV2/faust/gxnoamp.dsp | faust | in amp tube ba.selector | declare name "---";
import("stdfaust.lib");
import("guitarix.lib");
process = *(preamp) : *(gain1) with {
gain1 = ampctrl.gain1;
preamp = ampctrl.preamp;
};
|
5fef2c6ce96dd9d99cfd1ad4908975660e1bd7a9201466845113df46a585c005 | brummer10/guitarix | vibe_mono_lfo_triangle.dsp | import("guitarix.lib");
import("stdfaust.lib");
trianglewave(periodsamps) = rawsaw(periodsamps) : triangleshaper with {
triangleshaper = 2 * _ / periodsamps <: select2(_ > 1, _, 2 - _);
};
process = trianglewave(periodsamps) with {
periodsamps = ma.SR/vibe_mono_lfo_ctrl.freq;
};
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/vibe_mono_lfo_triangle.dsp | faust | import("guitarix.lib");
import("stdfaust.lib");
trianglewave(periodsamps) = rawsaw(periodsamps) : triangleshaper with {
triangleshaper = 2 * _ / periodsamps <: select2(_ > 1, _, 2 - _);
};
process = trianglewave(periodsamps) with {
periodsamps = ma.SR/vibe_mono_lfo_ctrl.freq;
};
|
|
2bc6425f81922627157545c0d87b659260abad55fe6de451d2b96d4c7652523e | brummer10/guitarix | vibe_lfo_sine.dsp | import("guitarix.lib");
import("stdfaust.lib");
process = os.oscrq(vibe_lfo_ctrl.freq) : phase_shift(vibe_lfo_ctrl.phase) <: scale, scale with {
phase_shift(p, x, y) = x, x * cos(p) + y * sin(p);
scale = (1 + _) / 2;
};
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/vibe_lfo_sine.dsp | faust | import("guitarix.lib");
import("stdfaust.lib");
process = os.oscrq(vibe_lfo_ctrl.freq) : phase_shift(vibe_lfo_ctrl.phase) <: scale, scale with {
phase_shift(p, x, y) = x, x * cos(p) + y * sin(p);
scale = (1 + _) / 2;
};
|
|
4b12e04e06f43c3fcad75e2e7ed433c2181b3c04dccec87f40ecb66463d65670 | brummer10/guitarix | lowpass_up.dsp |
import("stdfaust.lib");
import("guitarix.lib");
ssclip(x) = a : sym_clip(0.9) with {
th = 0.33;
a = ba.if(abs(x)<th, 2*x, copysign(x,(3-(2-x*3)^2)/3));
};
process = fi.lowpass(1,5631): fi.highpass(1,80):ssclip ;
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/lowpass_up.dsp | faust |
import("stdfaust.lib");
import("guitarix.lib");
ssclip(x) = a : sym_clip(0.9) with {
th = 0.33;
a = ba.if(abs(x)<th, 2*x, copysign(x,(3-(2-x*3)^2)/3));
};
process = fi.lowpass(1,5631): fi.highpass(1,80):ssclip ;
|
|
c5e91eeb64732eeb6f7f15a2385f57a74186e1edad1daf2f8934961662c31854 | brummer10/guitarix | highbooster.dsp | declare name "Treble boost";
declare category "Tone Control";
import("stdfaust.lib");
level = vslider("Level", 0.5, 0.0, 20, 0.5) ;
hfboost(level,fx,x) = x + (ba.db2linear(level)-1)*fi.highpass(1,fx,x);
process = hfboost(level, 1500);
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/highbooster.dsp | faust | declare name "Treble boost";
declare category "Tone Control";
import("stdfaust.lib");
level = vslider("Level", 0.5, 0.0, 20, 0.5) ;
hfboost(level,fx,x) = x + (ba.db2linear(level)-1)*fi.highpass(1,fx,x);
process = hfboost(level, 1500);
|
|
2674844876469e0ee1906877cae03138da135d848e82693f83a328902716021d | brummer10/guitarix | noiser.dsp | declare id "withe_noise"; //
declare name "withe no.noise";
import("stdfaust.lib");
import("guitarix.lib");
/****************************************************************
** no.noise to avoid denormals
*/
randomr = +(12345)~*(1103515245);
noiser = (randomr/2147483647.0) * 0.00000000001;
process = + ( noiser);
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/noiser.dsp | faust |
***************************************************************
** no.noise to avoid denormals
| declare name "withe no.noise";
import("stdfaust.lib");
import("guitarix.lib");
randomr = +(12345)~*(1103515245);
noiser = (randomr/2147483647.0) * 0.00000000001;
process = + ( noiser);
|
429c866ee8ed6f726f67ad8419400bd7043bb36141533f1c6ab96517136a5cd1 | brummer10/guitarix | gxnoamp_stereo.dsp | declare id "noampstereo"; // in amp tube ba.selector
declare name "---";
import("stdfaust.lib");
import("guitarix.lib");
amp = *(preamp) : *(gain1) with {
gain1 = ampctrl.gain1;
preamp = ampctrl.preamp;
};
process = amp, amp;
| https://raw.githubusercontent.com/brummer10/guitarix/b3ebbb628b61a72cd8cbd5c4a753c35723e262a0/trunk/src/LV2/faust/gxnoamp_stereo.dsp | faust | in amp tube ba.selector | declare name "---";
import("stdfaust.lib");
import("guitarix.lib");
amp = *(preamp) : *(gain1) with {
gain1 = ampctrl.gain1;
preamp = ampctrl.preamp;
};
process = amp, amp;
|
1d0f9d2425a910383924b9b4e840c3313eb92a2430adcd0629d00c884c989e69 | brummer10/guitarix | fizz_remover.dsp | declare id "antyfizz";
declare name "Fizz Remover";
//declare category "Tone Control";
declare license "BSD";
import("stdfaust.lib");
process = fi.peak_eq_cq(-8.5,5556,8.5), fi.peak_eq_cq(-8.5,5556,8.5);
| https://raw.githubusercontent.com/brummer10/guitarix/750a6af1cb7ef9781b750c84a651076fba03d9d3/trunk/src/faust/fizz_remover.dsp | faust | declare category "Tone Control"; | declare id "antyfizz";
declare name "Fizz Remover";
declare license "BSD";
import("stdfaust.lib");
process = fi.peak_eq_cq(-8.5,5556,8.5), fi.peak_eq_cq(-8.5,5556,8.5);
|
0bbf7203b0e321c35c749dca6b26f71b0a7a89ca14ecdf74ec2a6dd50fb0e518 | brummer10/guitarix | low_high_cut.dsp | declare id "low_highcut";
declare name "low high cut";
declare shortname "L/H/Filter";
declare category "Tone Control";
import("stdfaust.lib");
import("guitarix.lib");
process = +(anti_denormal_ac) : ef.speakerbp(23.,999.);
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/low_high_cut.dsp | faust | declare id "low_highcut";
declare name "low high cut";
declare shortname "L/H/Filter";
declare category "Tone Control";
import("stdfaust.lib");
import("guitarix.lib");
process = +(anti_denormal_ac) : ef.speakerbp(23.,999.);
|
|
4a71be7aed0d08578417a9f46df012a06422f2be32dd6942479e0425dc662109 | brummer10/guitarix | softclip.dsp | declare id "amp.clip";
import("stdfaust.lib");
import("guitarix.lib");
b = hslider(".amp.fuzz", 0.0, 0.0, 1.99, 0.01);
a = 2-b;
//cut(x) = (ma.fabs (x-a) -ma.fabs (x+a))*0.5;
r(x) = x-sym_clip(a*0.88);
process(x) = x:sym_clip(a*0.88) <:+(r(x)*0.33);
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/softclip.dsp | faust | cut(x) = (ma.fabs (x-a) -ma.fabs (x+a))*0.5; | declare id "amp.clip";
import("stdfaust.lib");
import("guitarix.lib");
b = hslider(".amp.fuzz", 0.0, 0.0, 1.99, 0.01);
a = 2-b;
r(x) = x-sym_clip(a*0.88);
process(x) = x:sym_clip(a*0.88) <:+(r(x)*0.33);
|
88eeaeccca35e51afa0af529a4f99f368d0b6abd1603046b909ce0106b0f2868 | brummer10/guitarix | stereo_noiser.dsp | declare id "withe_noise_stereo"; //
declare name "withe noise_stereo";
import("stdfaust.lib");
import("guitarix.lib");
/****************************************************************
** no.noise to avoid denormals
*/
randomr = +(12345)~*(1103515245);
noiser = (randomr/2147483647.0) * 0.00000000001;
process = + ( noiser), + ( noiser);
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/stereo_noiser.dsp | faust |
***************************************************************
** no.noise to avoid denormals
| declare name "withe noise_stereo";
import("stdfaust.lib");
import("guitarix.lib");
randomr = +(12345)~*(1103515245);
noiser = (randomr/2147483647.0) * 0.00000000001;
process = + ( noiser), + ( noiser);
|
780fb3903005d34a715067b4e7474c98b9f5ad825bd91f0ef5dbd1b445086a6a | brummer10/guitarix | tranyclipper.dsp | declare id "tranclip";
declare name "Clip";
declare category "Fuzz";
declare samplerate "96000";
import("stdfaust.lib");
import("trany.lib");
process = tranystage(TB_7199P_68k,86.0,2700.0,3.571981) : tranystage(TB_7199P_68k,86.0,2700.0,3.571981) ;
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/tranyclipper.dsp | faust | declare id "tranclip";
declare name "Clip";
declare category "Fuzz";
declare samplerate "96000";
import("stdfaust.lib");
import("trany.lib");
process = tranystage(TB_7199P_68k,86.0,2700.0,3.571981) : tranystage(TB_7199P_68k,86.0,2700.0,3.571981) ;
|
|
e95d2154721b722b327a54ae399b26227b9de196f80b0a6b772087a89d9f09ce | brummer10/guitarix | tranyclipper3.dsp | declare id "tranclip";
declare name "Clip";
declare category "Fuzz";
declare samplerate "96000";
import("stdfaust.lib");
import("trany.lib");
process = tranystage(TB_KT88_68k,86.0,2700.0,5.562895) : tranystage(TB_KT88_68k,86.0,2700.0,5.562895) ;
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/tranyclipper3.dsp | faust | declare id "tranclip";
declare name "Clip";
declare category "Fuzz";
declare samplerate "96000";
import("stdfaust.lib");
import("trany.lib");
process = tranystage(TB_KT88_68k,86.0,2700.0,5.562895) : tranystage(TB_KT88_68k,86.0,2700.0,5.562895) ;
|
|
c90402819b5ede6cfe899252e6b0a9b3b73ed739518f3f052a980db0e0a90bb9 | brummer10/guitarix | highbooster.dsp | declare id "highbooster";
declare name "Treble Boost";
declare category "Tone Control";
import("stdfaust.lib");
level = vslider("Level[name:Level]", 0.5, 0., 20., 0.5) ;
hfboost(level,fx,x) = x + (ba.db2linear(level)-1)*fi.highpass(1,fx,x);
process = hfboost(level, 1500);
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/highbooster.dsp | faust | declare id "highbooster";
declare name "Treble Boost";
declare category "Tone Control";
import("stdfaust.lib");
level = vslider("Level[name:Level]", 0.5, 0., 20., 0.5) ;
hfboost(level,fx,x) = x + (ba.db2linear(level)-1)*fi.highpass(1,fx,x);
process = hfboost(level, 1500);
|
|
d621fcb0daa5f453118589d4a3eb59fc43a01e100e418b7006c3ce416021d8ff | brummer10/guitarix | delay.dsp | declare name "Delay";
declare category "Echo / Delay";
import("stdfaust.lib");
import("guitarix.lib");
msec = ma.SR/1000.0;
gain = vslider("gain", 0, -20, 20, 0.1) : ba.db2linear : smoothi(0.999);
d = vslider("de.delay", 0, 0, 5000, 10)*msec;
process = _ <: _ + gain * de.fdelay5s(d) :> _;
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/delay.dsp | faust | declare name "Delay";
declare category "Echo / Delay";
import("stdfaust.lib");
import("guitarix.lib");
msec = ma.SR/1000.0;
gain = vslider("gain", 0, -20, 20, 0.1) : ba.db2linear : smoothi(0.999);
d = vslider("de.delay", 0, 0, 5000, 10)*msec;
process = _ <: _ + gain * de.fdelay5s(d) :> _;
|
|
02f0973184f6627c4e7aee4b25446a76e9b9436e7c16e6414f1732188bad0cf6 | brummer10/guitarix | gx_feedback.dsp | declare id "feedback";
declare name "Feedback";
declare category "Tone Control";
import("stdfaust.lib");
import("guitarix.lib");
feedback = hslider("feedback", 0, -1, 1, 0.01);
fbackw = (- : ma.neg ) ~ (feedback * _'''');
wet = vslider("wet_dry", 100, 0, 100, 1) : /(100);
dry = 1 - wet;
process = _<:*(dry),(*(wet): fbackw ):>_;
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/gx_feedback.dsp | faust | declare id "feedback";
declare name "Feedback";
declare category "Tone Control";
import("stdfaust.lib");
import("guitarix.lib");
feedback = hslider("feedback", 0, -1, 1, 0.01);
fbackw = (- : ma.neg ) ~ (feedback * _'''');
wet = vslider("wet_dry", 100, 0, 100, 1) : /(100);
dry = 1 - wet;
process = _<:*(dry),(*(wet): fbackw ):>_;
|
|
a093078094220897ab7c18799f55d59cbf9d40763f4c702d66a20ee073e7b3c3 | brummer10/guitarix | lowpass_down.dsp |
import("stdfaust.lib");
import("reducemaps.lib");
import("guitarix.lib");
vmeter1(x) = attach(x, envelop(x) : vbargraph("v1[unit:dB]", -70, +5));
envelop = abs : max ~ (1.0/ma.SR) : mean(4096) ; // : max(ba.db2linear(-70)) : ba.linear2db;
process = fi.lowpass(1,5631): fi.highpass(1,80): vmeter1 ;
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/lowpass_down.dsp | faust | : max(ba.db2linear(-70)) : ba.linear2db; |
import("stdfaust.lib");
import("reducemaps.lib");
import("guitarix.lib");
vmeter1(x) = attach(x, envelop(x) : vbargraph("v1[unit:dB]", -70, +5));
process = fi.lowpass(1,5631): fi.highpass(1,80): vmeter1 ;
|
f1243ec9d428b091a4b8186135a23a4c9ffe3bebf12d527a8f1e0e15e4ada1c5 | brummer10/guitarix | stage3.dsp | import("stdfaust.lib");
import("guitarix.lib");
/****************************************************************
** Tube Preamp Emulation stage 3
*/
process = hgroup("stage3", BP(stage3))
with {
stage3 = lowpass1(6531.0) : component("amp2.dsp").tubestage(TB_12AX7_250k,194.0,820.0,0.840703) : *(gain3) with {
gain3 = vslider("gain3", 6, -10.0, 20.0, 0.1) : ba.db2linear : smoothi(0.999);
};
};
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/stage3.dsp | faust | ***************************************************************
** Tube Preamp Emulation stage 3
| import("stdfaust.lib");
import("guitarix.lib");
process = hgroup("stage3", BP(stage3))
with {
stage3 = lowpass1(6531.0) : component("amp2.dsp").tubestage(TB_12AX7_250k,194.0,820.0,0.840703) : *(gain3) with {
gain3 = vslider("gain3", 6, -10.0, 20.0, 0.1) : ba.db2linear : smoothi(0.999);
};
};
|
8a07433d00b78c8f924aa7bcd8855b62d9aa5d45d185b853a506d1dc974ae4b0 | brummer10/guitarix | moog.dsp | declare id "moog";
declare name "Moog Filter";
declare category "Tone Control";
declare license "BSD";
import("stdfaust.lib");
import("guitarix.lib");
Q = hslider("Q", 1, 0, 4, 0.1);
fr = hslider("fr", 3000, 440, 6000, 10): smoothi(0.999);
process = ( +(anti_denormal_ac): moogvcfN(Q,fr)), (+(anti_denormal_ac): moogvcfN(Q,fr));
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/moog.dsp | faust | declare id "moog";
declare name "Moog Filter";
declare category "Tone Control";
declare license "BSD";
import("stdfaust.lib");
import("guitarix.lib");
Q = hslider("Q", 1, 0, 4, 0.1);
fr = hslider("fr", 3000, 440, 6000, 10): smoothi(0.999);
process = ( +(anti_denormal_ac): moogvcfN(Q,fr)), (+(anti_denormal_ac): moogvcfN(Q,fr));
|
|
ca4b1beeb92396031ce9bdbfdb0411211d2f5b07fe168ff2fde760d680936a67 | brummer10/guitarix | gx_feedback.dsp | declare id "feedback";
declare name "Feedback";
declare category "Tone Control";
import("stdfaust.lib");
import("guitarix.lib");
feedback = hslider("feedback[name:Feedback]", 0, -1, 1, 0.01);
fbackw = (- : ma.neg ) ~ (feedback * _'''');
wet = vslider("wet_dry[name:Dry/Wet]", 100, 0, 100, 1) : /(100);
dry = 1 - wet;
process = _<:*(dry),(*(wet): fbackw ):>_;
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/gx_feedback.dsp | faust | declare id "feedback";
declare name "Feedback";
declare category "Tone Control";
import("stdfaust.lib");
import("guitarix.lib");
feedback = hslider("feedback[name:Feedback]", 0, -1, 1, 0.01);
fbackw = (- : ma.neg ) ~ (feedback * _'''');
wet = vslider("wet_dry[name:Dry/Wet]", 100, 0, 100, 1) : /(100);
dry = 1 - wet;
process = _<:*(dry),(*(wet): fbackw ):>_;
|
|
fb355abc0288b282a5f06b144dc24406ff8d591f4c3151f048657fa564b64371 | brummer10/guitarix | tube3.dsp | // dsp algorithm from swh ladspa valve plugin (Steve Harrison)
import("stdfaust.lib");
import("guitarix.lib");
g = vslider("g", 1, 0.2, 2, 0.1);
vt = valve.vt(dist, q) : *(g) : ma.neg : valve.vt(dist, q) : ma.neg with
{
q_p = vslider("q", 0.4, 0.4, 1, 0.001);
dist_p = vslider("dist", 0, 0, 1.7, 0.01);
q = -q_p*-q_p*-q_p;
dist = pow(10,dist_p);
};
process = vt ;
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/tube3.dsp | faust | dsp algorithm from swh ladspa valve plugin (Steve Harrison) |
import("stdfaust.lib");
import("guitarix.lib");
g = vslider("g", 1, 0.2, 2, 0.1);
vt = valve.vt(dist, q) : *(g) : ma.neg : valve.vt(dist, q) : ma.neg with
{
q_p = vslider("q", 0.4, 0.4, 1, 0.001);
dist_p = vslider("dist", 0, 0, 1.7, 0.01);
q = -q_p*-q_p*-q_p;
dist = pow(10,dist_p);
};
process = vt ;
|
64491676c7b2cfd08f7fd081a22f3926eb4d9ca590b82f5f8c310ea57eaeff0b | brummer10/guitarix | gx_outputlevel_ladspa.dsp | // Alternate gx_outputlevel definion for ladspa stereo plugin
declare groups ".amp";
import("stdfaust.lib");
import("guitarix.lib");
gain = (slider1 + slider2) : ba.db2linear : smoothi(0.999) with {
slider1 = vslider(".amp.out_master[name:Level]", 0, -50, 4, 0.1);
slider2 = vslider(".amp.out_master_ladspa[name:Ladspa Level]", 0, -20, 20, 0.1);
};
process = *(gain), *(gain);
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/gx_outputlevel_ladspa.dsp | faust | Alternate gx_outputlevel definion for ladspa stereo plugin |
declare groups ".amp";
import("stdfaust.lib");
import("guitarix.lib");
gain = (slider1 + slider2) : ba.db2linear : smoothi(0.999) with {
slider1 = vslider(".amp.out_master[name:Level]", 0, -50, 4, 0.1);
slider2 = vslider(".amp.out_master_ladspa[name:Ladspa Level]", 0, -20, 20, 0.1);
};
process = *(gain), *(gain);
|
5efd1bc8a2d6fea3d3462866f085565736f859200cd26b96793aef5b37d84416 | brummer10/guitarix | gx_outputlevel_ladspa.dsp | // Alternate gx_outputlevel definion for ladspa stereo plugin
declare groups ".amp[Default]";
import("stdfaust.lib");
import("guitarix.lib");
gain = (slider1 + slider2) : ba.db2linear : smoothi(0.999) with {
slider1 = vslider(".amp.out_master[name:Level]", 0, -50, 4, 0.1);
slider2 = vslider(".amp.out_master_ladspa[name:Ladspa Level]", 0, -20, 20, 0.1);
};
process = *(gain), *(gain);
| https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/gx_outputlevel_ladspa.dsp | faust | Alternate gx_outputlevel definion for ladspa stereo plugin |
declare groups ".amp[Default]";
import("stdfaust.lib");
import("guitarix.lib");
gain = (slider1 + slider2) : ba.db2linear : smoothi(0.999) with {
slider1 = vslider(".amp.out_master[name:Level]", 0, -50, 4, 0.1);
slider2 = vslider(".amp.out_master_ladspa[name:Ladspa Level]", 0, -20, 20, 0.1);
};
process = *(gain), *(gain);
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.