]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/controlling-tuplet-bracket-visibility.ly
Docs: reorganize documentation directory structure
[lilypond.git] / Documentation / snippets / controlling-tuplet-bracket-visibility.ly
1 %% Do not edit this file; it is auto-generated from LSR http://lsr.dsi.unimi.it
2 %% This file is in the public domain.
3 \version "2.13.1"
4
5 \header {
6   lsrtags = "rhythms, tweaks-and-overrides"
7
8   texidoc = "
9 The default behavior of tuplet-bracket visibility is to print a bracket
10 unless there is a beam of the same length as the tuplet. To control the
11 visibility of tuplet brackets, set the property
12 @code{'bracket-visibility} to either @code{#t} (always print a
13 bracket), @code{#f} (never print a bracket) or @code{#'if-no-beam}
14 (only print a bracket if there is no beam). 
15
16 "
17   doctitle = "Controlling tuplet bracket visibility"
18 } % begin verbatim
19
20 music = \relative c'' {
21   \times 2/3 { c16[ d e } f8]
22   \times 2/3 { c8 d e }
23   \times 2/3 { c4 d e }
24 }
25
26 \new Voice {
27   \relative c' {
28     << \music s4^"default" >>
29     \override TupletBracket #'bracket-visibility = #'if-no-beam
30     << \music s4^"'if-no-beam" >>
31     \override TupletBracket #'bracket-visibility = ##t
32     << \music s4^"#t" >>
33     \override TupletBracket #'bracket-visibility = ##f
34     << \music s4^"#f" >>
35   }
36
37
38