In many ways music notation is a lot like typography. LilyPond is open-source (and free) software that automates notation engravings. On their website is a wonderful essay that details how “minor” visual inconsistencies in music notation causes problems and how their software works to prevent them.