]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/controlling-tuplet-bracket-visibility.ly
Add '-dcrop' option to ps and svg backends
[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.di.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.18.0"
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 music = \relative c'' {
25   \tuplet 3/2 { c16[ d e } f8]
26   \tuplet 3/2 { c8 d e }
27   \tuplet 3/2 { c4 d e }
28 }
29
30 \new Voice {
31   \relative c' {
32     << \music s4^"default" >>
33     \override TupletBracket.bracket-visibility = #'if-no-beam
34     << \music s4^"'if-no-beam" >>
35     \override TupletBracket.bracket-visibility = ##t
36     << \music s4^"#t" >>
37     \override TupletBracket.bracket-visibility = ##f
38     << \music s4^"#f" >>
39     %% v2.18 :
40     \omit TupletBracket
41     << \music s4^"omit" >>
42   }
43 }