Re: Chord names collide with span bar

Knute Snortum <[email protected]>
Newsgroups gmane.comp.gnu.lilypond.bugs
Message-ID <CALmeJxRB22r3GrRTMr7X1_6H0n__V7jgmU4itQkC4PniL4KTCw@mail.gmail.com>
On Tue, Mar 19, 2024 at 4:34 PM Aaron Hill <[email protected]> wrote:

> ...
>


> Curious.  The skylines look interesting, almost like the SpanBar is not
> being factored in, only the parts of the BarLine.
>
> Below, I attempted to add some virtual height to the ChordName, and it
> seemed to allow the ChordName to push the BarLine (and SpanBar) to the
> right:
>
> %%%%
> \version "2.22.0"
>
> #(ly:set-option 'debug-skylines #t)
> \layout {
>    \context { \Score
>      \override NonMusicalPaperColumn.stencil =
>        #ly:separation-item::print
>    }
>    \context { \ChordNames
>      \override ChordName.extra-spacing-height =
>        #'(0 . 2)
>    }
> }
>
> \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 }
>    >>
> }
> %%%%
>
> Still sounds like a defect of some sort, as the default behavior should
> probably be handling things.  But perhaps this trick above might be
> useful in whatever score you are working on as a stopgap.


Aaron,

Thank you so much for this fix and for entering an issue!  There is just
one thing that is a problem for me.  Your solution requires version 2.22
and I'm using 2.24 (with the \alternative command so it's not easy to
change).  When I your solution convert to 2.24 (no changes) I get an error
executing the file:

/home/foo/bar/chords-bar-line.ly:7:9 <0>: error: Guile signaled an error
for the expression beginning here

#

ly:separation-item::print

Unbound variable: ly:separation-item::print


--

Knute Snortum
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.