]> git.donarmstrong.com Git - lilypond.git/commitdiff
Issue 4475: \relative regtests for \autochange and \partcombine
authorDan Eble <nine.fierce.ballads@gmail.com>
Wed, 1 Jul 2015 02:34:12 +0000 (22:34 -0400)
committerDan Eble <nine.fierce.ballads@gmail.com>
Sun, 19 Jul 2015 13:39:04 +0000 (09:39 -0400)
\relative \autochange {x} was recently fixed in commit
c962a0162c67d8b67593c848d08c9345c8b045f0.

input/regression/autochange-relative.ly [new file with mode: 0644]
input/regression/part-combine-relative.ly [new file with mode: 0644]

diff --git a/input/regression/autochange-relative.ly b/input/regression/autochange-relative.ly
new file mode 100644 (file)
index 0000000..45fae17
--- /dev/null
@@ -0,0 +1,17 @@
+\version "2.19.23"
+
+\header {
+  texidoc = "@code{\\autochange} needs to be given pitches in their
+final octaves, so if @code{\\relative} is used it must be applied
+inside @code{\\autochange}.  The pitches in @code{\\autochange} are
+unaffected by an outer @code{\\relative}, so that the printed output
+shows the pitches that @code{\\autochange} used.
+
+The expected output of this test is three identical measures."
+}
+
+\new PianoStaff {
+   \autochange \absolute {g4 c g' c}
+   \relative \autochange {g4 c g' c}  % relative is ignored
+   \autochange \relative {g4 c, g'' c,,}
+}
diff --git a/input/regression/part-combine-relative.ly b/input/regression/part-combine-relative.ly
new file mode 100644 (file)
index 0000000..33914bc
--- /dev/null
@@ -0,0 +1,17 @@
+\version "2.19.23"
+
+\header {
+  texidoc = "@code{\\partcombine} needs to be given pitches in their
+final octaves, so if @code{\\relative} is used it must be applied
+inside @code{\\partcombine}.  The pitches in @code{\\partcombine} are
+unaffected by an outer @code{\\relative}, so that the printed output
+shows the pitches that @code{\\partcombine} used.
+
+The expected output of this test is three identical measures."
+}
+
+\new Staff {
+  \partcombine \absolute { e'2 f' } { c'2 d' }
+  \relative \partcombine { e'2 f' } { c'2 d' } % relative is ignored
+  \partcombine \relative { e'2 f } \relative { c'2 d }
+}