]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/snippets/combining-two-parts-on-the-same-staff.ly
Snippets: Replace \set Staff.instrumentName
[lilypond.git] / Documentation / snippets / combining-two-parts-on-the-same-staff.ly
index 643dacbe8656c174bf12e31814cb258a3a67f589..e869f243e75e157ba830157729e0cb146bbf5db8 100644 (file)
@@ -1,10 +1,11 @@
-%% DO NOT EDIT this file manually; it is automatically
-%% generated from LSR http://lsr.di.unimi.it
-%% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
-%% and then run scripts/auxiliar/makelsr.py
-%%
-%% This file is in the public domain.
-\version "2.18.0"
+% DO NOT EDIT this file manually; it is automatically
+% generated from Documentation/snippets/new
+% Make any changes in Documentation/snippets/new/
+% and then run scripts/auxiliar/makelsr.py
+%
+% This file is in the public domain.
+%% Note: this file works from version 2.19.56
+\version "2.19.56"
 
 \header {
   lsrtags = "simultaneous-notes, syntax-and-expressions, text"
@@ -37,7 +38,8 @@ musicUp = \relative c'' {
   a4 c4.( g8) a4 |
   g4 e' g,( a8 b) |
   c b a2.
-}
+} % begin verbatim
+
 
 musicDown = \relative c'' {
   g4 e4.( d8) c4 |
@@ -46,22 +48,21 @@ musicDown = \relative c'' {
 }
 
 \score {
-  <<
     <<
-    \new Staff {
-      \set Staff.instrumentName = #"Standard polyphony"
+    \new Staff \with { instrumentName = #"Standard polyphony" }
+
       << \musicUp \\ \musicDown >>
+
+    \new Staff \with {
+      instrumentName = #"PartCombine without text"
+      printPartCombineTexts = ##f
     }
-    \new Staff \with { printPartCombineTexts = ##f } {
-      \set Staff.instrumentName = #"PartCombine without texts"
-      \partcombine \musicUp \musicDown
-    }
-    \new Staff {
-      \set Staff.instrumentName = #"PartCombine with texts"
+
+    \partcombine \musicUp \musicDown
+
+    \new Staff \with { instrumentName = #"PartCombine with text" }
       \partcombine \musicUp \musicDown
-    }
     >>
-  >>
   \layout {
     indent = 6.0\cm
     \context {