Valentin Villenave <[email protected]> writes:

> On 2/7/19, 智樂喬 <[email protected]> wrote:
>> In reality, there would be multiple partBs and some of them would start
>> with a pickup and some of them wouldn't. One think I can do is explicitly
>> shorten the end of partA so that partB lines up, but it involves some
>> mixing of content and structure. Is there a best practice for this
>> situation?
>
> Greetings,
> not really (as far as I know).
> If you really want to keep your variables separate, you’ll have to use
> simultaneous music instead of sequential expressions :
>
> partA = { c'2 b | R1*3 }
> partB = { \partial 4 g4 | \bar "||"  c'1 e }
> \score {
>   <<
>     {\oneVoice \partA}
>     \\
>     {\oneVoice s1*15/4 \partB}
>   >>
> }

Don't abuse \\ like that.  Rather use something like

\score {
  << \new Voice \partA
     \new Voice { s1*15/4 \part B }
  >>
}

But I guess that's weird (full-measure rest _and_ upbeat?).  I'd rather
just have two versions of partA, one before an upbeat and one not.

-- 
David Kastrup

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

Reply via email to