%% 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/printing-music-with-different-time-signatures.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.25.23"

\header {
%% Translation of GIT committish: a8a85e19654e46d725563e6deba44083ef137a2c
  texidocja = "
次のスニペットでは、2 つのパートが完全に異なる拍子記号を持っていますが、@c
タイミングは揃っています。小節線はパート毎に独立して表示するため
@code{Score} のレベルでは表示されず、@code{Timing_translator} が
@code{Score} コンテキストから @code{Staff} コンテキストに移動しています。@c

小節番号が必要な場合、@code{Bar_number_engraver} も移動する必要があります。@c
このエングラーバは @code{Timing_translator} によってセットされるプロパティに@c
依存するためです。小節番号を表示したい譜に @code{\\with}
を用いることができます。
"
  doctitleja = "音楽を異なる拍子記号で表示する"

%% Translation of GIT committish: c043783aac6c35926d633aa2daf60ed4f2e7ca7a
  texidocfr = "
Bien qu'ayant des métriques bien différentes, les deux parties
ci-dessous présentées restent synchrones.

Les barres de mesure ne peuvent plus être gérées au niveau du contexte
@code{Score} ; le @code{Timing_translator} doit être déplacé du contexte
@code{Score} au contexte @code{Staff} afin de permettre des barres de
mesure individualisées.

Le @code{Bar_number_engraver} devra lui aussi être déplacé, puisqu'il
dépend de propriétés attachées au @code{Timing_translator}, afin de
numéroter les mesures. L'utilisation d'un bloc @code{\\with} dans la
portée concernée permettra un affichage des numéros de mesure.
"

  doctitlefr = "Impression de musique aux métriques différentes"

%% Translation of GIT committish: 2575663f4ccde242a86298d782d0538608b8dbbe
  texidoces = "
En el siguiente fragmento de código, dos partes distintas tienen un
compás completamente diferente y sin embargo se mantienen
sincronizadas.  Las barras de compás ya no se pueden imprimir en el
nivel de @code{Score}; para permitir barras de compás independientes
en cada parte se trasladan los grabadores
@code{Default_barline_engraver} y @code{Timing_translator} desde el
contexto de partitura @code{Score} hasta el contexto de pentagrama
@code{Staff}.

Si son necesarios números de compás, el grabador de números de compás
@code{Bar_number_engraver} también debe trasladarse, ya que descansa
en propiedades fijadas por el @code{Timing_translator}; se puede usar
un bloque @code{\\with} para añadir números de compás al pentagrama
apropiado.

"
  doctitlees = "Imprimir música que tenga compases distintos en cada pentagrama"

%% Translation of GIT committish: 8ffecf6be17c6ec2ff87cf31873121a8cce29b09
  texidocca = "
En el següent fragment de codi, dues parts diferents tenen un compàs
completament diferent i malgrat això es mantenen sincronitzades.  Les
barres de compàs ja no es poden imprimir en el nivell de @code{Score};
per permetre barres de compàs independents en cada part es tralladen
els gravadores @code{Default_barline_engraver} i
@code{Timing_translator} des del context de partitura @code{Score}
fins el context de pentagrama @code{Staff}.

Si calen nombres de compàs, el gravador de nombres de compàs
@code{Bar_number_engraver} també s'ha de traslladar, ja que descansa
en propietat fixades pel @code{Timing_translator}; es pot usar un bloc
@code{\\with} per afegir nombres de compàs al pentagrama apropiat.

"
  doctitleca = "Impressió de música que tingui compassos en cada pentagrama"

  categories = "Contemporary notation, Contexts and engravers,
                Percussion, Real music, Really cool, Rhythms"

  texidoc = "
In the following snippet, two parts have a completely different time
signature, yet remain synchronized.

The bar lines can no longer be printed at the @code{Score} level; to
allow independent bar lines in each part, the
@code{Default_barline_engraver} and @code{Timing_translator} are moved
from the @code{Score} context to the @code{Staff} context.

If bar numbers are required, the @code{Bar_number_engraver} should also
be moved, since it relies on properties set by the
@code{Timing_translator}; a @code{\\with} block can be used to add bar
numbers to the relevant staff.
"

  doctitle = "Printing music with different time signatures"
} % begin verbatim


global = {
  \time 3/4 s2.*3 \break
  s2.*3
}

\layout {
  \context {
    \Score
    \remove "Timing_translator"
    \remove "Bar_number_engraver"
    \override SpacingSpanner.uniform-stretching = ##t
    \override SpacingSpanner.strict-note-spacing = ##t
    proportionalNotationDuration = #1/64
  }
  \context {
    \Staff
    \consists "Timing_translator"
  }
  \context {
    \Voice
    \remove "Forbid_line_break_engraver"
    tupletFullLength = ##t
  }
}

Bassklarinette = \new Staff \with {
  \consists "Bar_number_engraver"
  barNumberVisibility = #(every-nth-bar-number-visible 2)
  \override BarNumber.break-visibility = #end-of-line-invisible
} <<
  \global
  {
    \clef treble
    \time 3/8 d''4. |
    \time 3/4 r8 des''2( c''8) |
    \time 7/8 r4. ees''2 ~ |
    \time 2/4 \tupletUp \tuplet 3/2 { ees''4 r4 d''4 ~ } |
    \time 3/8 \tupletUp \tuplet 4/3 { d''4 r4 } |
    \time 2/4 e''2 |
    \time 3/8 es''4. |
    \time 3/4 r8 d''2 r8 |
  }
>>

Perkussion = \new StaffGroup <<
  \new Staff <<
    \global
    {
      \clef percussion
      \time 3/4 r4 c'2 ~ |
      c'2. |
      R2. |
      r2 g'4 ~ |
      g'2. ~ |
      g'2. |
    }
  >>
  \new Staff <<
    \global {
      \clef percussion
      \time 3/4 R2. |
      g'2. ~ |
      g'2. |
      r4 g'2 ~ |
      g'2 r4 |
      g'2. |
    }
  >>
>>

\score {
  <<
    \Bassklarinette
    \Perkussion
  >>
}



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