Logic Pro 9 How to change note lenght with a knob or slider

Hi folks,

I have a sequence with short notes sending out to an external synth. I would like to change the note lengths in real time with a knob or slider (lets say Modulation wheel).

How should I do that :confused:

thanks for hints