Sine Wave Synthesizer tutorial question

Hi, I’m making my way through the tutorials and have a question…

In the last part of the tutorial (“Updating the synthesis code”) where we smooth out artifacts the frequency slider creates in our sine wave, don’t we also need to change the following line in the updateAngleDelta() function:

auto cyclesPerSample = frequencySlider.getValue() / currentSampleRate;

to this:
auto cyclesPerSample = currentFrequency / currentSampleRate;

Otherwise the angleDelta won’t change right? Or am I missing something fundamental here and this is not necessary? Just want to make sure I fully understand what’s going on, thanks!

Bumping this, still an issue in the tutorial to this day. You are correct

Also seeing this and I am relieved to learn that I am not crazy! Thought it might be worth another bump in 2026.

Yes, the tutorial text misses the mention of the updateAngleDelta needing to be changed, but the change is incorporated in the downloadable SineSynthTutorial_03.h file.