lilypond-devel
[Top][All Lists]
Advanced

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

Non-quadratic form of whiteout


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

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

Attachment: 0001-Non-quadratic-whiteouts.patch
Description: Text Data


reply via email to

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