]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/phrasing-slur-multiple.ly
Fix 1477: Update regtests to suppress expected warnings
[lilypond.git] / input / regression / phrasing-slur-multiple.ly
1 \version "2.15.4"
2
3 #(ly:set-option 'warning-as-error #f)
4 #(ly:expect-warning (_ "already have phrasing slur"))
5 #(ly:expect-warning (_ "cannot end phrasing slur"))
6
7 \header {
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."
12 }
13
14 altPhSlur = #(make-music 'PhrasingSlurEvent 'span-direction START 'spanner-id "alt")
15 altPhSlurEnd = #(make-music 'PhrasingSlurEvent 'span-direction STOP 'spanner-id "alt")
16
17 \relative c'' { 
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 |
22   
23 }