polyphonic music with tablature

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

polyphonic music with tablature

Art Sulger
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
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: polyphonic music with tablature

Mats Bengtsson-6
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
>[hidden email]
>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: [hidden email]
        WWW: http://www.s3.kth.se/~mabe
=============================================



_______________________________________________
lilypond-user mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: polyphonic music with tablature

Art-5
In reply to this post by Art Sulger
Thanks Matt,
That solution works perfectly.
Art



_______________________________________________
lilypond-user mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-user