Still monkeying around with Spontini to get familiar with this new (to me) 
tool. When setting parts in different clefs it is handy to be able to use tags. 
When notating a part in bass vs tenor or alto clef (pedagogical trombone music) 
it is often necessary to adjust shapes/positions differently for different 
clefs. Before Spontini I would need to code tags for each clef. After a bit of 
experimentation I found that it worked to simply tag the first one. Remove it 
from the output (i.e. \removeWithTag), add a second slur + tag, keep that tag 
and adjust it. Remove both tags, add a third slur, tag, adjust, and finally 
'keep' the one I needed. In the example below I've set up three different slur 
shapes and tagged them (they're silly for ease of identification). This works. 
Is there a better way? 

-David 

P.S. Thanks to Paolo for previous tips! 

%%%%% 
\version "2.24.2" 

\include "../lib/ly/jssvg.ly" 

%-----------------% 
% START __JSSVG__ % 
%-----------------% 

"j3" = #(define-music-function (parser location sym mus) ((symbol-list? '()) 
ly:music?) #{ 
\tag #'third \jsShape "3" "cpts" #'((0 . 0) (11.253 . -24.393) (-11.476 . 
-24.309) (0 . 0)) $sym $mus 
#}) 

"j2" = #(define-music-function (parser location sym mus) ((symbol-list? '()) 
ly:music?) #{ 
\tag #'second \jsShape "2" "cpts" #'((0 . 0) (41.644 . 5.148) (-22.418 . 
-20.692) (0 . 0)) $sym $mus 
#}) 

"j1" = #(define-music-function (parser location sym mus) ((symbol-list? '()) 
ly:music?) #{ 
\tag #'first \jsShape "1" "cpts" #'((0 . 0) (21.58 . -23.991) (-26.632 . 4.428) 
(0 . 0)) $sym $mus 
#}) 

%-----------------% 
% END __JSSVG__ % 
%-----------------% 


music = \relative c' { 
c d e f 
\break 
g \"j1" -(\"j2" -( \"j3"-( a b c-)-)) 
} 

\score { 
\keepWithTag #'third 
\music 
} 
%%%%% 

Reply via email to