[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Whiteout staff lines behind beams
From: |
Jean Abou Samra |
Subject: |
Re: Whiteout staff lines behind beams |
Date: |
Wed, 21 Dec 2022 11:09:54 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 |
Le 21/12/2022 à 01:26, Abraham Lee a écrit :
Is there a way to turn the stencil into a composite of the original
with a big block of whiteout that follows the entire group's outer
skyline so it hides the staff lines? Would be a nice feature, IMO. I
know the stems can be "frenched", but would be cool if the staff lines
could be instead.
This has become somewhat easier to do in 2.24 with the new skyline
functions.
\version "2.24"
\layout {
#(use-modules (ice-9 match)
(srfi srfi-1))
\context {
\Score
\override Beam.stencil =
#(grob-transformer
'stencil
(lambda (grob orig)
(define (sanitize lst)
(filter (match-lambda ((x . y) (and (finite? x) (finite? y))))
lst))
(match-let* (((down . up) (ly:skylines-for-stencil orig X))
(down-points (sanitize (ly:skyline->points down X)))
(up-points (sanitize (ly:skyline->points up X))))
(ly:stencil-add
(stencil-with-color
(ly:round-polygon
(append-reverse down-points up-points)
0.0)
"white")
orig))))
\override Stem.layer = 10
}
}
\language "english"
\relative {
\clef bass
\time 4/4
f8 g16 a b c df e f e df c b a g f |
e8 f16 g a b c df e df c b a g f e |
}
Best,
Jean
OpenPGP_signature
Description: OpenPGP digital signature
- Re: Whiteout staff lines behind beams, (continued)
- Re: Whiteout staff lines behind beams, Kieren MacMillan, 2022/12/21
- Re: Whiteout staff lines behind beams, Jean Abou Samra, 2022/12/21
- Re: Whiteout staff lines behind beams, Kieren MacMillan, 2022/12/21
- Re: Whiteout staff lines behind beams, Jean Abou Samra, 2022/12/21
- Re: Whiteout staff lines behind beams, Abraham Lee, 2022/12/21
- Re: Whiteout staff lines behind beams, Kieren MacMillan, 2022/12/21
- Re: Whiteout staff lines behind beams, Abraham Lee, 2022/12/21
- RE: Ross’s rules, Eef Weenink, 2022/12/22
- Re: Ross’s rules, Pierre Perol-Schneider, 2022/12/22
- Re: Ross’s rules, Eef Weenink, 2022/12/22
Re: Whiteout staff lines behind beams,
Jean Abou Samra <=