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