lilypond-devel
[Top][All Lists]
Advanced

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

Re: Explicit check against one staff-staffgroup


From: Mats Bengtsson
Subject: Re: Explicit check against one staff-staffgroup
Date: Mon, 09 Jul 2007 23:48:43 +0200
User-agent: Internet Messaging Program (IMP) H3 (4.0.5)

Agree completely! See http://lists.gnu.org/archive/html/lilypond-devel/2007-04/msg00011.html

  /Mats

Quoting Rune Zedeler <address@hidden>:

In System_start_delimiter::print we the check to see whether a staff-group-symbol should suicide is

  if (ext.is_empty ()
|| (robust_scm2double (me->get_property ("collapse-height"), 0.0) >= ext.length ())
      || (glyph_sym == ly_symbol2scm ("bar-line")
          && non_empty_count <= 1))
    {
      me->suicide ();
      return SCM_UNSPECIFIED;
    }


Why do we have the explicit check against (glyph_sym == ly_symbol2scm ("bar-line") && non_empty_count <= 1)? This check ensures, that in the following snippet, the last staffgroup does not get a delimiter, and I see no way to circumvent it :-(


\version "2.10.25"
\layout {
  \context {
    \StaffGroup
    \override SystemStartBracket #'collapse-height = #1
  }
}
<<
\new StaffGroup <<
  \new Staff { c' }
  \new Staff { c' }
>>
\new StaffGroup <<
  \new Staff { c' }
>>
\new StaffGroup <<
  \override StaffGroup.SystemStartBracket #'style = #'bar-line
  \new Staff { c' }
  \new Staff { c' }
>>
\new StaffGroup <<
  \override StaffGroup.SystemStartBracket #'style = #'bar-line
  \new Staff { c' }
>>
>>


-Rune


_______________________________________________
lilypond-devel mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/lilypond-devel








reply via email to

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