> Here is a theoretically better version of the code, along with an > improved test case so that the slopes are more easily compared:
Aaron, you are a wizard! My deepest respects for your Scheme skills. Thanks a lot! Again, this deserves to become a lilypond snippet. By the way, do you agree that this is a bug in LilyPond? Werner