LilyPond 学习手册: A.2.4 Notes, lyrics, and chords

### A.2.4 Notes, lyrics, and chords

This template allows the preparation of a song with melody, words, and chords.

>     melody = \relative c' {
>       \clef treble
>       \key c \major
>       \time 4/4

>       a4 b c d
>     }

>     text = \lyricmode {
>       Aaa Bee Cee Dee
>     }

>     harmonies = \chordmode {
>       a2 c
>     }

>     \score {
>       <<
>         \new ChordNames {
>           \set chordChanges = ##t
>           \harmonies
>         }
>         \new Voice = "one" { \autoBeamOff \melody }
>         \new Lyrics \lyricsto "one" \text
>       >>
>       \layout { }
>       \midi { }
>     }

#### LilyPond — 学习手册 v2.24.4 (稳定分支).