public boolean remove(MidiEvent event){
synchronized (eventsList) {
    if (set.remove(event)) {
      int i=eventsList.indexOf(event);
      if (i >= 0) {
        eventsList.remove(i);
        return true;
      }
    }
  }
  return false;
}

public boolean remove ( MidiEvent event ) { synchronized ( eventsList ) { if ( set . remove ( event ) ) { int i = eventsList . indexOf ( event ) ; if ( i >= 0 ) { eventsList . remove ( i ) ; return true ; } } } return false ; }
removes the specified event from the track .
