Hello,
I'd like to display some fader widget value to a text object in my matrix of channel strip fragment.
I've found out how to do this by using "value": "VAR{level,100}"
in text widget and "onValue": "setVar(\"faderValue_@{parent.variables.n}\",\"level\",get(this))"
in fader widget with "decimals": 0
.
This works pretty well but the number displayed in text widget has decimal numbers, and this is not what I've been expecting.
This is strange because the fader send an integer value through OSC, as expected.
I've tried the Math.floor(get(this)) function but it displays the OSC value minus 1, and Math.ceil(get(this)) displays the OSC value plus 1, so weird...
Maybe I've made this too complicated, but it's the only way I've found to display value through a fragment matrix generated by a custom module.