Tap tempo metronome project

I just purchased the tap tempo metronome. I have a lot of cool ideas for project. I understand electronics and circuits very well, but I’m not to savvy on programming.

I’m utilizing the output signal B to drive a relay. I want to be able to store up to 6 or more beat patterns and be able to start and stop the beat. When stopping the beat i need it to start over from the beginning of the entered or stored beat.

Any ideas on how to do this would be awesome.