How to write sheet music, by touching the staff

Writing sheet music means deciding three things for every note: which note it is, how long it lasts, and where the measure ends. The first two are yours; the third one the editor decides for you. This page shows all three, in miniature, with sound.

Scroll and try it — every staff on this page responds to touch.

Touch the staff and the note appears

Drag the handle up and down. The grey note follows your finger and snaps to the nearest line or space; when you let go, it is written and it sounds. That is the whole gesture of the editor: there is no menu to pick a note from, there is the staff.

Every line and every space is a different note, and the staff has no gaps: one step up is one note up. If you don't yet know which line is G, it doesn't matter here — the name shows up below while you drag. To learn the positions properly, the page on how to read sheet music does that.

Drag the handle, let go and listen. Then press Listen to hear the note you wrote again.

Pick the note value: how long the note lasts

The same note can be written four ways, and each shape is a duration: the whole note lasts four beats, the half note two, the quarter note one, the eighth note half a beat. Change the value and listen — the pitch stays the same, only the time the sound lasts changes.

Watch what changes in the drawing: the hollow head fills in, the stem gets a flag. That is how notation writes duration, and it is why in the editor the note value is the first thing you choose before touching the staff.

Pick a note value and press Listen. The small bar next to the note shows how long it lasts compared with the others.

The bar line draws itself

Here is an eight-beat melody. Change the time signature and watch: the notes don't move — the bar lines do. In 2/4 a bar line falls every two beats; in 3/4, every three; in 4/4, every four. You write the sequence; where the measure ends is the editor's job.

And when a note doesn't fit at the end of a measure? It is split in two and joined by a curved line called a tie: two noteheads, one sound. That is what any printed score does, and here it happens on its own, without you having to know in advance that it would.

Try 3/4: the melody is the same, but one note now straddles a bar line and gets a tie. Press Listen and check that the sound hasn't changed.

Hear what you wrote

Press Listen and follow the cursor: each note lights up as it sounds, for as long as its value says. What is on the page is exactly what you hear — nothing hides between the score and the sound.

Add a note with + and remove the last one with ⌫. The beat count below shows how many measures the melody has so far. In the editor, that is how a piece grows: one note value at a time, listening at every step.

Press + a few times, listen, and notice where the new bar line appeared. Then remove a note with ⌫ and listen again.

What now?

You don't learn to write sheet music by reading about it: you learn by writing a short melody and hearing how it came out. The editor runs on your phone, nothing to install, and the bar line stays its problem, not yours.

Write some sheet music now Play by reading a score Practise reading

A full notation program does far more than this — voices, key signatures, dynamics, printing. This page and the editor exist for the first step: writing a melody and hearing it, on your phone, with no theory first.

Frequently asked questions

What do I need to know before writing sheet music?

Almost nothing. Picking a note value and touching the staff is enough to start; the bar lines, ties and beat counting the editor does for you. Knowing how to read notes helps, but the name appears as you write — and you can learn to read on the page about reading sheet music.

Why does the bar line appear on its own?

Because the bar line is not your decision: it falls where the time signature says. In 4/4, every four beats. You write the sequence of notes and the editor splits whatever doesn't fit, tying the two halves with a curve. Changing the time signature rearranges everything.

Can I write sheet music on my phone?

Yes. The editor was built for a small screen: the note values are finger-sized buttons, a note goes in with one touch on the staff, and a magnifier shows its name while you drag to adjust. It runs in the browser, on phone, tablet or computer.

What happens to the sheet music I wrote?

It is stored on your device and can become a song in the Real Music game: you play the piece by reading the score you wrote yourself, with piano sound. You can also download the .mid file and open it in other programs.