2011/7/19 Neil Puttock <n.putt...@gmail.com>: > 2011/7/18 Janek Warchoł <lemniskata.bernoull...@gmail.com>: > >> My friend and I, having some spare time, wanted to fix a bug >> http://code.google.com/p/lilypond/issues/detail?id=1301. It's related >> to planning distribution of music notes and other signs, so we need >> some overview how the whole process works. Comments in the source >> code are rare and in the documentation we couldn't find a word about >> it. Where could we find some info? > > The clef is on a loose column (it floats before the head), so the > first place I'd look would be lily/spacing-loose-columns.cc (and > possibly lily/spacing-determine-loose-columns.cc). > > I'd guess the problem is the way loose columns are spaced between > other columns: in this snippet, the columns for the quaver and tuplet > minim are so close together that the clef's column gets dumped on top > of the quaver (since it's loose, it doesn't influence the spacing).
Sorry for not responding earlier... My friend and I didn't have a chance to work on this again yet (it's too difficult for me - i tried reading that code and i'm a bit lost, so i prefer to work on things easier for me), but in order not to waste your answer, maybe let's add it to CG/Programming work/miscellaney ? I attach a patch. thanks, Janek
From f889ee5ee4b4277039723a02f549c42fb90f6401 Mon Sep 17 00:00:00 2001 From: Janek Warchol <lemniskata.bernoull...@gmail.com> Date: Sat, 6 Aug 2011 23:32:27 +0200 Subject: [PATCH] CG: add info about spacing from e-mail --- Documentation/contributor/programming-work.itexi | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/Documentation/contributor/programming-work.itexi b/Documentation/contributor/programming-work.itexi index 593e456..e64fa16 100644 --- a/Documentation/contributor/programming-work.itexi +++ b/Documentation/contributor/programming-work.itexi @@ -1679,6 +1679,16 @@ We create lots of extra grobs (eg. a BarNumber at every bar line) but most of them are not drawn. See the break-visibility property in item-interface. +Here is another e-mail exchange. Janek Warchoł asked for a starting point +to fixing 1301 (change clef colliding with notes). Neil Puttock replied: + +The clef is on a loose column (it floats before the head), so the +first place I'd look would be lily/spacing-loose-columns.cc (and +possibly lily/spacing-determine-loose-columns.cc). +I'd guess the problem is the way loose columns are spaced between +other columns: in this snippet, the columns for the quaver and tuplet +minim are so close together that the clef's column gets dumped on top +of the quaver (since it's loose, it doesn't influence the spacing). @node Info from Han-Wen email @subsection Info from Han-Wen email -- 1.7.0.4
_______________________________________________ lilypond-devel mailing list lilypond-devel@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-devel