Rastral development blog

The feel of a page

I’ve always cared about spacing. Already at the conservatory I was sensitive to the feel of certain publishers’ scores, which were much more pleasant to read from than others. I was partial to Breitkopf & Härtel, Henle and Wiener Urtext, though there are others. What I care about is clarity, and good-looking, balanced pages.

When I first look at a page, I judge it by feel. That feel comes mostly from balance and evenness, and also from the design of the music font and the shapes of the slurs, dynamics, etc. This post is about spacing and page feel.

Time, not notes

Good spacing starts from time. A note’s room follows its duration: a half note gets more room than a quarter, though not twice as much, and notes of the same length get the same room. Rastral’s default proportions follow Ted Ross, the engraver whose book on the craft has been with me for a long time.

Rastral starts from moments rather than notes. Every moment at which something happens, on any staff, gets one place across the whole system. Sometimes a note on one staff begins while a note on another is still sounding, as when triplets play against eighths, or two staves run at different tempi. That moment gets its own place, which splits the sounding note’s room in two. Rastral makes sure the two pieces still add up to that note’s full room, so a run of even notes stays even, whatever the other staves are doing.

A violin in triplet eighths over a cello in plain eighths and quarters, four bars of 2/4, engraved by Rastral
A few bars written for this post: a violin in triplets over a cello in eighths. Where a cello eighth falls between two triplet notes it gets a place of its own, and the triplets stay even. As Rastral sets them in Bravura, untouched.

Because places come from moments, not from beats or bars, simultaneous metres and tempi need no special treatment. A staff in 3/4 at one tempo and a staff in 5/8 at another find their places the same way, as the previous post shows. Wherever their moments coincide, they share one place exactly.

Ink and air

Every note brings ink: its head, its accidentals, its dots, its ledger lines. Good engraving keeps the air between notes even, and makes room for the ink only where it’s needed.

An accidental in Rastral takes room only on its own staff. A flat in the violas’ run of sixteenths doesn’t necessarily open a gap in the flutes’ run of eighths. The rhythm places the note, and the accidental moves it along only if it lacks air on its own staff, keeping clear of the notes before it.

Ledger lines need the same care. Lines of neighbouring notes shouldn’t run together, and in cramped spaces, or beside an accidental, an engraver shortens them. Rastral counts each ledger line at its shortest when it works out the spacing, and draws it out only into room that’s already there.

Three bars of a Scarlatti sonata in D minor, runs of sixteenths with sharps and naturals among them and ledger lines above and below both staves, engraved by Rastral
Scarlatti, Sonata in D minor, K. 1 (L. 366), bars 21–23: accidentals inside runs of sixteenths, and ledger lines above and below, as Rastral sets them in Leland. The B natural in bar 22 has almost no ledger line before it, and the tied A at the start of bar 23 almost none after it, to make room for the ink around them. All the spacing is Rastral’s own.

Springs, and where systems break

A system has to fill the width of the page exactly. Rastral treats each gap between moments as a spring, which can stretch or shrink, but never below the room its ink needs. A short system stretches and a long one compresses, and both are ordinary. How the stretch is shared out is a matter of house style.

Two bars squeezed until every spring is at its floor, then stretched, and back again, with the springs drawn above the staff: direct output from Rastral in developer mode. Pause it when it’s fully squeezed and enlarge the page in your browser to see the ledger lines giving way in places.

Where the systems break matters just as much. Rastral weighs every possible set of breaks for the whole movement at once, and picks the one in which the systems together sit closest to their natural width, so that no system is crammed or stretched to make up for another. A last system is stretched to the full width only when it’s at least two thirds full. That two thirds is a setting, so it can be adjusted.

Breaking also decides where the pages turn. In a part, a good page turn matters more than a perfect page: the player needs a rest long enough to turn, about four seconds, or five for a double bassist, and a page may end short to reach one. In a score it matters less. This is planned for Rastral’s breaker, parts first, but not built yet.

Where the ideas come from

Little of this is new. Ross’s The Art of Music Engraving and Processing and Elaine Gould’s Behind Bars describe what good spacing looks like. Rastral’s springs and whole-movement breaking follow ideas Hegazy and Gourlay set out in 1987, adapting the method Donald Knuth and Michael Plass devised in 1981 for breaking paragraphs in TeX.

A good week after I started, I came across Ooloi, an open-source notation programme by Peter Bengtson, who created Igor Engraver. Unsurprisingly, we think much alike: I ended up at Noteheads because it was a natural fit. Peter publishes detailed design notes. Much of what they describe was already built or planned in Rastral, but Ooloi’s posts helped me refine some of the details I was figuring out, and which he had already thought about.

Details you feel more than see

Some details aren’t immediately apparent, but they matter to the feel of a page.

On traditional plates, the crossings between stems and beams could bleed a little, rounding the corners of the white between them. Rastral emulates that: it rounds those corners only slightly, just enough that you feel it more than see it on a page. The radius is a setting, a sixteenth of a staff space by default.

Two sixteenth beams under four stems, blown up: the white between the beams and the stems has slightly rounded corners The same two beams with square corners in the white between them
The white between two beams, blown up, as Rastral rounds its corners. Scarlatti, K. 1, bar 22, in Leland.
The same beams with square corners, for comparison.

Ledger lines get the same care. Their ends are rounded too, by a thirty-second of a space by default, again a setting.

Notes above the staff on one and two ledger lines, blown up, the ledger lines’ ends slightly rounded The same ledger lines with square ends
Ledger lines blown up, their ends as Rastral rounds them. Scarlatti, K. 1, bar 21, in Leland.
The same ledger lines with square ends, for comparison.

Rastral can also beam the French way, with each stem stopping at the beam nearest its note rather than running through to the outermost one. And where a beam slants across the staff, a staff line can show in the white between two beams; Rastral can mask it there. Both are options of the house style, and both are off by default.

Two groups of sixteenths whose beams slant across the staff, the stems running to the outer beam and the staff lines showing in the white between the beams The same groups beamed the French way, each stem stopping at the nearest beam, the staff lines masked between the beams
Two groups of sixteenths whose beams slant across the staff, blown up: the stems run through to the outer beam, and the staff lines show between the beams. A bar written for this post, in Leland.
The same bar beamed the French way, each stem stopping at the nearest beam, with the staff lines masked between the beams.

Many of these details are not something a reader would point to. Together they decide whether a page feels calm and inviting, or correct, but maybe cold. That’s what I judge published scores by, and it’s what I want Rastral’s pages to be judged by.

Almost everything here is a house-style setting with a default I chose. Engravers disagree on these details, and Rastral lets you create your own elaborate house style, tweaked exactly how you want it. My main concern, as I develop Rastral further, is to provide an excellent default set to start from.