]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/drawing-boxes-around-grobs.ly
38613fa15ee2ce2777b34ae90b38a4df791ba484
[lilypond.git] / Documentation / snippets / drawing-boxes-around-grobs.ly
1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.dsi.unimi.it
3 %% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
4 %% and then run scripts/auxiliar/makelsr.py
5 %%
6 %% This file is in the public domain.
7 \version "2.17.0"
8
9 \header {
10   lsrtags = "editorial-annotations, scheme-language, tweaks-and-overrides"
11
12   texidoc = "
13 The @code{print-function} can be overridden to draw a box around an
14 arbitrary grob.
15
16 "
17   doctitle = "Drawing boxes around grobs"
18 } % begin verbatim
19
20
21 \relative c'' {
22   \override TextScript #'stencil =
23     #(make-stencil-boxer 0.1 0.3 ly:text-interface::print)
24   c'4^"foo"
25
26   \override Stem #'stencil =
27     #(make-stencil-boxer 0.05 0.25 ly:stem::print)
28   \override Score.RehearsalMark  #'stencil =
29     #(make-stencil-boxer 0.15 0.3 ly:text-interface::print)
30   b8
31
32   \revert Stem #'stencil
33
34   \revert Flag #'stencil
35   c4. c4
36   \mark "F"
37   c1
38 }