Browse Source

Cleaning up build depreciation warnings

tags/v1.1.0^2
hemmer 4 years ago
parent
commit
0b83a68548
2 changed files with 7 additions and 8 deletions
  1. +6
    -7
      src/SpringReverb.cpp
  2. +1
    -1
      src/plugin.hpp

+ 6
- 7
src/SpringReverb.cpp View File

@@ -123,17 +123,16 @@ struct SpringReverb : Module {

// Set lights
float lightRate = 5.0 * args.sampleTime;
vuFilter.setRate(lightRate);
vuFilter.process(std::fabs(wet));
lightFilter.setRate(lightRate);
lightFilter.process(std::fabs(dry*50.0));

float vuValue = vuFilter.peak();
vuFilter.setLambda(1.0f - lightRate);
float vuValue = vuFilter.process(1.f, std::fabs(wet));
lightFilter.setLambda(1.0f - lightRate);
float lightValue = lightFilter.process(1.f, std::fabs(dry*50.0));
for (int i = 0; i < 7; i++) {
float light = std::pow(1.413, i) * vuValue / 10.0 - 1.0;
lights[VU1_LIGHT + i].value = clamp(light, 0.0f, 1.0f);
}
lights[PEAK_LIGHT].value = lightFilter.peak();
lights[PEAK_LIGHT].value = lightValue;
}
};



+ 1
- 1
src/plugin.hpp View File

@@ -16,7 +16,7 @@ extern Model *modelDualAtenuverter;
extern Model *modelPercall;


struct Knurlie : SVGScrew {
struct Knurlie : SvgScrew {
Knurlie() {
sw->svg = APP->window->loadSvg(asset::plugin(pluginInstance, "res/Knurlie.svg"));
sw->wrap();


Loading…
Cancel
Save