From: David Kastrup Date: Sun, 28 Jul 2013 11:19:29 +0000 (+0200) Subject: Issue 3479: Define \fermata markup command that heeds `direction' X-Git-Tag: release/2.17.24-1~16^2~9 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=a349a341d0ed42002048be28b948c1bb1503bc6b;p=lilypond.git Issue 3479: Define \fermata markup command that heeds `direction' --- diff --git a/scm/define-markup-commands.scm b/scm/define-markup-commands.scm index 2f08783d7e..d5aef11140 100644 --- a/scm/define-markup-commands.scm +++ b/scm/define-markup-commands.scm @@ -3790,6 +3790,28 @@ Could be disabled with @code{\\override #'(multi-measure-rest-number . #f)} mmr-stil stil)))) +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;; fermata markup +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + +(define-markup-command (fermata layout props) () + #:category music + #:properties ((direction UP)) + "Create a fermata glyph. When @var{direction} is @code{DOWN}, use +an inverted glyph. Note that within music, one would usually use the +@code{\\fermata} articulation instead of a markup. + +@lilypond[verbatim,quote] + { c1^\\markup \\fermata d1_\\markup \\fermata } + +\\markup { \\fermata \\override #`(direction . ,DOWN) \\fermata } +@end lilypond +" + (interpret-markup layout props + (if (eqv? direction DOWN) + (markup #:musicglyph "scripts.dfermata") + (markup #:musicglyph "scripts.ufermata")))) + ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; translating. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;