Creating a Piano Tutorial Style Scratch Project

Using the original template we already had, I edited the pre-existing sprite costumes to look like the following:

Using the original template we already had, I edited the pre-existing sprite costumes to look like the following:

I later renamed each costume according to one of the notes in the song “Here Comes the Sun” (B, A, G, F#, E, D, C).

To make the falling sprites align with the piano keys, I changed the x coordinates in the code.

To portray the rhythm through the distance between each falling sprite. I told the sprites how long to wait before the next sprite fell. A quaver = 0.5 seconds, a crotchet = 1 second, a minum = 2 sec, semibreve = 4 sec. I even had a dotted quaver (0.75 sec) and a semiquaver (0.25).

Notation of ‘Here Comes the Sun’
Coding Musical Notation

I edited each of the sprites for the piano keys so that it would be clear when the key should be pressed when the falling sprites align with a circle.

In the pre-existing project that I began with, there was already coding to make the clones disappear once they reached the bottom of the screen. I edited the y coordinate in this code so that the falling sprites would disappear as soon as they aligned with the circles on the piano keys : y = -130.

After doing this I realised that the F# would prove to be a problem as the circles for the black notes were higher, therefore needed to be deleted at a higher y coordinate. I decided to create an entirely new sprite rather than create a costume for the F#. This way I could easily program that sprite to delete itself once it reached the appropriate y coordinate.

To emphasise when the falling sprites would align with a black key, I decided to change the colour of the falling sprites and the circles on the keys so that they matched. Yellow for white keys and green for black.

Since I created a new sprite for F#, I had to compensate for that in the coding which portrayed the rhythm. When an F# was played, the other sprites were told to “wait” the length in the notated rhythm + the length of the following F#. Likewise, the F# had to “wait” the length of all of the notes preceding it. You can see the waiting time between each F# in the screenshot below:

Published by jessicasuann

I am a student at Sydney Conservatorium of Music studying a Bachelor of Music (Education). I major in Classical Voice however throughout my studies I have practiced using a variety of pitched and non-pitched percussion, piano, guitar, and most recently; trumpet. Throughout my studies I've not only learnt how to encourage my future students to have an appreciation for music but have also extended my own appreciation and passion for music through exposure to a variety of new ways to express my musicality and experience music (predominately through technology and unique ensemble opportunities). Let's move away from "theory" vs "prac" structured lessons and adopt a more hands-on approach to music education. For a creative subject we should be teaching and learning about it in a creative way!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Teaching Music Outside the Box

Projects that can be used in the classroom to keep music alive!

Melody's Music Tech Blog

3rd year music education student (piano major) at Sydney Con | Piano teacher and accompanist in south Sydney

Technology in Music Education

A reflective blog on technology's role in 21st Century music education

LJS Music Education

Music: A Creative Process

Technology in Music Education

Tech, Music and Education combined into one.

Rachel Hennessy's Blog

notes and projects of an aspiring musician, composer and teacher

Having nothing to say and saying it: my blog.

What James Humberstone is thinking about composition, music education and music technology.

Broma Bakery

Just another site

Music Teaching 101

Creative Music Teaching at Sydney Conservatorium of Music


A daily selection of the best content published on WordPress, collected for you by humans who love to read.

The Atavist Magazine

Creative Music Teaching at Sydney Conservatorium of Music


The best longform stories on the web

Create your website at
Get started
%d bloggers like this: