Refactored ItsMIDITime.spin with case statements and improved code size and formatting