]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/using-beatlength-and-beatgrouping.ly
Merge branch 'master' into nested-bookparts
[lilypond.git] / input / lsr / using-beatlength-and-beatgrouping.ly
1 %% Do not edit this file; it is auto-generated from input/new
2 %% This file is in the public domain.
3 \version "2.11.62"
4
5 \header {
6   lsrtags = "rhythms"
7   texidoc = "
8 The property @code{measureLength} determines where bar lines
9 should be inserted and, with @code{beatLength} and
10 @code{beatGrouping}, how automatic beams should be generated
11 for beam durations and time signatures for which no beam-ending
12 rules are defined.  This example shows several ways of controlling
13 beaming by setting these properties.  The explanations are shown
14 as comments in the code.
15 "
16   doctitle = "Using beatLength and beatGrouping"
17 } % begin verbatim
18
19
20 \relative c'' {
21   \time 3/4
22   % The default in 3/4 time is to beam in three groups
23   % each of a quarter note length
24   a16 a a a a a a a a a a a
25
26   \time 12/16
27   % No auto-beaming is defined for 12/16
28   a16 a a a a a a a a a a a
29
30   \time 3/4
31   % Change time signature symbol, but retain underlying 3/4 beaming
32   \set Score.timeSignatureFraction = #'(12 . 16)
33   a16 a a a a a a a a a a a
34
35   % The 3/4 time default grouping of (1 1 1) and beatLength of 1/8
36   % are not consistent with a measureLength of 3/4, so the beams
37   % are grouped at beatLength intervals
38   \set Score.beatLength = #(ly:make-moment 1 8)
39   a16 a a a a a a a a a a a
40
41   % Specify beams in groups of (3 3 2 3) 1/16th notes
42   % 3+3+2+3=11, and 11*1/16<>3/4, so beatGrouping does not apply,
43   % and beams are grouped at beatLength (1/16) intervals
44   \set Score.beatLength = #(ly:make-moment 1 16)
45   \set Score.beatGrouping = #'(3 3 2 3)
46   a16 a a a a a a a a a a a
47
48   % Specify beams in groups of (3 4 2 3) 1/16th notes
49   % 3+4+2+3=12, and 12*1/16=3/4, so beatGrouping applies
50   \set Score.beatLength = #(ly:make-moment 1 16)
51   \set Score.beatGrouping = #'(3 4 2 3)
52   a16 a a a a a a a a a a a
53 }
54