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: Jay Koutavas <email@hidden>
- Date: Thu, 27 Mar 2008 19:58:28 -0400
Title: Re: How to get MIDIThruConnection to the
"built-in endpoin
I came up with this as my copier:
// copy the tracks so
we can pull off a "Y-splitter": audio+endpoint for
each
UInt32 ntracks;
require_noerr(MusicSequenceGetTrackCount (sequence_,
&ntracks), fail);
UInt32 i;
for
(i = 0; i < ntracks; ++i)
{
MusicTrack track;
status = MusicSequenceGetIndTrack(sequence_, i,
&track);
require_noerr( status, fail );
MusicTrack newTrack;
status = MusicSequenceNewTrack(sequence_, &newTrack);
require_noerr( status, fail );
status = MusicTrackCopyInsert( track, 0,
kMusicTimeStamp_EndOfTrack,
newTrack,
0 );
require_noerr( status, fail );
status = MusicTrackSetDestMIDIEndpoint( newTrack, myEndpoint
);
require_noerr( status, fail );
}
Works like a charm now.
Thank you Bill for all your help.
--
--------------------------------------------------------
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