Implement metronome

- [x] Buttons working
- [ ] Make the changes made on the GUI to be reflected to the metronome logic