Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
dedmen committed Apr 15, 2017
1 parent f47f6e3 commit d4ef325
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ts/src/RadioEffect.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#pragma once
#pragma once
#include "DspFilters\Butterworth.h"
#include "DspFilters\RBJ.h"
#include <math.h>
Expand Down Expand Up @@ -125,6 +125,7 @@ class SimpleRadioEffect : public RadioEffect {
double levels[] = { 0.0, 0.150000006, 0.300000012, 0.600000024, 0.899999976, 0.950000048, 0.960000038, 0.970000029, 0.980000019, 0.995000005, 0.997799993, 0.998799993, 0.999 };

int part = (int) (errorLevel * 10.0);
part = std::clamp(part, 0, 12);
double from = levels[part];
double to = levels[part + 1];

Expand Down

0 comments on commit d4ef325

Please sign in to comment.