lilypond-user
[Top][All Lists]
Advanced

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

Re: Tweaking end-of-line time signature?


From: madMuze
Subject: Re: Tweaking end-of-line time signature?
Date: Mon, 25 May 2009 17:10:43 -0700 (PDT)

Trevor,

I've sometimes needed to adjust the location of clefs without affecting the
next line, and this seems to work (function found on
http://lilypond.org/doc/v2.12/Documentation/user/lilypond/Scheme-functions#Scheme-functions):

meterNuj = #(define-music-function (parser location muvIt) (number?)
        #{
                #(define (meterBrk grob)
                        (if (<= (ly:item-break-dir grob) 0)
                                (ly:grob-set-property! grob 'extra-offset (cons 
$muvIt 0)) '() ))
                \once \override Score.TimeSignature #'after-line-breaking = 
#meterBrk
        #})

usage:
\time 4/4 s1 \meterNuj #2.5 \break
\time 2/2 s1

or:
\time 4/4 s1\break
\meterNuj #2.5 \time 2/2 s1

Or course, if you settle on a number you like, you can hard-code it and get
rid of the variable. Also, if you want to ensure the subroutine only affects
meters at ends of lines and not in the middle (e.g. if the \breaks are not
explicit), change the "<=" to "<".

I welcome any refinements!
David


Hi,

Is there a way to tweak the visual appearance and position of an end-of-line
time signature *without* affecting the following beginning-of-line time
signature?
-- 
View this message in context: 
http://www.nabble.com/Tweaking-end-of-line-time-signature--tp23712497p23714996.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.





reply via email to

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