]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/snippets/adding-orchestral-cues-to-a-vocal-score.ly
Issue 5167/1: Reorganize markup commands to use object properties
[lilypond.git] / Documentation / snippets / adding-orchestral-cues-to-a-vocal-score.ly
index cf6895718b41b7b35989b130241e1b14d3e46cdf..a03e901d16899ffa01e5add125a12c3ac4b0c584 100644 (file)
@@ -1,34 +1,14 @@
-%% Do not edit this file; it is automatically
-%% generated from LSR http://lsr.dsi.unimi.it
+%% DO NOT EDIT this file manually; it is automatically
+%% generated from LSR http://lsr.di.unimi.it
+%% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
+%% and then run scripts/auxiliar/makelsr.py
+%%
 %% This file is in the public domain.
-\version "2.13.39"
+\version "2.19.22"
 
 \header {
   lsrtags = "staff-notation, vocal-music"
 
-%% Translation of GIT committish: 4c1aa3b16f7b94ca32b0c022f60ed66826d031b0
-
-  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"
-
-
-
-
   texidoc = "
 This shows one approach to simplify adding many orchestral cues to the
 piano reduction in a vocal score.  The music function @code{\\cueWhile}
@@ -47,13 +27,13 @@ can be cued, but they cannot overlap each other in time.
 
 cueWhile =
 #(define-music-function
-   (parser location instrument name dir music)
+   (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
-       s1*0-\markup { \tiny $name }
+     \cueDuring $instrument #dir {
+       \once \override TextScript.self-alignment-X = #RIGHT
+       \once \override TextScript.direction = $dir
+       <>-\markup { \tiny #name }
        $music
      }
    #})