Hi Knute,

> Does this look correct to your eyes?

No: I would expect a barline *BEFORE* the key/time signature change(s), similar 
to the end of the second system. That being said, I recognize the [visual] 
problem of having a *REPEAT* barline come before a key/time signature change.

> If not, what would you do instead?

I don’t *love* this solution, but I think I prefer it to the current:

%%%  SNIPPET BEGINS
\version "2.24.4"

keyAndTimeBeforeBarLine = 
\once \override Score.BreakAlignment.break-align-orders = 
    #(make-vector 3 '(key-cancellation key-signature time-signature staff-bar))

\relative {
  \key d \minor
  \repeat volta 2 { 
    \repeat unfold 7 { d''1 } {}
    \alternative {
      { d1 \break }
      {  
        \set Score.voltaSpannerDuration = #(ly:make-moment 4/4)
        \repeat volta 2 {
          \repeat unfold 8 { d1 } \break
          \time 3/8
          \key d \major
          \repeat unfold 8 { d4. }
          \once \omit Score.TimeSignature
          \once \override Score.BarLine.extra-offset = #'(-0.5 . 0)
          \time 1/128 s128
          \keyAndTimeBeforeBarLine
          \time 4/4
          \key d \minor
        }
      }
    }
  }
}
%%%  SNIPPET ENDS

Obviously, if you need accurate MIDI output, you’ll want to find a different 
hack to accomplish the same thing (i.e., have single barline, sigs, and then 
repreat barline).

Interested to hear what others think!
Kieren.
__________________________________________________

My work day may look different than your work day. Please do not feel obligated 
to read or respond to this email outside of your normal working hours.


Reply via email to