]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/sub-dividing-beams.ly
Merge branch 'master' into lilypond/translation
[lilypond.git] / input / lsr / sub-dividing-beams.ly
1 %% Do not edit this file; it is auto-generated from LSR http://lsr.dsi.unimi.it
2 %% This file is in the public domain.
3 \version "2.11.62"
4
5 \header {
6   lsrtags = "rhythms"
7
8   texidoc = "
9 The beams of consecutive 16th (or shorter) notes are, by default, not
10 sub-divided.  That is, the three (or more) beams stretch unbroken over
11 entire groups of notes.  This behavior can be modified to sub-divide
12 the beams into sub-groups by setting the property
13 @code{subdivideBeams}. When set, multiple beams will be sub-divided at
14 intervals defined by the current value of @code{beatLength} by reducing
15 the multiple beams to just one beam between the sub-groups. Note that
16 @code{beatLength} defaults to a quarter note if not set explicitly.  It
17 must be set to a fraction giving the duration of the beam sub-group
18 using the @code{make-moment} function, as shown here:
19
20
21
22 "
23   doctitle = "Sub-dividing beams"
24 } % begin verbatim
25 \relative c'' {
26   c32[ c c c c c c c]
27   \set subdivideBeams = ##t
28   c32[ c c c c c c c]
29
30   % Set beam sub-group length to an eighth note
31   \set beatLength = #(ly:make-moment 1 8)
32   c32[ c c c c c c c]
33
34   % Set beam sub-group length to a sixteenth note
35   \set beatLength = #(ly:make-moment 1 16)
36   c32[ c c c c c c c]
37 }