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.

Staff notation 137<br />

Quot<strong>in</strong>g another voice with transposition<br />

Quotations take <strong>in</strong>to account the transposition of both source and target. In this example, all<br />

<strong>in</strong>struments play sound<strong>in</strong>g middle C; the target is an <strong>in</strong>strument <strong>in</strong> F. The target part may<br />

be transposed us<strong>in</strong>g \transpose. In this case, all the pitches (<strong>in</strong>clud<strong>in</strong>g the quoted ones) are<br />

transposed.<br />

\addQuote clar<strong>in</strong>et {<br />

\transposition bes<br />

\repeat unfold 8 { d'16 d' d'8 }<br />

}<br />

\addQuote sax {<br />

\transposition es'<br />

\repeat unfold 16 { a8 }<br />

}<br />

quoteTest = {<br />

% french horn<br />

\transposition f<br />

g'4<br />

><br />

><br />

g'4<br />

}<br />

{<br />

}<br />

\set Staff.<strong>in</strong>strumentName =<br />

\markup {<br />

\center-column { Horn \l<strong>in</strong>e { <strong>in</strong> F } }<br />

}<br />

\quoteTest<br />

\transpose c' d' ><br />

Horn<br />

<strong>in</strong> F<br />

<br />

clar.<br />

sax.<br />

clar.<br />

<br />

up a tone<br />

<br />

Quot<strong>in</strong>g another voice<br />

sax.<br />

<br />

The quotedEventTypes property determ<strong>in</strong>es the music event types which should be quoted. The<br />

default value is (note-event rest-event tie-event beam-event tuplet-span-event), which<br />

means that only the notes, rests, ties, beams and tuplets of the quoted voice will appear <strong>in</strong> the<br />

\quoteDur<strong>in</strong>g expression. In the follow<strong>in</strong>g example, a 16th rest is not quoted s<strong>in</strong>ce rest-event<br />

is not <strong>in</strong> quotedEventTypes.<br />

For a list of event types, consult the “Music classes” section of the Internals Reference.<br />

quoteMe = \relative c' {<br />

fis4 r16 a8.-> b4\ff c<br />

}<br />

\addQuote quoteMe \quoteMe

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

Saved successfully!

Ooh no, something went wrong!