Does anyone notice that "atoi" object has limitation with the numbers of characters it can convert into ASCII code?
Dear Experienced Max Users
I'm an entry level Max 5 user and have been facing a problem I can't solve for the last few weeks.
I would like to ask you for some help or the answer for whether Im hitting the wall the software just doesn't let me solve.
(By the way I'm not a native English speaker, so apologies in advance for my poor/confusing expressions. Also this is the first time attempt positing a question in forum, so I may make mistakes with How,,,,,Thank you!!)
My project is to convert a long string of texts into integers so that I can use them as another source of event I wanna cause.
As I was experimenting the patch with several different strings of texts (some of them are 2000 letters with spaces, some are like 9000), I recognized the resulted converted ASCII codes output from the "atoi-object" were cut-off in the middle when I tried with over 5000 characters.
(It seems up to 4000 characters are working fine, but after 4096th (or somewhere around) character, the "atoi" just does not output anything but drops the rest.)
You can also see the symptom that the string is left out (or unconverted n' not-output) in the middle when converting back the partially-yet-successfully-output-ASCII-codes into texts with "itoa" object.
Here's what my patch looks like:
I am using a message object to past and send the source strings of texts to atoi object, getting and showing the resulted ASCII codes in another message object. The "listfunnel" and "counter" are used in order to know the #s of ASCII codes (and the #s of characters used in the texts) the string contains, and in order to store them with the "coll" object so that I can use the indexed data latter on.
Again, as long as the texts were made of less than 4000 characters (including space) it seems fine, but the problem is at the case I try convert ones constructed with over 4100 characters,,,,, like 10000.
(BTW, just for the crediting purpose, the text is one entry from the Anne Franc's diary)
Thank you for reading!!