Comment 2 for bug 1645565

Revision history for this message
ronso0 (ronso0) wrote : Re: jscript issue: true/false is not 1/0

Yeah, of course I don't hear the effect when "mix" is 0.
"0" is just the position when toggling the effect, after that I increase "mix".
My initial description might be to complex.
Procedure is like this:
1. mix = 0, effect_enabled = 0
2. switch effect with "fxSlot1_enabled != fxSlot1_enabled"
> status is updated in GUI
3. 0 < "mix" < 1
> effect is NOT audible
4. set "mix" to 0 again
5. switch effect off with script
repeat 1, 2, 3...
> effect is audible
repeat 1, 2, 3...
> effect is NOT audible
repeat 1, 2, 3...
> effect is audible

As mentioned above: toggling the effect like this works everytime
  if (fxSlot1_enabled == false) {
    fxSlot1_enableds = 1;}
  else {
    fxSlot1_enabled = 0;}
So I suppose it has to do with binary/boolean.
Also it works when mapping "mix" knob to 0,001-1 instead of 0-1.