%% 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/showing-the-same-articulation-above-and-below-a-note-or-chord.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
ことを認めていません。例えば、@code{c4_\\fermata^\\fermata} では、@c
フェルマータが音符の下のみに表示され、上に表示するよう指定したフェルマータは@c
無視されます。しかし、和音表記を用いてその内部にアーティキュレーションを@c
配置すると、(運指記号と同じように)
アーティキュレーションを好きなだけ表示することができます。@c
このアプローチでは@c
符幹を無視し、アーティキュレーションを符頭との相対位置で配置します。@c
これはこのスニペットのフラジョレットに見られます。@c
和音外に配置されるアーティキュレーションと同じ挙動を得るには、@c
@code{add-stem-support} が必要となります。@c
そのため、解決策は音符を和音として表記し、@code{<...>} の中に@c
アーティキュレーションを追加することです。
向きは常に上向きですが、@c
@code{\\tweak} によって変更することができます:
@code{<c-\\tweak direction #DOWN-\\fermata^\\fermata>}
"
  doctitleja = "同じアーティキュレーションを音符や和音の上と下の両方に表示する"

%% Translation of GIT committish: de1e42ce512f3690387cdd065109bddff1b7bd6d
  texidocfr = "
LilyPond ne permet pas, par défaut, qu'une même articulation (accent,
flageolet, point d'orgue, etc.) se retrouve à la fois au-dessus et
au-dessous d'une note. Par exemple, @code{c4_\\fermata^\\fermata} ne
donnera qu'un seul point d'orgue en dessous du do ; celui du dessus sera
tout bonnement ignoré.

On peut néanmoins accoler des scripts, tels des doigtés, à l'intérieur
d'un accord ; il peut donc y avoir autant d'articulations que de besoin,
ce qui, par voie de conséquence, permet de s'affranchir de la présence
des hampes et de positionner l'articulation relativement à la tête de
note comme dans le cas du flageolet ci-dessous. L'imitation du
traitement d'un script externe à un accord requérant un
@code{add-stem-support} demande de libeller la note comme étant un
accord et d'ajouter les articulations au sein de la construction
@code{<@dots{}>}.

Un simple amendement permettra de rectifier le positionnement habituel
en surplomb : @code{<c-\\tweak direction #DOWN-\\fermata^\\fermata>}
"

  doctitlefr = "Impression d'une même articulation des deux côtés d'une note ou d'un accord"

%% Translation of GIT committish: 1bf2403e1cd7038a1e7ea62da560af601e3694fc
  texidoces = "
De forma predeterminada, LilyPond no permite poner la misma
articulación (un acento, un calderón, un círculo de armónico,
etc.) encima y debajo de la nota.  Por ejemplo,
@code{c4_\\fermata^\\fermata} imprime solamente el calderón
inferior.  El calderón superior sencillamente se ignora.

Sin embargo, se pueden adosar inscripciones (de igual forma que
las digitaciones) dentro de un acorde, lo que significa que es
posible tener tantas articulaciones como se desee. Este enfoque
tiene la ventaja de que ignora la plica y posiciona la
articulación de forma relativa a la cabeza de la nota.  Puede
verse esto en el caso de los flageolets (indicaciones de armónico)
que aparecen en el fragmento de código.  Para recrear el
comportamiento de las inscripciones fuera del acorde, se requiere
@code{add-stem-support}.

La solución consiste en escribir la nota como un acorde y añadir
las articulaciones dentro de los paréntesis en ángulo
@code{<...>}, usando los modificadores de dirección @code{^} y
@code{_} según corresponda.

"
  doctitlees = "Imprimir la misma articulación encima y debajo de la misma nota o acorde"

%% Translation of GIT committish: 8ffecf6be17c6ec2ff87cf31873121a8cce29b09
  texidocca = "
De forma predeterminada, el LilyPond no permet posar la mateixa
articulació (per exemple un accent, un calderó, un cercle d'harmònic,
etc.) a sobre i a sota de la nota.  Per exemple, c4_\\fermata^\\fermata
imprimeix sols el calderó inferior.  El calderó superior senzillament
s'ignora.  No obstant, es poden adjuntar inscripcions (de igual forma
que les digitacions) dins d'un acord, soca que significa que és
possible tenir tantes articulacions com es vulgui.  Aquest enfocament
té l'avantatge que ignora la plica i posiciona l'articulació de
forma relativa al cap de la nota.  Pot veure's això en el cas dels
flageolets (indicacions d'harmònic)) que apareixen en el fragment
de codi.  Per recrear el comportament de les inscripcions fora de
l'acord, es requereix 'add-stem-support.  D'aquesta manera la
solució consisteix en escriure la nota com un acord i afegir les
articulacions dins dels parèntesis en angle <...>.  La direcció
sempre serà cap a dalt, però podem retocar això per mitjà d'una
ordre \\tweak: @code{<c-\\tweak direcció #DOWN-\\fermata^\\fermata>}

"
  doctitleca = "Impressió de la mateixa articulació a sobre i a sota de la mateixa nota o acord"

  categories = "Expressive marks, Tweaks and overrides"

  texidoc = "
By default, LilyPond does not allow the same articulation (an accent, a
fermata, a flageolet, etc.) to be displayed above and below a note. For
example, @code{c4_\\fermata^\\fermata} only shows a fermata below. The
fermata above gets simply ignored.

However, one can stick scripts (just like fingerings) inside a chord,
which means it is possible to have as many articulations as desired.
This approach has the advantage that it ignores the stem and positions
the articulation relative to the note head. This can be seen in the
case of the flageolets in the snippet. To mimic the behaviour of
scripts outside a chord, @code{add-stem-support} would be required.

The solution is thus to write the note as a chord and add the
articulations inside of @code{<...>}, using the direction modifiers
@code{^} and @code{_} as appropriate.
"

  doctitle = "Showing the same articulation above and below a note or chord"
} % begin verbatim


\relative c' {
  <>^"Wrong"
  c2_\fermata^\fermata % The second fermata is ignored!
  <e d'>2^\flageolet_\flageolet

  \stopStaff s1 \startStaff

  <>^"Works if written inside a chord"
  <e_\flageolet d'^\flageolet>2
  <e_\flageolet d'^\flageolet>2
  <e_\flageolet^\flageolet>2
  <e_\fermata^\fermata>2
}



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