]> git.donarmstrong.com Git - lilypond.git/blob - input/test/boxed-molecule.ly
* buildscripts/mf-to-table.py (base): break table every three
[lilypond.git] / input / test / boxed-molecule.ly
1 \version "1.7.18"
2 % FIXME: check that this file actually works.
3 \header {
4 texidoc = "@cindex Boxed Molecule
5 You can override the molecule callback to draw a box around
6 arbitrary grobs.
7
8 TODO:  circled molecules.
9 " }
10
11
12  \score { \notes \relative c''  {
13
14  \property Voice.TextScript \override #'molecule-callback =
15    #(make-molecule-boxer 0.1 0.3 0.2 brew-new-markup-molecule)
16
17    c'4^"foo"
18
19 \property Voice.Stem \override #'molecule-callback =
20    #(make-molecule-boxer 0.05 0.25 0.25 Stem::brew_molecule)
21
22 \property Score.RehearsalMark \override #'molecule-callback =
23    #(make-molecule-boxer 0.15 0.3 0.3 brew-new-markup-molecule)
24       c8
25 \property Voice.Stem \revert #'molecule-callback
26
27       c4. c4 \mark "F" c1 
28    }
29 \paper{raggedright = ##t}
30 }
31