]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/changing-time-signatures-inside-a-polymetric-section-using--scaledurations.ly
LSR: Update.
[lilypond.git] / input / lsr / changing-time-signatures-inside-a-polymetric-section-using--scaledurations.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, contexts-and-engravers"
7
8   texidoces = "
9 La propiedad @code{measureLength}, junto con
10 @code{measurePosition}, determina cuándo es necesario dibujar una
11 línea divisoria.  Sin embargo, al utilizar
12 @code{\\scaleDurations}, el escalado proporcional de las
13 duraciones hace difícil introducir cambios de compás.  En este
14 caso se debe establecer manualmente el valor de
15 @code{measureLength} utilizando la función @code{ly:make-moment}.
16 El segundo argumento debe ser el mismo que el segundo argumento de
17 @code{\\scaleDurations}.
18
19 "
20   doctitlees = "Modificar el compás dentro de una sección polimétrica utilizando @code{\\scaleDurations}"
21
22   texidoc = "
23 The @code{measureLength} property, together with
24 @code{measurePosition}, determines when a bar line is needed.  However,
25 when using @code{\\scaleDurations}, the scaling of durations makes it
26 difficult to change time signatures.  In this case,
27 @code{measureLength} should be set manually, using the
28 @code{ly:make-moment} callback.  The second argument must be the same
29 as the second argument of @code{\\scaleDurations}.
30
31 "
32   doctitle = "Changing time signatures inside a polymetric section using \\scaleDurations"
33 } % begin verbatim
34
35 \layout {
36   \context {
37     \Score
38     \remove "Timing_translator"
39     \remove "Default_bar_line_engraver"
40   }
41   \context {
42     \Staff
43     \consists "Timing_translator"
44     \consists "Default_bar_line_engraver"
45   }
46 }
47
48 <<
49   \new Staff {
50     \scaleDurations #'(8 . 5) {
51       \time 6/8
52       \set Timing.measureLength = #(ly:make-moment 6 5)
53       b8 b b b b b
54       \time 2/4
55       \set Timing.measureLength = #(ly:make-moment 4 5)
56       b4 b
57     }
58   }
59   \new Staff {
60     \clef bass
61     \time 2/4
62     c2 d e f
63   }
64 >>