\compressEmptyMeasures works (also in 2.24.1), thank you. Gerardo
Il giorno mer 21 feb 2024 alle ore 21:49 Mats Bengtsson <matsboxergr...@gmail.com> ha scritto: > > > On 2024-02-17 01:15, Gerardo Ballabio wrote: > > Hello, > I need to change the time in the middle of a bar. > I managed to do that using \partial, but it seems that after that, > \compressMMRests no longer works -- only for the group of measures > immediately following, then it resumes working normally. > See example below, attaching the output that I get. > Can you please help me fix that? > > Thank you > Gerardo > > %%%%%%%%%% > \version "2.24.1" > > \new Staff \compressMMRests { > \time 2/4 > R2*4 | > \partial 4 r4 \bar "" \time 6/8 \partial 4. r4 r8 | > R2.*4 | % these bars aren't compressed > R2.*4 | % these are > } > %%%%%%%%%% > > You have already received some responses, but for the record, the easiest > solution is probably to do > > \version "2.24.1" \new Staff { \compressEmptyMeasures \time 2/4 R2*4 | > \partial 4 r4 \bar "" \time 6/8 \partial 4. r4 r8 | R2.*4 | % these bars are > now compressed! R2.*4 | % these are } > > /Mats