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