If your MIDI pedal can send MIDI notes then you could switch patterns on the AF using the PAT.PLAY function of the AF’s MultiMap feature.