Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
LilyPond wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Sustain pedal cautionary after line break
Page
Discussion
English
Read
Edit
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
Edit source
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
Add a cautionary indication showing that the sustain pedal should remain pressed after a line break. Syntax is <code>[music]\sustainSpanOn[music]\sustainSpanOff</code>. This workaround uses <code>TextSpanner</code> instead of <code>SustainPedal/PianoPedalBracket</code>. <lilypond version="2.24.0" full> %% http://lsr.di.unimi.it/LSR/Item?id=1023 %% Credits PPS => http://lilypond.1069038.n5.nabble.com/Sustain-pedal-cautionary-after-line-break-td186551.html \paper { tagline = ##f } %%%% Snippet start here: %% Cautionary pedal mark after a line break: cautionPed = \markup { \normal-text \with-dimensions #'(0 . 6) #'(0 . 1.8) \concat { "(" \musicglyph "pedal.Ped" \musicglyph "pedal.." ")" } } ped = \markup { \concat { \musicglyph "pedal.Ped" \musicglyph "pedal.." \hspace #0.95 } } %% Span: sustainSpanOn = #(define-event-function ()() #{ \tweak bound-details #`((left . ((Y . 0) (padding . -1.7) (attach-dir . ,LEFT) (stencil-align-dir-y . -1) (text . ,ped))) (left-broken . ((attach-dir . ,RIGHT) (text . ,cautionPed) (padding . 0))) (right . ((Y . 0) (attach-dir . ,LEFT) (text . ,(markup #:draw-line (cons 0 1))))) (right-broken . ((padding . -0.2) (text . #f)))) \tweak padding #1.2 \tweak direction #-1 \tweak style #'line \startTextSpan #}) sustainSpanOff = \stopTextSpan %% Test: \relative c'' { c1\sustainSpanOn \break c1 c1\sustainSpanOff } </lilypond> [[Category:Editorial annotations]] [[Category:Breaks]] [[Category:Workaround]]
Summary:
Please note that all contributions to LilyPond wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Meta:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
Sustain pedal cautionary after line break
Add topic