Encerclement de notes

Un cercle peut venir entourer une note à l’aide d’une fonction Scheme dédiée qui, temporairement, viendra en modifier la propriété stencil.

circle = \tweak NoteHead.stencil
  #(lambda (grob)
    (let* ((note (ly:note-head::print grob))
           (combo-stencil (ly:stencil-add
               note
               (circle-stencil note 0.1 0.8))))
          (ly:make-stencil (ly:stencil-expr combo-stencil)
            (ly:stencil-extent note X)
            (ly:stencil-extent note Y))))
  \etc

{ \circle c'' }
[image of music]

LilyPond snippets v2.25.32 (development-branch).