Thank you, that worked a treat. Though I also had to add a "\time 6/8" in order to get automatic bar lines inserted. "\time 3/4" produced wrong beaming in the 6/8 bars, and I can see that I may have to do some jiggery pokery to the beaming in 3/4 bars if, for example, I have 4 or more quavers.

On 01/02/2024 20:10, Knute Snortum wrote:
On Thu, Feb 1, 2024 at 10:50 AM Raphael Mankin <r...@mankin.org.uk <mailto:r...@mankin.org.uk>> 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


--
https://saturday-october-seven.com/

Reply via email to