]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/controlling-tuplet-bracket-visibility.ly
Merge master into nested-bookparts
[lilypond.git] / input / lsr / 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.11.62"
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 @code{TupletBracket
12 #'bracket-visibility} to either @code{##t} (always print a bracket),
13 @code{##f} (never print a bracket) or @code{#'if-no-beam} (only print a
14 bracket if there is no beam). 
15
16 "
17   doctitle = "Controlling tuplet bracket visibility"
18 } % begin verbatim
19 mus = \relative c'' {
20   \times 2/3 { c16[ d e } f8]
21   \times 2/3 { c8 d e }
22   \times 2/3 { c4 d e }
23 }
24
25 \new Voice \relative c'{
26   << \mus s4^"default" >>
27   \override TupletBracket #'bracket-visibility = #'if-no-beam
28   << \mus s4^"'if-no-beam" >>
29   \override TupletBracket #'bracket-visibility = ##t
30   << \mus s4^"#t" >>
31   \override TupletBracket #'bracket-visibility = ##f
32   << \mus s4^"#f" >>
33
34