mirror of
https://github.com/cookiengineer/audacity
synced 2025-04-30 15:49:41 +02:00
I've added some of the new plugin stuff to LV2, Nyquist, and Vamp so that they play better in the new system. They no longer get bunched in with the Audacity effects when sorting or grouping the menus. They have not been fully converted but they should be good for 2.1.0. Nyquist plugins now include ";author" and ";copyright" statements. Added the 4 new Nyquist plugins to the Windows build. Audiounits are still coming...had to push them to the back burner to get this other stuff out of the way. Scanning for new plugins has been improved so that newly discovered ones will be shown to the user when Audacity starts. Effects menu sorting has been fixed and improved. Disabling effect types in Preferences works again and you no longer have to restart Audacity for them the change to work. Effect usage in chains works again. Plugin registration dialog code simplified a bit. Group names in the pluginregistry are now base64 encoded. I never really thought about it, but wxFileConfig group names are case insensitive and since I was using the group name as the plugin ID, I ran into a conflict on Linux where there were two plugins with the same name, just different case. (And they were different plugins.) Hoping all of this will change when/if the config file gets converted to XML. (wx3 if finally including XML support) A fair amount of cleanup of this new code has been done and will continue as more stuff is converted.
44 lines
1.4 KiB
Common Lisp
44 lines
1.4 KiB
Common Lisp
;nyquist plug-in
|
|
;version 1
|
|
;type process
|
|
;categories "http://lv2plug.in/ns/lv2core#MixerPlugin"
|
|
;name "Studio Fade Out"
|
|
;action "Applying Fade..."
|
|
;author "Steve Daulton"
|
|
;copyright "Released under terms of the GNU General Public License version 2"
|
|
|
|
;; StudioFadeOut.ny by Steve Daulton December 2012.
|
|
;; Released under terms of the GNU General Public License version 2:
|
|
;; http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
|
;;
|
|
;; Produce a smooth and musical sounding fade out.
|
|
;; Applies a sinusoidal fade out with a progressive low-pass
|
|
;; filter from full spectrum at start to 100 Hz at end.
|
|
;;
|
|
;; For information about writing and modifying Nyquist plug-ins:
|
|
;; http://wiki.audacityteam.org/wiki/Nyquist_Plug-ins_Reference
|
|
|
|
;;; sweeping low pass filter
|
|
(defun filter (sig dur)
|
|
(abs-env
|
|
;; cross-fade the filter
|
|
(let* ((nyq-hz (/ *sound-srate* 2))
|
|
(f-out (r-cos (min (/ dur 2.0) 0.5)))
|
|
(f-in (diff (snd-const 1 0 *sound-srate* dur) f-out)))
|
|
(sim
|
|
(mult f-out sig)
|
|
(mult f-in (lp sig (pwlv nyq-hz dur 100)))))))
|
|
|
|
;;; raised cosine
|
|
(defun r-cos (dur)
|
|
(abs-env
|
|
(mult 0.5
|
|
(sum 1
|
|
(osc (hz-to-step (/ (* dur 2))) dur *table* 90)))))
|
|
|
|
(let ((dur (get-duration 1)))
|
|
(cond
|
|
((< len 3) "Selection too short.\nIt must be more than 2 samples.")
|
|
((< dur 0.2) (mult s (r-cos dur)))
|
|
(t (mult (filter s dur)(r-cos dur)))))
|
|
|