Here is a complicated loop I am working on..
Hello, I've been stuck on this for 3 hours now, what I'm attempting to do is create a loop here, so that the sound can go up and down like a wave. When the value hits 260, the number decreases by 1 every 0.1 seconds, when finally the number value hits 200, the number increases by 1 every 0.1 seconds again until it hits 260, so that it is stuck in a loop where it increments by 1 from 200 to 260 and back again etc..However this does not work correctly. Does anyone have an idea of how I can solve this monstrosity I have created? it kind of works, however produces a nasty stack overflow and my brain is fried, If there is any suggestions on how I could do my back and fourth loop I would greatly appreciate it as it is for my uni assignment, Thanks so much!