I am programming a system where I play back videos via customscriptbuttons, the fade-in time is assigned via a midi fader. I use a range node to convert the 1-127 midi values into 1-5 values, then I pass that trough a round math node so I have no more than one decimal place and assign it to a "fadetime" variable. Then when I click the customscriptbutton it WDFadeToValue,1,fadetime,255 for example.
My issue is that it rounds the "fadetime" value to the nearest second, so if my "fadetime" variable is set a 0,5 it will CUT the video in, if it is set at 0,6 it will fade it in for 1 sec. I believe the problem lies in the way the range tool works vs how the script are written; in script time has to be expressed with a period as in 0.6 whereas the range node output 0,6. Does it makes sense? Is that really the issue? How can I correct this?