Writing and drawing with xy detection (jitter or max/msp??)

Turo's icon

Hi everyone!
I would like to create a kind of whiteboard in Max (like a very simplified version of the sketchbook or many others).
I'm creating a project with the graphic tablet where I detect parameters such as pressure, tilt etc. through a wacom object: I thought it would be interesting to draw simple lines or curves and to map sound parameters to create complex textures. Having few skills in this language, I used LCD object as a starting point to direct the data stream, however so limited in the position where the object is located and this is not at all comfortable !!
Now comes the question..

Is it possible to create a "whiteboard" in another window using jitter (I never used jitter)? I'd like to do things like:
increase the thickness of the pen or map the pressure to changes a gray scale (maybe it will be possible with the attrui object??) and other things that are done within these whiteboards.

Another question: after deriving the values ​​of xy (e.g. after drawing the strokes of anything), Is it possible to insert this data list to faithfully reconstruct that drawing within this hypothetical whiteboard?In practice, after saving the data within a coll, I'd like to recall them to reconstruct the path referred to that data..

I hope I was clear!!

P.S. I attach an extract of the patch that I have adapted for a mouse tracker for easy convenience for you (view in presentation mode).

Thanks in advance

Whiteboard.maxpat
Max Patch

Roman Thilenius's icon


not sure what are the limits you see with lcd, but storing incoming controller data is relatively easy f.e. with detonate - or in the case of need you could record it into buffers and save them as audio files.

Turo's icon

Okay, I didn't explain this very well.... I'm sorry!
I am trying to simply put the xy data related to Mousestate object into the LCD object, but this last doesn't understand "int".

1- I want to create a 'mapping' of the xy values ​​between my computer screen and the LCD object (because if LCD were "at the bottom left" of my patch, I am forced to move the cursor "at the bottom left" to be able to write .. So, I'm trying to bring the cursor values ​​inside the LCD object without the need to write on it.. do you know what I mean?)

2- If I do my signature, I will save the entire path as a '.txt file' from the coll to a folder on my desktop. Then, recalling that '.txt file' from the desktop and sent it to the LCD inlet, I would like that signature to be "magically" reconstructed by reading the '.txt file' from the coll.


Is it more understandable now? Sorry for my english