Hi Caio, Here's a simple way:
\version "2.19.35" \new PianoStaff << \new Staff { s4 e'4 s2 e'4 } \new Dynamics \with { \consists "Rest_engraver" } { r4 s4 r2 s4 r1 } \new Staff { \clef F s4 c s2 c4 } >> Cheers, Pierre 2016-01-26 17:49 GMT+01:00 Caio Giovaneti de Barros <caio.bar...@gmail.com>: > Is there a way to write rests in the Dynamics context? (or something like > it) > > I'm engraving a piece for piano in which there are rests used by both > staves. It would be much cleaner for the musician to read some of the rests > between staves (same as dynamics in the Dynamics context). > > So far the only way I could think of is to add the rest as a markup, but > (1) this doesn't write the rest in the middle and (2) there is no way to > differentiate a whole note rest and a half note rest: > > \version "2.19.35" > > > \new PianoStaff << > > \new Staff { s4 e'4 s2 e'4 } > > \new Dynamics { > > r4^\markup { \musicglyph #"rests.2"} s4 r2_\markup { \musicglyph > #"rests.1" } s4 > > r1-\markup { \musicglyph #"rests.0" } > > } > > \new Staff { \clef F s4 c s2 c4 } > > >> > > > > > _______________________________________________ > lilypond-user mailing list > lilypond-user@gnu.org > https://lists.gnu.org/mailman/listinfo/lilypond-user > >
_______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user