lilypond-user
[Top][All Lists]
Advanced

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

Re: Horizontal bar below staff


From: Jakob Schöttl
Subject: Re: Horizontal bar below staff
Date: Fri, 19 Sep 2014 12:24:08 +0200
User-agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.1.1

Ok, I see. But it's no real solution. In this cases, TextSpanner.to-barline is not good:

 * Line should span from first note in a measure
   to the first note in the next measure (inlusive).
 * Line should span only the first note in a measure
   of four notes.

... and it doesn't look nice at the end of a measure.

I experimented with this TextSpanner.bound-details.right.attach-dir property. Not sure what it is ^^ but this looks good for some test cases:

\version "2.19.7"

lineDef = {
  \override TextSpanner.style = #'line

  \override TextSpanner.thickness = #4

  \override TextSpanner.bound-details.left.padding = #-0.5

  \override TextSpanner.bound-details.right.padding = #-1

  \textSpannerDown
}
spanOneNoteLess = \once \override TextSpanner.bound-details.right.attach-dir = #-4

{

  \lineDef

  \spanOneNoteLess

  g\startTextSpan e\stopTextSpan f b' |

  g\startTextSpan g\stopTextSpan f c'\startTextSpan |

  f' g\stopTextSpan a b |

}


<http://lilypond.org/doc/v2.18/Documentation/internals/textspanner>

Can someone explain what this property exacty is for, and why it works also for different note closeness?

Attachment: my_code_rendered.png
Description: PNG image


reply via email to

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