From bb070afb311c80cff229d35f3479e65e28aad92e Mon Sep 17 00:00:00 2001 From: Carlos Pereira Atencio Date: Tue, 26 Nov 2024 18:51:28 +0000 Subject: [PATCH] Fix Pi value typo. --- source/SoundSynthesizerEffects.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/SoundSynthesizerEffects.cpp b/source/SoundSynthesizerEffects.cpp index 05d25a4c..aad063bd 100644 --- a/source/SoundSynthesizerEffects.cpp +++ b/source/SoundSynthesizerEffects.cpp @@ -117,7 +117,7 @@ void SoundSynthesizerEffects::logarithmicInterpolation(SoundEmojiSynthesizer *sy // parameter[0]: end frequency void SoundSynthesizerEffects::curveInterpolation(SoundEmojiSynthesizer *synth, ToneEffect *context) { - synth->frequency = (sin(context->step*3.12159f/180.0f)*(context->parameter[0]-synth->effect->frequency)+synth->effect->frequency); + synth->frequency = (sin(context->step*3.14159f/180.0f)*(context->parameter[0]-synth->effect->frequency)+synth->effect->frequency); } // Cosine interpolate function