Score – the master of all contexts

This is the top-level notation context.11 No other context can contain a Score context. This context handles the administration of time signatures. It also makes sure that items such as clefs, time signatures, and key signatures are aligned across staves.

You cannot explicitly instantiate a Score context (since it is not contained in any other context). It is instantiated automatically when an output definition (a \score or \layout block) is processed.

An alias called Timing is established by the Timing_translator in whatever context it is initialized, and the timing variables are then copied from wherever Timing had been previously established. The alias at Score level provides a target for initializing Timing variables in layout definitions before any Timing_translator has been run.


Footnotes

(11)

There exists a context called Global that is even one level higher than Score, and which is the hard-coded entry point for LilyPond. However, this is not meant to be modified; you will need this context only if you are going to implement an engraver in Scheme and can be safely ignored otherwise.

LilyPond Notation Reference v2.25.22 (development-branch).