We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5460994 commit eb1b9f4Copy full SHA for eb1b9f4
plugins/VASVF.hpp
@@ -4,6 +4,7 @@
4
// https://github.com/JordanTHarris/VAStateVariableFilter/blob/master/Source/Effects/VAStateVariableFilter.cpp
5
6
#include <cmath>
7
+#include <numbers>
8
9
//==============================================================================
10
@@ -169,7 +170,7 @@ class VASVF {
169
170
void calcFilter() {
171
if (active) {
172
// prewarp the cutoff (for bilinear-transform filters)
- float wd = cutoffFreq * 2.0f * static_cast<float>(M_PI);
173
+ float wd = cutoffFreq * 2.0f * std::numbers::pi_v<float>;
174
float T = 1.0f / sampleRate;
175
float wa = (2.0f / T) * std::tan(wd * T / 2.0f);
176
0 commit comments