Skip to content

Commit 73329ce

Browse files
Fix Pi value typo in SoundSynthesizerEffects. (#456)
1 parent 9892f01 commit 73329ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/SoundSynthesizerEffects.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ void SoundSynthesizerEffects::logarithmicInterpolation(SoundEmojiSynthesizer *sy
117117
// parameter[0]: end frequency
118118
void SoundSynthesizerEffects::curveInterpolation(SoundEmojiSynthesizer *synth, ToneEffect *context)
119119
{
120-
synth->frequency = (sin(context->step*3.12159f/180.0f)*(context->parameter[0]-synth->effect->frequency)+synth->effect->frequency);
120+
synth->frequency = (sin(context->step*3.14159f/180.0f)*(context->parameter[0]-synth->effect->frequency)+synth->effect->frequency);
121121
}
122122

123123
// Cosine interpolate function

0 commit comments

Comments
 (0)