Bonjour,
Ce code qui était accepté auparavant ne passe plus avec Lily 2.25 :
\version "2.24.0"
#(define comml (object->std::string (command-line)))
donne :
> lilypond GuileTest.ly
GNU LilyPond 2.25.8 (running Guile 2.2)
Processing `GuileTest.ly'
Parsing...
GuileTest.ly:6:2: error: Guile signaled an error for the expression beginning here
#
(define comml (object->std::string (command-line)))
Unbound variable: object->std::string
Note: compilation failed and \version outdated, did you
update input syntax with convert-ly?
https://lilypond.org/doc/v2.25/Documentation/usage/updating-files-with-convert_002dly
fatal error: failed files: "GuileTest.ly"
convert-ly ne fait auccun changement, et je n'ai rien trouvé dans les documentations ni sur Internet.
Voici le code complet que j'utilise pour avoir la version de Lily et les date et heure de son exécution :
%%%%%%%
#(define comml (object->std::string (command-line)))
#(define loc (+ (string-rindex comml #\space ) 2))
#(define commllen (- (string-length comml) 2))
#(define filen (substring comml loc commllen))
#(define siz (object->std::string (stat:size (stat filen))))
#(define ver (object->std::string (lilypond-version)))
#(define dat (strftime "%d/%m/%Y" (localtime (current-time))))
#(define tim (strftime "%H:%M:%S" (localtime (current-time))))
#(define modTime (stat:mtime (stat filen)))
#(define modTimeAsString (strftime "%d/%m/%Y - %H:%M:%S" (localtime modTimeSignature)))
%%%%%%%
Merci pour votre aide!
JM