only write to buffer on a beat?