On 05/04/2020 15:11, Paolo Prete wrote:
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 { }
}
%%%%%%%%%%%%%%%%%%%%
You could move the Piano_pedal_performer from Voice to Staff level. Add
or remove the \consists command to hear the difference.
\version "2.20.0"
\midi {
\context { \Voice \remove Piano_pedal_performer }
\context { \Staff \consists Piano_pedal_performer }
}
upper = {
<<
{c'8\sustainOn r r}
\\
{r8 r r}
>>
<<
{r8 r r}
\\
{r8 r c'\sustainOff}
>>
}
lower = { s1 }
\score {
%{ \new PianoStaff %} <<
\new Staff = "upper" \upper
\new Staff = "lower" \lower
>>
\layout { }
\midi { }
}
--
Timothy Lanfear, Bristol, UK.