lilypond-user
[Top][All Lists]
Advanced

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

Re: odd behaviour with \whiteout


From: Trevor Daniels
Subject: Re: odd behaviour with \whiteout
Date: Sun, 29 May 2011 20:14:22 +0100


Hi Kieren

You need to ensure the layer property is set properly to ensure whiteout works reliably. See
http://www.lilypond.org/doc/v2.13/Documentation/notation/visibility-of-objects#index-layers

Trevor

----- Original Message ----- From: "Kieren MacMillan" <address@hidden>
To: "Lilypond-User Mailing List" <address@hidden>
Sent: Sunday, May 29, 2011 7:48 PM
Subject: odd behaviour with \whiteout


[Lilypond 2.13.61-1 on Mac OS X 10.6]

Hello all,

I've been working on an "end of the piece rotated text stamp".
Thanks to a tip (and an example on the LSR), I'm almost there.

However, when I compile (see the following minimal example), I get very weird results: Sometimes both scores are properly whiteout-ed (i.e., you cannot see the staff lines under the text), other times only one or the other is, and yet other times neither is.

What's going on?

Thanks,
Kieren.
_____________

\version "2.13"

\paper { ragged-right = ##f }

stamp = \markup \fontsize #-2 \override #'(baseline-skip . 2) \center-column { Toronto "May 2011" }
stampmarkup = \markup \rotate #90 \whiteout \pad-markup #2 \stamp

\relative c'' {
 \repeat "unfold" 40 { c4 }
 \override Staff.BarLine #'stencil =
   #(lambda (grob)
      (ly:stencil-combine-at-edge
       (ly:bar-line::print grob)
       X RIGHT
       (grob-interpret-markup grob stampmarkup)
       0 0))
 \bar "|."
}

\relative c'' {
 \repeat "unfold" 40 { c4 }
 \override Staff.BarLine #'stencil =
   #(lambda (grob)
      (ly:stencil-combine-at-edge
       (ly:bar-line::print grob)
       X RIGHT
       (grob-interpret-markup grob stampmarkup)
       0 0))
 \bar "|."
}
_______________________________________________
lilypond-user mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user







reply via email to

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