Hi,
I have a Mac, and I'm trying to write a rhythm-action game, taking input from a MIDI keyboard attached to the computer. Following the examples I've seen elsewhere, I have this code to list the available MIDI devices:
|
Code:
|
MidiDevice.Info md_infos[] = MidiSystem.getMidiDeviceInfo();
for (i=0; i<md_infos.length; ++i) {
System.out.println(md_infos[i].getName());
} |
Unfortunately, this code will always print exactly two lines ("Real Time Sequencer" and "Java Sound Synthesizer"), regardless of whether or not I have my MIDI keyboard plugged in. Other applications on the system (e.g. GarageBand) recognise they keyboard and it's input. Can anyone help?
(Intel MacMini, MacOS X 10.5.7; MIDI keyboard is attached via a MIDI-to-USB converter)