morse decoder functional