Audacity crashes when snd-avg is given certain inputs and the resulting sound is evaluated.
The problem depends only on the lengths of the sounds involved, not the values of the samples.
Do this in the Nyquist prompt.
Code: Select all
(setf srate 44100.0)
(defun make-sound (length)
(let ((arr (make-array length)))
(dotimes (ii length) (setf (aref arr ii) 0))
(snd-from-array 0 srate arr)))
(let* ((nn 44100)
(mm 650)
(snd1 (make-sound nn))
(snd2 (make-sound mm))
(snd3 (convolve snd1 snd2))
(snd4 (snd-xform snd3 srate 0 (/ (/ mm 2.0) srate) MAX-STOP-TIME 1.0)))
(snd-avg snd4 440 220 OP-PEAK))