Browse Source

Tweak scaling and VCA limits

tags/v0.4.0
Andrew Belt 7 years ago
parent
commit
34bb30a314
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      src/Blinds.cpp
  2. +1
    -1
      src/Veils.cpp

+ 1
- 1
src/Blinds.cpp View File

@@ -48,7 +48,7 @@ Blinds::Blinds() {
}

static float getChannelOutput(const float *in, float gain, const float *cv, float mod, float *light) {
gain += mod * getf(cv) / 5.0;
gain += mod * fmaxf(getf(cv) / 5.0, 0.0);
*light = gain * 5.0;
return gain * getf(in, 5.0);
}


+ 1
- 1
src/Veils.cpp View File

@@ -56,7 +56,7 @@ static float getChannelOutput(float *in, float gain, float *cv, float response)
if (linear == 0.0)
return 0.0;
const float ex = 200.0;
float exponential = (powf(ex, linear) - 1.0) / (ex - 1.0);
float exponential = rescalef(powf(ex, linear), 1.0, ex, 0.0, 1.0);
out *= crossf(exponential, linear, response);
}
return out;


Loading…
Cancel
Save