Improved height computation for note

Improved height computation for note