All,

I have made tremendous progress on adding shape note support.  I still need
to clean up some of my hacks; but I think I have a total solution, except
for one problem.

The code which calculates the stem-attachment point in stem.cc assumes that
the attach point for the left side of a note is the mirror of the right
side.  A diagram will help explain the problem:


Note box:

      +------------------+
      |                  |
      |                  o <- Right point
      |                  |
------|------------------|------- Center line
      |                  |
      o <- Left Point    |
      |                  |
      +------------------+

The above matches the assumption in the code.  The following shows what
should be done for most(all) shape notes):

      +------------------+
      |                  |
      o <- Left Point    o <- Right point
      |                  |
------|------------------|------- Center line
      |                  |
      |                  |
      |                  |
      +------------------+

The code snippet below, from stem.cc, I think, is where the logic resides
that implements this assumption.

      stem_y[Direction (-d)] += d * y_attach/dy;

This is found around line 650 in stem.cc.


The 'd' in the expression 'd * y_attach/dy', effectively implements the
expected symetry.  So I know what the problem is, I just don't know what the
best way to fix it is.

Suggestions?

-Jim Duke



_______________________________________________
lilypond-devel mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to