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");
|
||||
|
||||
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
|
||||
a = depth*0.2+2.0;
|
||||
b = 2.0;
|
||||
|
|
|
|||
|
|
@ -134,7 +134,7 @@ class faustDisto {
|
|||
//[Begin:instanceConstants]
|
||||
fSampleRate = sample_rate;
|
||||
fConst0 = float(fSampleRate);
|
||||
fConst1 = (15.707963f / fConst0);
|
||||
fConst1 = (125.663704f / fConst0);
|
||||
fConst2 = (1.0f / (fConst1 + 1.0f));
|
||||
fConst3 = (1.0f - fConst1);
|
||||
fConst4 = std::exp((0.0f - (100.0f / fConst0)));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue