lilypond-user
[Top][All Lists]
Advanced

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

RE: Synchronize music of different length


From: Richard Sabey
Subject: RE: Synchronize music of different length
Date: Fri, 5 Jul 2013 15:01:25 +0000

Hi Urs.

I tried to send a reply earlier. I don't know if I succeeded, but the method I suggested was not good enough anyway. Here's my second attempt at a solution to your problem:

\version "16.0"

firstVersion =
\relative e'' {
e2. e4 | g2. cis,4 |
}

secondVersion =
\scaleDurations #'(2 . 1)
\relative e'' {
e4~ e16[ fis] e[ fis]
\bar ""
g4. cis,8 |
}

\score
{
<<
\new Staff
\firstVersion

\new Staff
\secondVersion
>>
\layout
{
\context
{
\Score
\remove "Timing_translator"
\remove "Default_bar_line_engraver"
}
\context
{
\Staff
\consists "Timing_translator"
\consists "Default_bar_line_engraver"
}
}
}

Note that I have fixed a bug with the beaming in the second version.

All the business of removing two engravers from the Score context & putting them into the Staff context is needed because you have two music expressions running alongside each other, and the one has a bar line where the other one does not.

Now this is all very well because, musically speaking, all that was needed to make the two music expressions correspond was to treat each note in the second version as if it lasted twice as long as it actually does. If you had another example where the music expressions correspond in a different way from that, then you could try spacer rests ( s4 etc ).


> Date: Thu, 04 Jul 2013 16:51:55 +0200
> From: Urs Liska <address@hidden>
> To: LilyPond Users <address@hidden>
> Subject: Synchronize music of different length
> Message-ID: <address@hidden>
> Content-Type: text/plain; charset=ISO-8859-15; format=flowed
>
> Hi all,
>
> what would be an elegant way to synchronize a passage of music that is
> of different length in two staves?
>
> I need to make an example where the composer made a second version that
> compressed two bars into one. At the same time he modified the melody
> around common anchor notes
> I would like to typeset these measures in two staves so that the
> corresponding notes are aligned, ignoring the metric situation.
>
> One would be:
> (\time 4/4)
>
> \relative e'' {
> e2. e4 | g2. cis,4 |
> }
>
> The other one:
>
> \relative e'' {
> e4~ e16[ fis] e[ fis g4. cis,8 |
> }


reply via email to

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