"Coller" deux notes

Bonjour à tout le groupe!

Avec ceci:

\version "2.26.0"

longaH = #(define-music-function (pitch)  (ly:pitch?)
                  #{
                    \once \override Staff.Stem.length = 5 %exagéré pour l'exemple
                    \once \override Staff.Stem.thickness = 1.3
                    \once \override Staff.NoteHead.stem-attachment = #'(-0.85 . -0)
                    \once \override Staff.NoteHead.stencil = #ly:text-interface::print
                    \tweak NoteHead.text  \markup {
                      \musicglyph "noteheads.srM1mensural"
                    }
                    $pitch 4*1/2 #})

\relative c'' {
   \time 7/1
   \override NoteHead.style = #'baroque
  g1 fis\breve \once \override NoteHead.style = #'petrucci \once \override NoteHead.extra-spacing-width = #'(0 . -5) \longaH e fis\breve*15/16 g\breve
}

je cherche à obtenir un effet de ligature entre les deux notes "\longaH mi" et la breve fa#, c'est-à-dire que le mi soit "collé" au fa# (comme dans une ligature mensurale). J'ai essayé d'utiliser le Staff Petrucci, mais tout est transformé en notation, têtes de notes, dièses, mensuraux... Existe-t-il une solution pour cela?

Amitiés.

Bernard

Bonjour bameylan,

Je réponds un peu tard, mais est-ce que quelque chose comme cela ferait l'affaire?

\version "2.26.0"

\score {
  \relative c'' {
    \time 7/1
    \set Score.timing = ##f
    \set Score.measureBarType = #'()
    \override Staff.TimeSignature.style = #'mensural

    \override NoteHead.style = #'baroque
    g1 fis\breve

    \override NoteHead.style = #'petrucci
    \[ e\longa fis\breve \]

    \override NoteHead.style = #'baroque
    g\breve
  }

  \layout {
    \context {
      \Voice
      \remove Ligature_bracket_engraver
      \consists Mensural_ligature_engraver
    }
  }
}