diff plugin/plugins/SamplePlayer.cpp @ 1202:3b84f9bd0048 3.0-integration

Merge work on unified spectrogram and colour 3d plot caching renderer
author Chris Cannam
date Fri, 05 Aug 2016 15:05:02 +0100
parents 63b73a21bccd
children 1c9bbbb6116a
line wrap: on
line diff
--- a/plugin/plugins/SamplePlayer.cpp	Wed Apr 27 11:04:32 2016 +0100
+++ b/plugin/plugins/SamplePlayer.cpp	Fri Aug 05 15:05:02 2016 +0100
@@ -571,7 +571,7 @@
         if (m_concertA) {
             ratio *= *m_concertA / 440.f;
         }
-	if (m_basePitch && n != *m_basePitch) {
+	if (m_basePitch && float(n) != *m_basePitch) {
 	    ratio *= powf(1.059463094f, float(n) - *m_basePitch);
 	}
     }