-% 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
}
\alternative {
{ d1 }
- { \repeatGliss c e1 }
+ { \repeatGliss c \once \omit StringNumber e1\2 }
}
}
\context TabVoice { \clef "moderntab" \music }
>>
>>
-}
\ No newline at end of file
+}