]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/using-beatlength-and-beatgrouping.ly
Make the length of beamlets configurable.
[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.64"
4
5 \header {
6   texidoces = "
7 La propiedad @code{measureLength} determina dónde se deben insertar
8 líneas divisorias y, con @code{beatLength} y @code{beatGrouping}, cómo
9 se deben generar las barras autoomáticas para las duraciones de barra
10 y compases para los que no hay ninguna regla definida para los finales
11 de barra. Este ejemplo muestra distintas dormas de controlar el
12 barrado mediante el establecimiento de estas propiedades. Las
13 explicaciones están en forma de comentarios dentro del código.
14
15 "
16   doctitlees = "Utilización de beatLength y beatGrouping"
17
18   lsrtags = "rhythms"
19   texidoc = "
20 The property @code{measureLength} determines where bar lines
21 should be inserted and, with @code{beatLength} and
22 @code{beatGrouping}, how automatic beams should be generated
23 for beam durations and time signatures for which no beam-ending
24 rules are defined.  This example shows several ways of controlling
25 beaming by setting these properties.  The explanations are shown
26 as comments in the code.
27 "
28   doctitle = "Using beatLength and beatGrouping"
29 } % begin verbatim
30
31
32 \relative c'' {
33   \time 3/4
34   % The default in 3/4 time is to beam in three groups
35   % each of a quarter note length
36   a16 a a a a a a a a a a a
37
38   \time 12/16
39   % No auto-beaming is defined for 12/16
40   a16 a a a a a a a a a a a
41
42   \time 3/4
43   % Change time signature symbol, but retain underlying 3/4 beaming
44   \set Score.timeSignatureFraction = #'(12 . 16)
45   a16 a a a a a a a a a a a
46
47   % The 3/4 time default grouping of (1 1 1) and beatLength of 1/8
48   % are not consistent with a measureLength of 3/4, so the beams
49   % are grouped at beatLength intervals
50   \set Score.beatLength = #(ly:make-moment 1 8)
51   a16 a a a a a a a a a a a
52
53   % Specify beams in groups of (3 3 2 3) 1/16th notes
54   % 3+3+2+3=11, and 11*1/16<>3/4, so beatGrouping does not apply,
55   % and beams are grouped at beatLength (1/16) intervals
56   \set Score.beatLength = #(ly:make-moment 1 16)
57   \set Score.beatGrouping = #'(3 3 2 3)
58   a16 a a a a a a a a a a a
59
60   % Specify beams in groups of (3 4 2 3) 1/16th notes
61   % 3+4+2+3=12, and 12*1/16=3/4, so beatGrouping applies
62   \set Score.beatLength = #(ly:make-moment 1 16)
63   \set Score.beatGrouping = #'(3 4 2 3)
64   a16 a a a a a a a a a a a
65 }
66