(subtract-base-fret base-fret (cdr dot-list))))))
(define (sans-serif-stencil layout props mag text)
- "create a stencil in sans-serif font based on @var{layout} and @var{props}
+ "Create a stencil in sans-serif font based on @var{layout} and @var{props}
with magnification @var{mag} of the string @var{text}."
(let* ((my-props
(prepend-alist-chain
(scale-dot-thick (* size dot-thickness))
(dot-color (assoc-get 'dot-color details 'black))
(finger-xoffset -0.25)
- (finger-yoffset (- (* size 0.5)))
+ (finger-yoffset (* -0.5 size ))
(dot-label-font-mag
(* scale-dot-radius (assoc-get 'dot-label-font-mag details 1.0)))
(string-label-font-mag
glyph-stencil))))
(define (make-bezier-sandwich-list start stop base height thickness orientation)
- " Make the argument list for a bezier sandwich from
+ "Make the argument list for a bezier sandwich from
@var{start} to @var{stop} with a baseline at @var{base}, a height of
@var{height}, and a thickness of @var{thickness}. If @var{orientation} is
@var{'normal}, @var{base} is a y coordinate, otherwise it's an x coordinate."
(make-fret-diagram layout props marking-list))
(define (make-fret-diagram layout props marking-list)
- " Make a fret diagram markup"
+ "Make a fret diagram markup"
(let* (
; note: here we get items from props that are needed in this routine,
; or that are needed in more than one of the procedures
(ly:stencil-add
(draw-strings string-count fret-range th size orientation)
(draw-frets fret-range string-count th size orientation))))
+; (display "PROPS \n") (display props) (display "\n")
+; (display "DETAILS \n") (display details) (display "\n")
(if (not (null? barre-list))
(set! fret-diagram-stencil
(ly:stencil-add
layout (car definition-list) (cdr definition-list))))
(define (fret-parse-definition-string props definition-string)
- "parse a fret diagram string and return a pair containing:
+ "Parse a fret diagram string and return a pair containing:
props, modified as necessary by the definition-string
a fret-indication list with the appropriate values"
(let* ((fret-count 4)
`(,props . ,output-list))) ;ugh -- hard-coded spell -- procedure better
(define (cons-fret new-value old-list)
- " Put together a fret-list in the format desired by parse-string "
+ "Put together a fret-list in the format desired by parse-string"
(if (eq? old-list '())
(list new-value)
(cons* new-value old-list)))
`(,props . ,output-list))) ; ugh -- hard coded; proc is better
(define (drop-paren item-list)
- " drop a final parentheses from a fret indication list
+ "Drop a final parentheses from a fret indication list
resulting from a terse string specification of barre."
(if (> (length item-list) 0)
(let* ((max-index (- (length item-list) 1))
item-list))
(define (get-sub-list value master-list)
- " Get a sub-list whose cadr is equal to @var{value} from @var{master-list}"
+ "Get a sub-list whose cadr is equal to @var{value} from @var{master-list}"
(if (eq? master-list '())
#f
(let ((sublist (car master-list)))