Le 30/11/2022 à 16:34, Jean Faure a écrit :
Just for a test, I changed all image filenames to note4.eps. However, it turned out that the custom image is scaled differently depending on duration-log. Why?I attach the lily, eps and output pdf files.
The code reads: #(case (ly:grob-property grob 'duration-log) ;; whole note: ((0) #{ \markup \epsfile #X #2 "note4.eps" #}) ;; half note: ((1) #{ \markup \epsfile #X #3 "note4.eps" #}) ;; quarter note and shorter: ((2) #{ \markup \epsfile #X #4 "note4.eps" #}))The values #2, #3 and #4 are the scaling factors. My original intent was to make them different to clarify that you could use any scaling you liked for each image.
Best, Jean
OpenPGP_signature
Description: OpenPGP digital signature