Adjust disto DC cutoff to account for oversampling
This commit is contained in:
parent
988d7926b5
commit
c6c53a41e5
2 changed files with 2 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
import("stdfaust.lib");
|
import("stdfaust.lib");
|
||||||
|
|
||||||
disto_stage(depth, x) = shs*hh(x)+(1.0-shs)*lh(x) : fi.dcblockerat(5.0) with {
|
disto_stage(depth, x) = shs*hh(x)+(1.0-shs)*lh(x) : fi.dcblockerat(40.0) with {
|
||||||
// sigmoid parameters
|
// sigmoid parameters
|
||||||
a = depth*0.2+2.0;
|
a = depth*0.2+2.0;
|
||||||
b = 2.0;
|
b = 2.0;
|
||||||
|
|
|
||||||
|
|
@ -134,7 +134,7 @@ class faustDisto {
|
||||||
//[Begin:instanceConstants]
|
//[Begin:instanceConstants]
|
||||||
fSampleRate = sample_rate;
|
fSampleRate = sample_rate;
|
||||||
fConst0 = float(fSampleRate);
|
fConst0 = float(fSampleRate);
|
||||||
fConst1 = (15.707963f / fConst0);
|
fConst1 = (125.663704f / fConst0);
|
||||||
fConst2 = (1.0f / (fConst1 + 1.0f));
|
fConst2 = (1.0f / (fConst1 + 1.0f));
|
||||||
fConst3 = (1.0f - fConst1);
|
fConst3 = (1.0f - fConst1);
|
||||||
fConst4 = std::exp((0.0f - (100.0f / fConst0)));
|
fConst4 = std::exp((0.0f - (100.0f / fConst0)));
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue