%% 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/appoggiatura-or-grace-note-before-a-bar-line.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: de1e42ce512f3690387cdd065109bddff1b7bd6d
  texidocfr = "
Par défaut, appogiatures et autres notes d'ornement sur le premier temps
d'une mesure s'impriment après la barre. Dans le cas d'une ligne unique,
elles peuvent toutefois précéder la barre grâce à l'insertion d'une
barre invisible puis d'une visible.

Néanmoins, dans le cas d'un système à plusieurs portées, l'ajout d'une
barre invisble gène le bonn positionnement des silences de mesure ; ils
ne sont plus vraiment centrés, mais légèrement décalés sur la gauche.
Une meilleure solution en pareil cas est d'utiliser la commande
@code{\\afterGrace} tout en jouant sur le réglage de sa propriété
@code{afterGraceFraction}.
"

  doctitlefr = "Appoggiature avant une barre de mesure"

%% Translation of GIT committish: 61b32ff2340073b2d9600a20fdedf65d58be720b
  texidoces = "
De manera predeterminada, las apoyaturas y las notas de adorno que
están en el primer pulso de un compás se imprimen después de la
línea divisoria.  En pentagramas sueltos, una posible solución
para que se impriman antes de la línea divisoria es añadir una
línea invisible y después la línea visible.

Sin embargo, en sistemas de varios pentagramas, añadir una barra
de compás invisible distorsiona el posicionamiento de los
silencios de compás completo en las otras pautas; ya no estarían
centrados sino desplazados ligeramente hacia la izquierda.  Una
solución mejor para tales situaciones es usar la instrucción
@code{\\afterGrace} command junto a la configuración apropiada de
@code{afterGraceFraction}.
"

  doctitlees = "Apoyatura o nota de adorno antes de la línea divisoria"

  categories = "Rhythms, Workaround"

  texidoc = "
By default, appoggiaturas and grace notes that occur on the first beat
of a measure are printed after the bar line. A possible solution for
single staves to print it before the bar line is to add an invisible
bar line and then the visible one.

In multi-staff systems, however, adding an invisible bar line distorts
the positioning of full-bar rests in other staves; they are no longer
centered but slightly shifted to the left. A better solution for such
situations is to use the @code{\\afterGrace} command with setting
@code{afterGraceFraction} appropriately.
"

  doctitle = "Appoggiatura or grace note before a bar line"
} % begin verbatim


<<
  {
    \appoggiatura d''8 c''4 r2. |
    \appoggiatura { \bar "" d''8 \bar "|" } |
    c''4 r2.
  }
  { R1 | R1 }
>>

afterGraceFraction = 15/16

<<
  {
    \appoggiatura d''8 c''4 \afterGrace r2. d''8( |
    c''4) r2.
  }
  { R1 | R1 }
>>



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