2 % candidate for remove or regression.
5 texidoc = "Check whether all @code{duration} properties can
6 be printed. This once helped track down an obscure memory corruption
13 #(define (duration-check music)
14 "Check all rest durations in MUSIC"
16 (let* ((name (ly:music-name music))
17 (elts (ly:get-mus-property music 'elements))
18 (e (ly:get-mus-property music 'element))
19 (duration (ly:get-mus-property music 'duration)))
21 (if (not (equal? '() duration))
23 (write "duration: " (current-error-port))
24 (write duration (current-error-port))
25 (newline (current-error-port)))
27 (if (equal? name "Rest_req")
29 (write "URG" (current-error-port))
30 (write name (current-error-port))
31 (write music (current-error-port))
32 (newline (current-error-port))
33 ;;(scm-error 'system-error #f "urg" #f #f)))
38 (map duration-check elts))
46 \apply #duration-check