You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
435 B
23 lines
435 B
void displayTempo(){
|
|
|
|
for(int x = 0; x < tempos.length; x++){
|
|
|
|
if(beatsCount[x] < tempos[x]){
|
|
beatsCount[x]++;
|
|
}else{
|
|
beatsCount[x] = 1;
|
|
sc.instrument(instruments[x]);
|
|
sc.playNote(freqs[x], 50, 2);
|
|
}
|
|
|
|
for( int i = 1; i <= tempos[x]; i++) {
|
|
if(i==beatsCount[x]){
|
|
fill(200);
|
|
} else {
|
|
fill(100);
|
|
}
|
|
ellipse(50*i, (x+1)*50, 40, 40);
|
|
}
|
|
}
|
|
|
|
}
|