so i wanted to play around and do a beautiful costume animation to match a short 2min music tone ... i see it in my head how it's going to go, how all the lds are going to light up in each part of the music
what part will be shown and how it will be shown .. of the strip
then i came to the programming... and oh boy... it's not as easy as i thought
first of all i had to come up with a way to start the loop and the music in always 100% of the time in the same mili second
so just for testings,(becaouse i still dont have a speaker module it's on the way)
i did a timer to count to 0 and then i start the animation and play the song at the same second
and i had a big array saying just sings ,like, r for red, g for green, stuff like that
and i tried advancing that array every half a second ..
and just to see if i can get the led to always change color in same second of music
and it +- worked, i guess i dont always start the song exactly at same mili second so it's not always 100% accurate, the only way to do it will be to have an external sound module connected to the arduino and not play music from pc or something.
but i mean.. even ... even if that will work. it will change the whole led strip...
making complex animations going on and off.. and rainbow here in that time.. and stars there in that time, and exactly show this from that to that.. .and so forth.. that i had in mind
oh boy.. that would be a nightmare to write and match the music i assume
in the head it sounds simple enough... to do some parts of led strip to light up in nice animations to match the music but.. in reality.. to write something like that would be very very complicated
i almost thought about getting some external buttons (10-15 buttons) connected to the arduino that each one of them shows different animation in different parts of the arduino, some do black to the lights etc...
and then press them to match the music and somehow record that into an array that i will show in the end
maybe even that will be much more simple then tyring to figure out all of that.. but i mean
if someone here did it ? RESPECT is all i have to say
here is the code i started doing but i mean
i'm really starting to give in to this project... it's way too hard then i thought
it will only be easy if i do like very very very simple light sequences.... like all of the led full color etc.