So we had arduino reading data from the ultrasonic range finder last class, and we hooked it up to a piezo to make tones.
We decided we really did not like the arduino tones, and playing an mp3 file just isn't fast enough to do what we want, so we came up with an idea to hook it up to processing.
Using a cipher library for processing I found, we got processing reading the pwmRange from arduino via serialEvent and then turn it into a tone range for a bunch of piano keys processing writes up itself (meaning no external mp3 files, its all processing.) Now we haven't played around with tweaking the data to get it working correctly with the keys yet, but you can see how its already working in the video.
By using processing, we can also directly record the audio on the computer without any need of microphones or capturing background noise.
No comments:
Post a Comment