Analog sync implemented to BeatClock class

Needs some polishing, but is functional.