lilypond-devel
[Top][All Lists]
Advanced

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

Re: Issue 1320: Scheme bar line interface (issue 6305115)


From: Marc Hohl
Subject: Re: Issue 1320: Scheme bar line interface (issue 6305115)
Date: Tue, 26 Jun 2012 21:28:43 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120615 Thunderbird/13.0.1

Am 23.06.2012 11:11, schrieb Marc Hohl:
Am 23.06.2012 11:06, schrieb Benkő Pál:
hi Marc,

http://codereview.appspot.com/6305115/diff/1/scm/bar-line.scm
File scm/bar-line.scm (right):

http://codereview.appspot.com/6305115/diff/1/scm/bar-line.scm#newcode83
scm/bar-line.scm:83: (define (make-colon-bar-line grob)
I'm afraid this defun doesn't match the relevant part of current
Bar_line::compound_barline.

try

\new Staff {
\override Staff.StaffSymbol #'line-positions = #'(-2 0 2 4)
s1 \bar ":|"
}
Thanks for the hint! I didn't check the results with altered line positions
yet,
but I don't understand what's wrong here – IMHO the scheme stuff mimics
1:1 the code from the original definition.
that definition was changed considerably in the meantime.
I just noticed that ... sorry for that!
OK, so I'm either blind or stupid or whatever.

I tried to adapt Benkő Páls algorithm for the colon stencil; I think the scheme version calculates all values correctly, but the value for dist and center are resetted after
the calculation process.
You get dist = 1.0 at the beginning, dist = 2.0 in the loop and dist = 1.0 afterwards. After over an hour sitting in front of my computer without finding the error I'm somewhat frustrated. I think I'll dream in indentations and brackets tonight :(

Marc





reply via email to

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