[CM] downsampling

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


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))






More information about the Cmdist mailing list