[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: polyphonic music with tablature
From: |
Mats Bengtsson |
Subject: |
Re: polyphonic music with tablature |
Date: |
Thu, 10 Nov 2005 10:59:36 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050511 |
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
address@hidden
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: address@hidden
WWW: http://www.s3.kth.se/~mabe
=============================================