]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/snippets/new/adding-timing-marks-to-long-glissandi.ly
Imported Upstream version 2.16.1
[lilypond.git] / Documentation / snippets / new / adding-timing-marks-to-long-glissandi.ly
diff --git a/Documentation/snippets/new/adding-timing-marks-to-long-glissandi.ly b/Documentation/snippets/new/adding-timing-marks-to-long-glissandi.ly
new file mode 100644 (file)
index 0000000..f4ff3a7
--- /dev/null
@@ -0,0 +1,48 @@
+\version "2.15.15"
+
+\header {
+  lsrtags = "expressive-marks, staff-notation, tweaks-and-overrides"
+
+  texidoc = "
+Skipped beats in very long glissandi are sometimes indicated by
+timing marks, often consisting of stems without noteheads.  Such
+stems can also be used to carry intermediate expression markings.
+
+If the stems do not align well with the glissando, they may need to
+be repositioned slightly.
+"
+
+  doctitle = "Adding timing marks to long glissandi"
+}
+
+glissandoSkipOn = {
+  \override NoteColumn #'glissando-skip = ##t
+  \override NoteHead #'transparent = ##t
+  \override NoteHead #'no-ledgers = ##t
+}
+
+glissandoSkipOff = {
+  \revert NoteColumn #'glissando-skip
+  \revert NoteHead #'transparent
+  \revert NoteHead #'no-ledgers
+}
+
+\relative c'' {
+  r8 f8\glissando
+  \glissandoSkipOn
+  f4 g a a8\noBeam
+  \glissandoSkipOff
+  a8
+
+  r8 f8\glissando
+  \glissandoSkipOn
+  g4 a8
+  \glissandoSkipOff
+  a8 |
+
+  r4 f\glissando \<
+  \glissandoSkipOn
+  a4\f \>
+  \glissandoSkipOff
+  b8\! r |
+}