Examples of MidiThread


Examples of jonkoshare.midi.MidiThread

    if (drumButton.isSelected()) {
      tm=MidiThread.TEST_MODES.TEST_DRUMS;
    } else if (chordButton.isSelected()) {
      tm=MidiThread.TEST_MODES.TEST_CHORD;
    }
    MidiThread mt=MidiThread.getTestInstance(midiChooser.getSelectedSynthesizer(),
        instrument,
        tm);
    // nur ein Durchlauf
    mt.setRunOnce(true);
    mt.start();
  }
View Full Code Here

Examples of jonkoshare.midi.MidiThread

    if (drumButton.isSelected()) {
      tm=MidiThread.TEST_MODES.TEST_DRUMS;
    } else if (chordButton.isSelected()) {
      tm=MidiThread.TEST_MODES.TEST_CHORD;
    }
    MidiThread mt=MidiThread.getTestInstance(dev, chan,
      tm, programCheck.isSelected()?programBox.getSelectedIndex():-1);
    // nur ein Durchlauf
    mt.setRunOnce(true);
    mt.start();
  }
View Full Code Here

Examples of jpianotrain.midi.MidiThread

    if (drumButton.isSelected()) {
      tm=MidiThread.TEST_MODES.TEST_DRUMS;
    } else if (chordButton.isSelected()) {
      tm=MidiThread.TEST_MODES.TEST_CHORD;
    }
    MidiThread mt=MidiThread.getTestInstance(midiChooser.getSelectedSynthesizer(),
        instrument,
        tm);
    // nur ein Durchlauf
    mt.setRunOnce(true);
    mt.start();
  }
View Full Code Here

Examples of jpianotrain.midi.MidiThread

    if (drumButton.isSelected()) {
      tm=MidiThread.TEST_MODES.TEST_DRUMS;
    } else if (chordButton.isSelected()) {
      tm=MidiThread.TEST_MODES.TEST_CHORD;
    }
    MidiThread mt=MidiThread.getTestInstance(dev, chan,
      tm, programCheck.isSelected()?programBox.getSelectedIndex():-1);
    // nur ein Durchlauf
    mt.setRunOnce(true);
    mt.start();
  }
View Full Code Here

Examples of jpianotrain.midi.MidiThread

        } else {
          nt.transpose(12);
        }
        n[i]=nt;
      }
      MidiThread mt=MidiThread.getInstance();
      if (mt==null) {
        ResourceBundle bdl=ResourceBundle.getBundle("vl.vlc");
        JOptionPane.showMessageDialog(this,bdl.getString("msg.midi_not_ready"));
        return;
      }
      try {
        mt.play(n);
      } catch (Exception ex) {
        JOptionPane.showMessageDialog(this, ex, ResourceFactory.getString(ResourceKeys.TITLE_ERROR), JOptionPane.ERROR_MESSAGE);
      }
    }
  }
View Full Code Here

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

Examples of jrackattack.midi.MidiThread

   
  }//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
Copyright © 2018 www.massapi.com. 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.