Display text I write - while using PC keyboard as an instrument -

klara wodehn's icon

Hi,

as a total beginner, I would like to ask - I use my PC keyboard via the key and kslider objects to play, is it possible to display what you are "writing" when you are hitting these KEYS, at the same time you play?

My project revolves around the symbols/numbers/words as a source of communication and its importance, power of words etc., and how computing and coding resolves around the same principles, that being the reason of my fascination by it blah blah The main character is the text I write, while it simultaneously plays...
therefore I imagine to present another "window" where is all the text being displayed, appearing and staying, while the kslider performs..
. what would be the best idea to do it? Is it possible to program it within MAX Msp?

Thank you very MUCH!

Andy Maskell's icon

This is the simplest idea that I can think of:

key outputs the ASCII code of each key hit.
itoa converts that to alphanumeric characters.
prepend append causes the word append to be added before each character so that it will be added to the -
textedit box (type textedit into a new object to create the display box).
clear will clear the display box.

There are lots of ways that you could modify how this works, such as creating words with spaces in between depending on what keys you are using to play the notes.

Is this along the lines of what you were looking for to start with?

Max Patch
Copy patch and select New From Clipboard in Max.

klara wodehn's icon

So awesome, it works!!! Thank you very much.