transform for going from midi to internal pitch