A midi merger seems the obvious solution to this.