%% 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/creating-custom-key-signatures.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 = "
LilyPond はカスタマイズされた調号をサポートしています。この例では、@c
フラットを広範囲に表示する D マイナーを作成しています。
"
  doctitleja = "カスタマイズされた調号を作成する"

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

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

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

  lsrtags = "contexts-and-engravers, pitches, staff-notation, tweaks-and-overrides"

  texidoc = "
LilyPond supports custom key signatures.  In this example, print for D
minor with an extended range of printed 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))
  % presumably sharps are also printed in both octaves
  \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,
}



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