On 7/25/07, Siska Ádám <[EMAIL PROTECTED]> wrote:
Hello Everyone,Since yesterday I also found that there are several kinds of horizontal brackets: volta brackets, mensural ligature brackets, analysis brackets, the \hbracket markup command (well, that puts a second bracket, but in reversed direction), measure group brackets, piano pedal brackets, tuplet brackets... But I couldn't force any of these things to put a simple horizontal (better would be a double one, but I'd be glad if I could get even a single) bracket above some of my notes. I also had a look to the LSR, but there was also nothing related to this. I also tried to put a textspanner with solid line, but I was unable to display the small vertical lines at the beginning and the end of the line (which is the difference between a simple line and a bracket). Can it happen that there is no routine in Lilypond that could display a common horizontal bracket?... Thank you, Adam
Hi Adam, The new settings available on the TextSpanner grob are very good for this sort of thing. But the settings can be tricky to experiment with. Here are two examples to get you started. %%% SPANNERS %%% \version "2.11.26" \new Staff { \override TextSpanner #'dash-fraction = ##f \override TextSpanner #'bound-details #'right #'padding = #0 \override TextSpanner #'bound-details #'left #'stencil-align-dir-y = #center \override TextSpanner #'bound-details #'left #'padding = #0.75 \override TextSpanner #'bound-details #'right #'attach-dir = #right \override TextSpanner #'bound-details #'left #'text = \markup { \bold 7 } \override TextSpanner #'bound-details #'right #'text = \markup { \draw-line #'(0 . -1) } c'4 \startTextSpan c'4 \stopTextSpan \override TextSpanner #'bound-details #'left #'stencil-align-dir-y = #up \override TextSpanner #'bound-details #'left #'padding = #0 \override TextSpanner #'bound-details #'right #'padding = #0 \override TextSpanner #'bound-details #'left #'attach-dir = #right \override TextSpanner #'bound-details #'left #'text = \markup { \draw-line #'(0 . -1) } c'4 \startTextSpan c'4 \stopTextSpan } %%% SPANNERS %%% Hope this helps. -- Trevor Bača [EMAIL PROTECTED]
<<attachment: brackets.png>>
_______________________________________________ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user