• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Getting a External MidiDevice in a Java App
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: What happened to Audio Units?
  • Next by Date: Re: Underflow causes permanent silence
  • Previous by thread: Re: Underflow causes permanent silence
  • Next by thread: TN2053 lists 10.2 Audio/MIDI API updates
  • Index(es):
    • Date
    • Thread