Exemplo n.º 1
14
  private void init() throws MidiUnavailableException {
    if (!isInitiated) {
      if (!(device.isOpen())) {
        device.open();
      }

      this.receiver = device.getReceiver();

      this.isInitiated = true;
    }
  }
Exemplo n.º 2
14
 private void close() {
   receiver.close();
   device.close();
 }