Forgot CC …

-------- Original Message --------
Subject: Re: Variable length bars
Date: Fri, 27 Jun 2014 08:10:52 +0200
From: Malte Meyn <lilyp...@maltemeyn.de>
To: Patrick or Cynthia Karl <pck...@mac.com>

You don’t even need the \set Timing.measureLength, a \time command will
do the same when you set the TimeSignature.stencil to false:

\version "2.19.6"

#(define ((num-double-time-signature num1 den1 num2 den2) grob)
   (grob-interpret-markup grob
     (markup #:override '(baseline-skip . 0) #:number
       (#:line (
                (#:center-column (num1 den1))
                (#:center-column (num2 den2))
                )))))

#(define ((glyph-double-time-signature glyph num den) grob)
   (grob-interpret-markup grob
     (markup #:override '(baseline-skip . 0) #:number
       (#:line (
                (markup (#:musicglyph glyph))
                (#:center-column (num den))
                )))))

\relative c' {
  \override Staff.TimeSignature.stencil = ##f
  \once \override Staff.TimeSignature.stencil =
#(num-double-time-signature "4" "4" "6" "4")
  \time 4/4
  c4 d e f
  \time 6/4
  g f e f e d
  \time 4/4
  c d e d
  \once \override Staff.TimeSignature.stencil =
#(glyph-double-time-signature "timesig.C44" "6" "4")
  \time 4/4
  c4 d e f
  \time 6/4
  g f e f e d
  \time 4/4
  c d e f
}

This is my solution to a very similar problem in the German LilyPond
forum (www.lilypondforum.de/index.php?topic=1639.msg9143#msg9143)

On 26.06.2014 23:53, Patrick or Cynthia Karl wrote:

I'm trying to set a John Dowland piece (Come Ye Heavy States of Night) which has a single 
initial time signature of "4/2 2/2" followed by measures that are either 4 
half-note beats or 2 half-note beats long, in quasi-random fashion.

It's clear that if I can get that time signature printed, I can set the piece 
by appropriate use of \set Timing.measureLength.

Can anyone point me to a way to do that?

Thanks

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user




_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to