|
From: | Robin Bannister |
Subject: | Re: Preventing Custom Stencil Collisions |
Date: | Thu, 10 Mar 2011 19:48:23 +0100 |
Is there a way to define how big a stencil is
In your case, using ly:make-stencil, the parameters xext and yext are for saying how big, and you have done this OK. The problem is that these values don't get to affect the layout, because the overridden rest is still showing its original extents. These are still being set up by functions ly:rest::width and ly:rest::height. See http://lilypond.org/doc/v2.12/Documentation/user/lilypond-internals/Rest To change this, you can set the these extents directly, e.g.
\once \override Staff.Rest #'X-extent = #(cons -3 10)The attached replaceRest.ly does this in a less unwieldy way. Temporarily changing the call to \ReplaceRest lets you *see* the size. Cheers, Robin
replaceRest.ly
Description: Text Data
[Prev in Thread] | Current Thread | [Next in Thread] |