Feeding Mouse State Data From Mira

neptune123 Bernstein's icon

Hi There,

Forgive the novice nature of my inquisitions. I am fairly new to max and am trying to update an inherited patch with a new mira interface.

Basically this patch controls some video based on a mousestate object's horizontal and vertical position data. I am wondering if it is possible to feed similar x and Y data from a mira window on an ipad? Right now the patch is built to function within the confines of a small area (see blue square in patch), and I would like to keep the mira area the same. The patch is included. Any help would be much appreciated.

Thanks!
mx

endofmanshow2013syphon2.maxpat
Max Patch
hz37's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Surely in Mira you have the [mira.multitouch] object. You can use that one to get x/y data. You can use a [regexp] object to parse out the coordinates. If you want to restrict the output, you can use a [clip] object. The [mira.multitouch] object permits you to go beyond its boundaries, so [clip] might be useful. Have fun!