On 2020-03-18 3:51 am, foxfanfare wrote:
Thank you Aaron for the explanation. I was trying the make-music
solution as
I was also trying to make a generic function, something like:
c4-\mySpan "molto rit." d e f g1\stopTextSpan
No worries. Does this help?
%%%%
\version "2.20.0"
startTextSpanWithLeftText =
#(define-music-function (text) (markup?)
#{ -\tweak bound-details.left.text #text
\startTextSpan #})
% startTextSpanWithLeftText =
% #(define-music-function (text) (markup?)
% (make-music
% 'TextSpanEvent
% 'tweaks `(((#t bound-details left text) . ,text))
% 'span-direction START))
rit = \startTextSpanWithLeftText "rit."
{ a'4\rit g'8 f' b'2\stopTextSpan }
%%%%
NOTE: I provided a version that shows the equivalent make-music usage.
-- Aaron Hill