lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Unwanted warnings/errors on pedals for multiple voices


From: Paolo Prete
Subject: Unwanted warnings/errors on pedals for multiple voices
Date: Sun, 5 Apr 2020 16:11:19 +0200

Hello,

I still experience unwanted warnings (and, consequently, unwanted behavior on midi) with pedals on PianoStaff with multiple voices.
Consider this example (tested on 2.19.84):

%%%%%%%%%%%%%%%%%%%%

\version "2.19.84"

upper = {

<<
{c'8\sustainOn c' c'}
\\
{r8 r r}
>>

<<
{c'8 c' r}
\\
{r8 r c'\sustainOff}
>>

}

lower = { }

\score {
  \new PianoStaff <<
    \new Staff = "upper" \upper
    \new Staff = "lower" \lower
  >>
  \layout { }
  \midi { }
}

%%%%%%%%%%%%%%%%%%%%

The output says "warning: cannot find start of piano pedal: `Sustain'"

The warning disappears if I put \sustainOff on the first voice of the second _expression_. And it disappears as well If I don't use a PianoStaff, but I simply compile this:

%%%%%%%%%%%%%%%%%%%%

{
<<
{c'8\sustainOn c' c'}
\\
{r8 r r}
>>

<<
{c'8 c' r}
\\
{r8 r c'\sustainOff}
>>
}

%%%%%%%%%%%%%%%%%%%%

I don't understand if this is a bug (it seems so). But, anyway, is there a way to fix the issue in the first example, *without* having to write all the pedals in the voices that are put at the same level (which I think is not only pointless, but also uncomfortable)?

Thanks
P

reply via email to

[Prev in Thread] Current Thread [Next in Thread]