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 <[email protected]>
> To: LilyPond Users <[email protected]>
> Subject: Synchronize music of different length
> Message-ID: <[email protected]>
> 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 |
> }
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user