Skip to content

Instantly share code, notes, and snippets.

@catskull
Created October 4, 2016 02:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save catskull/c1e9e58ec6167a66b308ae06f928fa07 to your computer and use it in GitHub Desktop.
Save catskull/c1e9e58ec6167a66b308ae06f928fa07 to your computer and use it in GitHub Desktop.
A simple sketch that sends a midi clock signal
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