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