%% 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/cross-staff-chords---beaming-problems-workaround.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
連桁の衝突に関する問題が起きないように@c
上の譜の符幹を下向きに伸ばした方が良い場合があります。@c
次の例で下の譜の符幹を伸ばそうとした場合、@c
@code{\\override Staff.Beam.collision-voice-only = ##t}
を用いて、譜を越えた衝突を検出しないように、@c
連桁の自動衝突解決の設定を変更する必要があります。
"
  doctitleja = "譜をまたがる和音 -- 連桁との問題を解決する"

%% Translation of GIT committish: de1e42ce512f3690387cdd065109bddff1b7bd6d
  texidocfr = "
Il est parfois préférable d'utiliser les hampes de l'autre portée pour
créer des accords distribués, afin de tricher avec le détecteur de
collision des ligatures de LilyPond. Dans l'exemple suivant, le fait de
partir des hampes de la portée inférieure aurait rendu nécessaire
l'adaptation du détecteur de collision des ligatures, par une clause

@example
\\override Staff.Beam.collision-voice-only = ##t
@end example

@noindent
afin que LilyPond ne déplace pas les ligatures.
"

  doctitlefr = "Accord distribué et problème de hampe – solution"

%% Translation of GIT committish: 9c7cce2e12f0730684dcf6fe737eed69170674a3
  texidoces = "
A veces es mejor usar plicas que parten del @q{otro} pentagrama
para crear acordes de pentagrama cruzado y así engañar al detector
de colisiones de plicas de LilyPond.  En el siguiente fragmento de
código, si se hubieran usado las plicas que provienen del
pentagrama inferior, habría sido necesario usar explícitamente

@example
\\override Staff.Beam.collision-voice-only = ##t
@end example

de forma que LilyPond no mueva las plicas.

"

  doctitlees = "Solución de problemas de acordes y barras que cruzan el pentagrama"

  categories = "Chords, Keyboards, Tweaks and overrides, Workaround"

  texidoc = "
Sometimes it is better to use stems from the @q{other} staff for creating
cross-staff chords to trick LilyPond's beam collision detector. In the
following snippet, if the stems from the lower staff were used instead,
it would be necessary to explicitly use

@example
\\override Staff.Beam.collision-voice-only = ##t
@end example

so that LilyPond doesn't move the beams.
"

  doctitle = "Cross-staff chords -- beaming problems workaround"
} % begin verbatim


\new PianoStaff <<
  \new Staff = up \relative c' <<
    { r4
      \override Stem.cross-staff = ##t
      \override Stem.length = #19 % this is in half-spaces,
          % so it makes stems 9.5 staffspaces long
      \override Stem.Y-offset = #-6 % stems are normally lengthened
          % upwards, so here we must lower the stem by the amount
          % equal to the lengthening - in this case (19 - 7) / 2
          % (7 is default stem length)
      e e e }
    { s4
      \change Staff = "bottom"
      \override NoteColumn.ignore-collision = ##t
      c, c c
    }
  >>

  \new Staff = bottom \relative c' {
    \clef bass
    \voiceOne
    g8 a g a g a g a
  }
>>



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