public void meta(MetaMessage event) {
    	  if (event.getType() == END_OF_TRACK_MESSAGE) {
    	   if (sequencer != null && sequencer.isOpen() && loop) {
    		   System.out.println("MIDI restart: Garbage collecting.");
    		   System.gc();
    	       sequencer.setTickPosition(0);
    	       sequencer.start();
    	   }
    	  }
    	}