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); } } }