Moving form nyquist prompt to nyquist plugin
Posted: Thu Jan 23, 2014 3:51 pm
Hi all,
Sorry for this basic question but I am starting with audacity.
In a previous topic, steve gave me some code to give the rms level every 100 ms. I want to customize this in the future (ask for the time window size...) but as I am using it quite a lot on different files, I wanted to insert it in a menu as a plugin.
However after starting, restarting of audacity the plugin is not showing up.
Here is the code
I saved this file as Rms sampling.ny in the plug-ins folder in the Audacity folder.
I don't understand where is my error?
Thanks for the help
Chris
Audacity 2.0.5 under MacOS 10.9.1
Sorry for this basic question but I am starting with audacity.
In a previous topic, steve gave me some code to give the rms level every 100 ms. I want to customize this in the future (ask for the time window size...) but as I am using it quite a lot on different files, I wanted to insert it in a menu as a plugin.
However after starting, restarting of audacity the plugin is not showing up.
Here is the code
Code: Select all
;nyquist plug-in
;version 1
;type analyze
;name " Rms sampling… "
;action " Rms sampling the selection every 100 ms… "
; code given by steve
(let* ((labels ())
(rmss (rms s))
(sr (snd-srate rmss)))
(do ((i 0 (1+ i))
(val (snd-fetch rmss)(snd-fetch rmss)))
((not val) labels)
(setq val (linear-to-db val))
(push (list (/ i sr) (format nil "~a" val))
labels)))
I don't understand where is my error?
Thanks for the help
Chris
Audacity 2.0.5 under MacOS 10.9.1