I know this is really obscure, but I hope there's a solution....
With this function:
var msg = Effect;
I seem to get a mix of int and floats coming from outlet.
If I feed it "test 1" the ouput in max is:
If I feed it "test 0" the ouput in max is:
which, on the surface, seems like no problem. However, the fact that the "0" is an integer type, rather than a float like "0.0" is causing me sadness. For some reason, this change between floats and ints keeps the pattrstorage from reporting the "Effect 0" with all the other stream of messages that have floats. This bizarre wrinkle is causing me some grief, and I'm wondering if there's a way to force that 0 into a 0.0 from within the js? I already tried parseFloat, which, as you might expect, didn't work. I'm guessing this has to do with the bridge between js and max, and the fact that js only has the type "number" and doesn't distinguish between float and int.
Anyway, I hope there's a good solution. Thanks for listening!