Jump to content

Display non-English chord names: Difference between revisions

From LilyPond wiki
m New category
Tags: Mobile edit Mobile web edit
 
(One intermediate revision by the same user not shown)
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 default English naming of chords can be changed to other languages, as demonstrated in this snippet.


<lilypond version="2.24">
<lilypond version="2.24">
Line 7: Line 7:
}  
}  


\layout {
  indent = 3\cm
  ragged-right = ##f


\layout {
  ragged-right = ##t
   \context {
   \context {
     \ChordNames
     \ChordNames
     \consists "Instrument_name_engraver"
     \consists "Instrument_name_engraver"
  }
  \context {
    \Score
    \override InstrumentName.self-alignment-Y = -1.2
    \override InstrumentName.self-alignment-X = #RIGHT
   }
   }
}
}

Latest revision as of 07:27, 28 December 2025

The default English naming of chords can be changed to other languages, as demonstrated in this snippet.

\version "2.24"

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

\layout {
  indent = 3\cm
  ragged-right = ##f

  \context {
    \ChordNames
    \consists "Instrument_name_engraver"
  }
  \context {
    \Score
    \override InstrumentName.self-alignment-Y = -1.2
    \override InstrumentName.self-alignment-X = #RIGHT
  }
}

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