Arduino/ESP button library that provides callback functions to track single, double, triple and long clicks. It also takes care of debouncing.
Why do you think that https://github.com/lathoub/Arduino-AppleMIDI-Library is a good alternative to Button2