]> git.donarmstrong.com Git - lilypond.git/commitdiff
tablature: fix ottava bracket error
authorMarc Hohl <marc@hohlart.de>
Fri, 6 Nov 2009 08:16:40 +0000 (09:16 +0100)
committerNeil Puttock <n.puttock@gmail.com>
Thu, 12 Nov 2009 19:52:35 +0000 (19:52 +0000)
Ottava brackets don't have to be displayed in tablature;
a regression test file is adapted to show both the behavior
of multi measure rests and ottava brackets.

input/regression/tablature-full-notation.ly
ly/engraver-init.ly

index 80a48688be3492179ad60e7a4cf24f743f3851f9..74c088e3372c0299e5447d975cbd646f50311a1a 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.13.4"
+\version "2.13.8"
 
 \header{ texidoc = "As default, tablature staves show only the fret numbers, because
                     in most situations, they are combined with normal staves.
@@ -8,14 +8,18 @@
 
 tabstuff = {
   \time 3/4
+  \compressFullBarRests
   c4^"test" d( e)
   f4\f g a^\fermata
+  R2.*3
   c8\<\( c16 c ~ c2\!
   c'2.\)
   \mark \default
   R2.
-  r4 d4 r8 e
-  \times 3/4 { b4 c \glissando d\5 \glissando c }
+  \ottava #1
+  r4 d'4 r8 e
+  \ottava #0
+  \times 3/4 { b,4 c \glissando d\5 \glissando c }
   c4. d-_( e\varcoda)
   ->f g~ a\prall g\thumb e-.
   \bar "|."
index 0c7bacf74fa1f571490b195f5677de3c6e662920..659648bcad82cb9247f557bbc582e7534dc5001b 100644 (file)
@@ -772,12 +772,13 @@ context."
   \denies "Voice"
   \consists "Tab_staff_symbol_engraver"
 
-  \description "Context for generating tablature. [DOCME]"
+  \description "Context for generating tablature. It accepts only @code{TabVoice}
+contexts and handles the line spacing, the tablature clef etc. properly."
 
   \accepts "TabVoice"
   \defaultchild "TabVoice"
 
-  %% 6 strings
+  %% 6 strings, bigger spacing
   \override StaffSymbol #'staff-space = #1.5
 
   %% Don't draw stems over the tablature figures !
@@ -786,7 +787,9 @@ context."
   %% No accidental in tablature !
   \remove "Accidental_engraver"
   \remove "Key_engraver"
+
   \remove "String_number_engraver"
+  \remove "Ottava_spanner_engraver"
   %% the clef handler
   \override Clef #'stencil = #clef::print-modern-tab-if-set
   %% no time signature