Package jrackattack.midi

Examples of jrackattack.midi.MidiThread


      if (drumButton.isSelected()) {
        tm = MidiThread.TestModes.DRUMS;
      } else if (chordButton.isSelected()) {
        tm = MidiThread.TestModes.CHORD;
      }
      MidiThread mt = MidiThread.getTestInstance(dev, chan, tm,
          programCheck.isSelected() ? programBox.getSelectedIndex()
              : -1);
      // nur ein Durchlauf
      mt.start();
      mt.setRunOnce(true);
    } catch (MidiUnavailableException e) {
      log.error("error", e);
    }
  }
View Full Code Here


   
  }//GEN-LAST:event_pluginCompatibleBoxActionPerformed

  private void nameFieldKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_nameFieldKeyPressed
// TODO add your handling code here:
    MidiThread mt=MidiThread.getInstance();
    String name=nameField.getText();
    for (int i=0;i<16&&i<name.length();i++) {
      mt.emitProgramChange(this,
        getProgramBuffer().getActiveProgramNumber(),
        RackAttack.PARAM_NAME_AH_AL[i],
        (byte)name.charAt(i));
    }
  }//GEN-LAST:event_nameFieldKeyPressed
View Full Code Here

TOP

Related Classes of jrackattack.midi.MidiThread

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.