Is there a way to custom map a Midi controller?

Is there a way to custom map a Midi controller?