Jump to content

Fine-tuning pedal brackets: Difference between revisions

From LilyPond wiki
No edit summary
m New category
Line 18: Line 18:
[[Category:Keyboards]]
[[Category:Keyboards]]
[[Category:Tweaks and overrides]]
[[Category:Tweaks and overrides]]
[[Category:Included in the official documentation]][[Category:Snippet]]
[[Category:Included in the official documentation]]
[[Category:Snippet]]

Revision as of 23:19, 21 November 2025

The appearance of pedal brackets may be altered in different ways.

\version "2.24"

\paper { ragged-right = ##f }

\relative c'' {
  c2\sostenutoOn c
  c2\sostenutoOff c
  \once \override Staff.PianoPedalBracket.shorten-pair = #'(-7 . -2)
  c2\sostenutoOn c
  c2\sostenutoOff c
  \once \override Staff.PianoPedalBracket.edge-height = #'(0 . 3)
  c2\sostenutoOn c
  c2\sostenutoOff c
}