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 { }
}

[image of music]


<< Back to Documentation Index

LilyPond — Learning Manual v2.21.82 (development-branch).

AltStyle によって変換されたページ (->オリジナル) /