]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/changing-time-signatures-inside-a-polymetric-section-using--scaledurations.ly
Docs: run convert-ly for 2.14.0.
[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.0"
8
9 \header {
10   lsrtags = "rhythms, contexts-and-engravers"
11
12 %% Translation of GIT committish: 59caa3adce63114ca7972d18f95d4aadc528ec3d
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 \layout {
41   \context {
42     \Score
43     \remove "Timing_translator"
44     \remove "Default_bar_line_engraver"
45   }
46   \context {
47     \Staff
48     \consists "Timing_translator"
49     \consists "Default_bar_line_engraver"
50   }
51 }
52
53 <<
54   \new Staff {
55     \scaleDurations #'(8 . 5) {
56       \time 6/8
57       \set Timing.measureLength = #(ly:make-moment 6 5)
58       b8 b b b b b
59       \time 2/4
60       \set Timing.measureLength = #(ly:make-moment 4 5)
61       b4 b
62     }
63   }
64   \new Staff {
65     \clef bass
66     \time 2/4
67     c2 d e f
68   }
69 >>