Creates midi handler