This commit is contained in:
Vesa
2014-11-14 21:35:34 +02:00
parent 5b8f92e757
commit 8576b586ff

View File

@@ -597,8 +597,8 @@ public:
const float fract = vowelf - vowel;
// interpolate between formant frequencies
const float 1.0f / f0 = linearInterpolate( _f[vowel+0][0], _f[vowel+1][0], fract ) * F_2PI;
const float 1.0f / f1 = linearInterpolate( _f[vowel+0][1], _f[vowel+1][1], fract ) * F_2PI;
const float f0 = 1.0f / linearInterpolate( _f[vowel+0][0], _f[vowel+1][0], fract ) * F_2PI;
const float f1 = 1.0f / linearInterpolate( _f[vowel+0][1], _f[vowel+1][1], fract ) * F_2PI;
// samplerate coeff: depends on oversampling
const float sr = m_type == FastFormant ? m_sampleRatio : m_sampleRatio * 0.25f;