Friday, 15 November 2013

Further experimenting

since my project is intended to create music, I want to see what sound capabilities the Arduino has. I found an example sketch of a toneMelody.

I loaded the sketch into the Arduino simulator where the melody of three tones is played at a pre-determined interval.

As you can see here, the box on the right shows the sketch, which tells the arduino at which interval and what tones to play, in the middle is the values of the notes. Each note has its own numerical value, ranging from 31 for B to 4699 for D sharp.
The values at the top of the center box relate to which melody is played. By changing the sketch to load uo one of 8 melodies numbered 0-7 the notes played and time of notes played changes.

The Arduino has the ability to play MIDI sounds through a small speaker, and though this is all that this function is doing i believe that being able to see how the Arduino reads melodies will be useful for my project. I have also uncovered that the Arduino can find and play WMV files from an external storage. This could mean pieces of music, but in  my case I want it to be samples. I also want to look into whether or not it is possible to change what melody is played without having to modify the sketch, if it can be done externally?

No comments:

Post a Comment