lilypond-user
[Top][All Lists]
Advanced

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

Re: empty-stencil versus point-stencil (was "Re: Text *in* score - Stopp


From: David Kastrup
Subject: Re: empty-stencil versus point-stencil (was "Re: Text *in* score - Stopped staves - Horizontal spacing")
Date: Sat, 11 Mar 2017 15:59:28 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

Kieren MacMillan <address@hidden> writes:

> Hi David,
>
>>>> \markup \with-dimensions #empty-interval #empty-interval
>>> 
>>> I prefer
>>> \markup \with-dimensions-from \null
>> 
>> Different thing.  \null corresponds to a point-stencil (single-point
>> intervals), the first one corresponds to an empty-stencil (empty intervals).
>
> Thanks for the clarification!
>
>
> I have three questions on this topic:
>
>
> 1. Will ‘point-stencil’ still be unseen? Or does it literally output 1
> point [which could be seen at a high enough magnification]?

It does not output any ink.

> 2. [Sometimes…? All the time…?] When I use
>
>     \mark \markup \with-dimensions #empty-interval #empty-interval    [**]
>
> the log gives
>
>     warning: RehearsalMark has empty extent and non-empty stencil
>
> But output is as expected, and no other use of [**] seems to throw the
> same error. Is there a better way to make my RehearsalMark markup not
> interact with the spacing engine?

I'd use point-stencil, but that engages padding and similar if
necessary.  The concept of having ink but no influence is shady to
LilyPond.

> 3. I’ve tried to simplify
>
>     \with-dimensions #empty-interval #empty-interval
>
> by making it a tweak like
>
>     nodim = -\tweak \with-dimensions #empty-interval #empty-interval \etc
>
> But every combination of that which I’ve tried hasn’t worked. What is the 
> correct incantation, so that I can later say
>
>    c’-\nodim \markup “foo”
>
> or
>
>    c’-\markup \nodim “foo"
>
> ?

The latter can be done with
nodim-markup = \markup \with-dimensions ... \etc

The former is too mixed.  You could try something like

\nodim = -\tweak Y-extent #empty-interval \tweak X-extent =
         #empty-interval \etc

to return it to the music realm only instead of some music/markup
mixture.  But no guarantees it does something sensible.

-- 
David Kastrup



reply via email to

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