Hello guys,
I have a arduino uno board and trying to make something like-
A preloaded bunch of songs(not the songs but just their piano versions), now for each note of a song a specific LED should lit. (Not those normal sound responsive dancing leds).
I have somewhat knowledge of arduino programming and i know that "tone()" function can be used but the tone function has some limitation that it can only be called on a single pin at a given time. So I can't use it.
Also, my first post here, so please forgive any mistakes.
Thanks.
Welcome to the Arduino forum.
Please describe how you determine which note of a stored song you are looking at. You may have to do the "tone" programming your self if you need multiple pins.
Paul
Eg for note C on piano led1 should blink, for note D led2, for note E led3, for note F led4 and soon.
keyurdave:
Eg for note C on piano led1 should blink, for note D led2, for note E led3, for note F led4 and soon.
That is all well and good, but does not explain how your program determines note C or note D or...
Have you written any code that blinks a single LED? Start there and then expand to be able to blink the other LEDs you have.
Paul
What is the format of your "pre-loaded bunch of songs". I.e. how are the notes presented? Text? MIDI? Numbers? What about the timing? And rests? If you could show us a simple example, e.g. Happy Birthday, it might be easier to work out you're talking about.
And why are there only 7 LEDs? Do you mean the same LED lights up for any of C1, C2...C7 etc? And what about sharps and flats. Despite the name there are 11 notes in an octave.
Steve
slipstick:
Despite the name there are 11 notes in an octave.Steve
On my keyboards and piano I've got 12 keys per octave.....
Railroader:
On my keyboards and piano I've got 12 keys per octave.....
Yes I dunno what happened there. Typo or brainfade or just that with only 10 fingers counting past 10 gets tricky.
Definitely more than 7 or 8 though.
Steve
Mistyping I think. I do a lot of it.....