10.04.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.

Tweaks and overrides 388<br />

Tweaks and overrides<br />

Section “Chang<strong>in</strong>g defaults” <strong>in</strong> Notation Reference<br />

Section “Tweak<strong>in</strong>g output” <strong>in</strong> Learn<strong>in</strong>g Manual<br />

Adjust<strong>in</strong>g grace note spac<strong>in</strong>g<br />

The space given to grace notes can be adjusted us<strong>in</strong>g the spac<strong>in</strong>g-<strong>in</strong>crement property of<br />

Score.GraceSpac<strong>in</strong>g.<br />

graceNotes = {<br />

\grace { c4 c8 c16 c32 }<br />

c8<br />

}<br />

\relative c'' {<br />

c8<br />

\graceNotes<br />

\override Score.GraceSpac<strong>in</strong>g #'spac<strong>in</strong>g-<strong>in</strong>crement = #2.0<br />

\graceNotes<br />

\revert Score.GraceSpac<strong>in</strong>g #'spac<strong>in</strong>g-<strong>in</strong>crement<br />

\graceNotes<br />

}<br />

<br />

<br />

<br />

<br />

<br />

<br />

Alter<strong>in</strong>g the length of beamed stems<br />

Stem lengths on beamed notes can be varied by overrid<strong>in</strong>g the beamed-lengths property of the<br />

details of the Stem. If a s<strong>in</strong>gle value is used as an argument, the length applies to all stems.<br />

When multiple arguments are used, the first applies to eighth notes, the second to sixteenth<br />

notes and so on. The f<strong>in</strong>al argument also applies to all notes shorter than the note length of the<br />

f<strong>in</strong>al argument. Non-<strong>in</strong>teger arguments may also be used.<br />

\relative c'' {<br />

\override Stem #'(details beamed-lengths) = #'(2)<br />

a8[ a] a16[ a] a32[ a]<br />

\override Stem #'(details beamed-lengths) = #'(8 10 12)<br />

a8[ a] a16[ a] a32[ a] r8<br />

\override Stem #'(details beamed-lengths) = #'(8)<br />

a8[ a]<br />

\override Stem #'(details beamed-lengths) = #'(8.5)<br />

a8[ a]<br />

\revert Stem #'details<br />

a8[ a] a16[ a] a32[ a] r16<br />

}

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

Saved successfully!

Ooh no, something went wrong!