lenmus / lomse

A C++ library for rendering, editing and playing back music scores.
MIT License
120 stars 28 forks source link

Fix anchor line for chords #316

Closed cecilios closed 3 years ago

cecilios commented 3 years ago

Notes in different voices that sound at the same time are vertically aligned in the score. These alignment lines are sometimes named ‘beatlines’ in academic literature but, in Lomse, for historical reasons, they are named ‘anchor’ lines.

This PR fixes the computation of anchor lines for chords, that caused alignment problems, e.g. test score 00623:

Current: image
After this PR: image

In addition, this PR removes methods lock() and unlock() in GmoShapeComposite an the related variable, as they are not used and are not needed.