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