]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/drawing-boxes-around-grobs.ly
Docs: run convert-ly for 2.14.0.
[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.14.0"
8
9 \header {
10   lsrtags = "editorial-annotations, 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 \relative c'' {
21   \override TextScript #'stencil =
22     #(make-stencil-boxer 0.1 0.3 ly:text-interface::print)
23   c'4^"foo"
24
25   \override Stem #'stencil =
26     #(make-stencil-boxer 0.05 0.25 ly:stem::print)
27   \override Score.RehearsalMark  #'stencil =
28     #(make-stencil-boxer 0.15 0.3 ly:text-interface::print)
29   b8
30
31   \revert Stem #'stencil
32   c4. c4
33   \mark "F"
34   c1
35 }
36
37
38