X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Fsnippets%2Fchanging-time-signatures-inside-a-polymetric-section-using--scaledurations.ly;h=74a6d43c10c7bbaf2a63be739f53cbd97439cfe8;hb=85d4958c021936c64b6ef9d514a6a2b0d269cc58;hp=3d7357b42d4f0d310a23c9df7d25d5426d349d8c;hpb=17f11c2f5ab963bfb07b7652b4860dc4dda5540a;p=lilypond.git diff --git a/Documentation/snippets/changing-time-signatures-inside-a-polymetric-section-using--scaledurations.ly b/Documentation/snippets/changing-time-signatures-inside-a-polymetric-section-using--scaledurations.ly index 3d7357b42d..74a6d43c10 100644 --- a/Documentation/snippets/changing-time-signatures-inside-a-polymetric-section-using--scaledurations.ly +++ b/Documentation/snippets/changing-time-signatures-inside-a-polymetric-section-using--scaledurations.ly @@ -1,39 +1,20 @@ -%% Do not edit this file; it is automatically -%% generated from LSR http://lsr.dsi.unimi.it -%% This file is in the public domain. -\version "2.13.39" +% DO NOT EDIT this file manually; it is automatically +% generated from Documentation/snippets/new +% Make any changes in Documentation/snippets/new/ +% and then run scripts/auxiliar/makelsr.py +% +% This file is in the public domain. +%% Note: this file works from version 2.17.11 +\version "2.17.11" \header { - lsrtags = "rhythms, contexts-and-engravers" + lsrtags = "workaround, contexts-and-engravers, contemporary-notation, rhythms" -%% Translation of GIT committish: a874fda3641c9e02f61be5c41b215b8304b8ed00 - texidoces = " -La propiedad @code{measureLength}, junto con -@code{measurePosition}, determina cuándo es necesario dibujar una -línea divisoria. Sin embargo, al utilizar -@code{\\scaleDurations}, el escalado proporcional de las -duraciones hace difícil introducir cambios de compás. En este -caso se debe establecer manualmente el valor de -@code{measureLength} utilizando la función @code{ly:make-moment}. -El segundo argumento debe ser el mismo que el segundo argumento de -@code{\\scaleDurations}. - -" - doctitlees = "Modificar el compás dentro de una sección polimétrica utilizando @code{\\scaleDurations}" - - texidoc = " -The @code{measureLength} property, together with -@code{measurePosition}, determines when a bar line is needed. However, -when using @code{\\scaleDurations}, the scaling of durations makes it -difficult to change time signatures. In this case, -@code{measureLength} should be set manually, using the -@code{ly:make-moment} callback. The second argument must be the same -as the second argument of @code{\\scaleDurations}. - -" doctitle = "Changing time signatures inside a polymetric section using \\scaleDurations" } % begin verbatim + + \layout { \context { \Score @@ -49,12 +30,12 @@ as the second argument of @code{\\scaleDurations}. << \new Staff { - \scaleDurations #'(8 . 5) { + \scaleDurations 8/5 { \time 6/8 - \set Timing.measureLength = #(ly:make-moment 6 5) + \set Timing.measureLength = #(ly:make-moment 6/5) b8 b b b b b \time 2/4 - \set Timing.measureLength = #(ly:make-moment 4 5) + \set Timing.measureLength = #(ly:make-moment 4/5) b4 b } }