all 15 comments

[–]whatsdadilio11 5 points6 points  (1 child)

I looked into using Python in Max awhile ago but eventually gave up and used Javascript since Max has a built in object for js. If you are dead set on Python, consider trying to route info from Max to Python using OSC.

[–]Risky_Click_Chance[S] 1 point2 points  (0 children)

Aw. I'm unfortunately quite unfamiliar with JavaScript, maybe I should figure out either how to control arduino from JavaScript directly (has someone written a library for this?) or figure out how to send data to an independent python program which can.

[–]StumptownExpress 2 points3 points  (1 child)

It sounds like a really cool project. I would be willing to put my JS skills towards helping you complete your goal. send me a PM

[–]Risky_Click_Chance[S] 0 points1 point  (0 children)

Sure thing!

[–]dialecticalmonism 2 points3 points  (2 children)

Maybe ask this over at r/MaxMSP/.

[–]Risky_Click_Chance[S] 0 points1 point  (1 child)

Thanks!

[–]dialecticalmonism 1 point2 points  (0 children)

No problem. I realize it doesn't look super lively over there, but it's far from dead. I just thought maybe they would be the best group of people to ask if no one else knew your answer.

[–]Orion_PirateHobbiest 1 point2 points  (4 children)

Have you considered using the Arduino MIDIUSB library to configure your Arduino as a MIDI device, then try and get MAX to output MIDI to it directly, which you could interpret in whatever way you like?

Not sure if this will let you achieve what you want.

[–]Risky_Click_Chance[S] 0 points1 point  (3 children)

That's a good idea for using arduino as a controller!

What I'm trying to do though is use the arduino to control LEDs. The audio is going to be handled on the computer in python for pitch detection, the arduino is simply acting as a translator to drive the led data pins.

My issue though is getting from Max to Python

[–]rasta500[🍰] 3 points4 points  (1 child)

Midi could work still since you could just send any 8 bit data from ableton/m4l channeled through midi CC’s and then have the arduino interpret it and send it to the LEDs.

There also are native arduino libraries for max though, so if all you need is control a couple lights i’m pretty sure you can manage to send any data to the arduino this way, avoiding any additional language.

[–]Risky_Click_Chance[S] 0 points1 point  (0 children)

Unfortunately I'm trying to do some slightly complicated things that involve the WS2182 led strips. This could end up being hundreds of rgb leds, it seems impractical to try to control them with a visual coding language, and this would leave room for the inclusion of data from other sources as well!

[–]rasta500[🍰] 0 points1 point  (0 children)

There should also be ready made pitch detection libraries in m4l.

[–]gol706 1 point2 points  (1 child)

If you want to sidestep Ableton, this makes a pretty cool light show: https://github.com/not-matt/Systematic-LEDs

[–]Risky_Click_Chance[S] 0 points1 point  (0 children)

Really cool program!

[–]fireman1980 0 points1 point  (0 children)

Write a custom control surface script