Jump to content

Making staff lines invisible: Difference between revisions

From LilyPond wiki
Import snippet from LSR
 
m New category
Tags: Mobile edit Mobile web edit
 
(2 intermediate revisions by 2 users not shown)
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


Line 17: Line 17:
[[Category:Contexts and engravers]]
[[Category:Contexts and engravers]]
[[Category:Really simple]]
[[Category:Really simple]]
[[Category:Snippet]]

Latest revision as of 23:26, 21 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
    }
  }
}