On Thu, Feb 1, 2024 at 10:50 AM Raphael Mankin <[email protected]> wrote:
> I have music with alternate bars in 3/4 and 6/8. The usual way to
> indicate this is to put both time signatures at the start, but I can
> find no way to do this.
>
> I have tried "\time 3/4 <> \time 6/8", but I only get the last one.
>
> Note, this is not a compound time of 3/4+6/8, but alternating time
> signatures.
>
I think this is what you are looking for. I'm not sure where I found the
code so I can't give credit to its author:
%%%
#(define ((time-alternate-time upa downa upb downb) grob)
(grob-interpret-markup grob
(markup #:override '(baseline-skip . 0) #:number
(#:line (
(#:center-column (upa downa))
(#:center-column (upb downb)))))))
% and use it like this (5/8, 4/8 in this case):
\override Score.TimeSignature.stencil =
#(time-alternate-time "5" "8" "4" "8")
%%%
--
Knute Snortum