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


_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to