Yes it works too.
I will add the program we made above inside the firmata example for analog read.
In this way, it should work great, i will control Processing, with numerical data AND analogic data from Arduino.
Later, I will synthetize a sound in Processing with numerical data from Arduino, and I will add a filter to this sound with Processing. Last, with those data (of filter sound) that I will send to Arduino, I will control the speed of one motor.
I’m sure I can make it directly in Arduino, but It’s great to visualize data on screen and transform it in a wave.
Thanks again. Maybe I will need you soon.
Sincerly.