Way to use a footswitch with hermod send gate

Hey guys, title is horrible but did not want to make it to long. Basically what i am trying to do if its possible is use a footswitch with samplers assim and morphagene. I have a footswith controller that can take any pedal and send midi ccs so was wondering if there is a way to send midi cc to hermod+ to trigger a gate on off that i can send out to morphagene or assimil8or record input? If so if you could please explain how to do this i would much appreciate it. Thanks guys.