Jump to content

Fine-tuning pedal brackets: Difference between revisions

From LilyPond wiki
m New category
m Replace `\override` with `\tweak`
 
Line 2: Line 2:


<lilypond version="2.24">
<lilypond version="2.24">
\paper { ragged-right = ##f }
\paper {
  ragged-right = ##f
}


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

Latest revision as of 06:06, 14 December 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
  c2\tweak shorten-pair #'(-7 . -2) \sostenutoOn c
  c2\sostenutoOff c
  c2\tweak edge-height #'(0 . 3) \sostenutoOn c
  c2\sostenutoOff c
}