lilypond-user
[Top][All Lists]
Advanced

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

Re: aligning variables with upbeats


From: David Kastrup
Subject: Re: aligning variables with upbeats
Date: Thu, 07 Feb 2019 16:04:42 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Valentin Villenave <address@hidden> writes:

> On 2/7/19, 智樂喬 <address@hidden> 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



reply via email to

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