lilypond-user
[Top][All Lists]
Advanced

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

How to ignore multible identical \key, \time


From: Karl Hammar
Subject: How to ignore multible identical \key, \time
Date: Thu, 31 Mar 2005 21:56:02 +0200

Is it possible to tell lilypond to ignore multiple identical
\key and \time's and make it behave like \clef?

The break-visibility thing does not do what I want.

\version "2.4.2"

\score {
  \new Staff \relative c' {

    %\override Staff.TimeSignature #'break-visibility = #all-visible
    %\override Staff.TimeSignature #'break-visibility = 
#begin-of-line-visible
    %\override Staff.TimeSignature #'break-visibility = 
#end-of-line-visible
    %\override Staff.TimeSignature #'break-visibility = 
#begin-of-line-invisible
    %\override Staff.TimeSignature #'break-visibility = 
#end-of-line-invisible
    %\override Staff.TimeSignature #'break-visibility = #all-invisible

    \clef treble \key f \minor \time 3/4 c2. | d2. |
    \clef treble \key f \minor \time 3/4 c2. | d2. |
    \clef treble \key c \minor \time 3/4 c2. | d2. |
    \clef treble \key c \minor \time 3/4 c2. | d2. |
    \clef bass \key c \minor \time 3/4 c2. | bes2. |
    \clef bass \key c \minor \time 3/4 c2. | bes2. |
    \clef bass \key c \minor \time 4/4 c1 | bes1 |
    \clef bass \key c \minor \time 4/4 c1 | bes1 |
  }
}

I would like to be able to write \key (\time) multible times and
it will only print out when the \key or \time changes.

I \include lot of variables like:

  diAA = \relative c'' { \time 3/4 c2. ... }

that can be used in different settings. Like full score:

\new Staff {
 \set Staff...
 { \key f \minor \clefdi \diAN \key f \major \diAO
   \key f \minor \diAP \key c \major \diAQ \key f \major
   \diAR \diAS \diAT \diAU \diAV
 }
}

or just an Aria

\new Staff { { \clefdi \key f \major \diAU } }

And it would simplify the work if I always could have the \clef,
\key and \time in the variable.

Regards
/Karl






reply via email to

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