]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/slur-multiple.ly
Run scripts/auxiliar/update-with-convert-ly.sh
[lilypond.git] / input / regression / slur-multiple.ly
1 \version "2.16.0"
2
3 #(ly:set-option 'warning-as-error #f)
4 #(ly:expect-warning (_ "already have slur"))
5 #(ly:expect-warning (_ "cannot end slur"))
6 #(ly:expect-warning (_ "unterminated slur"))
7
8 \header {
9   texidoc = "LilyPond does not support multiple concurrent slurs with the 
10 parentheses syntax.  In this case, warnings will be given and the nested
11 slur will not be generated.  However, one can can create a second slur with
12 a different spanner-id."
13 }
14
15 sp=#(define-event-function (parser location n e) (index? ly:event?)
16      (set! (ly:music-property e 'spanner-id) (format "sp~a" n))
17      e)
18
19 \relative c'' { 
20   % This will give warnings ("Already have slur" and "Cannot end slur")
21   c4((\sp1( d4)(\sp1( e4) f) |
22   % This will give two overlapping slurs and "unterminated slur" from above
23   d(  d\sp2( e) f\sp2) |
24   
25 }