Adds functionality to Event Classes to getMidi and getBytes