Implemented note to staff Y position function