Transcript
In this exercise your task is to create
a melody from scratch. The melody code should have at least eight notes in it.
Remember how you can use play command to play notes and sleep command to wait
some time between playing the notes. You can use play command with both numbers
or note names. It's totally up to you which one you prefer.
If you want, you can also use repeat blocks in your code. How to get
started with a melody? Choose any note that will be the first note in your
melody. After that the melody has to move somewhere. Move either up or down in
pitch by choosing lower or higher notes. For example, if I first play the note
70 let's write play 70 sleep for one beat and then play note 72. I have a
melody that goes up. 72 is two semitones higher than seventy, right? Next note can
be even higher and maybe we can try to come back from there. Let's have 75 next
and then we come back down to 70. Simple melodies can be like ping-pong balls.
They go left and right, up and down and for example this melody has eight notes,
it goes up and down and repeats for three times. Once you're done creating
your melody you can save it. Click the Save button at the top menu and choose
or create a folder where you want to save all your Sonic Pi code files. I have
already a folder set up. And then I name my file. Name your file for example
exercise 1 my first melody and then click the Save button and the code
should be now in your folder. Note that only the currently selected
buffer is saved.