lilypond-user
[Top][All Lists]
Advanced

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

Re: time signature between staves


From: Jan-Peter Voigt
Subject: Re: time signature between staves
Date: Wed, 28 Sep 2011 14:55:09 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.21) Gecko/20110831 Lightning/1.0b2 Thunderbird/3.1.13

Yes it is possible!
You could use a Dynamics context. I usaly have a meta-var containing the run of the music. So I can put it in the whole partitura and in the single voice sheets.
So my setup has a structure like this:
--snip--
\version "2.14.2"

meta = {
  \time 3/4 s2. | \time 4/4 s1 | \time 5/4 s4*5 | \time 4/4 s1 \bar "|."
}
blindmusic = \relative c'' {
  c4 b a | b c d c | g a b c d | c g e c |
}

\score {
  \new StaffGroup <<
    \new Staff <<
      \meta
      \blindmusic
>>
    \new Staff <<
      \meta
      \blindmusic
>>
    % add a Dynamics context with time sig engraver
    \new Dynamics \with {
      \consists "Time_signature_engraver"
    } <<
      \meta
      \blindmusic
>>
    \new Staff <<
      \meta
      \blindmusic
>>
    \new Staff <<
      \meta
      \blindmusic
>>
>>
  \layout {
    \context {
      \Staff
      % switch off time signature in Staff
      \override TimeSignature #'stencil = ##f
    }
  }
}
--snip--

You might also put tempo information in that context with an extra engraver:
#(define-public tempo_engraver (lambda (context)
          `((listeners
             (tempo-change-event
               . ,(lambda (engraver event)
(let ((text (ly:engraver-make-grob engraver 'TextScript event))) (ly:grob-set-property! text 'text (markup #:normal-text (ly:event-property event 'text)))
                            (ly:grob-set-property! text 'direction UP)
           ))))
)))
and \consists \tempo_engraver.
Here it uses TextScript events ... you might need to tweak the positions. But this is probably not what you where looking for ;-)

Cheers,
Jan-Peter

Am 27.09.2011 21:33, schrieb Peter O'Doherty:
Hi,

I have a system with 4 staves and instead of each stave having a time signature (which changes regularly) I would like to place the time signature between the second and third stave only. Is this possible? And if so, how?

Many thanks,
Peter





reply via email to

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