calculate note types from duration