[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Rest-dot spacing
From: |
Dan Eble |
Subject: |
Re: Rest-dot spacing |
Date: |
Sun, 4 Jan 2015 14:38:28 -0500 |
Aha! Overriding Rest.stencil and changing the style there was insufficient
because ly::rest::width and other callbacks *bypass* the stencil property, so
my change of style had not yet been applied when the X-extent was evaluated.
Lilypond used the X-extent of the default quarter rest instead of the classical
quarter rest.
So this is a bug, right? Rest.X-extent etc. should yield the dimensions of
whatever Rest.stencil will return.
—
Dan
***Input***
\version "2.19.15"
classicalQuarter = #(lambda (grob)
(if (= (ly:grob-property grob 'duration-log 999) 2)
(ly:grob-set-property! grob 'style 'classical))
(ly:rest::print grob))
<<
\new Staff \with { \override Rest #'stencil = \classicalQuarter } { r4. }
>>
***Console output with some ad-hoc warnings I added to
Rest::brew_internal_stencil***
Interpreting music...
/home/dan/rest-dots-test.ly:9:71: warning: {durlog=2,style=default,ledgered=0}
-> X-extent=[-0.000000,0.949996]
\new Staff \with { \override Rest #'stencil = \classicalQuarter } {
r4. }
Preprocessing graphical objects...
/home/dan/rest-dots-test.ly:9:71: warning: {durlog=2,style=default,ledgered=0}
-> X-extent=[-0.000000,0.949996]
\new Staff \with { \override Rest #'stencil = \classicalQuarter } {
r4. }
Finding the ideal number of pages...
Fitting music on 1 page...
Drawing systems...
/home/dan/rest-dots-test.ly:9:71: warning:
{durlog=2,style=classical,ledgered=1} -> X-extent=[-0.000000,1.000000]
\new Staff \with { \override Rest #'stencil = \classicalQuarter } {
r4. }
/home/dan/rest-dots-test.ly:9:71: warning:
{durlog=2,style=classical,ledgered=1} -> X-extent=[-0.000000,1.000000]
\new Staff \with { \override Rest #'stencil = \classicalQuarter } {
r4. }
Layout output to `rest-dots-test.ps'...
- Re: Rest-dot spacing,
Dan Eble <=