midi: class, refactor [W-2]
midi: refactor [W-2]
midi: + [W-2]