Skip to content

Instantly share code, notes, and snippets.

@chrispiciullo
Created September 9, 2022 23:33
Show Gist options
  • Save chrispiciullo/8228eeb197d05b099b3318cb74a2ff98 to your computer and use it in GitHub Desktop.
Save chrispiciullo/8228eeb197d05b099b3318cb74a2ff98 to your computer and use it in GitHub Desktop.
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment