• 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
MusicSequence problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

MusicSequence problems


  • Subject: MusicSequence problems
  • From: Pete Yandell <email@hidden>
  • Date: Wed, 3 Jul 2002 17:56:11 +1000

I've started playing with the MusicSequence APIs and am running into some problems.

I'm trying to load up a MIDI file and then play it through a MIDI endpoint.

The code looks like this:

MIDIEndpointRef endpoint = ...; // Code to get my MIDI destination in here
MusicPlayer player;
MusicSequence sequence;

NewMusicPlayer (&player);
NewMusicSequence (&sequence);
MusicPlayerSetSequence (player, sequence);

MusicSequenceLoadSMF (sequence, &fileSpec); // fileSpec, of course, points to my MIDI file

MusicSequenceSetMIDIEndpoint (sequence, endpoint);

MusicPlayerStart (player);

That all works well, except that only the first 18 MIDI events show up at my endpoint! This happens whether I point the endpoint at my soft synth (SimpleSynth) or at MIDI Monitor.

If I remove the MusicSequenceSetMIDIEndpoint line, everything plays just fine.

Is there something obvious that I'm missing, or is this an Apple bug?

Pete Yandell
http://pete.yandell.com/
_______________________________________________
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 problems
      • From: Chris Rogers <email@hidden>
  • Prev by Date: Re: UPDATE - Re: java coreaudio, missing methods
  • Next by Date: Re: CoreMIDI questions
  • Previous by thread: Re: UPDATE - Re: java coreaudio, missing methods
  • Next by thread: Re: MusicSequence problems
  • Index(es):
    • Date
    • Thread