flat vs sharp note detection