(define-public (voicify-music m)
"Recursively split chords that are separated with \\ "
(if (not (ly:music? m))
- (begin (display m)
- (error "not music!")))
+ (ly:error (_ "music expected: ~S") m))
(let ((es (ly:music-property m 'elements))
(e (ly:music-property m 'element)))
(let* ((bn (ly:context-property tr 'currentBarNumber)))
(if (= bn n)
#t
- (error
- (format "Bar check failed, we should have reached ~a, instead at ~a\n"
- n bn)))))
+ (ly:error
+ ;; FIXME: uncomprehensable message
+ (_ "Bar check failed. Expect to be at ~a, instead at ~a")
+ n bn))))
(set! (ly:music-property m 'procedure) checker)
m))
(let ((ip (ly:music-property music 'origin)))
(if (ly:input-location? ip)
(ly:input-message ip msg)
- (ly:warn msg))))
+ (ly:warning msg))))
(define (check-start-chords music)
"Check music expression for a Simultaneous_music containing notes\n(ie. Request_chords),
(if (string? quoted-name)
(if (vector? quoted-vector)
(set! (ly:music-property music 'quoted-events) quoted-vector)
- (ly:warn "Cannot find quoted music `~S'" quoted-name)))
-
+ (ly:warning (_ "can't find quoted music `~S'" quoted-name))))
music))
'()
context))
(else
- (ly:warn "Unknown accidental style: ~S" (symbol->string style))
+ (ly:warning (_ "unknown accidental style: ~S" style))
(make-sequential-music '()))))))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;