[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
.../v2.19/Documentation/snippets/tweaks-and-overrides : Drawing boxes ar
From: |
Pierre Perol-Schneider |
Subject: |
.../v2.19/Documentation/snippets/tweaks-and-overrides : Drawing boxes around grobs |
Date: |
Sun, 30 Nov 2014 12:56:17 +0100 |
>I'm not top posting
Hi Squad,
See :
http://lilypond.org/doc/v2.19/Documentation/snippets/tweaks-and-overrides#tweaks-and-overrides-drawing-boxes-around-grobs
I think this snippet should be re-written since \box function exists plus
\revert Flag.stencil looks like a typo here (btw, already there in the
v2.14 litterature).
So how about :
%% \
\relative c'' {
\once \override Staff.TimeSignature.stencil =
#(make-stencil-boxer 0.2 0.5 ly:time-signature::print)
\time 2/2
\once \override Stem.stencil =
#(make-stencil-boxer 0.05 0.25 ly:stem::print)
b
\once \override Flag.stencil =
#(make-stencil-boxer 0.15 0.3 ly:flag::print)
b8
\once \override NoteHead.stem-attachment = #'(.63 . 0)
\once \override NoteHead.stencil =
#(make-stencil-boxer 0.1 0.25 ly:note-head::print)
c4
}
Cheers,
Pierre
- .../v2.19/Documentation/snippets/tweaks-and-overrides : Drawing boxes around grobs,
Pierre Perol-Schneider <=