]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/tuplet-bracket-visibility.ly
Merge remote branch 'origin' into release/unstable
[lilypond.git] / input / regression / tuplet-bracket-visibility.ly
1 \version "2.14.0"
2
3 \header {
4   texidoc = "The default behavior of tuplet-bracket visibility is to print a bracket
5 unless there is a beam of the same length as the tuplet.  Overriding
6 @code{'bracket-visibility} changes the bracket visibility as follows:
7
8 @itemize
9
10 @item
11 @code{#t} (always print a bracket)
12
13 @item
14 @code{#f} (never print a bracket)
15
16 @item
17 @code{'if-no-beam} (only print a bracket if there is no beam)
18
19 @end itemize
20 "
21 }
22
23 music = \relative c'' {
24   \times 2/3 { c16[ d e } f8]
25   \times 2/3 { c8 d e }
26   \times 2/3 { c4 d e }
27 }
28
29 \new Voice {
30   \relative c' {
31     << \music s4^"default" >>
32     \override TupletBracket #'bracket-visibility = #'if-no-beam
33     << \music s4^"'if-no-beam" >>
34     \override TupletBracket #'bracket-visibility = ##t
35     << \music s4^"#t" >>
36     \override TupletBracket #'bracket-visibility = ##f
37     << \music s4^"#f" >>
38   }
39 }