• 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: MusicSequence and virtual sources...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MusicSequence and virtual sources...


  • Subject: Re: MusicSequence and virtual sources...
  • From: William Stewart <email@hidden>
  • Date: Mon, 5 Apr 2004 12:43:11 -0700

I think the problem is that you're setting a source - a source is
really defined as something that GENERATES MIDI, not as a destination
or RECEIVER of MIDI - so, if you set this to a MIDIDestinationCreate'd
endpoint you should find this works

Bill

On 04/04/2004, at 11:49 PM, Jason Hall wrote:

> I have been doing some basic testing of the AudioToolbox MusicPlayer,
> MusicSequence and MusicTrack components. I've set up a simple tool to
> load and SMF into a MusicSequence and played it successfully to my
> hardware sampler. Works well and executes without error. Next, I used
> MIDISourceCreate to publish an output from my tool. I viewed it
> successfully in Reaktor as a possible source -- great. However, when I
> call MusicSequenceSetMIDIEndpoint to that new endpoint and play, I get
> nothing. Am I going to have to manually iterate through the track and
> send the MIDI directly with MIDISend or something? Shouldn't the way it
> is here work? Any ideas?
>
>
> // some code ...
>
> MIDIEndpointRef reaktor = NULL;
> OSStatus sourcecreateerr = MIDISourceCreate(client,
> CFSTR("MusicPlayerTest"), &reaktor);
> if (sourcecreateerr)
> NSLog(@"sourcecreateerr: %i", sourcecreateerr);
>
> MusicPlayer player;
> MusicSequence sequence;
>
> // code to init player, sequence, then load SMF, etc...
>
> OSStatus setEndErr = MusicSequenceSetMIDIEndpoint (sequence, reaktor);
> if (setEndErr)
> NSLog(@"setEndErr: %i", setEndErr);
>
>
> OSStatus prerollerr = MusicPlayerPreroll(player);
> if (prerollerr)
> NSLog(@"prerollerr: %i", prerollerr);
>
> MusicPlayerStart (player);
> _______________________________________________
> coreaudio-api mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/coreaudio-api
> Do not post admin requests to the list. They will be ignored.
>
>
--
mailto:email@hidden
tel: +1 408 974 4056

________________________________________________________________________
__
Culture Ship Names:
Ravished By The Sheer Implausibility Of That Last Statement
I said, I've Got A Big Stick [OU]
Inappropiate Response [OU]
Far Over The Borders Of Insanity And Still Accelerating [Eccentric]
________________________________________________________________________
__
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: MusicSequence and virtual sources...
      • From: Jai Hall <email@hidden>
References: 
 >MusicSequence and virtual sources... (From: Jason Hall <email@hidden>)

  • Prev by Date: Re: Audio threads scheduling
  • Next by Date: Re: Audio threads scheduling
  • Previous by thread: MusicSequence and virtual sources...
  • Next by thread: Re: MusicSequence and virtual sources...
  • Index(es):
    • Date
    • Thread