// 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) {}
*/
public static void resume() {
gui.update(0);
+ try {
+ sequencer.setSequence(seq);
+ } catch (InvalidMidiDataException e) {}
sequencer.start();
// Disables input to volatile components
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;
iOn.remove();
}
}
-
// Sends sequence to GUI and sequencer, then returns
if (gui != null) gui.setSequence(seq);
try {