]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/combining-two-parts-on-the-same-staff.ly
LSR: Update.
[lilypond.git] / Documentation / snippets / combining-two-parts-on-the-same-staff.ly
1 %% Do not edit this file; it is automatically
2 %% generated from LSR http://lsr.dsi.unimi.it
3 %% This file is in the public domain.
4 \version "2.13.4"
5
6 \header {
7   lsrtags = "simultaneous-notes, text"
8
9 %% Translation of GIT committish: b2d4318d6c53df8469dfa4da09b27c15a374d0ca
10   texidoces = "
11 La herramienta de combinación de partes ( instrucción
12 @code{\\partcombine}) permite la combinación de varias partes
13 diferentes sobre el mismo pentagrama.  Las indicaciones textuales
14 tales como \"solo\" o \"a2\" se añaden de forma predeterminada;
15 para quitarlas, sencillamente establezca la propiedad
16 @code{printPartCombineTexts} al valor \"falso\".  Para partituras
17 vocales (como himnos), no hay necesidad de añadir los textos
18 \"solo\" o \"a2\", por lo que se deben desactivar.  Sin embargo,
19 podría ser mejor no usarlo si hay solos, porque éstos no se
20 indicarán.  En tales casos podría ser preferible la notación
21 polifónica estándar.
22
23 Este fragmento de código presenta las tres formas en que se pueden
24 imprimir dos partes sobre un solo pentagrama: polifonía estándar,
25 @code{\\partcombine} sin textos, y @code{\\partcombine} con
26 textos.
27
28 "
29   doctitlees = "Combinar dos partes sobre el mismo pentagrama"
30
31
32 %% Translation of GIT committish: d96023d8792c8af202c7cb8508010c0d3648899d
33   texidocde = "
34 Die Funktion, die Stimmen kombiniert (also der @code{\\partcombine}-Befehl)
35 ermöglicht die Kombination unterschiedlicher Stimmen auf einem
36 System.  Textanweisungen wie \"solo\" or \"a2\" werden automatisch
37 hinzugefügt.  Wenn man sie entfernen will, muss man die Eigenschaft
38 @code{printPartCombineTexts} auf flasch setzen.  Für Klavierauszüge
39 muss natürlich kein \"solo\"/\"a2\" usw. hinzugefügt werdne, man
40 sollte sie also ausschalten.  Wenn aber Solo-Stellen in einem
41 Klavierauszug oder einer Chorpartitur angezeigt werden, ist es besser,
42 normale Polyphonie zu verwenden, weil so die Solostellen angezeigt
43 werden, auch wenn der Text des Stimmenkombinierers ausgeschaltet ist.
44
45 Der Schnipsel zeigt drei Möglichkeiten, Stimmen auf einem System zu
46 kombinieren: Standardpolyphonie, @code{\\partcombine} ohne Text und
47 @code{\\partcombine} mit Text.
48
49 "
50   doctitlede = "Zwei Stimmen auf einem System kombinieren"
51
52   texidoc = "
53 The part combiner tool ( @code{\\partcombine} command ) allows the
54 combination of several different parts on the same staff.  Text
55 directions such as \"solo\" or \"a2\" are added by default; to remove
56 them, simply set the property @code{printPartCombineTexts} to
57 \"false\". For vocal scores (hymns), there is no need to add
58 \"solo\"/\"a2\" texts, so they should be switched off.  However, it
59 might be better not to use it if there are any solos, as they won't be
60 indicated.  In such cases, standard polyphonic notation may be
61 preferable.
62
63 This snippet presents the three ways two parts can be printed on a same
64 staff: standard polyphony, @code{\\partcombine} without texts, and
65 @code{\\partcombine} with texts.
66
67
68
69
70 "
71   doctitle = "Combining two parts on the same staff"
72 } % begin verbatim
73
74 musicUp = \relative c'' {
75   \time 4/4
76   a4 c4.( g8) a4 |
77   g4 e' g,( a8 b) |
78   c b a2.
79 }
80
81 musicDown = \relative c'' {
82   g4 e4.( d8) c4 |
83   r2 g'4( f8 e) |
84   d2 \stemDown a
85 }
86
87 \score {
88   <<
89     <<
90     \new Staff {
91       \set Staff.instrumentName = "Standard polyphony  "
92       << \musicUp \\ \musicDown >>
93     }
94     \new Staff \with { printPartCombineTexts = ##f } {
95       \set Staff.instrumentName = "PartCombine without texts  "
96       \partcombine \musicUp \musicDown
97     }
98     \new Staff {
99       \set Staff.instrumentName = "PartCombine with texts  "
100       \partcombine \musicUp \musicDown
101     }
102     >>
103   >>
104   \layout {
105     indent = 6.0\cm
106     \context {
107       \Score
108       \override SystemStartBar #'collapse-height = #30
109     }
110   }
111 }
112