• 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: 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

  • Follow-Ups:
    • Re: How to get MIDIThruConnection to the "built-in endpoint"?
      • From: William Stewart <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>)

  • Prev by Date: Re: USB Class compliant driver in Leopard
  • Next by Date: Re: simplest sound output
  • 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