%% 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/how-to-change-fret-diagram-position.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: 0cc270b871321ae5aa8622cea8d8262aafd16641
  texidocja = "
衝突を避けたり、2 つの音符の間に配置したいなどの目的で、@c
フレット図の位置を移動したい場合は、いくつかの方法があります:

1) padding または extra-offset の値を変更する (最初のスニペットに表示)。

2) 不可視のボイスを追加し、その音符にフレット図を付加する (2 つ目の例)。

フレット図をある拍の位置に (例では、小節内 3 拍目) 移動したい場合には、@c
音符が拍に揃えられる 2 つ目の方法がより適しています。
"
  doctitleja = "フレット図の位置を変更する方法"

%% Translation of GIT committish: c043783aac6c35926d633aa2daf60ed4f2e7ca7a
  texidocfr = "
Différents moyens permettent de repositionner un diagramme de fret pour
éviter des collisions ou le placer entre deux notes :

@enumerate
@item
La modification des valeurs de @code{padding} ou de @code{extra-offset}
comme pour la première ligne ;
@item
L'adjonction d'une voix invisible dans laquelle les diagrammes sont
attachés à des notes invisibles comme pour la deuxième ligne.
@end enumerate

Lorsque le diagramme doit correspondre à une position rythmique dans la
mesure, comme au troisième temps de la deuxième mesure, la seconde
méthode est plus appropriée puisque le diagramme sera aligné sur le
temps.
"

  doctitlefr = "Repositionnement d'un diagramme de fret"

%% Translation of GIT committish: 70abecb938c2bb752967bd56b7402dd8129838a5
  texidoces = "
Si queremos mover un diagrama de posiciones de acorde, por
ejemplo, para evitar la colisión, o situarlo entre dos notas,
tenemos varias posibilidades.

1) Modificar el valor de las propiedades @code{padding} (relleno)
o @code{extra-offset} (desplazamiento adicional) como se muestra
en la primera línea.

2) Podemos añadir una voz invisible y adjuntar los diagramas de
posiciones a las notas invisibles de esa voz (como se ve en la
segunda línea).

Si tenemos que mover el diagrama según una posición rítmica dentro
del compás (en el ejemplo, la tercera parte del compás) es mejor
el segundo ejemplo, porque el diagrama se alinea con el tercer
pulso por sí solo.

"
  doctitlees = "Cómo cambiar la posición de un diagrama de posiciones"

%% Translation of GIT committish: a089ca62fd9b3770a932061207262fe81063dc56
  texidocca = "
Si volem moure un diagrama de posicions d'acord, per exemple, per
  evitar una col·lisió, o situar-lo entre dues notes, tenim
  diverses possibilitats:

1) modificar els valors de farciment #'padding o del desplaçament
addicional #'extra-offset (como es mostra en el primer exemple)

2) podem afegir una veu invisible i adjuntar els diagrames de
posicions a les notes invisibles d'aquesta veu (com es veu en el
segon exemple).

Si hem de moure el diagrama segons una posició rítmica dins del
compàs (a l'exemple, la tercera part del compàs) és millor el
segon exemple, perquè el diagrama s'alinea amb la tercera pulsació
per si sol

"
  doctitleca = "Com canviar la posició d'un diagrama de posicions"

  categories = "Fretted strings, Specific notation, Tweaks and
                overrides"

  texidoc = "
If you want to move the position of a fret diagram, for example, to
avoid collision, or to place it between two notes, you have various
possibilities.

1) Modify the value of the @code{padding} or @code{extra-offset}
property (as shown in the first line).

2) You can add an invisible voice and attach the fret diagrams to the
invisible notes in that voice (as shown in the second line).

If you need to move the fret according with a rythmic position inside
the bar (in the example, the third beat of the measure) the second
example is better, because the fret is aligned with the third beat
itself.
"

  doctitle = "How to change fret diagram position"
} % begin verbatim


harmonies = \chordmode
{
  a8:13
  \once \override ChordNames.ChordName.extra-offset = #'(10 . 0)
  b8:13 s4. |
  s2 b2:13
}

\score {
  <<
    \new ChordNames \harmonies
    \new Staff {
      % Method 1.
      a8^\markup \fret-diagram "6-x;5-0;4-2;3-0;2-0;1-2;"
      \once \override TextScript.extra-offset = #'(10 . 0)
      b4.~^\markup \fret-diagram "6-x;5-2;4-4;3-2;2-2;1-4;"
        b4. a8 | \break

      % Method 2.
      <<
        { a8 b4.~ b4. a8 }
        { s2 s2^\markup \fret-diagram  "6-x;5-2;4-4;3-2;2-2;1-4;" }
      >> |
    }
  >>
}



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