• 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: How to get MIDIThruConnection to the "built-in endpoint"?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: How to get MIDIThruConnection to the "built-in endpoint"?
      • From: Jay Koutavas <email@hidden>
References: 
 >How to get MIDIThruConnection to the "built-in endpoint"? (From: Jay Koutavas <email@hidden>)

  • Prev by Date: AudioQueue Input and Play-Thru
  • Next by Date: Re: simplest sound output
  • Previous by thread: How to get MIDIThruConnection to the "built-in endpoint"?
  • Next by thread: Re: How to get MIDIThruConnection to the "built-in endpoint"?
  • Index(es):
    • Date
    • Thread