[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: smaller distance between first Staff and TimeSig
From: |
Stefan Thomas |
Subject: |
Re: smaller distance between first Staff and TimeSig |
Date: |
Fri, 20 Mar 2009 21:03:42 +0100 |
Dear Kieren, dear community,
I think, I could make a succes: I moved the Time_signature_engraver
from the staff-context
and the Text_spanner_engraver from the Voice-Context and put them both
into the Score-Context. Now I can see the Time-Signature where I need
it, as well as the line for the ritardande-spanner. But, I don't know
why, the "rit." disappeared, althoug I put the Text_engraver to the
Score-context. What could be the mistake?
Here the modified snippet:
\version "2.12.1"
\layout
{
\context { \RemoveEmptyStaffContext }
\context { \Score \override TimeSignature #'style = #'() }
\context { \Staff \override TimeSignature #'stencil = ##f }
\context { \Voice \remove "Text_spanner_engraver" }
\context { \Score \consists "Time_signature_engraver" }
\context { \Score \consists "Text_spanner_engraver" }
\context { \Score \consists "Text_engraver" }
}
global = {
\tempo 4 = 76 \repeat "unfold" 2 { \time 4/4 s1 \time 3/4 s2. }
\time 4/4 s1
\override TextSpanner #'style = #'dashed-line \textSpannerUp
\override TextSpanner #'bound-details #'left #'text = \markup {
\upright "rit" }
s2. \startTextSpan s4 \stopTextSpan
\tempo 4= 60 s1 }
notenA = \relative {
\set Staff.instrumentName = " StaffA"
\set Staff.shortInstrumentName = "St.A "
c2 c4 d
e4 d e
f1 \break
R2. R1*3 }
notenB = \relative {
\set Staff.instrumentName = " StaffB"
\set Staff.shortInstrumentName = "St.B "
a2 a4 b c b c d1
d4 c d e1 e4 f g a g f e2 }
notenC = \relative {
\set Staff.instrumentName = " StaffC"
\set Staff.shortInstrumentName = "St.C "
\repeat unfold 26 c4 }
\score { <<
\new Staff <<\global \notenA >>
\new Staff << \global \notenB >>
\new Staff << \global \notenC >>
>> }
2009/3/20 Stefan Thomas <address@hidden>:
> Dear Kieren,
> I've provided a new (musically senseless) example. What makes me wondering:
> How it is possible, that the Metronome-mark is shown only in the
> top-staff? I wish, this would be possible also with the ritardando
> (which I don't need in the third Staff) and with the timesignature,
> which unfortunately disappaers in the second system.
> Is there a solution possible?
>
> 2009/3/20 Kieren MacMillan <address@hidden>:
>> Hi Stefan,
>>
>>> Because I have too many bar changes in the score
>>
>> There is no limit to the number of bar changes in my method.
>>
>>> and too many other things in the Time-Sig, like ritarrdando, etc.
>>
>> Those should be in a global variable as MetronomeMark (or at least
>> RehearsalMark), so that you can have them appear at the top of each system
>> (but not every staff) automatically.
>>
>>> Or is it maybee possible too hide the Staff, but not too hide the
>>> TimeSignature?
>>
>> Yes, although I don't think you need to do that (from what I've seen of your
>> score so far).
>>
>>> I don't know, how to do it in the below quoted example:
>>
>> It's not clear to me why you have a separate Staff context without any notes
>> in it -- perhaps you're trying to do this:
>>
>> %%%%%%%%%%%%
>> \version "2.12.1"
>>
>> \layout
>> {
>> \context { \RemoveEmptyStaffContext }
>> \context { \Score \override TimeSignature #'style = #'() }
>> \context { \Staff \override TimeSignature #'stencil = ##f }
>> }
>>
>> noten = \relative
>> {
>> c2 c4 d
>> e4 d e
>> f1 \break
>> d4 c d
>> e1
>> e4 f g a
>> g f e2
>> }
>>
>> global =
>> {
>> \repeat "unfold" 2 { \time 4/4 s1 \time 3/4 s2. }
>> \time 4/4 s1*3
>> }
>>
>> \score
>> {
>> \new Staff \with
>> {
>> \revert TimeSignature #'stencil
>> \override TimeSignature #'font-size = #3
>> \override TimeSignature #'X-extent = #'(0 . 0)
>> \override TimeSignature #'Y-offset = #6
>> \override TimeSignature #'break-align-symbol = #'staff-bar
>> \override TimeSignature #'X-offset: =
>> #ly:self-alignment-interface::x-aligned-on-self
>> \override TimeSignature #'self-alignment-X = #CENTER
>> \override TimeSignature #'break-visibility =
>> #end-of-line-invisible
>> }
>> << \global \noten >>
>> }
>> %%%%%%%%%%%%
>>
>> Hope this helps!
>> Kieren.
>>
>
- Re: smaller distance between first Staff and TimeSig, (continued)
re: smaller distance between first Staff and TimeSig, Stefan Thomas, 2009/03/19
- Re: smaller distance between first Staff and TimeSig, Kieren MacMillan, 2009/03/19
- Re: smaller distance between first Staff and TimeSig, Stefan Thomas, 2009/03/19
- Re: smaller distance between first Staff and TimeSig, Kieren MacMillan, 2009/03/19
- Re: smaller distance between first Staff and TimeSig, Stefan Thomas, 2009/03/20
- Re: smaller distance between first Staff and TimeSig, Kieren MacMillan, 2009/03/20
- Re: smaller distance between first Staff and TimeSig, Stefan Thomas, 2009/03/20
- Re: smaller distance between first Staff and TimeSig,
Stefan Thomas <=
- Re: smaller distance between first Staff and TimeSig, Kieren MacMillan, 2009/03/21