%% 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/adding-orchestral-cues-to-a-vocal-score.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 = "
これは、ボーカル譜に添えられるピアノ リダクションに多くの@c
オーケストラの合図音符を追加しやすくするためのスニペットです。@c
音楽関数 @code{\\cueWhile} は 4 つの引数を取ります:
1 つ目は、@code{\\addQuote} と同様の、合図音符の引用元となる音楽です。@c
2 つ目は、合図音符の前に表示される名前です。@c
3 つ目は、音符を @code{\\voiceOne} で表示して名前を譜の上に表示するか、
音符を @code{\\voiceTwo} で表示して名前を譜の下に表示するかを決定する
@code{#UP} または @code{#DOWN} です。@c
4 つ目は、合図音符が出現する部分のピアノの音楽です。@c
合図音符の前に表示される名前は、音符の左端に揃えられます。@c
様々な楽節を合図音符として表示することができますが、@c
一度に複数個重ねることはできません。
"
  doctitleja = "ボーカル譜にオーケストラの合図音符を追加する"

%% Translation of GIT committish: 2f3474d9af596d677ed5b7ce720ae4d0954a6b51
  texidocit = "
L'esempio seguente mostra un approccio per simplificare l'aggiunta di
citazioni orchestrali a una riduzione per pianoforte di una partitura
vocale.  La funzione musicale @code{\\cueWhile} prende quattro argomenti:
la musica da cui prendere la citazione, come è definita da @code{\\addQuote},
il nome da inserire prima delle notine, poi o @code{#UP} o @code{#DOWN} per
specificare o @code{\\voiceOne} col nome sopra il rigo o @code{\\voiceTwo}
col nome sotto il rigo, e infine la musica per pianoforte che deve apparire
in parallelo alle notine.  Il nome dello strumento citato è posto a sinistra
delle notine.  Molti passaggi possono essere citati, ma non possono
sovrapporsi l'un l'altro nel tempo.

"
  doctitleit = "Aggiungere citazioni orchestrali a una partitura vocale"

%% Translation of GIT committish: de1e42ce512f3690387cdd065109bddff1b7bd6d
  texidocfr = "
Lorsque le nombre d'instruments cités dans la réduction pour piano se
multiplie, vous pourriez avoir intérêt à créer votre propre fonction
pour gérer ces repères.  La fonction musicale @code{\\cueWhile} prend
quatre arguments : la musique d'où provient la citation, telle que
définie par @code{\\addQuote}, le nom qui sera mentionné en regard de
cette citation, son positionnement -- @code{UP} ou @code{DOWN} selon
qu'il sera attribué à @code{\\voiceOne} et placé au-dessus ou
@code{\\voiceTwo} et placé en dessous -- et enfin la musique du piano
qui interviendra en parallèle.  Le nom de l'instrument en question
viendra s'aligner sur la gauche de la citation.  Bien que vous puissiez
effectuer plusieurs citations, elle ne peuvent être simultanées.
"

 doctitlefr = "Indication de l'instrument cité dans l'accompagnement d'une partition pour chœur"

%% Translation of GIT committish: cd3e2b0177d366d0a25b4c7628b26455e52175cd
  texidoces = "
Este ejemplo muestra una forma de simplificar la adición de muchas
notas guía orquestales a la reducción de piano en una partitura
vocal.  La función musical @code{\\cueWhile} toma cuatro
argumentos: la música de la que se toma la cita, como viene
definida por @code{\\addQuote}, el nombre que insertar antes de
las notas guía, y después @code{UP} o @code{DOWN} para especificar
@code{\\voiceOne} con el nombre encima del pentagrama o bien
@code{\\voiceTwo} con el nombre debajo del pentagrama, y
finalmente la música de piano con la que las notas guía deben
aparecer en paralelo.  El nombre del instrumento citado se
posiciona a la izquierda de las notas guía.  Se pueden citar
muchos pasajes como guía, pero no se pueden superponer en el
tiempo entre ellos.

"
  doctitlees = "Añadir notas guía orquestales a una partitura vocal"

%% Translation of GIT committish: 27b1197f3bae8512c14d946752cd3e40e7c76016


  texidocde = "
Hier wird gezeigt, wie man das Hinzufügen von vielen Orchsterstichnoten
zu einem Klavierauszug hinzufügen kann.  Die musikalische Funktion
@code{\\cueWhile} braucht vier Argumente:  Die Noten, von denen die
Stichnoten formatiert werden sollen, definiert durch @code{\\addQuote},
die Bezeichnung, die mit den Noten angegeben werden soll, dann entweder
@code{#UP} (hoch) oder @code{#DOWN} (runter) zur Angabe von entweder
@code{\\voiceOne} mit der Bezeichnung über dem System oder @code{\\voiceTwo}
mit der Bezeichnung unter dem System, und schließlich die Klaviermusik,
die parallel zu den Stichnoten gespielt werden soll.  Die Bezeichnung des
Stichnoteninstruments wird links der Stichnoten positioniert.  Viele
Abschnitte können zitiert werden, aber sie dürfen sich nicht überlappen.

"
  doctitlede = "Orchesterstichnoten zu einem Klavierauszug hinzufügen"


%% Translation of GIT committish: 98ac53591234404cd70c5eebd370a598ec74095b
  texidocca = "
   Aquest exemple mostra una forma de simplificar l'addició de
moltes notes guia orquestrals a la reducció de piano a una partitura vocal.
La funció musical @code{\\cueWhile} agafa quatre arguments: la
música de la qual es pren la citació, com ve definida per
@code{\\addQuote},  el nom a inserir abans de la notes guia, i
després @code{#UP} o @code{#DOWN} per especificar @code{\\voiceOne}
amb el nom a sobre del pentagrama o bé @code{\\voiceTwo} amb el  nom
a sota del pentagrama, i finalment la música de piano amb la qual les
notes guia han d'aparèixer en paral·lel.  El nom de l'instrument
citat es posiciona a l'esquerra de les notes guia.   Es poden
citar molts passatges com a guia, però no es poden superposar en
el temps entre ells.

"
  doctitleca = "Afegir notes guia orquestrals a una partitura vocal"

  categories = "Scheme, Staff notation, Vocal music"

  texidoc = "
This snippet shows one approach to simplify adding many orchestral cues
to the piano reduction in a vocal score. The music function
@code{\\cueWhile} takes four arguments: the music from which the cue is
to be taken, as defined by @code{\\addQuote}, the name to be inserted
before the cue notes, then either @code{UP} or @code{DOWN} to specify
either @code{\\voiceOne} with the name above the staff or
@code{\\voiceTwo} with the name below the staff, and finally the piano
music in parallel with which the cue notes are to appear. The name of
the cued instrument is positioned to the left of the cued notes. Many
passages can be cued, but they cannot overlap each other in time.
"

  doctitle = "Adding orchestral cues to a vocal score"
} % begin verbatim


cueWhile =
#(define-music-function
   (instrument name dir music)
   (string? string? ly:dir? ly:music?)
   #{
     \cueDuring $instrument #dir {
       \once \override TextScript.self-alignment-X = #RIGHT
       \once \override TextScript.direction = $dir
       <>-\markup { \tiny #name }
       $music
     }
   #})

flute = \relative c'' {
  \transposition c'
  s4 s4 e g
}
\addQuote "flute" { \flute }

clarinet = \relative c' {
  \transposition bes
  fis4 d d c
}
\addQuote "clarinet" { \clarinet }

singer = \relative c'' { c4. g8 g4 bes4 }
words = \lyricmode { here's the lyr -- ics }

pianoRH = \relative c'' {
  \transposition c'
  \cueWhile "clarinet" "Clar." #DOWN { c4. g8 }
  \cueWhile "flute" "Flute" #UP { g4 bes4 }
}
pianoLH = \relative c { c4 <c' e> e, <g c> }

\score {
  <<
    \new Staff {
      \new Voice = "singer" {
        \singer
      }
    }
    \new Lyrics {
      \lyricsto "singer"
      \words
    }
    \new PianoStaff <<
      \new Staff {
        \new Voice {
          \pianoRH
        }
      }
      \new Staff {
        \clef "bass"
        \pianoLH
      }
    >>
  >>
}



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