]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/dead-notes.ly
New upstream version 2.19.65
[lilypond.git] / input / regression / dead-notes.ly
1 \version "2.19.46"
2
3 \header{ texidoc = "Muted notes (also called dead notes) are supported
4                     within normal staves and tablature.  They are printed
5                     correctly, even if another font for TabNoteHead is used. "
6        }
7
8 mynotes = \relative c,, {
9    \deadNotesOn
10    e8. e16
11    \deadNotesOff
12    g4 a b |
13    e8. \deadNote e16 g4 a b |
14    e,4. \deadNote { e8 e e } e4 |
15    < e, \deadNote b' e >8 < e \deadNote b' e > < e \deadNote b' e >4 < e \deadNote b' e >4 r
16    \bar "|."
17 }
18
19 \score {
20   \new StaffGroup <<
21     \new Staff {
22       \new Voice {  % Warning: explicit voice instantiation is required
23                     %   to have deadNotesOff work properly
24                     %   when deadNotesOn comes at the beginning
25                     %   of the piece
26         \clef "bass_8"
27         \mynotes
28       }
29     }
30     \new TabStaff
31       \with {
32         instrumentName = \markup \tiny "default-font"
33       }{
34       \new TabVoice {  % Warning:  explicit voice instantiation is
35                        %   required to have deadNotesOff work properly
36                        %   when deadNotesOn comes at the beginning
37                        %   of the piece
38         \mynotes
39       }
40     }
41     \new TabStaff
42       \with {
43         \override TabNoteHead.font-name = #"Luxi Mono"
44         instrumentName =
45           \markup \tiny \center-column { "TabNoteHead-" "font:" "Luxi Mono" }
46       }{
47       \new TabVoice {  % Warning:  explicit voice instantiation is
48                        %   required to have deadNotesOff work properly
49                        %   when deadNotesOn comes at the beginning
50                        %   of the piece
51         \mynotes
52       }
53     }
54   >>
55   \layout {
56     indent = 20
57     \context {
58       \TabStaff
59       stringTunings = #bass-tuning
60     }
61   }
62 }
63
64