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