예제 #1
0
 /**
  * This method is called by the sound system when a meta event occurs. In this case, when the
  * end-of-track meta event is received, the sequence is restarted if looping is on.
  *
  * @param event
  */
 public void meta(MetaMessage event) {
   if (event.getType() == END_OF_TRACK_MESSAGE) {
     if (sequencer != null && sequencer.isOpen() && loop) {
       sequencer.start();
     }
   }
 }
예제 #2
0
    public void meta(MetaMessage message) {

      if (message.getType() == 47 && playState != PAUSED && sequence != null) {
        midiEOM = true;
        if (playState != STOPPED) {
          sequencer.stop();
          playState = EOM;
        }
      }
    }