Hi Layman, welcome to the forum.
looks like a job for microcontrollers. There are ready made PIC main boards which can be programmed, where the beeper wiring output can be detected by the input/output pins.
However, you'll need to learn to program the PIC to do according to your wish, and do some simple interfacing electronics. You can do more research on PICs, and you'll find the most suitable one offered by companies like Digi-Key or Farnell.
A little insight, I hope.
Cheers.