lilypond-user
[Top][All Lists]
Advanced

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

Re: hbracket question


From: Aaron Hill
Subject: Re: hbracket question
Date: Thu, 14 Feb 2019 15:35:23 -0800
User-agent: Roundcube Webmail/1.3.8

On 2019-02-14 3:07 pm, Ben wrote:
Hi all,

Is it possible to adjust the length of the shorter vertical line of
\hbracket when you use it as markup?

I've attached a screenshot to show the point of the bracket I'm asking
about. Thanks!

\version "2.19.82"
\relative c' {
  R1*3
  c1^\markup {
    \hbracket {
      \line \pad-around #0.2 {
        My markup
      }
    }
  }
}

No, the amount of protrusion is hard-coded for \hbracket.

However, you can create your own markup command and call bracketify-stencil yourself:

%%%%
\version "2.19.82"
#(define-markup-command (custom-bracket layout props arg) (markup?)
  #:properties ((thickness 0.1) (protrusion 0.25) (padding 0.1))
  (bracketify-stencil (interpret-markup layout props arg)
    Y thickness protrusion padding))
#(define-markup-command (custom-hbracket layout props arg) (markup?)
  #:properties ((thickness 0.1) (protrusion 0.25) (padding 0.1))
  (bracketify-stencil (interpret-markup layout props arg)
    X thickness protrusion padding))

\markup {
  \hbracket Hello
  \custom-hbracket Hello
  \override #'(thickness . 0.2)
  \override #'(protrusion . 0.5)
  \override #'(padding . 0.3)
  \custom-hbracket Hello

  \bracket Hello
  \custom-bracket Hello
  \override #'(thickness . 0.2)
  \override #'(protrusion . 0.5)
  \override #'(padding . 0.3)
  \custom-bracket Hello
}
%%%%

-- Aaron Hill



reply via email to

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