Good morning,
take a look:

%%%%%
\version "2.22.0"
\include "english.ly"

newHideNotes = {
\override NoteHead.transparent = ##t
\override NoteHead.no-ledgers = ##t %optional
\override Stem.transparent = ##t
}

\header { tagline = "" }
\score {
\new Staff
\with {\remove "Time_signature_engraver" }
{
\set Staff.midiInstrument = #"Acoustic Grand Piano"

\key c \major \time 5/1 \clef bass

\newHideNotes

f1 g a bf c' \bar "||"}

\layout {
\context {
\Score proportionalNotationDuration = #(ly:make-moment 1/2)
}
 }
\midi { \tempo 1 = 72}
}
%%%%%

rip_mus

Il ven 18 nov 2022, 01:04 Rajesh Baskar <rajes...@hotmail.com> ha scritto:

> Hi Everyone,
>
> I want to hide all the notes but display it's accidental. I can do the
> opposite of it by using \hidenotes and \omit Accidental. I want to achieve
> something like the below image. Please help.
>
> [image: Image]
>
>
> \version "2.22.0" \include "english.ly" \header { tagline = "" } \score
> {\new Staff \with {\remove "Time_signature_engraver" } {\set
> Staff.midiInstrument = #"Acoustic Grand Piano"
>                                 \key c \major \time 5/1 \clef bass
>
>                                 \hideNotes  f1 g a bf c' \bar "||"}
> \layout { \context { \Score proportionalNotationDuration =
> #(ly:make-moment 1/2) } }
> \midi { \tempo 1 = 72}}
>
> Thanks,
>
> Raj
>

Reply via email to