Hey all, I am writing some code that will get OSC messages from supercollider and use that to control some whitney-esque visuals. Originally i took some code from KrazyDad that was a processing transcription of the code present in Whitney's book Digital Harmony. The trouble comes with the lines of code referencing ftime -> which is the amount of time the frame has been running. the code from crazy dad uses millis to control ftime, and i added a modulo to that make an infinite loop of the visuals within set bounds. I am trying to move away from the infinite aspect of it using a for loop to supply the ftime values, however, when i use the loop it does not display the visuals in the same way. I will post the broken code, any help would be appreciated.
import oscP5.*;
import netP5.*;
//Create OSC variable
OscP5 oscP5;
//Create variable to use as OSC trigger for animation
boolean animate = true;
//First step of animation
float stepstart = -1,
//Last step of animation
stepend = 1,
radius,
//X and Y Centers
xcenter,
ycenter,
//Speed of animations
speed = .1;
//Degree to radian multiplier
float deg = 0.0174533;
//Number of points in the animation
float npoints = 500.0;