Mercurial > hg > svcore
diff data/model/FFTModel.cpp @ 980:6e6da0636e5e tonioni
Merge from default branch
author | Chris Cannam |
---|---|
date | Tue, 09 Sep 2014 16:36:21 +0100 |
parents | a8aed8a85e09 |
children | cc27f35aa75c |
line wrap: on
line diff
--- a/data/model/FFTModel.cpp Tue Sep 02 16:23:48 2014 +0100 +++ b/data/model/FFTModel.cpp Tue Sep 09 16:36:21 2014 +0100 @@ -381,7 +381,7 @@ if (bin == 0) return 3; int fftSize = m_server->getFFTSize() >> m_yshift; - float binfreq = (sampleRate * bin) / fftSize; + float binfreq = (float(sampleRate) * bin) / fftSize; float hifreq = Pitch::getFrequencyForPitch(73, 0, binfreq); int hibin = lrintf((hifreq * fftSize) / sampleRate);