On Thu, Mar 21, 2024 at 2:30 PM Werner LEMBERG <[email protected]> wrote:
>
> I think I've found the real fix for the problem. Suddenly remembering
> that we already have the `Span_bar_stub_engraver` to handle exactly
> such situations I wondered why it works for lyrics but not for chord
> names. Comparing the definitions of the two contexts in
> `engraver-init.ly` I found out that the `Pure_from_neighbor_engraver`
> was missing, and adding it seems to do the trick.
>
>
> ```
> \version "2.25.13"
>
> \layout {
> \context {
> \ChordNames
> \consists Pure_from_neighbor_engraver
> }
> }
>
> \score {
> \new GrandStaff <<
> \new Staff \relative { c''4 c c c | c c c c }
> \new ChordNames \chordmode { c2. q8. des16:maj9 | q1 }
> \new Staff { \improvisationOn b'4 4 4 8. 16~ | 4 4 4 4 }
> >>
> }
> ```
>
>
> Since I don't have experience with chord names I ask users who need
> this feature to check whether it works as expected in general.
>
It works like a charm in my source! Thanks for researching this.
--
Knute Snortum