For displaying printed chord names, use the
ChordNames context.
The chords may be entered either using the notation
described above, or directly using < and >
harmonies = {
\chordmode {a1 b c} <d' f' a'> <e' g' b'>
}
<<
\context ChordNames \harmonies
\context Staff \harmonies
>>
You can make the chord changes stand out by setting
ChordNames.chordChanges to true. This will only
display chord names when there is a change in the chords scheme and at
the start of a new line
harmonies = \chordmode {
c1:m c:m \break c:m c:m d
}
<<
\context ChordNames {
\set chordChanges = ##t
\harmonies }
\context Staff \transpose c c' \harmonies
>>
The previous examples all show chords over a staff. This is not necessary. Chords may also be printed separately. It may be necessary to add Volta_engraver and Bar_engraver for showing repeats.
\new ChordNames \with {
\override BarLine #'bar-size = #4
voltaOnThisStaff = ##t
\consists Bar_engraver
\consists "Volta_engraver"
}
\repeat volta 2 \chordmode {
f1:maj f:7 bes:7
c:maj
} \alternative {
es e
}
The default chord name layout is a system for Jazz music, proposed by Klaus Ignatzek (see Literature list). It can be tuned through the following properties
chordNameExceptionsThe exceptions list should be encoded as
{ <c f g bes>1 \markup { \super "7" "wahh" } }
To get this information into chordNameExceptions takes a little
manoeuvring. The following code transforms chExceptionMusic
(which is a sequential music) into a list of exceptions.
(sequential-music-to-chord-exceptions chExceptionMusic #t)
Then,
(append
(sequential-music-to-chord-exceptions chExceptionMusic #t)
ignatzekExceptions)
adds the new exceptions to the default ones, which are defined in ly/chord-modifier-init.ly.
For an example of tuning this property, see also input/regression/chord-name-exceptions.ly.
majorSevenSymbolwhiteTriangleMarkup and
blackTriangleMarkup. See
input/regression/chord-name-major7.ly for an example.
chordNameSeparatorchordNameSeparator, you can specify other
separators, e.g.
\context ChordNames \chordmode {
c:7sus4
\set chordNameSeparator
= \markup { \typewriter "|" }
c:7sus4
}
chordRootNamerchordNoteNamerchordRootNamer. The chordNoteNamer property can be set
to a specialized function to change this behavior. For example, the
base can be printed in lower case.
The predefined variables \germanChords,
\semiGermanChords set these variables. The effect is
demonstrated here,
There are also two other chord name schemes implemented: an alternate Jazz chord notation, and a systematic scheme called Banter chords. The alternate jazz notation is also shown on the chart in Chord name chart. Turning on these styles is described in the input file input/test/chord-names-jazz.ly.
\germanChords,
\semiGermanChords.
Examples: input/regression/chord-name-major7.ly, input/regression/chord-name-exceptions.ly, input/test/chord-names-jazz.ly, input/test/chords-without-melody.ly.
Init files: scm/chords-ignatzek.scm, and scm/chord-entry.scm.
Chord names are determined solely from the list of pitches. Chord
inversions are not identified, and neither are added bass notes. This
may result in strange chord names when chords are entered with the
< .. > syntax.
This page is for LilyPond-2.4.5 (stable-branch).