Consider this example.

```
{
  c'1 |
  \repeat volta 2 {
    c'1 \clef bass |
    \alternative {
      \volta 1 {
        c1 \clef treble |
      }
      \volta 2 {
        \clef bass c |
      }
    }
  }
}
```

There should be a change treble clef right before the repeat barline,
and there should also be a reminder bass clef right after the repeat
barline.  How can I achieve this?

Ideally, the volta engraver should be able to manage this
automatically (i.e., it should do what's written in the LilyPond
example code above), but I guess that this is a hard problem because
there are two clef change events at the same musical moment...

Such situations do actually happen in piano music.


    Werner

Reply via email to