lilypond-user
[Top][All Lists]
Advanced

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

Re: aligning variables with upbeats


From: 智樂喬
Subject: Re: aligning variables with upbeats
Date: Thu, 7 Feb 2019 23:51:17 +0800

Hope that helps!

Yes, it does. I have no idea what the edition-engraver is, but I'm curious to read more about it when I have time.

Thanks!

Randy

On Thu, Feb 7, 2019 at 11:44 PM Kieren MacMillan <address@hidden> wrote:
Hi Randy,

> I'm looking for a clean, way to align music variables which begin with partial measures. For example,
>
> \version "2.19.82"
> partA = { c'2 b | R1*3 }
> partB = { \partial 4 g4 | \bar "||"  c'1 }
> \score { { \partA \partB } }

This is one of the few situations where I would whole-heartedly recommend using Lilypond’s \tag mechanism. (Most things that might seem to be good candidates for \tags are, in my opinion, better handled via the edition-engraver.) This is exactly how I keep different versions of songs from my musicals (e.g., show version, medley version, standalone version, etc.).

%%%  SNIPPET BEGINS  %%%
partA = {
  c'2 b |
  \tag #'full { R1*3 }
  \tag #'short { R1*2 r2 r4 }
}

partB = {
  \partial 4 g4 | \bar "||"  c'1
}

\score {
  { \keepWithTag #'full \partA }
}

\score {
  { \keepWithTag #'short \partA \partB }
}
%%%  SNIPPET ENDS  %%%

Hope that helps!
Kieren.
________________________________

Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: address@hidden


reply via email to

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