lilypond-user
[Top][All Lists]
Advanced

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

Re: relative offset of systems [WAS: Center-align a score]


From: David Nalesnik
Subject: Re: relative offset of systems [WAS: Center-align a score]
Date: Thu, 27 Apr 2017 12:27:36 -0500

On Thu, Apr 27, 2017 at 12:22 PM, David Nalesnik
<address@hidden> wrote:

>
> I'll just quote the relevant changes with some context.
>
> Within the function make-page-stencil:
>
> [...]
>
>  (add-to-page (lambda (stencil x y extra-y)

Oh, "nota bene" the above line too!

>                     (set! page-stencil
>                           (ly:stencil-add page-stencil
>                             (ly:stencil-translate stencil
>                               (cons
>                                (+
>                                 system-xoffset x)
>                                (-
>                                 0 y extra-y (prop 'top-margin))) ; NB
>
>                               )))))
>      (add-system
>       (lambda (system)
>         (let* ((stencil (paper-system-stencil system))
>                (y (ly:prob-property system 'Y-offset 0))
>                (extra-y (ly:prob-property system 'extra-Y-offset 0)) ; NB
>                (is-title (paper-system-title?
>                           system)))
>           (add-to-page stencil
>             (ly:prob-property system 'X-offset 0.0)
>             y
>             extra-y) ; NB
>
> [...]
>


-DN:



reply via email to

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