|
From: | 智樂喬 |
Subject: | Re: aligning variables with upbeats |
Date: | Thu, 7 Feb 2019 23:51:17 +0800 |
Hope that helps!
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
[Prev in Thread] | Current Thread | [Next in Thread] |