lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: instantiating voices


From: Hugh Myers
Subject: Re: instantiating voices
Date: Thu, 26 Nov 2009 07:02:23 -0700

Marc,

Thanks for the clarification. So adding tablature, the template now looks like:

\version "2.13.7"

 upper = {
  c4 d e f % polyphonic
  g4 a b c % monophonic, see below
  b4 g e c % polyphonic again
 }

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

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

--hsm


On Thu, Nov 26, 2009 at 3:04 AM, Marc Hohl <address@hidden> wrote:
> Hugh Myers schrieb:
>>
>> I see nothing in the sample that allows for monophonic. As given I
>> only see polyphonic. The piece I'm working on is a mixture of both---
>> which obviously means I must be able to switch from one to the other.
>> Again, the sample is only polyphonic--- I must be missing something.
>> Hints?
>>
>
> Federico pointed out that his sample will ease things if your piece is
> *mostly* polyphonic.
>>>
>>> If you use mainly polyphony, the following template should help you.
>>>
>
> There is his explanation how to use the template.
>>>
>>> Actually, you can use it also for a mixture of polyphony and monophony,
>>> just
>>> add a spacer note if you want a voice to be silent.
>>>
>
> In the parts where monophony is needed, you can add spacers  in the other
> voice,
> like this:
>
> upper = \relative c' {
>  c4 d e f % polyphonic
>  g4 a b c % monophonic, see below
>  b4 g e c % polyphonic again
> }
>
> lower = \relative c, {
>  c2 g2 % polyphonic
>  s1 % a spacer "disables" this voice tamporarily
>  g2 c2 % and here we are again.
> }
>
> Marc
>
>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]