Le 12/01/2023 à 05:44, Rajesh Baskar a écrit :
Hi Jean,

Thanks for your help this works. But I have a question, this solution makes the 1st image match the width of the 2nd image by reducing it. Can the 2nd images width match the  1st images width by increasing it.


Try


\version "2.24.0"

\language english

RedDotMarkup = \markup \with-color "#FF0000" \vcenter \fontsize #-1 \musicglyph "dots.dot"
RedDot =
  \tweak text \RedDotMarkup
  \tweak stencil
    #(grob-transformer
      'stencil
      (lambda (grob original)
        (ly:stencil-outline
         (ly:text-interface::print grob)
         original)))
  \tweak staff-position #0
  \etc

\header {
  tagline = ##f
}

\score {
  \new Staff \with { \omit TimeSignature }
  {
    \set Staff.midiInstrument = #"acoustic grand"
    \key c \major
    \time 5/1
    \clef bass
    g,1 a,
    \tweak transparent ##t %% Comment or uncomment this line
    \RedDot b,
    c d
    \bar "||"
  }
  \layout {
    \context {
      \Score proportionalNotationDuration = #(ly:make-moment 1/2)
    }
  }
}



Basically, it gives the red dot note head the same width
as a normal note head (although it's not clear to me why
this is important in your use case).

Best,
Jean



Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to