]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/tablature-micro-tone.ly
Imported Upstream version 2.19.45
[lilypond.git] / input / regression / tablature-micro-tone.ly
1 \version "2.19.31"
2
3 \header {
4   texidoc = "The @code{TabStaff} will print micro-tones as mixed numbers of
5 fret-number and a fraction.
6 The context-property @code{supportNonIntegerFret} needs to be set @code{#t}
7 in @code{Score}-context.
8 @code{FretBoards} will print those micro-tones only if they can be found in the
9 chosen settings for @code{stringTunings}, otherwise a warning (surpressed here)
10 will be printed and an empty @code{FretBoard} returned.  Which should be the
11 case here for the first pitch: @code{gih}"
12 }
13
14 #(ly:set-option 'warning-as-error #f)
15 #(ly:expect-warning (_ "No string for pitch ~a (given frets ~a)") #{ gih #} '())
16
17 \layout {
18   \context {
19     \Score
20     supportNonIntegerFret = ##t
21   }
22 }
23
24 custom-tuning = \stringTuning <e, a, d ges beh eeh'>
25
26 mus = \relative {
27   gih4
28   eeses'
29   eeseh
30   ees
31   eeh
32   e
33   eih
34   eis
35   eisih
36   eisis
37 }
38
39 <<
40   \new Staff << \clef "G_8" \mus >>
41   \new FretBoards \with { stringTunings = \custom-tuning } \mus
42   \new TabStaff \with { stringTunings = \custom-tuning } \mus
43 >>