Strange behavior

May 2, 2012 at 9:55pm

Strange behavior

Hello forum members, I have not had luck with my questions on this forum, I am new to Max / Msp and really is a bit frustrating how little help I found to my previous questions.
Maybe it’s my bad English. I hope you can get around and figure out what is not expressed properly.
Well, here is my question:
Strange behavior of [%~]
Sometimes [% ~ 3] or other odd: -> 0, 1, 2, 0, 1 etc – and other -> 1. 2. 3.
This happens inside a poly ~. if I load it manually after starting the patch, it corrects this strange behavior.

– Pasted Max Patch, click to expand. –
#63360
May 3, 2012 at 12:18am

So is the problem that sometimes it seems 0-based, and sometimes it seems 1-based?

#228522
May 3, 2012 at 1:09am

Thank you for your answer, yes, that’s what happens.
I had to do a routine to detect if it is an even or an odd to add one as the case basically thought always add 1 to the operation without distinction of odd or even ([%]> [+ 1]), then I found that not doing “dynamic loading” but rewriting the name in the poly ~ object which is included, that normalized the two results.
Now on another computer throws me correct results without all the baroque procedure.
I do not know that happened.
Thank you again.
And again sorry for my English.

#228523

You must be logged in to reply to this topic.