Getting a External MidiDevice in a Java App
Getting a External MidiDevice in a Java App
- Subject: Getting a External MidiDevice in a Java App
- From: Craig Bakalian <email@hidden>
- Date: Fri, 30 Aug 2002 18:43:27 -0400
Hi,
I am developing a midi sequencer in java. The java api has fallen
short when I attempt to access a usb port for a external midi device.
class GetMidiDev{
public GetMidiDev(){
ArrayList sythInfos = new ArrayList();
MidiDevice device;
MidiDevice.Info[] infos = MidiSystem.getMidiDeviceInfo();
for (int i = 0; i < infos.length; i++){
System.out.println(infos[i]);
}
}
}
Isn't returning external midi devices. Is it supposed to? Am I doing
something wrong? The above code doesn't event find the QuickTime music
synthesizer.
If I make code to the point where I get a MidiDevice from the
com.apple.audio.midi package, and the set the instance of that midi
device to an instance of a Transmitter or Receiver (from
javax.sound.midi.*), will it work?
Or, let me state it this way, how can I access an external midi device,
like a keyboard, and recieve midi events from it and store the data in
my current javax.sound.midi.Sequence?
My app is creating, mainipulating and playing midi data specifically
from Sun's soundbank.gm file. I want more than this.
Craig Bakalian
www.midinight.com
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.