The effect I think you want is an envelope filter.
Electro Harmonix makes several good ones- Q-Tron, Mini Q Tron, NYC Bassballs. Bootsy Collins is known to use the Q-Tron.
Mutron makes good ones but they are expensive. Boss, EBS, and Digitech are other possibilities. Check out...