Exponential Sigmoid
This commit is contained in:
parent
eb1a82ac93
commit
d9c98c59b3
|
@ -12,7 +12,7 @@ public:
|
|||
|
||||
protected:
|
||||
const char *getLabel() const override { return "yaw-brick"; }
|
||||
const char *getDescription() const override { return "Limiter"; }
|
||||
const char *getDescription() const override { return "Sigma Male Limiter"; }
|
||||
const char *getMaker() const override { return "yaw-audio"; }
|
||||
const char *getHomePage() const override { return "https://yaw.man/plugins/yaw-brick"; }
|
||||
const char *getLicense() const override { return "Fuck you pay me"; }
|
||||
|
@ -48,8 +48,8 @@ protected:
|
|||
for (int chn = 0; chn < 2; ++chn)
|
||||
{
|
||||
for( uint32_t i = 0; i < frames; ++i) {
|
||||
float x = inputs[chn][i];
|
||||
outputs[chn][i] = gain * limit * x / (1.f + gain * x);
|
||||
|
||||
outputs[chn][i] = limit / ( 1.f + expf(-inputs[chn][i] * gain));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue