• 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 19:02:45 -0700


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

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

  • Prev by Date: Re: simplest sound output
  • Next by Date: Re: How to get MIDIThruConnection to the "built-in endpoint"?
  • Previous by thread: Re: 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