27.03.2013 Views

in Snippets - LilyPond

in Snippets - LilyPond

in Snippets - LilyPond

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chords 236<br />

Cross-staff chords - beam<strong>in</strong>g problems workaround<br />

Sometimes it is better to use stems from the upper staff for creat<strong>in</strong>g cross-staff chords, because<br />

no problems with automatic beam collision avoidance then arise. If the stems from the lower<br />

staff were used <strong>in</strong> the follow<strong>in</strong>g example, it would be necessary to change the automatic beam<br />

collision avoidance sett<strong>in</strong>gs so that it doesn’t detect collisions between staves us<strong>in</strong>g \override<br />

Staff.Beam #'collision-voice-only = ##t<br />

\new PianoStaff ><br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

Display<strong>in</strong>g complex chords<br />

<br />

Here is a way to display a chord where the same note is played twice with different accidentals.<br />

fixA = {<br />

\once \override Stem #'length = #9<br />

}<br />

fixB = {<br />

\once \override NoteHead #'X-offset = #1.7<br />

\once \override Stem #'rotation = #'(45 0 0)<br />

\once \override Stem #'extra-offset = #'(-0.2 . -0.2)<br />

\once \override Flag #'style = #'no-flag

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

Saved successfully!

Ooh no, something went wrong!