Userspace code and Pd external to read switch state from the infinity footpedal.