On 11/05/24 01:59, Kieren MacMillan wrote:
Hi Raphael,


However, the chord names are mono-spaced; they are not spaced according to their durations. So that if, for instance, I  have {ef2 ef4:maj7 ef4:7} then each symbol occupies the same amount of space on the line. The first chord does not occupy double the space of the other two.

Are you sure? Are you using ragged-right = ##f to confirm/test?

For example, the code

%%%  SNIPPET BEGINS
\version "2.25.11"
\language "english"

\layout {
  indent = 0
  line-width = 4\in
  ragged-right = ##f
  \context {
    \Score
    \remove "Bar_number_engraver"
  }
  \context {
    \ChordNames
    \consists "Bar_engraver"
    \override BarLine.bar-extent = #'(-2 . 2)
  }
}

theChords = \chordmode {
  ef4 ef2:maj7 ef4:7 \break
  ef2 ef4:maj7 ef4:7
}

\new ChordNames \theChords
%%%  SNIPPET ENDS

gives me the output

and clearly there’s a difference in the spacing.

Cheers,
Kieren.

Thank you for your suggestions.

I am neither setting nor touching ragged-right.

I suspect that part of the difference that we see is that you forced lilypond to spread a limited amount of music over two lines. In my case it is jamming 49 bars into one page. After sleeping on it, what worked for me, in the end, is


\score {
<<*
\set Score.proportionalNotationDuration = #(ly:make-moment 1/8)
\override Score.SpacingSpanner.strict-note-spacing = ##t
*
\new ChordNames \with {
    \override ChordName.font-size = #'+3
    \override BarLine.bar-extent = #'(-2 . 2)
\   consists "Bar_engraver"
} {
    \introChords \bar "||" \break
    \chordNames \bar "|."
}
>>

\layout {
}
}
______________________________________________

My work day may look different than your work day. Please do not feel obligated to read or respond to this email outside of your normal working hours.

Reply via email to