So I am building a board that plays a song and blinks and LED per each note played. It works nice because I am using 8 notes and have 8 LED's.
I am more interested in learning how to convert the
int tempo = 100;
into BPM. I thought it was simply 100 BPM but as tempo value is increased the melody slows.
Can anyone explain?
It's not possible to answer that question without seeing your sketch so that we can see what role 'tempo' plays. It sounds as if it may define the length of a note.
That makes sense. I just took the basic code from www.ardx.org/code06 and started writing in my own music and I added blinking light patterns.
I also just discovered that I need to change my idea completely because right now it plays the song then blinks the lights, not both simuntaneously
dunno if you ever got your answer.. but it sounds like you were using tempo as a delay timer, and if so.. that would make since considering the larger the tempo var got, the longer the delay between notes would be... in turn making them play slower.
Better two years late than never ... I guess.