3 #(ly:set-option 'warning-as-error #f)
4 #(ly:expect-warning (_ "already have phrasing slur"))
5 #(ly:expect-warning (_ "cannot end phrasing slur"))
8 texidoc = "LilyPond does not support multiple concurrent phrasing slurs with the
9 parentheses syntax. In this case, warnings will be given and the nested
10 slur will not be generated. However, one can can create a second slur with
11 a different spanner-id."
14 altPhSlur = #(make-music 'PhrasingSlurEvent 'span-direction START 'spanner-id "alt")
15 altPhSlurEnd = #(make-music 'PhrasingSlurEvent 'span-direction STOP 'spanner-id "alt")
18 % This will give warnings ("Already have phrasing slur" and "Cannot end phrasing slur")
19 c4\(\( d4\)\( e4\) f\) |
20 % This will give two overlapping slurs:
21 d\( d\altPhSlur e\) f\altPhSlurEnd |