setting envellope control point using nyquest

Using Nyquist scripts in Audacity.
Post and download new plug-ins.
Forum rules
If you require help using Audacity, please post on the forum board relevant to your operating system:
Mac OS X
GNU/Linux and Unix-like
Site Admin
Posts: 81379
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: setting envellope control point using nyquest

Post by steve » Sat Apr 24, 2021 9:03 pm

Rather than running that first Nyquist code with the Nyquist Prompt, you could convert it into a plug-in and install it.

To convert it into a plug-in, you just need to add a few "header comments" at the top of the script, and save it as a plain text file. Then change the file extension from ".txt" to ".ny".

See here for information about plug-in headers: ... in_Headers
You must include all of the "Required plug-in headers" ( ... ed_headers)

Notice that the code that I posted already has two of the required headers:

Code: Select all

;version 4
;type tool

The first two line of actual code:

Code: Select all

(setf interval 3.0) ;time interval between points
(setf val 0.5)  ;envelop point value
could be converted to slider controls like this:

Code: Select all

;control interval "Time between points" float "" 3 0.1 10
;control val "Point value" float "" 1 0 2
More info about slider widgets: ... ce#widgets
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Post Reply