Display non-English chord names: Difference between revisions
Appearance
m New category Tags: Mobile edit Mobile web edit |
m Remove the ‘official’ tag – almost exactly the same code is present in the Notation Reference, being too important to be moved into a snippet. |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
The | 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"> | ||
scm = \chordmode { | scm = \chordmode { | ||
d1/d | cis/cis | |||
b1/b | bis/bis | bes/bes | b1/b | bis/bis | bes/bes | ||
} | } | ||
\layout { | |||
indent = 3\cm | |||
ragged-right = ##f | |||
\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 | |||
} | } | ||
} | } | ||
| Line 22: | Line 28: | ||
} | } | ||
\new ChordNames { | \new ChordNames { | ||
\set instrumentName = #" | \set instrumentName = #"German" | ||
\germanChords \scm | \germanChords \scm | ||
} | } | ||
\new ChordNames { | \new ChordNames { | ||
\set instrumentName = #"semi- | \set instrumentName = #"semi-German" | ||
\semiGermanChords \scm | \semiGermanChords \scm | ||
} | } | ||
\new ChordNames { | \new ChordNames { | ||
\set instrumentName = #" | \set instrumentName = #"Italian" | ||
\italianChords \scm | \italianChords \scm | ||
} | } | ||
\new ChordNames { | \new ChordNames { | ||
\set instrumentName = #" | \set instrumentName = #"French" | ||
\frenchChords \scm | \frenchChords \scm | ||
} | } | ||
| Line 43: | Line 49: | ||
[[Category:Chords]] | [[Category:Chords]] | ||
[[Category:Really simple]] | [[Category:Really simple]] | ||
[[Category:Snippet]] | [[Category:Snippet]] | ||
Latest revision as of 08:09, 20 February 2026
The default English naming of chords can be changed to other languages, as demonstrated in this snippet.
\version "2.24"
scm = \chordmode {
d1/d | 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 }
>>