main script can synchronize beats