Forums > MaxMSP

Letters to ASCII

May 26, 2012 | 9:34 am

Hey there,
I’m stuck on my project where I want someone to type a message into the textedit and it shows the ASCII numbers of what they have typed.

so far I’ve got the single ASCII of each character coming out of the textedit into an integer or another textedit but I would like it to create a list of the ASCII numbers as the person types in the textedit. Is there a way to append the numbers I have displayed in the integer and display it in another textedit?

Please help!


May 27, 2012 | 1:15 pm
– Pasted Max Patch, click to expand. –

: )


May 28, 2012 | 2:44 am

Hey,
thats close to what I wanted but If for example i type hello into my box each letter I type comes out with an ascii number. My goal is each time i press the key on the keyboard the ascii number comes out and it stores that number in a list format.

for example Hello if typed would come out like this

77 36 66 66 52

So then I can grab those ascii numbers and translate them back into a word.



May 28, 2012 | 4:11 am

This doesn’t update as you type, but it works.

– Pasted Max Patch, click to expand. –

Here’s the link to [toascii]: http://www.maxobjects.com/?v=objects&id_objet=2973&PHPSESSID=54afd061e69f4ae890b938aa7359baee


May 28, 2012 | 8:35 am

Also have a look at [histo].

: )


May 28, 2012 | 9:37 am

Sorry for the hasty responses. I’m in work!

If you have Max 6, have a look at the [dict] family. I’ve had some success with list-building here. [dict.iter] and [dict.view] can be very helpful visual aids!


May 29, 2012 | 12:15 pm

Thanks for all your help guys, much appreciated!


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