]> git.donarmstrong.com Git - lilypond.git/blobdiff - scm/stencil.scm
Updates to fret-diagrams
[lilypond.git] / scm / stencil.scm
index 047c0d0bb9622a2d514da8360bcca871e14f636b..9067e0974e56262af5ca09db4032e7e298a55d77 100644 (file)
@@ -4,6 +4,13 @@
 ;;;; 
 ;;;; (c) 2003--2008 Han-Wen Nienhuys <hanwen@xs4all.nl>
 
+(define-public (translate-stencil stencil coordinate-pair)
+  "Translate @code{stencil} by the distances specified in
+@code{coordinate-pair}."
+  (ly:stencil-translate-axis
+    (ly:stencil-translate-axis stencil (cdr coordinate-pair) Y)
+    (car coordinate-pair) X))
+
 (define-public (stack-stencils axis dir padding stils)
   "Stack stencils STILS in direction AXIS, DIR, using PADDING."
   (cond
       (interval-widen xext (/ width 2))
       (interval-widen yext (/ width 2)))))
 
+(define-public (make-round-filled-box-stencil xext yext blot-diameter)
+  "Make a filled rounded box."
+  
+  (ly:make-stencil
+      (list 'round-filled-box (- (car xext)) (cdr xext)
+                       (- (car yext)) (cdr yext) blot-diameter)
+      xext yext))
+
 (define-public (make-filled-box-stencil xext yext)
   "Make a filled box."