lilypond-user
[Top][All Lists]

## Re: How to catch the current height of a StaffGroup?

 From: Thomas Morley Subject: Re: How to catch the current height of a StaffGroup? Date: Wed, 23 May 2012 19:19:11 +0200

```2012/5/23 Urs Liska <address@hidden>:
> but shouldn't a standard barline have the desired length by default?

Of course, but the new BreathingSign-stencil is only to visualize that
I've got the correct value.
And a BarLine lives in Staff-context but I want the "StaffGroup-size".

Trying:

\override Score.BarLine #'stencil =
#(lambda (grob)
(let* ((stil (ly:bar-line::print grob))
(stil-ext-y (interval-length
(ly:stencil-extent stil Y))))
(newline)(display stil-ext-y)
stil))

returns every time the same value, in this case: 3.9975

As expected.

```