As Trebor wrote, you don't need to change the code.robertdaleweir wrote: ↑Wed Dec 12, 2018 5:19 amBecause the ' ; ' is in front of this line, I assume it is a Comment and not used by the plugin. I changed it to:
;control compress-ratio "Compress ratio" real "" .77 -.5 1.25
My question is: Do I have to remove the ' ; ' at the beginning of the line to have the parameters used or just use it as it was? (with the change to .77 from .5 of course)
If the code is not changed, the plug-in will remember the last settings used, and, as Trebor described, you can create user presets.
To answer your direct question...
Code: Select all
;control compress-ratio "Compress ratio" real "" .5 -.5 1.25
This header tells Audacity to create a slider widget in the plug-in GUI to accept floating point values. The value is assigned to a Nyquist variable: "compress-ratio".
The three numbers at the end represent the "factory default", minimum and maximum values. So in this case, the factory default value for "compress-ratio" is 0.5, and it can be set by the user to any value in the range 0.5 to 1.25.
The semicolon at the start is required, otherwise Nyquist will try to interpret this line and will fail (because it is not written for Nyquist and is not valid Nyquist syntax).