Changed get_msg_type semantics; now accepts tuples and distinguishes if note is ON or OFF.
Updated package names in imports.