Is there a way to make foot pedal to produce a midi note

What does the manual of your specific not mentioned manual say…?