Jump to content

Pedal brackets with slanted lines: Difference between revisions

From LilyPond wiki
Import snippet from LSR
 
m New category
Tags: Mobile edit Mobile web edit
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
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.
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.


<lilypond version="2.24.0">
<lilypond version="2.24">
%% http://lsr.di.unimi.it/LSR/Item?id=698
%% http://lsr.di.unimi.it/LSR/Item?id=698


Line 16: Line 16:
[[Category:Keyboards]]
[[Category:Keyboards]]
[[Category:Expressive marks]]
[[Category:Expressive marks]]
[[Category:Snippet]]

Latest revision as of 23:29, 21 November 2025

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"

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