On Saturday 01 November 2003 17:53, Richard Bown wrote:
>
> It's only a bug if File B doesn't have the program dropdown activated.

That was sort of implied.

> But yes.

We agree. I've put a temporary fix in which is simply to send the program 
changes for all instruments in preparePlayback(), disregarding the 
'sendsProgramChange' flag. However that will conflict with cases where the 
program changes are in the MIDI itself. It will work if you play from the 
beginning, since the prog. changes in the MIDI stream will override those we 
send, but not if you start playing from the middle.

The only solution I see is to call preparePlayback() (possibly rename it) once 
at document loading, with a flag telling it to ignore the 
sendsProgramChange() instruments' flag, and then call it "normally" at 
playback start.

-- 
                                                Guillaume.
                                                http://www.telegraph-road.org


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Rosegarden-devel mailing list
[EMAIL PROTECTED] - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-devel

Reply via email to