public void setPaused(boolean paused)
    {
        if (this.paused == paused || sequencer == null)
            return;

        this.paused = paused;

        if (paused)
            sequencer.stop();
        else
            sequencer.start();
    }