%% Generated by lilypond-book
%% Options: [exampleindent=10.16\mm,indent=0\mm,line-width=160\mm,quote,ragged-right]
\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))
  line-width = 160\mm - 2.0 * 10.16\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))
  ragged-right = ##t
}

\layout {
  
}




% ****************************************************************
% ly snippet:
% ****************************************************************
\sourcefilename "snippets/automatically-changing-the-stem-direction-of-the-middle-note-based-on-the-melody.ly"
\sourcefileline 0
%% DO NOT EDIT this file manually; it was automatically
%% generated from `Documentation/snippets/new/`.
%%
%% Make any changes in `Documentation/snippets/new/`,
%% then run `scripts/auxiliar/makelsr.pl --new`.
%%
%% This file is in the public domain.
%%
%% Note: this file works from version 2.23.2.

\version "2.23.13"

\header {
%% Translation of GIT committish: a8a85e19654e46d725563e6deba44083ef137a2c
  texidocja = "
LilyPond では、@code{Voice} コンテキストに @code{Melody_engraver} を追加し、@c
@code{Stem} の @code{neutral-direction} をオーバライドすることで、@c
譜の中央にある音符の符幹の向きを、メロディに合わせて変更することができます。
"
  doctitleja = "メロディに合わせて譜の中央にある音符の符幹の向きを自動で変更する"

%% Translation of GIT committish: 2f3474d9af596d677ed5b7ce720ae4d0954a6b51
  texidocit = "
LilyPond può modificare la  direzione del gambo della nota centrale di un
rigo in modo che segua la melodia: occorre aggiungere l'incisore
@code{Melody_engraver} al contesto @code{Voice}.

La proprietà di contesto @code{suspendMelodyDecisions} può essere usata
per disattivare questo comportamento localmente.

"
  doctitleit = "Cambiare automaticamente la direzione del gambo della nota centrale in base alla melodia"

%% Translation of GIT committish: a3fd5364fc4f247579da0ed2bfea887ab37285c6
  texidocfr = "
Afin de suivre la ligne mélodique, LilyPond peut inverser l'orientation
de hampe de la note médiane, dès lors qu'aura été ajouté au contexte de
voix le graveur @code{Melody_engraver}.

La propriété de contexte @code{suspendMelodyDecisions} permet, si
besoin, de désactiver temporairement ce comportement.
"

  doctitlefr = "Changement automatique de l'orientation de hampe de la note médiane selon la mélodie"

%% Translation of GIT committish: 942f957aae58fdc7252d6bc2b548a28e9fadc666
  texidoces = "
LilyPond puede alterar la dirección de la plica de las notas que van
en la tercera línea de un pentagrama de forma que siga la melodía,
mediante la adición del grabador @code{Melody_engraver} al contexto
Voice.

"
  doctitlees = "Cambiar la dirección de la plica de las notas de la tercera línea automáticamente, basado en la melodía"

%% Translation of GIT committish: 942f957aae58fdc7252d6bc2b548a28e9fadc666
  texidocca = "
El LilyPond pot alterar la direcció de la plica de les notes que
van en la tercera línia d'un pentagrama de forma que segueixi la
melodia, mitjançant l'addició del gravador @code{Melody_engraver}
al context Voice i sobreescrivint el valor de
  @code{neutral-direction} per a l'objecte Stem (plica).

"
  doctitleca = "Canviar la direcció de la plica de les notes de tercera línia automàticament, basat en la melodia"

  lsrtags = "contexts-and-engravers, pitches"

  texidoc = "
LilyPond can alter the stem direction of the middle note on a staff so
that it follows the melody, by adding the @code{Melody_engraver} to the
@code{Voice} context.

The context property @code{suspendMelodyDecisions} may be used to turn
off this behavior locally.
"

  doctitle = "Automatically changing the stem direction of the middle note based on the melody"
} % begin verbatim


\relative c'' {
  \time 3/4
  a8 b g f b g |
  \set suspendMelodyDecisions = ##t
  a  b g f b g |
  \unset suspendMelodyDecisions
  c  b d c b c |
}

\layout {
  \context {
    \Voice
    \consists "Melody_engraver"
    \autoBeamOff
  }
}



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