On Sun, Apr 5, 2020 at 6:04 PM Timothy Lanfear <timo...@lanfear.me> 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