[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Note head as a custom image chosen according to note duration
From: |
Jean Abou Samra |
Subject: |
Re: Note head as a custom image chosen according to note duration |
Date: |
Wed, 30 Nov 2022 16:38:56 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 |
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
- Note head as a custom image chosen according to note duration, Jean Faure, 2022/11/21
- Re: Note head as a custom image chosen according to note duration, Jean Abou Samra, 2022/11/21
- Re: Note head as a custom image chosen according to note duration, Valentin Petzel, 2022/11/21
- Re: Note head as a custom image chosen according to note duration, Aaron Hill, 2022/11/21
- Re: Note head as a custom image chosen according to note duration, Jean Abou Samra, 2022/11/21
- Re: Note head as a custom image chosen according to note duration, Aaron Hill, 2022/11/21
- Message not available
- Re: Note head as a custom image chosen according to note duration, Jean Abou Samra, 2022/11/24
- Re: Note head as a custom image chosen according to note duration, Jean Faure, 2022/11/30
- Re: Note head as a custom image chosen according to note duration,
Jean Abou Samra <=
- Re: Note head as a custom image chosen according to note duration, Jean Faure, 2022/11/30
- Re: Note head as a custom image chosen according to note duration, Jean Abou Samra, 2022/11/30