[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Hide and replace a note with text

From: Rajesh Baskar
Subject: Hide and replace a note with text
Date: Wed, 8 Dec 2021 10:50:15 -0800
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.3.2


Can you hide and replace a note with a question mark? I kind of achieved this with the below example. But the question mark is not in place of the note, it appears below the staff. I can use \override TextScript.extra-offset = #'(0 . 4.275) to achieve this but I don't want to hard code the offset as the note to hide can appear anywhere on the staff.

     \version "2.22.0" \include ""
     \header { tagline = "" }
     \score {\new Staff \with {\remove "Time_signature_engraver" }
             {\set Staff.midiInstrument = #"Acoustic Grand Piano"
              \key c \major \time 5/1 \clef bass f1 g
        \hideNotes a-\markup {\fontsize #7 \with-color "#6A00F4" "?" }
        bf c' \bar "||"}  \layout { }
            \midi { \tempo 4 = 168}}

Thanks for the help.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]