Skip to content

Instantly share code, notes, and snippets.

@andreivasiliu
Created July 26, 2020 21:01
Show Gist options
  • Save andreivasiliu/505278b8ee3c519ea9c2845ee926b52e to your computer and use it in GitHub Desktop.
Save andreivasiliu/505278b8ee3c519ea9c2845ee926b52e to your computer and use it in GitHub Desktop.
state["phase"] = (in["phase"] or 0) + in["frequency"]
state["phase"] = state["phase"] + in["frequency"]
out["out"] = sin(state["phase"])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment