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