Known Bugs in the Audacity 1.3.3 Nyquist Interface

Bug fixed by Markus Meyer on 30. June 2007.

In case the bug will re-appear again:

In the Nyquist user interface (slider box) in the German Audacity Windows 
version (Mac works, Linux not tested) there is a problem with "real" values.
In Germany we write 1,0 instead of 1.0 (a comma instead of a dot) so the
Nyquist Interface turns 1.0 into 1,0. If I initalize a "real" value with
e.g. "1.5" this is ignored by the Interface and instead "1,0" is displayed
and unfortunately also used afterwards in the calculations.

This results in another problem: In the German Audacity Windows version "real"
values can only be initialized with integer values otherwise the plugins do not
work. Initializing "real" variables with values less than 1.0 (e.g 0.5) is not
possible. I usually try to solve this with an integer value "percent" slider
and calculate the "real" value afterwards by XLisp functions but sometimes this
is very confusing for the user and I have to write manuals like "How to handle
the weird slider values".

This is the main reason why most of the nyquist plugins from the SF Nyquist
download page do not work in the German Audacity Windows version and I usually
first have to "fix" them to make them work for the users in the german audacity
support forum. (Often this is not a fix but a worsification and ends up in 
different Windows, Mac and Linux versions).

Reproduction Report:

First I write a plugin that does nothing but to return the slider values:
-------------------------------------------------------------------------------
;nyquist plug-in
;version 1
;type generate
;name "Slider-Test"
;action "blah"
;info "blah"
;control test-1 "1.66" real "real" 1.66 0 10
;control test-2 "1,66" real "real" 1,66 0 10

;; write to the Audacity Nyquist 'debug' window
(format t "1.66: ~A~%" test-1)
(format t "1,66: ~A~%" test-2)

;; write to the Audacity Nyquist message box
(strcat (format nil "1.66: ~A ~%" test-1)
        (format nil "1,66: ~A ~%" test-2))
-------------------------------------------------------------------------------
Then in Audacity Windows version I "generate" a "Slider-Test".

With "File/Preferences/Interface/Language: German":
The number box beside the slider displays: 1,0 (with a comma)
and Nyquist returns: 1.000000

With "File/Preferences/Interface/Language: English"
The number box beside the slider displays: 1.66 (with a dot)
and Nyquist returns 1.660000

If I do *not* move the slider with "Language: German" from the second run on
the comma in the number box beside the slider becomes a dot (1,0 becomes 1.0).
If I move the slider, the Nyquist Interface starts to "remember" the value and
from that moment "real" values work. If I use the plugin several times in a row
*without* moving the slider the wrong value remains. But maybe it's only an
initialisation error and the Interface "remembers" the wrong value.

Now if I change the initialisation value to "1,66":
-------------------------------------------------------------------------------
;nyquist plug-in
;version 1
;type generate
;name "Slider-Test"
;action "blah"
;info "blah"
;control test-dummy "blah" real "blah" 1,66 0 10

test-dummy
-------------------------------------------------------------------------------
then the effect is just the opposite:

With "File/Preferences/Interface/Language: German":
The number box beside the slider displays: 1,7 (with a comma)
and Nyquist returns: 1.660000

With "File/Preferences/Interface/Language: English"
The number box beside the slider displays: 1.0 (with a dot)
and Nyquist returns 1.000000

If I do *not* move the slider with "Language: German" from the second run on
the comma in the number box beside the slider becomes a dot (1,7 becomes 1.7).

With "Language: English": Only from the moment that I move the slider "real"
values start to work. Using the plugin several times in a row *without* moving
the slider the wrong value remains.

Exactly the same effect is with "process" (effects) and "analyze" plugins.

Maybe this is a specific german problem because of the comma translation issue.

status: unresolved

Schliessen / Close

Letzte Änderung (last modification) - 30. June 2007 - edgar-rft