lilypond-user
[Top][All Lists]
Advanced

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

Re: Horizontal bar below staff


From: Nick Payne
Subject: Re: Horizontal bar below staff
Date: Sun, 14 Sep 2014 17:41:27 +1000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.1

On 14/09/14 17:10, Marc Hohl wrote:
Am 13.09.2014 um 22:14 schrieb Jakob Schöttl:
Hello,

for a tabulature for diatonic harmonica I need a strong horizontal bar
or line below the notes.  This is for indicating bellow "push/blow" (in
contrast to "pull/draw").  Please see the attached image for how it
should look.

The bar should can

  - span multiple notes and even measures
  - but also only mark a single note.

I think that should be possible with text spanners,

\score {
  <<
    \new Staff  {
      \new Voice {
         \override TextSpanner.style = #'line
         \override TextSpanner.thickness = #3
         \textSpannerDown
         g\startTextSpan e f g\stopTextSpan e f

       }
    }
  >>
}

You'll have to fiddle with the right edge of the spanner, and IIUC, you cannot start and stop a TextSpanner on the same note ...

Use bound-details.left.padding and bound-details.right.padding with negative values to have the spanner line approximate your original sample. eg:

\score {

<<

\new Staff {

\new Voice {

\override TextSpanner.style = #'line

\override TextSpanner.thickness = #5

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

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

\textSpannerDown

g\startTextSpan e f g\stopTextSpan e f


}

}

>>

}



reply via email to

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