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: Paolo Prete
Subject: Re: Unwanted warnings/errors on pedals for multiple voices
Date: Sun, 5 Apr 2020 18:11:08 +0200



On Sun, Apr 5, 2020 at 6:04 PM Timothy Lanfear <address@hidden> wrote:

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 { }
}



Thanks, this helps a lot.
Together with this:  https://lists.gnu.org/archive/html/lilypond-user/2020-01/msg00119.html  
it should be added to the *official* documentation. IMHO.

 

reply via email to

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