• 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
Re: MIDIConstants.kMIDIPropertyName
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MIDIConstants.kMIDIPropertyName


  • Subject: Re: MIDIConstants.kMIDIPropertyName
  • From: Craig Bakalian <email@hidden>
  • Date: Fri, 27 Sep 2002 09:26:30 -0400

Hi Luke,
This is working fine. I do have one more problem if you don't mind. I need
to check the device or endpoint to see if it transmits or receives midi data (notes,
channels, whatever) before I set it to my gui for the user to select as an input or
output. I don't want the user selecting a device that can't receive midi messages
for an output. Likewise, the same for input. I have tried

MidiDevice.getDevice(i).getStringProperty(MIDIConstants.kMIDIPropertyRec eivesNotes)

with no result. I get a error message stating that I am using the wrong property. Any
Idea to who to get a devices or endpoints properties?

Craig Bakalian

On Thursday, September 26, 2002, at 05:07 PM, Luke Bellandi wrote:


For what you're doing, you'll probably want to look up the chain a bit
to get a string that would be interesting to the user.

If you have any interest in working in C, you can check out the
functions:

OSStatus MIDIEndpointGetEntity( MIDIEndpointRef inEndpoint,
MIDIEntityRef * outEntity);

And...

OSStatus MIDIEntityGetDevice( MIDIEntityRef inEntity, MIDIDeviceRef
* outDevice);

And then get the name property for the device and/or entity, and use that
string to name/label your endpoint.

In Java you should use the

Int MIDIDevice.getNumberOfDevices();
MIDIDevice MIDIDevice.getDevice(int index);

Methods, and traverse the hierarchy down through entities and endpoints to
then match up your source/destination endpoints with their parent devices
and those properties.
_______________________________________________
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.

  • Follow-Ups:
    • Re: MIDIConstants.kMIDIPropertyName
      • From: Doug Wyatt <email@hidden>
    • Re: MIDIConstants.kMIDIPropertyName
      • From: Luke Bellandi <email@hidden>
References: 
 >Re: MIDIConstants.kMIDIPropertyName (From: Luke Bellandi <email@hidden>)

  • Prev by Date: Re: Multiple instances of an Audio Device
  • Next by Date: Re: Routing QT audio to an AudioUnit
  • Previous by thread: Re: MIDIConstants.kMIDIPropertyName
  • Next by thread: Re: MIDIConstants.kMIDIPropertyName
  • Index(es):
    • Date
    • Thread