So far we have discussed variables that contain single values. Almost all programming languages provide some array construct that allows variables to hold a series of indexable values. In Scratch, arrays are called lists. Go to the variables tab and click "Make a List." Name the list "CScale". You will see that the array CScale appears on the Stage and is initially empty.
The plus button in the bottom left corner of the Stage CScale display can be used to add entries to the array. Use this button to add the following values to the array: 60, 62, 64, 65, 67, 69, 71, and 72.
Next, create a loop that starts with K = 1 and repeats for the entire length of CScale (Hint: look for the "length of" block in Variables).
Now go to the Sound tab and set the instrument to 1 (piano) outside of the loop and place play not inside the loop. Make the note play for 0.5 beats. The value of the note that will be played will come from CScale. To reference a value, we can go back to Variables and use the "item ... of" block. The argument of "item ... of" will be K because each time we want to play the next note in the array and K is incremented on each iteration.