]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/new/analysis-brackets-with-labels.ly
New upstream version 2.19.65
[lilypond.git] / Documentation / snippets / new / analysis-brackets-with-labels.ly
1 \version "2.19.55"
2
3 \header {
4   lsrtags = "editorial-annotations, tweaks-and-overrides"
5
6   texidoc = "
7 Text may be added to analysis brackets through the @code{text} property
8 of the @code{HorizontalBracketText} grob.  Adding different texts to
9 brackets beginning at the same time requires the @code{\tweak} command.
10 Bracket text will be parenthesized after a line break.
11
12 "
13   doctitle = "Analysis brackets with labels"
14 }
15
16 \layout {
17   \context {
18     \Voice
19     \consists "Horizontal_bracket_engraver"
20     \override HorizontalBracket.direction = #UP
21   }
22 }
23
24 {
25   \once\override HorizontalBracketText.text = "a"
26   c''\startGroup d''\stopGroup
27   \once\override HorizontalBracketText.text = "a'"
28   e''\startGroup d''\stopGroup
29   c''
30   -\tweak HorizontalBracketText.text \markup \bold \huge "b" \startGroup
31   -\tweak HorizontalBracketText.text "a" \startGroup
32   d''\stopGroup
33   e''-\tweak HorizontalBracketText.text "a'" \startGroup
34   d''\stopGroup\stopGroup
35   c''-\tweak HorizontalBracketText.text foo \startGroup d'' e'' f''
36   \break
37   g'' a'' b'' c'''\stopGroup
38 }