PASHKULI
OlivierW but then it is no longer a piano's geometry.
The real piano geometry is incorrect.
For a UI and MIDI roll falling notes you start with everything note's lane equal in width → this is where the tails of the keys touch those lanes. The sacrifice is that the widths of the heads for the notes C, D, E will be ever so slightly narrower. Not the tails, but the heads. For a true and complete equal widths the design is a bit more involved as a geometry and it is not needed for UI. It is a must though for real pianos.
You can see it for yourself in the provided .svg file I gave\showed you above (also in the Handthasia thread in this forum).
This is also how the Osmose keyboard synth controller's keys have been designed (to keep tails equal ever so slightly narrowing C, D, E's heads).








