lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: DurationLine avoiding RehearsalMarks


From: Mark Knoop
Subject: Re: DurationLine avoiding RehearsalMarks
Date: Mon, 11 Apr 2022 08:53:18 +0100
User-agent: mu4e 1.7.12; emacs 29.0.50


At 19:12 on 10 Apr 2022, Mark Knoop wrote:
I'm trying to debug some issues I'm having with the new DurationLine grob. 
Previously I've been using a TextSpanner to achieve similar results.

One issue is that DurationLine adds space at the left side of a broken spanner, 
seemingly to avoid overlapping with a RehearsalMark. I'd like it to start 
underneath the RehearsalMark, as the TextSpanner does.

The problem is illustrated in this example.

\version "2.23.6"
\header { tagline = ##f }
\score {
  <<
    \new Dynamics {
      \repeat unfold 31 { s1 \mark \default }
    }
    \new Voice \with {
      \consists Duration_line_engraver
    } {
      c'1:32\-^\markup "using DurationLine" s1*18
      s1
      \override TextSpanner.style = #'line
      \override TextSpanner.thickness = #4
      \override TextSpanner.outside-staff-priority = ##f
      \override TextSpanner.Y-offset = #0
      r4\startTextSpan^\markup "using TextSpanner" 4 4 4
      R1*16
      <>\stopTextSpan
      R1
    }
  >>
}

I'm able to remove the extra space with

  \override Score.RehearsalMark.non-musical = ##f

but this has some undesirable consequences for RehearsalMark positioning. Is 
there a way to set this only for RehearsalMarks at the start of a line?

--
Mark Knoop



reply via email to

[Prev in Thread] Current Thread [Next in Thread]