xmedia5

Archive for March, 2010|Monthly archive page

Making Music!

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

Waveshield + sensors

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!

Experimenting with sounds & rangefinder

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:

http://createdigitalmusic.com/2008/09/08/making-music-with-the-arduino-wires-solder-and-sound-round-up/

http://www.apronus.com/music/lessons/unit01.htm

http://www.tigoe.net/pcomp/code/input-output/analog-output

Updated Digital Interaction Thoughts

In elements, Meeting Notes, team progress report on March 9, 2010 at 1:46 pm

There are 2 different sizes of archs, small and big. They mix together presumably according to the pictures in the document on the freedom park proposal. For both sizes, it is possible to make them digitally interactable the same way and let their physical shapes change the type of interaction (sitting as opposed to climbing, etc). We can place an IR rangefinder inside the arch, as well as the laser trip wire right next to it. When the laser is tripped, the input from the rangefinder will be read and a note will be played – maybe a piano note. The notes will always be in-tune as opposed to “slide-able” with the tone, since the rangefinder was fidgety when we tested it, but accurate to a certain degree (always in ranges but not specific values, we’ll post on this information soon).

With one of these setups per arch, we use all our sensors. We can also put 3 photo sensors per arch, and covering a photo sensor causes the sound to drop an octave, allowing for different types of interactions as more people come along and cover the sensors and allow the sound produced to change. Perhaps one should not be interactable if it is used to sense sunlight for power purposes.

As for using multiple IR emitter/detector pairs: Music theory is (at least according to Bach’s way of writing it) strongly based off the triplet chord, where there’s the base note, and then you play the note a 3rd above it, and then the note a 3rd above that one (usually in a major scale, for example C E and G). The bottom one could trigger the bottom of the chord, middle triggers the middle, top triggers the top of the chord. The bottom note would be varied based on the IR rangefinder.

Redesign sketches

In designs, models, sketches on March 3, 2010 at 10:22 pm







Design 1 photos

In Uncategorized on March 3, 2010 at 10:12 pm
These are some of our photos from the first Design competition

Poster and Model

A side view

Top View

Another side model