Implemented ticksToNoteDuration mathematically