]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/horizontal-bracket-texted.ly
Issue 5064 Let analysis brackets support text
[lilypond.git] / input / regression / horizontal-bracket-texted.ly
1 \version "2.19.55"
2
3 \header {
4   texidoc = "Labels may be added to analysis brackets through the
5 @code{text} property of the @code{HorizontalBracketText} object.  Use of
6 the @code{\tweak} command is necessary for assigning text uniquely to
7 brackets beginning at the same moment.  Text assignments reflect the
8 usual nesting order of brackets.
9 "
10 }
11
12 \layout {
13   \context {
14     \Voice
15     \consists "Horizontal_bracket_engraver"
16     \override HorizontalBracket.direction = #UP
17   }
18 }
19
20 \relative c'' {
21   \time 3/4
22   \key f \major
23   c4
24   -\tweak text "contrasting period" \startGroup
25   -\tweak text "a" \startGroup
26   a8( bes c f)
27   f4( e d)
28   c d8( c bes c)
29   \appoggiatura bes4 a2 g4\stopGroup
30   \once\override HorizontalBracketText.text = "b"
31   f'8 \startGroup
32   r a, r d r
33   c4( e, f)
34   g8( bes) a4 g8( f)
35   f2 \stopGroup \stopGroup r4
36 }