[jmsl] Playing Through An External Midi Device

jmsl at music.columbia.edu jmsl at music.columbia.edu
Tue Apr 14 09:08:29 EDT 2009


Hello Chi,
I will investigate; and build a JMSL prerelease that supports this...
Thanks
Nick


jmsl at music.columbia.edu wrote:
> 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
> */
>
> _______________________________________________
> jmsl mailing list
> jmsl at music.columbia.edu
> http://music.columbia.edu/mailman/listinfo/jmsl


More information about the jmsl mailing list