[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Mixed Time Signatures: Non regular alternantion between 5/8 and 8/8
From: |
Kieren MacMillan |
Subject: |
Re: Mixed Time Signatures: Non regular alternantion between 5/8 and 8/8 |
Date: |
Sun, 22 Aug 2010 11:25:04 -0400 |
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.
Re: Mixed Time Signatures: Non regular alternantion between 5/8 and 8/8, Xavier Scheuer, 2010/08/22