Re: finding midi device Endpoints by External Devices names?
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.