Jump to content

Display non-English chord names: Difference between revisions

From LilyPond wiki
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:
The english naming of chords (default) can be changed to german (<code>\germanChords</code> replaces B and Bes with H and B) or semi-german (<code>\semiGermanChords</code> replaces B and Bes with H and Bb).
The english naming of chords (default) can be changed to german (<code>\germanChords</code> replaces B and Bes with H and B) or semi-german (<code>\semiGermanChords</code> replaces B and Bes with H and Bb).


<lilypond version="2.24.0">
<lilypond version="2.24">
scm = \chordmode {
scm = \chordmode {
   c1/c | cis/cis
   c1/c | cis/cis

Revision as of 18:49, 16 November 2025

The english naming of chords (default) can be changed to german (\germanChords replaces B and Bes with H and B) or semi-german (\semiGermanChords replaces B and Bes with H and Bb).

\version "2.24"

scm = \chordmode {
  c1/c | cis/cis
  b1/b | bis/bis | bes/bes
} 


\layout {
  ragged-right = ##t 
  \context {
    \ChordNames
    \consists "Instrument_name_engraver"
  }
}

<<
  \new ChordNames {
    \set instrumentName = #"default"
    \scm
  }
  \new ChordNames {
    \set instrumentName = #"german"
    \germanChords \scm
  }
  \new ChordNames {
    \set instrumentName = #"semi-german"
    \semiGermanChords \scm
  }
  \new ChordNames {
    \set instrumentName = #"italian"
    \italianChords \scm
  }
  \new ChordNames {
    \set instrumentName = #"french"
    \frenchChords \scm
  }
  \context Voice { \scm }
>>