1 %% Do not edit this file; it is auto-generated from input/new
2 %% This file is in the public domain.
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.
16 doctitle = "Using beatLength and beatGrouping"
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
27 % No auto-beaming is defined for 12/16
28 a16 a a a a a a a a a a a
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
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
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
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