Monday, February 10, 2014

Getting musical...

I wired up a piezo element to my Audrino today. I started with the base code that played twinkle twinkle littler star provided by Audrino's website.

I immediately got sick of that and went off to find some better tunes.

I then found code online for playing the Mario theme and the underworld theme. After I did some fiddling and learned how to write a pitches.h file to improve the melody I got that up and running.

Looking through the code, things here are much more complex, but I started to figure out what was going on after staring at it for a bit.

I then ventured to find the notes to a different song and attempt to write it out myself. Keeping with the video game theme I choose to do the zelda theme and using a notated YouTube video of someone playing it, put in the proper notes and pauses into my code.

Here is the result...


Also, here is a link to the base code for this:
Mario Themes

No comments:

Post a Comment