Thanks William, that's very useful.

and thanks to everyone who has helped out tonight.  The lilypond community is 
truly a great advert for our species.

-- Graham

> On 17 Jan 2023, at 21:27, William Rehwinkel <will...@williamrehwinkel.net> 
> wrote:
> 
> Dear Graham,
> 
> This can actually be solved with layers. You can configure which glyphs will 
> be drawn after each other, so that the whiteout does not infringe on them. 
> You could do a little bit like the following:
> 
> -William
> 
> \version "2.24.0"
> 
> \new PianoStaff <<
>  \new Staff \with {
>  } { s1 s1 }
>  \new Staff \with {
>  } { r4 r4 r4 r8 c''8^[ c''8] c8^[ c'] }
> >>
> 
> \layout {
>  \context {
>    \Staff
>    \omit BarLine
>    \override Beam.whiteout-style = #'outline
>    \override Beam.whiteout = #2
>    \override Beam.layer = #-1
>    %\override Stem.layer = #2
>  }
>  \context {
>    \Score
>    \override SpanBar.layer = #-2
>  }
> }
> 
> 
>> On 1/17/23 16:08, Graham King wrote:
>>> On 2023-01-17 20:52, Graham King wrote:
>>> On 2023-01-17 20:06, Lukas-Fabian Moser wrote:
>>>> Hi,
>>>> 
>>>>>>> As a secondary question: Is there a straightforward way to avoid 
>>>>>>> collisions of mensurstriche with beams?
>>>>>> 
>>>>>> Do you have an example?
>>>>> Here's an extract from the de Wert, that illustrates the "problem" 
>>>>> (lilypond 2.25.0):
>>>> 
>>>> The way I see it, this would be a case for just accepting the crossing
>>>> and maybe making it look nice using whiteout.
>>>> 
>>>> Lukas
>>> 
>>> Thanks Lukas,
>>> 
>>>   \once \override Beam.whiteout-style = #'outline
>>>   \once \override Beam.whiteout = #2
>>> 
>>> works for me.  And I'm celebrating my first successful foray into the
>>> Internals Reference :)
>> Ah well, I got happy too quickly.  This override causes the stems to 
>> separate from the beams.
>> And it interferes with some staff-lines.
>> Never mind; I'll live with the collisions.
> 
> -- 
> + ---------------------------------------------- +
> |    William Rehwinkel - Oberlin College and     |
> |                           Conservatory '24     |
> |          will...@williamrehwinkel.net          |
> | PGP key:                                       |
> | https://williamrehwinkel.net/static/pubkey.txt |
> + ---------------------------------------------- +


Reply via email to