X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Fsnippets%2Fcombining-two-parts-on-the-same-staff.ly;h=e869f243e75e157ba830157729e0cb146bbf5db8;hb=3f57efa0cde39bf0642fb6fb3672a19262ceda83;hp=0a8477adc57f1565ce54d8db0d7eeb19e9dacf29;hpb=13da8b27aabc5d5a752d00ed1e2b99ad20f0f264;p=lilypond.git diff --git a/Documentation/snippets/combining-two-parts-on-the-same-staff.ly b/Documentation/snippets/combining-two-parts-on-the-same-staff.ly index 0a8477adc5..e869f243e7 100644 --- a/Documentation/snippets/combining-two-parts-on-the-same-staff.ly +++ b/Documentation/snippets/combining-two-parts-on-the-same-staff.ly @@ -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 {