X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Fsnippets%2Fisolated-percent-repeats.ly;h=45fe68edd73bd7e463003163219533e8b443724c;hb=5d84bfad4626892bcffd05adcced53c8a2329047;hp=556c9e4c27783ea6287054eb96dc8710d2e9dcd4;hpb=94408d4a2e538e8812561f29e09116ede58dd042;p=lilypond.git diff --git a/Documentation/snippets/isolated-percent-repeats.ly b/Documentation/snippets/isolated-percent-repeats.ly index 556c9e4c27..45fe68edd7 100644 --- a/Documentation/snippets/isolated-percent-repeats.ly +++ b/Documentation/snippets/isolated-percent-repeats.ly @@ -1,49 +1,27 @@ -%% 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.29" +\version "2.19.22" \header { lsrtags = "repeats" -%% Translation of GIT committish: 0b55335aeca1de539bf1125b717e0c21bb6fa31b - 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: - -" - doctitlees = "Símbolos de porcentaje sueltos" - -%% Translation of GIT committish: 0a868be38a775ecb1ef935b079000cebbc64de40 - texidocde = " -Isolierte Prozentwiederholungen können auch ausgegeben werden. Das wird -erreicht, indem man eine Ganztaktpause notiert und ihre Ausgabeform -ändert: - -" - doctitlede = "Isolierte Prozentwiederholungen" -%% Translation of GIT committish: a5bde6d51a5c88e952d95ae36c61a5efc22ba441 - texidocfr = " -Des symboles de pourcentage isolés peuvent aussi être obtenus, au -moyen d'un silence multi-mesures dont on modifie l'aspect : - -" - doctitlefr = "Répétition en pourcent isolée" - - 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 (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 } -