Chord names and lyrics without a staff: Difference between revisions
Appearance
Import snippet from LSR |
m Replace version="2.24.0" with version="2.24" now that the LilyWiki extension supports auto-selecting the latest release in a stable series |
||
| 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 | ||
Revision as of 18:53, 16 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 { }
}