]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/using-beatlength-and-beatgrouping.ly
Imported Upstream version 2.12.3
[lilypond.git] / input / lsr / using-beatlength-and-beatgrouping.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.12.3"
4
5 \header {
6   lsrtags = "rhythms, tweaks-and-overrides"
7
8   texidoces = "
9 La propiedad @code{measureLength} determina dónde se deben insertar
10 líneas divisorias y, con @code{beatLength} y @code{beatGrouping}, cómo
11 se deben generar las barras autoomáticas para las duraciones de barra
12 y compases para los que no hay ninguna regla definida para los finales
13 de barra. Este ejemplo muestra distintas dormas de controlar el
14 barrado mediante el establecimiento de estas propiedades. Las
15 explicaciones están en forma de comentarios dentro del código.
16
17 "
18   doctitlees = "Utilización de beatLength y beatGrouping"
19
20   texidoc = "
21 The property @code{measureLength} determines where bar lines should be
22 inserted and, with @code{beatLength} and @code{beatGrouping}, how
23 automatic beams should be generated for beam durations and time
24 signatures for which no beam-ending rules are defined.  This example
25 shows several ways of controlling beaming by setting these properties. 
26 The explanations are shown as comments in the code.
27
28 "
29   doctitle = "Using beatLength and beatGrouping"
30 } % begin verbatim
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 }