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.

Templates 498<br />

Hymn template<br />

This code shows one way of sett<strong>in</strong>g out a hymn tune when each l<strong>in</strong>e starts and ends with a<br />

partial measure. It also shows how to add the verses as stand-alone text under the music.<br />

Timel<strong>in</strong>e = {<br />

\time 4/4<br />

\tempo 4=96<br />

\partial 2<br />

s2 | s1 | s2 \breathe s2 | s1 | s2 \bar "||" \break<br />

s2 | s1 | s2 \breathe s2 | s1 | s2 \bar "||"<br />

}<br />

SopranoMusic = \relative g' {<br />

g4 g | g g g g | g g g g | g g g g | g2<br />

g4 g | g g g g | g g g g | g g g g | g2<br />

}<br />

AltoMusic = \relative c' {<br />

d4 d | d d d d | d d d d | d d d d | d2<br />

d4 d | d d d d | d d d d | d d d d | d2<br />

}<br />

TenorMusic = \relative a {<br />

b4 b | b b b b | b b b b | b b b b | b2<br />

b4 b | b b b b | b b b b | b b b b | b2<br />

}<br />

BassMusic = \relative g {<br />

g4 g | g g g g | g g g g | g g g g | g2<br />

g4 g | g g g g | g g g g | g g g g | g2<br />

}<br />

global = {<br />

\key g \major<br />

}<br />

\score { % Start score<br />

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

Saved successfully!

Ooh no, something went wrong!