%% Generated by lilypond-book
%% Options: [exampleindent=10.16\mm,indent=0\mm,line-width=160\mm]
\include "lilypond-book-preamble.ly"


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

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



\paper {
  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 Snippet Repository
%% (http://lsr.di.unimi.it).
%%
%% Make any changes in the LSR itself, or in
%% `Documentation/snippets/new/`, then run
%% `scripts/auxiliar/makelsr.pl`.
%%
%% This file is in the public domain.

\version "2.23.13"

\header {
%% Translation of GIT committish: 0cc270b871321ae5aa8622cea8d8262aafd16641
  texidocja = "
衝突を避けたり、2 つの音符の間に配置したいなどの目的で、@c
フレット図の位置を移動したい場合は、いくつかの方法があります:

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

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

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

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

@itemize
@item
La modification des valeurs de @code{padding} ou de @code{extra-offset}
comme pour le second diagramme ;
@item
L'adjonction d'une voix invisible dans laquelle les diagrammes sont
attachés à des notes invisibles comme pour le troisième diagramme.
@end itemize

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: 06e7d00a2bd52124489bdd8e106199da225bebb6
  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 los valores de relleno #'padding o del desplazamiento
adicional #'extra-offset (como se muestra en el primer ejemplo)

2) podemos añadir una voz invisible y adjuntar los diagramas de
posiciones a las notas invisibles de esa voz (como se ve en el segundo
ejemplo).

 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 posicion 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"

  lsrtags = "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 #'padding or #'extra-offset values (as shown in the first
snippet)

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

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
% THE FOLLOWING IS THE COMMAND TO MOVE THE CHORD NAME
  \once \override ChordNames.ChordName.extra-offset = #'(10 . 0)
  b8:13 s2.
% THIS LINE IS THE SECOND METHOD
    s4 s4  b4:13
}

\score
{
  <<
    \new ChordNames \harmonies
    \new Staff
    {a8^\markup { \fret-diagram  "6-x;5-0;4-2;3-0;2-0;1-2;"  }
% THE FOLLOWING IS THE COMMAND TO MOVE THE FRET DIAGRAM
     \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
% HERE IS THE SECOND METHOD
     <<
       { a8 b4.~ b4. a8}
       { s4 s4 s4^\markup { \fret-diagram  "6-x;5-2;4-4;3-2;2-2;1-4;"  }
       }
     >>
   }
  >>
}



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