PIano: Partial Pedalling
Dear All, I've tinkered about some more with partial pedalling and gradual sustain pedal release, and here's some code (some of it copied/adapted from the internet) that seems to work, even though in some respects it shouldn't: \version "2.20.0" \relative c'' { \set Staff.pedalSustainStyle = #'bracket % 1. standard sustain pedal behaviour c1\sustainOn c \sustainOff \sustainOn c\sustainOff c % 2. gradual pedal release indicated by dashed line \once \override Staff.PianoPedalBracket.edge-height = #' (1 . 0) c1\sustainOn \once \override Staff.PianoPedalBracket.bracket-flare = #'(0 . 14.5) \once \override Staff.PianoPedalBracket.edge-height = #' (0 . 1) \once \override Staff.PianoPedalBracket.style = #'dashed-line c \sustainOff \sustainOn c c4\sustainOn \sustainOff c c c % 3. 1/2 pedal instruction \set Staff.pedalSustainStyle = #'mixed \once \override Staff.PianoPedalBracket.edge-height = #' (0 . 1) \override Staff.PianoPedalBracket.bracket-flare = #'(8 . 0) \once \override Staff.SustainPedal #'stencil = #(lambda (grob) (grob-interpret-markup grob (markup "½"))) c1\sustainOn c c \sustainOff } In the second snippet, the slanted pedal release line ONLY works if \sustainOff in the final line is preceded by \sustainOn; otherwise the line remains horizontal. It doesn't make complete sense to me, since there's already a \sustainOn in the preceding line. So this is probably isn't how it's supposed to be done, but for now it offers a simple way of notating gradual sustain pedal release. Jan
Re: Piano: partial pedalling
Many thanks for this, Aaron; it's very useful and I could never have coded this myself. I've meanwhile done some more searching and the 'pedal-decorations' notation snippets in OpenLilyLib also go quite a long way towards doing what I'm looking for. Jan Van: Aaron Hill Verzonden: maandag 10 mei 2021 21:57 Aan: Dijkhuizen, J.F. van CC: lilypond-user@gnu.org Onderwerp: Re: Piano: partial pedalling On 2021-05-10 11:38 am, Dijkhuizen, J.F. van wrote: > Dear All, > > I was wondering if anybody knows if it's possible to notate partial > sustain pedalling in LilyPond (essentially 1/4. half-pedal, 3/4 > pedal), and if so how. > > There seems to be nothing about it in the manual, and I've not been > able to find anything online that I am able to use. Ideally, I'd like > to be able to notate pedal level changes by means of a line, as is > possible in Dorico, for example: > > However, just being able to specify '1/2' at the beginning of a pedal > line, and, for example, 'release pedal slowly' at tthe end of a pedal > line, would be great too. > > Any help with this would be really appreciated! There are a few ad hoc solutions if you search the archives. You can see if my hack [1] to the PianoPedalBracket stencil a few years ago would be of any use. [1]: https://lists.gnu.org/archive/html/lilypond-user/2019-01/msg00522.html -- Aaron Hill
Re: Piano: partial pedalling
(Please make sure to keep the mailing list on all messages.) On 2021-05-10 1:42 pm, Dijkhuizen, J.F. van wrote: Many thanks for this. When I paste the code into Frescobaldi and compile it, I'm getting the following error message: error: syntax error, unexpected end of input { s4 s4*6\gradualSustain #'((0 2 2 0)(0.3)(0.4 0 5 -3 3)) s4\sustainOff Do you know what went wrong? Well, there's a missing closing brace in what you quoted above. But most likely you are hitting an issue where the >> is missing when you copy/paste from the lists.gnu.org archive site. See this version hosted on lilybin [1]. [1]: http://lilybin.com/kq9t97/1 -- Aaron Hill
Re: Piano: partial pedalling
On 2021-05-10 11:38 am, Dijkhuizen, J.F. van wrote: Dear All, I was wondering if anybody knows if it's possible to notate partial sustain pedalling in LilyPond (essentially 1/4. half-pedal, 3/4 pedal), and if so how. There seems to be nothing about it in the manual, and I've not been able to find anything online that I am able to use. Ideally, I'd like to be able to notate pedal level changes by means of a line, as is possible in Dorico, for example: However, just being able to specify '1/2' at the beginning of a pedal line, and, for example, 'release pedal slowly' at tthe end of a pedal line, would be great too. Any help with this would be really appreciated! There are a few ad hoc solutions if you search the archives. You can see if my hack [1] to the PianoPedalBracket stencil a few years ago would be of any use. [1]: https://lists.gnu.org/archive/html/lilypond-user/2019-01/msg00522.html -- Aaron Hill
Piano: partial pedalling
Dear All, I was wondering if anybody knows if it's possible to notate partial sustain pedalling in LilyPond (essentially 1/4. half-pedal, 3/4 pedal), and if so how. There seems to be nothing about it in the manual, and I've not been able to find anything online that I am able to use. Ideally, I'd like to be able to notate pedal level changes by means of a line, as is possible in Dorico, for example: [cid:5fc29545-b07a-4416-b824-05b22139aba9] However, just being able to specify '1/2' at the beginning of a pedal line, and, for example, 'release pedal slowly' at tthe end of a pedal line, would be great too. Any help with this would be really appreciated! Thanks, Jan