%% Generated by lilypond-book
%% Options: [exampleindent=10.16\mm,indent=0\mm,line-width=160\mm,paper-height=845.047\pt,paper-width=597.508\pt,papersize='(cons (* 597.508 pt) (* 845.047 pt))]
\include "lilypond-book-preamble.ly"


% ****************************************************************
% Start cut-&-pastable-section
% ****************************************************************

#(ly:set-option 'eps-box-padding 3.000000)



\paper {
  #(set-paper-size '(cons (* 597.508 pt) (* 845.047 pt)))
  indent = 0\mm
  line-width = 160\mm
  % offset the left padding, also add 1mm as lilypond creates cropped
  % images with a little space on the right
  line-width = #(- line-width (* mm  3.000000) (* mm 1))
}

\layout {
  
}




% ****************************************************************
% ly snippet:
% ****************************************************************
\sourcefilename "snippets/combining-two-parts-on-the-same-staff.ly"
\sourcefileline 0
%% DO NOT EDIT this file manually; it was automatically
%% generated from the LilyPond Wiki
%% (https://wiki.lilypond.community).
%%
%% Make any changes in the Wiki itself, or in
%% `Documentation/snippets/new/`, then run
%% `scripts/auxiliar/makelsr.pl`.
%%
%% This file is in the public domain.

\version "2.24.0"

\header {
%% Translation of GIT committish: f11513f36c131dab18338d6a3a729e24a927150d
  texidocja = "
自動パート結合ツール (@code{\\partCombine} コマンド) は、@c
いくつかの異なるパートを同じ譜にまとめるものです。@c
@qq{solo} や @qq{a2} といったテキスト指示は、デフォルトで追加されます。@c
これらを削除するには、@code{printPartCombineTexts} プロパティを @code{f}
にセットします。賛美歌のような歌曲では、@qq{solo/a2} のテキストを追加する@c
必要は無いため、これらを削除すると良いでしょう。しかしながら、これらを削除した@c
場合、ソロの指示も表示されなくなるため問題があるかもしれません。このような@c
場合は、通常の多声構文を用いると良いでしょう。

このスニペットは、2 つのパートを 1 つの譜に表示する 3 つの方法を示しています:
通常の多声、テキストを削除した @code{\\partCombine}、テキストのある
@code{\\partCombine} の順です。
"
  doctitleja = "2 つのパートを 1 つの譜にまとめる"

%% Translation of GIT committish: 2f3474d9af596d677ed5b7ce720ae4d0954a6b51
  texidocit = "
Lo strumento di unione delle parti (il comando @code{\\partCombine}) permette
di combinare varie parti sullo stesso rigo.  Indicazioni testuali come
@qq{solo} e @qq{a2} sono aggiunte automaticamente; per toglierele basta
impostare la proprietà @code{printPartCombineTexts} su @code{f}.
Per le partiture vocali (inni), non c'è bisogno di aggiungere i testi
@qq{solo/a2}, quindi dovrebbero essere disattivati.   Tuttavia potrebbe
convenire non usarlo se c'è una qualche parte solista, perché non
verrebbe indicata.  In tali casi è preferibile usare la notazione
polifonica normale.

Questo frammento illustra i tre modi con cui due parti possono essere stampate
su uno stesso rigo: normale polifonia, @code{\\partCombine} senza testo e
@code{\\partCombine} con testo.

"
  doctitleit = "Combinare due parti sullo stesso rigo"

%% Translation of GIT committish: de1e42ce512f3690387cdd065109bddff1b7bd6d
  texidocfr = "
L'outil de combinaison de parties (la commande @code{\\partCombine})
permet d'avoir deux parties différentes sur une même portée. LilyPond
ajoute automatiquement des indications textuelles, telles que « solo »
ou « a2 ». Si votre intention n'est que de fusionner les parties, sans
ajouter de texte, assignez faux à la propriété
@code{printPartCombineTexts}.

Dans le cas de partitions vocales, et plus particulièrement d'hymnes,
ces « solo/a2 » ne sont d'aucune utilité, aussi vaut-il mieux les
désactiver. Dans le cas où il y aurait alternance entre @emph{solo} et
@emph{tutti}, il vaut mieux faire appel à de la musique polyphonique
standard.

Voici trois moyens d'imprimer deux parties sur une même portée : en
polyphonie normale, avec @code{\\partCombine} sans indication
supplémentaire, et avec @code{\\partCombine} commentée.
"

  doctitlefr = "Combinaison de deux parties sur une même portée"

%% Translation of GIT committish: 4f16fa98fd258f08e64203c793028ea3e363b1c0
  texidoces = "
La herramienta de combinación de partes (o sea, la instrucción
@code{\\partCombine}) permite la combinación de varias partes
diferentes sobre el mismo pentagrama.  Las indicaciones textuales
tales como @qq{solo} o @qq{a2} se añaden de forma predeterminada;
para quitarlas, sencillamente establezca la propiedad
@code{printPartCombineTexts} al valor @code{#f}.  Para partituras
vocales (como himnos), no hay necesidad de añadir los textos
@qq{solo} o @qq{a2}, por lo que se deben desactivar.  Sin embargo,
podría ser mejor no usarlos si hay solos, porque éstos no se
indicarán.  En tales casos podría ser preferible la notación
polifónica estándar.

Este fragmento de código presenta las tres formas en que se pueden
imprimir dos partes sobre un solo pentagrama: polifonía estándar,
@code{\\partCombine} sin textos, y @code{\\partCombine} con
textos.
"
  doctitlees = "Combinar dos partes sobre el mismo pentagrama"

%% Translation of GIT committish: 0a868be38a775ecb1ef935b079000cebbc64de40
  texidocde = "
Die Funktion, die Stimmen kombiniert (also der @code{\\partCombine}-Befehl)
ermöglicht die Kombination unterschiedlicher Stimmen auf einem
System.  Textanweisungen wie \"solo\" oder \"a2\" werden automatisch
hinzugefügt.  Wenn man sie entfernen will, muss man die Eigenschaft
@code{printPartCombineTexts} auf falsch setzen.  Für Klavierauszüge
muss natürlich kein \"solo\"/\"a2\" usw. hinzugefügt werden, man
sollte sie also ausschalten.  Wenn aber Solo-Stellen in einem
Klavierauszug oder einer Chorpartitur angezeigt werden, ist es besser,
normale Polyphonie zu verwenden, weil so die Solostellen angezeigt
werden, auch wenn der Text des Stimmenkombinierers ausgeschaltet ist.

Der Schnipsel zeigt drei Möglichkeiten, Stimmen auf einem System zu
kombinieren: Standardpolyphonie, @code{\\partCombine} ohne Text und
@code{\\partCombine} mit Text.

"
  doctitlede = "Zwei Stimmen auf einem System kombinieren"

%% Translation of GIT committish: 3f57efa0cde39bf0642fb6fb3672a19262ceda83
  texidocca = "
L'eina de combinació de parts (ordre @code{\\partcombine}) permet la
combinació de diverses parts diferents sobre el mateix pentagrama.
Les indicacions textuals com ara @qq{solo} o @qq{a2} s'afegeixen de
forma predeterminada; per treure-les, senzillament heu d'establir la
propietat @code{printPartCombineTexts} al valor @qq{fals}.  Per a
partitures vocals (com himnes), no cal afegir els textos @qq{solo}
o @qq{a2}, per la qual cosa s'han de deshabilitar.  No obstant, podria
ser millor no usar-lo si hi ha solos, perquè no s'indicaran.  En
aquests casos podria ser preferible la notació polifònica estàndard.

Aquest fragment de codi presenta les tres formes en las quals es poden
imprimir dues parts sobre un sol pentagrama: polifonia estàndard,
@code{\\partcombine} sense textos, i @code{\\partcombine} amb
texts.

"
  doctitleca = "Combinar dues parts sobre el mateix pentagrama"

  categories = "Simultaneous notes, Syntax and expressions, Text"

  texidoc = "
The part combiner tool (i.e., the @code{\\partCombine} command) allows
the combination of several different parts on the same staff. Text
directions such as @qq{solo} or @qq{a2} are added by default; to remove them,
simply set the property @code{printPartCombineTexts} to @code{#f}.

For vocal scores (hymns), there is no need to add @qq{solo/a2} texts, so
they should be switched off. However, it might be better not to use
them if there are any solos, as they won't be indicated. In such cases,
standard polyphonic notation may be preferable.

This snippet presents the three ways two parts can be printed on a same
staff: standard polyphony, @code{\\partCombine} without texts, and
@code{\\partCombine} with texts.
"

  doctitle = "Combining two parts on the same staff"
} % begin verbatim


musicUp = \relative c'' {
  \time 4/4
  a4 c4.( g8) a4 |
  g4 e' g,( a8 b) |
  c b a2.
}

musicDown = \relative c'' {
  g4 e4.( d8) c4 |
  r2 g'4( f8 e) |
  d2 \stemDown a
}

\score {
  <<
    \new Staff \with {
      instrumentName = "standard polyphony"
    } << \musicUp \\ \musicDown >>

    \new Staff \with {
      instrumentName =
        \markup { \typewriter "\\partCombine" without text}
      printPartCombineTexts = ##f
    } \partCombine \musicUp \musicDown

    \new Staff \with {
      instrumentName =
        \markup { \typewriter "\\partCombine" with text}
    } \partCombine \musicUp \musicDown
  >>

  \layout {
    indent = 6.0\cm
    \context {
      \Score
      % Setting this to a large value avoids a bar line at the
      % beginning that would connect the three staves otherwise.
      \override SystemStartBar.collapse-height = 30
    }
  }
}



% ****************************************************************
% end ly snippet
% ****************************************************************
