Last active
April 4, 2017 19:50
-
-
Save electronicayciencia/804d47b202d7ac924094e46430887227 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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