Introduction: Sonic Pi "Twinkle Twinkle Little Star" Coded Song for Mac

These are the basic instructions on how to code "Twinkle Twinkle Little Star" on Sonic Pi on a Mac.

Step 1: Download and Open Sonic Pi

Visit Sonic Pi ( and scroll down until you see the option "Get Sonic Pi for macOS." Select 'Download' and open the application. After dragging the .zip file to your Mac application folder, the Sonic Pi application will open.

Step 2: Begin With 'Play' Keys

First, you need to learn how to write each code. Begin experimenting with different notes. Begin with 'play' and a number between 40 and 120. 40 will give you a very low, deep note while 120 will give you a high note. Play around with them!

Step 3: Learn How to Sleep

Now that you can play notes, you need to have breaks in between each note in order to hear each one individually. You will begin by adding 'sleep' in the middle of two notes with a number following it. The number is how many seconds of silence there will be between each note, so for 'sleep 1' there will be one second of silence.

Step 4: Find the Tune

Now that you understand everything necessary to make the song, you just need to find the tune. One of the best ways to do so is to play the song at the same time you pick each note.

Another simple way to find each note is to look at the sheet music for the song and figure out each note through that.

Step 5: Create the Song

Putting everything together now, you can find the right sleep times and the right notes to make the song complete.

Step 6: Enjoy!