implemented midi to gauge transform.