I’m trying to make my first module keeping inspiration from Befaco Rampage.
I see that if I change the shape of the rise (or fall) stage, it doens’t change only the shape, but also the “rate” (i.e. the time it would take) to finish the stage.
How would you keep the rate?
Here’s the quick code that shown the number of steps that change, switching shape at some cycle/sample (at the 4° cycle, 120° sample):
In the for loop numSteps can only reach 10 before breaking out of the loop so it will never go into the if (cycle&&numSteps), shape will always be 0.0 as far I can tell. numSteps would need an initial assignment of 12 to increment to 120, in order to enter the if statement.
In the for loop numSteps++; which will eventually be numSteps = 10; It will only loop 10 times because numCycles = 10; when cycle gets to 10 it breaks from the loop. numSteps can’t reach 120 it can only reach 10. The if in the while will never execute because numSteps is not equal to 120 it’s equal to 10.
I see its in the while now my mistake. Not sure how it executes the if though because numSteps is still not equal to 120. 441 != 120 numSteps == 120 is false