Page 2 of 2

Re: setting envellope control point using nyquest

Posted: Sat Apr 24, 2021 9:03 pm
by steve
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