lilypond-devel
[Top][All Lists]
Advanced

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

Re: Doc: simplify example for unpure-pure containers (issue 5623044)


From: address@hidden
Subject: Re: Doc: simplify example for unpure-pure containers (issue 5623044)
Date: Sat, 3 Mar 2012 07:58:04 +0100

On Feb 3, 2012, at 4:38 PM, address@hidden wrote:

> To be honest, there are many things I don't understand.  In fact, I
> reduced the example to understand it better.
> 
> Why is horizontal spacing affected even though the purity affects the
> Y-axis only?

Because horizontal spacing is based on thing's height.  If something is tall, 
it may lead to wider spacing as it cannot be kerned.

> Why do stems fix the spacing?

I don't understand the question :(

> Why doesn't this cause the
> spacing problem:
> 
>  \override NoteHead #'text = \markup { "o" }
>  \override NoteHead #'stencil = #ly:text-interface::print
> 

text-interface::print is declared pure towards the bottom of define-grobs.scm

> But this does cause the problem:
> 
>  \override NoteHead #'text = \markup { "o" }
>  \override NoteHead #'stencil =
>   #(lambda (grob) (ly:text-interface::print grob))
> 
> Cannot it happen a simple change would make Lilypond recognize lambda
> expressions as pure functions, breaking this example?

This is why unpure-pure-containers exist.

Cheers,
MS




reply via email to

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