accum issue

Apr 4, 2013 at 7:03am

accum issue

I’m reseting accum~ but I get 1 instead of 0.. why?
Please see the example patch for more details.

Thanks

– Pasted Max Patch, click to expand. –
#67518
Apr 5, 2013 at 9:58am

nobody?

#242953
Apr 5, 2013 at 7:05pm

maybe because you reset and count to 1 at the same time. (with signals there’s no right to left order).O.

#242954
Apr 5, 2013 at 7:42pm

The same patch in gen will give you a 0

– Pasted Max Patch, click to expand. –
#242955
Apr 6, 2013 at 12:02pm

I’ve logged a note to think about this more deeply, but basically what’s happening is that Max’s plusequals~ reset the count and increment it afterward, while gen~ just reset the count. The patch bellow show the difference of calculation in gen~.

– Pasted Max Patch, click to expand. –
#242956

You must be logged in to reply to this topic.