Page 1 of 1

Posted: 10 Sep 2013, 17:42
by La Tenaille
Hello,
I'm looking for a way to round a number with a x.x precision. It's to send a precise tempo from midi clock to master.
Can you help ?
Thanks

Posted: 10 Sep 2013, 18:20
by nay-seven
yes, actually the round module don't have settings to choose, so the workaround is to insert a fader with precision x.xx after your value .?

Posted: 10 Sep 2013, 22:46
by La Tenaille
I already tried this, but I don't know how to get the value out of the rounding fader :|

Posted: 10 Sep 2013, 23:18
by nay-seven
from its outlet..?
where do you want to send this value..?

Posted: 10 Sep 2013, 23:27
by La Tenaille
to master sync tempo. The fader is rounded, but its fader outlet isn't...

Posted: 10 Sep 2013, 23:49
by nay-seven
ok, try fader > float to string ( precisionx.x) then a strings to float > tempo

Posted: 11 Sep 2013, 07:59
by grego mondo
I would do like that :

*10
round
/10

maybe not so nice but efficient ...

Posted: 11 Sep 2013, 10:08
by La Tenaille
both work fine. Thanks for your help :)

Posted: 11 Sep 2013, 10:53
by ceasless
You could also use the 'trunc' module, if it is only important that the number lose it's decimal place (and not that you need the logic where 0.5 = 1, 1.5 = 2). With trunc 1.1-1.9=1,2.1-2.9=2, etc.

Posted: 11 Sep 2013, 14:14
by La Tenaille
Hi ceasless,
I need a precise tempo. Trunking is not precide enough and I can hear the decay when using slicers or short delays.

Posted: 11 Sep 2013, 17:24
by bsork
If you want rounding to one decimal, multiply the number with 10, round that, and then divide by 10.

Posted: 11 Sep 2013, 18:25
by La Tenaille
grego mondo wrote:I would do like that :

*10
round
/10
.
:P

Posted: 12 Sep 2013, 08:41
by bsork
La Tenaille wrote:
grego mondo wrote:I would do like that :

*10
round
/10
.
:P
Oooops! Didn't see that...

Posted: 12 Sep 2013, 12:57
by grego mondo
Anyway, it's always nice to see others have the same logic as you, it reassures !!