]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/slur-multiple.ly
Fix 1477: Update regtests to suppress expected warnings
[lilypond.git] / input / regression / slur-multiple.ly
1 \version "2.15.5"
2
3 #(ly:set-option 'warning-as-error #f)
4 #(ly:expect-warning (_ "already have slur"))
5 #(ly:expect-warning (_ "cannot end slur"))
6
7 \header {
8   texidoc = "LilyPond does not support multiple concurrent 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 altSlur = #(make-music 'SlurEvent 'span-direction START 'spanner-id "alt")
15 altSlurEnd = #(make-music 'SlurEvent 'span-direction STOP 'spanner-id "alt")
16
17 \relative c'' { 
18   % This will give warnings ("Already have slur" and "Cannot end slur")
19   c4(( d4)( e4) f) |
20   % This will give two overlapping slurs:
21   d(  d\altSlur e) f\altSlurEnd |
22   
23 }