]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-1.3.130
authorfred <fred>
Mon, 19 Feb 2001 19:23:47 +0000 (19:23 +0000)
committerfred <fred>
Mon, 19 Feb 2001 19:23:47 +0000 (19:23 +0000)
input/bugs/gr-instrument.ly [new file with mode: 0644]

diff --git a/input/bugs/gr-instrument.ly b/input/bugs/gr-instrument.ly
new file mode 100644 (file)
index 0000000..1530f76
--- /dev/null
@@ -0,0 +1,42 @@
+%{
+instrument names on grandstaffs. GR is centered on entire score
+%}
+
+\version "1.3.129"
+\include "paper20.ly"
+\header{
+        latexpackages = "amsmath";
+}
+
+\score{
+  \notes <
+  \context Staff = sa {\property Staff.instrument = "A" g,2 c''''2}
+  \context Staff = sb {\property Staff.instrument = "B" g,2 c''''2}
+  \context GrandStaff=gs <
+    \property GrandStaff.instrument = "Gr"
+    \context Staff = ga {\property Staff.instrument = "" c''1 }
+    \context Staff = gb {\property Staff.instrument = "" c''1 }
+  >
+  \context Staff = sc {\property Staff.instrument = "foobar"
+% "\small$\mathrm{\genfrac{}{}{0pt}{0}{C}{D}}$"
+
+<g'1 c''> }
+  \context Staff = sd {\property Staff.instrument = "E" c''1 }
+
+  >
+  \paper{
+    \translator { 
+      \StaffContext
+      \consists "Instrument_name_engraver";
+    }
+    \translator { 
+      \GrandStaffContext
+      \consists "Instrument_name_engraver";
+    }
+
+  }
+}
+
+
+
+