• 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
List of ExternalDevice names
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

List of ExternalDevice names


  • Subject: List of ExternalDevice names
  • From: "James Chandler Jr." <email@hidden>
  • Date: Tue, 15 Jul 2003 11:32:23 -0400

Finally got around to implementing CoreMIDI, and it seems working well.

Is there example code anywhere, to build a detailed list of device names,
suitable for stuffing into an OMS/FreeMIDI type device selection pop-menu?

Using MIDIGetNumberOfDestinations(), then enumerating thru
MIDIGetDestination() and MIDIObjectGetStringProperty(), it builds a very
basic "top level" name list like {"Port 1", "Port 2", "Port 3", ...}.

The object is to enumerate a more detailed list, like {"Port 1", "Port
2,ESQ-1,1", "Port 2,DM5,10", "Port 3,JV1010,1", ...}.

After reading Apple's CoreMIDI doc and particularly the Application Notes
section, am guessing one would get External
Device names by walking the list of endpoints with
kMIDIPropertyConnectionUniqueID, kMIDIPropertyIsEmbeddedEntity, et al?
Or additionally use MIDIGetNumberOfExternalDevices(),
MIDIGetExternalDevice(), MIDIObjectGetStringProperty()?

Once the External Device Names and MIDIDeviceRefs are enumerated, the
CoreMIDI doc doesn't say that MIDIDeviceRefs can be used for a MIDISend
destination?

Is it correct that one CANNOT MIDISend() to a MIDIDeviceRef or
MIDIEntityRef? We MUST MIDISend() only to a MIDIEndpointRef, right?

If so, I suppose you walk the lists, build a lookup table of which
MIDIDeviceRefs and MIDIEntityRefs are connected to which MIDIEndpointRefs,
taking into account what channels each MIDIDeviceRef receives?

Then one would look-up the valid MIDISend EndpointRef+MIDIChannel, given
each track's MIDIDeviceRef+MIDIChannel?

Thanks

James Chandler Jr.
_______________________________________________
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: Multitimbral Music Devices - Question and Proposal
  • Next by Date: Re: Multitimbral Music Devices - Question and Proposal
  • Previous by thread: Re: parameters, gui
  • Next by thread: Private Parameters
  • Index(es):
    • Date
    • Thread