LSR: Update.
[lilypond/mpolesky.git] / Documentation / snippets / changing-time-signatures-inside-a-polymetric-section-using--scaledurations.ly
blob3bc0d614ddba59da9bebf14ac357a55b1b6a118d
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.29"
6 \header {
7 lsrtags = "rhythms, contexts-and-engravers"
9 %% Translation of GIT committish: 0b55335aeca1de539bf1125b717e0c21bb6fa31b
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}.
22 doctitlees = "Modificar el compás dentro de una sección polimétrica utilizando @code{\\scaleDurations}"
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}.
34 doctitle = "Changing time signatures inside a polymetric section using \\scaleDurations"
35 } % begin verbatim
37 \layout {
38 \context {
39 \Score
40 \remove "Timing_translator"
41 \remove "Default_bar_line_engraver"
43 \context {
44 \Staff
45 \consists "Timing_translator"
46 \consists "Default_bar_line_engraver"
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
61 \new Staff {
62 \clef bass
63 \time 2/4
64 c2 d e f