Book Image

Raspberry Pi Projects for Kids (Second Edition)

By : Daniel Leonard Bates
Book Image

Raspberry Pi Projects for Kids (Second Edition)

By: Daniel Leonard Bates

Overview of this book

Table of Contents (14 chapters)

Sonic Pi


Sonic Pi is a program designed specially for the Raspberry Pi. It allows us to create music by writing code. You can run Sonic Pi by choosing Sonic Pi in the Programming menu on the Raspberry Pi's desktop. Here's what you'll see:

Right at the top, there are all the buttons for controlling Sonic Pi's behavior. We can start and stop a tune playing, save our code, and record our own sounds. We can also decrease or increase the size of the text that our code is written in and neaten it up.

Below those buttons, on the left is the Code Editor, where we will type all of our code. Note that there are multiple Workspace tabs. These allow us to have multiple programs open at a time and switch between them easily. On the right is the Log. This will display information about every note that is played so that you can see what Sonic Pi is doing.

At the bottom is the Help system. This has example code and descriptions of all the sounds and programming features available.

Sonic Pi uses its own text...