%% 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/creating-custom-key-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.24.0"

\header {
%% Translation of GIT committish: 0cc270b871321ae5aa8622cea8d8262aafd16641
  texidocja = "
LilyPond はカスタマイズされた調号をサポートしています。この例では、@c
フラットを広範囲に表示する D マイナーを作成しています。
"
  doctitleja = "カスタマイズされた調号を作成する"

%% Translation of GIT committish: de1e42ce512f3690387cdd065109bddff1b7bd6d
  texidocfr = "
LilyPond accepte les armures personnalisées. Dans cet exemple, il s'agit
d'une tonalité de ré mineur et ré majeur auxquelles on rajoute des
bémols.
"

  doctitlefr = "Création d'armures personnalisées"

%% Translation of GIT committish: 1bf2403e1cd7038a1e7ea62da560af601e3694fc
  texidoces = "
LilyPond contempla armaduras de tonalidad personalizadas.  En este
ejemplo se muestra una armadura de Re@tie{}menor y Re@tie{}mayor
con un rango ampliado de bemoles mostrados.

"

  doctitlees = "Creación de armaduras de clave personalizadas"

%% Translation of GIT committish: 7798429d60ba0d70cb640109f4965ba1454aca7e
  texidocca = "
El LilyPond accepta armadures personalitzades. En aquest exemple, 
es mostra l'armadura de re menor amb una rang estès de bemolls.

"
  doctitleca = "Creació d'armadures personalitzades"

  categories = "Contexts and engravers, Pitches, Staff notation, Tweaks
                and overrides"

  texidoc = "
LilyPond supports custom key signatures. In this example, print for
D@tie{}minor and D@tie{}major with an extended range of shown flats.
"

  doctitle = "Creating custom key signatures"
} % begin verbatim


\new Staff \with {
  \override StaffSymbol.line-count = #8
  \override KeySignature.flat-positions = #'((-7 . 6))
  \override KeyCancellation.flat-positions = #'((-7 . 6))
  \override KeySignature.sharp-positions = #'((-6 . 7))
  \override KeyCancellation.sharp-positions = #'((-6 . 7))

  \override Clef.stencil =
    #(lambda (grob)
        (grob-interpret-markup grob
           #{ \markup\combine
                \musicglyph "clefs.C"
                \translate #'(-3 . -2)
                  \musicglyph "clefs.F"
           #}))
    clefPosition = #3
    middleCPosition = #3
    middleCClefPosition = #3
}

{
  \key d\minor f bes, f bes, |
  \key d\major fis b, fis b, |
}



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