Re: Modify ly:duration->string
Dan Eble <[email protected]> Sun, 10 May 2026 09:19:03 -0400
| Newsgroups | gmane.comp.gnu.lilypond.devel |
|---|---|
| Message-ID | <[email protected]> |
On 2026-05-10 06:36, Thomas Morley wrote: > #(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). Are you looking for `duration->lily-string`? https://gitlab.com/lilypond/lilypond/-/blob/d41c7ad45aa1558e91776f398bfd490d94222366/scm/define-music-display-methods.scm#L104 -- Dan