• 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: Ken Hawkins <email@hidden>
  • Date: Wed, 11 Feb 2004 14:42:12 -0800

thanks all,

i understand the can't get there from External (here) and the chain. i was hoping that it would be a bit easier (always a bit hopeful)

thanks,
ken;
On Feb 11, 2004, at 1:55 PM, Pete Yandell wrote:

Ken,

The arrangement (under Panther ) looks like this:

Device <-> Entity <-> Endpoint <-> External device endpoint <-> External device entity <-> External device

(Note that you can have more than one external device endpoint connected to an endpoint.)

There are various calls to let you walk backwards and forwards along this chain.

Usually (although not always) an endpoint just has a name along the lines of "port 1". If you want to get a more descriptive name for it, you have to walk backwards to its device and/or forwards to its external devices and get their names. Getting a human-readable name to display in your software turns out to be pretty complicated if you want to do it properly - there are about 120 lines of code devoted to it in my PYMIDI library, which you can grab from http://pete.yandell.com/software/ if you want to have a look at the source.

Pete Yandell
http://pete.yandell.com/

On 12/02/2004, at 6:47 AM, Ken Hawkins wrote:

i have a bit of a disconnect here that i'm sure can be easily explained.

i can find the device that i am looking for via:
MIDIGetExternalDevice(i)

i can iterate through them and match the make, model number, etc.
however i cannot get the endpointref for this without using
MIDIGetDestination which does not return the model, make, etc of the
device connected only port numbers.
< background - this unit is conneted through a unitor MKII >

it only returns port #'s

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?

when i try to pull the uniqueID via 'MIDIObjectGetIntegerProperty(dev,
kMIDIPropertyUniqueID, pUniqueID)' where dev is a MIDIDeviceRefi get
nothing. what am i missing?

thanks,
ken;
_______________________________________________
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.
_______________________________________________
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.

References: 
 >finding midi device Endpoints by External Devices names? (From: Ken Hawkins <email@hidden>)
 >Re: finding midi device Endpoints by External Devices names? (From: Pete Yandell <email@hidden>)

  • Prev by Date: [ANN] PYMIDI Framework 1.1
  • Next by Date: Re: AUCarbonViewControl bug?
  • Previous by thread: Re: finding midi device Endpoints by External Devices names?
  • Next by thread: What is MIDI server waiting for?
  • Index(es):
    • Date
    • Thread