]> git.donarmstrong.com Git - lilypond.git/commitdiff
Doc: add example left-aligning dynamic text (2943)
authorTrevor Daniels <t.daniels@treda.co.uk>
Wed, 21 Nov 2012 16:56:39 +0000 (16:56 +0000)
committerTrevor Daniels <t.daniels@treda.co.uk>
Tue, 27 Nov 2012 09:12:51 +0000 (09:12 +0000)
Documentation/notation/expressive.itely

index 1fb946b0178b9f96d7e63b2aad9a37a02ad95aa8..f327ad2c24e8e629482366f1061a1aa607043b7c 100644 (file)
@@ -604,6 +604,20 @@ moltoF = #(make-dynamic-script
 }
 @end lilypond
 
+To left-align the dynamic text rather than centering it on a note
+use a @code{\tweak}:
+
+@lilypond[verbatim,quote]
+moltoF = \tweak DynamicText.self-alignment-X #LEFT
+         #(make-dynamic-script
+            (markup #:normal-text "molto"
+                    #:dynamic "f"))
+\relative c' {
+  <d e>16 <d e>
+  <d e>2..\moltoF <d e>1
+}
+@end lilypond
+
 Font settings in markup mode are described in
 @ref{Selecting font and font size}.