]> git.donarmstrong.com Git - lilypond.git/blobdiff - scm/translation-functions.scm
* scm/define-grobs.scm (all-grob-descriptions): reorganize in
[lilypond.git] / scm / translation-functions.scm
index 571e6c964c857e006b268671019f5acbfe09194a..3571440dd4d34693a22bf03bc773752e0402e50d 100644 (file)
 (define-public (format-mark-box-barnumbers mark context)
   (make-bold-markup (make-box-markup
     (number->string (ly:context-property context 'currentBarNumber)))))
+
+(define-public (format-pitched-trill-head pitch do-print-accidental context)
+  (make-override-markup
+   '(word-space . 0.0)
+   (make-line-markup
+    (append
+     (list
+      (make-musicglyph-markup "accidentals.leftparen"))
+     (if do-print-accidental
+        (list (make-musicglyph-markup
+               (string-append "accidentals."
+                              (number->string (ly:pitch-alteration pitch))))
+              (make-hspace-markup 0.2))
+        '())
+     
+     (list
+      (make-musicglyph-markup "noteheads.s2")
+      (make-musicglyph-markup "accidentals.rightparen"))
+     ))))