Skip to content

Instantly share code, notes, and snippets.

@electronicayciencia
Last active April 4, 2017 19:50
Show Gist options
  • Save electronicayciencia/804d47b202d7ac924094e46430887227 to your computer and use it in GitHub Desktop.
Save electronicayciencia/804d47b202d7ac924094e46430887227 to your computer and use it in GitHub Desktop.
if (v == 1) && (v ~= last_v) % raising edge
fcounter = fcounter + 1;
if (fcounter == f)
f = floor(fcounter_max + rand);
fcounter = 0;
else
icounter = icounter + 1;
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment