Re: MusicPlayerStop() and all-notes-off messages
Re: MusicPlayerStop() and all-notes-off messages
- Subject: Re: MusicPlayerStop() and all-notes-off messages
- From: Andre Lipinski <email@hidden>
- Date: Mon, 20 Jan 2003 23:03:30 -0500
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.
On Sunday, January 19, 2003, at 11:41 AM, Lars Peters wrote:
Are you seeing this with DLS Synth only or with other devices as well?
Since I don't have the problem with my external synth and Andre
Lipinski had the same problem with DLS Synth but without MusicPlayer,
I assume it's a problem of the AU rather than MusicPlayer.
Regards,
Lars
Am Samstag, 18.01.03 um 21:36 Uhr schrieb Christopher Corbell:
I've noticed that when playing a music sequence, if you stop the
playback
with MusicPlayerStop() the notes appear to be still "sounding" in the
device
even though they are audibly stopped. If you then call
MusicPlayerStart() at
time 0, the notes that were sounding will become audible again.
I'm assuming this is more or less a bug, but I'm hoping to find a
work-around.
One thing I've tried is stopping the AUGraph right after I call
MusicPlayerStop(),
and starting it again before I call MusicPlayerStart(), but this
didn't seem to
change anything (other than maybe saving a little CPU when no sequence
is running).
Sending a midi all-notes-off message (0xBn 123) does help. I'm now
sending
this both at the time the sequence is stopped and before every call to
MusicPlayerStart(). However even here there will be a brief "thunk"
of the
formerly sounding notes when you call MusicPlayerStart(), which
immediately
becomes silent and lets the sequence begin again.
I think this is overall a pretty minor thing now, except that if
someone has finished
a sequence and is ready to do something like output it to an external
audio recorder
they'll get the thunk if they weren't lucky enough to stop the last
playback at a silent
instant.
Note that you won't notice any of this behavior if you cal
MusicPlayerStop() after
a sequence has finished or while no notes are sounding.
Can anyone off any suggestions?
Thanks in advance,
Chris
_______________________________________________
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.
_______________________________________________
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.