Pregunta

I have a multi-measure rest at the end of a piece, and I cannot get a final "|." barline to print. The regular single barline is used instead.

Minimal example:

\score {
  \new Staff <<
    \compressFullBarRests
    R1*62
    \bar "|."
  >>
}

I'm using version 2.16; the problem exists with 2.17 as well.

¿Fue útil?

Solución

This doesn't have anything to do with multi-measure rests. It doesn't work because you had used << >> (which indicate simultaneous music) instead of { } (which indicate sequential music). With << >>, all three commands (\compressFullBarRests, R1*62 and \bar "|.") are processed simultaneously, which means that \bar "|." takes place at moment 0 (at the very beginning of music), not after rests. This will work:

\score {
  \new Staff {
    \compressFullBarRests
    R1*62
    \bar "|."
  }
}

Otros consejos

This does not seem to have anything to do with the multi-measure rest - the |. bar is not printed even if you use a note instead of the multi-measure rest.

Not sure why, but this seems to do the job:

melody =
{
  R1*62
  \bar "|."
}

\score {
  <<
    \compressFullBarRests
    \new Voice = "one" { \autoBeamOff \melody }
  >>
}
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top