Pedal brackets with slanted lines

Revision as of 22:45, 26 October 2025 by Jean Abou Samra (talk | contribs) (Import snippet from LSR)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Here is a way to display pedal brackets with a slanted line (indicating, for example, that the sustain pedal must be gradually released). The first bracket shows the default behaviour.

\version "2.24.0"

%% http://lsr.di.unimi.it/LSR/Item?id=698

%LSR contributed by Mats Bengtsson http://lists.gnu.org/archive/html/lilypond-devel/2008-09/msg00243.html

\relative c'' {
  \set Staff.pedalSustainStyle = #'bracket
  c1\sustainOn c \sustainOff \sustainOn c\sustainOff c
  \override Staff.PianoPedalBracket.bracket-flare = #'(1 . 6)
  c1\sustainOn c \sustainOff \sustainOn c\sustainOff c
}