lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: alternate time sigs


From: David Bobroff
Subject: Re: alternate time sigs
Date: Wed, 07 Dec 2005 08:39:53 +0000

After looking at some suggestions I've taken the compound time signature
hack from the docs and modified it for my purposes:

\version "2.7.21"

#(define (compound-time grob one two int num)
  (interpret-markup
   (ly:grob-layout grob)
   '(((baseline-skip . 2)
      (word-space . 1)
      (font-family . number)))
   (markup
    #:line ( #:column (one int) #:lower 1 "" #:column (two num)))))


\score {
  \relative c, {
    \time 3/4
    \override Score.RehearsalMark #'extra-offset = #'( 5.2 . -5.9 )
    \mark \markup{\bigger\bigger\bigger\bigger\bigger\bigger\bigger
\bigger "( )"}
    \override Staff.TimeSignature  #'stencil
    = #(lambda (grob) (compound-time grob "9" "3" "8" "4"))
    #(override-auto-beam-setting '(end 1 8 5 8) 1 4)
    \clef F
    \key a \major
    \compressMusic #'(2 . 3) {
      e8-[-( cis' b-] a4. ~ a8-[-) gis-( a-]
      cis8-[ fis e-] e2.-)
      fis,8-[-( d' cis-] b4. ~ b8-[-) ais-( b-] \break
      d8-[ gis fis-] fis2.---) ~
    }
    \times 2/3 { fis8-[ e,-( fis-] } \times 2/3 { gis-[ a b-]-)} cis8.-
( fis,16-)
    \compressMusic #'(2 . 3) {
      fis4.-- ~ fis8-[ fis-( gis-] a-[ b cis-]-)
    }
  }
}

%%%%

The result can be seen here:

http://notendur.centrum.is/~bobroff/lily/time-sig.html

Thanks to Kris for the suggestion to put the () in \markup.  It's
working pretty much exactly the way I wanted.  Now, however, after
looking at the time-sig hack I'm wondering if it is possible to simply
include the ( ) in that hack.  

-David






reply via email to

[Prev in Thread] Current Thread [Next in Thread]