Thanks Aaron that worked.

From: Aaron Hill<mailto:[email protected]>
Sent: Wednesday, August 17, 2022 12:49 PM
To: Rajesh Baskar<mailto:[email protected]>
Cc: [email protected]<mailto:[email protected]>
Subject: Re: Alignment help

On 2022-08-17 12:30 pm, Rajesh Baskar wrote:
> I'm trying to replace some of the notes with a question mark and I
> achieved this with this group's help sometime back. Here is the

To get the alignment, you need to do a few things.  The markup itself
needs to be vertically centered, and then the staff-position of the note
can be forced to be on the middle line:

%%%%
\version "2.22.0"
\language english

questionMarkMarkup =
\markup \vcenter \fontsize #7 \with-color "#6A00F4" "?"

questionMark =
\tweak text \questionMarkMarkup
\tweak stencil #ly:text-interface::print
\tweak staff-position #0
\etc

{
   \cadenzaOn \clef bass
   g,1
   \questionMark a,
   \questionMark b,
   \questionMark c
   d
}
%%%%


-- Aaron Hill

Reply via email to