Package jpianotrain.midi

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


    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

        } 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

TOP

Related Classes of jpianotrain.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.