]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/snippets/extending-glissandi-across-repeats.ly
Imported Upstream version 2.19.45
[lilypond.git] / Documentation / snippets / extending-glissandi-across-repeats.ly
index 4656fac4430b740aa164f4e84ffe36158e7fe49e..698fc4a72390558d6f91bd26b0ac34c50172a121 100644 (file)
@@ -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"
 
 \header {
   lsrtags = "staff-notation, tweaks-and-overrides"
+
   texidoc = "
   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.
 
 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
 
 "
   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
   (ly:pitch?)
   #{
     % the next two lines ensure the glissando is long enough
@@ -54,7 +54,7 @@ music =  \relative c' {
   }
   \alternative {
     { d1 }
   }
   \alternative {
     { d1 }
-    { \repeatGliss c e1 }
+    { \repeatGliss c \once \omit StringNumber e1\2 }
   }
 }
 
   }
 }
 
@@ -67,4 +67,4 @@ music =  \relative c' {
       \context TabVoice { \clef "moderntab" \music }
     >>
   >>
       \context TabVoice { \clef "moderntab" \music }
     >>
   >>
-}
\ No newline at end of file
+}