}
/**
- * Shows the given message in the status bar.
- * @param text the message to show
+ * Returns whether the given track should be drawn
+ * @return true if the given track should be drawn
*/
public static boolean shouldBeDrawn(Track track) {
if (drawEmptyTracks) return true;
/**
- * Shows the given message in the status bar.
- * @param text the message to show
+ * Sets whether empty tracks should be drawn
+ * @param state true if empty tracks should be drawn
*/
public static void setDrawEmptyTracks(boolean state) {
drawEmptyTracks = state;
}
noteOns.trimToSize();
noteOffs.trimToSize();
- boolean isEmpty = (noteOns.size() == 0);
- String text = "Track " + i + " has " + noteOns.size() + "/" + noteOffs.size() + "/" + tracks[i].size();
- if (isEmpty) {
- text += " and will be removed.";
- emptyTracks.add(tracks[i]);
- }
- System.out.println(text);
+ if (noteOns.size() == 0) emptyTracks.add(tracks[i]);
// Sorts the note lists by tick position.
Comparator c = new Comparator() {