Re: Getting a External MidiDevice in a Java App
Re: Getting a External MidiDevice in a Java App
- Subject: Re: Getting a External MidiDevice in a Java App
- From: Bill Stewart <email@hidden>
- Date: Wed, 04 Sep 2002 19:10:23 -0700
Have a look at:
/Developer/Examples/CoreAudio/Java/SDK/MIDIGraph
That should help a lot
Bill
on 8/31/02 8:43 AM, Craig Bakalian wrote:
>
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.
--
mailto:email@hidden
tel: +1 408 974 4056
__________________________________________________________________________
"...Been havin' some trouble lately in the sausage business," C.M.O.T.
Dibbler replied.
"What, having trouble making both ends meat?"
__________________________________________________________________________
_______________________________________________
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.