|
From: | Rajesh Baskar |
Subject: | RE: Show ledger line with hidden staff |
Date: | Tue, 15 Nov 2022 09:04:04 +0000 |
Hi Jean, Thank you so much, that worked. From: Jean Abou Samra 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 |
[Prev in Thread] | Current Thread | [Next in Thread] |