X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Fsnippets%2Fisolated-percent-repeats.ly;h=c8fb9bc22f9efe600f6898f714561373f1bf1550;hb=10597764dc89ea9671e29771a78d799645ffa753;hp=cd6f600fd9c576f22a0e9d86b1709c620c16ce35;hpb=92782fde87fb68e945b9eb60cacab6c01d0397df;p=lilypond.git diff --git a/Documentation/snippets/isolated-percent-repeats.ly b/Documentation/snippets/isolated-percent-repeats.ly index cd6f600fd9..c8fb9bc22f 100644 --- a/Documentation/snippets/isolated-percent-repeats.ly +++ b/Documentation/snippets/isolated-percent-repeats.ly @@ -1,42 +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.4" +\version "2.18.0" \header { lsrtags = "repeats" -%% Translation of GIT committish: b2d4318d6c53df8469dfa4da09b27c15a374d0ca - 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: d96023d8792c8af202c7cb8508010c0d3648899d - texidocde = " -Isolierte Prozentwiederholungen können auch ausgegeben werden. Das wird -erreicht, indem man eine Ganztaktpause notiert und ihre Ausgabeform -ändert: - -" - doctitlede = "Isolierte Prozentwiederholungen" - 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 } -