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
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user