Re: Newbie problem: javax.sound.midi & finding devices
Re: Newbie problem: javax.sound.midi & finding devices
- Subject: Re: Newbie problem: javax.sound.midi & finding devices
- From: James Coker <email@hidden>
- Date: Fri, 19 Dec 2003 00:07:36 -0700
Unless you absolutely need to write cross-platform
code, you're probably better off using Apple's Java API's for
CoreMIDI and Core Audio. The Java sound & MIDI APIs
are very, very basic, and I'm pretty sure don't offer support
for the CoreAudio MIDI driver your MIDISport uses.
If you've installed the dev tools for OS X, you will find
CoreAudio examples on your hard drive in
/Developer/Examples/CoreAudio,
There are several examples written in Java.
Documentation for CoreAudio and the Java API calls
are in /Developer/Documentation/CoreAudio.
Jim
On Thursday, December 18, 2003, at 04:49 PM, Michael P. Rogers wrote:
Hi,
Sorry about this basic question, and I hope this is the right list for
it. I'm trying to use the javax.sound.midi package and can't even
find my external synthesizer. My code starts off with:
System.out.println("All available devices");
System.out.println("---------------------");
MidiDevice.Info [] inf = MidiSystem.getMidiDeviceInfo();
for(int j=0; j < inf.length; j++)
System.out.println("\nDescription: " +
inf[j].getDescription() +
"\nName: " + inf[j].getName() +
"\nVendor: " + inf[j].getVendor());
and I'm getting Java devices, namely:
Description: Software wavetable synthesizer and receiver
Name: Java Sound Synthesizer
Vendor: Sun Microsystems
Description: Software sequencer / synthesizer module
Name: Java Sound Sequencer
Vendor: Sun Microsystems
All available Instruments
The problem is, I *do* have a synthesizer attached -- an Alesis QS-8
-- and it's talking to my music programs just fine. I'm using Mac OS
X 10.3.1, a Midisport 2x2, and, as mentioned, an Alesis QS-8.
Any help, or pointers to more appropriate lists for these sorts of
questions, would be appreciated.
Thanks,
Michael
--
---------------------------------
Dr. Michael Rogers
e-mail: email@hidden
Phone: 217-424-6327
For information about Computer Science at Millikin University, visit
http://math.millikin.edu
For information about astronomy, check out
http://twincityamateurastronomers.org
For information about flying lessons, land at http://www.imageair.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.
_______________________________________________
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.