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.

Tweaks and overrides 445<br />

Time signature <strong>in</strong> parentheses<br />

The time signature can be enclosed with<strong>in</strong> parentheses.<br />

\relative c'' {<br />

\override Staff.TimeSignature #'stencil = #(lambda (grob)<br />

(bracketify-stencil (ly:time-signature::pr<strong>in</strong>t grob) Y 0.1 0.2 0.1))<br />

\time 2/4<br />

a4 b8 c<br />

}<br />

<br />

4 2<br />

Time signature pr<strong>in</strong>t<strong>in</strong>g only the numerator as a number<br />

(<strong>in</strong>stead of the fraction)<br />

Sometimes, a time signature should not pr<strong>in</strong>t the whole fraction (e.g. 7/4), but only the numerator<br />

(7 <strong>in</strong> this case). This can be easily done by us<strong>in</strong>g \override Staff.TimeSignature #'style<br />

= #'s<strong>in</strong>gle-digit to change the style permanently. By us<strong>in</strong>g \revert Staff.TimeSignature<br />

#'style, this sett<strong>in</strong>g can be reversed. To apply the s<strong>in</strong>gle-digit style to only one time signature,<br />

use the \override command and prefix it with a \once.<br />

\relative c'' {<br />

\time 3/4<br />

c4 c c<br />

% Change the style permanently<br />

\override Staff.TimeSignature #'style = #'s<strong>in</strong>gle-digit<br />

\time 2/4<br />

c4 c<br />

\time 3/4<br />

c4 c c<br />

% Revert to default style:<br />

\revert Staff.TimeSignature #'style<br />

\time 2/4<br />

c4 c<br />

% s<strong>in</strong>gle-digit style only for the next time signature<br />

\once \override Staff.TimeSignature #'style = #'s<strong>in</strong>gle-digit<br />

\time 5/4<br />

c4 c c c c<br />

\time 2/4<br />

c4 c<br />

}<br />

<br />

4 3<br />

2 5 <br />

4 2 3<br />

Transcription of Ancient music with <strong>in</strong>cipit<br />

As a workaround to get real <strong>in</strong>cipits which are <strong>in</strong>dependent from the ma<strong>in</strong> score these are<br />

<strong>in</strong>cluded as a markup <strong>in</strong>to the field normally used for the <strong>in</strong>strument name. As for now lyrics<br />

can only be added as a direct markup. It doesn’t unfortunately conform with the spac<strong>in</strong>g of the<br />

ma<strong>in</strong> lyrics.<br />

4 2

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

Saved successfully!

Ooh no, something went wrong!