Convert analog input from Arduino into sounds

Vikash's icon

I'm trying to make my Arduino Uno to generate different sounds based on input data from an accelerometer(ADXL335). I am able to read input using standard firmata/Maxuino test but honestly I do not know where to go from there (I'm relatively new to both IDEs).

Any hints regarding how to set up / fun things I could try out would be greatly appreciated.

Thank you for your time,

Vikash

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

try this

Vikash's icon

Hi Balam, thanks for the quick response! I'm not so sure how to add objects for reading serial and analog input, Is it simply a matter of copying from another patcher?

balam's icon

best way to learn is to play with.
is not easy but very rewarding
post you max patch.

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

Here's what I have so far:

balam's icon

thanks
would be possible to do

copy compress
then paste.

Vikash's icon

Haha, I've just figured that out. Sorry about that!

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

from this you can figure it out.

Vikash's icon

I think I must've copied in the serial/analog read incorrectly, it's not reading the analog input when I select the correct port at all anymore, though I really appreciate the help!

I know what I did wrong earlier with that patch (not linking any of the analog pins to the patch you sent me earlier) so I'll play around with that once I get it working again.

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

Here's part of my updated patch, I've managed to get serial input working just fine, I'm just trying to get the accelerometer (x axis) it to trigger off the MIDI note below but Im not sure how to do that. any hints would be greatly appreciated!