Skip to content

Instantly share code, notes, and snippets.

@kklai
Created January 15, 2023 21:26
Show Gist options
  • Save kklai/bf3a5919b86c0bef7aef397bf2e03d3d to your computer and use it in GitHub Desktop.
Save kklai/bf3a5919b86c0bef7aef397bf2e03d3d to your computer and use it in GitHub Desktop.
freq = 1;
amp = 110;
loopTime = 3;
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