lilypond-user
[Top][All Lists]
Advanced

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

Re: Hide Notes but display Accidental


From: Rip _Mus
Subject: Re: Hide Notes but display Accidental
Date: Fri, 18 Nov 2022 08:02:31 +0100

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 <rajeshbv@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



\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

PNG image

Attachment: acc.png
Description: PNG image


reply via email to

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