Vround replacement?

Mar 27, 2007 at 1:07pm

Vround replacement?

hi,

Does anyone know of a UB (ie MacIntel) equivalent to Vround?

“Vround calculates the integer nearest to the value given (either a
list or a single number).”

thanks

David

#31047
Mar 27, 2007 at 1:33pm

#100320
Mar 27, 2007 at 1:48pm

http://www.maxobjects.com/?
request=round&operateur=AND&id_plateforme=UB&Submit=OK

round
Lround
f0.round
roundto

http://www.maxobjects.com

http://mathieu.chamagne.free.fr

#100321
Mar 27, 2007 at 2:44pm

Nice – thanks. I didn’t know you could do that.

On 27 Mar 2007, at 14:33, jeanfrancois.charles wrote:

> The following is a version working only with positive numbers:
>

#100322
Mar 27, 2007 at 2:50pm

Indeed. I have no idea why I didn’t use Lround in the first place,
given that I’ve been using the LObjects for years.
Hey ho.

On 27 Mar 2007, at 14:48, mathieu.chamagne@gmail.com wrote:

> http://www.maxobjects.com/?
> request=round&operateur=AND&id_plateforme=UB&Submit=OK
>
> round
> Lround
> f0.round
> roundto
> …
>
> http://www.maxobjects.com
> http://mathieu.chamagne.free.fr
>
>

#100323
Mar 28, 2007 at 10:54am

David Stevens schrieb:
> Does anyone know of a UB (ie MacIntel) equivalent to Vround?

jeanfrancois.charles schrieb:
> General advice: try not to use externals when you can use a simple
> abstraction. The following is a version working only with positive
> numbers:

If you have an old patch with that external you’d rather try to mimic it
completely, Vround will also accept symbols within the list…

Try this as abhaXion…
(it would even run in Windows and if the sparc version of lround doesn’t
come up fast enough it will do it as well… ;-)

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P message 171 85 20 196617 15;
#P message 156 69 29 196617 13.2;
#P message 43 126 111 196617 -1.1 2.3 huba 4.6 -0.7;
#P button 166 255 15 0;
#P newex 14 201 60 196617 prepend set;
#P message 14 69 41 196617 1 2 3 4;
#P message 23 89 58 196617 1 2 3 blorg;
#P message 33 107 50 196617 1 2 3 4.5;
#N vpatcher 20 74 181 406;
#P outlet 59 276 15 0;
#P window setfont “Sans Serif” 9.;
#P newex 59 252 46 196617 zl group;
#P newex 59 114 56 196617 route float;
#P newex 42 60 27 196617 t b l;
#P inlet 42 38 15 0;
#P newex 59 89 27 196617 iter;
#P newex 59 178 28 196617 + 0.;
#P newex 59 199 33 196617 – 0.5;
#P newex 59 136 28 196617 t f f;
#P newex 77 157 27 196617 > 0.;
#P newex 59 222 33 196617 int;
#P connect 6 0 7 0;
#P connect 7 1 5 0;
#P connect 5 0 8 0;
#P connect 8 0 2 0;
#P connect 2 0 4 0;
#P connect 4 0 3 0;
#P connect 3 0 0 0;
#P connect 0 0 9 0;
#P fasten 8 1 9 0 110 245 64 245;
#P fasten 7 0 9 0 47 245 64 245;
#P connect 9 0 10 0;
#P connect 2 1 1 0;
#P connect 1 0 4 1;
#P pop;
#P newobj 14 169 50 196617 p Vround;
#P message 14 255 148 196617 -1 2 huba 5 -1;
#P fasten 3 0 1 0 28 153 19 153;
#P fasten 4 0 1 0 19 153 19 153;
#P fasten 2 0 1 0 38 153 19 153;
#P fasten 7 0 1 0 48 153 19 153;
#P fasten 8 0 1 0 161 153 19 153;
#P fasten 9 0 1 0 176 153 19 153;
#P fasten 1 0 5 0 19 191 19 191;
#P fasten 5 0 6 0 19 245 171 245;
#P fasten 5 0 0 0 19 247 19 247;
#P window clipboard copycount 10;


Stefan Tiedje————x——-
–_____———–|————–
–(_|_ —-|—–|—–()——-
– _|_)—-|—–()————–
———-()——–www.ccmix.com

#100324
Mar 28, 2007 at 12:00pm

> Try this as abhaXion…
> (it would even run in Windows and if the sparc version of lround doesn’t
> come up fast enough it will do it as well… ;-)

It’s a great one, indeed. Seems also compatible with the 4X.

#100325
Mar 28, 2007 at 12:55pm

Nice. Thanks for that.

David

On 28 Mar 2007, at 11:54, Stefan Tiedje wrote:

> David Stevens schrieb:
>> Does anyone know of a UB (ie MacIntel) equivalent to Vround?
>
> jeanfrancois.charles schrieb:
>> General advice: try not to use externals when you can use a simple
>> abstraction. The following is a version working only with positive
>> numbers:
>
> If you have an old patch with that external you’d rather try to
> mimic it completely, Vround will also accept symbols within the
> list…
>
> Try this as abhaXion…
> (it would even run in Windows and if the sparc version of lround
> doesn’t
> come up fast enough it will do it as well… ;-)

#100326

You must be logged in to reply to this topic.