]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/snippets/isolated-percent-repeats.ly
Build: end directories in their bare names and avoid some double slashes in logs.
[lilypond.git] / Documentation / snippets / isolated-percent-repeats.ly
index 31d31ddc56775df9e938da0ad8d8a65da4af7057..43f11ea2b1f92b12d4e3016299e21608ef892ebd 100644 (file)
@@ -1,20 +1,19 @@
 %% Do not edit this file; it is automatically
 %% generated from LSR http://lsr.dsi.unimi.it
 %% This file is in the public domain.
-\version "2.13.16"
+\version "2.12.2"
 
 \header {
   lsrtags = "repeats"
 
-%% Translation of GIT committish: 1d589aa04c20d7711bf662618adbdd6d445db29d
+%% Translation of GIT committish: fa19277d20f8ab0397c560eb0e7b814bd804ecec
   texidoces = "
-También se pueden imprimir símbolos de porcentaje sueltos.  Esto se
-hace introduciendo un silencio multicompás con una función de
-impresión distinta:
+También se pueden imprimir símbolos de porcentaje sueltos.
 
 "
   doctitlees = "Símbolos de porcentaje sueltos"
 
+
 %% Translation of GIT committish: 0a868be38a775ecb1ef935b079000cebbc64de40
   texidocde = "
 Isolierte Prozentwiederholungen können auch ausgegeben werden.  Das wird
@@ -23,6 +22,7 @@ erreicht, indem man eine Ganztaktpause notiert und ihre Ausgabeform
 
 "
   doctitlede = "Isolierte Prozentwiederholungen"
+
 %% Translation of GIT committish: a5bde6d51a5c88e952d95ae36c61a5efc22ba441
   texidocfr = "
 Des symboles de pourcentage isolés peuvent aussi être obtenus, au
@@ -33,17 +33,19 @@ moyen d'un silence multi-mesures dont on modifie l'aspect :
 
 
   texidoc = "
-Isolated percents can also be printed.  This is done by entering a
-multi-measure rest with a different print function:
+Isolated percents can also be printed.
 
 "
   doctitle = "Isolated percent repeats"
 } % begin verbatim
 
+makePercent =
+#(define-music-function (parser location note) (ly:music?)
+   "Make a percent repeat the same length as NOTE."
+   (make-music 'PercentEvent
+               'length (ly:music-length note)))
+
 \relative c'' {
-  \override MultiMeasureRest #'stencil
-    = #ly:multi-measure-rest::percent
-  \override MultiMeasureRest #'thickness = #0.48
-  R1
+  \makePercent s1
 }