David
This is another effect of relying on the implicit declaration
of Voice contexts. Because no tab voice exists when the
override is encountered one is created, and notes from both
\fingers and \thumb are placed in that one voice. You'll find the
same effect is created with any override at that point. If you
apply the override to the Staff context only the two voices you
require are created implicitly and I think you will find all is
well. Alternatively you can create the tab voices explicitly and
place the override inside each of them.
Yes, I suppose it is a bug of sorts, but really it is due to
LilyPond trying to determine what you want from imprecise code
and making assumptions that produce, in this case, the wrong result.
Trevor
----- Original Message -----
From: "David Stocker" <dstoc...@notesettersinc.com>
To: <lilypond-user@gnu.org>
Sent: Thursday, March 25, 2010 2:34 PM
Subject: Strange behavior with slurs in Tab when overriding whiteout
Has anyone encountered this? It seems like a bug. Using \override
TabNoteHead #'whiteout = ##f causes slurs to jump to a different
voice
in the TabStaff when two voices are present.
For what it's worth, the very presence of the \override seems to
be the
trigger. In the first example, uncommenting the override and
changing it
to ##t yields the same result (only with whiteout around the tab
numbers).
\version "2.13.16"
\include "english.ly"
fingers = {
\relative c' {
\voiceOne
\partial 4
%p
e8( fs )
%1
g4
}
}
thumb = {
\relative c, {
\voiceTwo
\partial 4
%p
fs8 e
%1
e4
}
}
\score {
\new StaffGroup = "Guiter/Tab" {
<<
\new Staff = "notation" {
\clef "treble_8"
\key e \minor
\numericTimeSignature
\time 4/4
<<
\new Voice = "fingers" {
\fingers
}
\new Voice = "thumb" {
\thumb
}
>>
}
\new TabStaff = "tablature" {
\clef "moderntab"
%\override TabNoteHead #'whiteout = ##f
<<
{ \fingers }
{ \thumb }
>>
}
>>
}
}
\score {
\new StaffGroup = "Guiter/Tab" {
<<
\new Staff = "notation" {
\clef "treble_8"
\key e \minor
\numericTimeSignature
\time 4/4
<<
\new Voice = "fingers" {
\fingers
}
\new Voice = "thumb" {
\thumb
}
>>
}
\new TabStaff = "tablature" {
\clef "moderntab"
\override TabNoteHead #'whiteout = ##f
<<
{ \fingers }
{ \thumb }
>>
}
>>
}
}
--
David Stocker
804-598-3762
http://notesettersinc.com
--------------------------------------------------------------------------------
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user