Exponential Sigmoid

This commit is contained in:
wan-may 2023-03-21 20:05:09 -03:00
parent eb1a82ac93
commit d9c98c59b3
1 changed files with 4 additions and 4 deletions

View File

@ -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"; }
@ -47,9 +47,9 @@ 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);
for( uint32_t i = 0; i < frames; ++i) {
outputs[chn][i] = limit / ( 1.f + expf(-inputs[chn][i] * gain));
}
}
}