Update TUIO MaxMSP Build to Apple Silicon

Marc Assenmacher's icon

Hello,

I try to use TUIO to make multiple cursors for a 10-touchpoint display on mac.

TUIO.org provides a MaxMSP.zip with a lot of helpful tools. Sadly they are several years old and not compiled for apple silicon.

I tried to do it myself for several hours but I can't get it working, because I have 0 prior knowledge. My skills outside of Max are just to basic.

Is anyone experienced able to help me with this?

------------------------------------------------------------------------
Apple M1 Max
maxOS Monterey 12.6.5
Ableton Live 11.3.4
Max 8.5.4 (Full Version)

Mathieu Chamagne's icon

Hello

this abstraction can be used instead of TuioClient :

(default port is 3333, screen size can be specified as argument, output normalized cursor messages)

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

it was part of MMF
http://www.mathieuchamagne.com/2009/03/04/mmf-max-multitouch-framework/

:-)

Marc Assenmacher's icon

Hello Mathieu,

thanks for your reply.

For your understanding: I am designing a custom Multitouch UI for Ableton with diverse Subdevices and Midi Controller implementations. It is getting a pretty big project and this is just one subtask of it. This is my first project, I am still am M4L/Max Beginner and I am fighting myself through lots of knowledge in multiple topics right now.

I am already playing around with your MMF since two days but I find it hard to get it working the way I want to. Since the demo is working great I know that my base setup is correct. Still I got two major problems that I am facing at the moment.

Problem 1:
I need to get two 1080p touch displays working inside M4L.

My Approach:
I exchanged every safe "s" and receive "r" to "s ---" and "r ---" over the whole framework and split my device in two. One device receives TUIO at port 3333 and the other device receives TUIO at 3334. When opened with Ableton receiving two different data streams and positioning the windows on my two screens works quite well. Sadly the sliders from your demo do not work anymore and I do not know why.

Since you wrote the framework: Did I use a valid approach or is there a better one that I am overlooking?


Problem 2:
What I though would happen: I just add cursors to the "canvas" and use them like a normal mouse on every object (like live.gain, live.button, live.text) that is already used in my project.

How I understand your frameworks demo: I need to exchange every live.gain, live.button etc. with your sliders and dials and need to classify every object by scripting names etc. Or I need to write and add new objects to the "mmf-max-polytouch". I think so at least. But I am not getting through this at my state of knowledge.

Are my assumptions correct or is there a way of using live.gain etc. directly?
Is there a way of using the input straight as a second, third, froth mouse?



Any help is appreciated, but I also respect your time and I'm on it anyways and I am eager to learn it myself with trial and error. ;)

Mathieu Chamagne's icon

Hi Marc

as you've probably noticed, MMF is a quite old project... (I made it before MIRA...)

As there's still no official support of multitouch screen on mac, and on windows AFAIK there is actually no solution to receive multitouch data in TUIO format, I finally stopped using and maintaining this project.

I moved to other solutions :

- Mira / Lemur / touchOSC... on iPad / android tablet.

- pc / windows with MIRAweb on multitouch screen

- since a couple of years I really enjoy Open Stage Control https://openstagecontrol.ammd.net/ which is free, open source, and can run in any browser on any computer / tablet / phone...
(of course on macOs it's not multitouch...)

I you REALLY want to use MMF (!)

be aware that :
- it can be quite CPU consuming, (when multouch multiple UI objects simultaneously)
- only a selection of max UI object are supported, and I really don't plan to dig into this 'old' code any time soon !
- I think I've never used MMF with multiple screens... To use multiple instances of MMF in 1 Max, I guess that there are a bunch of send / receive that should be modified... probably quite a bit of work to make it work :-s

I would not recommend you to use MMF in a 'serious' project at the moment...

This project from Vincent Goudard is probably more up to date that MMF :
https://github.com/LAM-IJLRA/ModularPolyphony-TUI
Never used it myself, but it looks great :-)
Maybe it could fit your needs ?

MultiTouch screen on mac is a long and sad story... for the time being, it's really easier and safer to develop multitouch experiences on windows / ios / android.