X-Git-Url: https://ruin.nu/git/?p=moosique.git;a=blobdiff_plain;f=Moosique.java;h=01b6b7664345685d633f6585aeaace8c8d011fad;hp=91cf4ff7ddc117a62e7109224e9c66add37ef474;hb=c3a31c2aa833e2197f0929655c69a2090e8bbecc;hpb=65ea2a43eb97459592d222ea00082e46343c9d8b diff --git a/Moosique.java b/Moosique.java index 91cf4ff..01b6b76 100644 --- a/Moosique.java +++ b/Moosique.java @@ -312,8 +312,8 @@ public class Moosique { } /** - * 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; @@ -322,8 +322,8 @@ public class Moosique { /** - * 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; @@ -380,13 +380,7 @@ public class Moosique { } 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() {