How to convert integers to ascii when the number of items is more then 256?
My hardware midi instrument (Kurzweil K2500R) does send (when requested by a sysex message) the contents of its LCD screen, which are 8 lines of text and each line holds 40 characters, so in total 320 characters. In Max I do receive this text as a bunch of decimal values. So I can't use 'itoa', because 'itoa' is limited to 256 items. Is there a way around this limitation, so I can convert all the decimal values to ASCII text?
Hello, did you find a solution for this problem of limit of 256 in the itoa object?
[iter]
[itoa]
Try something like this?
Thank you! I can't get it to work with your patch. Here is mine if you manage to do something to have more than 256 items please
Hi, I just tried to understand what you want to do.
First after <atoi> you placed a zl.change, but if you trigger the same message the zl.change doesn't pass any data.
Then I bypassed the serial port branch (are you receiving from Arduino?) and for me the other part runs.
You group the integers to 1000 and then slice in 256 to send to itoa. Please note that you have to set the attribute of zl with zlmaxsize.
Hi, I think I expressed myself badly. What I mean is that I send a list of more than 256 items to Arduino and I receive less than 256 items in max. Wouldn't the problem come from the "serial port" which is probably limited?
Ok my bad i was not aware of zl max size in change object...Now it works. Thank you for your help!