Welcome to %s forums

BrainModular Users Forum

Login Register

Modulo that outputs float?

I need help on a Patch
CLeRIK
Member
Posts: 23

Unread post by CLeRIK » 26 Jun 2010, 19:48

Hi!

I just noticed that the module "A mod B" outputs the integer remainder. What's the easiest way to get the float reminder? I guess it would be pretty easy to create a patch that does this?

CLeRIK
Member
Posts: 23

Unread post by CLeRIK » 26 Jun 2010, 19:56

I just solved it, but it doesn't look very pretty :)

23fx23
Member
Posts: 2548

Unread post by 23fx23 » 26 Jun 2010, 20:00

what i do usualy is multiply all by 10, 100, or 1000 (the in, the mod, and out of mod) not pretty either..

wonders if there is a better teck.

CLeRIK
Member
Posts: 23

Unread post by CLeRIK » 26 Jun 2010, 21:53

Here's the solution I came up with: http://www.sensomusic.com/download.php? ... dfloat.pat

23fx23
Member
Posts: 2548

Unread post by 23fx23 » 28 Jun 2010, 17:07

oh yeah mean that outputs real floats, with int mod. well done,nice, not that weirf. thanks.
between can also use trunc instead of DIV 1, equivalent here.

Post Reply