diff tests/TestChromagram.cpp @ 465:50a97c8d52ed

Apply fix from daschuer/mixxx:957aed58 : Use double precision for FS
author Chris Cannam <cannam@all-day-breakfast.com>
date Wed, 29 May 2019 13:55:26 +0100
parents d8ad5893db6f
children 1db23b9a8da4
line wrap: on
line diff
--- a/tests/TestChromagram.cpp	Wed May 29 13:55:07 2019 +0100
+++ b/tests/TestChromagram.cpp	Wed May 29 13:55:26 2019 +0100
@@ -30,7 +30,7 @@
 }
 
 vector<double> generateSinusoid(double frequency,
-                                int sampleRate,
+                                double sampleRate,
                                 int length)
 {
     vector<double> buffer;
@@ -50,7 +50,7 @@
 BOOST_AUTO_TEST_CASE(sinusoid_12tET)
 {
     double concertA = 440.0;
-    int sampleRate = 44100;
+    double sampleRate = 44100;
     int bpo = 60;
 
     ChromaConfig config {