%% 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/displaying-a-whole-grandstaff-system-if-only-one-of-its-staves-is-alive.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: a8a85e19654e46d725563e6deba44083ef137a2c
  texidocja = "
オーケストラ譜では、いくつかの楽器 (あるいはグループ) が全く演奏されない@c
時間があり、その時の譜は (@code{\\removeEmptyStaves} で)
削除することができます。

楽器が後で再度演奏される場合には、グループで譜を残しておきたい場合があります。@c
これはグループ化しているコンテキスト (GrandStaff や StaffGroup) に
@code{Keep_alive_together_engraver} を追加することで実現できます。

例では、セカンド バイオリンは 2 番目と 3 番目のシステムで演奏されていません。@c
ファースト バイオリンは 2 番目のシステムでは演奏されず、@c
3 番目のシステムでは最後の小節に演奏部分があります。@c
@code{Keep_alive_together_engraver}
により、3 番目のシステムではセカンド バイオリンも表示されています。
"
  doctitleja = "グループ内に演奏する譜がある場合に GrandStaff 全体を表示したままにする"

%% Translation of GIT committish: c043783aac6c35926d633aa2daf60ed4f2e7ca7a
  texidocfr = "

Dans la plupart des conducteurs d'orchestre, il est d'usage qu'un
instrument ou un groupe d'instruments ne joue pas pendant un moment ;
leurs portées disparaissent alors pendant ce temps -- les anglophones
appellent cela une « partition à la française » @emph{(Frenched score)}.
LilyPond dispose de cette fonctionnalité à l'aide de la commande
@code{\\RemoveEmptyStaves}.

Il est préférable, lorsque l'un d'entre eux reprend, d'imprimer
@strong{toutes les portées du groupe en question} grâce au
@code{Keep_alive_together_engraver} placé au niveau du regroupement,
qu'il s'agisse d'un @code{GrandStaff} ou d'un @code{StaffGroup}.

Dans l'exemple suivant, les violons ne jouent pas lors du deuxième
système. Bien que seul le premier violon redémarre à la dernière mesure
du troisième système, la portée de second violon apparaît elle aussi.
"

  doctitlefr = "Affichage d'un système complet lorsqu'une seule portée est active"

%% Translation of GIT committish: 70abecb938c2bb752967bd56b7402dd8129838a5
  texidoces = "
En muchas partituras orquestales es costumbre no mostrar los
pentagramas de aquellos instrumentos que están en silencio durante
bastante tiempo; esto se llama @q{partitura francesa}.  LilyPond
aporta esta funcionalidad a través de la instrucción
@code{\\RemoveEmptyStaves}.

Cuando vuelven a sonar, con frecuencia se prefiere mostrar
@emph{todos los instrumentos del grupo}.  Esto se puede hacer
añadiendo el grabador @code{Keep_alive_together_engraver} al
contexto agrupador (p.ej.: un @code{GrandStaff} o un
@code{StaffGroup}).

En este ejemplo, los violines están en silencio durante el segundo
sistema.  Solo el violín primero suena en el último compás del
tercer sistema, pero se muestra también el pentagrama del violín
segundo.

"
  doctitlees = "Mostrar un sistema GrandStaff completo si sigue con vida uno solo de sus pentagramas"

%% Translation of GIT committish: ff9ca62acddb818b7788d7818a5c7eb0ddb6cdcb
  texidocca = "
A vegades, a les partitures orquestrals es deixen en silenci
instruments individuals o grups d'ells durant un període de temps, i
els seus pentagrames corresponents es poden suprimir durant aquest
temps (amb @code{\\removeEmptyStaves}).

Quan tornen a sonar, sovint es prefereix mostrar tots els instruments
del grup.  Això es pot fer afegint el gravador
@code{Keep_alive_together_engraver} en el context agrupador (per
exemple: un GrandStaff o un StaffGroup)

En aquest exemple, els violins estan en silenci durant els sistemes
segon i tercer.  Sols el violí primer sona a l'últim compàs, però es
mostra també el pentagrama del violí segon.

"
  doctitleca = "Mostrar un sistema GrandStaff complet si segueix amb vida un sol dels seus pentagrames"

  categories = "Contexts and engravers, Paper and layout, Staff
                notation"

  texidoc = "
In many orchestral scores it is custom to not show staves for
instruments that are silent for a while; this is called a @q{Frenched}
score. LilyPond provides this functionality via the
@code{\\RemoveEmptyStaves} command.

When they play again it is often preferred to show the staves of
@emph{all instruments of such a group}. This can be done by adding the
@code{Keep_alive_together_engraver} to the grouping context (e.g.,
@code{GrandStaff} or @code{StaffGroup}).

In the example below the violins are silent in the second system. Only
the first violin plays the last measure in the third system but the
staff of the second violin is also displayed.
"

  doctitle = "Displaying a whole GrandStaff system if only one of its staves is alive"
} % begin verbatim


\score {
  <<
    \new Staff = "Staff_flute" \with {
      instrumentName = "Flute"
      shortInstrumentName = "Fl"
    } \relative c' {
      \repeat unfold 3 { c'4 c c c | c c c c | c c c c | \break }
    }

    \new StaffGroup = "StaffGroup_Strings" <<
      \new GrandStaff = "GrandStaff_violins" <<
        \new Staff = "StaffViolinI" \with {
          instrumentName = "Violin I"
          shortInstrumentName = "Vi I"
        } \relative c'' {
          a1 | R1*7 | \repeat unfold 12 a16 a4 |
        }
        \new Staff = "StaffViolinII" \with {
          instrumentName = "Violin II"
          shortInstrumentName = "Vi II"
        } \relative c' {
          e1 | R1*8 |
        }
      >>

      \new Staff = "Staff_cello" \with {
        instrumentName = "Cello"
        shortInstrumentName = "Ce"
      } \relative c {
        \clef bass \repeat unfold 9 { c1 } |
      }
    >>
  >>
}

\layout {
  indent = 3.0\cm
  short-indent = 1.5\cm

  \context {
    \GrandStaff
    \consists Keep_alive_together_engraver
  }
  \context {
    \Staff
    \RemoveEmptyStaves
  }
}



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