[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: rest centered between staves
From: |
Jan-Peter Voigt |
Subject: |
Re: rest centered between staves |
Date: |
Wed, 11 Jan 2012 13:35:00 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.24) Gecko/20111108 Lightning/1.0b2 Thunderbird/3.1.16 |
Hello Paolo,
Am 11.01.2012 12:08, schrieb Paolo Prete:
Hi all,
is it possible to have a rest centered between two staves?
I could use something like some_pitch\rest but it changes depending on the
case: for example, when there is an ottava bracket or if the clef changes.
beside the dynamics example shown in precious mails, you might use
\override Rest #'staff-position = #-12
to have rests under the staff. This solution doesn't depend on ottavas
or clefs, but on spacing between staves.
You also might try to introduce another staff, wich hides all symbols
except rests and put the music also in there:
--snip--
upper = \relative c'' {
c4 c c r
}
lower = \relative c {
\clef "bass"
c4 r c c
}
\new StaffGroup <<
\new Staff \with {
\override Rest #'transparent = ##t
} \upper
\new Staff \with {
\consists "Rest_engraver"
\override StaffSymbol #'stencil = ##f
\override NoteHead #'stencil = ##f
\override Stem #'stencil = ##f
\override Beam #'stencil = ##f
\override TimeSignature #'stencil = ##f
\override Clef #'stencil = ##f
} <<
\lower \upper
>>
\new Staff \with {
\override Rest #'transparent = ##t
} \lower
>>
--snip--
I also quickly tried the Dynamics context, but that always showed up
Clef and TimeSignature.
This is a short test just to show what would be possible ... you will
need some more tuning here ;-)
HTH
Cheers,
Jan-Peter