%% 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/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 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 = "
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: de1e42ce512f3690387cdd065109bddff1b7bd6d
  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: 4f16fa98fd258f08e64203c793028ea3e363b1c0
  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.

Se puede usar la propiedad de contexto
@code{suspendMelodyDecisions} para desactivar este comportamiento
localmente.
"
  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"

  categories = "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
% ****************************************************************
