C74 Acclerometer data

Nick Donovan's icon

Anyone know of/have a patch that can get acceleromter data out of the c74 app? No idea on how to achieve this and very little documentation online.
Thanks Guys
N

mortimer59's icon

Nick, What is your sensor ? what is your problem? I have many things on different sensors but I do you want to do, So many ressources online like Gdif, Dot or Jamoma can help you to achieve your project. For me it's necessary to understand what do you want to do?

Nick Donovan's icon

hey mortimer, I simply want to be able to get accelerometer data (streaming numbers) our of the c74 app on iphone to be able to trigger midi events - I can find no resources or way to do it in the example patch though. Any help you might offer would be great.

Nick

carsol's icon

hi nick,
i dont know about c74 iphone app+max object cos is mac only, but if the c74 app dont send the iphone accl data you can use touchosc or msa remote iphone apps and udpreceive and osc cnmat max objects.
best!

Nick Donovan's icon

Thanks Carsol, I'm having such weird problems. I'm trying now to use TouchOSC and their example patches and I seem to be able to send bangs from my computer to iphone but not the other way around after I connect them... I have no idea what to do....

carsol's icon

hi nick,
here you have what i use to communicate both ways with iphone touchosc
you need OpenSoundControl external from CNMAT and change ips/ports and osc variable names to match your setting...

hope this helps..

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

cap10subtext's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Regarding your OP, here's the c74 patch, just connect to the same wifi network as your iPhone/iPad (or go through a local network), load the c74 app on your phone, and launch this patch.

It's actually quite simple.

Nick Donovan's icon

Thanks for this guys, helpful stuff!

Jason Charney's icon

Now, a question on how to make these data usable.

Even with the iPhone sitting still on the table, values are still being put out continuously (with changes happening in the hundredths and smaller digits.) Also, what's determining the reference point for "negative" space - is it the iPhone's orientation when first connected? x and y will often be consistently negative at rest.

Anyone have any experience in application of the accelerometer?