Main Content

If there was an Avengers game for Atari 2600, the soundtrack would sound like this…

This article will show you a simple and interesting project: how to play “The Avengers” theme polyphonically.

It is easy to generate sounds with Arduino using the tone function:

tone(pin, frequency, duration)

You can make a sequence of notes to play a melody.

But this function is limited to play one note per time, so we can’t play more complex musics.

To address this issue, we’ll use the Len Shustek’s PlayTune library.

This library is capable of playing up to 6 tones simultaneously (3 using Arduino Uno and 6 using Arduino Mega).”

Link to article

Related Content