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 19:29:48 -0700
Actually
I think we'll deprecate:
NewMusicTrackFrom
given that:
(1) Its never worked properly
(2) You can do what it does with:
MusicSequenceNewTrack
MusicTrackCopyInsert
Thanks Jay for finding this
Bill
On Mar 27, 2008, at 7:20 PM, William Stewart wrote:
On Mar 27, 2008, at 7:08 PM, Jay Koutavas wrote:
Bill,
I tried that first. The problem with that approach is -- the track
doesn't get added to the sequence, apparently. I say this because I
do a MusicSequenceGetTrackCount() and its the same after the
NewMusicTrackFrom() call as before the call.
I see no "AddTrackToSequence()"-like call anywhere.
What am I missing?
So, that would be the right way, but the track is not being added to
the sequence as you've discovered. doh!
We'll fix this, in the meantime what you are doing is just fine... :)
Bill
/Jay
At 7:02 PM -0700 on 3/27/08, William Stewart wrote:
On Mar 27, 2008, at 4:58 PM, Jay Koutavas wrote:
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 );
>>>
instead I would just do:
status = NewMusicTrackFrom(track, 0, kMusicTimeStamp_EndOfTrack,
&newTrack);
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
--
--------------------------------------------------------
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