Filter out midi clock from one device?

I’ve got this old Roland FP-5 which is a great keyboard, but it has no way to stop it from sending MIDI clock. Really I don’t want it to do this - I’d rather the organelle, or some other piece of kit was the master clock. Is there a way (preferably with patch_loaded.sh rather than editing mother.pd) to filter out the clock?