lilypond-user
[Top][All Lists]
Advanced

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

Re: Horizontal brackets


From: Trevor Bača
Subject: Re: Horizontal brackets
Date: Wed, 25 Jul 2007 09:02:21 -0500

On 7/25/07, Siska Ádám <address@hidden> 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
address@hidden

Attachment: brackets.png
Description: PNG image


reply via email to

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