%% 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)),quote]
\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))
  line-width = 160\mm - 2.0 * 10.16\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/customizing-fretboard-fret-diagrams.ly"
\sourcefileline 0
%% DO NOT EDIT this file manually; it was automatically
%% generated from `Documentation/snippets/new/`.
%%
%% Make any changes in `Documentation/snippets/new/`,
%% then run `scripts/auxiliar/makelsr.pl --new`.
%%
%% This file is in the public domain.
%%
%% Note: this file needs at least LilyPond version 2.25.25.

\version "2.25.25"

\header {
%% Translation of GIT committish: a8a85e19654e46d725563e6deba44083ef137a2c
  texidocja = "
フレット図のプロパティは @code{fret-diagram-details} からセットできます。@c
FretBoardのフレット図では、オーバライドは @code{FretBoards.FretBoard}
オブジェクトに適用されます。@code{FretBoards} は @code{Voice} のように@c
最下位のコンテキストであるため、プロパティのオーバライドでは省略することが@c
できます。
"
  doctitleja = "フレットボードのフレット図をカスタマイズする"

%% Translation of GIT committish: 2f3474d9af596d677ed5b7ce720ae4d0954a6b51
  texidocit = "
Le proprietà del diagramma dei tasti possono essere impostate tramite
@code{'fret-diagram-details}.  Per i diagrammi dell'oggetto FretBoard,
gli override vengono applicati all'oggetto @code{FretBoards.FretBoard}.
Come @code{Voice}, @code{FretBoards} è un contesto di basso livello,
dunque può essere omesso negli override delle proprietà.
"
  doctitleit = "Personalizzare la tastiera del diagramma dei tasti"

%% Translation of GIT committish: 1abe87de51b9b00a391da1be4cf4b5ebe4021ca9
  texidocfr = "
Les propriétés d'un diagramme de fret peuvent se modifier à l'aide de la
propriété @code{'fret-diagram-details}. En matière de diagramme de fret,
les adaptations s'appliquent à l'objet @code{FretBoards.FretBoard}. Un
@code{FretBoards} est comparable à un @code{Voice} : il s'agit d'un
contexte du plus bas niveau, et il n'est donc pas primordial de
l'instancier de manière explicite pour adapter ses propriétés.
"

  doctitlefr = "Personnalisation de diagrammes de fret"

%% Translation of GIT committish: 2dbd7c68d29e97631d7ef0d5f324fdc0ad92eccf
  texidoces = "
Se pueden modificar las propiedades de los diagramas de posiciones
de acordes estableciendo la propiedad
@code{fret-diagram-details}. Para los diagramas de posiciones de
@code{FretBoard}, se aplican los overrides (sobreescrituras) al
objeto @code{FretBoards.FretBoard}.  Como @code{Voice},
@code{FretBoards} es un contexto del nivel inferior, y por tanto
se puede omitir su nombre en la sobreescritura de propiedades.

"
  doctitlees = "Personalizar los diagramas de posiciones"

%% Translation of GIT committish: 0a868be38a775ecb1ef935b079000cebbc64de40
  texidocde = "
Eigenschaften von Bunddiagrammen können in
@code{'fret-diagram-details} verändert werden.  Einstellungen mit
dem @code{\override}-Befehl werden dem @code{FretBoards.FretBoard}-Objekt
zugewiesen.  Genauso wie @code{Voice} ist auch @code{FretBoards} ein
Kontext der niedrigsten Ebene, weshalb der Kontext auch in dem Befehl
weggelassen werden kann.

"
  doctitlede = "Bunddiagramme anpassen"

%% Translation of GIT committish: 8ffecf6be17c6ec2ff87cf31873121a8cce29b09
  texidocca = "
Es poden establir les propietats dels diagrames de posicions
d'acords per mitjà de @code{'fret-diagram-details}.  Per als
diagrames de posicions de FretBoard, s'apliquen els
overrides (sobreescriptures) a l'objecte
@code{FretBoards.FretBoard}. Com @code{Voice}, @code{FretBoards}
és un context del nivell inferior, i per tant es pot ometre el seu
nom a la sobreescriptura de propietats.

"
  doctitleca = "Personalitzar els diagrames de posicions"

  categories = "Fretted strings, Tweaks and overrides"

  texidoc = "
Fret diagram properties can be modified by setting the
@code{fret-diagram-details} property.  For @code{FretBoard} fret
diagrams, overrides are applied to the @code{FretBoards.FretBoard}
object.  Like @code{Voice}, @code{FretBoards} is a bottom-level
context, and therefore can be omitted in property overrides.
"

  doctitle = "Customizing fretboard fret diagrams"
} % begin verbatim


\include "predefined-guitar-fretboards.ly"

\storePredefinedDiagram #default-fret-table \chordmode { c' }
                        #guitar-tuning
                        "x;1-1-(;3-2;3-3;3-4;1-1-);"

% shorthand
oo = #(define-music-function
       (grob-path value)
       (list? scheme?)
       #{ \once \override $grob-path = #value #})

<<
  \new ChordNames {
    \chordmode { c1 | c | c | d | bes }
  }
  \new FretBoards {
    % Set global properties of fret diagram
    \override FretBoards.FretBoard.size = 1.2
    \override FretBoard.fret-diagram-details.finger-code = #'in-dot
    \override FretBoard.fret-diagram-details.dot-color = #'white
    \chordmode {
      c
      \oo FretBoard.size #1.0
      \oo FretBoard.fret-diagram-details.barre-type #'straight
      \oo FretBoard.fret-diagram-details.dot-color #'black
      \oo FretBoard.fret-diagram-details.finger-code #'below-string
      c'
      \oo FretBoard.fret-diagram-details.barre-type #'none
      \oo FretBoard.fret-diagram-details.number-type #'arabic
      \oo FretBoard.fret-diagram-details.orientation #'landscape
      \oo FretBoard.fret-diagram-details.mute-string "M"
      \oo FretBoard.fret-diagram-details.label-dir #LEFT
      \oo FretBoard.fret-diagram-details.dot-color #'black
      c'
      \oo FretBoard.fret-diagram-details.finger-code #'below-string
      \oo FretBoard.fret-diagram-details.dot-radius #0.35
      \oo FretBoard.fret-diagram-details.dot-position #0.5
      \oo FretBoard.fret-diagram-details.fret-count #3
      d
      \oo FretBoard.fret-diagram-details.barre-type #'straight
      \oo FretBoard.fret-diagram-details.finger-code #'none
      \oo FretBoard.fret-diagram-details.dot-radius #0.25
      \oo FretBoard.fret-diagram-details.dot-color #'black
      \oo FretBoard.fret-diagram-details.string-overhang #0.
      \oo FretBoard.fret-diagram-details.barre-thickness #2.
      bes
    }
  }
  \new Voice {
    c'1 | c' | c' | d' | bes
  }
>>



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