diff dsp/chromagram/ConstantQ.h @ 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 701233f8ed41
line wrap: on
line diff
--- a/dsp/chromagram/ConstantQ.h	Fri May 31 16:33:46 2019 +0100
+++ b/dsp/chromagram/ConstantQ.h	Fri May 31 16:33:55 2019 +0100
@@ -42,7 +42,7 @@
     void sparsekernel();
 
     double hamming(int len, int n) {
-        double out = 0.54 - 0.46*cos(2*PI*n/len);
+        double out = 0.54 - 0.46*cos(2*M_PI*n/len);
         return(out);
     }