Here is the template I'm working with. The notes are nonsense, but the
problems are the ones I've run into and have had to solve...

\version "2.13.7"

 upper = {
  c4 d e f \startTextSpan % polyphonic
  \repeat volta 2 {
    g4 a b c % monophonic, see below
  }
  \alternative {
    { b4 \stopTextSpan g e c } % polyphonic again
    { \repeat volta 2 {
        \bar ":|.|:"
        b'4 g e c
      }
    }
  }
  e g a b
 }

 lower = {
  c,2 g2 % polyphonic
  s1 % a spacer "disables" this voice tamporarily
  g2 c2 % and here we are again.
  g2 c2 % and here we are again.
  c2 g2
}

ringer = {
  \textSpannerDown
  \override TextSpanner #'(bound-details left text) = "let ring "
}


<<
  \new Staff \relative c'' {
    <<
      \new Voice = "1" { \ringer \voiceOne \upper }
      \new Voice = "2" { \voiceTwo \lower }
    >>
  }
  \new TabStaff \relative c' {
    <<
      \new TabVoice = "t1" { \voiceOne \upper }
      \new TabVoice = "t2" { \voiceTwo \lower }
    >>
  }
>>

This demonstrates mixed mono and poly with tab. It also has spanned text.

--hsm

2009/11/26 Hugh Myers <hsmy...@gmail.com>:
> I think I was keeping track of individual bars that way (with braces
> that is)--- you are right, newline would work just as well and few
> characters='s less clutter. Regards \stop etc. I got it to work more
> or less as you say. It is on another machine, I'll show you the
> template in the next email.
>
> --hsm
>
> 2009/11/26 Frédéric Bron <frederic.b...@m4x.org>:
>>> Since I normally program in lisp, I don't have any problems with
>>> nested delimiters. Are you suggesting that excess (at least to your
>>> eyes) braces are the problem or are you suggesting that the \stop is
>>> at the wrong level?
>>
>> I was wondering why you add braces here: { a,8 [e'] g, [e'] f, [e'] }.
>> Maybe if you try to put \stopTextSpan inside the last block, just
>> after the last note and before } it would change something. But I am
>> not sure.
>> { a,8 [e'] g, [e'] f, [e'] \stopTextSpan }
>> Frédéric
>>
>


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

Reply via email to