Done: Add hysteresis to AnalogCC · tttapa/MIDI_controller@5671c0e · GitHub
Thanks a lot for the help!
There's still a problem with 10-bit analog MIDI events, where hysteresis would not be useful, but that's not really a priority, 7-bit is more than enough.