Hi Fauban,
> I must admit I don't completely understand this code, but it works!!
Here's a commented version:
\version "2.13.29"
%% Define a function to display custom time signatures
#(define ((custom-time-signature one two three four five six) grob)
(grob-interpret-markup grob
(markup #:override '(baseline-skip . 0) #:number
(#:line ((#:column (one two))
(#:column (three four))
(#:column (five six)))))))
alternatingTS = \relative c' {
%% display a custom time signature, using the function previously defined
\override Score.TimeSignature #'stencil =
#(custom-time-signature "3" "4" "5" "8" "2" "4")
\time 3/4 c8 c c c c c |
%% ensure that no other time signatures are displayed
\override Score.TimeSignature #'stencil = ##f
\time 5/8 c8 c c c c |
\time 2/4 c8 c c c |
\time 5/8 c8 c c c c |
\time 3/4 c8 c c c c c |
%% bring back time signatures
\revert Score.TimeSignature #'stencil
\time 6/8 c8 c c c c c |
c8 c c c c c |
\time 5/8 c8 c c c c |
}
\score { \alternatingTS }
Cheers,
Kieren.
_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user