Lilypond displays chords on each bar

According to the Lilypond documentation, you can only select the chords displayed when they change. I can not get this behavior. Here is a snippet:

\new ChordNames { \chordmode { d1:7 d1:7 } } 

Here is an alternative snippet:

 \new ChordNames { \chordmode { d1:7 d:7 } } 

In both cases, Lilypond displays the chord names above both bands. This is the same throughout the account. I can't get it to not display duplicate chord names.

Any ideas?

+6
source share
2 answers

You need to use \set chordChanges = ##t . Try this snippet:

 \new ChordNames { \chordmode { \set chordChanges = ##t d1:7 d1:7 } } 
+3
source

I think you skipped setting chordChanges to true . An example in the LilyPond docs ::

 1 harmonies = \chordmode { 2 c1:mc:m \break c:mc:md 3 } 4 << 5 \new ChordNames { 6 \set chordChanges = ##t 7 \harmonies 8 } 9 \new Staff { 10 \relative c' { \harmonies } 11 } 12 >> 

In this example, line 6 is needed to display chords only when changing chords:

\set chordChanges = ##t

So, you need to add this command to the lilypond source code.

+2
source

Source: https://habr.com/ru/post/984717/


All Articles