Feature Sample Sound Synthesis has math error
utekai opened this issue · 0 comments
utekai commented
urho-samples/FeatureSamples/Core/29_SoundSynthesis/SoundSynthesis.cs
Lines 132 to 133 in b72d055
Those lines should be:
osc1 = (osc1 + 1.0f) % 360.0f;
osc2 = (osc2 + 1.002f) % 360.0f;
The idea is to clamp osc1 and osc2 under 360, but as is just adds ( 1 % 360 = 1) each iteration.