X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;ds=sidebyside;f=Documentation%2Fsnippets%2Fextending-glissandi-across-repeats.ly;h=698fc4a72390558d6f91bd26b0ac34c50172a121;hb=c905e2e971b69290ccfe4eed9b1d1659381d5497;hp=4656fac4430b740aa164f4e84ffe36158e7fe49e;hpb=01df8ad908c92687d0c352e5ad5f067e52809423;p=lilypond.git diff --git a/Documentation/snippets/extending-glissandi-across-repeats.ly b/Documentation/snippets/extending-glissandi-across-repeats.ly index 4656fac443..698fc4a723 100644 --- a/Documentation/snippets/extending-glissandi-across-repeats.ly +++ b/Documentation/snippets/extending-glissandi-across-repeats.ly @@ -1,30 +1,30 @@ -% DO NOT EDIT this file manually; it is automatically -% generated from Documentation/snippets/new -% Make any changes in Documentation/snippets/new/ -% and then run scripts/auxiliar/makelsr.py -% -% This file is in the public domain. -%% Note: this file works from version 2.17.6 -\version "2.17.6" +%% 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.19.22" \header { lsrtags = "staff-notation, tweaks-and-overrides" + texidoc = " -A glissando which extends into several @code{\\alternative} blocks -can be simulated by adding a hidden grace note with a glissando -at the start of each @code{\\alternative} block. The grace note -should be at the same pitch as the note which starts the initial -glissando. This is implemented here with a music function which -takes the pitch of the grace note as its argument. +A glissando which extends into several @code{\\alternative} blocks can +be simulated by adding a hidden grace note with a glissando at the +start of each @code{\\alternative} block. The grace note should be at +the same pitch as the note which starts the initial glissando. This is +implemented here with a music function which takes the pitch of the +grace note as its argument. Note that in polyphonic music the grace note must be matched with corresponding grace notes in all other voices. + " doctitle = "Extending glissandi across repeats" } % begin verbatim - -repeatGliss = #(define-music-function (parser location grace) +repeatGliss = #(define-music-function (grace) (ly:pitch?) #{ % the next two lines ensure the glissando is long enough @@ -54,7 +54,7 @@ music = \relative c' { } \alternative { { d1 } - { \repeatGliss c e1 } + { \repeatGliss c \once \omit StringNumber e1\2 } } } @@ -67,4 +67,4 @@ music = \relative c' { \context TabVoice { \clef "moderntab" \music } >> >> -} \ No newline at end of file +}