1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-03-06 14:35:32 +01:00

Update Nyquist plug-in headers

Mostly consistency updates, plus a couple of minor fixes.
Line breaks in translated control text strings do not work, so have
been removed.
Obsolete ";categories" commands removed, and ";info" commands replaced
with standard Lisp comments.
This commit is contained in:
Steve Daulton
2018-03-21 22:49:35 +00:00
parent 2ccc8eec9b
commit 975e95abad
26 changed files with 627 additions and 559 deletions

View File

@@ -1,16 +1,20 @@
;nyquist plug-in
;version 4
;type process spectral
$name (_"Spectral edit multi tool")
;manpage "Spectral_edit_multi_tool"
$action (_"Filtering...")
$author (_"Paul Licameli")
$copyright (_"Released under terms of the GNU General Public License version 2")
$nyquist plug-in
$version 4
$type process spectral
$name (_ "Spectral edit multi tool")
$manpage "Spectral_edit_multi_tool"
$action (_ "Filtering...")
$author (_ "Paul Licameli")
$copyright (_ "Released under terms of the GNU General Public License version 2")
;; SpectralEditMulti.ny by Paul Licameli, November 2014.
;; Updated by Steve Daulton 2014 / 2015.
;; Released under terms of the GNU General Public License version 2:
;; http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
;;
;; For information about writing and modifying Nyquist plug-ins:
;; https://wiki.audacityteam.org/wiki/Nyquist_Plug-ins_Reference
(defun wet (sig f0 f1 fc)
(cond
@@ -34,10 +38,10 @@ $copyright (_"Released under terms of the GNU General Public License version 2")
(cond
((not (or f0 f1)) ; This should never happen for a 'spectral' effect.
(throw 'error-message
(format nil (_"~aPlease select frequencies.") p-err)))
(format nil (_ "~aPlease select frequencies.") p-err)))
((and f0 f1 (= f0 f1))
(throw 'error-message
(format nil (_"~aBandwidth is zero (the upper and lower~%~
(format nil (_ "~aBandwidth is zero (the upper and lower~%~
frequencies are both ~a Hz).~%~
Please select a frequency range.")
p-err f0)))
@@ -45,7 +49,7 @@ $copyright (_"Released under terms of the GNU General Public License version 2")
;; 'Magic numbers' 10 Hz and 10 octaves are experimental.
((and f0 (< f0 10) (or (not bw)(> bw 10)))
(throw 'error-message
(format nil (_"~aNotch filter parameters cannot be applied.~%~
(format nil (_ "~aNotch filter parameters cannot be applied.~%~
Try increasing the low frequency bound~%~
or reduce the filter 'Width'.")
p-err)))
@@ -62,5 +66,5 @@ $copyright (_"Released under terms of the GNU General Public License version 2")
(prod (diff 1.0 env) sig))))))
(catch 'error-message
(setf p-err (format nil (_"Error.~%")))
(setf p-err (format nil (_ "Error.~%")))
(multichan-expand #'result *track*))