Skip to content

Instantly share code, notes, and snippets.

@ocello3
ocello3 / Metro.pde
Created January 13, 2016 21:09
Metronome class in processing (BPM, beat)
class Metro {
float bpm;
float nextTime = 0;
int mode = 0;
int modeNum;
Metro(float _bpm, int _modeNum) {
bpm = _bpm;
modeNum = _modeNum;
}
PShape twitterBird;
void setup(){
size(300, 300);
twitterBird = loadShape("twitterBird.svg");
}
void draw(){
background(245);
twitterBird.disableStyle();
PFont openSans;
char t1 = 't';
char w = 'w';
char i = 'i';
char t2 = 't';
char t3 = 't';
char e = 'e';
char r = 'r';