]> 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 0a8477adc57f1565ce54d8db0d7eeb19e9dacf29..e869f243e75e157ba830157729e0cb146bbf5db8 100644 (file)
@@ -1,10 +1,11 @@
-%% DO NOT EDIT this file manually; it is automatically
-%% generated from LSR http://lsr.dsi.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.17.6"
+% 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"
@@ -30,13 +31,15 @@ staff: standard polyphony, @code{\\partcombine} without texts, and
   doctitle = "Combining two parts on the same staff"
 } % begin verbatim
 
+%% Combining pedal notes with clef changes
 
 musicUp = \relative c'' {
   \time 4/4
   a4 c4.( g8) a4 |
   g4 e' g,( a8 b) |
   c b a2.
-}
+} % begin verbatim
+
 
 musicDown = \relative c'' {
   g4 e4.( d8) c4 |
@@ -45,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 {