[jmsl] Playing Through An External Midi Device
jmsl at music.columbia.edu
jmsl at music.columbia.edu
Tue Apr 14 02:22:02 EDT 2009
How can I hookup JavaSound ports to JMSL? If I do this I can see all the
external midi devices I have on my computer.
MidiDevice.Info[] infos = MidiSystem.getMidiDeviceInfo();
for (int i = 0; i < infos.length; i++) {
System.out.println(infos[i]);
}
/*
Result:
USB Audio Device
Microsoft MIDI Mapper
USB Audio Device
SB X-Fi Synth A [BC00]
SB X-Fi Synth B [BC00]
Microsoft GS Wavetable SW Synth
Real Time Sequencer
Java Sound Synthesizer
*/
If I do this, I get an error.
JMSL.midi = MidiIO_JavaSound.instance();
String[] deviceNames = JMSL.midi.getOutputDeviceNames();
System.out.println("There are " + deviceNames.length + "midi devices.");
for (int i=0; i<deviceNames.length; i++) {
System.out.println(deviceNames[i]);
}
/*
Result:
There are 1midi devices.
Unimplemented
*/
More information about the jmsl
mailing list