lilypond-user
[Top][All Lists]
Advanced

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

Re: 2.23..13 hairpins in brackets


From: Xavier Scheuer
Subject: Re: 2.23..13 hairpins in brackets
Date: Thu, 6 Oct 2022 20:19:28 +0200

On Thu, 6 Oct 2022 at 19:59, Paul Scott <waterhorse@ultrasw.com> wrote:
>
> In 2.23.13 Notation 1.3.1 shows how to mix normal text with dynamic text.
>
> Is there a way to mix normal text, brackets specifically, with
> hairpins?  This is used in the U.S. Marine Band versions of the Sousa
> marches.

Hello,

Not sure if it corresponds to your request, but it is possible to get hairpins between brackets by changing the stencil of Parentheses.

#(define-public (bracket-stencils grob)
  (let ((lp (grob-interpret-markup grob (markup #:fontsize 3.5 #:translate (cons -0.3 -0.5) "[")))
        (rp (grob-interpret-markup grob (markup #:fontsize 3.5 #:translate (cons 0 -0.5) "]"))))
    (list lp rp)))

{
  \override Parentheses.stencils = #bracket-stencils
  c'1-\parenthesize \< |
  c'1\!
}

Cheers,
Xavier

-- 
Xavier Scheuer <x.scheuer@gmail.com>


reply via email to

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