Hi Fennel, > I would like to draw lines between fingerings to indicate shifts, pivots, > etc. on an unfretted string instrument. > Say I have something like the following: > \version "2.24.3" > \relative c' { > c4-1 d-2 > } > > I would like to produce something similar to the following: > <image.png> > I know that this is achievable using markup and \draw-line as specified here, > but as changes are made to my project and the spacing between notes changes, > I’d have to go back and manually tweak all of the coordinates for all of the > lines in the project, and there will be quite a few.
Maybe this will point you in the right direction? %%% SNIPPET BEGINS \version "2.25.11" oneTotwo = \relative c' { \once \override TextSpanner.style = #'line \once \override TextSpanner.thickness = #2 \once \override TextSpanner.bound-details.left.stencil-align-dir-y = #CENTER \once \override TextSpanner.bound-details.right.stencil-align-dir-y = #CENTER \once \override TextSpanner.bound-details.left.text = \markup \fontsize #-3 \concat { \number "1" \hspace #0.2 } \once \override TextSpanner.bound-details.right.text = \markup \fontsize #-3 \concat { \hspace #0.2 \number "2" } c4\startTextSpan d\stopTextSpan } \score { \oneTotwo } \score { \oneTotwo \layout { ragged-right = ##f } } %%% SNIPPET ENDS You’d probably want to build a music function to wrap all that stuff so you’d just have to write \fingspan #'(1 2) or some such thing. Hope that helps! Kieren. ______________________________________________ My work day may look different than your work day. Please do not feel obligated to read or respond to this email outside of your normal working hours.