lilypond-user-fr
[Top][All Lists]
Advanced

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

Re: rounded-box stencil


From: Jean Abou Samra
Subject: Re: rounded-box stencil
Date: Thu, 16 Feb 2023 13:31:30 +0100
User-agent: Evolution 3.46.3 (3.46.3-1.fc37)

Le jeudi 16 février 2023 à 11:47 +0100, Simon Martineau a écrit :

Bonjour à tous,
Je cherche à faire exactement la ligne ci-dessous, mais avec une “rounded-box” (comme le markup \rounded-box)
\override Score.SectionLabel.stencil = #(make-stencil-boxer 0.1 0.6 ly:text-interface::print)
Est-ce que quelqu’un a la solution ?
Merci beaucoup !
Simon

Bonjour,

Quelque chose comme ceci devrait le faire :

\version "2.24.0"

#(define (make-stencil-rounded-boxer thickness padding radius)
   (grob-transformer
    'stencil
    (lambda (grob original)
      (rounded-box-stencil original thickness padding radius))))

\layout {
  \context {
    \Score
    \override SectionLabel.stencil = #(make-stencil-rounded-boxer 0.1 0.5 2.0)
  }
}

{
  \sectionLabel "Section"
  c'
}

Cordialement,

Jean

Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

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