29.11.2012 Views

mpdolce - LilyPond

mpdolce - LilyPond

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

Chapter 3: Fundamental concepts 45<br />

\key d \minor<br />

% Voice "1" Voice "2"<br />

> |<br />

> |<br />

> |<br />

� � �<br />

� �<br />

� � � � ��<br />

� �<br />

� �<br />

� � � ��<br />

� ���<br />

��<br />

It is not necessary to use a separate > construct for each bar. For music with few<br />

notes in each bar this layout can help the legibility of the code, but if there are many notes in<br />

each bar it may be better to split out each voice separately, like this:<br />

\key d \minor<br />

><br />

� � � �� � � � � � � ����<br />

�<br />

� � � ��<br />

� �<br />

� � �<br />

This example has just two voices, but the same construct may be used to encode three or<br />

more voices by adding more back-slash separators.<br />

The Voice contexts bear the names "1", "2", etc. In each of these contexts, the vertical<br />

direction of slurs, stems, ties, dynamics etc., is set appropriately.<br />

\new Staff \relative c' {<br />

% Main voice<br />

c16 d e f<br />

% Voice "1" Voice "2" Voice "3"<br />

> |<br />

> |<br />

}<br />

�<br />

�<br />

� � � � �<br />

� � � � � � ��<br />

� � �� �<br />

� ��<br />

�<br />

These voices are all separate from the main voice that contains the notes just outside the<br />

> construct. Let’s call this the simultaneous construct. Slurs and ties may only connect<br />

notes within the same voice, so slurs and ties cannot go into or out of a simultaneous construct.<br />

�<br />

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

Saved successfully!

Ooh no, something went wrong!