X-Git-Url: https://ruin.nu/git/?p=moosique.git;a=blobdiff_plain;f=Moosique.java;h=9b4349c9acbb9db040a1f8bd0d1b1c6d75225853;hp=01b6b7664345685d633f6585aeaace8c8d011fad;hb=c87df9f217c5730ae465252b415bb7e52a4f3fed;hpb=c3a31c2aa833e2197f0929655c69a2090e8bbecc diff --git a/Moosique.java b/Moosique.java index 01b6b76..9b4349c 100644 --- a/Moosique.java +++ b/Moosique.java @@ -74,7 +74,7 @@ public class Moosique { // Builds GUI, unless n-flag is set. if (makeGUI) { - System.out.print("Building GUI..."); + System.out.print("Building GUI."); try { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch (Exception e) {} @@ -182,6 +182,9 @@ public class Moosique { */ public static void resume() { gui.update(0); + try { + sequencer.setSequence(seq); + } catch (InvalidMidiDataException e) {} sequencer.start(); // Disables input to volatile components @@ -391,7 +394,7 @@ public class Moosique { Collections.sort(noteOns, c); Collections.sort(noteOffs, c); - // For each NoteOn event, finds its NoteOff event and replaces it with a MooNote. + // Replaces each NoteOn event it with a MooNote containing a reference to the NoteOff event. Iterator iOn = noteOns.iterator(), iOff; MidiEvent on, off = null, nextOff; ShortMessage onMsg, nextOffMsg; @@ -420,7 +423,6 @@ public class Moosique { iOn.remove(); } } - // Sends sequence to GUI and sequencer, then returns if (gui != null) gui.setSequence(seq); try {