In arduino, sounds, systems on March 17, 2010 at 3:47 pm
Configuration of sensors and what they trigger
How music is played
The dotted lines representing E/D pairs can be thought of as invisible strings. Each of the vertical E/D pairs on the inside of the big arch are coupled with a range-finder.
This means that everytime someone waves their hand in such a way that it cuts across the beam of the E/D pair, the musical note for that particular instrument is played. (guitar tones for the E/D pairs on the left, and piano tones for the ones on the right.)
How will these notes vary?
The range-finder coupled with E/D pairs on each side will measure the height at which the E/D pairs were triggered. This will directly influence the pitch/note played.
The single E/D pair on top is to enable play for a single person. Triggering this particular E/D pair would initiate a 20-second long percussion sequence which can act as a background tune while other tones are activated.
Photo-sensors on the smaller arc (red dots) will act as drum beats whenever someone taps on them. So in effect, for the player, it would be like a set of drums.
One photo-sensor will be kept on top next to the solar-panel for day-night detection and entering the module into power-save mode during night-time.
Summary document : sound-interaction-1-page-summary
In Uncategorized on March 17, 2010 at 3:46 pm
Soldering the waveshield components & the amplifier
Setup of the waveshield & sensors
This week we worked on soldering the waveshield and amplifier components. Once that was done, we decided to take our waveshield for a test-drive using one of our initial experiments with the range-finder. By using some of the sounds from the OLPC music library (there’s tons of wav files of different instruments there), we added some of them to the SD card and we able to successfull play different wav files depending on the distance recorded on the range finder sensor. For instance, if our hand was brought very close to the range-finder sensor, then it would play a low piano sound, whereas if the hand was far from the sensor, it would play a higher note.
We then proceeded to add photo-sensors to our circuit and make them act like drums for the outer side of the smaller arch in our module. This was also completed successfully!
In arduino, MIDI, sounds on March 10, 2010 at 5:22 pm
Yesterday, we spent some time trying to use the data stream from the range-finder to drive the interval rates of certain frequencies that were then played on a piezo-speaker.
During our attempts, we concluded that we would definitely need a richer sound stream, like a MIDI file for the aural experience to be something that people can enjoy.
In order to use the arduino board as a MIDI controller (:output), we’ll need a MIDI connector which costs ~$2. A tutorial on the ITP program’s Physical Computing lab page here shows the procedure to do this, and also mentions at the end how these different tones can be driven by an analog sensor instead of a switch. The tutorial also challenges us in the end to figure out ways to make different instruments’ sounds using the same circuit setup with differing MIDI values.
For this purpose, there are many MIDI libraries available online which we can make use of. Also, to make ‘melodious’ tones, we’ll need to stick to some grounded rules of music theory like the Octave or Chords. Since our experiment yesterday revealed that the range-finder’s linearized data-stream is noisy for slight variations in distance, we probably shouldn’t directly correlate a tune to the distance value, and rather give it in a synthesizer format whenever a change in factor of distance (say every 10th centimeter) is detected.
Some examples of making music with the Arduino and basic tutorials on creating melodies: