+\f
+Skräp
+
+ // Prints the number of notes in each track
+ int count;
+ Track[] tracks = seq.getTracks();
+ for (int k = 0; k < tracks.length; k++) {
+ count = 0;
+ for (int j = 0; j < tracks[k].size(); j++) {
+ if (tracks[k].get(j) instanceof MooNote) count++;
+ }
+ System.out.println("Track " + k + ": " + count + " notes.");
+ }
+