diff plugin/plugins/SamplePlayer.cpp @ 1206:659372323b45 tony-2.0-integration

Merge latest SV 3.0 branch code
author Chris Cannam
date Fri, 19 Aug 2016 15:58:57 +0100
parents 63b73a21bccd
children 1c9bbbb6116a
line wrap: on
line diff
--- a/plugin/plugins/SamplePlayer.cpp	Tue Oct 20 12:54:06 2015 +0100
+++ b/plugin/plugins/SamplePlayer.cpp	Fri Aug 19 15:58:57 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);
 	}
     }