Jump to content

Arrow between measures: Difference between revisions

From LilyPond wiki
m Replace version="2.24.0" with version="2.24" now that the LilyWiki extension supports auto-selecting the latest release in a stable series
m Add credit
Line 16: Line 16:
}
}
</lilypond>
</lilypond>
Credit to [[Jean Abou Samra]].

Revision as of 16:50, 17 November 2025

To put an arrow between separated measures, try this code:

\version "2.24"

arrow = 
  -\tweak Y-offset #0
  -\tweak outside-staff-priority ##f
  -\markup
  \concat {
    \draw-line #'(5 . 0)
    \hspace #-0.2 % This is to bridge the small indentation in the arrow-head
    \arrow-head #X #RIGHT ##t
  }
  
\new Staff {
  c''1 \stopStaff << \tweak transparent ##t R1-\arrow >> \startStaff c''1
}

Credit to Jean Abou Samra.