X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Fsnippets%2Fstring-quartet-template-with-separate-parts.ly;h=e4e82c5ec0b84f08bf40d9c11430b5eea6d08e02;hb=2f048e40f3c6bb1fda769caf537741c57d15d4ee;hp=9477e0e29e7573d8a816fc54e6cf83d5eb997bce;hpb=ebc3cdab150ac7de7857043d301f784fd0f8aecc;p=lilypond.git diff --git a/Documentation/snippets/string-quartet-template-with-separate-parts.ly b/Documentation/snippets/string-quartet-template-with-separate-parts.ly index 9477e0e29e..e4e82c5ec0 100644 --- a/Documentation/snippets/string-quartet-template-with-separate-parts.ly +++ b/Documentation/snippets/string-quartet-template-with-separate-parts.ly @@ -1,13 +1,14 @@ -%% 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.14.2" +% 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 = "preparing-parts, unfretted-strings, template" + lsrtags = "preparing-parts, template, unfretted-strings" texidoc = " The @qq{String quartet template} snippet produces a nice string @@ -28,59 +29,80 @@ Do not forget to remove specified comments when using separate files! doctitle = "String quartet template with separate parts" } % begin verbatim - %%%%% piece.ly %%%%% (This is the global definitions file) global= { \time 4/4 \key c \major -} +} % begin verbatim -Violinone = \new Voice { \relative c''{ - \set Staff.instrumentName = #"Violin 1 " - c2 d e1 -\bar "|." }} %********************************* -Violintwo = \new Voice { \relative c''{ - \set Staff.instrumentName = #"Violin 2 " +Violinone = \new Voice { + \relative c'' { + c2 d e1 + \bar "|." + } +} - g2 f e1 -\bar "|." }} %********************************* -Viola = \new Voice { \relative c' { - \set Staff.instrumentName = #"Viola " - \clef alto +Violintwo = \new Voice { + \relative c'' { + g2 f e1 + \bar "|." + } +} - e2 d c1 -\bar "|." }} %********************************* -Cello = \new Voice { \relative c' { - \set Staff.instrumentName = #"Cello " - \clef bass +Viola = \new Voice { + \relative c' { + \clef alto + e2 d c1 + \bar "|." + } +} - c2 b a1 -\bar "|."}} %********************************** +Cello = \new Voice { + \relative c' { + \clef bass + c2 b a1 + \bar "|." + } +} + music = { << - \tag #'score \tag #'vn1 \new Staff { << \global \Violinone >> } - \tag #'score \tag #'vn2 \new Staff { << \global \Violintwo>> } - \tag #'score \tag #'vla \new Staff { << \global \Viola>> } - \tag #'score \tag #'vlc \new Staff { << \global \Cello>> } + \tag #'score \tag #'vn1 + \new Staff \with { instrumentName = "Violin 1" } + << \global \Violinone >> + + \tag #'score \tag #'vn2 + \new Staff \with { instrumentName = "Violin 2" } + << \global \Violintwo>> + + \tag #'score \tag #'vla + \new Staff \with { instrumentName = "Viola" } + << \global \Viola>> + + \tag #'score \tag #'vlc + \new Staff \with { instrumentName = "Cello" } + << \global \Cello >> >> } -%%% These are the other files you need to save on your computer +% These are the other files you need to save on your computer -%%%%% score.ly -%%%%% (This is the main file) +% score.ly +% (This is the main file) -%%% uncomment the line below when using a separate file +% uncomment the line below when using a separate file %\include "piece.ly" + #(set-global-staff-size 14) + \score { \new StaffGroup \keepWithTag #'score \music \layout { } @@ -90,8 +112,8 @@ music = { %{ Uncomment this block when using separate files -%%%%% vn1.ly -%%%%% (This is the Violin 1 part file) +% vn1.ly +% (This is the Violin 1 part file) \include "piece.ly" \score { @@ -100,8 +122,8 @@ music = { } -%%%%% vn2.ly -%%%%% (This is the Violin 2 part file) +% vn2.ly +% (This is the Violin 2 part file) \include "piece.ly" \score { @@ -110,8 +132,8 @@ music = { } -%%%%% vla.ly -%%%%% (This is the Viola part file) +% vla.ly +% (This is the Viola part file) \include "piece.ly" \score { @@ -120,8 +142,8 @@ music = { } -%%%%% vlc.ly -%%%%% (This is the Cello part file) +% vlc.ly +% (This is the Cello part file) \include "piece.ly" \score {