I wonder if the srate setting fell out of init-with-sound? I'd try inserting the line (set! (mus-srate) srate) just before (if output-to-file in init-with-sound (around line 341).