The Language of Music
Sheet music can look like a foreign alphabet. It isn't — it's a simple picture of two things: how high a sound is and how long it lasts. This page teaches the words on a score from scratch, and every idea has a live example you can hear, see and click.
Tap any ▶ or note to turn on sound
01Start here: music is a graph
A written score is a plot with two axes. Left → right is time (earlier notes are on the left). Up → down is pitch (higher on the page = higher sound). That's the whole idea. Everything else is just notation for marking points and spans on this graph.
The two axes, in motion
02The staff, pitch & clefs
The five lines are called a staff (plural staves). A note sits on a line or in a space; the higher it sits, the higher it sounds. Notes are named with just seven letters — A B C D E F G — which then repeat. The jump from one letter to the same letter higher up is an octave.
The swirl at the far left is the clef. It's the key to the map — it tells you which line means which note. Treble clef is used for high instruments (violin, right hand of the piano); bass clef for low ones (cello, left hand). Toggle it below and watch every note's name change, even though the dots don't move.
Click a note to hear it
…and here's the same thing as a keyboard
03Sharps, flats & keys
A little symbol before a note nudges it by one semitone. A sharp (♯) raises it, a flat (♭) lowers it, and a natural (♮) cancels back to the plain letter. (There are rare double versions too.) One quirk worth knowing: an accidental lasts until the end of that bar, then resets — it's scoped, like a variable inside a block.
Raise it, lower it
Rather than write a sharp on every single note, music collects them into a key signature — a group of sharps or flats printed once at the start that applies all the way through. The keys are related in a ring called the circle of fifths: each step around adds one sharp (or removes one flat), so a key can be stored as a single number — 0 is C, going one way counts sharps (+1…+7), the other way counts flats (−1…−7). In our code that number is literally called fifths.
The circle of fifths
fifths = 0
04Rhythm & time
The other axis is time. A steady pulse you'd tap your foot to is the beat; beats are grouped into bars (or measures) by vertical barlines. The stacked numbers at the start — the time signature — say how many beats fill each bar (top number) and which note counts as one beat (bottom). 4/4 means four beats per bar.
How long is each note?
The metronome
The one everyone mixes up: tie vs slur
Tie — joins two notes of the same pitch into one longer sound. You hear one note, held for both lengths added together. It's how you sustain across a barline.
Slur — joins notes of different pitches, meaning "play them smoothly, connected" (that's legato, or "one bow" for a string player). You hear every note; nothing is held together.
Splitting the beat: triplets
05Chords, voices & texture
Play notes one after another and you have a melody — a tune. Play notes at the same instant and you have a chord — harmony. A single line at a time is monophonic (an unaccompanied violin); several independent lines at once is polyphony, and each independent line is a voice.
Same three notes — apart, then together
Two voices at once
06Expression: how it's played
The dots tell you which notes; a stack of Italian words tells you how to play them. These are the terms that turn "correct" into "musical."
Tempo — the speed
Dynamics — how loud
Articulation — legato vs staccato
Ornaments — the curly decorations
A few more words you'll hear
07The shapes of a piece
A big work is built from movements — self-contained sections, each with its own speed and mood, like tracks on an album. Here are the piece-names that fill our timelines.
The four eras (roughly)
Decode a catalogue number
08Music ↔ code — how this site plays a score
If you build software, these are the terms that are really our file formats and tools. A printed score, the sound, and the highlight that follows along are three views of the same data.
The pipeline
The timemap is the join key: it maps each note's on-screen id to the moment it sounds, so when the audio clock reaches a note, we light up its dot. That's the "score that follows along."
A single note, as data
Prefer a compact written reference, with the "why it bit us in code" notes? See the Music glossary. Spotted something a cellist would wince at? It's meant to be corrected and to grow.