Re: Spectrum analysis
Posted: Thu Dec 25, 2014 1:01 pm
Nyquist will only accept a dot as the decimal separator.
For plugins that have numeric input boxes, the numeric input box is internationalized so that the decimal separator appropriate to the locale is used ("comma" for Russian locale). If necessary, Audacity then converts the decimal separator to a dot before passing the value to Nyquist.
A few plugins use text boxes rather than numeric input boxes for numerical data (usually to work around limitations of the Nyquist plugin interface). Where a text box is used, the input can not be verified during typing for validity of numerical data (all printable characters are allowed). It is then down to the plugin code to verify the data and handle errors.
The new "Spectral edit" plugins use numeric data from the spectral selection. That data is passed to Nyquist as strings (text). The code that does this is new, and it appears that the developer forgot that the conversion from number to string must use a dot. I shall be submitting a patch to fix this shortly.
For plugins that have numeric input boxes, the numeric input box is internationalized so that the decimal separator appropriate to the locale is used ("comma" for Russian locale). If necessary, Audacity then converts the decimal separator to a dot before passing the value to Nyquist.
A few plugins use text boxes rather than numeric input boxes for numerical data (usually to work around limitations of the Nyquist plugin interface). Where a text box is used, the input can not be verified during typing for validity of numerical data (all printable characters are allowed). It is then down to the plugin code to verify the data and handle errors.
The new "Spectral edit" plugins use numeric data from the spectral selection. That data is passed to Nyquist as strings (text). The code that does this is new, and it appears that the developer forgot that the conversion from number to string must use a dot. I shall be submitting a patch to fix this shortly.