[CM] downsampling

Bill Schottstaedt bil at ccrma.Stanford.EDU
Tue, 4 Mar 2008 03:59:35 -0800


The sound's sampling rate is 'srate' (if loaded into Snd),
or 'mus-sound-srate' (if not in Snd).

(srate 0)
(mus-sound-srate "oboe.snd")


To set the sync field of all but the selected sound,

(for-each
  (lambda (snd)
    (if (not (= snd (selected-sound)))
        (set! (sync snd) 1)))
  (sounds))