Karsten, a new answer to your question arrived 5 years later, thanks to Stephen. I thought it would be useful to share back in the mailing list :)
Ref: https://lists.gnu.org/archive/html/lilypond-user/2019-12/msg00276.html On Sun, Sep 24, 2023 at 03:16:59PM -0700, Stephen Riddle wrote: > Hi Sandro > > I'm not a member of the news list where you posted this (five years ago) > > but this is what I would have answered, > > I have found either all on or all off midi settings kind of awkward myself. > > Use the \with command when you start a new voice or staff or chordNames or > whatever: chordProgression = \chordmode { c1:sus2 \( c1 c1:sus2 c1 \) } > > \new ChordNames \with { \remove "Staff_performer" }{ \chordProgression } > \new Staff \with { \remove "Staff_performer" } { \chordProgression } > \new Staff { c'4 d' e' c'' b' c'' b' e'' d'' c'' d'' c''1 } > > which shuts down midi output for a single context. > > > Stephen