12

Karplus-Strong on a Raspberry Pi Pico

In Chapter 4, you learned how to make plucked string sounds using the Karplus-Strong algorithm. You saved the generated sounds as WAV files and played notes from a pentatonic musical scale on your computer. In this chapter, you’ll learn how to shrink that project to fit on a tiny piece of hardware: the Raspberry Pi Pico.

The Pico (see Figure 12-1) is built using an RP2040 microcontroller chip, which has just 264KB of random access memory (RAM). Compare that to the tens of gigabytes of RAM on the typical personal computer! The Pico also has 2MB of flash memory on a separate chip, in contrast to a normal ...

Get Python Playground, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.