TouchOSC XY Object patch
Stephen Good
3月 07 2019 | 7:18 午後
Created a patch to unpack and then repack the dual data stream from the XY Object in touch OSC. Hopefully this will be useful.
acmusic
9月 27 2024 | 1:51 午前
Thanks!
It's reading the values fine except for the Y axis isn't tracking the full range, it is only kicking in at the top part and not sending the signal of the bottom half. Any reason why this is happening?
Source Audio
9月 27 2024 | 8:24 午前
1- separate input from output
2- check input values
3- monitor output values WITHOUT sending anything out.
CLIP output values to 0. ~ 1.
if all works ok, then connect output
acmusic
9月 27 2024 | 1:54 午後
Got it.
The next thing I’d like to do is make the xy pad multi-touch enabled. Can you help with that??
acmusic
9月 28 2024 | 11:44 午後
I've seen recent TouchOSC videos where it seems like it's a possibility. I think you can make a Lua script for it but I have no idea how to write the code.
Source Audio
9月 29 2024 | 7:02 午前
If touchOSC has object that sends multitouch, then
one can define what it sends, and then use it in max.
read touchOSC docs, no matter if old one or MK2
acmusic
10月 01 2024 | 8:08 午後
Ok I'll do more investigating and see if I can figure out a solution
Do you know of any ways to program accelerometer controls in TouchOSC? I'm using my iPad and want to change filter parameters by tilting it in different ways.
Source Audio
10月 02 2024 | 8:35 午前
I only use touchOSC original version.
to use Accelerometer you don't need to programm anything,
only activate sending of Accelerometer in options.
acmusic
10月 02 2024 | 2:30 午後
I'm using the current version.
How would I patch accelerometer controls in Macx?
Source Audio
10月 02 2024 | 3:36 午後
look what osc string it sends, then route that.
then unpack 3 values
Stephen Good
10月 02 2024 | 3:40 午後
Exactly as SOURCE AUDIO mentions. To do so, you can use a print object connected to udprecieve to see what messages TouchOSC is sending in the console, then you can adapt the route object so that it filters the correct messages.
acmusic
10月 02 2024 | 3:49 午後
So like this:
udprecieve (xxxx) > route accelerometer (or orientation, compass, etc.) > unpack 3 values > desired object
Stephen Good
10月 02 2024 | 3:52 午後
In theory yes! Let us know how you get on.
acmusic
10月 02 2024 | 5:14 午後
Tried it but still not working.Sorry for being such a noob...
I'm using my iPad so I'm struggling to figure out how to get the movement data from that into Max
Stephen Good
10月 02 2024 | 6:10 午後
Can you attach screenshots of the messages you are receiving from TouchOSC when you are moving it. From memory you need to turn that function on. Once it is streaming the data, it should be easy to spot in console if you attach a print object to the udprecieve.
Source Audio
10月 03 2024 | 7:00 午前
touchOSC shows string that it sends if accel is activated.
in MK1 it is
/accxyz nn nn nn
acmusic
10月 03 2024 | 11:07 午後
I got it to work! It needed the following script:
Source Audio
10月 04 2024 | 8:48 午前
when you are at it, I asked someone who uses MK2 about XY pad.
same as MK1 it has Multy-XY pad object.
There is an example in factory layouts.
in MK1 it simply works.
I forgot about it...