---------- Forwarded message ----------
From: David Bellows <address@hidden>
To:
Cc: lilypond-user Mailinglist <address@hidden>
Bcc:
Date: Sat, 30 Nov 2019 14:18:48 -0800
Subject: Re: Unconventional score and unwanted stray staff lines
As I was playing around with my software (summary: a program that
generates music and then automatically generates Lilypond files where
the Lilypond file is compiled without any human interaction so it has
to be able to handle some crazy, crazy stuff), I discovered a
situation that is not properly handled by the workaround.
As you'll see, the problem is incorporating a score that is
entirely/mostly rests into the previous workaround. Problems result.
Very unclear what the original issue is. If by "workarounds" you mean the context definitions that remove various engravers, then it is unclear what you expect to print if you remove everything.
So, I'm not sure what my next step should be.
Describe more clearly what you are trying to achieve.
Anyway, I've attached a Lilypond file. There are three different ways
to compile it, you just comment out the options you don't want.
Better to have one file per use case.
Thanks for any additional help,
Dave Bellows
Just guessing about what you are trying to achieve. As best I can gather, it seems like you want to print rests, with no barlines, and with line breaks. Here is one way to achieve this. Not sure what the point of \stopStaff is, but it works with that command.
\version "2.19.83"
\header{
title = "19 rests: prints all rests and line breaks, and uses empty barlines rather than removing the barline engraver."
}
voice_one_one = {
r1 \bar "" r1 \bar "" r1 \bar "" r1 \bar "" r1 \bar "" r1 \bar "" \break
r1 \bar "" r1 \bar "" r1 \bar "" r1 \bar "" r1 \bar "" r1 \bar "" \break
r1 \bar "" r1 \bar "" r1 \bar "" r1 \bar "" r1 \bar "" r1 \bar "" r1 \bar ""
\bar "|."
\stopStaff
}
\score {
<<
\new PianoStaff <<
\new Staff = "upper" <<
\clef "treble"
\voice_one_one
>>
>>
>>
}
HTH,
Elaine Alt
Producer ~ Composer ~ Instrumentalist ~ Educator
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-