On 2011/09/06 08:54:40, janek wrote:
I'm not sure what you mean.  Are you saying that i should assign (i *
(gap +
stemthick), 0) to a variable in the for loop?  I.e. sth like

        for i := 0 step 1 until linecount - 1:
                foobar := (i * (gap + stemthick), 0);
                draw_gridline (z1 - foobar,
                               z2 - foobar,
                               stemthick);
                draw_gridline (z3 + foobar,
                               z4 + foobar,
                               stemthick);
        endfor;
?

Yes, that would be cleaner and easier to understand.

http://codereview.appspot.com/4931043/

_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to