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 4: Tweaking output 105<br />

priority of OttavaBracket in the IR or in the tables above, and reduce it to a value lower than<br />

that of a TextSpanner, remembering that OttavaBracket is created in the Staff context:<br />

% Set details for later Text Spanner<br />

\override TextSpanner #'(bound-details left text)<br />

= \markup { \small \bold Slower }<br />

% Place dynamics above staff<br />

\dynamicUp<br />

%Place following Ottava Bracket below Text Spanners<br />

\once \override Staff.OttavaBracket #'outside-staff-priority = #340<br />

% Start Ottava Bracket<br />

\ottava #1<br />

c' \startTextSpan<br />

% Add Dynamic Text<br />

c\pp<br />

% Add Dynamic Line Spanner<br />

c\<<br />

% Add Text Script<br />

c^Text<br />

c c<br />

% Add Dynamic Text<br />

c\ff c \stopTextSpan<br />

% Stop Ottava Bracket<br />

\ottava #0<br />

c, c c c<br />

�<br />

�<br />

Slower<br />

8va<br />

�<br />

pp<br />

Text<br />

ff<br />

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

Slurs by default are classed as within-staff objects, but they often appear above the staff if<br />

the notes to which they are attached are high on the staff. This can push outside-staff objects<br />

such as articulations too high, as the slur will be placed first. The avoid-slur property of the<br />

articulation can be set to 'inside to bring the articulation inside the slur, but the avoid-slur<br />

property is effective only if the outside-staff-priority is also set to #f. Alternatively, the<br />

outside-staff-priority of the slur can be set to a numerical value to cause it to be placed<br />

along with other outside-staff objects according to that value. Here’s an example showing the<br />

effect of the two methods:<br />

c4( c^\markup\tiny\sharp d4.) c8<br />

c4(<br />

\once \override TextScript #'avoid-slur = #'inside<br />

\once \override TextScript #'outside-staff-priority = ##f<br />

c^\markup\tiny\sharp d4.) c8<br />

\once \override Slur #'outside-staff-priority = #500<br />

c4( c^\markup\tiny\sharp d4.) c8<br />

�<br />

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

Saved successfully!

Ooh no, something went wrong!