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: Wed, 25 Nov 2009 22:18:42 -0700

On a related note (:;) this piece is a mixture of polyphony and
monophony. Is there an example of the two with tablature?

--hsm

On Wed, Nov 25, 2009 at 10:12 PM, Hugh Myers <address@hidden> wrote:
> Thanks Carl,
>
> I'll give it a try...
>
> --hsm
>
> On Wed, Nov 25, 2009 at 10:10 PM, Carl Sorensen <address@hidden> wrote:
>>
>>
>>
>> On 11/25/09 9:45 PM, "Hugh Myers" <address@hidden> wrote:
>>
>>> The 2.10 manual says that:
>>>
>>> << \upper \\ \lower >>
>>>
>>> is equivalent to
>>>
>>> <<
>>>   \new Voice = "1" { \voiceOne \upper }
>>>   \new Voice = "2" { \voiceTwo \lower }
>>>>>
>>>
>>> Which in simple situations seems true enough. However as soon as
>>> tablature is added the above is broken; for example:
>>>
>>> \version "2.13.7"
>>>
>>> firstPolyRepeatV = {
>>>   <<
>>>   { r4 \times 2/3 {gis 8 b e } e,4 \times 2/3 {gis8 b e} e,2 } \\ { e,2.~e }
>>> %     \new Voice = "1" { \voiceOne { r4 \times 2/3 {gis 8 b e } e,4
>>> \times 2/3 {gis8 b e} e,2 } }
>>> %     \new Voice = "2" { \voiceTwo { e,2.~e } }
>>>>>
>>> }
>>> {
>>>
>>>   <<
>>>     \time 3/4
>>>     \set Score.barNumberVisibility = #all-bar-numbers-visible
>>>     \bar ""
>>>     \set Score.voltaSpannerDuration = #(ly:make-moment 3 4)
>>>     \new Staff \relative c'' {
>>>       \firstPolyRepeatV
>>>     }
>>>     \new TabStaff \relative c' {
>>>       \firstPolyRepeatV
>>>     }
>>>>>
>>>
>>> }
>>>
>>> The shorthand for << \\ >> works as intended while the explicit
>>> voicing fails. Work arounds?
>>
>> TabStaff needs TabVoice, not Voice, for explicit instantiation.
>>
>> voiceOneMusic = { r4 \times 2/3 {gis 8 b e } e,4 \times 2/3 {gis8 b e} e,2 }
>> voiceTwoMusic = { e,2.~e }
>>
>> <<
>>   ...
>>
>>  \new Staff \relative c'' {
>>     <<
>>       \new Voice = "1" {
>>         \voiceOne \voiceOneMusic
>>       }
>>       \new Voice = "2" {
>>          \voiceTwo \voiceTwoMusic
>>       }
>>     >>
>>   }
>>
>>  \new TabStaff \relative c'' {
>>     <<
>>       \new TabVoice = "t1" {
>>         \voiceOne \voiceOneMusic
>>       }
>>       \new TabVoice = "t2" {
>>          \voiceTwo \voiceTwoMusic
>>       }
>>     >>
>>   }
>>>>
>>
>>
>> HTH,
>>
>> Carl
>>
>>
>




reply via email to

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