-----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: [EMAIL PROTECTED], 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-----
\version "2.11.58" #(ly:set-option 'point-and-click #f) \paper { ragged-right = ##f } vl = \relative c' { \time 5/4 as8[ c d f]~ f[ as, c d] f[ as] | \time 3/2 ces[ as f es] r des[ es f] as[ f] r4 | } vla = \relative c'' { \time 2/4 g8[( f] as[ a,!]) | \time 6/4 r4 e'4( f,) cis'4.( d,) | \time 6/4 r4 e'( f,) } vlc = \relative c { \time 5/4 r2 r2. | \time 3/2 R1. | } cb = \relative c, { \time 5/4 bes4 c as g f | \time 3/2 des r g r r d' | } \new Score \with { \remove "Default_bar_line_engraver" \remove "Timing_translator" \remove "Span_bar_engraver" } { \new StaffGroup="OuterGroup" \with { \remove "Default_bar_line_engraver" \remove "Span_bar_engraver" \remove "Timing_translator" } << \new InnerStaffGroup="UpperGroup" \with { \remove "System_start_delimiter_engraver" \consists "Default_bar_line_engraver" \consists "Timing_translator" } << \new Staff { \vl } \new Staff { \vl } >> \new Staff \with { \consists "Default_bar_line_engraver" \consists "Timing_translator" } { \clef "alto" \vla } \new InnerStaffGroup="LowerGroup" \with { \remove "System_start_delimiter_engraver" \consists "Default_bar_line_engraver" \consists "Timing_translator" } << \new Staff { \clef "bass" \vlc } \new Staff { \clef "bass_8" \cb } >> >> }
two-tempi.pdf
Description: Adobe PDF document
_______________________________________________ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user