# Staff notation

> Pitch and duration written on lines

- Date: c. 900
- Era: Middle Ages
- Domain: [Writing & Communication](https://lastcodex.org/en/domains/communication/)
- Rebuild stage: III (Crafts & cities)
- Difficulty: 2/5
- URL: https://lastcodex.org/en/inventions/staff-notation/

Staff notation writes music on a set of parallel lines. The height of a note on a line or in a space gives its pitch, a clef at the start names one line, and the shape of the note gives its length. The oldest staff, one line for each step of the scale, is in the Musica enchiriadis, a treatise of the late ninth century, and Guido of Arezzo brought lines and clefs into chant books in the early eleventh century.

![Staff notation · Pitch and duration written on lines](https://lastcodex.org/_astro/plate.BhF7I9St_zWekv.webp)

## Legend

1. The five lines of the staff
2. Clef naming one line
3. Notes on a line and in the next space
4. Note shapes of different lengths
5. Rest
6. Custos showing the first note of the next staff

## What it is

Staff notation writes music on a staff, a set of horizontal lines, today five. Each line and each space between two lines stands for one step of the scale, so a note written higher stands for a higher sound. A sign at the start of the staff, the clef, gives the name of one line, and the names of the others follow from it. The shape of each note tells how long it lasts, and other signs, the rests, mark the silences.

The staff is read from left to right. Notes written one above the other on the same staff sound together, and the parts of a piece for several voices can be written on separate staves. A melody set down this way can be sung by someone who has never heard it. Neumes, the older signs written above the words of chant, showed the rise and fall of the voice without fixing its intervals.

## How it works

The lines and spaces form a ladder. On a five-line staff, a note on the bottom line, a note in the space above it and a note on the next line up are three neighbouring notes of the scale. The clef fixes where the ladder sits. The G clef curls round the second line from the bottom and makes it the G above middle C. The F clef places its two dots on either side of the fourth line, which becomes the F below middle C. Notes too high or too low for the staff are written on short ledger lines added above or below it. A sharp written before a note raises it by a semitone and a flat lowers it by a semitone.

![A five-line staff with five notes on the same line: an open oval without a stem, an open head with a stem, then three filled heads with stems carrying no flag, one flag and two flags](https://lastcodex.org/_astro/v3.6SSV3cC5_Z2uVbM2.webp)
_Whole note, half note, quarter note, then one flag and two: each shape lasts half as long as the one before._

Length is written in the shape of the note. In modern notation a whole note is an open oval, a half note adds a stem to it, and a quarter note has a filled head and a stem. Each flag added to the stem halves the length again. A dot after a note makes it half as long again, and every length has a rest that lasts as long. Bar lines divide the music into bars holding the same number of beats, set by the time signature at the start.

Older music used other shapes. In mensural notation, used from the thirteenth to the sixteenth century, the main notes were the long, a square with a tail, the breve, a square, and the semibreve, a lozenge. In the system of Franco of Cologne, each of these was normally worth three of the next shorter note. Many manuscripts end each staff with a small sign, the custos, placed at the height of the first note of the next staff so that the singer can find it after the line break.

## How to do it

![A brass holder with five parallel steel nibs on a wooden handle, lying on a sheet of paper beside a wooden ruler and an inkwell, after ruling two staves of five lines](https://lastcodex.org/_astro/v2.CVwEH7WQ_2u9W5v.webp)
_A rastrum, a pen with five nibs, rules the five lines of a staff in a single stroke._

Rule a staff on plain paper with a ruler and a sharp pencil: five parallel lines, evenly spaced, with room for a note head between two lines and a wide gap before the next staff. A rastrum, a pen with five nibs, draws all five at once. Tools of this kind are mentioned for ruling music from the sixteenth century, and the oldest that survive date from the eighteenth.

Choose a short tune you know well and an instrument that gives clear, fixed notes, such as a keyboard or a recorder. Draw a G clef at the start of the staff. Find the first note of the tune on the instrument and write it on its line or space, then go on note by note, counting how many steps each one rises or falls. Write the notes outside the staff on ledger lines.

Then add the lengths. Tap the beat while you sing, write a note lasting one beat as a quarter note, two beats as a half note and half a beat as an eighth note, and add a bar line each time the tune's pattern of strong beats starts again. At the start, write the time signature as two numbers, one above the other: the number of beats in a bar on top and, below it, the note that counts as one beat, 4 for a quarter note. A tune with three quarter-note beats to the bar takes 3 over 4.

Test the result by giving the sheet to someone who does not know the tune and asking them to sing or play it. Where their version differs from the tune, check the height or the length of the notes at that place and correct them.

## History and evolution

Melodies were written down long before the staff. Clay tablets from Ugarit, in Syria, of about 1350 BCE give the words of a Hurrian hymn with musical instructions in Babylonian terms, which Jay Rahn reads as numbered strings of a harp or lyre. Greek musicians wrote pitches as letters above the syllables, as in two hymns to Apollo carved on the Treasury of the Athenians at Delphi in the late second century BCE. Medieval chant books marked melodies with neumes. From the second quarter of the tenth century, scribes began to set neumes at heights that matched the intervals, and in southern France they often added one line, drawn in ink or scratched into the parchment with a dry point, as a reference pitch.

The oldest staff is in a music treatise, the Musica enchiriadis, usually dated to the late ninth century; Sarah Fuller places it around the middle of that century. To show organum, chant sung in two or more voices at once, it draws a set of lines, one for each step of the scale, with a sign for the pitch of each line in a column at the left. The syllables of the text are written on the lines where they are to be sung, and syllables stacked one above the other sound together. Most copies of the treatise are of the eleventh century, with one fragment of the ninth, and the abbey library of Einsiedeln keeps a copy of the tenth. This staff stayed in learned treatises.

![A fragment of parchment with four horizontal lines, the top one pale yellow and the third red, and black neumes of dots and hooked strokes set on and between the lines above an empty band](https://lastcodex.org/_astro/v1.DFq5h8K3_Z28mErB.webp)
_Neumes on four lines: the coloured lines mark the notes F and C, each of which lies a semitone above the note below it._

Guido of Arezzo, a Benedictine monk of Pomposa who later taught at the cathedral school of Arezzo, brought lines into ordinary chant books. In the prologue to his antiphoner, written between about 1020 and 1030, he set neumes on lines and in the spaces between them, with the lines a third apart, a letter at the start of a line to name its pitch, a red line for F and a yellow line for C. Letters and coloured lines had appeared before, in the Enchiriadis treatises among others, but he combined them for everyday use. He presented the antiphoner, now lost, to Pope John XIX in 1028. Guido did not fix the number of lines, and copies of his works have staves of three, four or five. A manuscript copied in Rome in 1071, now in the Bodmer Foundation near Geneva, still shows its red F lines. By the thirteenth century chant books had settled on four lines, which editions of chant still use today.

The staff fixed pitch but left rhythm to custom. Earlier polyphony indicated a few rhythmic patterns by the way notes were grouped together. In the second half of the thirteenth century, theorists gave each note shape its own length: Lambertus in a treatise of about 1270, and Franco of Cologne in his Ars cantus mensurabilis, dated about 1260 in the New Catholic Encyclopedia and about 1280 by the University of Basel. Franco's system was copied in Italy, France and England, and parts of it lasted until the sixteenth century. Polyphonic music settled on five lines by the fourteenth century, while keyboard music in some countries used six or seven lines until the middle of the seventeenth.

The [printing press](/en/inventions/printing-press/) spread the staff further. In Europe, the oldest surviving book of music printed from movable type is the Constance Gradual, printed in southern Germany around 1473, which the British Library holds. In Venice, Ottaviano Petrucci published the Harmonice Musices Odhecaton in 1501, the first book of polyphony printed from movable type. Each sheet went through his press several times: first for the staff lines, then for the notes, then for the words. In Paris in the late 1520s, Pierre Attaingnant used type in which each note carried its own short piece of staff, so a page could be printed in one pass.

## Key facts

- Oldest known staff: Musica enchiriadis, late 9th century
- Staff of Guido of Arezzo: Lines a third apart, letter clefs, red F line and yellow C line, c. 1020–1030
- Each note shape given its own length: Lambertus and Franco of Cologne, c. 1260–1280
- First polyphony printed from movable type: Ottaviano Petrucci, Venice, 1501

## Requires

- [Writing](https://lastcodex.org/en/inventions/writing/): Knowledge that outlives memory (c. 3,300 BCE)
- [Writing ink](https://lastcodex.org/en/inventions/writing-ink/): Colour carried onto a surface (c. 3,300 BCE)

## Sources

- [The Origins of the Musical Staff (The Musical Quarterly 91, 2008, pp. 327–378)](https://doi.org/10.1093/musqtl/gdp002), John Haines, Oxford University Press
- [Guido of Arezzo](https://www.encyclopedia.com/religion/encyclopedias-almanacs-transcripts-and-maps/guido-arezzo), H. Oesch, New Catholic Encyclopedia (Gale / Encyclopedia.com)
- [Guido of Arezzo (The Catholic Encyclopedia, 1910)](https://www.newadvent.org/cathen/07065a.htm), Joseph Otten, New Advent
- [From Ink to Sound: Lines and staff](https://tales.nmc.unibas.ch/en/from-ink-to-sound-32/from-sound-to-ink-early-forms-of-musical-notation-188/lines-and-staff-949), University of Basel
- [From Ink to Sound: The notational system of mensural music](https://tales.nmc.unibas.ch/en/from-ink-to-sound-32/early-mensural-notation-190/the-notational-system-of-mensural-music-965), University of Basel
- [Franco of Cologne](https://www.encyclopedia.com/religion/encyclopedias-almanacs-transcripts-and-maps/franco-cologne), D. Stevens, New Catholic Encyclopedia (Gale / Encyclopedia.com)
- [Gratuletur omnis caro (daseian notation in the Enchiriadis tradition)](https://www.corimu.unisi.it/public/previewms/musica/idtestimoni/60), CORIMU, Università di Siena
- [Review of Musica Enchiriadis and Scolica Enchiriadis, trans. R. Erickson (Music Theory Online 3.1, 1997)](https://www.mtosmt.org/issues/mto.97.3.1/mto.97.3.1.fuller.html), Sarah Fuller, Society for Music Theory
- [Einsiedeln, Stiftsbibliothek, Codex 79(522): Musica enchiriadis, 10th century](https://www.e-codices.unifr.ch/en/list/one/sbe/0079), e-codices, Virtual Manuscript Library of Switzerland
- [The Hurrian Pieces, ca. 1350 BCE, Part One: Notation and Analysis (Analytical Approaches to World Music 1, 2011)](https://doaj.org/article/a12585928b2e45cd8b3034777850691e), Jay Rahn
- [La musique à Ougarit (Comptes rendus de l'Académie des Inscriptions et Belles-Lettres 131, 1987)](https://www.persee.fr/doc/crai_0065-0536_1987_num_131_4_14552), Annie Caubet, Persée
- [Between Athens and Delphi: The Pragmatics of the Delphic Hymns](https://classicalstudies.org/between-athens-and-delphi-pragmatics-delphic-hymns), Claas Lattmann, Society for Classical Studies
- [The Delphic Hymns to Apollo](https://www.delphimuseum.gr/2025/03/the-delphic-hymns-to-apollo.html), Delphi Museum information site
- [Notation (A Dictionary of Music and Musicians, ed. G. Grove, 1879–1889)](https://en.wikisource.org/wiki/A_Dictionary_of_Music_and_Musicians/Notation), Macmillan (Wikisource transcription)
- [Working with Early Modern (Music) Prints](https://www.worldphilology.gwi.uni-muenchen.de/en/working-with-early-modern-music-prints/2/), Elisabeth Seidel, WorldPhilology, LMU München
- [The Constance Graduale, IB.15154 (c. 1473, southern Germany)](https://zenodo.org/records/10368377), British Library
- [The Earliest Music Printed from Movable Type Appears in the "Constance Gradual"](https://historyofinformation.com/detail.php?id=1421), Jeremy Norman, History of Information
- [Harmonice musices odhecaton A (Venice: Petrucci, 1504; first published 1501)](https://www.loc.gov/item/2008561329/), Library of Congress, Music Division
- [The First Book of Sheet Music Printed from Movable Type](https://www.historyofinformation.com/detail.php?id=1420), Jeremy Norman, History of Information
- [Musical notation: Evolution of Western staff notation](https://www.britannica.com/art/musical-notation/Evolution-of-Western-staff-notation), Encyclopaedia Britannica
- [custos (MEI Guidelines)](https://music-encoding.org/guidelines/v3/elements/custos.html), Music Encoding Initiative
- [custos (LilyPond Music Glossary)](https://lilypond.org/doc/v2.25/Documentation/music-glossary/custos), LilyPond project
- [The Staff, Clefs, and Ledger Lines](https://www.musictheory.net/lessons/10), musictheory.net
- [Reading Clefs (Open Music Theory)](https://viva.pressbooks.pub/openmusictheory/chapter/clefs/), M. Gotham et al., VIVA Open Publishing
- [Notating Rhythm (Open Music Theory, 2nd ed.)](https://human.libretexts.org/Bookshelves/Music/Music_Theory/Open_Music_Theory_2e_(Gotham_et_al.)/01%3A_Fundamentals/1.08%3A_Notating_Rhythm), M. Gotham et al., LibreTexts

Fact-checked on 2026-10-18.

---

The Last Codex · https://lastcodex.org/en/inventions/staff-notation/ · © The Last Codex. Texts, plates and figures: CC BY-NC-ND 4.0.
