Hardware Reference
In-Depth Information
The error panel —The lower panel on the right side. This is where errors will be
displayed if there is a problem with your program, or a bug—for example, if you
have made a syntax error or perhaps mistyped a word.
Workspaces —You can use different workspaces to create and save your code.
In this adventure, you will use a different workspace for each exercise. You can
move between workspaces using the tabs along the top of the programming
panel.
Play and Stop buttons —Click these buttons to start and stop your music
scripts.
Save button —Sonic Pi will automatically save what you write in the program-
ming panel. However, if you want to save your code into a text file to store it
elsewhere, you can use the Save button at the top of the application to do so.
Creating Your First Sounds
with Sonic Pi
Now that you are familiar with the Sonic Pi interface, it's time to start making some
noise! In this first project you'll learn how to play single notes, chords, how to add tim-
ings, and play Twinkle Twinkle Little Star .
Visit the companion website at www.wiley.com/go/adventuresinrp and
select FirstSounds to see a video of this project.
1. To play your first note, open Workspace 1 and type the following:
play 60
Now click the Play button in the top left hand side of the application. Not only
will you hear your note playing but you will see the following information dis-
played in the output panel, as shown in Figure 7-4:
playing pretty_bell with: [“note”, 60]
Search WWH ::




Custom Search