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