1 1 1))
(make-circle-stencil
scale-dot-radius scale-dot-thick #t)))
- (positioned-dot (translate-stencil dot-stencil dot-coordinates))
+ (positioned-dot (ly:stencil-translate dot-stencil dot-coordinates))
(labeled-dot-stencil
(cond
((or (eq? finger '())(eq? finger-code 'none))
(centered-stencil
(sans-serif-stencil
layout props dot-label-font-mag finger))))
- (translate-stencil
+ (ly:stencil-translate
(ly:stencil-add
dot-stencil
(if (eq? dot-color 'white)
orientation)))
(ly:stencil-add
positioned-dot
- (translate-stencil label-stencil label-translation))))
+ (ly:stencil-translate label-stencil label-translation))))
(else ;unknown finger-code
positioned-dot))))
(if (null? restlist)
(glyph-stencil-coordinates
(stencil-coordinates 0 glyph-string-coordinate orientation))
(positioned-glyph
- (translate-stencil glyph-stencil glyph-stencil-coordinates)))
+ (ly:stencil-translate glyph-stencil glyph-stencil-coordinates)))
(if (null? restlist)
positioned-glyph
(ly:stencil-add
(label-half-width
(stencil-fretboard-offset label-stencil 'string orientation))
(label-outside-diagram (+ label-space label-half-width)))
- (translate-stencil
+ (ly:stencil-translate
label-stencil
(stencil-coordinates
(1+ (* size label-vertical-offset))
(set! fret-diagram-stencil
(ly:stencil-add
fret-diagram-stencil
- (translate-stencil
+ (ly:stencil-translate
xo-stencil
(stencil-coordinates
(- diagram-fret-top
;;;;
;;;; (c) 2003--2009 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."