From: Andres Cabrera <mantaraya36@gm...> - 2011-02-04 09:34:27
I think it's working like it should for me... The status of the red
"Led" always reflects whether the threshold has been crossed, even
before having moved the slider. How are you testing for the value at
I think if the if..then uses a k-rate variable, the initialization
pass will go through all the branches, which is generally preferred as
you would end up with uninitialized opcodes. But since outvalue does
produce a value at init time, you would have a brief moment where the
value would be the last value found. I think this might not be an
issue since you would probably always be testing at k-rate.
However you can also make sure the value is right at init-time doing
kOnThresh invalue "OnThresh"
outvalue "Led", int(kOnThresh /3000)