[+ #1.] int addition

May 3, 2006 at 9:00pm

[+ #1.] int addition

#25769
May 3, 2006 at 10:06pm

what about [+ #f1] or [+. #1]?

or [.+ .#] if you like.

#76272
May 3, 2006 at 10:09pm

Two possible workarounds:

loadbang -> ‘#1′ -> [+ 0.](right inlet)

loadbang -> [float #1] -> [+ 0.](right inlet)

– P.

————– http://www.bek.no/~pcastine/Litter/ ————-
Peter Castine +–> Litter Power & Litter Bundle for Jitter

iCE: Sequencing, Recording & |home | chez nous|
Interface Building for |bei uns | i nostri|
Max/MSP Extremely cool http://www.castine.de

http://www.dspaudio.com/

#76273
May 3, 2006 at 10:14pm

make the argument to #1 “1.” or “2.” as long as it has the ‘.’ it
will become a float add. I just tested it, it works.

v a d e //

http://www.vade.info
abstrakt.vade.info

#76274
May 4, 2006 at 3:32am

#76275
May 4, 2006 at 3:36am

#76276
May 4, 2006 at 3:45am

ah, apologies.

I see what you mean. I merely thought you wanted to use the ’3.’ as a
float throughout the subpatch, not as both int and float within the
subpatch. other posters have given other solutions, however which
should work, but dont solve the #1. issue explicitly.

thanks,

v a d e //

http://www.vade.info
abstrakt.vade.info

I LIVE! I LIVE! I LIVE! I LIVE! I LIVE! I LIVE! I LIVE! I LIVE! I
LIVE! I LIVE! I LIVE! I LIVE!

You will not be saved by the Holy Ghost. You will not be saved by the
God Plutonium.

In fact, YOU WILL NOT BE SAVED!

#76277
May 4, 2006 at 3:29pm

me still do not get the idea why you
would exspect or want to float-add #1
when #1 is an int. this is why my dumb joke.

it is not a surprise that for example
[+ 7] is an int addition, or is it?

if there would be a way to make a float addition
using [+ 7] then what would [+ 7.] be good for …

[+ 110.] goes out in the sun now

#76278
May 4, 2006 at 3:56pm

ok when i try it myself i understand.

well, but it works as soon as the left
operand is a float, isnt that enough? ;)

[abstrakt 7 7 7. 7.]

max v2;
#N vpatcher 361 535 1020 848;
#P newex 120 102 50 196617 print;
#P newex 242 102 50 196617 print;
#P newex 365 102 50 196617 print;
#P newex 489 102 50 196617 print;
#P button 432 216 15 0;
#P flonum 432 185 51 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 388 40 50 196617 5.333;
#P newex 432 84 50 196617 + $4;
#P button 309 216 15 0;
#P flonum 309 185 51 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 265 40 50 196617 5.;
#P newex 309 84 50 196617 + $3;
#P button 186 216 15 0;
#P flonum 186 185 51 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 142 40 50 196617 5.333;
#P newex 186 84 50 196617 + $2;
#P button 63 216 15 0;
#P flonum 63 185 51 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 19 40 50 196617 5;
#P newex 63 84 50 196617 + $1;
#P connect 1 0 0 0;
#P connect 0 0 2 0;
#P connect 2 0 3 0;
#P connect 0 0 19 0;
#P connect 5 0 4 0;
#P connect 4 0 6 0;
#P connect 6 0 7 0;
#P connect 4 0 18 0;
#P connect 9 0 8 0;
#P connect 8 0 10 0;
#P connect 10 0 11 0;
#P connect 8 0 17 0;
#P connect 13 0 12 0;
#P connect 12 0 14 0;
#P connect 14 0 15 0;
#P connect 12 0 16 0;
#P pop;

#76279
May 4, 2006 at 7:06pm

#76280
May 9, 2006 at 9:21pm

#76281

You must be logged in to reply to this topic.