]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/new/adding-timing-marks-to-long-glissandi.ly
54d3e45d3f743ab243eaeb23e7c2f61a3b7fd6de
[lilypond.git] / Documentation / snippets / new / adding-timing-marks-to-long-glissandi.ly
1 \version "2.16.0"
2
3 \header {
4   lsrtags = "expressive-marks, staff-notation, tweaks-and-overrides"
5
6   texidoc = "
7 Skipped beats in very long glissandi are sometimes indicated by
8 timing marks, often consisting of stems without noteheads.  Such
9 stems can also be used to carry intermediate expression markings.
10
11 If the stems do not align well with the glissando, they may need to
12 be repositioned slightly.
13 "
14
15   doctitle = "Adding timing marks to long glissandi"
16 }
17
18 glissandoSkipOn = {
19   \override NoteColumn #'glissando-skip = ##t
20   \override NoteHead #'transparent = ##t
21   \override NoteHead #'no-ledgers = ##t
22 }
23
24 glissandoSkipOff = {
25   \revert NoteColumn #'glissando-skip
26   \revert NoteHead #'transparent
27   \revert NoteHead #'no-ledgers
28 }
29
30 \relative c'' {
31   r8 f8\glissando
32   \glissandoSkipOn
33   f4 g a a8\noBeam
34   \glissandoSkipOff
35   a8
36
37   r8 f8\glissando
38   \glissandoSkipOn
39   g4 a8
40   \glissandoSkipOff
41   a8 |
42
43   r4 f\glissando \<
44   \glissandoSkipOn
45   a4\f \>
46   \glissandoSkipOff
47   b8\! r |
48 }