|
From: | Jean Abou Samra |
Subject: | Re: Horizontal bracket with dashed edges - possible? |
Date: | Wed, 17 May 2023 13:59:16 +0200 |
User-agent: | Evolution 3.48.1 (3.48.1-1.fc38) |
Le mardi 16 mai 2023 à 16:24 +0100, Paul Hodges a écrit :
I have a horizontal bracket with lengthened edges. I want the edges to be dashed, but I can't see a way to do this without the horizontal part being dashed as well. Is there a simple solution, or do I just have to draw an extra solid line over the part I don't want dashed?
I think the easiest is to remove the automatically drawn edges and add yours, e.g.,
\version "2.24.1"
\layout {
\context {
\Score
\override HorizontalBracket.edge-height = #'(0 . 0)
\override HorizontalBracket.stencil =
#(grob-transformer 'stencil (lambda (grob original) (grob-interpret-markup grob
#{
\markup
\put-adjacent #X #LEFT
\put-adjacent #X #RIGHT
\stencil #original
\draw-dashed-line #'(0.5 . 1)
\draw-dashed-line #'(-0.5 . 1)
#})))
}
}
\new Staff \with {
\consists Horizontal_bracket_engraver
}
{
c'\startGroup c'\stopGroup
}
signature.asc
Description: This is a digitally signed message part
[Prev in Thread] | Current Thread | [Next in Thread] |