]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/isolated-percent-repeats.ly
Imported Upstream version 2.16.0
[lilypond.git] / Documentation / snippets / isolated-percent-repeats.ly
1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.dsi.unimi.it
3 %% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
4 %% and then run scripts/auxiliar/makelsr.py
5 %%
6 %% This file is in the public domain.
7 \version "2.16.0"
8
9 \header {
10   lsrtags = "repeats"
11
12   texidoc = "
13 Isolated percents can also be printed.
14
15 "
16   doctitle = "Isolated percent repeats"
17 } % begin verbatim
18
19
20 makePercent =
21 #(define-music-function (parser location note) (ly:music?)
22    "Make a percent repeat the same length as NOTE."
23    (make-music 'PercentEvent
24                'length (ly:music-length note)))
25
26 \relative c'' {
27   \makePercent s1
28 }