Re: Chord names collide with span bar

Aaron Hill via bug-lilypond <[email protected]>
Newsgroups gmane.comp.gnu.lilypond.bugs
Message-ID <[email protected]>
On 2024-03-20 8:14 am, Knute Snortum wrote:
> Ah, I see this is just for debugging.  Thank you.  Your solution helps 
> when
> put into my bigger project.  Some -- but not all -- of the bars are now
> wide enough.


Oh, I think I found another option:

%%%%
\version "2.25.13"

#(ly:set-option 'debug-skylines #t)
\layout {
   \context { \Score
     \override NonMusicalPaperColumn.show-horizontal-skylines = ##t
   }
   \context { \ChordNames
     \consists "Bar_engraver"
     \override BarLine.bar-extent = #'(0 . 1)
     \override BarLine.transparent = ##t
   }
}

\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 }
   >>
}
%%%%

I remembered that you can add the Bar_engraver to ChordNames.  Making 
them transparent so they do not visually interfere with the SpanBar, but 
they still take up space.


-- Aaron Hill
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.