Max Runtime 5 and Arduino

Nestoras Daskalakis's icon

Hello community!
I was trying to make a project combining Max Runtime 5 and Arduino. to make my drums play alone. Lets analyze!
So bassically the initial thought was to create a pattern in FL Studio 12, export as MIDI, send the MIDI file to the arduino, and then. according to the pattern, arduino sends signals to Servo motors to move the sticks on each designated drum.
The part where i am stuck is the modification from MIDI to servo movement. I have not made any progress regarding that part.
Then i came across Max Runtime 5 and though i am not entirely sure of its capabilities just yet, i believe there is a way to do it. Thats my question right there :P
How do i accomplish this setup?
Thanks in advance

Jean-Francois Charles's icon

What you can do is program Max 5 to read the MIDI file, then send the decoded stuff to the Arduino. With the Arduino Max examples, and some Max training, you'll get there. You could even use Max 7 to program the patch, then read it with Max 5. If you use Max, you'll probably not even use a MIDI file, you'll just create the pattern in Max, send the instructions via serial to the Arduino.
To make the micro-controller translate itself the MIDI file content to output states, and keep track of timing, you will need to be quite comfortable with the Arduino board.

Nestoras Daskalakis's icon

Mate i cant really write how thankful i am right now with your response! :D
Thank you.