First i'd like to start out by saying that i have done a decent amount of research regarding this but ive failed to locate the info i need anywhere. I'm sure i missed it somewhere so i do appologize if this is something that has been answered before.
So the project at hand involves playing a WAV file from the Uno. A simple enough prospect on its own. However i need to control 3 lights as well while playing the audio. a given sequence of lights will correspond to the audio file being played. 1.WAV requires LedSequence1, 2.WAV requires LedSequence2, 3.WAV requires LedSequence3, etc. now if i just wanted to turn the light off or on when i started/stopped playing a file then id know exactly what to do but since i need to dim/brighten some of the lights mid playback i am stumped. i considered using an interupt to change the pwm value after every n bytes played back but im afraid this could cause unwanted jitter.
Also on a side note, im not sure if the 328 is even fast enough for this (perhaps someone could advise me on this) but my crude understanding of the wav format and how most of the arduino audio out projects work seems to imply that if i were to grab a byte from a given file and a byte from another file then average them before outputting the subsequent value to the pwm pin then i would have very rudimentary audio mixing. im not looking for perfect HiFi 96khz audio here, just playing some small sound effects from the old Joust arcade game.
thanks in advance for any help and again im sorry if this has been covered somewhere else already