]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/tablature-negative-fret.ly
Fix 1477: Update regtests to suppress expected warnings
[lilypond.git] / input / regression / tablature-negative-fret.ly
1 \version "2.14.0"
2 #(ly:set-option 'warning-as-error #f)
3 #(ly:expect-warning (_ "Requested string for pitch requires negative fret: string ~a pitch ~a") 1 "#<Pitch c' >")
4 #(ly:expect-warning (_ "Ignoring string request and recalculating."))
5 #(ly:expect-warning (_ "Negative fret for pitch ~a on string ~a") "#<Pitch c' >" 1)
6 #(ly:expect-warning (_ "Requested string for pitch requires negative fret: string ~a pitch ~a") 1 "#<Pitch c' >")
7 #(ly:expect-warning (_ "Ignoring note in tablature."))
8
9
10
11 % #(ly:expect-warning (ly:translate-cpp-warning-scheme "Markup depth exceeds maximal value of %d; Markup: %s") 1024 "recursive-explosion-markup")
12
13 \header {
14
15   texidoc = "
16 Negative fret numbers calculated due to assigning a string number
17 can be displayed, ignored, or recalculated.  Here we should have
18 all three cases demonstrated.
19 "
20
21 }
22
23 myMusic = \relative c'  {
24   <c\1>1 ^\markup { recalculate }
25   \set TabStaff.handleNegativeFrets = #'include
26   <c\1>1 ^ \markup { include }
27   \set TabStaff.handleNegativeFrets = #'ignore
28   <c\1>1 ^ \markup { ignore }
29 }
30
31 \score {
32   <<
33     \new Staff {
34       \clef "treble_8"
35       \textLengthOn
36       \myMusic
37     }
38     \new TabStaff {
39       \myMusic
40     }
41   >>
42 }