This project is a sketch that implements a multi-voice, digital PWM Sound Waveform Synthesizer that works via any digital pin. The sketch is setup to play "The Imperial March" from Star Wars. Settle back and give your ears a treat with the unique sound that your Arduino Uno can generate. Full code included below.
The sketch can generate the following waveforms: Sin Wave, Sawtooth Wave, Triangle Wave, Square Wave & White noise.