How to use Macro to call preset 1 when the button is pressed and call preset 2 when the button is up

I used the NeoPixelBus library of esp32 to achieve this video effect. It is very troublesome to change different special effects. The ability to write special effects is limited, so I want to try WLED.