-
Math.sin wave cycle
Hello everyone,
is it possible to make a cycle through the length of the composition from this expression?
Thank you!
S = effect(“Speed”)(“Slider”);
A = effect(“Amp”)(“Slider”);
F = effect(“Frequency”)(“Slider”);
R = effect(“Resolution”)(“Slider”);
W = effect(“Width”)(“Slider”);
P = [];
for (i=0; i<R; i++) {
P.push([W/R*i, Math.cos(time*S+i / (R/F))*A]);}
createPath(P, [], [], false)