3.4.2 Adding titles

The title, composer, opus number, and similar information are entered in the \header block. This exists outside of the main music expression; the \header block is usually placed underneath the version number.

\version "2.24.3"

\header {
  title = "Symphony"
  composer = "Me"
  opus = "Op. 9"

  … music …

When the file is processed, the title and composer are printed above the music. More information on titling can be found in Creating titles headers and footers.

LilyPond — Learning Manual v2.24.3 (stable-branch).