Refactored NoteDuration to used Java like enum.