diff dsp/chromagram/ConstantQ.cpp @ 487:5998ee1042d3

Use M_PI
author Chris Cannam <cannam@all-day-breakfast.com>
date Fri, 31 May 2019 16:33:55 +0100
parents fdaa63607c15
children 1bea13b8f951
line wrap: on
line diff
--- a/dsp/chromagram/ConstantQ.cpp	Fri May 31 16:33:46 2019 +0100
+++ b/dsp/chromagram/ConstantQ.cpp	Fri May 31 16:33:55 2019 +0100
@@ -91,7 +91,7 @@
         unsigned origin = m_FFTLength/2 - hammingLength/2;
 
         for (unsigned i=0; i<hammingLength; i++) {
-            const double angle = 2*PI*m_dQ*i/hammingLength;
+            const double angle = 2*M_PI*m_dQ*i/hammingLength;
             const double real = cos(angle);
             const double imag = sin(angle);
             const double absol = hamming(hammingLength, i)/hammingLength;