1

I'm trying to create a function that changes the note head font-size depending on the duration of the note. For example, if the note is a whole-note, then its note head should have double size.

I haven't found anything in the lilypond snippets that is even close. I was trying something like this, but for some reason the argument grub is not passed.

#(define (size-notehead grob)
   (duration-to-size
    (ly:event-property (event-cause grob) 'duration)))

applyNoteHeadSize = {
  \override NoteHead.font-size = #size-notehead
}

Can someone help me, please?

alinsoar
  • 15,386
  • 4
  • 57
  • 74
Robert Mengual
  • 374
  • 3
  • 10
  • `scheme` means a programming language. – alinsoar Feb 26 '22 at 13:22
  • I know scheme is a programming language, it is the language used by Lilypond and as you can see it is being used in the example I added – Robert Mengual Feb 28 '22 at 10:14
  • The question does not concern the language however. Scheme is the "official" language for scripting gnu/linux applications and there are hundred of applications written in scheme. This question does not concern the #scheme as it is not specific to the language, but to some application. – alinsoar Feb 28 '22 at 12:55

0 Answers0