Track sampling rate question.

Audio software developers forum.
Forum rules
If you require help using Audacity, please post on the forum board relevant to your operating system:
Windows
Mac OS X
GNU/Linux and Unix-like
endolith
Posts: 33
Joined: Fri Jan 15, 2010 10:31 pm
Operating System: Please select

Re: Track sampling rate question.

Post by endolith » Wed Jul 14, 2010 11:19 pm

mszlazak wrote:

Code: Select all

;; RMS -- compute the RMS of a sound
;;
(defun rms (s &optional (rate 100.0) window-size)
  (let (rslt step-size)
    (setf step-size (round (/ (snd-srate s) rate)))
    (cond ((null window-size)
               (setf window-size step-size)))
    (setf s (prod s s))
    (setf result (snd-avg s window-size step-size OP-AVERAGE))
        ;; compute square root of average
        (s-exp (scale 0.5 (s-log result)))))
Where did you find this code?

steve
Site Admin
Posts: 81609
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Track sampling rate question.

Post by steve » Wed Jul 14, 2010 11:30 pm

mszlazak has not posted on the forum for over a year.

Post Reply