Skip to content

Commit

Permalink
powf bug
Browse files Browse the repository at this point in the history
  • Loading branch information
gregrecco67 committed Mar 29, 2024
1 parent f509370 commit f8f9276
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/FXProcessors.h
Original file line number Diff line number Diff line change
Expand Up @@ -1157,9 +1157,9 @@ class WaveShaperProcessor : public ProcessorBase
float p = pinkNoise.nextSample();
float factor = 1.f - (drive / 80.f);
if (p >= 0.f)
return jlimit(-1.f, 1.f, x * std::powf(p, factor));
return jlimit(-1.f, 1.f, x * std::pow(p, factor));
else if (p < 0.f)
return jlimit(-1.f, 1.f, x * -std::powf(-p, factor));
return jlimit(-1.f, 1.f, x * -std::pow(-p, factor));
}
else if (x > 1.f)
return 1.f;
Expand Down

0 comments on commit f8f9276

Please sign in to comment.