> I'd like to make my midi file with a metronome sound or click track, > but for this part to be completely absent from the PDF. I'd also > prefer to avoid custom-made solutions if I can, because of their > tendency to "rot" as new versions of Lilypond make them > obsolete. Can I just add an ordinary percussion part that sounds but > is prevented from being printed?
Always consult the LSR first :-) Have a look at https://lsr.di.unimi.it/LSR/Item?id=1114 Werner