10.04.2013 Views

in Snippets - LilyPond

in Snippets - LilyPond

in Snippets - LilyPond

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Staff notation 119<br />

}<br />

c1-\f<strong>in</strong>ger #29<br />

<br />

<br />

10<br />

<br />

50<br />

<br />

Cross staff stems<br />

36<br />

<br />

29<br />

<br />

This snippet shows the use of the Span_stem_engraver and \crossStaff to connect stems<br />

across staves automatically. The stem length need not be specified, as the variable distance<br />

between noteheads and staves is calculated automatically.<br />

\layout {<br />

\context {<br />

\PianoStaff<br />

\consists #Span_stem_engraver<br />

}<br />

}<br />

{<br />

}<br />

<br />

\new PianoStaff e'8. g8 r\!<br />

e'8 f' g'4 e'2<br />

}<br />

\new Staff {<br />

\clef bass<br />

\voiceOne<br />

\autoBeamOff<br />

\crossStaff { 4 e, g16 a8. c8} d<br />

\autoBeamOn<br />

g8 f g4 c2<br />

}<br />

>><br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

Display bracket with only one staff <strong>in</strong> a system<br />

<br />

<br />

<br />

<br />

<br />

<br />

If there is only one staff <strong>in</strong> one of the staff types ChoirStaff or StaffGroup, the bracket and the<br />

start<strong>in</strong>g bar l<strong>in</strong>e will not be displayed as standard behavior. This can be changed by overrid<strong>in</strong>g<br />

the relevant properties.<br />

Note that <strong>in</strong> contexts such as PianoStaff and GrandStaff where the systems beg<strong>in</strong> with a<br />

brace <strong>in</strong>stead of a bracket, another property has to be set, as shown on the second system <strong>in</strong><br />

the example.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!