The <<{...} \\ {...} >> feature is limited to only handle ordinary music
voices, please read in "6.6.2 Explicitly instantiating voices" to understand
exactly what it does.

I guess the simplest solution is to do something like

upperVoice = {
 \time 4/4
 \key c \major
 f'4\1 c'8\2 ...
}

lowerVoice = {
 f2\4 a2\3 ...
}

\score{
 \context StaffGroup <<
   \new Staff { \clef "G_8" << \upperVoice \\ \lowerVoice >> }
\new TabStaff << \new TabVoice {\upperVoice } \new TabVoice {\lowerVoice } >>
 >>
}

  /Mats


Art Sulger wrote:

I'm not having much luck printing out polyphonic music on a treble clef with guitar tab just below. The following code prints the notes twice on the treble clef and nothing on the tab. I've tried several variations of this, but so far haven't hit on the right way to do it. Please help.
Thanks,
Art
---------------------------------------------------
%test.ly
\version "2.6.4"
\layout {

}
melody = {
 \time 4/4
 \key c \major
 <<
%  \stemUp
 {
 f'4\1 c'8\2[ c'\2] ~ c'4 f'4\1 |
 f8[ f'\1]~ f'4 s4 s8 f'8\1
 }
 \\
%  \stemDown
 {
 f2\4 a2\3 |
 f2\4 a2\3
 }
 >>
}
\context StaffGroup <<
 \context Staff { \clef "G_8" \melody }
 \context TabStaff { \melody }


_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user

--
=============================================
        Mats Bengtsson
        Signal Processing
        Signals, Sensors and Systems
        Royal Institute of Technology
        SE-100 44  STOCKHOLM
        Sweden
        Phone: (+46) 8 790 8463                         
       Fax:   (+46) 8 790 7260
        Email: [EMAIL PROTECTED]
        WWW: http://www.s3.kth.se/~mabe
=============================================



_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to