Playing a Sequence of Notes with and without Variables Video
Why and How to Use Variables to Play Scales Video
Playing a Sequence of Notes Video
Playing a Sequence of Notes Video
Variable Tutorial (Scales)
Exercise: Playing a Scale
We’re going to make a script that plays a scale, and we’ll create a new variable for it! You’ve already used some of the pre-made variables in Scratch, like tempo. Now we’re going to make our own variable!
- Click on the “Data” tab and click “Make a variable.”
- In the box that pops up type the name of our new variable, “my note”.
- Now you’ll have blocks to use for your variable (just like we had blocks to use for tempo).
- Make the script on the right using your variable “my note.”
Hint: look at how similar it is to the repeat that changed tempo!
- Now make a script that plays the notes from 60-100.