Forums > MaxMSP

Storing numbers

October 29, 2008 | 3:11 pm

Hello,

Sorry for the stupid question, but my brain is tired…

I’d like to take the integer output of two clicks on a kslider, store the first in one integer object, and store the second in another integer object. The third click would start the process over again. I know there’s a way to do this, but I’m a little rusty.

Thanks,
Brennon


October 29, 2008 | 3:59 pm

Sorry…can’t seem to figure out how to post Max 5 patches on the forum as everyone else is doing. The output is so different from Max 4 when using Open as Text. I’ve attached a patch to the post–if this isn’t how I’m supposed to be doing it, please let me know.

This is what I’ve come up with to solve my problem, but it seems so clunky. I seem to recall that there is an object that takes care of most of the logic here. Does any one know what I’m talking about, or am I just crazy?

Thanks,
Brennon


October 29, 2008 | 4:14 pm

Brennon Bortz schrieb:
> I’d like to take the integer output of two clicks on a kslider, store
> the first in one integer object, and store the second in another
> integer object. The third click would start the process over again.
> I know there’s a way to do this, but I’m a little rusty.

is it that hard??? Next time try harder… ;-)

– Pasted Max Patch, click to expand. –


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


October 29, 2008 | 4:16 pm

zl group should do it. Copy and paste this into Max:

– Pasted Max Patch, click to expand. –

Regards
jan


October 29, 2008 | 4:23 pm

Thanks, you two! Wow, I really was trying too hard… For the record, how do I get that encoded text output for posting in the forums, as opposed to attaching the patch file itself?


October 29, 2008 | 4:30 pm

Just select what you want and Copy Compressed from the edit menu.

jan.


October 30, 2008 | 1:23 am

‘copy compressed’ and just paste into an email or the forum. it’s text.

On Oct 29, 2008, at 12:23 PM, Brennon Bortz wrote:

>
> Thanks, you two! Wow, I really was trying too hard… For the
> record, how do I get that encoded text output for posting in the
> forums, as opposed to attaching the patch file itself?


October 30, 2008 | 3:27 pm

Change to 2 if you want behavior like jan.jdo or leave as 3 for behavior like stefantiedje.

– Pasted Max Patch, click to expand. –

Viewing 8 posts - 1 through 8 (of 8 total)