lilypond-user
[Top][All Lists]
Advanced

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

Re: different tempi


From: Reinhold Kainhofer
Subject: Re: different tempi
Date: Tue, 9 Sep 2008 19:57:03 +0200
User-agent: KMail/1.9.10

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am Dienstag, 9. September 2008 schrieb Werner LEMBERG:
> I can imagine two solutions:
>
>   (a) If you move the bar line engraver to Staff context, StaffGroup
>       honours a new Staff property, say, `suppressBarline', to do the
>       obvious.
>
>   (b) Provide, as a property of StaffGroup, a staff list which gets
>       bar lines (enumerated, say, from bottom to top).  For the
>       example above, it would be (1 3 4).
>
> Currently, I believe that my problem can't be solved with the current
> means of lilypond, and some extra coding is necessary.

Well, as one of my teachers at school used to say: "Believing means not 
knowing..." Attached is a simple lilypond file, which does exactly what you 
want (modulo the 5/4 in the Vla staff, since that measure actually contains 
6/4 ;-) ). The trick is in removing the spanned bars from the StaffGroup and 
insert an InnerStaffGroup for the staves before the Vla and one for the 
staves after the Vla. For these InnerStaffGroups you can enable spanned 
barlines to produce the desired result.

I suppose this example would also fit very well on LSR, once that is up again.

Cheers,
Reinhold

PS: Now and again, I'm really astonished and fascinated about the power and 
flexibility that LilyPond's Engraver and Context hierarchy brings!

- -- 
- ------------------------------------------------------------------
Reinhold Kainhofer, Vienna University of Technology, Austria
email: address@hidden, http://reinhold.kainhofer.com/
 * Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at/
 * K Desktop Environment, http://www.kde.org, KOrganizer maintainer
 * Chorvereinigung "Jung-Wien", http://www.jung-wien.at/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIxrj0TqjEwhXvPN0RAl1pAJkBQahu9QUyw45dptCmGsCb0ExlLwCfdNm0
HASyjhyFWoL+MLcIL44nMSY=
=j0Ko
-----END PGP SIGNATURE-----

Attachment: two-tempi.ly
Description: Text Data

Attachment: two-tempi.pdf
Description: Adobe PDF document


reply via email to

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