]> ruin.nu Git - moosique.git/commitdiff
solo & mute finally works again!
authorMichael Andreen <harv@ruin.nu>
Sun, 18 May 2003 00:42:51 +0000 (00:42 +0000)
committerMichael Andreen <harv@ruin.nu>
Sun, 18 May 2003 00:42:51 +0000 (00:42 +0000)
Moosique.java

index ee9a7453b492e35a0fba5f907b3d80eca856e67e..0fc6fd74aba1f76cb11b17d1ec75baf8a79657ed 100644 (file)
@@ -333,22 +333,21 @@ public class Moosique {
                } catch (InvalidMidiDataException e) {}
                Track[] tracks = seq.getTracks();
 
+               sequencer.start();
+
                for (int i = 0; i < tracks.length; i++) {
 
                        Object ob = trackSolo.get(tracks[i]);
                        if(ob instanceof Boolean){
-                               System.out.println("Track solo " + i + "= "+ ob);
                                sequencer.setTrackSolo(i,((Boolean)ob).booleanValue());
                        }
 
                        ob = trackMute.get(tracks[i]);
                        if(ob instanceof Boolean){
-                               System.out.println("Track mute " + i + "= "+ ob);
                                sequencer.setTrackMute(i,((Boolean)ob).booleanValue());
                        }
                }
 
-               sequencer.start();
 
                // Disables input to volatile components
                // gui.disable();
@@ -425,6 +424,8 @@ public class Moosique {
                        sequencer.setSequence(seq);
                        filename = null;
                        emptyTracks = new ArrayList();
+                       trackSolo = new HashMap();
+                       trackMute = new HashMap();
                } catch (InvalidMidiDataException e) {}
                // Sends sequence to GUI.
                if (gui != null) gui.setSequence(seq);