]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/regression/autochange-relative.ly
Imported Upstream version 2.19.45
[lilypond.git] / input / regression / autochange-relative.ly
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,,}
+}