]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/combining-two-parts-on-the-same-staff.ly
Merge master into nested-bookparts
[lilypond.git] / input / lsr / combining-two-parts-on-the-same-staff.ly
1 %% Do not edit this file; it is auto-generated from LSR http://lsr.dsi.unimi.it
2 %% This file is in the public domain.
3 \version "2.11.62"
4
5 \header {
6   lsrtags = "simultaneous-notes, text"
7
8   texidoces = "
9 La herramienta de combinación de partes ( instrucción
10 @code{\\partcombine}) permite la combinación de varias partes
11 diferentes sobre el mismo pentagrama.  Las indicaciones textuales
12 tales como \"solo\" o \"a2\" se añaden de forma predeterminada;
13 para quitarlas, sencillamente establezca la proopiedad
14 @code{printPartCombineTexts} al valor \"falso\".  Para partituras
15 vocales (como himnos), no hay necesidad de añadir los textos
16 \"solo\" o \"a2\", por lo que se deben desactivar.  Sin embargo,
17 podría ser mejor no usarlo si hay solos, porque éstos no se
18 indicarán.  En tales casos podría ser preferible la notación
19 polifónica estándar.
20
21 Este fragmento de código presenta las tres formas en que se pueden
22 imprimir dos partes sobre un solo pentagrama: polifonía estándar,
23 @code{\\partcombine} sin textos, y @code{\\partcombine} con
24 textos.
25
26 "
27   doctitlees = "Combinar dos partes sobre el mismo pentagrama"
28
29   texidoc = "
30 The part combiner tool ( @code{\\partcombine} command ) allows the
31 combination of several different parts on the same staff.  Text
32 directions such as \"solo\" or \"a2\" are added by default; to remove
33 them, simply set the property @code{printPartCombineTexts} to
34 \"false\". For vocal scores (hymns), there is no need to add
35 \"solo\"/\"a2\" texts, so they should be switched off.  However, it
36 might be better not to use it if there are any solos, as they won't be
37 indicated.  In such cases, standard polyphonic notation may be
38 preferable.
39
40 This snippet presents the three ways two parts can be printed on a same
41 staff: standard polyphony, @code{\\partcombine} without texts, and
42 @code{\\partcombine} with texts.
43
44
45
46
47 "
48   doctitle = "Combining two parts on the same staff"
49 } % begin verbatim
50 musicUp = \relative c'' {
51   \time 4/4
52   a4 c4.( g8) a4 |
53   g4 e' g,( a8 b) |
54   c b a2.
55 }
56
57 musicDown = \relative c'' {
58   g4 e4.( d8) c4 |
59   r2 g'4( f8 e) |
60   d2 \stemDown a
61 }
62
63 \score {
64   <<
65     <<
66     \new Staff {
67       \set Staff.instrumentName = "Standard polyphony  "
68       << \musicUp \\ \musicDown >>
69     }
70     \new Staff \with { printPartCombineTexts = ##f } {
71       \set Staff.instrumentName = "PartCombine without texts  "
72       \partcombine \musicUp \musicDown
73     }
74     \new Staff {
75       \set Staff.instrumentName = "PartCombine with texts  "
76       \partcombine \musicUp \musicDown
77     }
78     >>
79   >>
80   \layout {
81     indent = 6.0\cm
82     \context {
83       \Score
84       \override SystemStartBar #'collapse-height = #30
85     }
86   }
87 }