The precision setting changes only the appearance of a value inside Lemur (in a label, or a monitor display). There are rounding functions bulit-in in Lemur but they all round to integers so these wont do either, you need to create a script for the rounding you need.
Off the top of my head:
create a new "out" variable
Then create a script:
Code: Select all
on Expression x
decl i;
i=1000*x;
out=(floor(i))/1000;
(obviously you need to map the "out" variable to your OSC target, instead of x)
Essentially what we do is multiply the x value with 1000 (for example for x=0.125463872 we get i=125.463872) then we take the floor integer (i=125) and we divide it again by 1000 to finally get out=0.125
Note: perhaps there's a better/faster/smarter way - Im not very experienced at this stuff but I believe it will work!
