Where did you find this code?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)))))
Track sampling rate question.
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
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
Re: Track sampling rate question.
Re: Track sampling rate question.
mszlazak has not posted on the forum for over a year.