[Top][All Lists]

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

Re: omit time signature when time doesn't change

From: Carlo Vanoni
Subject: Re: omit time signature when time doesn't change
Date: Wed, 21 May 2014 06:41:05 +0100 (BST)

@Urs Liska
Your code did the trick, thanks.

@Knute Snortum
Well, I think that the time is a property of the song section that I'm defining in the variable, so it is more correct to define it in the variable itself. Furthermore, if the variable defines one (as in the example) or more measures that cointains a fixed number of beats, so the variable can't be used as part of another measure with a yet unknown time but just as a song section with a given time, it is more obvious to declare it in the variable definition since this section can't use a different time.
Of course, I won't do it if there are no time changes within the song: here the time is a song feature and will be declared in the song section.
What you think about it?

Il Mercoledì 21 Maggio 2014 1:33, Knute Snortum <address@hidden> ha scritto:

I know you say you don't want to have the time signatures outside of the variables, but could you expand on why?

\version "2.18.0"

verse = { c2 c2 | c2 c2 | }
verseFirstEnd = { d2 d2 | }
verseSecondEnd = { c2 | }

\relative c'
  \time 4/4
  \time 2/4
  \time 4/4

Knute Snortum
(via Gmail)

On Tue, May 20, 2014 at 2:38 PM, Carlo Vanoni <address@hidden> wrote:
Hi everyone!

I have a score with some time changes. I'm using variables for the various song section. Each section has it's own time (more useful than declaring it each time there is a time change). What happens is that the time signature will be printed any time it is declared, even when no time changes occurs. Here is a simple example:

\version "2.18.0"

verse = { \time 4/4 c2 c2 | c2 c2 | }
verseFirstEnd = { \time 4/4 d2 d2 | }
verseSecondEnd = { \time 2/4 c2 | }

song = {
    \new Staff
        \relative c'
            \verse  % First measure; print time signature, of course
            \verseFirstEnd  % Same time; I don't wont time signature printed
            \verse  % Same time; I don't wont time signature printed
            \verseSecondEnd  % Time change; print the new time signature
            \verse  % Time change; print the new time signature

\score {   

I suppose (didn't tried yet) that I can use the an "omit" command (or similar) to omit it locally, but it is not very useful to operate this way (is just like declaring the time outside the variables when needed).
Is there any command that says "omit all time signature when there is no time changes"?


lilypond-user mailing list

reply via email to

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