
上QQ阅读APP看书,第一时间看更新
Playing a melody
In this recipe, we will learn how to play a melody by playing a sequence of musical notes. A single musical note on its own is rather boring. The real fun begins when you can combine a sequence of them and time them correctly to play a melody.
By following the standard musical notation, it will become possible to take popular melodies and specify them in Python in a way that the Circuit Playground Express will be able to play them back.