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

Emmanuel Cortes's icon

Hello Turo, I am currently working on a very similar project and am having the exact same issue as you did. I am wondering if you had made any progress? I will share what I have come up with using a wacom tablet to produce sound.

The goal of my project is to 'draw sound' where sound will play in real time as I am drawing something. I divided my wacom tablet into quadrants so that each quadrant has a different timbre and its own XY axis. I also wanted to 'capture' the sounds that are made while drawing. I was able to achieve this with some overdubbing.

My next step is essentially what you have been working on. I want to to take the XY values from my wacom tablet and feed them into an LCD so that I may draw from the tablet, represented by the LCD display, and not from wherever the LCD window is in my patch, where I would have to move the stylus to that window in order to draw.

Here is the current version of my project(So far the patch is working with audio only. I haven't added the visual because of the issue I am having):

tablet plus draw_v.4_03_19_26.maxpat
Max Patch

I also wanted to mention that I am using this external to get Max to read my wacom tablet:

The external is the s2m.wacom by Charles Gondre and revived by Volker Böhm. Also important to note is that the external is for macOS only, as far as I am aware.