Project: NIME
For this project, I was inspired by the movie, The Little Prince and thought of an idea to implement some of the key features to this music box/ instrument for the overall theme for this project.
I wanted to have a centerpiece, much like a traditional music box, so I created the rose from the film and attached it to the servo and have it spin back and forth. I also attached a male connection wire to the servo in order to create audio from the metal tips scratching on the cardboard box as it spins.
I wanted the user to control the pitch coming from the CPE, so I attached the potentiometer to the LED in order for the user to dim and raise the brightness. In turn, the light sensor detects the brightness and changes the pitch accordingly. The brighter the light, the higher the pitch and vice versa. This is activated when the switch on the CPE is turned on. To achieve this I used the map function for the light and audio values.
I also programmed the right button to play the theme song from The Little Prince and it turns off once the melody is completed.
Question: I would like feedback on my code. Am I missing anything or is there any feedback in regards to that.
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.