Automatic formatting of music sheets