• 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: finding midi device Endpoints by External Devices names?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: finding midi device Endpoints by External Devices names?


  • Subject: Re: finding midi device Endpoints by External Devices names?
  • From: Luke Bellandi <email@hidden>
  • Date: Wed, 11 Feb 2004 13:29:43 -0800

Hi Ken,

i am unclear as to how to connect to the device that i want to send it
packets of midi data. how can i connect to the endpoint of a SPECIFIC
midi device and send it data?

You can't interface with external devices directly. Assuming you've got your MIDI Setup characterized correctly in Audio MIDI Setup (i.e., you've added your external devices, and made the appropriate connections to your MIDI Interfaces), take the following steps to do what you're asking:

1) For the particular endpoint on the external device you're interested in, get property kMIDIPropertyConnectionUniqueID to find out what it's connected to.
2) Use the MIDIObjectFindByUniqueID(...) API on the UniqueID you just got to find the interface object it's connected to.
3) Send MIDI Data to *that* object.

MIDI I/O can only be done with MIDI Devices, not External Devices.

Best,
Luke
_______________________________________________
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: finding midi device Endpoints by External Devices names?
      • From: Ken Hawkins <email@hidden>
References: 
 >finding midi device Endpoints by External Devices names? (From: Ken Hawkins <email@hidden>)

  • Prev by Date: Re: Channel Maps and HALOutputUnit
  • Next by Date: Re: finding midi device Endpoints by External Devices names?
  • Previous by thread: finding midi device Endpoints by External Devices names?
  • Next by thread: Re: finding midi device Endpoints by External Devices names?
  • Index(es):
    • Date
    • Thread