summaryrefslogtreecommitdiff
path: root/input/regression/stem-cross-staff-articulation.ly
diff options
context:
space:
mode:
authorMike Solomon <mike@apollinemike.com>2011-12-19 11:00:51 +0100
committerMike Solomon <mike@apollinemike.com>2011-12-19 11:00:51 +0100
commit7ce94ab2bcd9d12b6f7e40020db4c51185fe99db (patch)
tree7f8ffef843019dc89b149d2928543d040ad1c74a /input/regression/stem-cross-staff-articulation.ly
parente40e4d176e99a3ca92f9a93611be094cdb87e613 (diff)
Prevents cross-staff Stems from colliding with articulations.
Does so by creating a StemStub grob for each Stem whose only effect on spacing comes from its extra-spacing-height, which blocks articulations from bumping into the Stems. Beamed stems cannot be considered in extra-spacing-height because they trigger a circular dependency in the calculation of direction.
Diffstat (limited to 'input/regression/stem-cross-staff-articulation.ly')
-rw-r--r--input/regression/stem-cross-staff-articulation.ly33
1 files changed, 33 insertions, 0 deletions
diff --git a/input/regression/stem-cross-staff-articulation.ly b/input/regression/stem-cross-staff-articulation.ly
new file mode 100644
index 0000000000..1d8ca550da
--- /dev/null
+++ b/input/regression/stem-cross-staff-articulation.ly
@@ -0,0 +1,33 @@
+\version "2.15.22"
+
+\header {
+ texidoc = "Cross-staff stems avoid articulations. Articulations that don't
+get in the way of stems do not cause unwanted horizontal space.
+"
+}
+
+\new GrandStaff <<
+ \new Staff = "a" { s1 }
+ \new Staff = "b" {
+ \stemDown
+ \clef bass
+ d'8^\prall^\espressivo [\change Staff="a" g'' ]
+ g'' [\change Staff="b" d'8^\prall^\espressivo ]
+ \stemUp
+ f, [\change Staff="a" b8_\prall_\espressivo ]
+ b_\prall_\espressivo [\change Staff="b" f,8 ]
+ }
+>>
+
+\new GrandStaff <<
+ \new Staff = "a" { s1 }
+ \new Staff = "b" {
+ \stemDown
+ \clef bass
+ d'8 [\change Staff="a" g'' ]
+ g'' [\change Staff="b" d'8 ]
+ \stemUp
+ f, [\change Staff="a" b8 ]
+ b [\change Staff="b" f,8 ]
+ }
+>>