Trille entre crochets

Bonjour à tous,
je n'arrive pas à coder une fonction pour avoir un trille entre crochets.
Pour mettre un piano ou un forte, j'utilise la fonction suivante, que j'avais trouvé dans un sujet de forum :

bracket =
#(define-event-function (dyn) (ly:event?)
   (make-dynamic-script
    #{ \markup \concat {
         \normal-text \fontsize #2 [
	 \italic \pad-x #0.2 #(ly:music-property dyn 'text)
	 \normal-text \fontsize #2 ]
       }
    #}))

Comment est-ce que je pourrais la modifier pour avoir aussi un trille (ou un autre signe d'interprétation) entre crochets ??
Merci de votre aide,
Rémy

Hello Rémy,
Voici une possibilité :

\version "2.24.0" %ou "2.26.0"

bktArt =
#(define-event-function (art) (ly:event?)
   #{
     -\tweak stencil
       #(lambda (grob)
          (let* (
                 (orig-stencil 
                  (ly:stencil-aligned-to 
                   (ly:script-interface::print grob) Y 0))
                 (l-bkt 
                  (ly:stencil-aligned-to 
                   (grob-interpret-markup grob #{ \markup \normal-text \fontsize #2 "[" #}) Y 0))
                 (r-bkt 
                  (ly:stencil-aligned-to 
                   (grob-interpret-markup grob #{ \markup \normal-text \fontsize #2 "]" #}) Y 0)))
            (ly:stencil-combine-at-edge
              (ly:stencil-combine-at-edge l-bkt X RIGHT orig-stencil 0.1) 
              X RIGHT r-bkt 0.1)))
     #art
   #})

% Test :
{
  c''\bktArt\trill c'_\bktArt\mordent
}

Amitiés,
Pierre

C'est parfait !!
Merci Pierre
Rémy