lilypond-devel
[Top][All Lists]
Advanced

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

Re: Non-quadratic form of whiteout


From: Lukas-Fabian Moser
Subject: Re: Non-quadratic form of whiteout
Date: Thu, 13 Sep 2018 23:56:52 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1

Addendum: Of course, "quadratic" is not the right word. What I mean by it is that the horizontal and vertical protrusions of the whiteout box around the actual rectangular hull of the object are equal. For, e.g., noteheads, this /does /lead to an (almost) quadratic shape.


Am 13.09.2018 um 23:52 schrieb Lukas-Fabian Moser:
Dear developers,

following a feature request on -user I tried my hand at implementing a feature enabling non-quadratic form for box-whiteouts.

As I never participated in developing before (and only rarely get down to coding these days), I'm pretty sure that what I did is substandard. Urs Liska was kind enough to point me to the LilyPond repository on GitHub (and comment on some aspects of my changes), but I unterstand that is not really the right place.

So I just post a patch here in case anyone would be interested in helping me bring my small contribution up to scratch.

Basically it adds to the 'whiteout property - which, at the moment, can either be a boolean or a number indicating the dimension of a quadratic whiteout box - a third possibility, namely a number pair giving x- and y-dimension separately. For instance:

\version "2.21"

\new Staff {
  \override NoteHead.whiteout = #'(5 . 40)   % Pair of X-thickness and Y-thickness
  g'4
  r2
  \override NoteHead.whiteout = #'(40 . 5)
  g'4
}

Best
Lukas




reply via email to

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