public void close() throws TGPluginException {
   try {
     this.provider.closeAll();
   } catch (MidiPlayerException e) {
     throw new TGPluginException(e.getMessage(), e);
   }
 }
Esempio n. 2
0
 public void send(MidiMessage message, long timeStamp) {
   try {
     if (this.sequencer.isRunning()) {
       parseMessage(message.getMessage());
     }
   } catch (MidiPlayerException e) {
     e.printStackTrace();
   }
 }
 protected void removePlugin() throws TGPluginException {
   if (this.loaded) {
     try {
       TuxGuitar.instance().getPlayer().removeSequencerProvider(this.provider);
       this.loaded = false;
     } catch (MidiPlayerException e) {
       throw new TGPluginException(e.getMessage(), e);
     }
   }
 }