I have some very old code that does just that. Here:
https://github.com/billthefarmer/c-accordion/blob/master/mac/Accordion.c#L1043.
It uses an AUGraph and send the midi events with MusicDeviceMIDIEvent()
once all the bits have been put together. Parts of this API have since
been deprecated and updated, but the updated functions are relatively
easy to find.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (Coreaudio-api@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/coreaudio-api/archive%40mail-archive.com
This email sent to arch...@mail-archive.com