]> git.donarmstrong.com Git - lilypond.git/commitdiff
New example file to answer a FAQ.
authorMats Bengtsson <mats.bengtsson@s3.kth.se>
Fri, 2 Jul 2004 09:27:10 +0000 (09:27 +0000)
committerMats Bengtsson <mats.bengtsson@s3.kth.se>
Fri, 2 Jul 2004 09:27:10 +0000 (09:27 +0000)
input/test/no-key-at-end-of-line.ly [new file with mode: 0644]

diff --git a/input/test/no-key-at-end-of-line.ly b/input/test/no-key-at-end-of-line.ly
new file mode 100644 (file)
index 0000000..8d65b84
--- /dev/null
@@ -0,0 +1,18 @@
+\version "2.2.0"
+\header {
+
+    texidoc = "@cindex Key Signature End of Line
+According to normal typesetting conventions, LilyPond typesets key
+changes at the end of the line, when the change appears at a line break.
+This example shows how to change this default to only print the
+new key signature at the beginning of the next line.
+" }
+
+\score {
+  \notes \relative c' {
+    \set Staff.explicitKeySignatureVisibility = #end-of-line-invisible
+    c d e f | g a b c | \break
+    \key d \major
+    d cis b a | g fis e d |
+  }
+}