Modificar el compás dentro de una sección polimétrica utilizando \scaleDurations

La propiedad measureLength, junto con measurePosition, determina cuándo es necesario dibujar una línea divisoria. Sin embargo, al utilizar \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 measureLength utilizando la función ly:make-moment. El segundo argumento debe ser el mismo que el segundo argumento de \scaleDurations.

\layout {
  \context {
    \Score
    \remove "Timing_translator"
    \accepts TimingStaffGroup
  }
  \context {
    \StaffGroup
    \name TimingStaffGroup
    \alias StaffGroup
    \consists "Timing_translator"
  }
}

<<
  \new TimingStaffGroup <<
    \new Staff {
      \scaleDurations 8/5 {
        \time 6/5 % to set measure length in Timing
        \context Staff \polymetric \time 6/8
        b8 b b b b b
        \time 4/5 % to set measure length in Timing
        \context Staff \polymetric \time 2/4
        b4 b
      }
    }
  >>
  \new TimingStaffGroup <<
    \new Staff {
      \clef bass
      \time 2/4
      c2 d e f
    }
  >>
>>
[image of music]

LilyPond snippets v2.25.32 (development-branch).