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.23.82"

\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 — 学习手册 v2.23.82 (开发分支).