lilypond-user
[Top][All Lists]
Advanced

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

Re: Unwanted warnings/errors on pedals for multiple voices


From: Timothy Lanfear
Subject: Re: Unwanted warnings/errors on pedals for multiple voices
Date: Sun, 5 Apr 2020 16:53:23 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1

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.




reply via email to

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