mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-01 16:19:43 +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.
37 lines
1.4 KiB
Common Lisp
37 lines
1.4 KiB
Common Lisp
|
|
;nyquist plug-in
|
|
;version 3
|
|
;type generate
|
|
;categories "http://lv2plug.in/ns/lv2core#GeneratorPlugin"
|
|
;name "Pluck..."
|
|
;action "Generating pluck sound..."
|
|
;info "MIDI values for C notes: 36, 48, 60 [middle C], 72, 84, 96."
|
|
;author "David R.Sky"
|
|
;copyright "Released under terms of the GNU General Public License version 2"
|
|
|
|
;; Released under terms of the GNU General Public License version 2:
|
|
;; http://www.gnu.org/licenses/old-licenses/gpl-2.0.html .
|
|
|
|
;control p "Pluck MIDI pitch" int "" 60 1 127
|
|
;control fade "Fade-out type" choice "abrupt,gradual" 0
|
|
;control dur "Duration [seconds]" real "" 1 0.1 30
|
|
|
|
; original pluck.ny modified by David R.Sky October 2007
|
|
; [vastly simplified later]
|
|
; to give user option to use [default] abrupt or gradual fade-out,
|
|
; and ability to make pluck sound up to 30 seconds in duration.
|
|
; Modified January 2007 to use 'snd-pluck' by edgar-rft@web.de
|
|
; instead of the Nyquist 'pluck' function, and normalise to 0.8
|
|
; maximum amplitude. As defined in Audacity, 'pluck' has
|
|
; incorrect length duration and clipping at the start which gives
|
|
; rise to DC offset. Using 'snd-pluck' avoids the clipping and
|
|
; offset so we don't need the highpass8 filter that we used before.
|
|
|
|
|
|
; set final-amp for abrupt or gradual fade
|
|
(setf final-amp (if (= fade 1) 0.001 0.000001))
|
|
|
|
(let* ((pluck-sound (snd-pluck *sound-srate* (step-to-hz p) 0 dur final-amp))
|
|
(max-peak (peak pluck-sound ny:all)))
|
|
(scale (/ 0.8 max-peak) pluck-sound))
|