Skip to content

Instantly share code, notes, and snippets.

View chrispiciullo's full-sized avatar

Chris Piciullo chrispiciullo

View GitHub Profile
freq = 0.5; //frequency - how often the "wiggles" happen
amp = 50; //amplitude - how large the "wiggles" are
loopTime = 3; //time in secs - length of time the comp is for the wiggle to loop
t = time % loopTime;
wiggle1 = wiggle(freq, amp, 1, 0.5, t);
wiggle2 = wiggle(freq, amp, 1, 0.5, t - loopTime);
linear(t, 0, loopTime, wiggle1, wiggle2)