]> git.donarmstrong.com Git - lilypond.git/commitdiff
Issue 3398: Format inserting-score-fragments snippet nicer in the wake of issue 3187
authorDavid Kastrup <dak@gnu.org>
Tue, 4 Jun 2013 15:55:49 +0000 (17:55 +0200)
committerDavid Kastrup <dak@gnu.org>
Sun, 9 Jun 2013 08:05:21 +0000 (10:05 +0200)
Documentation/snippets/new/inserting-score-fragments-above-a-staff,-as-markups.ly [new file with mode: 0644]

diff --git a/Documentation/snippets/new/inserting-score-fragments-above-a-staff,-as-markups.ly b/Documentation/snippets/new/inserting-score-fragments-above-a-staff,-as-markups.ly
new file mode 100644 (file)
index 0000000..09a13cf
--- /dev/null
@@ -0,0 +1,39 @@
+\version "2.17.15"
+
+\header {
+  lsrtags = "real-music, staff-notation"
+
+  texidoc = "
+The @code{\\markup} command is quite versatile.  In this snippet, it
+contains a @code{\\score} block instead of texts or marks.
+
+"
+  doctitle = "Inserting score fragments above a staff as markups"
+}
+
+tuning = \markup {
+  \score {
+    \new Staff \with { \remove "Time_signature_engraver" }
+    {
+      \clef bass
+      <c, g, d g>1
+    }
+    \layout { ragged-right = ##t  indent = 0\cm }
+  }
+}
+
+\header {
+  title = "Solo Cello Suites"
+  subtitle = "Suite IV"
+  subsubtitle = \markup { Originalstimmung: \raise #0.5 \tuning }
+}
+
+\layout { ragged-right = ##f }
+
+\relative c'' {
+  \time 4/8
+  \tuplet 3/2 { c8 d e } \tuplet 3/2 { c d e }
+  \tuplet 3/2 { c8 d e } \tuplet 3/2 { c d e }
+  g8 a g a
+  g8 a g a
+}