Is it possible to include and use
>'parse-simple-duration' in a local script (without copy and pasting it)?
Well, I would have no problem to c/p 'parse-simple-duration', though
yes, it is possible:
#(define (note-to-moment notestr)
(let ((parsed ((@@ (lily) parse-simple-duration ) notestr)))
(ly:duration-length
(ly:make-duration (car parsed) (cadr parsed)))))
#(write (note-to-moment "4."))
--> #<Mom 3/8>
Though, quoting guile-manual:
— syntax: @@ module-name binding-name
Refer to the binding named binding-name in module module-name. The
binding must not have been exported by the module. This syntax is only
intended for debugging purposes or as a last resort.
!!
Cheers,
Harm