%% 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/vertically-aligned-dynamics-and-textscripts.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: a8a85e19654e46d725563e6deba44083ef137a2c
  texidocja = "
全ての @code{DynamicLineSpanner} オブジェクト (ヘアピンや強弱記号テキスト)
は、他のアイテムが邪魔しない限り、@c
譜から少なくとも @code{staff-padding} だけ離れた基準線に配置されます。@c
@code{staff-padding} を十分に大きくすると、強弱記号を揃えることができます。

また、@code{\\textLengthOn} を用いて、テキスト スクリプトをベースラインに@c
揃えることができます。
"
  doctitleja = "強弱記号やテキスト スクリプトを縦方向に揃える"

%% Translation of GIT committish: 2f3474d9af596d677ed5b7ce720ae4d0954a6b51
  texidocit = "
Tutti gli oggetti @code{DynamicLineSpanner} (forcelle e testi di dinamica)
sono posti a una distanza minima dal rigo determinata da @code{'staff-padding}.
Se si imposta @code{'staff-padding} su un valore abbastanza grande,
le dinamiche saranno allineate.

"
  doctitleit = "Dinamiche e segni testuali allineati verticalmente"

%% Translation of GIT committish: 1abe87de51b9b00a391da1be4cf4b5ebe4021ca9
  texidocfr = "
Tous les objets @code{DynamicLineSpanner} (soufflets ou nuances
textuelles) viennent s'aligner sur une ligne de référence placée, par
rapport à la portée, à au moins la valeur de la propriété
@code{staff-padding} sauf lorsque d'autres éléments de notation les en
éloignent plus. Les nuances seront centrés sur une même ligne dès lors
que @code{staff-padding} aura été défini à une valeur suffisante.

C'est le même principe -- en combinaison avec @code{\\textLengthOn} --
qui sert à aligner les indications textuelles sur une ligne de
référence.
"

  doctitlefr = "Alignement vertical des nuances et indications textuelles"

%% Translation of GIT committish: 35d4cc1b78c4105643ca5fdcb44cb717578d6d4a
  texidoces = "
Para todos los objetos @code{DynamicLineSpanner} (esto es,
reguladores y textos de dinámica), la distancia vertical mínima
entre su línea de referencia y el pentagrama viene dada por el
valor dentro de la propiedad @code{staff-padding}, a no ser que
otros elementos de notación los fuercen a situarse en una posición
más alejada.  El establecimiento de esta propiedad a un valor
suficientemente grande, permite alinear las indicaciones de matiz
dinámico.

Se usa una idea similar junto a \\textLengthOn para alinear las
inscripciones de texto a lo largo de su línea de base.

"
  doctitlees = "Indicaciones dinámicas y textuales alineadas verticalmente"

%% Translation of GIT committish: 0a868be38a775ecb1ef935b079000cebbc64de40
texidocde = "
Indem man die @code{'Y-extent}-Eigenschaft auf einen passenden Wert setzt,
können alle @code{DynamicLineSpanner}-Objekte (Crescendo-Klammern und
Dynamik-Texte)  (hairpins and dynamic texts) unabhängig von ihrer
wirklichen Ausdehnung an einem gemeinsamen Referenzpunkt ausgerichtet werden.
Auf diese Weise ist jedes Element vertikal ausgerichtet und der Notensatz
sieht ansprechender aus.

Die gleiche Idee wird benutzt, um Textbeschriftungen an ihrer
Grundlinie auszurichten.

"
  doctitlede = "Vertikale Ausrichtung von Dynamik und Textbeschriftung beeinflussen"

%% Translation of GIT committish: 262abf17c7827e88e3d509100c43920c8e225bec
  texidocca = "
Tots els objectes @code{DynamicLineSpanner} (reguladors i
indicacions dinàmiques de text) se situen amb la seva línia de
referència a una distància d'almenys @code{'staff-padding} del
pentagrama, a no ser que d'altres elements de notació els forci a
col·locar-se a més distància.  Si s'ajusta @code{'staff-padding}
a un valor suficientment gran, les indicacions dinàmiques quedaran
alineades.

S'usa una idea semblant junt a \\textLengthOn per alinear les
inscripcions de text al llarg de la seva línia de base.

"
  doctitleca = "Indicacions dinàmiques i textuals alineades verticalment"

  categories = "Spacing, Tweaks and overrides, Workaround"

  texidoc = "
For all @code{DynamicLineSpanner} objects (i.e., hairpins and dynamic
texts), the vertical minimum distance between their reference line and
the staff is given by the value in the @code{staff-padding} property,
unless other notation elements forces them to be farther away. Setting
this property to a sufficiently large value aligns the dynamics.

The same idea, together with @code{\\textLengthOn}, is used to align
text scripts along their baseline.
"

  doctitle = "Vertically aligned dynamics and textscripts"
} % begin verbatim


music = \relative c' {
  a'2\p b\f
  e4\p f\f\> g, b\p
  c2^\markup { \huge gorgeous } c^\markup { \huge fantastic }
}

{
  \music
  \break
  \override DynamicLineSpanner.staff-padding = 3
  \textLengthOn
  \override TextScript.staff-padding = 1
  \music
}



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