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
}
}
>>
}
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user