Modify ly:duration->string

Thomas Morley <[email protected]> Sun, 10 May 2026 12:36:11 +0200
Newsgroups gmane.comp.gnu.lilypond.devel
Message-ID <CABsfGyW0cDFWbhJivzxis-n4FmmO_8yf8mkMz2D4bk7GdP9=GA@mail.gmail.com>
Hi,
consider the following:
#(pretty-print (ly:duration->string (ly:make-duration -3)))
returning:
"log = -3"

Is it possible to let it return "maxima" (similar for "longa", "breve")?
To be more precise, this is a request to modify ly:duration->string (I
have already some clumsy custom code to deal with negative durations).

Cheers,
  Harm