mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-27 15:50:10 +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:
@@ -1,20 +1,24 @@
|
||||
;nyquist plug-in
|
||||
;version 4
|
||||
;type process spectral
|
||||
;preview linear
|
||||
$name (_"Spectral edit shelves")
|
||||
;manpage "Spectral_edit_shelves"
|
||||
$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
|
||||
$preview linear
|
||||
$name (_ "Spectral edit shelves")
|
||||
$manpage "Spectral_edit_shelves"
|
||||
$action (_ "Filtering...")
|
||||
$author (_ "Paul Licameli")
|
||||
$copyright (_ "Released under terms of the GNU General Public License version 2")
|
||||
|
||||
|
||||
;; SpectralEditShelves.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
|
||||
|
||||
$control control-gain (_"Gain (dB)") real "" 0 -24 24
|
||||
$control control-gain (_ "Gain (dB)") real "" 0 -24 24
|
||||
|
||||
(defmacro validate (hz)
|
||||
"If frequency is above Nyquist, don't use it"
|
||||
@@ -49,13 +53,13 @@ $control control-gain (_"Gain (dB)") real "" 0 -24 24
|
||||
(env (snd-pwl 0.0 rate breakpoints)))
|
||||
(cond
|
||||
((not (or f0 f1)) ; This should never happen for a 'spectral' effect.
|
||||
(throw 'error-message (format nil (_"~aPlease select frequencies.") p-err)))
|
||||
(throw 'error-message (format nil (_ "~aPlease select frequencies.") p-err)))
|
||||
((and f0 (>= f0 (/ *sound-srate* 2.0)))
|
||||
; Shelf is above Nyquist frequency so do nothing.
|
||||
nil)
|
||||
((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)))
|
||||
@@ -67,7 +71,7 @@ $control control-gain (_"Gain (dB)") real "" 0 -24 24
|
||||
(prod (diff 1.0 env) sig)))))))
|
||||
|
||||
(catch 'error-message
|
||||
(setf p-err (format nil (_"Error.~%")))
|
||||
(setf p-err (format nil (_ "Error.~%")))
|
||||
(if (= control-gain 0)
|
||||
nil ; Do nothing
|
||||
(multichan-expand #'result *track*)))
|
||||
|
||||
Reference in New Issue
Block a user