Music & Sound Coding
Explore rhythm, sequences and events through a playable musical keyboard.
Start learning โNotes
Notes are sounds with different pitches. A melody is an ordered sequence of notes.
Try it: Play three notes and describe whether the pitch goes up or down.
Stretch challenge: Make a three-note melody.
Rhythm
Rhythm is the pattern of sound and silence over time. Even a short pause changes a tune.
Try it: Try the same notes with different pauses.
Stretch challenge: Compose a four-beat rhythm.
Loops in music
Repeated musical phrases are like loops in code. A repeated pattern can make a song easier to remember.
Try it: Play a phrase twice.
Stretch challenge: Create an eight-note tune using a repeated phrase.
Events
An event starts an action. Pressing a piano key triggers a sound; releasing it ends that action.
Try it: Press different keys and observe the response.
Stretch challenge: Create a keyboard performance.
Composition and testing
Compose, listen, revise. Change one note or pause and decide how the new version sounds.
Try it: Make two versions of your melody.
Stretch challenge: Save a final eight-note tune to My Creations.
Try it yourself
Tap a note to hear it. Sound starts only after you press a key.
Your tune: โ
Make it your own
Save a final eight-note tune to My Creations. Explain what you tried, what happened and what you would improve.
Open My Creations โ