]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/drawing-boxes-around-grobs.ly
Merge remote-tracking branch 'origin/master' into translation
[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.di.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.18.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 \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   \revert Flag.stencil
33   c4. c4
34   \mark "F"
35   c1
36 }