Forums > MaxMSP

Computing numbers: Inc/Decrement/Wave Wrap Counter [newbie]

December 23, 2013 | 10:57 am

Hi,
(sorry for my question i did’nt find in the forum)

Using counter i can change:
- min sending message "setmin $1" in first box input
- max using last box input called "set count max"

I tried using "carry" that bang when count hit max to increment (+1 ) the "set count max" but it doesn’t start again and increments to infinite.

Any solution to get:
1 2 3/ 2 3 4/ 3 4 5/ 5 6 7 for example?

Here’s the patch that failed…
Thanks a lot for any feedback :-)


December 23, 2013 | 11:46 am

<code>

– Pasted Max Patch, click to expand. –

</code>


December 23, 2013 | 2:58 pm

Thanks a lot Chris,

I’d love to think that way,
hope it ll come with time.

it’s kind of a backward way of using it to me ;-)


December 23, 2013 | 3:43 pm

Hi
I’m trying to change the count to down and up&down directions,
and also to restart it after a number but with "coherent" transition,
as for number around a circle. (with a view of spacialization )
for ex limit to 7:
123/234/345/456/567/671/712/123/…

Sorry for my Newbeing !
( I try as much as I can… )


December 23, 2013 | 4:30 pm

Well,
still stuck I’m wondering why "carry count" doesn’t continue while in down mode…
<code>

– Pasted Max Patch, click to expand. –

</code>


December 26, 2013 | 9:46 am

Hi there,
so I tried with a sel but no success,
maybe the disposition from right to left that doesn’t make the calculation in the right order?
Any hint?

Thanks a lot

<pre>

– Pasted Max Patch, click to expand. –

</code></pre>


December 26, 2013 | 10:09 am

<code>

– Pasted Max Patch, click to expand. –

</code>


December 26, 2013 | 11:00 pm

Weird, I can’t get the carry count to work in downward mode either.

Here’s a way to do it for each direction, avoiding zeros, using pong to wrap the values like you described:

– Pasted Max Patch, click to expand. –

</code>

Pong is weird in the downward direction too – it seems to take one "wrap" for it to output the correct range, which is why I stuck those range messages in there to be banged after the first wrap.


December 29, 2013 | 5:08 pm

Thanks Charlie but i don’t see where the problem comes from ,
I ‘m usually using isadora software that intergrates a wrap counter,
it’s amazing how this is hard in max… just to make several series of number,
but i’m sure there should be a simpliest way of doing: ( in 4 ie )

- 1 2 3 2 3 4 3 4 1 4 1 2 1 2 3 …
_ 1 4 3 4 3 2 3 2 1 2 1 4 1 4 3 …
_ 1 2 3 4 3 2 1 2 3 4 1 4 3 2 3 4 1 2 1 4 3 …

and being able to change min/ max and interval of counting,
I think I’m going to give up ;-ù


January 2, 2014 | 4:43 pm

any help?


January 10, 2014 | 10:53 pm

Please?


January 11, 2014 | 4:43 am

Here’s a patch that produces the up and down with a variable maximum

<code>

– Pasted Max Patch, click to expand. –

</code>


January 19, 2014 | 5:00 pm

thanks a lot Rick,
i’ll dig in it seems a clever solution !


January 20, 2014 | 11:39 am

Looks like I was a bit too clever, somethings not quite right. Here’s another take on the patch.

<code>

– Pasted Max Patch, click to expand. –

</code>


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