MAXUINO FOR MAX // USING AN ACCELEROMETER

Peter Zweifel's icon

Hey!

I'm a recent Max user. I've set up a 3-axis accelerometer and arduino uno into Max using the Maxuino help patch. The problem I'm having is that I am only able to have the Max patch read a single axis at a time.

I want to then put that signal into Abelton Live to create music/sounds using the analogue signal from the accelerometer. Can anyone help?
Thank you so much.

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

Try this:

Assuming you're using a simple accelerometer breakout board with just X Y and Z output, then it should work fine.

As for controlling parameters in Ableton Live, that's a bit more convoluted - stick with Max, plenty of synths and sounds here. Just need to build 'em.
Brendan.

Jan M's icon

It's totally doable in M4L as well. Preferably use an Arduino Ethernet + OSC to get data into Live (better performance, better stability, plus if during a performance a cable get loose you just need to plug it back).
I do this by creating a "central" device receiving the data. With [send]/[receive] you can globally distribute them, and pick the up i.e with a device that let's you map the data to Live Param. In fact in almost 90% of my live sets I work this way.

brendan mccloskey's icon

[edit] - just re-read your opening sentence, doh!]
Sorry to usurp the OP's question Jan. Can Live pick up OSC natively? Or does it require M4L? I've just spent a frustrating 2 weeks getting Arduino/M4L/Live to behave themselves and it took a fair amount of tweaking and stress testing. Ultimately I would like to move to OSC for sensor-sound mappings.

Brendan

ps if I could I would PM you for a didactic example of OSC to M4L

Jan M's icon

Nope, the mysteries of Live - we write the year 2015 and they don't support OSC, multi-channel tracks or even several MIDI channels per track ;)

I use M4L with [udpreceive] and for mapping the OSC-data to Live params.

brendan mccloskey's icon

bump for edit

Jan M's icon

@Brendan mech[dot]jan[at]gmail[dot]com

brendan mccloskey's icon
Stefano Scarani's icon

Hi, just a question: do you use an 3-axis digital accelerometer H3LIS331DL? Thi is a digital accelerometer that use Grove connection. I'm start to work with this sensor, but all the 3 arduino sketch used don't works. Maybe you have a different sketch (if the sensor is the same).
Stefano