lilypond-user
[Top][All Lists]
Advanced

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

Re: Sustain pedal problems with voices/staffs (re-posted)


From: Carl Sorensen
Subject: Re: Sustain pedal problems with voices/staffs (re-posted)
Date: Sun, 12 Jan 2020 03:26:39 +0000
User-agent: Microsoft-MacOutlook/10.10.10.191111

 

 

From: Paolo Prete <address@hidden>
Date: Saturday, January 11, 2020 at 5:22 PM
To: Carl Sorensen <address@hidden>
Cc: lilypond-user <address@hidden>
Subject: Re: Sustain pedal problems with voices/staffs (re-posted)

 

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\version "2.19.83"
upper = {
  s1
}

lower = {
 c'8[\sustainOn  \change Staff = "upper" d'' e'' f'']\sustainOff r2
}

\score {
  \new PianoStaff <<
    \new Staff = "upper" \upper
    \new Staff = "lower" \lower
  >>
  \layout { }
  \midi { }
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

 

\version "2.19.83"

upper = {

  s1

}

 

lower = {

c'8[\sustainOn  \change Staff = "upper" d'' e'' f'']\sustainOff r2

}

 

\score {

  \new PianoStaff \with {

    \consists Piano_pedal_engraver

    \consists Piano_pedal_align_engraver

    \consists Piano_pedal_performer

  }

                          <<

    \new Staff = "upper" \with {

      \remove Piano_pedal_engraver

      \remove Piano_pedal_performer

      \remove Piano_pedal_align_engraver

    }  \upper

    \new Staff = "lower"  \with {

      \remove Piano_pedal_engraver

      \remove Piano_pedal_performer

      \remove Piano_pedal_align_engraver

    } \lower

  >>

  \layout { }

  \midi { }

}

 

OR

 

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\version "2.19.83"
\include "LilyJSSVG.ly"
\addJSSVGTuner "html"

upper = {
 c'8 c' c' c' \change Staff = "lower" c'8[\sustainOn  \change Staff = "upper" d'' e'' f'']\sustainOff
}

lower = {
s1
}

\score {
  \new PianoStaff <<
    \new Staff = "upper" \upper
    \new Staff = "lower" \lower
  >>
  \layout { }
  \midi { }
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

 

How can your solution can be applied to the above examples?

IIUC the way to avoid these things is using the Dynamics layer.

Another way is to use a function that moves all the pedal items to the lower staff, which is not a limitation. I implemented it, meanwhile, in my EasyCrossStaff template. Ugly Scheme code (sorry: I'm not a Scheme programmer and hope someone could clean the code) but it seems to work well (I've used it a lot)

 

 

best,

P


reply via email to

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