]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/stemlets.ly
Merge branch 'lilypond/translation'
[lilypond.git] / Documentation / snippets / stemlets.ly
1 %% Do not edit this file; it is automatically
2 %% generated from LSR http://lsr.dsi.unimi.it
3 %% This file is in the public domain.
4 \version "2.13.39"
5
6 \header {
7   lsrtags = "rhythms"
8
9   texidoc = "
10 In some notational conventions beams are allowed to extend over rests.
11 Depending on preference, these beams may drop 'stemlets' to help the
12 eye appreciate the rhythm better, and in some modern music the rest
13 itself is omitted and only the stemlet remains.
14
15
16 This snippet shows a progression from traditional notation, to beams
17 over the rest, to stemlets over the rest, to stemlets alone.  Stemlets
18 are generated by overriding the @code{'stemlet-length} property of
19 @code{Stem}, while rests are hidden by setting @code{'transparent =
20 ##t}.
21
22
23 Some @code{\\markup} elements are included in the source to highlight
24 the different notations.
25
26 "
27   doctitle = "Stemlets"
28 } % begin verbatim
29
30 \paper { ragged-right = ##f }
31
32 {
33   c'16^\markup { traditional } d' r f'
34   g'16[^\markup { beams over rests } f' r d']
35
36   % N.B. use Score.Stem to set for the whole score.
37   \override Staff.Stem #'stemlet-length = #0.75
38
39   c'16[^\markup { stemlets over rests } d' r f']
40   g'16[^\markup { stemlets and no rests } f'
41   \once \override Rest #'transparent = ##t
42   r16 d']
43 }
44