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: Paul Scott
Subject: Re: 2.23..13 hairpins in brackets
Date: Fri, 7 Oct 2022 17:48:26 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.1

Thank you for your answer.  It may take me a while to process yours and the other two answers that I got.

Paul


On 10/6/22 11:19 AM, Xavier Scheuer wrote:
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]