PageRenderTime 17ms CodeModel.GetById 14ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/lilypond-2.15.41/Documentation/snippets/stemlets.ly

#
Happy | 48 lines | 35 code | 13 blank | 0 comment | 0 complexity | e3b525a9330f12d5237237a6394096e3 MD5 | raw file
 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.14.2"
 8
 9\header {
10  lsrtags = "contemporary-notation, rhythms"
11
12  texidoc = "
13In some notational conventions beams are allowed to extend over rests.
14Depending on preference, these beams may drop 'stemlets' to help the
15eye appreciate the rhythm better, and in some modern music the rest
16itself is omitted and only the stemlet remains.
17
18
19This snippet shows a progression from traditional notation, to beams
20over the rest, to stemlets over the rest, to stemlets alone.  Stemlets
21are generated by overriding the @code{'stemlet-length} property of
22@code{Stem}, while rests are hidden by setting @code{'transparent =
23##t}.
24
25
26Some @code{\\markup} elements are included in the source to highlight
27the 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}
48