• 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: MusicPlayerStop() and all-notes-off messages
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MusicPlayerStop() and all-notes-off messages


  • Subject: Re: MusicPlayerStop() and all-notes-off messages
  • From: Lars Peters <email@hidden>
  • Date: Tue, 21 Jan 2003 08:27:25 +0100

Am Dienstag, 21.01.03 um 07:02 Uhr schrieb Christopher Corbell:

Hi,

I'm having a different problem than this (the DLS just ignores incoming MIDI under some circumstances) I realise now that the problem you're seeing is not related to the DLS, but to your interpretation of what Stop means to the music player. It doesn't mean "stop playing and close all open notes" it means stop advancing forward in time.

Andre.


This does make sense, but then I suppose there is a more general question of
how to make the DLS unit forget about the MusicSequence notes it's playing,
or otherwise reset itself? Since an all-notes-off message does not work before
or after calling MusicPlayerStop(). It only seems to work after I start the sequence
again at time zero, but then only after the formerly sounding notes sound again.

Is there any way, short of something brute force like completely uninitializing the graph
or disposing of the MusicDevice, to stop the sounding of all sequenced notes in conjunction
with MusicPlayerStop() and a DLS synth unit?


Oops, I should read more carefully! I thought AllNotesOff did solve your problem.
Try AudioUnitReset(mySynthUnit, kAudioUnitScope_Global, 0);
I can still hear the last note for a very tiny period, though.

Lars
_______________________________________________
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.

References: 
 >Re: MusicPlayerStop() and all-notes-off messages (From: Christopher Corbell <email@hidden>)

  • Prev by Date: Re: MusicPlayerStop() and all-notes-off messages
  • Next by Date: Re: Cocoa and AudioUnits?
  • Previous by thread: Re: MusicPlayerStop() and all-notes-off messages
  • Next by thread: Re: MusicPlayerStop() and all-notes-off messages
  • Index(es):
    • Date
    • Thread