lilypond-user
[Top][All Lists]
Advanced

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

Re: Temporarily combine two Voices on the same Staff


From: H. S. Teoh
Subject: Re: Temporarily combine two Voices on the same Staff
Date: Wed, 21 Dec 2016 15:08:38 -0800
User-agent: NeoMutt/20161126 (1.7.1)

On Wed, Dec 21, 2016 at 11:52:02PM +0100, Thomas Morley wrote:
> 2016-12-21 19:08 GMT+01:00 H. S. Teoh <address@hidden>:
[...]
> > So my question was, is it possible to tell Lilypond to merge the two
> > voices into chords just for beat 2? Or do I just have to "hack" it
> > by using spacers in voiceB and spelling out the chords in voiceA?
> 
> Probably (see inline comments):
[...]
>         voiceB = \relative c'' {
>                 % m.7
>                 \voiceThree
>                 | cs=''8~ cs32 e d cs
>                 %% send this notes to Voice-"A"-context, to
>                 %% create simultaneous music
>                 \context Voice = "A" { d8. cs16 }
[...]
>         \new PianoStaff <<
>                 \new Staff {
>                         \clef treble
>                         <<
>                                 %% n.b.
>                                 %% named Voices
>                                 \new Voice = "A" \voiceA
>                                 \new Voice = "B" \voiceB
>                                 \new Voice \voiceC
>                         >>
>                 }
[...]

Wow.  That worked like a charm!!  Much thanks for the tip!


T

-- 
To provoke is to call someone stupid; to argue is to call each other stupid.



reply via email to

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