using setModValue and Snex Node Macros / Variables
-
Is there an issue with my syntax?
(line 10)
It works perfectly when I inject a float directly into the setModValue, but for some reason it will not accept this float variable macro. -
@griffinboy setModValue expects a double precision number.
modValue.setModValue((double)dummy) should work.
I haven't exactly figured out why it complains at stuff like this, because the compiler should actually be able to implicitely cast the float to a double value.
-
@Christoph-Hart
Thanks! Ah I did not think of that, no problem -
-
-
@Christoph-Hart
Unfortunately it seems that something else is afoot too lol
I'm right in thinking this is the correct way to use the macros that belong to a snex node?
Declare them as variables and use them?
For some reason the macro is not affecting the variable.
I can't find a difference between what I have done, and the scripts in the example snippets involving the snex node. -
@griffinboy dummy is the 7th parameter, so it must say
if(P == 6) { dummy = (float)v; }
-
@Christoph-Hart
Thanks! Apologies for the dumb question : )
I am still figuring out what everything does.
I see, P is parameter