[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Lilypond-auto] Issue 3669 in lilypond: vertical spacing messed up w
From: |
lilypond |
Subject: |
Re: [Lilypond-auto] Issue 3669 in lilypond: vertical spacing messed up when trying to access the grob stencil for a cross-staff glissando |
Date: |
Fri, 22 Nov 2013 13:36:09 +0000 |
Comment #2 on issue 3669 by address@hidden: vertical spacing messed
up when trying to access the grob stencil for a cross-staff glissando
http://code.google.com/p/lilypond/issues/detail?id=3669
"(Looking at the email thread, the desire was to take LilyPond's stencil
and modify it at the PostScript level. In that case, you do not want to do
the action immediately after-line-breaking. A Scheme programmer can
probably override the 'stencil command itself with a wrapper function.
Then LilyPond will call the wrapper when it is ready to draw the Glissando,
you can first call the default ly:line-spanner::print, modify what it
returns, and return the modified stencil to be printed.)"
Yes, this works:
\version "2.17.95"
#(define test
(lambda (grob)
(let ((stil (ly:line-spanner::print grob)))
(ly:stencil-scale stil 1 0.8))))
\score {
\new PianoStaff <<
\new Staff = "right" {
\once \override Glissando.stencil = #test
c''2. \glissando
\change Staff = "left"
c,4 |
}
\new Staff = "left" {\clef bass s1}
>>
}
\markup ooops
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings