10.04.2013 Views

in Snippets - LilyPond

in Snippets - LilyPond

in Snippets - LilyPond

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Expressive marks 74<br />

<br />

<br />

10<br />

<br />

50<br />

<br />

36<br />

<br />

Creat<strong>in</strong>g "real" parenthesized dynamics<br />

29<br />

<br />

Although the easiest way to add parentheses to a dynamic mark is to use a \markup block,<br />

this method has a downside: the created objects will behave like text markups, and not like<br />

dynamics.<br />

However, it is possible to create a similar object us<strong>in</strong>g the equivalent Scheme code (as described<br />

<strong>in</strong> the Notation Reference), comb<strong>in</strong>ed with the make-dynamic-script function. This<br />

way, the markup will be regarded as a dynamic, and therefore will rema<strong>in</strong> compatible with<br />

commands such as \dynamicUp or \dynamicDown.<br />

parenF = #(make-dynamic-script (markup #:l<strong>in</strong>e (#:normal-text #:italic<br />

#:fontsize 2 "(" #:hspace -0.8 #:dynamic "f" #:normal-text<br />

#:italic #:fontsize 2 ")")))<br />

\relative c'' {<br />

c4\parenF c c \dynamicUp c\parenF<br />

}<br />

<br />

<br />

<br />

( f )<br />

( f )<br />

<br />

Creat<strong>in</strong>g simultaneous rehearsal marks<br />

Unlike text scripts, rehearsal marks cannot be stacked at a particular po<strong>in</strong>t <strong>in</strong> a score: only one<br />

RehearsalMark object is created. Us<strong>in</strong>g an <strong>in</strong>visible measure and bar l<strong>in</strong>e, an extra rehearsal<br />

mark can be added, giv<strong>in</strong>g the appearance of two marks <strong>in</strong> the same column. This method may<br />

also prove useful for plac<strong>in</strong>g rehearsal marks at both the end of one system and the start of the<br />

follow<strong>in</strong>g system.<br />

{<br />

\key a \major<br />

\set Score.markFormatter = #format-mark-box-letters<br />

\once \override Score.RehearsalMark #'outside-staff-priority = #5000<br />

\once \override Score.RehearsalMark #'self-alignment-X = #LEFT<br />

\once \override Score.RehearsalMark #'break-align-symbols = #'(key-signature)<br />

\mark \markup { \bold { Senza denti } }<br />

% the hidden measure and bar l<strong>in</strong>e<br />

% \cadenzaOn turns off automatic calculation of bar numbers<br />

\cadenzaOn<br />

\once \override Score.TimeSignature #'stencil = ##f<br />

\time 1/16<br />

s16 \bar ""<br />

\cadenzaOff<br />

\time 4/4<br />

\once \override Score.RehearsalMark #'self-alignment-X = #LEFT<br />

\mark \markup { \box \bold Intro }<br />

d'1

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

Saved successfully!

Ooh no, something went wrong!