lilypond-user
[Top][All Lists]
Advanced

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

How to catch extent of AccidentalPlacement?


From: Thomas Morley
Subject: How to catch extent of AccidentalPlacement?
Date: Wed, 12 Mar 2014 01:27:00 +0100

Hi,

for some function I need to know the extent/length of the AccidentalPlacement.

With 2.16.2 I used to do something like:

info =
\override Staff.AccidentalPlacement #'after-line-breaking =
 #(lambda (grob)
   (display (interval-length (ly:grob-extent grob grob X)))
   (newline))

\relative c' {
    \info
    <c d>
    <cis d>1
    <cis dis>
    <cis dis eis>
    <cis dis eis fis>
    <cis dis eis fis gis>
}

and got different values.

With 2.18.0 and 2.19.1 it always returns the same: 1.1
Looks like a bug to me.
How to do it different?

Cheers,
  Harm



reply via email to

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