Chord names and lyrics without a staff: Difference between revisions
Appearance
Import snippet from LSR |
m Lemzwerg moved page Chord Names and Lyrics without a Staff to Chord names and lyrics without a staff without leaving a redirect: Only the first letter of a title should be uppercase |
||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
To create a song sheet with only chord symbols and lyrics, it is not recommended to use Lilypond but to use a tool specifically designed for the task such as GuitarTeX. There are ways to make Lilypond produce such output, however. One approach is to use the <code>\Devnull</code> context. | To create a song sheet with only chord symbols and lyrics, it is not recommended to use Lilypond but to use a tool specifically designed for the task such as GuitarTeX. There are ways to make Lilypond produce such output, however. One approach is to use the <code>\Devnull</code> context. | ||
<lilypond version="2.24 | <lilypond version="2.24"> | ||
%% http://lsr.di.unimi.it/LSR/Item?id=536 | %% http://lsr.di.unimi.it/LSR/Item?id=536 | ||
| Line 35: | Line 35: | ||
[[Category:Vocal music]] | [[Category:Vocal music]] | ||
[[Category:Text]] | [[Category:Text]] | ||
[[Category:Snippet]] | |||
Latest revision as of 05:23, 24 November 2025
To create a song sheet with only chord symbols and lyrics, it is not recommended to use Lilypond but to use a tool specifically designed for the task such as GuitarTeX. There are ways to make Lilypond produce such output, however. One approach is to use the \Devnull context.
\version "2.24"
%% http://lsr.di.unimi.it/LSR/Item?id=536
text = \lyricmode { Ho ho, ho ho ho. Ha ha, ha. }
nullMelody = \relative c'' {
e4 e e2
e2 e
\tuplet 3/2 { d2 c d }
}
harmonies = \chordmode { a1:m | d:m | e:7 | }
\score {
<<
\new ChordNames
\with { \override VerticalAxisGroup.staff-affinity = ##f }
\harmonies
\new Devnull = "vocal"
\nullMelody
\new Lyrics
\with { \override LyricText.self-alignment-X = #LEFT }
\lyricsto "vocal" \text
>>
\layout { }
}