Jump to content

Making staff lines invisible: Difference between revisions

From LilyPond wiki
Import snippet from LSR
 
m Replace version="2.24.0" with version="2.24" now that the LilyWiki extension supports auto-selecting the latest release in a stable series
Line 1: Line 1:
You can make staff lines invisible by removing the <code>Staff_symbol_engraver</code> from the <code>Staff</code> context.
You can make staff lines invisible by removing the <code>Staff_symbol_engraver</code> from the <code>Staff</code> context.


<lilypond version="2.24.0">
<lilypond version="2.24">
%% http://lsr.di.unimi.it/LSR/Item?id=167
%% http://lsr.di.unimi.it/LSR/Item?id=167



Revision as of 18:52, 16 November 2025

You can make staff lines invisible by removing the Staff_symbol_engraver from the Staff context.

\version "2.24"

%% http://lsr.di.unimi.it/LSR/Item?id=167

\score {
  \context Staff \relative c'' { c8 c c16 c c c }
  \layout{
    \context {
      \Staff
      \remove Staff_symbol_engraver
    }
  }
}