Re: How to get MIDIThruConnection to the "built-in endpoint"?
Re: How to get MIDIThruConnection to the "built-in endpoint"?
- Subject: Re: How to get MIDIThruConnection to the "built-in endpoint"?
- From: William Stewart <email@hidden>
- Date: Thu, 27 Mar 2008 10:50:31 -0700
On Mar 27, 2008, at 7:34 AM, Jay Koutavas wrote:
Okay, admittedly I've not grokked all there is to know about core
audio and midi. I'm doing my first Core Audio project. Here's what
I'm trying to do:
track --> myEndpoint --> built-in synth
Or, this (a Y-connector):
track --> myEndpoint
|
+-----> built-in synth
I'm trying to use MusicPlayer to push midi not only to the
sequence's AU graph for the Mac's built-in synth (which was quite
easy to setup, thanks), but ALSO to an endpoint. The endpoint looks
at the notes and does something interesting with it, as the song
plays.
I understand from example code (SimpleSDK/PlaySequence) that's its
either one or the other, not both.
per track that is true, but you can target different tracks to either
MIDI endpoints or AUs.
If you want to have the same data sent to both, the best thing would
be to copy the track (we ref count the event data, so the operation is
not as heavy as it might seem), then target each of the tracks
separately. This also gives you more control over the behaviour (you
could always mute one, but not the other, for instance), so it might
even be exploited as a feature
Bill
So, I figure I'd be all set if I could determine how to add my
endpoint some how magically into the AU graph, or better yet, using
MIDIThruConnection I could use my endpoint as a passthrough.
However, to use MIDIThruConnection I need to pass the midi along the
chain to the built-in synth. But, there's the rub... is there such
an endpoint to be found?
How do I glue this together?
Thank you,
/Jay
--
--------------------------------------------------------
Jay Koutavas mailto:email@hidden
Heynow Software http://www.heynow.com
Windham, New Hampshire, USA
--------------------------------------------------------
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden