X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=input%2Fregression%2Fphrasing-slur-multiple.ly;h=08487af5d9386df8b3381b87d4ed34d10f65235f;hb=2b1e4fd89d57bfecd23afbdeb55293792398f826;hp=203a6eceeed786335e099ba1c04c27c366185a44;hpb=54b02666750062788185bd3f99e644d621e348c2;p=lilypond.git diff --git a/input/regression/phrasing-slur-multiple.ly b/input/regression/phrasing-slur-multiple.ly index 203a6eceee..08487af5d9 100644 --- a/input/regression/phrasing-slur-multiple.ly +++ b/input/regression/phrasing-slur-multiple.ly @@ -1,6 +1,9 @@ -\version "2.15.4" +\version "2.19.22" #(ly:set-option 'warning-as-error #f) +#(ly:expect-warning (_ "already have phrasing slur")) +#(ly:expect-warning (_ "cannot end phrasing slur")) +#(ly:expect-warning (_ "unterminated phrasing slur")) \header { texidoc = "LilyPond does not support multiple concurrent phrasing slurs with the @@ -9,13 +12,14 @@ slur will not be generated. However, one can can create a second slur with a different spanner-id." } -altPhSlur = #(make-music 'PhrasingSlurEvent 'span-direction START 'spanner-id "alt") -altPhSlurEnd = #(make-music 'PhrasingSlurEvent 'span-direction STOP 'spanner-id "alt") +sp=#(define-event-function (n e) (index? ly:event?) + (set! (ly:music-property e 'spanner-id) (format "sp~a" n)) + e) -\relative c'' { +\relative { % This will give warnings ("Already have phrasing slur" and "Cannot end phrasing slur") - c4\(\( d4\)\( e4\) f\) | - % This will give two overlapping slurs: - d\( d\altPhSlur e\) f\altPhSlurEnd | + c''4\(\(\sp1\( d4\)\(\sp1\( e4\) f\) | + % This will give two overlapping slurs and "unterminated phrasing slur" from above + d\( d\sp2\( e\) f\sp2\) | }