lilypond-user
[Top][All Lists]

## Re: Unconventional score and unwanted stray staff lines

 From: David Bellows Subject: Re: Unconventional score and unwanted stray staff lines Date: Sat, 30 Nov 2019 21:32:10 -0800

Sorry Flaming Hakama by Elaine,

> 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.

I was making a dumb assumption that the history of this entire thread
would be present and would provide the necessary context. My initial
email starts here:
https://lists.gnu.org/archive/html/lilypond-user/2019-05/msg00263.html
The main workaround, if I remember correctly, is the use of \stopStaff
to prevent empty staves from printing past the final bar line.

> As best I can gather, it seems like you want to print rests, with no
> barlines, and with line breaks.

Actually, I want all the rests with bar lines and with line breaks.
The context where this fails is where I use the various engravers
which implement different features making the process more flexible.
See that first email I linked to above and the attached bad_test.pdf
and bad_test.ly lilypond files for examples of things going wrong.

In the examples I supplied in my previous email, everything works as
it should when printing notes but runs into problems when printing
rests. The last email of the original thread back in May ended with
someone needing to submit an official bug report but I don't think
this happened. I'm hoping that whatever bug might be causing this
will, when fixed, take care of this problem with the rests.

So I guess I was looking for an update with regard to that bug and it
being submitted to the tracker. And hoping that the situation with the
rests doesn't add any difficulties to resolving that bug.

Dave

On Sat, Nov 30, 2019 at 6:03 PM Flaming Hakama by Elaine
>
>
>
>> ---------- Forwarded message ----------
>> To:
>> 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"
>
>     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
> 415 . 341 .4954                                           "Confusion is
> highly underrated"