1\version "2.19.21"
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 = "
16Negative fret numbers calculated due to assigning a string number
17can be displayed, ignored, or recalculated.  Here we should have
18all three cases demonstrated.
19"
20
21}
22
23myMusic = \relative  {
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}
43