+ boolean isEmpty = (noteOns.size() == 0);
+ String text = "Track " + i + " has " + noteOns.size() + "/" + noteOffs.size() + "/" + tracks[i].size();
+ if (isEmpty) text += " and will not be removed.";
+ System.out.println(text);
+ emptyTracks.add(tracks[i]);