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

Tweaks and overrides 422<br />

#:hspace 7.1)))<br />

% Solution 4: Dynamic, sett<strong>in</strong>g the dimensions of the additional text to 0<br />

% Drawback: To lilypond "sempre" has no extent, so it might put<br />

% other stuff there => collisions<br />

% Drawback: Also, there seems to be some spac<strong>in</strong>g, so it's not exactly the<br />

% same alignment as without the additional text<br />

semppM =<br />

#(make-dynamic-script<br />

(markup #:l<strong>in</strong>e<br />

(#:with-dimensions '(0 . 0) '(0 . 0)<br />

#:right-align<br />

#:normal-text<br />

#:italic "sempre"<br />

#:dynamic "pp")))<br />

% Solution 5: Dynamic with explicit shift<strong>in</strong>g <strong>in</strong>side the scheme function<br />

semppG =<br />

#(make-dynamic-script<br />

(markup #:hspace 0<br />

#:translate '(-18.85 . 0)<br />

#:l<strong>in</strong>e (#:normal-text<br />

#:italic "sempre"<br />

#:dynamic "pp")))<br />

% Solution 6: Dynamic with explicit alignment. This has only effect<br />

% if one sets X-offset!<br />

% Drawback: One needs to set DynamicText #'X-offset!<br />

% Drawback: Aligned at the right edge of the additional text,<br />

% not at the center of pp<br />

semppMII =<br />

#(make-dynamic-script<br />

(markup #:l<strong>in</strong>e (#:right-align<br />

#:normal-text<br />

#:italic "sempre"<br />

#:dynamic "pp")))<br />

\context StaffGroup <br />

\context Staff = "sMarkup" >

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

Saved successfully!

Ooh no, something went wrong!