Created
October 4, 2016 02:47
-
-
Save catskull/c1e9e58ec6167a66b308ae06f928fa07 to your computer and use it in GitHub Desktop.
A simple sketch that sends a midi clock signal
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
int tempo = 50; | |
void setup() { | |
// put your setup code here, to run once: | |
Serial.begin(31250); | |
Serial.write(250); | |
} | |
void loop() { | |
// put your main code here, to run repeatedly: | |
for (int i = 0; i < 10; i++) { | |
Serial.write(248); | |
delay(tempo); | |
} | |
if (tempo > 3) tempo--; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment