Skip to content

Commit

Permalink
Fix Pi value typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
microbit-carlos committed Nov 26, 2024
1 parent 6ac8666 commit bb070af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/SoundSynthesizerEffects.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bb070af

Please sign in to comment.