play music using Processing

edited July 2014 in Arduino

Total Newbie here at coding

I manage to make this project:

Now I would like to take the project further by trying to play a single tone (guitar noise or something) which gets louder when I move my hand closer to the sensor and quieter when my hand moves away from the sensor  

Here are the codes:

Arduino Code: http://pastebin.com/gaHcRC9A

Processing Code: http://pastebin.com/ExLT38UZ

Thanks for your help :)

Answers

  • I'm not sure what your question is. Sounds like a job for the minim library though.

  • I want to play a continuous tone that get louder or quieter depending on the distance away from the sensor

  • That's a requirement, not a question. It's pretty hard to answer general "how do I do this" type questions other than to point you to the reference or google. Minim might be a good place to start.

  • Separate the concerns: first, play music as requested, using the mouse position for example as modulator. Explore the Minim examples shipped with Processing. Then you can try and get data from the Arduino to do the modulation.

Sign In or Register to comment.