;;;;
;;;; source file of the GNU LilyPond music typesetter
;;;;
-;;;; (c) 2000--2001 Jan Nieuwenhuizen <janneke@gnu.org>
+;;;; (c) 2000--2002 Jan Nieuwenhuizen <janneke@gnu.org>
;;;;
(define (attached-to-stem slur dir)
(let ((beaming (ly-get-grob-property stem 'beaming)))
;; (display "beaming (") (display dir) (display "): ") (write beaming) (newline)
(if (pair? beaming)
- (>= (if (= dir -1) (cdr beaming) (car beaming))
+ (>= (length (if (= dir -1) (cdr beaming) (car beaming)))
1)
#f))))))
'stem)
;; stem: Default position is on stem X, at stem end Y
(define default-slur-extremity-offset-alist
'(
- ((head 1 1) . (-0.25 . 0.25))
- ((head 1 -1) . (-0.25 . 0.25))
- ((head -1 1) . (-0.25 . 0.25))
- ((head -1 -1) . (-0.85 . 0.25))
+ ((head 1 1) . (-0.25 . 0.75))
+ ((head 1 -1) . (-0.25 . 0.75))
+ ((head -1 1) . (-0.25 . 0.75))
+ ((head -1 -1) . (-0.85 . 0.75))
- ((stem 1 1) . (0 . 0.5))
- ((stem -1 -1) . (0 . 0.5))
+ ((stem 1 1) . (-0.125 . 0.5))
+ ((stem -1 -1) . (-0.125 . 0.5))
((loose-end 1 1) . (-0.4 . 0))
((loose-end 1 -1) . (-0.4 . 0))
((head -1 1) . (-0.25 . 1.25))
((head -1 -1) . (-0.85 . 1.25))
- ((stem 1 1) . (0 . 1.5))
- ((stem -1 -1) . (0 . 1.5))
+ ((stem 1 1) . (-0.25 . 1.5))
+ ((stem -1 -1) . (-0.25 . 1.5))
((loose-end 1 1) . (-0.4 . 0))
((loose-end 1 -1) . (-0.4 . 0))