fixing tempo detection. adding GUI controls. trying to avoid listening when plying myself