[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Error in resolving number of staff lines
From: |
David Kastrup |
Subject: |
Re: Error in resolving number of staff lines |
Date: |
Fri, 22 Jun 2012 10:29:40 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) |
Marc Hohl <address@hidden> writes:
> Hello list,
>
> the following snippet prints a value of 5 in both cases,
> whereas the second system has
> only four staff lines. What's wrong here?
>
> Regards,
>
> Marc
>
> \version "2.15.41"
>
> #(define (test-bar-print grob)
> (let* ((staff-symbol (ly:grob-object grob 'staff-symbol))
> (line-count (if (ly:grob? staff-symbol)
> (ly:grob-property staff-symbol 'line-count)
> 0)))
> (display "\nNumber of staff lines: ")
> (display line-count)
> (ly:bar-line::print grob)))
> \new Staff {
> \override Staff.StaffSymbol #'line-positions = #'(-2 0 2 4)
> s1 \bar ":|"
> }
You are only overriding line-positions. While the bar line printer will
see that this now contains a value and heeds it, this does not magically
affect the (now ignored) line-count property.
--
David Kastrup
Re: Error in resolving number of staff lines, Phil Holmes, 2012/06/22