Music Player

{% trans 'Sorry, your browser does not support canvas -- please either update your browser or submit your requirements by phone or email.' %}

Accelerometer

Avatar for Leon Smith Leon Smith

This started as an experiment to see if i could get various notes to come out of a speaker based off PiGrahams Soundbug work, i managed to get that working but wasnt happy with the massive cut and pasting, so i tried to loop through a text file for the notes with the help of forum post http://codebugforum.co.uk/viewtopic.php?f=13&t=13 which turns out is by PiGraham, Great minds obvs think alike, i then decided to look through his code and he had tidied it off to make the notes sound better so i borrowed that bit as well, i would never have got that not being an audiophile. What you end up with is code that is almost identical but scratch written from fresh,. The only real difference is the ordering in the Convert section. The convert section is really clever and i must tip my hat to him for converting the binary value of the columns to an integer to decide what hertz the note should be, i was trying to manually get the letter from the string position and it just wouldn't work sadly.,

Report this project
Back to top