]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/regression/tuplet-bracket-outside-staff-priority.ly
Imported Upstream version 2.16.0
[lilypond.git] / input / regression / tuplet-bracket-outside-staff-priority.ly
diff --git a/input/regression/tuplet-bracket-outside-staff-priority.ly b/input/regression/tuplet-bracket-outside-staff-priority.ly
new file mode 100644 (file)
index 0000000..46204a8
--- /dev/null
@@ -0,0 +1,22 @@
+\version "2.16.0"
+\header {
+
+  texidoc = "Tuplet brackets' outside staff priority can be
+set.  Brackets, by default, carry their numbers with them."
+
+}
+
+\relative c'' {
+  \override TupletBracket #'avoid-scripts = ##f
+  % Plain old tuplet
+  \times 2/3 { a8 r a }
+  % With nothing set, collisions abound both horizontally and
+  % vertically
+  \times 2/3 { a8^\espressivo r a^\espressivo }
+  % Setting the staff priority prevents collisions
+  \override TupletBracket #'outside-staff-priority = #1
+  \times 2/3 { a8^\espressivo r a^\espressivo }
+  % Note that, with the outside-staff-priority set, this bracket
+  % should be at the same vertical level as the first one
+  \times 2/3 { a8 r a }
+}