[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Notehead and stem drawing order (z-index)
From: |
David Kastrup |
Subject: |
Re: Notehead and stem drawing order (z-index) |
Date: |
Fri, 03 Feb 2023 15:22:18 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
József Pap <0kjosef@gmail.com> writes:
> Hi all,
>
> Can I ensure that the stems are always drawn behind the noteheads? Their
> order along the imaginary z-axis may not matter if they're both black, but
> if one uses colored noteheads, stems drawn above noteheads are ugly. The
> default behavior seems pretty random with no discernible patterns: stems
> are sometimes drawn behind and sometimes in front of noteheads. Minimal
> example:
>
> \relative c' {
> \override NoteHead.color = "red"
> c4 c c c d d d d e e e e f f f f g g g g a a a a b b b b c c c c
> }
>
> With version 2.24 on Linux the two middle E's and F's, the last two G's,
> the last three A's and the first B have their stems in front of the
> corresponding notehead, the rest are fine. I'd like to tell or trick
> lilypond into always drawing noteheads after (i.e. above) stems. Any ideas?
Try
\override NoteHead.layer = 2
--
David Kastrup