[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Show ledger line with hidden staff
From: |
Jean Abou Samra |
Subject: |
Re: Show ledger line with hidden staff |
Date: |
Tue, 15 Nov 2022 08:01:19 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.1 |
Le 14/11/2022 à 21:29, Rajesh Baskar a écrit :
Hi,
I'm trying to display just the notes without the staff lines but I
need the ledger line to be displayed. I know you can use \stopStaff or
\remove "Staff_symbol_engraver" but that removes the ledger line as
well. Please advise and thanks in advance.
\version "2.22.0" \include "english.ly" \header { tagline = "" }
\score {\new Staff \with {\remove Time_signature_engraver
\hide Clef
\hide BarLine
\remove "Staff_symbol_engraver"
}
{\set Staff.midiInstrument = #"Acoustic Grand Piano"
\key c \major \time 4/4 \clef treble
\stopStaff c'1
}
\layout { indent = #0 line-width = #25 }
\midi { \tempo 4 = 168}}
Remove \stopStaff and \remove "Staff_symbol_engraver", and add
\hide StaffSymbol
This works because the ledger lines are displayed by a separate
grob (LedgerLineSpanner).
Best,
Jean
OpenPGP_signature
Description: OpenPGP digital signature