Modified program to only register a beat every 1 s

Simple implementation to test functionalities of reading and writing
samples and annotations.