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.

Text 166<br />

Text<br />

Section “Text” <strong>in</strong> Notation Reference<br />

Add<strong>in</strong>g the current date to a score<br />

With a little Scheme code, the current date can easily be added to a score.<br />

% first, def<strong>in</strong>e a variable to hold the formatted date:<br />

date = #(strftime "%d-%m-%Y" (localtime (current-time)))<br />

% use it <strong>in</strong> the title block:<br />

\header {<br />

title = "Includ<strong>in</strong>g the date!"<br />

subtitle = \date<br />

}<br />

\score {<br />

\relative c'' {<br />

c4 c c c<br />

}<br />

}<br />

% and use it <strong>in</strong> a \markup block:<br />

\markup {<br />

\date<br />

}<br />

<br />

<br />

04-01-2013<br />

<br />

Adjust<strong>in</strong>g lyrics vertical spac<strong>in</strong>g<br />

Includ<strong>in</strong>g the date!<br />

04-01-2013<br />

This snippet shows how to br<strong>in</strong>g the lyrics l<strong>in</strong>e closer to the staff.<br />

% Default layout:<br />

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

Saved successfully!

Ooh no, something went wrong!