27.03.2013 Views

LilyPond Snippets

LilyPond Snippets

LilyPond Snippets

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 125<br />

Text<br />

These snippets illustrate Section “Text” in Notation Reference.<br />

Adding the current date to a score<br />

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

% first, define a variable to hold the formatted date:<br />

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

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

\header {<br />

title = "Including the date!"<br />

subtitle = \date<br />

}<br />

\score {<br />

\relative c'' {<br />

c4 c c c<br />

}<br />

}<br />

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

\markup {<br />

\date<br />

}<br />

<br />

<br />

<br />

13-01-2010<br />

<br />

<br />

Adjusting lyrics vertical spacing<br />

Including the date!<br />

13-01-2010<br />

This snippet shows how to bring the lyrics line 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!